/* ==========================================================
   Кабинет здоровья доктора Горшечникова — стили
   ========================================================== */
:root {
  --navy-900: #081726;
  --navy-800: #0c1f33;
  --navy-700: #13304d;
  --navy-600: #1d4268;
  --ivory: #f7f3ec;
  --ivory-2: #efe8dc;
  --sand: #e9dfcf;
  --gold: #c9a27a;
  --gold-2: #dcbd96;
  --gold-3: #a8825a;
  --ink: #142233;
  --muted: #5d6a78;
  --line: rgba(20, 34, 51, .12);
  --white: #fff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 60px -30px rgba(8, 23, 38, .35);
  --shadow-sm: 0 12px 30px -16px rgba(8, 23, 38, .3);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--gold); color: var(--navy-900); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); box-shadow: 0 14px 30px -12px rgba(201,162,122,.7); }
.btn--gold:hover { box-shadow: 0 20px 40px -14px rgba(201,162,122,.9); }
.btn--dark { --bg: var(--navy-800); --fg: var(--ivory); }
.btn--dark:hover { --bg: var(--navy-700); }
.btn--ghost { background: rgba(255,255,255,.06); color: var(--ivory); border-color: rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--ghost-dark { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--ghost-dark:hover { border-color: var(--navy-800); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 17px 30px; font-size: 15.5px; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-2); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,122,.2); animation: pulse 2.4s infinite; }
.hero .eyebrow::before { display: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(201,162,122,0); } }

/* ==========================================================
   INTRO
   ========================================================== */
.intro { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: 200; background: transparent; display: grid; place-items: center; pointer-events: auto; cursor: pointer; }
.intro__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--navy-900); transition: transform 1.1s cubic-bezier(.77, 0, .18, 1); }
.intro__panel--top { top: 0; background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.intro__panel--bottom { bottom: 0; background: linear-gradient(0deg, var(--navy-900), var(--navy-800)); }
.intro__center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; transition: opacity .5s, transform .9s var(--ease); }
.intro__mark { width: 132px; height: auto; overflow: visible; }
.intro__mark path { stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 10px rgba(201,162,122,.45)); }
.intro.is-run .intro__mark .d1 { animation: draw 1.1s .1s var(--ease) forwards; }
.intro.is-run .intro__mark .d2 { animation: draw .9s .45s var(--ease) forwards; }
.intro.is-run .intro__mark .d3 { animation: draw .5s .95s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro__title { text-align: center; color: var(--ivory); }
.intro__line { display: block; overflow: hidden; }
.intro__line > span { display: block; font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); line-height: 1.1; transform: translateY(110%); }
.intro__line--sub > span { font-family: var(--sans); font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-2); margin-top: 8px; }
.intro.is-run .intro__line > span { animation: rise .9s .7s var(--ease) forwards; }
.intro.is-run .intro__line--sub > span { animation-delay: .9s; }
@keyframes rise { to { transform: none; } }
.intro__bar { width: 180px; height: 1px; background: rgba(255,255,255,.15); overflow: hidden; }
.intro__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.intro.is-run .intro__bar i { animation: bar 1.7s .2s var(--ease) forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.intro.is-out { pointer-events: none; }
.intro.is-out .intro__center { opacity: 0; transform: scale(.92) translateY(-10px); }
.intro.is-out .intro__panel--top { transform: translateY(-101%); transition-delay: .25s; }
.intro.is-out .intro__panel--bottom { transform: translateY(101%); transition-delay: .25s; }
.intro.is-done { display: none; }

/* ==========================================================
   HEADER
   ========================================================== */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: flex; align-items: center; color: var(--ivory); transition: background .4s, color .4s, box-shadow .4s, height .4s; }
