/* ==========================================================================
   Стоматологическая клиника «Огюст» — обновлённое оформление
   Все пути относительные. Сборка: _build/README
   ========================================================================== */

/* ---------- Шрифты (локальные, без внешних запросов) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --brand: #0e9aa7;
  --brand-600: #0c8593;
  --brand-700: #0a6c78;
  --brand-900: #07414a;
  --brand-tint: #e7f5f7;
  --brand-tint2: #f3fafb;

  --ink: #14232b;
  --ink-2: #3a5763;
  --muted: #6d8794;
  --line: #e0ebee;
  --line-2: #eef5f6;
  --bg: #ffffff;
  --bg-soft: #f6fafb;

  --warn-bg: #fff8ea;
  --warn-line: #f3d9a4;
  --warn-ink: #8a5a08;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-1: 0 1px 2px rgba(20, 35, 43, .06), 0 1px 1px rgba(20, 35, 43, .04);
  --shadow-2: 0 18px 40px -22px rgba(20, 35, 43, .30), 0 2px 8px rgba(20, 35, 43, .05);
  --shadow-3: 0 30px 60px -30px rgba(7, 65, 74, .45);

  --container: 1140px;
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .6em; font-weight: 700; line-height: 1.22; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.15em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:focus-visible { outline: 3px solid rgba(14, 154, 167, .45); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Сетка ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 44px 0; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.center { text-align: center; }
.lead { font-size: 1.09rem; color: var(--ink-2); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: 10px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease),
    background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(14, 154, 167, .75); }
.btn--primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 14px 30px -12px rgba(14, 154, 167, .85); }
.btn--ghost { background: #fff; color: var(--brand-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-tint2); }
.btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn--light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: .87rem; }

/* ---------- Верхняя информационная полоса ---------- */
.topbar {
  background: var(--brand-900); color: #cfe9ec; font-size: .82rem;
  letter-spacing: .01em;
}
.topbar__in { display: flex; align-items: center; gap: 22px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #eafafc; font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { flex: none; opacity: .8; }
.topbar__spacer { margin-left: auto; }

/* ---------- Хедер ---------- */
.header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line-2);
  transition: box-shadow .25s var(--ease);
}
.header.is-stuck { box-shadow: 0 8px 26px -18px rgba(20, 35, 43, .4); }
.header__in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { width: auto; height: 42px; }
.logo__tag { font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; margin: 0; }
.nav__list > li > a {
  display: flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .93rem;
}
.nav__list > li > a:hover { background: var(--brand-tint); color: var(--brand-700); }
.nav__list > li.is-current > a { background: var(--brand-tint); color: var(--brand-700); }
.nav__caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .5; }
.nav__sub {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 268px; margin: 0; padding: 8px;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__list > li:hover > .nav__sub,
.nav__list > li:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub li { margin: 0; }
.nav__sub a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: .92rem; }
.nav__sub a:hover { background: var(--brand-tint2); color: var(--brand-700); }
.header__cta { flex: none; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; padding: 0; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transform: translateX(-50%); transition: .2s var(--ease);
}
.burger span { top: 21px; }
.burger span::before { content: ''; top: -6px; left: 0; transform: none; }
.burger span::after { content: ''; top: 6px; left: 0; transform: none; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mnav {
  display: none; border-top: 1px solid var(--line-2); background: #fff;
  max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
}
.mnav.is-open { max-height: 82vh; overflow-y: auto; }
.mnav__list { list-style: none; margin: 0; padding: 8px 20px 20px; }
.mnav__list li { margin: 0; }
.mnav__list a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 600; }
.mnav__list .mnav__sub a { padding-left: 20px; font-weight: 500; color: var(--ink-2); }
.mnav__cta { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 54px 0 60px;
  background:
    radial-gradient(1000px 460px at 88% -10%, rgba(14, 154, 167, .16), transparent 66%),
    linear-gradient(180deg, var(--brand-tint2), #fff 78%);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero__text { max-width: 33ch; color: var(--ink-2); font-size: 1.08rem; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__badge { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.hero__badge svg { color: var(--brand); flex: none; }

/* Слайдер */
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-3); background: var(--brand-900); }
.slider__track { position: relative; aspect-ratio: 5 / 2; }
.slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.slider__slide.is-active { opacity: 1; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 24px 20px;
  background: linear-gradient(transparent, rgba(7, 65, 74, .82)); color: #fff;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
}
.slider__title { font-size: 1.06rem; font-weight: 700; color: #fff; line-height: 1.3; }
.slider__more { font-size: .85rem; font-weight: 600; color: #d5f2f5; flex: none; }
.slider__more:hover { color: #fff; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .9); color: var(--brand-900); display: grid; place-items: center; box-shadow: var(--shadow-1); opacity: .85; transition: .2s var(--ease); }
.slider__nav:hover { opacity: 1; background: #fff; }
.slider__nav--prev { left: 14px; }
.slider__nav--next { right: 14px; }
.slider__dots { position: absolute; top: 16px; right: 16px; display: flex; gap: 7px; }
.slider__dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; transition: .2s var(--ease); }
.slider__dot.is-active { background: #fff; width: 26px; border-radius: 999px; }

/* ---------- Плашка страницы ---------- */
.pagehead { background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; padding: 40px 0 44px; }
.pagehead h1 { color: #fff; margin-bottom: .25em; }
.pagehead p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 62ch; }
.crumbs { font-size: .82rem; color: rgba(255, 255, 255, .8); margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, .92); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { opacity: .55; margin: 0 8px; }

/* ---------- Карточки ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #cfe6ea; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .95rem; }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-600); margin-bottom: 16px;
}
.card__more { font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.card__more::after { content: '→'; transition: transform .18s var(--ease); }
.card__more:hover::after { transform: translateX(4px); }
.card--plain:hover { transform: none; box-shadow: var(--shadow-1); }

.media-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.media-card img { aspect-ratio: 5 / 2; object-fit: cover; width: 100%; }
.media-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.media-card__body .card__more { margin-top: auto; }

/* ---------- Статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.stat { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stat b { display: block; font-size: 1.5rem; color: var(--brand-700); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Отзывы ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-1); position: relative;
}
.quote::before {
  content: '\201C'; position: absolute; top: 6px; right: 22px; font-size: 5rem; line-height: 1;
  color: var(--brand-tint); font-family: Georgia, 'Times New Roman', serif;
}
.quote p { position: relative; font-size: .95rem; color: var(--ink-2); }
.quote__author { margin: auto 0 0; padding-top: 14px; font-weight: 700; color: var(--brand-700); font-size: .9rem; }

/* ---------- Прайс ---------- */
.price-group { margin-bottom: 40px; }
.price-group > h2, .price-group > h3 { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; }
.price-group > h2::after, .price-group > h3::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; align-items: baseline; gap: 14px; padding: 13px 4px;
  border-bottom: 1px dashed var(--line); margin: 0;
}
.price-list li:last-child { border-bottom: 0; }
.price-list .price-name { flex: 1; min-width: 0; }
.price-list .price-dots { flex: 0 0 auto; color: var(--line); }
.price-list .price-val { flex: none; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-note { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.price-list li.has-note { flex-wrap: wrap; }
.price-list li.has-note .price-note { flex-basis: 100%; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { background: var(--brand-tint2); color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #cfe6ea; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-table tbody tr:hover { background: var(--brand-tint2); }

/* ---------- Заметки / предупреждения ---------- */
.note {
  border-radius: var(--radius); padding: 20px 24px; border: 1px solid var(--line);
  background: var(--bg-soft); font-size: .92rem;
}
.note--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.note--brand { background: var(--brand-tint2); border-color: #cfe6ea; }
.note h4 { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }
.mustknow { list-style: none; padding: 0; margin: 0; }
.mustknow li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.mustknow li:last-child { border-bottom: 0; }
.mustknow b { color: var(--ink); }
.mustknow .ph { color: var(--ink); }

/* Заглушки для данных, которые нужно заполнить заказчику */
.ph {
  background: #fff6d9; border-bottom: 2px dashed #e0b23c; padding: 0 4px;
  border-radius: 3px; font-style: normal; white-space: nowrap;
}

/* ---------- Галерея ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid a {
  display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative;
  box-shadow: var(--shadow-1); background: var(--brand-tint);
}
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .45s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a::after {
  content: ''; position: absolute; inset: 0; background: rgba(7, 65, 74, .0); transition: background .3s var(--ease);
}
.gallery-grid a:hover::after { background: rgba(7, 65, 74, .18); }

.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.doc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; box-shadow: var(--shadow-1); text-align: center; display: block;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.doc-card img { border-radius: 6px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.doc-card span { display: block; margin-top: 10px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }

/* Лайтбокс */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(8, 22, 27, .92); padding: 20px;
}
.lb.is-open { display: grid; }
.lb__img { max-width: min(1100px, 94vw); max-height: 84vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-3); }
.lb__cap { color: #d8eef1; text-align: center; margin-top: 14px; font-size: .9rem; }
.lb__close, .lb__prev, .lb__next {
  position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid;
  place-items: center; font-size: 1.4rem; line-height: 1; transition: background .2s var(--ease);
}
.lb__close:hover, .lb__prev:hover, .lb__next:hover { background: rgba(255, 255, 255, .28); }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 20px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- Форма ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: .87rem; font-weight: 600; color: var(--ink); }
.field .req { color: #d64545; }
.input, .select, .textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #9db0ba; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 154, 167, .13);
}
.input:user-invalid, .textarea:user-invalid { border-color: #e08b8b; }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236d8794' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.consent input { width: 19px; height: 19px; flex: none; margin: 2px 0 0; accent-color: var(--brand); }
.consent label { margin: 0; font-weight: 400; }
.consent a { text-decoration: underline; text-decoration-color: rgba(14,154,167,.4); text-underline-offset: 2px; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__hint { font-size: .82rem; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; overflow: hidden; }
.alert { border-radius: 12px; padding: 15px 18px; font-size: .92rem; display: none; }
.alert.is-on { display: block; }
.alert--ok { background: #e9f8ef; border: 1px solid #b6e3c8; color: #1f6b41; }
.alert--err { background: #fdecec; border: 1px solid #f2c0c0; color: #96292a; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-1); }
.side-card h3 { margin-top: 0; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); margin: 0; font-size: .92rem; }
.hours li:last-child { border-bottom: 0; }
.hours .day { color: var(--muted); }
.hours .time { font-weight: 700; color: var(--ink); white-space: nowrap; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.contact-line:last-child { border-bottom: 0; }
.contact-line svg { color: var(--brand); flex: none; margin-top: 3px; }
.contact-line b { display: block; color: var(--ink); }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); background: var(--bg-soft); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-fallback { display: grid; place-items: center; height: 380px; text-align: center; padding: 24px; }

/* ---------- Специалисты ---------- */
.doctors-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.doctors-grid .doctor {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 18px; box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.doctors-grid .doctor::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand);
}
.doctors-grid .doctor b { display: block; color: var(--ink); font-size: .98rem; line-height: 1.35; }
.doctors-grid .doctor span { display: block; margin-top: 6px; font-size: .84rem; color: var(--muted); }
.doctors-grid--compact { grid-template-columns: 1fr; gap: 10px; }
.doctors-grid--compact .doctor { padding: 13px 16px; }
.doctors-grid--compact .doctor::before { width: 3px; }

/* ---------- Юридические страницы ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.24rem; margin-top: 38px; }
.legal h3 { font-size: 1.03rem; margin-top: 22px; }
.legal ul, .legal ol { color: var(--ink-2); }
.legal .legal-meta { font-size: .85rem; color: var(--muted); }
.legal-toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 34px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
.legal-toc a { font-size: .92rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: .93rem; }
.legal table th, .legal table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal table th { background: var(--brand-tint2); }
.anchor { scroll-margin-top: 96px; }

/* ---------- CTA-полоса ---------- */
.cta { background: linear-gradient(135deg, var(--brand-700), var(--brand-600)); color: #fff; border-radius: var(--radius-lg); padding: 44px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; box-shadow: var(--shadow-3); }
.cta__text { flex: 1 1 320px; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.footer { background: #0c2b33; color: #9fc0c6; padding: 56px 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer a { color: #cfe6ea; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer .logo img { height: 40px; filter: brightness(0) invert(1); opacity: .95; }
.footer__about p { color: #8fb2b9; font-size: .89rem; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 26px 0 30px;
  font-size: .84rem; color: #86a9b0;
}
.footer__legal p { margin: 0 0 8px; }
.footer__legal strong { color: #cfe6ea; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.footer__legal-links { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal-links li { margin: 0; }
.contraindication {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; padding: 13px 18px; color: #ffd9a8; font-weight: 600;
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; font-size: .86rem;
}
.contraindication svg { flex: none; margin-top: 2px; color: #f5b95c; }

/* ---------- Cookie-баннер ---------- */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 150;
  max-width: 580px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 20px 22px;
  display: none; gap: 16px; align-items: flex-start;
}
.cookie.is-on { display: flex; }
.cookie.lb-hide { display: none !important; }
.cookie svg { flex: none; color: var(--brand); margin-top: 2px; }
.cookie p { margin: 0 0 12px; font-size: .88rem; color: var(--ink-2); }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie__more { font-size: .84rem; }

/* ---------- К началу ---------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 140; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand-700);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transition: .25s var(--ease);
}
.totop.is-on { opacity: 1; visibility: visible; }
.totop:hover { background: var(--brand-tint); }

/* ---------- Анимация появления ----------
   Скрываем только когда JS реально работает (html.js) — иначе контент
   всегда видим: важно для доступности, печати и поисковых роботов. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal,
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media print { .js .reveal { opacity: 1 !important; transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .docs-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__in { gap: 34px; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav, .header__cta, .topbar__item--hours { display: none; }
  .burger { display: block; margin-left: auto; }
  .mnav { display: block; }
  .logo img { height: 38px; }
  .hero { padding: 36px 0 44px; }
  .hero__in { grid-template-columns: 1fr; gap: 30px; }
  .hero__text { max-width: none; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 48px 0; }
  .price-list li { flex-wrap: wrap; }
  .price-list .price-name { flex-basis: 100%; }
  .price-list .price-dots { display: none; }
  .price-list .price-val { margin-left: auto; }
  .cta { padding: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
  .slider__nav { width: 34px; height: 34px; }
  .slider__cap { padding: 38px 16px 14px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .totop { right: 12px; bottom: 12px; }
  .section { padding: 40px 0; }
  .map-frame iframe { height: 300px; }
}
@media print {
  .header, .topbar, .cookie, .totop, .mnav, .footer__grid, .slider__nav { display: none !important; }
  .footer { background: #fff; color: #000; }
  .footer a, .footer h4 { color: #000; }
  .contraindication { color: #000; border-color: #999; background: none; }
}
