@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/literata-cyrillic-opsz-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/literata-latin-opsz-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/golos-text-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6f2ea;
  --surface: #fff;
  --surface-alt: #ece5d8;
  --glaze: #24493f;
  --glaze-deep: #17332c;
  --glaze-soft: #dce6df;
  --brick: #a4482f;
  --ink: #1f2421;
  --ink-2: #5a615c;
  --line: #d8cfbf;
  --ok: #3b7a55;
  --serif: "Literata", Georgia, serif;
  --sans: "Golos Text", system-ui, sans-serif;
  --r: 8px;
  --r-c: 6px;
  --frame: 12px;
  --section: 88px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; hyphens: manual; }
h2 { font-size: clamp(26px, 2.7vw, 36px); }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.price { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.link { color: var(--glaze); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; flex: none; }

/* кнопки */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 0; border-radius: var(--r-c); background: var(--glaze); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--glaze-deep); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--ghost { background: transparent; color: var(--glaze); box-shadow: inset 0 0 0 1.5px var(--glaze); }
.btn--ghost:hover { background: var(--glaze-soft); }

/* клеймо-изразец: одно, у главного врача */
.stamp { position: absolute; right: -22px; bottom: -22px; width: 112px; height: 112px; padding: 14px 10px; background: var(--glaze); border-radius: 4px; color: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 0 0 4px var(--bg); z-index: 1; }
.stamp::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgb(246 242 234 / .55); border-radius: 2px; }
.stamp b { font: 500 34px/1 var(--serif); }
.stamp span { font-size: 11.5px; line-height: 1.25; margin-top: 6px; }