.header.is-scrolled { --header-h: 70px; background: rgba(247, 243, 236, .88); color: var(--ink); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { width: 46px; height: auto; }
.logo__mark path { stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-family: var(--serif); font-size: 21px; font-weight: 700; }
.logo__text small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 600; }
.nav a { position: relative; padding: 6px 0; opacity: .85; transition: opacity .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__phone { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.header__phone span { font-weight: 800; font-size: 15.5px; }
.header__phone small { font-size: 11.5px; opacity: .65; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; background: transparent; cursor: pointer; position: relative; opacity: .9; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 80px; background: var(--navy-800); color: var(--ivory); overflow: hidden; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero__glow--1 { width: 620px; height: 620px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(201,162,122,.35), transparent 65%); animation: floaty 14s ease-in-out infinite; }
.hero__glow--2 { width: 520px; height: 520px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(29,66,104,.9), transparent 65%); animation: floaty 18s ease-in-out infinite reverse; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
@keyframes floaty { 50% { transform: translate(-40px, 30px) scale(1.08); } }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6.2vw, 86px); line-height: .98; letter-spacing: -.01em; margin: 26px 0 28px; }
.hero__title em { color: var(--gold-2); font-weight: 500; }
.hero-line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-line > span { display: block; transform: translateY(105%); }
.hero__lead { max-width: 520px; font-size: 17.5px; color: rgba(247,243,236,.75); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 0; }
.hero-in { opacity: 0; transform: translateY(24px); }

body.is-ready .hero-line > span { transition: transform 1.2s var(--ease); transform: none; }
body.is-ready .hero-line:nth-child(2) > span { transition-delay: .1s; }
body.is-ready .hero-line:nth-child(3) > span { transition-delay: .2s; }
body.is-ready .hero-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
body.is-ready .hero__lead { transition-delay: .35s; }
body.is-ready .hero__actions { transition-delay: .45s; }
body.is-ready .hero__address { transition-delay: .8s; }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__arch { position: relative; width: min(440px, 100%); aspect-ratio: 4 / 5.4; }
.hero__arch-ring { position: absolute; inset: -18px; border: 1px solid rgba(201,162,122,.45); border-radius: 260px 260px 28px 28px; transform: scale(.9); opacity: 0; }
.hero__photo { position: absolute; inset: 0; margin: 0; border-radius: 240px 240px 24px 24px; overflow: hidden; background: var(--navy-700); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); clip-path: inset(100% 0 0 0 round 240px 240px 24px 24px); }
.hero__photo img { width: 100%; height: 108%; object-fit: cover; object-position: center 12%; transform: scale(1.15); }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,23,38,.55)); }
body.is-ready .hero__photo { clip-path: inset(0 0 0 0 round 240px 240px 24px 24px); transition: clip-path 1.4s .1s cubic-bezier(.77,0,.18,1); }
body.is-ready .hero__photo img { transform: scale(1); transition: transform 1.8s .1s var(--ease); }
body.is-ready .hero__arch-ring { opacity: 1; transform: none; transition: opacity 1s .8s, transform 1.4s .8s var(--ease); }

.float-card { position: absolute; z-index: 3; padding: 14px 18px; border-radius: 18px; background: rgba(247,243,236,.92); color: var(--ink); box-shadow: var(--shadow); backdrop-filter: blur(12px); opacity: 0; transform: translateY(20px) scale(.95); }
body.is-ready .float-card { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
body.is-ready .float-card--doctor { transition-delay: 1s; }
body.is-ready .float-card--price { transition-delay: 1.15s; }
body.is-ready .float-card--team { transition-delay: 1.3s; }
.float-card--doctor { left: -64px; bottom: 70px; display: flex; flex-direction: column; animation: bob 6s 2.5s ease-in-out infinite; }
.float-card__label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3); font-weight: 800; }
.float-card--doctor b { font-family: var(--serif); font-size: 22px; line-height: 1.15; margin-top: 2px; }
.float-card--doctor small { color: var(--muted); font-size: 13px; }
.float-card--price { right: -40px; top: 90px; text-align: center; animation: bob 7s 3s ease-in-out infinite; }
.float-card__num { display: block; font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--navy-800); line-height: 1; }
.float-card--price small { font-size: 12px; color: var(--muted); }
.float-card--team { right: -24px; bottom: -14px; display: flex; align-items: center; gap: 12px; background: var(--navy-900); color: var(--ivory); border: 1px solid rgba(201,162,122,.3); animation: bob 8s 3.5s ease-in-out infinite; }
.float-card--team small { font-size: 13px; color: rgba(247,243,236,.75); }
.float-card--team b { color: var(--gold-2); }
.avatars { display: flex; }
.avatars img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--navy-900); margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
@keyframes bob { 50% { translate: 0 -10px; } }

