/* Центр Канаевой — концепция «Свежесть» */
:root {
  --green: #213325;
  --green-2: #2c4331;
  --green-3: #18261b;
  --ink: #17211b;
  --text: #3c453f;
  --muted: #5a625c;
  --muted-2: #6b726c;
  --line: #e6e4de;
  --line-2: #dad8d0;
  --line-3: #cfcdc4;
  --warm: #f1f0ec;
  --mint: #e7eee6;
  --yellow: #f8c857;
  --photo: #e9e7e4;
  --white: #fff;
  --pad: 80px;
  --radius: 24px;
  --shadow: 0 16px 40px rgba(23, 33, 27, 0.12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.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; }

h1, h2, h3 { margin: 0; color: var(--green); font-weight: 600; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; }
h3 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: 100px; padding-bottom: 100px; }
.section--tight-top { padding-top: 0; }
.bg-warm { background: var(--warm); }
.bg-white { background: var(--white); }
.bg-green { background: var(--green); color: var(--white); }
.bg-green h2, .bg-green h3 { color: var(--white); }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted-2); }
.tbd { color: var(--muted-2); font-weight: 500; border-bottom: 1px dotted var(--line-3); cursor: help; }
.bg-green .tbd { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.4); }

/* Демо-плашка */
.demo-bar { background: var(--green-3); color: rgba(255,255,255,.86); font-size: 13px; text-align: center; padding: 8px 16px; line-height: 1.4; }
.demo-bar b { color: var(--yellow); font-weight: 600; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border-radius: 999px; border: 1px solid transparent; font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap; transition: background .15s, opacity .15s; }
.btn:hover { opacity: 1; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-2); }
.btn-accent { background: var(--yellow); color: var(--green); }
.btn-accent:hover { background: #f2bd43; }
.btn-outline { border-color: var(--line-3); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.diag .text > .btn, .col-intro > .btn, .stack > .btn, .about-text > .link-arrow, .col-intro > .link-arrow, .hero-text > .link-arrow { align-self: flex-start; }
.btn svg, .link-arrow svg { flex-shrink: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--green); }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--green); flex-shrink: 0; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; background: var(--white); border-radius: 999px; font-size: 14px; font-weight: 500; align-self: flex-start; }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--mint); font-size: 13px; font-weight: 600; color: var(--green); }
.chip-dark { background: var(--green); color: var(--white); }
.chip-white { background: var(--white); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 8px 14px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 500; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header .wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 54px; width: auto; }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-color: var(--yellow); font-weight: 600; color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.2; }
.header-phone b { font-size: 16px; font-weight: 700; }
.header-phone span { font-size: 12px; color: var(--muted-2); }
.burger, .header-call { display: none; }
.mobile-nav { display: none; }

/* Навигационная цепочка */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; font-size: 14px; color: var(--muted-2); }
.crumbs span[aria-current] { color: var(--ink); }

/* Заголовки секций */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.section-head p { max-width: 460px; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* Главная: первый экран */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 64px; padding-top: 72px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; padding-bottom: 72px; }
.hero-text h1 { font-size: clamp(40px, 4.6vw, 66px); }
.hero-media { position: relative; min-height: 620px; }
.hero-photo { position: absolute; right: 0; bottom: 0; width: 440px; height: 600px; border-radius: 32px 32px 0 0; overflow: hidden; background: var(--photo); }
.hero-photo img, .cover { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.badge-round { position: absolute; left: 0; top: 36px; width: 132px; height: 132px; border-radius: 50%; background: var(--yellow); color: var(--green); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.badge-round small { font-size: 13px; font-weight: 500; }
.badge-round b { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.float-card { position: absolute; left: 0; bottom: 150px; width: 250px; padding: 16px 18px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); }
.float-card b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.float-card span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.team-pill { position: absolute; left: 24px; bottom: 44px; display: flex; align-items: center; gap: 14px; padding: 10px 20px 10px 10px; background: var(--green); border-radius: 999px; color: var(--white); font-size: 14px; font-weight: 600; }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--green); object-fit: cover; }
.avatars img + img { margin-left: -12px; }

