.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 6px 12px; flex: none; border: 1px solid var(--line);
  border-radius: 30px; color: var(--ink); background: var(--surface); font-size: 13px;
}
.theme-swatch {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid #794687;
  background: linear-gradient(135deg, #f8edff 0 46%, #72498b 49% 100%);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle { position: relative; }
.theme-toggle select { position: absolute; inset: 0; height: 100%; width: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; }
.theme-toggle:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
[data-skin="porcelain"] .theme-swatch { background: linear-gradient(135deg,#fff1e6 48%,#0875ba 50%); border-color: #4381a8; }
[data-skin="amethyst"] .theme-toggle .theme-swatch { background: linear-gradient(135deg,#dec1ef 48%,#694577 50%); }
@media (max-width: 1330px) {
  .theme-label { display: none; }
  .theme-toggle { width: 38px; min-height: 38px; padding: 5px; }
}
@media (min-width: 1025px) and (max-width: 1150px) {
  .head { gap: 8px; }
  .head nav { gap: 9px; font-size: 14px; }
}
@media (max-width: 430px) {
  .head { gap: 4px; }
  .head .brand { gap: 5px; padding-inline: 5px; }
}
[data-skin="amethyst"] {
  color-scheme: dark;
  --page: #28182f; --paper: #39253f; --surface: #402c49;
  --ink: #fff7ff; --secondary: #e0cfe6; --accent: #e6b6ff; --hover: #713986;
  --ice: #51385f; --peach: #bc86ce; --line: #765982;
  --glass: linear-gradient(135deg, #503959, #39263f 70%);
  --button: linear-gradient(135deg, #9047b7, #70368e 60%, #653276);
}
[data-skin="amethyst"] header { background: #2e1b35; border-bottom-color: #58395f; }
[data-skin="amethyst"] .brand { background: transparent; }
[data-skin="amethyst"] .brand img { filter: brightness(0) invert(93%) sepia(10%) saturate(750%) hue-rotate(222deg); }
[data-skin="amethyst"] .theme-swatch { background: linear-gradient(135deg,#fff1e6 0 46%,#0875ba 49% 100%); }
[data-skin="amethyst"] :is(.dropdown, .skip, .iconbutton, .arrow, .rail-controls button, .faq details, .prices,
  .method-prices, .clinic-intro figcaption, .contact-pop, dialog) { background: var(--surface); }
[data-skin="amethyst"] :is(.panel, .form-card, .feature-grid article, .methods article, .doctors article, .case, .price-cards article) {
  background: var(--glass); box-shadow: inset 0 0 0 1px #715379;
}
[data-skin="amethyst"] :is(.consult, .account-link) { border-color: var(--line); }
[data-skin="amethyst"] :is(.cta, .slide .cta, .float-chat, .intro-points .icon, .tabs a[aria-current=page]) {
  color: #fff; background: var(--button); box-shadow: inset 0 0 0 1px #c099d2;
}
[data-skin="amethyst"] :is(.cta:hover, .float-chat:hover) { background: #763c91; }
[data-skin="amethyst"] .hero { border: 1px solid #9777a2; }
[data-skin="amethyst"] .hero::before { filter: none; background: radial-gradient(ellipse at 75% 45%, #865c9c, #40234e 55%, #2f1e36); }
[data-skin="amethyst"] .slide:first-child {
  background: linear-gradient(90deg, #2c183868, transparent 72%), url('media/amethyst-glass.png') center / cover no-repeat;
}
[data-skin="amethyst"] .slide:first-child .hero-person { display: none; }
[data-skin="amethyst"] .arrow { background: #4a2d59ed; color: #fff; border: 1px solid #b78bc9; }
[data-skin="amethyst"] .dots { background: #39213fd9; border-radius: 20px; }
[data-skin="amethyst"] .dots button:not([aria-pressed=true])::before { background: #755c7d; border-color: #c1a8cd; }
[data-skin="amethyst"] .service-tile::after { background: linear-gradient(0deg,#301935f2,#59366370); }
[data-skin="amethyst"] :is(.frame,.video) { color: var(--secondary); border-color: #9474a0; }
[data-skin="amethyst"] .clinic-intro figure { background: radial-gradient(ellipse at 50% 40%,#805c90,#423048); }
[data-skin="amethyst"] :is(input,textarea,select) { background: #302036; color: var(--ink); border-color: #94799e; }
[data-skin="amethyst"] ::placeholder { color: #cbb8d1; }
[data-skin="amethyst"] .error { color: #ffb9b1; }
[data-skin="amethyst"] .auth-story { background: #37203c; }
@media (max-width: 1024px) {
  [data-skin="amethyst"] .head nav { background: #34213b; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  [data-skin="amethyst"] .slide:first-child {
    background-image: linear-gradient(90deg,#2c1838ec 15%,#35203b9c 59%,transparent 80%), url('media/amethyst-glass.png');
  }
}
@media (min-width: 768px) {
  [data-skin="amethyst"] .slide { padding-inline: max(68px, calc((100% - 1360px) / 2)); }
}
@media (max-width: 767px) {
  [data-skin="amethyst"] .slide:first-child {
    background: linear-gradient(to bottom,#3a2040 0%,#3a2040 60%,transparent 78%),
      #3a2040 url('media/amethyst-glass.png') right bottom / auto 40% no-repeat;
  }
  [data-skin="amethyst"] .hero .arrow { top: auto; bottom: 76px; transform: none; }
}

[data-skin="iris"] {
  color-scheme: light;
  --page: #f8f8f2; --paper: #f4f1eb; --surface: #fffefa; --ink: #44334b;
  --secondary: #525c52; --accent: #744e83; --hover: #573863;
  --ice: #e7ede1; --peach: #c4b0c9; --line: #d4d9cc;
}
[data-skin="iris"] header { background: #fafbf6; border-color: var(--line); }
[data-skin="iris"] .brand { background: transparent; }
[data-skin="iris"] .brand img { filter: brightness(0) saturate(100%) invert(34%) sepia(17%) saturate(1026%) hue-rotate(240deg); }
[data-skin="iris"] .theme-swatch { background: linear-gradient(135deg,#a7b79b 48%,#9677a3 50%); border-color: #826d87; }
[data-skin="iris"] :is(h1,h2) { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
[data-skin="iris"] h2 em { color: #4f6951; }
[data-skin="iris"] .hero::before { filter: none; background: linear-gradient(115deg,#f8f4ed 20%,#dce7d5 75%,#c6b7cc); }
[data-skin="iris"] .slide:first-child {
  background: linear-gradient(90deg,#f8f4edf7 7%,#faf6eeee 37%,transparent 69%), url('media/iris-room.png') center / cover no-repeat;
}
[data-skin="iris"] .slide:first-child .hero-person { display: none; }
[data-skin="iris"] .slide .cta { background: var(--accent); }
[data-skin="iris"] .slide .cta:hover { background: var(--hover); }
[data-skin="iris"] :is(.account-link,.consult, input, select, textarea) { border-color: #bdc8b7; }
[data-skin="iris"] .slide li::before { color: #506c51; }
[data-skin="iris"] .clinic-intro figure { background: linear-gradient(140deg,#e2e8dc,#ebe2ed); }
[data-skin="iris"] .auth-story { background: #44334b; }
[data-skin="iris"] .dots { border-radius: 24px; background: #fffdf6ec; }
[data-skin="iris"] .service-tile::after { background: linear-gradient(0deg,#293a33ef,transparent); }
@media (min-width: 768px) {
  [data-skin="iris"] .slide { padding-inline: max(68px,calc((100% - 1360px)/2)); }
}
@media (max-width: 767px) {
  [data-skin="iris"] .slide:first-child {
    background: linear-gradient(to bottom,#f7f3ec 55%,#f7f3ecf2 60%,transparent 74%), #f7f3ec url('media/iris-room.png') 79% bottom / auto 44% no-repeat;
  }
  [data-skin="iris"] .hero .arrow { top: auto; bottom: 70px; transform: none; }
}

.slide:has(.hero-room) { background:var(--paper); }
.slide:has(.hero-room) .slide-copy { width:min(48%,620px); }
.hero-room {
  position:absolute; inset:0 0 0 auto; height:100%; width:50%; object-fit:cover;
  object-position:55% center; border-radius:clamp(48px,8vw,140px) 0 0 0;
}
.messengers { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.messenger {
  display:inline-flex; gap:7px; align-items:center; justify-content:center;
  min-width:38px; min-height:38px; border-radius:30px; background:var(--surface);
  color:var(--ink); border:1px solid var(--line); font-size:14px; font-weight:650;
}
.messenger:has(span) { padding:4px 11px 4px 5px; }
.messenger svg { width:27px; height:27px; padding:5px; color:white; border-radius:50%; }
.messenger-telegram svg { background:#167eb1; }
.messenger-whatsapp svg { background:#177a45; }
.messenger-max svg { background:linear-gradient(145deg,#168cdc,#555ae5 65%,#8d42ca); }
.messenger:hover { border-color:var(--accent); }
.drawer-messengers { display:none; }
.head .phone small { max-width:165px; overflow:hidden; text-overflow:ellipsis; }
.split .messengers { margin:18px 0; }
.film-link { display:inline-block; padding:10px 0; }
@media (min-width:1025px) and (max-width:1280px) {
  .head { gap:8px; }
  .head .messengers { flex-wrap:nowrap; gap:3px; }
  .head .messenger { min-width:32px; min-height:32px; }
  .head nav { gap:8px; }
}
@media (max-width:1024px) {
  .head-messengers { display:none; }
  .head nav.open:not(.sub-open) .drawer-messengers { display:block; padding:16px 0; }
}
@media (min-width:1025px) and (max-width:1160px) {
  .head .account-link { padding:0; width:38px; min-height:38px; justify-content:center; flex:none; }
  .head .account-link span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .head .phone small { max-width:122px; }
}
@media (max-width:767px) {
  .slide:has(.hero-room) .slide-copy { width:100%; }
  .slide:has(.hero-room) { padding-bottom:0; gap:24px; }
  .hero-room {
    position:static; flex:1 0 240px; min-height:0; max-height:380px; height:300px;
    width:calc(100% + 52px); max-width:none; margin:auto -26px 0; border-radius:42px 0 0 0;
  }
  .hero:has(.slide:not([hidden]) .hero-room) .arrow { top:auto; bottom:68px; transform:none; }
}