.hero__address { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(247,243,236,.65); white-space: nowrap; }
body.is-ready .hero__address { transform: translateX(-50%); }
.hero__address svg { width: 16px; height: 16px; fill: none; stroke: var(--gold-2); stroke-width: 1.8; }
.hero__address:hover { color: var(--gold-2); }

/* ---------- Marquee ---------- */
.marquee { background: var(--gold); color: var(--navy-900); overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(0,0,0,.08); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--serif); font-size: 26px; font-weight: 600; white-space: nowrap; }
.marquee__track i { font-style: normal; font-size: 16px; align-self: center; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--sand { background: var(--ivory-2); }
.section--navy { background: var(--navy-800); color: var(--ivory); overflow: hidden; }
.section--navy::before { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,122,.18), transparent 65%); }
.section__head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 36px; align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.section__head--left { grid-template-columns: auto 1fr; }
.section__num { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--gold-3); border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; align-self: start; margin-top: 6px; }
.section--navy .section__num { color: var(--gold-2); }
.section__title { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -.01em; margin-top: 14px; }
.section__title em { color: var(--gold-3); }
.section--navy .section__title em { color: var(--gold-2); }
.section__lead { max-width: 340px; color: var(--muted); font-size: 15.5px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Directions ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dir-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity 1s var(--ease); }
.dir-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.dir-card__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.dir-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(12,31,51,.25)); }
.dir-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dir-card__img img.pos-top { object-position: center 30%; }
.dir-grid > :first-child { grid-column: span 2; }
.dir-grid > :first-child .dir-card__img { aspect-ratio: auto; flex: 1; min-height: 240px; }
.dir-grid > :first-child .dir-card__img img { position: absolute; inset: 0; }
.dir-card:hover .dir-card__img img { transform: scale(1.08); }
.dir-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dir-card h3 { font-family: var(--serif); font-size: 25px; line-height: 1.1; }
.dir-card p { font-size: 14px; color: var(--muted); flex: 1; }
.dir-card__price { align-self: flex-start; margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: var(--ivory-2); color: var(--navy-800); font-weight: 800; font-size: 13.5px; }