/* Формы */
.form-card { padding: 24px; background: var(--white); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.form-card--lg { padding: 36px; border-radius: 28px; gap: 18px; }
.form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.form-head b { font-size: 18px; font-weight: 600; }
.form-head span { font-size: 14px; color: var(--muted-2); }
.form-row { display: flex; gap: 12px; align-items: flex-end; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); min-width: 0; }
.field input, .field select, .field textarea { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 16px; color: var(--ink); background: var(--white); }
.field select { padding: 0 12px; }
.field textarea { height: 110px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(33, 51, 37, .12); }
.field.has-error input { border-color: #b3261e; }
.field .error { display: none; font-size: 12px; color: #b3261e; }
.field.has-error .error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--green); }
.consent.has-error { color: #b3261e; }
.consent a, .form-note a { text-decoration: underline; }
.form-note { font-size: 12px; line-height: 1.5; color: var(--muted-2); }
.time-chips { display: flex; gap: 8px; }
.time-chips label { flex: 1; position: relative; }
.time-chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.time-chips span { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.time-chips input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); }
.time-chips input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.form-links { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--green); }
.form-links a { display: inline-flex; align-items: center; gap: 8px; }
.form-success { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.form-success .ok { width: 52px; height: 52px; border-radius: 50%; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.form-success b { font-size: 20px; font-weight: 600; color: var(--green); }
.form-success p { font-size: 15px; color: var(--muted); }

/* Карточки направлений */
.dir-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dir-card { display: flex; flex-direction: column; gap: 10px; min-height: 236px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.dir-card:hover { opacity: 1; border-color: var(--line-3); box-shadow: 0 10px 30px rgba(23,33,27,.06); }
.dir-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.icon-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dir-card b { margin-top: 14px; font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--green); }
.dir-card .desc { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.dir-card--accent { background: var(--yellow); border-color: var(--yellow); color: var(--green); }
.dir-card--accent .desc { color: var(--green); }
.dir-card--accent .more { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }

/* О центре */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.about-photo { height: 560px; border-radius: 32px; overflow: hidden; background: var(--photo); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.about-text { display: flex; flex-direction: column; gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; color: var(--green); line-height: 1.2; }
.stats span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.figcap { margin-top: 12px; font-size: 13px; color: var(--muted-2); }

/* Врачи */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 18px; border: none; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 500; color: var(--ink); }
.bg-white .filters button { background: var(--warm); }
.filters button[aria-pressed="true"] { background: var(--green); color: var(--white); }
.arrows { display: flex; gap: 12px; }
.arrows button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-3); background: transparent; color: var(--green); display: flex; align-items: center; justify-content: center; }
.arrows button:last-child { background: var(--green); border-color: var(--green); color: var(--white); }
.doc-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.doc-scroller::-webkit-scrollbar { display: none; }
.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.doc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doc-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.bg-white .doc-card { background: var(--warm); }
.doc-card[hidden] { display: none; }
.doc-card .ph { aspect-ratio: 3 / 3.6; background: var(--photo); overflow: hidden; }
.doc-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .3s; }
.doc-card:hover .ph img { transform: scale(1.02); }
.doc-card .body { flex-grow: 1; padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.doc-card .name { font-size: 18px; font-weight: 600; line-height: 1.3; }
.doc-card .role { font-size: 14px; line-height: 1.45; color: var(--muted); }
.doc-card .meta { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.doc-card .meta a { font-size: 14px; font-weight: 600; color: var(--green); white-space: nowrap; }
.bg-white .doc-card .chip { background: var(--white); }
.initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(0deg, var(--mint), var(--mint)); color: var(--green); font-size: 64px; font-weight: 600; letter-spacing: -0.02em; }
.initials--sm { font-size: 40px; }

/* Галерея */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 280px 280px; gap: 20px; }
.bento figure, .photo-card { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--photo); }
.bento img, .photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento .b1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento .b2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.bento .b3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.bento .b4 { grid-column: 3 / 5; grid-row: 2 / 3; }
.cap { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 600; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gallery figure { margin: 0; position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--photo); }
.gallery figure.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Шаги */
.two-col { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 80px; }
.two-col--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.col-intro { display: flex; flex-direction: column; gap: 20px; }
.col-intro p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.steps { border-bottom: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.num { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--green); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.num--sm { width: 36px; height: 36px; font-size: 16px; flex-shrink: 0; }
.num--md { width: 48px; height: 48px; font-size: 19px; }
.step > div > b { display: block; font-size: 22px; font-weight: 600; color: var(--green); }
.step > div > span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.step-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--white); border-radius: var(--radius); }
.step-card b { margin-top: 8px; font-size: 20px; font-weight: 600; color: var(--green); }
.step-card span { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Зелёный блок контактов и призыв записаться */
.contacts-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.contacts-band .info { display: flex; flex-direction: column; gap: 28px; }
.big-phone { font-size: clamp(32px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.info-rows { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.82); }
.info-rows div { display: flex; gap: 14px; align-items: flex-start; }
.info-rows svg { color: var(--yellow); flex-shrink: 0; margin-top: 1px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.entrance { position: relative; min-height: 440px; border-radius: 28px; overflow: hidden; background: var(--green-2); margin: 0; }
.entrance img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entrance figcaption { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: var(--white); border-radius: 20px; color: var(--ink); }
.entrance figcaption b { display: block; font-size: 16px; font-weight: 600; }
.entrance figcaption > span > span { font-size: 14px; color: var(--muted); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
.cta .t { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.cta h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.cta p { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.8); }
.cta .r { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.cta .r .big-phone { font-size: 32px; }

/* Страница врача */
.doc-hero { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 72px; align-items: start; padding-top: 32px; padding-bottom: 80px; }
.doc-hero .ph { position: relative; aspect-ratio: 3 / 4; border-radius: 32px; overflow: hidden; background: var(--photo); }
.doc-hero .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doc-hero .ph .cap { font-size: 14px; padding: 10px 16px; left: 20px; bottom: 20px; right: 20px; width: fit-content; }
.doc-hero .text { display: flex; flex-direction: column; gap: 24px; }
.doc-hero .role { font-size: 18px; color: var(--muted); margin-top: 10px; }
.doc-hero .intro { max-width: 680px; font-size: 18px; line-height: 1.6; color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts div { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--white); border-radius: 20px; }
.facts b { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--green); line-height: 1.15; }
.facts div > span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.facts .tbd { font-size: 22px; }
.cond-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cond { display: flex; gap: 14px; align-items: flex-start; min-height: 96px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; }
.cond .ck { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.cond div > b { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.cond div > span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split .ph { height: 480px; border-radius: 28px; overflow: hidden; background: var(--photo); }
.split .ph img { width: 100%; height: 100%; object-fit: cover; }
.split .text { display: flex; flex-direction: column; gap: 20px; }
.split .text p { font-size: 17px; line-height: 1.65; color: var(--text); }
.note-card { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: var(--white); border-radius: 20px; font-size: 15px; line-height: 1.5; }
.note-card::before { content: ""; flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }
.bg-white .note-card { background: var(--warm); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row b { font-size: 17px; font-weight: 500; }
.row .chip { background: var(--warm); color: var(--muted); font-weight: 500; white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.community { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: var(--warm); border-radius: 20px; font-size: 16px; line-height: 1.4; }
.community .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--green); display: flex; align-items: center; justify-content: center; }
.docs-ph { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.docs-ph div { height: 160px; border: 1.5px dashed var(--line-3); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8a918b; font-size: 13px; text-align: center; padding: 8px; }
.mini-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mini-doc { display: flex; gap: 18px; align-items: center; padding: 16px; background: var(--white); border-radius: var(--radius); }
.mini-doc .ph { width: 120px; height: 150px; flex-shrink: 0; border-radius: 16px; overflow: hidden; background: var(--photo); }
.mini-doc .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.mini-doc .t { display: flex; flex-direction: column; gap: 6px; }
.mini-doc .t > b { font-size: 17px; font-weight: 600; line-height: 1.3; }
.mini-doc .t > span { font-size: 14px; color: var(--muted); }
.mini-doc .chip { align-self: flex-start; margin-top: 4px; font-size: 12px; }

/* Страница направления */
.dir-hero { display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 64px; align-items: center; padding-top: 32px; padding-bottom: 80px; }
.dir-hero .text { display: flex; flex-direction: column; gap: 24px; }
.dir-hero .ph { height: 600px; border-radius: 32px; overflow: hidden; background: var(--photo); }
.dir-hero .ph img { width: 100%; height: 100%; object-fit: cover; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; background: var(--white); border-radius: 20px; }
.quick div { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; }
.quick div + div { border-left: 1px solid var(--line); }
.quick small { font-size: 13px; color: var(--muted-2); }
.quick b { font-size: 20px; font-weight: 600; color: var(--green); }
.quick .avatars img { width: 32px; height: 32px; border-color: var(--white); }
.quick .avatars img + img { margin-left: -8px; }
.diag { padding: 48px 56px; border-radius: 32px; background: var(--yellow); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; color: var(--green); }
.diag h2 { font-size: clamp(30px, 3.4vw, 48px); }
.diag .text { display: flex; flex-direction: column; gap: 20px; }
.diag p { max-width: 620px; font-size: 18px; line-height: 1.55; }
.diag-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.diag-facts div { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(33,51,37,.25); }
.diag-facts small { font-size: 13px; font-weight: 500; }
.diag-facts b { font-size: 20px; font-weight: 600; }
.diag-facts .tbd { color: var(--green); border-color: rgba(33,51,37,.4); }
.diag .ph { height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--photo); }
.diag .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.complaints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.complaints--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.complaints--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.complaints--1 { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.complaint { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.complaint .icon-circle { width: 52px; height: 52px; }
.complaint b { margin-top: 6px; font-size: 20px; font-weight: 600; color: var(--green); }
.complaint ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.price-card { padding: 8px 28px; background: var(--white); border-radius: var(--radius); }
.bg-white .price-card { background: var(--warm); }
.price-row { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.price-row:last-child { border-bottom: none; }
.price-row .v { font-weight: 600; color: var(--green); white-space: nowrap; }
.price-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border-radius: 20px; }
.bg-white .faq details { background: var(--warm); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Контакты */
.info-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.info-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--white); border-radius: var(--radius); }
.info-card .icon-circle { width: 48px; height: 48px; }
.info-card small { margin-top: 6px; font-size: 14px; color: var(--muted-2); }
.info-card .v { font-size: 21px; font-weight: 600; line-height: 1.35; }
.info-card .v-phone { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.info-card .bottom { margin-top: auto; padding-top: 8px; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.hours-row:last-child { border-bottom: none; }
.hours-row b { font-weight: 600; color: var(--green); }
.hours-row em { font-style: normal; color: var(--muted-2); }
.map { position: relative; height: 520px; border-radius: 32px; overflow: hidden; background: #e9ede6; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card { position: absolute; left: 32px; top: 32px; width: 340px; padding: 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.map-card img { height: 44px; width: auto; align-self: flex-start; }
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.howto .ph { height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--photo); }
.howto .ph img { width: 100%; height: 100%; object-fit: cover; }
.howto .t { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }
.howto .t > span > b { display: block; font-size: 20px; font-weight: 600; color: var(--green); }
.howto .t > span > span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.soft-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.soft-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--warm); font-size: 14px; color: var(--text); }
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 640px; gap: 64px; align-items: start; }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--white); border-radius: 20px; }
.contact-link .icon-circle { width: 44px; height: 44px; }
.contact-link > span:last-child > b { display: block; font-size: 16px; font-weight: 600; }
.contact-link > span:last-child > span { display: block; font-size: 14px; color: var(--muted-2); }
.req-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.req-row span:first-child { color: var(--muted-2); }
.org-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--warm); border-radius: 20px; }
.org-card b { font-size: 16px; font-weight: 600; line-height: 1.4; }
.org-card span { font-size: 14px; color: var(--muted); }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.doc-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-3); font-size: 14px; font-weight: 600; color: var(--green); }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; color: var(--text); }
.prose h2 { margin-top: 24px; font-size: 28px; }

