/* Smile Magic, Тула — центр семейной стоматологии.
   Направление (unslop):
   продукт — семейная стоматология у главного проспекта Тулы, бесплатная консультация, имплантация, детский приём;
   характер — чисто, спокойно, бережно: медицинская точность без холода;
   мир — белые кабинеты, их голубой логотип, золотая надпись на мраморе у ресепшена;
   моменты — понятные цены по разделам, живые врачи и фото клиники, отзывы родителей;
   подпись — дуга-улыбка и искра «Magic» (как звёздочки на их вывеске). */

:root {
  /* Бренд — пиксели логотипа и вычисленные цвета старого сайта smilemagic.ru */
  --brand: #83C1EC;       /* голубой логотипа (PNG и кнопки старого сайта) */
  --ink: #12222D;         /* основной текст старого сайта */
  /* Свои добавки */
  --blue: #23699C;        /* углублённый голубой для кнопок и ссылок: белый текст 5.9:1 (у #83C1EC — 1.9:1) */
  --blue-ink: #1A5482;    /* наведение */
  --sky: #EEF6FC;         /* светлая ступень голубого — фон секций */
  --mist: #F6FAFD;
  --ink-2: #3D4F5C;       /* вторичный текст, 9:1 */
  --mute: #5A6B78;        /* мета, 5.5:1 */
  --gold: #C29A55;        /* золото надписи на ресепшене — только звёзды и искры */
  --line: rgba(18, 34, 45, .1);
  --line-strong: rgba(18, 34, 45, .18);
  --shadow: 0 1px 2px rgba(18, 34, 45, .05), 0 12px 32px rgba(18, 34, 45, .08);

  --font: "IBM Plex Sans", system-ui, sans-serif;
  --head: "Rubik", "IBM Plex Sans", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(88px, 11vw, 152px);
  --r: 12px;
  --r-lg: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hdr: 124px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, figure, dl, dd, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--mute); }
.small { font-size: 14px; color: var(--mute); }
mark.stub { background: #FFF1C9; color: #6B4E00; padding: 0 4px; border-radius: 4px; }

/* ---------- Типографика ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--blue); }
.spark { width: 16px; height: 16px; color: var(--gold); flex: none; }
.h1 { font-family: var(--head); font-size: clamp(40px, 5.6vw, 76px); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.h2 { font-family: var(--head); font-size: clamp(32px, 3.8vw, 52px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.h3 { font-family: var(--head); font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.h4 { font-family: var(--head); font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; }
.lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.sec { padding-block: var(--sec); }
.sec-sky { background: var(--sky); }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 84px); max-width: 860px; }
.sec-head.row { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.sec-lead { font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.sec-note { color: var(--mute); font-size: 16px; max-width: 26em; text-align: right; }

/* Дуга-улыбка под словом — рисуется при загрузке */
.smile { position: relative; display: inline-block; color: var(--blue); }
.smile .arc { position: absolute; left: 2%; bottom: -.02em; width: 96%; height: .2em; overflow: visible; }
.arc path { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1.4s var(--ease) .5s; }
.is-in .arc path, .is-in.arc path { stroke-dashoffset: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 500; font-size: 16px; line-height: 1.2; white-space: nowrap; border: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), transform .2s var(--ease);
}
.btn svg.i { transition: transform .5s var(--ease); }
.btn:hover { background: var(--blue-ink); box-shadow: 0 8px 22px rgba(35, 105, 156, .25); }
.btn:hover svg.i { transform: translateX(2px); }
.btn:active { transform: scale(.98); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { background: var(--sky); border-color: var(--brand); color: var(--blue-ink); box-shadow: none; }
.btn-white { background: #fff; color: var(--blue-ink); }
.btn-white:hover { background: var(--sky); color: var(--blue-ink); box-shadow: 0 8px 22px rgba(18, 34, 45, .18); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-sm svg.i { width: 18px; height: 18px; }
.btn-wide { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btns.center { justify-content: center; margin-top: 48px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--blue); text-align: left; transition: color .3s var(--ease); }
.link svg.i { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.link:hover { color: var(--blue-ink); }
.link:hover svg.i { transform: translateX(2px); }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .45s var(--ease), box-shadow .35s var(--ease); }
/* при прокрутке верхняя строка уезжает transform-ом — высота шапки не меняется */
.hdr.is-compact { transform: translateY(-44px); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(18, 34, 45, .06); }
.hdr-top { height: 44px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); transition: opacity .35s var(--ease); }
.hdr.is-compact .hdr-top { opacity: 0; }
.hdr-top-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.hdr-info { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: color .3s var(--ease); }
.hdr-info svg.i { width: 16px; height: 16px; color: var(--blue); }
a.hdr-info:hover { color: var(--blue); }
.hdr-top .socials { margin-left: auto; }
.hdr-main { height: 80px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-grid; justify-items: start; gap: 2px; flex: none; color: var(--brand); }
.brand-logo { width: 150px; height: 36px; }
.brand span { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); line-height: 1; padding-left: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease); }
.nav a:hover { background: var(--sky); color: var(--blue-ink); }
.hdr-phone { font-weight: 600; font-size: 16px; white-space: nowrap; transition: color .3s var(--ease); }
.hdr-phone:hover { color: var(--blue); }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.burger:hover { background: var(--sky); border-color: var(--brand); }
.burger i { position: absolute; left: 13px; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .45s var(--ease); }
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 23px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); background: #fff; }
.mnav nav { display: grid; padding-block: 12px 24px; }
.mnav nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--head); font-size: 22px; transition: color .3s var(--ease); }
.mnav nav > a:hover { color: var(--blue); }
.mnav-foot { display: grid; gap: 6px; padding-top: 20px; font-weight: 500; }
.mnav-foot span { font-weight: 400; color: var(--mute); font-size: 15px; }