/* ---------- Promo ---------- */
.promo-wrap { padding-bottom: 20px; }
.promo { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px 50px; padding: clamp(32px, 5vw, 64px); border-radius: 32px; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: var(--ivory); overflow: hidden; }
.promo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(201,162,122,.3), transparent 45%); pointer-events: none; }
.promo__content { position: relative; }
.promo h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; margin: 16px 0 18px; }
.promo h2 em { color: var(--gold-2); }
.promo__lead { color: rgba(247,243,236,.75); max-width: 480px; }
.checklist { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.checklist li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081726' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.promo__note { font-size: 12.5px; color: rgba(247,243,236,.5); }
.promo__visual { position: relative; border-radius: 24px; overflow: hidden; min-height: 260px; }
.promo__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.promo__visual::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.promo__btn { position: relative; justify-self: start; }

/* ---------- Prices ---------- */
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--ivory-2); margin-bottom: 28px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; border: 0; background: transparent; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--muted); transition: color .4s; white-space: nowrap; }
.tab.is-active { color: var(--ivory); }
.tabs__ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--navy-800); transition: transform .6s var(--ease), width .6s var(--ease); }
.tab-panels { background: var(--white); border-radius: 28px; padding: clamp(18px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.tab-panel.is-active { animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th { text-align: left; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 0 12px 16px; border-bottom: 1px solid var(--line); }
.price-table td { padding: 20px 12px; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:first-child { font-weight: 600; }
.price-table td:nth-child(2) { color: var(--muted); }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td:last-child { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--navy-800); white-space: nowrap; }
.price-table--2 td:nth-child(2) { color: var(--navy-800); }
.price-table tbody tr { transition: background .3s; }
.price-table tbody tr:hover { background: var(--ivory); }
.complex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.complex { border-radius: 22px; padding: 28px; background: var(--ivory); display: flex; flex-direction: column; gap: 20px; }
.complex--dark { background: var(--navy-800); color: var(--ivory); }
.complex__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.complex h3 { font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.complex__prices { display: flex; gap: 16px; }
.complex__prices span { display: flex; flex-direction: column; text-align: right; font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; color: var(--gold-3); }
.complex--dark .complex__prices span { color: var(--gold-2); }
.complex__prices small { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.complex--dark .complex__prices small { color: rgba(247,243,236,.6); }
.complex__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; flex: 1; }
.complex__list li { display: flex; gap: 10px; font-size: 14.5px; }
.complex__list li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.complex .btn { align-self: flex-start; }

/* ---------- Doctor ---------- */
.doctor { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.doctor__photo { position: relative; border-radius: 28px; overflow: visible; max-width: 440px; width: 100%; justify-self: center; }
.doctor__photo img { border-radius: 28px; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; box-shadow: var(--shadow); }
.doctor__photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); border-radius: 28px; z-index: -1; }
.doctor__sign { position: absolute; right: -10px; bottom: 30px; background: var(--navy-800); color: var(--gold-2); font-family: var(--serif); font-style: italic; font-size: 26px; padding: 12px 22px; border-radius: 14px; box-shadow: var(--shadow); }
.doctor__role { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--navy-600); margin: -30px 0 18px; }
.doctor__text { font-size: 18px; color: var(--ink); max-width: 560px; }
.principles { display: grid; gap: 14px; margin: 32px 0 36px; }
.principle { display: flex; gap: 18px; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.65); border: 1px solid var(--line); transition: transform .5s var(--ease), background .4s, opacity 1s var(--ease); }
.principle:hover { transform: translateX(6px); background: var(--white); }
.principle > span { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1; }
.principle b { font-size: 16px; }
.principle p { font-size: 14.5px; color: var(--muted); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.member { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); color: var(--ivory); }
.member__photo { aspect-ratio: 3 / 4; overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.9); }
.member:hover .member__photo img { transform: scale(1.06); filter: saturate(1.05); }
.member__body { position: absolute; inset: auto 0 0; padding: 60px 18px 18px; background: linear-gradient(180deg, transparent, rgba(8,23,38,.92) 55%); }
.member h3 { font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.member p { font-size: 12.5px; color: var(--gold-2); font-weight: 600; margin-top: 4px; }
.member:first-child { outline: 1px solid var(--gold); outline-offset: -1px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.faq .section__head { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: 18px; background: var(--white); border: 1px solid var(--line); transition: box-shadow .4s, opacity 1s var(--ease), transform 1s var(--ease); }
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary span { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--ivory-2); flex-shrink: 0; transition: background .3s, transform .5s var(--ease); }
.faq__item summary span::before, .faq__item summary span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--navy-800); transform: translate(-50%, -50%); }
.faq__item summary span::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq__item[open] summary span { background: var(--gold); transform: rotate(180deg); }
.faq__item[open] summary span::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item > div { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.booking__info .section__num { display: inline-block; margin-bottom: 18px; }
.booking__info .section__title { margin-bottom: 30px; }
.contacts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.contacts li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contacts span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 4px; }
.contacts a { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--navy-800); }
.contacts a:hover { color: var(--gold-3); }
.contacts p { font-size: 17px; font-weight: 600; }
.map { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sand); box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--navy-600); }
.map__link:hover { color: var(--gold-3); }
.form { background: var(--navy-800); color: var(--ivory); border-radius: 30px; padding: clamp(26px, 4vw, 44px); display: grid; gap: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.form::before { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,122,.3), transparent 65%); pointer-events: none; }
.form h3 { font-family: var(--serif); font-size: 36px; font-weight: 500; }
.form__lead { color: rgba(247,243,236,.7); font-size: 14.5px; margin-bottom: 6px; }
.field { display: grid; gap: 8px; position: relative; }
.field > span { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: rgba(247,243,236,.75); }
.field small { font-weight: 500; opacity: .7; }
.field input, .field select, .field textarea { width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--ivory); outline: none; transition: border-color .3s, background .3s, box-shadow .3s; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dcbd96' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.field select option { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(247,243,236,.4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.1); box-shadow: 0 0 0 4px rgba(201,162,122,.18); }
.field.is-invalid input { border-color: #e88a7a; }
.field__error { font-style: normal; font-size: 12.5px; color: #f0a596; min-height: 0; }
.field__error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: rgba(247,243,236,.7); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 1px; flex-shrink: 0; }
.form .btn--ghost-dark { color: var(--ivory); border-color: rgba(255,255,255,.2); }
.form .btn--ghost-dark:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: var(--ivory); padding: 60px 0 calc(30px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 600; font-size: 14.5px; }
.footer__nav a { opacity: .75; } .footer__nav a:hover { opacity: 1; color: var(--gold-2); }
.footer__contacts { display: flex; flex-direction: column; text-align: right; gap: 2px; }
.footer__contacts a { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold-2); }
.footer__contacts span { font-size: 13px; opacity: .6; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 24px; font-size: 13px; color: rgba(247,243,236,.5); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 16px; font-size: 12.5px; color: rgba(247,243,236,.42); }
.footer__warn { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; color: rgba(247,243,236,.65); }