/* Подвал */
.footer { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-brand img { height: 64px; width: auto; align-self: flex-start; }
.footer-brand p { max-width: 320px; font-size: 14px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.footer-col b { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--green); }
.footer-col .ph { font-weight: 700; color: var(--ink); }
.footer-legal { display: flex; justify-content: space-between; gap: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.footer-legal nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal nav a { text-decoration: underline; }
.warning { padding: 20px; border: 1px solid var(--line); border-radius: 16px; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }

/* Мобильная панель */
.mobile-bar { display: none; }

/* Окно записи */
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: none; border-radius: 28px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(23, 33, 27, .55); }
.modal .form-card { padding: 32px; gap: 16px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-head b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--green); }
.modal-head p { margin-top: 6px; font-size: 14px; color: var(--muted-2); }
.modal-close { width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--warm); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding-top: 80px; padding-bottom: 80px; }

/* ———— Адаптив ———— */
@media (max-width: 1240px) {
  :root { --pad: 40px; }
  .nav { gap: 20px; font-size: 14px; }
  .header-phone { display: none; }
  .hero, .dir-hero { grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; }
  .hero-photo { width: 380px; height: 540px; }
  .hero-media { min-height: 560px; }
  .doc-hero { grid-template-columns: 380px minmax(0, 1fr); gap: 48px; }
  .dir-grid, .doc-grid, .step-cards, .complaints { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-scroller { grid-auto-columns: calc((100% - 40px) / 3); }
  .booking { grid-template-columns: minmax(0, 1fr) 520px; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mini-docs { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nav, .header-actions .icon-btn, .header-actions .btn { display: none; }
  .burger, .header-call { display: inline-flex; width: 48px; height: 48px; border: none; background: transparent; color: var(--green); align-items: center; justify-content: center; }
  .header-actions { gap: 0; }
  .header .wrap { height: 68px; padding-right: 8px; }
  .logo img { height: 44px; }
  .mobile-nav { position: fixed; inset: var(--nav-top, 68px) 0 0 0; z-index: 49; background: var(--white); padding: 24px 20px 120px; overflow-y: auto; flex-direction: column; gap: 4px; }
  body.nav-open .mobile-nav { display: flex; }
  body.nav-open { overflow: hidden; }
  .mobile-nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; color: var(--green); }
  .mobile-nav .btn { margin-top: 20px; border-bottom: none; font-size: 17px; color: var(--white); }
  .mobile-nav .contacts { margin-top: 24px; font-size: 15px; color: var(--muted); }
  .hero, .dir-hero, .doc-hero, .about, .two-col, .two-col--even, .split, .contacts-band, .booking, .diag { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 32px; padding-top: 40px; }
  .hero-text { padding-bottom: 0; }
  .hero-media { min-height: 0; height: 520px; }
  .hero-photo { left: 0; right: 0; width: auto; height: 100%; border-radius: 28px 28px 0 0; }
  .dir-hero .ph { height: 420px; }
  .doc-hero .ph { max-width: 460px; }
  .about-photo { height: 420px; }
  .diag .ph { height: 380px; max-width: 360px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta .r { align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .howto, .info-cards, .cond-grid, .complaints--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 260px 200px 200px; }
  .bento .b1 { grid-column: 1 / 3; grid-row: 1 / 2; }
  .bento .b2 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .bento .b3 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .bento .b4 { grid-column: 1 / 3; grid-row: 3 / 4; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-card { left: 16px; top: 16px; width: calc(100% - 32px); max-width: 340px; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; --radius: 20px; }
  body { padding-bottom: 84px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section--tight-top { padding-top: 0; }
  .lead { font-size: 17px; }
  .demo-bar { font-size: 12px; }
  .section-head { margin-bottom: 32px; }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row .btn { width: 100%; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card--lg { padding: 24px; }
  .hero-media { height: 440px; }
  .badge-round { width: 96px; height: 96px; top: 16px; left: 16px; }
  .badge-round b { font-size: 24px; }
  .float-card { display: none; }
  .team-pill { left: 16px; bottom: 16px; }
  .dir-grid, .doc-grid, .doc-grid--3, .step-cards, .step-cards--3, .complaints, .complaints--2, .complaints--3, .howto, .info-cards, .cond-grid, .facts, .diag-facts, .stats, .quick { grid-template-columns: minmax(0, 1fr); }
  .quick div + div { border-left: none; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats b { font-size: 24px; }
  .doc-scroller { grid-auto-columns: 78%; }
  .dir-card { min-height: 0; }
  .diag { padding: 28px 22px; gap: 28px; }
  .diag .ph { height: 320px; }
  .step { grid-template-columns: 56px minmax(0, 1fr); }
  .num { width: 44px; height: 44px; font-size: 17px; }
  .entrance { min-height: 380px; }
  .entrance figcaption { flex-direction: column; align-items: flex-start; }
  .dir-hero .ph { height: 320px; }
  .split .ph { height: 320px; }
  .about-photo { height: 280px; }
  .howto .ph { height: 300px; }
  .map { height: 460px; }
  .map-card { top: auto; bottom: 16px; }
  .docs-ph { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-doc .ph { width: 96px; height: 120px; }
  .req-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-legal { flex-direction: column; }
  .warning { font-size: 13px; }
  .time-chips span { height: 44px; font-size: 13px; }
  .arrows { display: none; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 84px; padding: 12px 16px 18px; background: var(--white); box-shadow: 0 -8px 24px rgba(23,33,27,.08); gap: 10px; }
  .mobile-bar .icon-btn { width: 54px; height: 54px; border-color: var(--line-2); }
  .mobile-bar .btn { flex: 1; min-height: 54px; }
}

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