/* верхняя строка */
.topbar { background: var(--glaze); color: var(--bg); font-size: 14px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__slots { display: inline-flex; align-items: center; background: none; border: 0; color: inherit; font-size: 14px; padding: 6px 0; }
.topbar__slots .dot { background: #8fd1a8; }
.topbar__slots:hover { text-decoration: underline; }

/* шапка */
.header { position: sticky; top: 0; z-index: 20; background: var(--bg); padding-top: env(safe-area-inset-top); border-bottom: 1px solid transparent; transition: border-color .15s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 28px; min-height: 80px; transition: min-height .15s; }
.header.is-scrolled .header__in { min-height: 66px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo__tile { position: relative; width: 42px; height: 42px; background: var(--glaze); color: var(--bg); border-radius: 4px; display: grid; place-items: center; font: 500 22px/1 var(--serif); }
.logo__tile::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgb(246 242 234 / .5); border-radius: 2px; }
.logo__text { display: flex; flex-direction: column; }
.logo__text b { font: 500 20px/1.1 var(--serif); }
.logo__text small { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15.5px; white-space: nowrap; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--glaze); text-decoration: underline; text-underline-offset: 6px; }
.header__call { display: flex; flex-direction: column; align-items: flex-end; }
.phone { font-weight: 600; font-size: 18px; text-decoration: none; white-space: nowrap; }
.header__call small { font-size: 12.5px; color: var(--ink-2); }
.header__icon, .header__menu { display: none; }
.mnav { display: none; }

/* первый экран: фото в край справа, поверх лист сметы — подпись сайта */
.hero { position: relative; min-height: 660px; display: flex; align-items: center; }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 50vw; }
.hero__media > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__in { width: 100%; }
.hero__text { width: 50%; padding: 56px 120px 72px 0; }
h1 { font-size: clamp(34px, 4.2vw, 60px); letter-spacing: -0.01em; }
.hero__lead { font-size: 19px; color: var(--ink-2); margin-top: 22px; max-width: 30em; }
.hero__row { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.hero__call { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.hero__call a { display: block; color: var(--ink); font-weight: 600; font-size: 18px; text-decoration: none; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 15.5px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--glaze); border-bottom: 2px solid var(--glaze); transform: rotate(-45deg); }
.sheet { position: absolute; left: -96px; bottom: 56px; width: 344px; margin: 0; padding: 22px 24px 18px; background: #fffdf8; color: var(--ink); border-radius: 3px; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 14px 32px rgb(23 51 44 / .18); transform: rotate(-1.5deg); font-size: 14px; }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.sheet__head b { font: 500 19px/1.2 var(--serif); }
.sheet__head span { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.sheet table { width: 100%; border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sheet td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sheet td:last-child { text-align: right; white-space: nowrap; }
.sheet__total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 10px; }
.sheet__total span { font-weight: 600; }
.sheet__total b { font: 500 30px/1 var(--serif); color: var(--brick); white-space: nowrap; }
.sheet__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.sheet__sign { font: 500 15px/1 var(--serif); color: var(--glaze); padding: 0 4px 3px; border-bottom: 1px solid var(--ink-2); white-space: nowrap; }

/* рейтинги */
.ratings { margin-top: 40px; }
.ratings__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border-radius: var(--r); }
.ratings__in li + li { border-left: 1px solid var(--line); }
.ratings__in a { display: flex; align-items: center; gap: 14px; padding: 22px 26px; text-decoration: none; height: 100%; }
.ratings__in a:hover b { color: var(--glaze); }
.ratings__in b { font: 500 30px/1 var(--serif); white-space: nowrap; }
.ratings__in span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }

/* секции */
.section { padding: var(--section) 0; }
.section--alt { background: var(--surface-alt); }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.head p { color: var(--ink-2); max-width: 30em; }
.head--big { align-items: flex-end; }
.head--big h2 { font-size: clamp(30px, 3.4vw, 46px); max-width: 15em; }
.head--big .big { display: block; font-size: clamp(52px, 7vw, 96px); line-height: 1; color: var(--glaze); letter-spacing: -0.02em; margin-bottom: 6px; }
.more { color: var(--glaze); font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* услуги: прайс-меню */
.menu { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: stretch; }
.menu__feature { display: flex; flex-direction: column; background: var(--glaze); color: var(--bg); border-radius: var(--r); overflow: hidden; text-decoration: none; }
.menu__feature img { aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 60%; width: 100%; }
.menu__feature-body { display: flex; flex-direction: column; gap: 16px; padding: 26px 28px 28px; flex: 1; }
.menu__title { font: 500 26px/1.2 var(--serif); }
.menu__lines { display: flex; flex-direction: column; }
.menu__lines > span { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgb(246 242 234 / .2); font-size: 16px; }
.menu__lines .price { color: var(--bg); }
.menu__feature .link { color: var(--bg); margin-top: auto; }
.menu__feature:hover .link { text-decoration: underline; }
.menu__list { background: var(--surface); border-radius: var(--r); padding: 8px 28px; display: flex; flex-direction: column; }
.menu__list li { padding: 18px 0; border-bottom: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; justify-content: center; }
.menu__list li:last-child { border-bottom: 0; }
.menu__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-decoration: none; }
.menu__name { font: 500 21px/1.25 var(--serif); }
.menu__row:hover .menu__name { color: var(--glaze); text-decoration: underline; text-underline-offset: 4px; }
.menu__row .price { font-size: 18px; }
.menu__subs { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; font-size: 15px; }
.menu__subs a { color: var(--ink-2); text-decoration: none; }
.menu__subs a:hover { color: var(--glaze); text-decoration: underline; }

/* симптомы */
.symptoms { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; }
.symptoms__list { display: flex; flex-direction: column; gap: 8px; }
.symptoms__list button { text-align: left; background: var(--surface); border: 0; border-radius: var(--r-c); padding: 15px 18px; font-size: 16px; font-weight: 500; min-height: 52px; transition: background .15s; }
.symptoms__list button:hover { background: var(--glaze-soft); }
.symptoms__list button[aria-selected="true"] { background: var(--glaze); color: #fff; }
.panel { background: var(--surface); border-radius: var(--r); padding: 36px 40px; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.panel h3 { font-size: 28px; }
.panel p { font-size: 18px; color: var(--ink-2); max-width: 38em; }
.panel__meta { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); width: 100%; margin-top: auto; }
.panel__meta span:first-child { color: var(--ink); font-weight: 500; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel__meta span:last-child { font-size: 15.5px; }

/* врачи */
.lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.lead__photo { position: relative; margin: 0 22px 0 0; max-width: 440px; }
.lead__photo img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--r); }
.lead__role { color: var(--ink-2); margin-top: 6px; font-size: 18px; }
.lead__text h3 { font-size: 32px; }
.lead__facts { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.lead__facts span + span::before { content: " · "; }
.lead blockquote { margin: 26px 0 0; font: 400 22px/1.45 var(--serif); max-width: 30em; }
.lead__actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.team__hint { display: none; }
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.doc { display: flex; flex-direction: column; }
.doc img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--surface-alt); }
.doc b { font: 500 18px/1.25 var(--serif); margin-top: 14px; }
.doc span { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.doc span { margin-bottom: 10px; }
.doc__slot { display: inline-flex; align-items: center; align-self: flex-start; margin-top: auto; padding: 8px 12px; min-height: 44px; border: 0; border-radius: var(--r-c); background: var(--glaze-soft); font-size: 14px; color: var(--glaze-deep); }
.doc__slot:hover { background: #cbd9cf; }

/* почему мы */
.why { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: stretch; }
.why__photo { margin: 0; min-height: 420px; }
.why__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.why__list { margin: 30px 0 0; display: grid; gap: 20px; }
.why__list dt { font-weight: 600; font-size: 18px; }
.why__list dd { margin: 4px 0 0; color: var(--ink-2); }

/* сметы */
.cases { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cases__list { display: flex; flex-direction: column; gap: 10px; }
.case { background: var(--surface); border-radius: var(--r); }
.case summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; cursor: pointer; font: 500 21px/1.3 var(--serif); min-height: 72px; }
.case summary::-webkit-details-marker { display: none; }
.case summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--glaze); border-bottom: 2px solid var(--glaze); transform: rotate(45deg); margin: -4px 4px 0 6px; transition: transform .2s; }
.case[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.case summary .price { font: 600 19px/1 var(--sans); margin-left: auto; }
.case__body { padding: 0 26px 24px; }
.case table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.case td { padding: 11px 0; border-top: 1px solid var(--line); }
.case td:last-child { text-align: right; white-space: nowrap; }
.case .total td { background: var(--glaze-soft); font-weight: 600; padding: 13px 14px; border-top: 0; }
.case .total td:last-child { color: var(--glaze-deep); }
.switch { display: inline-flex; gap: 4px; max-width: 100%; padding: 4px; background: var(--bg); border-radius: var(--r-c); margin-bottom: 14px; flex-wrap: wrap; }
.switch label { white-space: nowrap; justify-content: center; padding: 8px 14px; border-radius: 4px; font-size: 15px; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.switch input { position: absolute; opacity: 0; }
.switch label:has(input:checked) { background: var(--glaze); color: #fff; }
.switch label:has(input:focus-visible) { outline: 3px solid var(--brick); }
.cases__aside { background: var(--glaze); color: var(--bg); border-radius: var(--r); padding: 22px 26px; display: flex; gap: 24px; align-items: center; }
.cases__aside p { margin-right: auto; font-size: 18px; max-width: 34em; }
.cases__aside .btn { background: var(--bg); color: var(--glaze-deep); }
.cases__aside .btn:hover { background: #fff; }
.cases__aside .link { color: var(--bg); }

/* отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { background: var(--surface); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.review p { font-size: 16.5px; }
.review p::before { content: "★★★★★"; display: block; color: #c9902c; letter-spacing: 1px; margin-bottom: 12px; }
.review footer { margin-top: auto; display: flex; flex-direction: column; font-size: 14.5px; color: var(--ink-2); }
.review footer b { color: var(--ink); font-size: 16px; }

/* детям */
.kids { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: stretch; }
.kids__photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: 3 / 2; }
.kids__card { background: var(--glaze-soft); border-radius: var(--r); padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.kids__card p { color: var(--ink-2); }
.kids__card .btn { margin-top: 8px; }

/* фасад во всю ширину и контакты */
.band { position: relative; height: clamp(360px, 44vw, 620px); overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.band__in { position: relative; height: 100%; display: flex; align-items: flex-end; padding-bottom: 40px; }
.band__card { background: var(--bg); border-radius: var(--r); padding: 22px 28px; display: flex; flex-direction: column; gap: 4px; }
.band__card b { font: 500 clamp(24px, 2.6vw, 34px)/1.15 var(--serif); }
.band__card span { color: var(--ink-2); }
.contacts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; align-items: start; }
.contacts h3 { font-size: 22px; }
.contacts__list { margin-top: 18px; display: grid; gap: 12px; }
.contacts__list li { color: var(--ink-2); }
.contacts__list b { color: var(--ink); display: block; font-weight: 600; }
.hours { margin-top: 14px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 7px 28px 7px 0; border-bottom: 1px solid var(--line); }
.contacts__phone { margin-top: 14px; }
.contacts__phone a { font-size: 24px; font-weight: 600; text-decoration: none; }
.contacts__actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* запись */
.book { background: var(--glaze); color: var(--bg); }
.book__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.book__text p { margin-top: 16px; font-size: 18px; color: rgb(246 242 234 / .82); max-width: 30em; }
.book__call a { color: var(--bg); font-weight: 600; }
.form { display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 32px; }
.form label { font-weight: 600; font-size: 15px; margin-top: 16px; }
.form label:first-child { margin-top: 0; }
.form label span { font-weight: 400; color: var(--ink-2); }
.form input:not([type=checkbox]), .form select { margin-top: 6px; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-c); font: inherit; background: #fff; color: var(--ink); }
.form select { -webkit-appearance: none; appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324493f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 20px 20px; }
.form input:focus, .form select:focus { outline: none; border-color: var(--glaze); box-shadow: 0 0 0 3px var(--glaze-soft); }
.form small { margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.form .check { display: flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 400; margin-top: 14px; cursor: pointer; }
.form .check input { width: 22px; height: 22px; margin: 0; accent-color: var(--glaze); flex: none; }
.form .check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form .btn { margin-top: 20px; }
.form__note { margin-top: 12px; color: var(--glaze); font-weight: 600; }

/* подвал */
.footer { background: var(--glaze-deep); color: rgb(246 242 234 / .8); padding: 56px 0 28px; font-size: 15px; }
.footer__in { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav b { color: var(--bg); margin-bottom: 4px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer p { margin-top: 14px; }
.logo--light .logo__tile { background: var(--bg); color: var(--glaze-deep); }
.logo--light .logo__tile::before { border-color: rgb(36 73 63 / .4); }
.logo--light .logo__text b { color: var(--bg); }
.logo--light .logo__text small { color: rgb(246 242 234 / .7); }
.footer__legal p:first-child { margin-top: 0; }
.footer__warn { width: min(1152px, 100% - 2 * var(--gutter)); margin: 40px auto 0; padding: 18px 0; font: 600 18px/1.35 var(--sans); color: var(--bg); border-top: 1px solid rgb(246 242 234 / .2); }
.footer__concept { width: min(1152px, 100% - 2 * var(--gutter)); margin: 0 auto; font-size: 13.5px; color: rgb(246 242 234 / .6); }

/* нижняя панель на телефоне и модалка */
.dock { display: none; }
.dock.is-hidden { transform: translateY(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; }
.modal { border: 0; border-radius: var(--r); padding: 32px; width: min(460px, calc(100vw - 32px)); background: var(--bg); color: var(--ink); }
.modal::backdrop { background: rgb(23 51 44 / .55); }
.modal h2 { font-size: 28px; margin-bottom: 8px; }
.modal__pick { color: var(--glaze); font-weight: 600; margin-bottom: 8px; }
.modal .form { padding: 0; background: none; margin-top: 12px; }
.modal__close-form { position: absolute; top: 10px; right: 10px; }
.modal__close { width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink-2); }

@media (max-width: 1320px) {
  .nav a[href="#kids"] { display: none; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .header__call { margin-left: auto; }
  .header__menu { display: inline-flex; }
  .mnav:not([hidden]) { display: flex; flex-direction: column; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); }
  .mnav a { padding: 12px 0; text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--line); }
  .header__menu { align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-c); background: transparent; font-weight: 600; }
  .header__menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --section: 56px; --frame: 8px; --gutter: 16px; }
  html { scroll-padding-top: 72px; }
  body { font-size: 16px; padding-bottom: calc(67px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  .header__in { min-height: 64px; gap: 6px; transition: none; }
  .logo { min-width: 0; gap: 10px; }
  .logo__text { min-width: 0; }
  .header.is-scrolled .header__in { min-height: 64px; }
  .logo__tile { width: 38px; height: 38px; font-size: 20px; }
  .logo__text b { font-size: 17px; }
  .logo__text small { font-size: 12px; }
  .header__call, .header__btn { display: none; }
  .header__icon { display: none; }
  .header__menu { padding: 0 12px; margin-left: auto; flex: none; }
  .menu, .symptoms, .lead, .why, .cases, .kids, .contacts, .book__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; width: 100%; height: clamp(240px, 46vw, 380px); }
  .sheet { left: auto; right: 16px; bottom: -64px; width: 236px; padding: 14px 16px 12px; font-size: 12px; }
  .sheet table, .sheet__foot span:first-child { display: none; }
  .sheet__head span { display: none; }
  .sheet__head b { font-size: 16px; }
  .sheet__total { padding: 10px 0 8px; }
  .sheet__total b { font-size: 26px; }
  .hero__text { width: 100%; padding: 76px 0 8px; }
  .hero__text h1 { max-width: 9.5em; }
  .hero__lead { font-size: 17px; margin-top: 16px; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
  .hero__row .btn { width: 100%; }
  .hero__call { text-align: center; }
  .hero__call a { display: inline; }
  .checks { grid-template-columns: minmax(0, 1fr); margin-top: 22px; padding-top: 18px; }
  .checks li:nth-child(n+3) { display: none; }
  .why__photo { min-height: 0; }
  .why__photo img { height: 220px; aspect-ratio: auto; }
  .why__list { margin-top: 20px; gap: 0; }
  .why__list > div { padding: 18px 0; border-top: 1px solid rgb(0 0 0 / .12); }
  .why__list dt { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.25; color: var(--glaze-deep); }
  .why__list dd { margin-top: 6px; }
  .band__in { padding-bottom: 20px; }
  .band__card { padding: 16px 18px; }
  .head--big h2 { font-size: 26px; }
  .stamp { width: 88px; height: 88px; right: -14px; bottom: -14px; padding: 10px 8px; }
  .stamp b { font-size: 26px; }
  .stamp span { font-size: 10.5px; }
  .ratings { margin-top: 40px; }
  .ratings__in { grid-template-columns: 1fr 1fr; }
  .ratings__in li:nth-child(3) { border-left: 0; }
  .ratings__in li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ratings__in a { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
  .ratings__in b { font-size: 26px; }
  .head { margin-bottom: 24px; }
  .menu__list { padding: 4px 20px; }
  .menu__name { font-size: 19px; }
  .menu__row { padding: 9px 0; }
  .more { display: inline-flex; align-items: center; min-height: 44px; }
  .logo { min-height: 44px; }
  .menu__subs { flex-direction: column; gap: 0; margin-top: 4px; }
  .menu__subs a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; }
  .menu__feature-body { padding: 22px 20px; }
  .team { scroll-padding-inline: var(--gutter); }
  .team__hint { display: block; margin-top: 36px; font-size: 14px; color: var(--ink-2); }
  .symptoms__list button { min-height: 48px; padding: 12px 16px; font-size: 15.5px; }
  .panel { padding: 24px 20px; }
  .panel h3 { font-size: 23px; }
  .panel p { font-size: 16px; }
  .panel .btn { width: 100%; }
  .lead__photo { max-width: none; margin-right: 14px; margin-bottom: 14px; }
  .lead__photo img { max-height: 340px; object-position: 50% 15%; }
  .lead__facts { margin-top: 14px; }
  .lead__facts span { display: block; }
  .lead__facts span + span::before { content: none; }
  .switch { display: flex; }
  .switch label { flex: 1; padding: 8px 10px; font-size: 14px; }
  .cases__aside { flex-direction: column; align-items: stretch; padding: 22px 20px; gap: 14px; }
  .cases__aside .btn { width: 100%; }
  .lead__text h3 { font-size: 26px; }
  .lead blockquote { font-size: 19px; }
  .lead__actions .btn { width: 100%; }
  .team { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 12px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .doc { flex: 0 0 62%; scroll-snap-align: start; }
  .case summary { padding: 18px; font-size: 18px; min-height: 64px; }
  .case summary .price { font-size: 16px; }
  .case__body { padding: 0 18px 20px; }
  .case table { font-size: 15px; }
  .reviews { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .review { flex: 0 0 85vw; scroll-snap-align: start; padding: 22px; }
  .kids__photo { height: auto; }
  .kids__card { padding: 26px 20px; }
  .kids__card .btn { width: 100%; }
  .contacts__actions .btn { flex: 1; }
  .hours { width: 100%; }
  .hours td { padding-right: 0; }
  .hours td:last-child { text-align: right; }
  .form { padding: 22px 18px; }
  .footer__in { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__in > div:first-child, .footer__legal { grid-column: 1 / -1; }
  .footer nav { gap: 0; }
  .footer nav b { margin-bottom: 0; }
  .footer nav a, .footer p a { display: inline-flex; align-items: center; min-height: 44px; }
  .dock { display: grid; grid-template-columns: 1fr 1fr 2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); gap: 6px; transition: transform .25s; }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--glaze); }
  .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
  .dock__book { border: 0; border-radius: var(--r-c); background: var(--glaze); color: #fff; font-weight: 600; font-size: 16px; min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