/* ---------- FAB ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); color: var(--navy-900); box-shadow: 0 16px 30px -10px rgba(201,162,122,.8); transform: scale(0); transition: transform .5s var(--ease); }
.fab.is-visible { transform: scale(1); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: ring 2.6s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Mobile menu: отдельный непрозрачный экран поверх всего ---------- */
html.is-locked, html.is-locked body { overflow: hidden; overscroll-behavior: none; }
html.is-locked { background: var(--navy-900); }
.mmenu { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: 160; background: var(--navy-900); color: var(--ivory); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top) 0 calc(env(safe-area-inset-bottom) + 24px);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.77,0,.18,1); }
.mmenu[hidden] { display: none; }
.mmenu.is-open { clip-path: inset(0 0 0 0); }
.mmenu__bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.mmenu__bg .hero__glow--1 { right: -260px; top: -200px; }
.mmenu__watermark { position: absolute; right: -60px; bottom: 6%; width: 320px; opacity: .06; }
.mmenu__watermark path { stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mmenu__top, .mmenu__body { position: relative; width: calc(100% - 32px); max-width: 560px; margin-inline: auto; }
.mmenu__top { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mmenu__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--ivory); position: relative; cursor: pointer; }
.mmenu__close span { position: absolute; left: 13px; right: 13px; top: 22px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.mmenu__close span + span { transform: rotate(-45deg); }
.mmenu__body { flex: 1; display: flex; flex-direction: column; gap: 26px; padding-top: 18px; }
.mmenu__nav { display: grid; }
.mmenu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 11px 0; font-family: var(--serif); font-size: clamp(30px, 8.6vw, 40px); font-weight: 500; line-height: 1.1; border-bottom: 1px solid rgba(255,255,255,.07); }
.mmenu__nav a i { font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--gold-2); width: 22px; }
.mmenu__nav a:active, .mmenu__nav a:hover { color: var(--gold-2); }
.mmenu__doctor { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(201,162,122,.25); }
.mmenu__doctor img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 18%; flex-shrink: 0; border: 2px solid var(--gold); }
.mmenu__doctor span { display: flex; flex-direction: column; line-height: 1.2; }
.mmenu__doctor small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); font-weight: 800; }
.mmenu__doctor b { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.mmenu__doctor em { font-style: normal; font-size: 12.5px; color: rgba(247,243,236,.6); }
.mmenu__contacts { display: grid; gap: 4px; }
.mmenu__phone { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--gold-2); }
.mmenu__contacts p { font-size: 14px; color: rgba(247,243,236,.65); }
.mmenu__actions { display: grid; gap: 10px; margin-top: auto; }
.mmenu__nav a, .mmenu__doctor, .mmenu__contacts, .mmenu__actions { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease); }
.mmenu.is-open .mmenu__nav a, .mmenu.is-open .mmenu__doctor, .mmenu.is-open .mmenu__contacts, .mmenu.is-open .mmenu__actions { opacity: 1; transform: none; transition-delay: .3s; }
.mmenu.is-open .mmenu__nav a:nth-child(2) { transition-delay: .34s; } .mmenu.is-open .mmenu__nav a:nth-child(3) { transition-delay: .38s; } .mmenu.is-open .mmenu__nav a:nth-child(4) { transition-delay: .42s; } .mmenu.is-open .mmenu__nav a:nth-child(5) { transition-delay: .46s; } .mmenu.is-open .mmenu__nav a:nth-child(6) { transition-delay: .5s; }
.mmenu.is-open .mmenu__doctor { transition-delay: .55s; } .mmenu.is-open .mmenu__contacts { transition-delay: .6s; } .mmenu.is-open .mmenu__actions { transition-delay: .65s; }
@media (min-width: 981px) { .mmenu { display: none !important; } }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1180px) {
  .header__phone { display: none; }
  .dir-grid { grid-template-columns: repeat(3, 1fr); }
  .dir-grid > :last-child { grid-column: span 2; }
  .dir-grid > :last-child .dir-card__img { aspect-ratio: 16 / 7; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .float-card--doctor { left: -20px; }
  .float-card--price { right: -10px; }
}
@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .burger { display: block; margin-left: auto; }
  .header__cta { display: none; }
  .nav { display: none; }
  .hero { padding-top: calc(var(--header-h) + 30px); padding-bottom: 90px; }
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__visual { order: -1; }
  .hero__arch { width: min(340px, 78vw); }
  .hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; width: 100%; }
  .hero { padding-bottom: 56px; }
  .hero__address { position: static; transform: none; margin: 28px auto 0; justify-content: center; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); white-space: normal; text-align: center; }
  body.is-ready .hero__address { transform: none; }
  .hero { flex-direction: column; justify-content: center; }
  .section__head { grid-template-columns: auto 1fr; }
  .section__head .section__lead { grid-column: 1 / -1; max-width: 560px; }
  .promo { grid-template-columns: 1fr; }
  .promo__visual { min-height: 220px; order: -1; }
  .doctor { grid-template-columns: 1fr; }
  .doctor__photo { max-width: 460px; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq .section__head { position: static; }
  .booking { grid-template-columns: 1fr; }
  .complex-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .logo__text b { font-size: 18px; } .logo__text small { font-size: 9px; } .logo__mark { width: 38px; }
  .hero__title { font-size: clamp(42px, 12vw, 60px); }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { width: 100%; }
    .float-card { padding: 10px 14px; }
  .float-card--doctor { left: -12px; bottom: 40px; } .float-card--doctor b { font-size: 18px; }
  .float-card--price { right: -12px; top: 50px; } .float-card__num { font-size: 22px; }
  .float-card--team { right: -8px; bottom: -18px; } .avatars img { width: 28px; height: 28px; }
  .hero__address { font-size: 12.5px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .14em; justify-content: center; text-align: center; }
  .hero .eyebrow .dot { display: none; }
  .dir-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dir-grid > :last-child { grid-column: auto; }
  .dir-grid > :last-child .dir-card__img { aspect-ratio: 4 / 3; }
  .dir-grid > :first-child .dir-card__img { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
  .dir-card__body { padding: 14px; }
  .dir-card h3 { font-size: 19px; }
  .dir-card p { font-size: 12.5px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .member h3 { font-size: 17px; } .member__body { padding: 40px 12px 12px; }
  .price-table th:nth-child(2), .price-table:not(.price-table--2) td:nth-child(2) { display: none; }
  .price-table td { padding: 16px 6px; font-size: 15px; } .price-table td:last-child { font-size: 20px; }
  .price-table th { padding: 0 6px 12px; }
  .price-table--2 th:nth-child(2) { display: table-cell; }
  .complex { padding: 22px; } .complex__list { grid-template-columns: 1fr; }
  .contacts li { grid-template-columns: 1fr; gap: 4px; }
  .contacts a { font-size: 26px; }
  .footer__contacts { text-align: left; }
  .promo__btn { width: 100%; }
  .doctor__sign { font-size: 20px; right: 0; }
  .doctor__photo::before { inset: 14px -8px -14px 14px; }
  .hero__inner { gap: 72px; }
  .footer { padding-bottom: 96px; }
  .fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Процедуры: «Подробнее» и акцент на карточках
   ========================================================== */
.dir-card { position: relative; border: 1px solid transparent; }
.dir-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.dir-card:hover { border-color: rgba(201,162,122,.45); }
.dir-card:hover::before { transform: scaleX(1); }
.dir-card h3 { font-size: 27px; }
.dir-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.dir-card__foot .dir-card__price { margin-top: 0; }
.dir-card__more { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; cursor: pointer; font-weight: 800; font-size: 13.5px; color: var(--gold-3); white-space: nowrap; transition: color .3s; }
.dir-card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.dir-card__more:hover { color: var(--navy-800); }
.dir-card__more:hover svg { transform: translateX(4px); }
.dir-card[data-proc] { cursor: pointer; }

.proc-modal { padding: 0; border: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; overflow: hidden; color: var(--ink); }
.proc-modal::backdrop { background: rgba(8, 23, 38, .6); backdrop-filter: blur(6px); }
.proc-modal__card { position: absolute; left: 50%; top: 50%; width: min(920px, calc(100% - 40px)); height: min(600px, calc(100% - 60px)); display: grid; grid-template-columns: 1fr 1.15fr; background: var(--white); border-radius: 28px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,.55); transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .55s var(--ease), opacity .35s; }
.proc-modal.is-shown .proc-modal__card { transform: translate(-50%, -50%); opacity: 1; }
.proc-modal__img { position: relative; background: var(--ivory-2); }
.proc-modal__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proc-modal__body { padding: 44px 40px 36px; overflow-y: auto; }
.proc-modal__body h3 { font-family: var(--serif); font-size: 38px; line-height: 1.05; padding-right: 40px; }
.proc-modal__price { display: inline-block; margin: 14px 0 22px; padding: 6px 14px; border-radius: 999px; background: var(--ivory-2); color: var(--navy-800); font-weight: 800; font-size: 14px; }
.proc-modal__content .lead { font-size: 16.5px; margin-bottom: 22px; }
.proc-modal__content h4 { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3); margin: 0 0 10px; }
.proc-modal__content ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.proc-modal__content li { display: flex; gap: 10px; font-size: 15px; }
.proc-modal__content li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.proc-modal__content p { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.proc-modal__warn { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 22px; }
.proc-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.proc-modal__close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.proc-modal__close span { position: absolute; left: 13px; right: 13px; top: 21px; height: 1.6px; background: var(--navy-800); transform: rotate(45deg); }
.proc-modal__close span + span { transform: rotate(-45deg); }

/* Кнопка «Маршрут» вместо карты */
.route-btn { margin-top: 4px; }
.route-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.route-btn:hover svg { transform: none; }

/* Команда: главный врач сверху на всю ширину, остальные ровно по 2 */
@media (max-width: 1180px) and (min-width: 681px) {
  .team-grid { grid-template-columns: repeat(6, 1fr); }
  .team-grid .member { grid-column: span 2; }
  .team-grid .member:nth-child(4), .team-grid .member:nth-child(5) { grid-column: span 3; }
  .team-grid .member:nth-child(4) .member__photo, .team-grid .member:nth-child(5) .member__photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 680px) {
  .team-grid .member:first-child { grid-column: 1 / -1; }
  .team-grid .member:first-child .member__photo { aspect-ratio: 4 / 3; }
  .team-grid .member:first-child .member__photo img { object-position: center 20%; }
  .dir-card__foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .dir-card h3 { font-size: 20px; }
  .dir-card__more { font-size: 13px; padding: 4px 0; }
}
@media (max-width: 980px) {
  .proc-modal__card { left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: auto; max-height: 92%; display: block; overflow-y: auto; border-radius: 24px 24px 0 0; transform: translateY(100%); opacity: 1; }
  .proc-modal.is-shown .proc-modal__card { transform: none; }
  .proc-modal__img { aspect-ratio: 16 / 10; }
  .proc-modal__body { padding: 24px 20px calc(26px + env(safe-area-inset-bottom)); overflow: visible; }
  .proc-modal__body h3 { font-size: 30px; }
  .proc-modal__close { background: rgba(255,255,255,.92); border-color: transparent; }
  .proc-modal__actions .btn { width: 100%; }
}

/* Фото главного врача в блоке «О главном враче» */
.doctor__photo img.doctor__img--xray { object-position: 48% center; }

/* Окно процедуры — отдельный полноэкранный экран, сайт под ним не виден */
.proc-modal { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; background: var(--white); }
.proc-modal::backdrop { background: var(--white); backdrop-filter: none; }
.proc-modal__card { left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; transform: translateY(24px); opacity: 0; }
.proc-modal.is-shown .proc-modal__card { transform: none; opacity: 1; }
.proc-modal__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 90px) clamp(28px, 5vw, 80px); }
.proc-modal__body > * { max-width: 620px; }
@media (max-width: 980px) {
  .proc-modal__card { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transform: translateY(24px); }
  .proc-modal__img { aspect-ratio: 4 / 3; }
  .proc-modal__body { display: block; padding: 24px 20px calc(30px + env(safe-area-inset-bottom)); }
  .proc-modal__close { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .proc-modal__card { transform: none; transition: none; } }

/* Мобильное меню как отдельный экран: пока оно открыто, сайт под ним скрыт,
   а фон страницы — цвета меню. Так в Instagram/Safari сверху и снизу
   (под панелями браузера, при «оттягивании» страницы) не просвечивает сайт.
   Скрытие включается после того, как шторка меню опустилась (.7s),
   а при закрытии сайт возвращается сразу — анимация не ломается. */
html.menu-open, html.menu-open body { background: var(--navy-900); }
html.menu-open .header, html.menu-open main, html.menu-open .footer, html.menu-open .fab {
  visibility: hidden; transition: visibility 0s .7s;
}
html.menu-open .mmenu { height: auto; bottom: 0; min-height: 100lvh; }

/* Новое вертикальное фото массажа: в карточке видны руки специалиста и шея */
.dir-card__img img.pos-massage { object-position: center 32%; }

/* Окно «Подробнее» как отдельная вкладка: пока оно открыто, сайт под ним скрыт,
   а фон страницы белый, как у окна. В Instagram/Safari сверху и снизу
   (под панелями браузера) сайт больше не просвечивает. */
html.modal-open, html.modal-open body { background: #fff; }
html.modal-open .header, html.modal-open main, html.modal-open .footer, html.modal-open .fab {
  visibility: hidden; transition: visibility 0s .3s;
}
html.modal-open .proc-modal { top: 0; bottom: 0; height: auto; min-height: 100lvh; }

/* Заставка при загрузке: пока она на экране, сайт под ней тоже скрыт */
body.is-loading { background: #fff; }
body.is-loading .header, body.is-loading main, body.is-loading .footer, body.is-loading .fab { visibility: hidden; }
.intro { bottom: 0; min-height: 100lvh; height: auto; }

/* Направления: 8 карточек ровной сеткой без пустых мест
   ПК (4 колонки): хиджама 2×2, тейпирование — широкая в конце ряда
   Планшет (3 колонки): хиджама 2 колонки, остальные по одной
   Телефон (2 колонки): хиджама и тейпирование на всю ширину */
.dir-card__img img.pos-tape { object-position: center 42%; }
@media (min-width: 1181px) {
  .dir-grid > :first-child { grid-row: span 2; }
  .dir-grid > :first-child .dir-card__body { flex: none; }
  .dir-grid > :last-child { grid-column: span 2; }
  .dir-grid > :last-child .dir-card__img { aspect-ratio: 16 / 7; }
}
@media (max-width: 1180px) and (min-width: 681px) {
  .dir-grid > :last-child { grid-column: auto; }
  .dir-grid > :last-child .dir-card__img { aspect-ratio: 4 / 3; }
}
@media (max-width: 680px) {
  .dir-grid > :last-child { grid-column: 1 / -1; }
  .dir-grid > :last-child .dir-card__img { aspect-ratio: 16 / 9; }
}
