@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; }
}
:root {
  color-scheme: light;
  --page: #f8f8f2; --paper: #f4f1eb; --surface: #fffefa; --ink: #44334b;
  --secondary: #525c52; --accent: #744e83; --hover: #573863;
  --ice: #e7ede1; --peach: #c4b0c9; --line: #d4d9cc;
  --header: #fafbf6; --bar: #e9ebdf; --field-line: #a7b49f;
  --highlight: #4f6951; --card-edge: transparent;
  --tint-start: #f8f4ed; --tint-end: #eeeee3;
  --hero-middle: #dce7d5; --hero-end: #c6b7cc;
  --hero-photo: url('media/iris-room.png');
  --hero-wash: linear-gradient(90deg, var(--tint-start) 1%, color-mix(in srgb, var(--tint-end) 97%, transparent) 38%, transparent 75%);
  --card-fill: linear-gradient(105deg, var(--tint-start), var(--tint-end));
}
:root[data-skin="lavender"] {
  --page: #faf7fc; --paper: #f1e9f5; --surface: #fffefe; --ink: #35143d;
  --secondary: #615365; --accent: #702890; --hover: #541d6c;
  --ice: #f1e6f7; --peach: #d3b9e2; --line: #dfcfe7;
  --header: #fffdff; --bar: #eadcf3; --field-line: #bba8c4;
  --highlight: #703780; --card-edge: #e5d7eb;
  --tint-start: #faf6fd; --tint-end: #eadff2;
  --hero-middle: #eee1f5; --hero-end: #d7c3e3;
}
:root[data-skin="iris-rich"] {
  --page: #f8f2f9; --paper: #ede1f1; --surface: #fffaff; --ink: #392645;
  --secondary: #56495d; --accent: #58356c; --hover: #432554;
  --ice: #e2ebe4; --peach: #d0b8d9; --line: #dbcde1;
  --header: #f9f5fc; --bar: #e8d9ef; --field-line: #b8a4c3;
  --highlight: #466752; --card-edge: #e1cee7;
  --tint-start: #f1e4f4; --tint-end: #eadaf0;
  --hero-middle: #e7d9ec; --hero-end: #baccc0;
}
:root[data-skin="sage-mist"] {
  --page: #f4f8f5; --paper: #e4ede8; --surface: #fafbf9; --ink: #263f36;
  --secondary: #495e55; --accent: #3c5a50; --hover: #2b453c;
  --ice: #e2ebe6; --peach: #d7ccdf; --line: #ccdcd2;
  --header: #f4f8f5; --bar: #dee9e2; --field-line: #9fb3a7;
  --highlight: #695b76; --card-edge: #dce6de;
  --tint-start: #e8f0eb; --tint-end: #e2ece6;
  --hero-middle: #d5e4d9; --hero-end: #d7ccdf;
}
header { background: var(--header); border-color: var(--line); }
.brand { background: transparent; }
.brand img { filter: brightness(0) saturate(100%) invert(34%) sepia(17%) saturate(1026%) hue-rotate(240deg); }
:is(h1,h2) { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h2 em, .slide li::before { color: var(--highlight); }
.hero::before { filter: none; background: linear-gradient(115deg, var(--tint-start) 20%, var(--hero-middle) 75%, var(--hero-end)); }
.slide:first-child {
  background: var(--hero-wash), var(--tint-start) var(--hero-photo) center / cover no-repeat;
}
.slide:first-child .hero-person { display: none; }
.slide .cta { background: var(--accent); }
.slide .cta:hover { background: var(--hover); }
:is(.panel, .form-card, .feature-grid article, .methods article, .doctors article, .case,
    .price-cards article, .prices, .method-prices, .faq details, .clinic-intro figure, .clinic-intro figcaption,
    .clinic-photos figure, .about-videos figure, .licenses a, .map-box, .service-tile, .auth-story > div,
    .dashboard .thread, .contact-pop, dialog) {
  background: var(--tint-start) var(--card-fill);
  box-shadow: inset 0 0 0 1px var(--card-edge);
}
:is(.dropdown, .skip, .iconbutton, .arrow, .rail-controls button) { background: var(--surface); }
.panel.consult { border-color: var(--line); }
:is(.account-link, input, select, textarea) { border-color: var(--field-line); }
input, select, textarea { background-color: var(--surface); }
.frame, .video { color: var(--secondary); border-color: var(--field-line); }
.result-photo, .frame, .price-cards img { background: var(--tint-start); }
.steps li::before, .notice { background: var(--tint-end); }
.clinic-photos figure, .about-videos figure { border-radius: 16px; overflow: hidden; }
.clinic-photos figcaption, .about-videos figcaption { padding: 10px 14px; }
.about-videos .film-link { padding: 0; }
.licenses a { padding: 4px; }
.auth-story { display: grid; grid-template-rows: minmax(140px,1fr) auto; align-items: stretch; padding: 0; }
.auth-story > div { grid-row: 2; padding: clamp(22px,3vw,44px); color: var(--ink); }
.auth-story img { grid-area: 1 / 1; opacity: 1; }
.auth-story p { color: var(--secondary); }
.dots { border-radius: 24px; background: var(--surface); }
.dots button:not([aria-pressed=true])::before { border-color: var(--field-line); background: var(--surface); }
.service-tile {
  display: grid; grid-template-columns: minmax(0,1fr) 40px; grid-template-rows: minmax(112px,1fr) auto;
  padding: 0; color: var(--ink); align-items: center;
}
.service-tile img { grid-area: 1 / 1 / 2 / -1; z-index: 0; }
.service-tile::after { content: none; }
.service-tile span {
  grid-area: 2 / 1; display: flex; align-items: center;
  min-height: calc(2.4em + 24px); padding: 12px 0 12px 16px;
}
.service-tile .icon { grid-area: 2 / 2; justify-self: center; margin: 0; color: var(--accent); }
.service-tile:hover { color: var(--accent); }

/* A native radio group on wide screens and a native select on narrow ones. */
.theme-bar { display: none; background: var(--bar); }
html.theme-controls-ready { scroll-padding-top: 150px; }
.theme-controls-ready .theme-bar { display: block; }
.theme-bar-inner { min-height: 42px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
#theme-caption { color: var(--secondary); font-size: 13px; font-weight: 650; }
.theme-choices { display: flex; gap: 3px; align-items: center; }
.theme-choice { position: relative; cursor: pointer; white-space: nowrap; }
.theme-choice input {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden;
}
.theme-choice-face {
  display: flex; align-items: center; gap: 7px; padding: 5px 11px; min-height: 32px;
  border: 1px solid transparent; border-radius: 24px; color: var(--ink); font-size: 13px; font-weight: 600;
}
.theme-choice:hover .theme-choice-face { background: var(--surface); }
.theme-choice input:checked + .theme-choice-face { border-color: var(--accent); background: var(--surface); }
.theme-choice input:focus-visible + .theme-choice-face { outline: 2px solid var(--accent); outline-offset: 1px; }
.theme-swatch {
  flex: none; width: 17px; height: 17px; border-radius: 50%; border: 1px solid #0002;
  background: linear-gradient(135deg, var(--swatch-light) 49%, var(--swatch-deep) 50%);
}
:root, [data-swatch="iris"] { --swatch-light: #b7c8ac; --swatch-deep: #744e83; }
:root[data-skin="lavender"], [data-swatch="lavender"] { --swatch-light: #eadbf4; --swatch-deep: #702890; }
:root[data-skin="iris-rich"], [data-swatch="iris-rich"] { --swatch-light: #658373; --swatch-deep: #58356c; }
:root[data-skin="sage-mist"], [data-swatch="sage-mist"] { --swatch-light: #d7ccdf; --swatch-deep: #3c5a50; }
.theme-select-wrap { display: none; }
@media (max-width: 1024px) {
  .head nav { background: var(--surface); }
  html.theme-controls-ready { scroll-padding-top: 130px; }
}
@media (max-width: 820px) {
  .theme-bar-inner { justify-content: space-between; gap: 8px; min-height: 44px; }
  .theme-choices { display: none; }
  .theme-select-wrap { display: flex; position: relative; align-items: center; }
  .theme-select-wrap select {
    display: block; appearance: none; margin: 0; min-height: 44px; font-size: 14px; font-weight: 650;
    color: var(--ink); padding: 6px 24px 6px 28px; border: 0; border-radius: 6px;
    background: transparent; cursor: pointer;
  }
  .theme-select-wrap select:focus-visible { outline-offset: -3px; }
  .theme-select-wrap .theme-swatch, .theme-select-wrap .icon { position: absolute; pointer-events: none; }
  .theme-select-wrap .theme-swatch { left: 5px; }
  .theme-select-wrap .icon { right: 3px; width: 15px; height: 15px; }
}
@media (min-width: 768px) {
  .slide { padding-inline: max(68px,calc((100% - 1360px)/2)); }
}
@media (max-width: 767px) {
  html.theme-controls-ready { scroll-padding-top: 122px; }
  .slide:first-child {
    background: linear-gradient(to bottom, var(--tint-start), var(--tint-end) 56%, transparent 75%),
      var(--tint-start) var(--hero-photo) 79% bottom / auto 44% no-repeat;
  }
  .hero .arrow { top: auto; bottom: 70px; width: 44px; height: 44px; transform: none; }
  .hero .previous { left: 60px; }
  .hero .next { right: 60px; }
}

.slide:has(.hero-room) { background:var(--tint-start) var(--card-fill); }
.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 { display: flex; gap: 2px; line-height: 1.25; }
.head .phone small { max-width: 22ch; white-space: normal; overflow-wrap: anywhere; }
.coordinator-number { font-variant-numeric: tabular-nums; }
.callback-hint { font-size: 12px; font-weight: 650; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.head .phone[href^="tel:"] .callback-hint { display: none; }
.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) {
  .head .phone { font-size: 15px; }
  .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; }
}
@media (max-width: 540px) {
  .head { flex-wrap: wrap; gap: 4px 8px; padding-block: 5px; }
  .head .phone {
    order: 5; flex: 1 0 100%; flex-flow: row wrap; gap: 3px 8px; align-items: baseline;
    padding-block: 5px; border-top: 1px solid var(--line);
  }
  .head .phone small { max-width: 100%; }
  .head .contact-role { display: none; }
  .head .callback-hint { margin-left: auto; }
  html.theme-controls-ready { scroll-padding-top: 156px; }
}