.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--blue); transition: background-color .35s var(--ease), color .35s var(--ease); }
.socials a:hover { background: var(--blue); color: #fff; }
.socials svg { width: 20px; height: 20px; }
.socials.sm a { width: 30px; height: 30px; background: transparent; }
.socials.sm a:hover { background: var(--sky); color: var(--blue-ink); }
.socials.sm svg { width: 17px; height: 17px; }

/* ---------- Первый экран ---------- */
.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 7vw, 104px); background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.rating { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; color: var(--ink-2); transition: box-shadow .35s var(--ease); }
.rating:hover { box-shadow: 0 1px 2px rgba(18, 34, 45, .05), 0 16px 40px rgba(18, 34, 45, .14); }
.rating b { font-family: var(--head); font-size: 34px; font-weight: 500; color: var(--ink); line-height: 1; }
.rating small { color: var(--mute); font-size: 13px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.hero-visual { position: relative; padding: 0 0 48px 40px; }
.hero-photo { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; overflow: hidden; aspect-ratio: 4 / 3.3; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-kid {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; color: var(--mute); max-width: 340px;
}
.hero-kid img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.hero-kid b { display: block; font-size: 16px; color: var(--ink); font-weight: 600; }
.hero-free { position: absolute; right: 20px; top: 20px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; line-height: 1.35; color: var(--ink-2); box-shadow: var(--shadow); }
.hero-free svg.i { width: 28px; height: 28px; color: var(--blue); }
.hero-free b { color: var(--blue); }

/* Полезные строки: направление + цена + действие */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 5vw, 72px); }
.quick button {
  width: 100%; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 12px; padding: 20px 22px; text-align: left;
  border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.quick span { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.quick b { font-family: var(--head); font-size: 22px; font-weight: 500; white-space: nowrap; }
.quick s { font-family: var(--font); font-size: 14px; color: var(--mute); font-weight: 400; margin-left: 4px; }
.quick svg.i { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--sky); color: var(--blue); transition: background-color .45s var(--ease), color .45s var(--ease); }
.quick button:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.quick button:hover svg.i { background: var(--blue); color: #fff; }

/* ---------- Почему у нас ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.why-item { display: grid; gap: 14px; align-content: start; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.why-item p { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--blue); flex: none; }
.ico svg.i { width: 24px; height: 24px; }

/* ---------- Акции ---------- */
.offers { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 16px; }
.offer { position: relative; overflow: hidden; display: grid; gap: 16px; align-content: start; padding: clamp(24px, 2.6vw, 32px); border-radius: var(--r-lg); background: #fff; }
.offer .link { margin-top: auto; align-self: end; }
.offer { grid-template-rows: auto 1fr auto; }
.tag { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--sky); color: var(--blue-ink); font-size: 14px; font-weight: 500; }
.offer-main { background: var(--blue); color: #fff; grid-template-rows: auto auto 1fr auto; }
.offer-main .tag { background: rgba(255, 255, 255, .16); color: #fff; }
.offer-big { font-family: var(--head); font-size: clamp(44px, 4.4vw, 60px); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.offer-main p { color: rgba(255, 255, 255, .86); }
.offer-main .btn { justify-self: start; align-self: end; }
.offer-spark { position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; color: rgba(255, 255, 255, .1); }

/* ---------- Услуги и цены ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-bottom: 32px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.tabs button:hover { border-color: var(--brand); background: var(--sky); color: var(--blue-ink); }
.tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.prices { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.panel { min-width: 0; }
.panel:not([hidden]) { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.price-list { border-top: 1px solid var(--line-strong); }
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-list span { font-size: 17px; font-weight: 500; line-height: 1.4; }
.price-list small { display: block; font-size: 14px; font-weight: 400; color: var(--mute); margin-top: 2px; }
.price-list b { font-family: var(--head); font-size: 20px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices-side { position: sticky; top: 110px; display: grid; gap: 16px; padding: 32px; border-radius: var(--r-lg); background: var(--sky); justify-items: start; }
.prices-side p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.prices-side .small { font-size: 13px; color: var(--mute); }
.side-phone { font-family: var(--head); font-size: 22px; font-weight: 500; transition: color .3s var(--ease); }
.side-phone:hover { color: var(--blue); }

/* ---------- Технологии ---------- */
.tech { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.tech-photo { border-radius: 120px var(--r-lg) var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 1; }
.tech-photo img { width: 100%; height: 100%; object-fit: cover; }
.tech-copy { display: grid; gap: 32px; }
.tech-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.tech-item div { display: grid; gap: 8px; }
.tech-item p { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.tech-item .price-inline { color: var(--blue); font-weight: 500; }

/* ---------- Специалисты ---------- */
.doctors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.dr { display: grid; gap: 8px; align-content: start; }
.dr img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 64px; background: #fff; margin-bottom: 12px; }
.dr .h4 { font-size: 18px; }
.dr p { color: var(--mute); font-size: 15px; line-height: 1.5; }

/* ---------- О центре ---------- */
.clinic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 16px; }
.clinic figure { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.clinic img { width: 100%; height: 100%; object-fit: cover; }
.clinic figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 14px; line-height: 1.4; color: var(--ink); }
.c1 { grid-column: span 7; grid-row: span 2; }
.c2 { grid-column: span 5; }
.c3 { grid-column: span 5; }
.c4 { grid-column: span 5; grid-row: span 2; }
.c5 { grid-column: span 4; grid-row: span 2; }
.c6 { grid-column: span 3; grid-row: span 2; }
.c5 img { object-position: 50% 60%; }
.quote { display: flex; gap: 20px; align-items: flex-start; max-width: 900px; margin: clamp(56px, 7vw, 96px) auto 0; text-align: left; }
.quote .spark { width: 32px; height: 32px; margin-top: 6px; }
.quote p { font-family: var(--head); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; letter-spacing: -.01em; }

/* ---------- Отзывы ---------- */
.rev-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.rev-score { display: flex; gap: 40px; align-items: center; padding: 20px 28px; border-radius: var(--r-lg); background: #fff; }
.score { display: grid; gap: 4px; justify-items: start; }
.score b { font-family: var(--head); font-size: 44px; font-weight: 500; line-height: 1; }
.score small { font-size: 13px; line-height: 1.4; color: var(--mute); }
.aspects { display: grid; gap: 8px; min-width: 300px; }
.aspects li { display: grid; grid-template-columns: 160px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.aspects i { height: 6px; border-radius: 6px; background: linear-gradient(var(--brand), var(--brand)) no-repeat left / var(--v) 100%, var(--sky); }
.aspects b { font-weight: 600; text-align: right; color: var(--ink); }
.reviews { columns: 3 320px; column-gap: 16px; }
.rev { break-inside: avoid; display: grid; gap: 12px; margin-bottom: 16px; padding: 28px; border-radius: var(--r-lg); background: #fff; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.rev header { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 4px; }
.rev header img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.rev header div { display: grid; line-height: 1.3; }
.rev header b { color: var(--ink); font-weight: 600; }
.rev time { font-size: 14px; color: var(--mute); }
.rev .stars svg { width: 14px; height: 14px; }

/* ---------- Запись и контакты ---------- */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-lg); background: var(--blue); color: #fff; }
.cta p { margin-top: 16px; color: rgba(255, 255, 255, .86); max-width: 36em; }
.cta-actions { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: end; }
.cta-phone { font-family: var(--head); font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; white-space: nowrap; transition: color .3s var(--ease); }
.cta-phone:hover { color: var(--brand); }
.cta-arc { position: absolute; left: 30%; right: -5%; bottom: -60px; width: 75%; height: 160px; pointer-events: none; }
.cta-arc path { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.cta.is-in .cta-arc path { stroke-dashoffset: 0; }
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(56px, 6vw, 88px); align-items: stretch; }
.contact-list { display: grid; border-top: 1px solid var(--line-strong); align-content: start; }
.contact-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--mute); font-size: 15px; padding-top: 2px; }
.contact-list dd { font-size: 17px; font-weight: 500; line-height: 1.55; }
.contact-list small { display: block; font-weight: 400; font-size: 14px; color: var(--mute); margin-top: 4px; }
.contact-list a { transition: color .3s var(--ease); }
.contact-list dd > a:hover { color: var(--blue); }
.map { position: relative; overflow: hidden; min-height: 400px; border-radius: var(--r-lg); background: var(--sky); }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.35) hue-rotate(-8deg) brightness(1.04); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 44px; height: 54px; transform: translate(-50%, -100%); color: var(--blue); filter: drop-shadow(0 6px 12px rgba(18, 34, 45, .3)); }
.map-label { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-size: 15px; line-height: 1.35; }

/* ---------- Подвал ---------- */
.ftr { padding: clamp(64px, 8vw, 96px) 0 32px; background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 40px; }
.ftr .brand { color: var(--brand); }
.ftr .brand span { color: rgba(255, 255, 255, .7); }
.ftr-brand { display: grid; gap: 20px; align-content: start; }
.ftr h4 { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .55); margin-bottom: 16px; }
.ftr nav, .ftr-col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.ftr nav a, .ftr-col a, .ftr-col button { transition: color .3s var(--ease); text-align: left; }
.ftr nav a:hover, .ftr-col a:hover, .ftr-col button:hover { color: var(--brand); }
.plates { display: flex; flex-wrap: wrap; gap: 8px; }
.plate { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; line-height: 1.3; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.plate:hover { border-color: var(--brand); background: rgba(131, 193, 236, .08); }
.plate b { color: #fff; font-weight: 600; }
.plate span { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .7); }
.plate svg { width: 13px; height: 13px; color: var(--gold); }
.ftr-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.ftr-legal .warn { font-size: 15px; color: rgba(255, 255, 255, .78); }

/* ---------- Модалки ---------- */
.modal { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); color: var(--ink); box-shadow: 0 24px 64px rgba(18, 34, 45, .3); }
.modal::backdrop { background: rgba(18, 34, 45, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-in { position: relative; display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); }
.modal-x { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--blue); transition: background-color .3s var(--ease), color .3s var(--ease); }
.modal-x:hover { background: var(--blue); color: #fff; }
.modal .h3 { padding-right: 48px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
.field input, .field select {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field select { appearance: none; -webkit-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='%2323699C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 20px; }
.field input:hover, .field select:hover { border-color: var(--brand); }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(131, 193, 236, .35); }
.field input.err { border-color: #C2413A; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.check.err span { color: #C2413A; }
.check button, .doc p button { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; transition: color .3s var(--ease); }
.check button:hover { color: var(--blue-ink); }
.note { font-size: 13px; color: var(--mute); text-align: center; }
.done { display: grid; justify-items: center; gap: 6px; padding: 16px; border-radius: 16px; background: var(--sky); text-align: center; color: var(--ink-2); font-size: 15px; }
.done svg.i { width: 32px; height: 32px; color: var(--blue); }
.done b { font-family: var(--head); font-size: 20px; font-weight: 500; color: var(--ink); }
.modal.doc { width: min(680px, calc(100% - 24px)); }
.modal.doc p { color: var(--ink-2); }

/* ---------- Появление ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .arc path, .cta-arc path { stroke-dashoffset: 0; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1320px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .hdr-main { gap: 16px; }
}
@media (max-width: 1100px) {
  .nav, .hdr-phone { display: none; }
  .burger { display: block; }
  .hdr-main .btn { margin-left: auto; }
  .hdr-main .btn + .btn { margin-left: 0; }
  .hero-grid, .tech, .contacts { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 680px; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .prices-side { position: static; }
  .tech-photo { max-width: 560px; }
  .doctors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rev-head { grid-template-columns: minmax(0, 1fr); }
  .rev-score { justify-self: start; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { justify-items: start; }
}
@media (max-width: 900px) {
  .hdr-top .hide-s { display: none; }
  .sec-head.row { grid-template-columns: minmax(0, 1fr); }
  .sec-note { text-align: left; }
  .clinic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .c1 { grid-column: 1 / -1; grid-row: span 2; }
  .c2, .c3, .c4, .c5, .c6 { grid-column: span 1; grid-row: span 1; }
  .c4 { grid-column: 1 / -1; grid-row: span 1; }
  .rev-score { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 650px) {
  :root { --hdr: 112px; }
  body { font-size: 16px; }
  .hdr-top-in { gap: 16px; }
  .hdr-top .hdr-info:nth-child(2) { display: none; }
  .hdr-main { height: 68px; }
  .hdr .hide-m { display: none; }
  .brand-logo { width: 124px; height: 30px; }
  .brand span { font-size: 8.5px; }
  .hero-visual { padding: 0 0 56px; }
  .hero-photo { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 72px; }
  .hero-free { right: 12px; top: 12px; left: 12px; font-size: 13px; }
  .hero-kid { right: 0; max-width: none; padding-right: 16px; }
  .quick, .why, .offers { grid-template-columns: minmax(0, 1fr); }
  .btns .btn { flex: 1 1 auto; }
  .doctors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clinic { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
  .c1, .c2, .c3, .c4, .c5, .c6 { grid-column: 1 / -1; grid-row: span 1; }
  .aspects { min-width: 0; width: 100%; }
  .aspects li { grid-template-columns: minmax(0, 1fr) 80px 40px; }
  .rev { padding: 22px; }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .map { min-height: 320px; }
  .map-label { flex-direction: column; align-items: stretch; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .price-list li { gap: 16px; }
  .price-list span { font-size: 16px; }
  .price-list b { font-size: 18px; }
}
@media (max-width: 400px) {
  .hdr-main { gap: 8px; }
  .brand-logo { width: 104px; height: 26px; }
  .brand span { font-size: 7px; letter-spacing: .04em; }
  .hdr-main .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .burger { width: 40px; height: 40px; }
  .burger i { left: 11px; }
  .burger i:first-child { top: 15px; }
  .burger i:last-child { top: 21px; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 30px; }
  .hdr-top .socials { display: none; }
  .doctors { gap: 12px; }
  .dr .h4 { font-size: 16px; }
  .quote { gap: 12px; }
}
