/* AQNIET — премиальный стиль.
   Палитра: слоновая кость, глубокий изумруд, шампань-золото.
   Шрифты: Cormorant Garamond (заголовки), Manrope (текст).
   .theme-spa — санаторий: глубокий сине-зелёный вместо изумруда. */

:root {
  --ivory: #f7f3ec;
  --paper: #fffdf9;
  --stone: #ece5d8;
  --ink: #1a221f;
  --ink-soft: #5d645f;
  --line: rgba(26, 34, 31, .12);
  --deep: #0f2e27;
  --deep-2: #17423a;
  --gold: #b8945a;
  --gold-light: #dcc59b;
  --on-deep: #f3eee4;
  --on-deep-soft: rgba(243, 238, 228, .72);
  --line-deep: rgba(243, 238, 228, .16);
  --danger: #a8402b;

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-body: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1240px;
  --r: 22px;
  --shadow-soft: 0 18px 50px -28px rgba(15, 46, 39, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 80px -30px rgba(15, 46, 39, .35);
  color-scheme: light;
}
.theme-spa { --deep: #0f2b36; --deep-2: #18404d; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink); overflow-x: hidden;
  font: 400 1.0625rem/1.7 var(--f-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(3rem, 7.4vw, 6.6rem); }
h2 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 58ch; line-height: 1.75; }
.wrap { width: min(100% - 2 * clamp(20px, 4vw, 48px), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 160px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; font-size: .78rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
h1 .eyebrow { display: flex; font-family: var(--f-body); line-height: 1.5; margin-bottom: 28px; letter-spacing: .24em; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.head { display: grid; gap: 22px; max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.dark { background: var(--deep); color: var(--on-deep); }
.dark .lead, .dark p { color: var(--on-deep-soft); }
.stone { background: var(--stone); }

/* Кнопки */
.btn {
  --b: var(--gold); display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 32px; border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: #fff; font: 600 .82rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn:hover { background: transparent; color: var(--b); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.on-photo .btn-line, .dark .btn-line { color: #fff; border-color: rgba(255, 255, 255, .45); }
.on-photo .btn-line:hover, .dark .btn-line:hover { background: #fff; color: var(--deep); border-color: #fff; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.link-arrow:hover svg, .door:hover .link-arrow svg { transform: translateX(6px); }

/* Шапка: прозрачная поверх героя, светлая после прокрутки */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s;
  padding-top: env(safe-area-inset-top, 0px);
}
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 92px; transition: min-height .4s var(--ease); }
.header.scrolled { background: rgba(247, 243, 236, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header.scrolled .wrap { min-height: 74px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.logo svg { width: 40px; height: 40px; color: var(--gold); }
.logo b { font: 600 1.6rem/1 var(--f-display); letter-spacing: .22em; display: block; }
.logo small { display: block; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; opacity: .75; margin-top: 5px; }
.nav { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.nav a { position: relative; white-space: nowrap; text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .4s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header-phone { text-decoration: none; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.header .btn { min-height: 46px; padding: 0 22px; font-size: .74rem; }
.header .header-wa { gap: 8px; color: inherit; border-color: currentColor; background: transparent; }
.header .header-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.header .header-wa svg { width: 17px; height: 17px; }
.nav-wa { display: none; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 1500px) { .header-phone { display: none; } }
@media (max-width: 1240px) { .nav { gap: 22px; } .header .wrap { gap: 22px; } .header .header-wa { width: 46px; flex: none; padding: 0; font-size: 0; gap: 0; } }
@media (max-width: 1180px) { .header .btn:not(.header-wa) { display: none; } }
@media (max-width: 1020px) {
  .header .btn { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 110px 28px 40px; background: var(--deep); color: var(--on-deep);
  }
  .nav a { font: 500 2.2rem/1.3 var(--f-display); letter-spacing: 0; text-transform: none; }
  .nav:not(.open) { display: none; }
  .nav a.nav-wa {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 16px 26px; border-radius: 999px;
    background: #25d366; color: #fff; font: 600 .9rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  }
  .nav a.nav-wa::after { display: none; }
  .nav-wa svg { width: 20px; height: 20px; }
  .header:has(.nav.open) { color: var(--on-deep); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Герой на всю высоту с фото */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden;
  color: #fff; background: var(--deep);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s var(--ease) both; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 22, 18, .72) 0%, rgba(8, 22, 18, .35) 45%, rgba(8, 22, 18, 0) 75%),
    linear-gradient(180deg, rgba(8, 22, 18, .55) 0%, rgba(8, 22, 18, .1) 30%, rgba(8, 22, 18, .3) 60%, rgba(8, 22, 18, .92) 100%);
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-content { position: relative; z-index: 1; padding-block: 160px 0; display: grid; gap: 28px; justify-items: start; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { max-width: 13ch; }
.hero h1 em { color: var(--gold-light); }
.hero .lead { color: rgba(255, 255, 255, .84); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-stats {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 90px); border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-stats div { padding: 26px 24px 34px 0; display: grid; gap: 4px; align-content: start; }
.hero-stats div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero-stats b { font: 500 clamp(2rem, 3.4vw, 2.9rem)/1 var(--f-display); color: var(--gold-light); }
.hero-stats span { font-size: .84rem; letter-spacing: .06em; color: rgba(255, 255, 255, .78); }

/* Герой-сплит (санаторий): текст на тёмном, вертикальное фото справа */
.hero-split { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: var(--deep); color: var(--on-deep); }
.hero-split .hero-content { padding: 170px clamp(24px, 5vw, 80px) 72px max(clamp(20px, 4vw, 48px), calc((100vw - var(--wrap)) / 2)); align-content: center; }
.hero-split .eyebrow { color: var(--gold-light); }
.hero-split h1 em { color: var(--gold-light); }
.hero-split .lead { color: var(--on-deep-soft); }
.hero-split .media { position: relative; overflow: hidden; }
.hero-split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s var(--ease) both; }
.hero-split .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 18, .6), transparent 22%), linear-gradient(90deg, rgba(8, 22, 18, .35), transparent 30%); }
.hero-split .hero-stats { border-color: var(--line-deep); grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.hero-split .hero-stats div + div { border-color: var(--line-deep); }

/* Бегущая строка */
.marquee { overflow: hidden; background: var(--deep); color: var(--gold-light); border-top: 1px solid var(--line-deep); padding-block: 24px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font: italic 400 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--f-display); white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: .6em; margin-left: 48px; vertical-align: middle; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Имя */
.manifest { text-align: center; display: grid; justify-items: center; gap: 28px; }
.manifest .word { font: 500 clamp(4.5rem, 14vw, 11rem)/.9 var(--f-display); letter-spacing: .04em; color: var(--deep); }
.manifest .meaning { font: italic 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.4 var(--f-display); color: var(--gold); }
.manifest .lead { margin-inline: auto; }
.rule { width: 1px; height: 80px; background: linear-gradient(var(--gold), transparent); }

/* Два направления */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.door {
  position: relative; display: grid; align-content: end; min-height: 720px; padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate;
}
.door > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 22, 18, .1) 15%, rgba(8, 22, 18, .92) 90%); }
.door:hover > img { transform: scale(1.06); }
.door .num { position: absolute; top: clamp(24px, 3vw, 40px); left: clamp(28px, 4vw, 52px); font: italic 400 1.3rem var(--f-display); color: var(--gold-light); }
.door .tag { font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.door h3 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); margin: 12px 0 18px; }
.door ul { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; color: rgba(255, 255, 255, .86); font-size: 1rem; }
.door li { display: flex; gap: 14px; align-items: baseline; }
.door li::before { content: ""; width: 14px; height: 1px; background: var(--gold-light); flex: none; transform: translateY(-4px); }
.door .link-arrow { color: #fff; }

/* Сплит: фото + текст */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-media { position: relative; isolation: isolate; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.split-media .frame { position: absolute; inset: 28px -28px -28px 28px; border: 1px solid var(--gold); border-radius: var(--r); z-index: -1; }
.split-media .badge {
  position: absolute; left: -28px; bottom: 48px; background: var(--deep); color: var(--on-deep); padding: 26px 30px;
  border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 4px; max-width: 250px;
}
.split-media .badge b { font: 500 3rem/1 var(--f-display); color: var(--gold-light); }
.split-media .badge span { font-size: .9rem; color: var(--on-deep-soft); line-height: 1.5; }
.split-text { display: grid; gap: 26px; align-content: center; }

/* Нумерованный список */
.points { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: p; display: grid; }
.points li { counter-increment: p; display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before { content: "0" counter(p); grid-row: span 2; font: italic 400 1.6rem/1.2 var(--f-display); color: var(--gold); }
.points h3 { font-size: 1.55rem; }
.points p { color: var(--ink-soft); font-size: 1rem; }
.dark .points li { border-color: var(--line-deep); }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: clamp(32px, 3.4vw, 48px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 16px; align-content: start; transition: background .5s var(--ease); }
.service:hover { background: var(--paper); }
.service svg { width: 34px; height: 34px; color: var(--gold); }
.service p { color: var(--ink-soft); font-size: 1rem; }
.service.wide { grid-column: span 2; }
.dark .services, .dark .service { border-color: var(--line-deep); }
.dark .service:hover { background: var(--deep-2); }
.dark .service svg { color: var(--gold-light); }

/* Теги */
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tags span { padding: 14px 24px; border: 1px solid var(--line); border-radius: 999px; font-size: 1rem; background: var(--paper); }
.dark .tags span { border-color: var(--line-deep); background: transparent; color: var(--on-deep); }

/* Питание */
.meals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.meal { padding: 34px 26px 0 0; border-top: 1px solid var(--gold); display: grid; gap: 8px; align-content: start; position: relative; }
.meal::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.meal .n { font: italic 400 1.2rem var(--f-display); color: var(--gold); }
.meal b { font: 500 1.7rem/1.1 var(--f-display); }
.meal span:last-child { color: var(--ink-soft); font-size: .98rem; }

/* Галерея */
.gallery { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 620px; gap: 20px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(8, 22, 18, .75)); pointer-events: none; }
.gallery figcaption { z-index: 1; }
.gallery figcaption { position: absolute; left: 24px; bottom: 22px; color: #fff; font: italic 400 1.5rem var(--f-display); text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 14px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 clamp(3.6rem, 6vw, 5rem)/1 var(--f-display); color: var(--gold); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dark .steps li::before { border-color: var(--line-deep); color: var(--gold-light); }
.steps p { color: var(--ink-soft); font-size: 1rem; }
.dark .steps p, .dark .points p, .dark .service p { color: var(--on-deep-soft); }

/* Баннер с фото */
.banner { position: relative; overflow: hidden; color: #fff; padding-block: clamp(110px, 16vw, 220px); isolation: isolate; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 22, 18, .9) 0%, rgba(8, 22, 18, .55) 60%, rgba(8, 22, 18, .3) 100%); }
.banner .wrap { display: grid; gap: 26px; justify-items: start; }
.banner h2 { max-width: 16ch; }
.banner h2 em { color: var(--gold-light); }
.banner p { color: rgba(255, 255, 255, .84); max-width: 52ch; font-size: 1.15rem; }
.banner .eyebrow { color: var(--gold-light); }

/* Локация */
.location { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.loc-media { position: relative; }
.loc-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); }
.loc-media .dist {
  position: absolute; right: -24px; top: -24px; width: 168px; height: 168px; border-radius: 50%; background: var(--gold); color: #fff;
  display: grid; place-content: center; text-align: center; box-shadow: var(--shadow);
}
.loc-media .dist b { font: 500 3.4rem/1 var(--f-display); }
.loc-media .dist span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.addr { display: grid; gap: 26px; justify-items: start; }
.addr dl { margin: 0; display: grid; width: 100%; }
.addr dl div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.addr dt { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.addr dd { margin: 0; font: 500 1.5rem/1.3 var(--f-display); }
.addr dd a { text-decoration: none; }

/* FAQ */
.faq { display: grid; max-width: 900px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 30px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font: 500 clamp(1.4rem, 2.2vw, 1.8rem)/1.25 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); background: linear-gradient(var(--gold), var(--gold)) center/14px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) center/1px 14px no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 70px 30px 0; color: var(--ink-soft); }

/* Переход в соседнее направление */
.cross { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; text-decoration: none; }
.cross .eyebrow { margin-bottom: 14px; }
.cross h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); max-width: 22ch; }
.cross p { color: var(--ink-soft); margin-top: 12px; }
.cross .circle { width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); transition: background .5s var(--ease), color .5s; }
.cross .circle svg { width: 30px; height: 30px; }
.cross:hover .circle { background: var(--gold); color: #fff; }

/* Контакты */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-info { display: grid; gap: 26px; }
.contact-list { display: grid; margin-top: 10px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 18px; text-decoration: none; padding: 20px 0; border-top: 1px solid var(--line-deep); font: 500 1.45rem/1.3 var(--f-display); color: var(--on-deep); }
.contact-list a:hover { color: var(--gold-light); }
.contact-list svg { width: 22px; height: 22px; color: var(--gold-light); flex: none; }
.form { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: clamp(30px, 4vw, 56px); display: grid; gap: 22px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); min-width: 0; }
.form h3 { font-size: 2.2rem; }
.form p { color: var(--ink-soft); }
.field { display: grid; gap: 4px; }
.field label, .field legend { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.1rem/1.4 var(--f-body); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; transition: border-color .3s;
}
.field select { appearance: none; -webkit-appearance: none; background: linear-gradient(45deg, transparent 50%, var(--gold) 50%) right 6px center / 7px 7px no-repeat; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; }
.seg legend { margin-bottom: 10px; }
.seg label { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500; }
.seg label:has(input:checked) { border-color: var(--gold); background: rgba(184, 148, 90, .08); }
.seg input { accent-color: var(--gold); width: 18px; height: 18px; }
.form .btn { width: 100%; margin-top: 6px; }
.form-error { color: var(--danger) !important; font-weight: 500; }
.form small { color: var(--ink-soft); font-size: .84rem; }
.form-done { padding: 20px; border-radius: var(--r); background: rgba(184, 148, 90, .12); display: grid; gap: 8px; }
.form-done a { font-weight: 700; color: var(--deep); }

/* Подвал */
.footer { background: #0a1f1a; color: var(--on-deep-soft); padding-block: 90px 36px; font-size: .98rem; }
.theme-spa .footer { background: #0a1d25; }
.footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo { color: var(--on-deep); }
.footer p { margin-top: 20px; max-width: 34ch; }
.footer h4 { margin: 0 0 18px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer .big { grid-column: 1 / -1; font: italic 400 clamp(3rem, 12vw, 10rem)/1 var(--f-display); color: rgba(243, 238, 228, .07); letter-spacing: .06em; padding-top: 30px; white-space: nowrap; overflow: hidden; text-align: center; }
.footer .copy { grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid var(--line-deep); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }



/* Подменю разделов страницы (липкое, как в приложении) */
.subnav { position: sticky; top: calc(74px + env(safe-area-inset-top, 0px)); z-index: 40; background: rgba(247, 243, 236, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav .wrap { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-size: .86rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; transition: background .3s, color .3s; }
.subnav a:hover { color: var(--ink); background: var(--stone); }
.subnav a.active { background: var(--deep); color: #fff; }
section[id] { scroll-margin-top: 140px; }
[role="tab"] { scroll-margin-top: 150px; }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }

/* Быстрые действия */
.quick-section { padding-block: clamp(28px, 4vw, 48px); background: var(--ivory); }
.quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.qa { display: grid; gap: 10px; justify-items: start; align-content: start; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
.qa:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.qa .ic, .sit .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(184, 148, 90, .14); color: var(--gold); flex: none; }
.qa .ic svg, .sit .ic svg { width: 26px; height: 26px; }
.qa b { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.qa > span:last-child { font-size: .85rem; color: var(--ink-soft); line-height: 1.4; }
.qa.wa .ic { background: #25d366; color: #fff; }

/* Ситуации: список как в приложении */
.situations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sit { display: grid; grid-template-columns: 52px minmax(0, 1fr) 22px; gap: 16px; align-items: center; padding: 16px 20px 16px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.sit:hover { border-color: var(--gold); transform: translateX(4px); box-shadow: var(--shadow-soft); }
.sit b { display: block; font-weight: 700; line-height: 1.3; }
.sit small { display: block; color: var(--ink-soft); font-size: .9rem; line-height: 1.4; margin-top: 2px; }
.sit > svg { width: 20px; height: 20px; color: var(--gold); }

/* Вкладки */
.tabs { display: grid; gap: clamp(20px, 3vw, 32px); }
.tablist { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; justify-self: start; max-width: 100%; }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: transparent; font: 600 .92rem/1 var(--f-body); color: var(--ink-soft); padding: 14px 22px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .35s, color .35s, box-shadow .35s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--deep); color: #fff; box-shadow: 0 10px 22px -12px rgba(15, 46, 39, .7); }
.stone .tablist { background: var(--ivory); }
.panel:not([hidden]) { animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: clamp(22px, 4vw, 52px); box-shadow: var(--shadow-soft); }
.panel-grid.single { grid-template-columns: minmax(0, 1fr); }
.panel-main { display: grid; gap: 16px; align-content: start; }
.panel-main h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.panel-main .lead { font-size: 1.08rem; }
.checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: rgba(184, 148, 90, .16); color: var(--gold); }
.panel-aside { background: var(--stone); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.panel-aside h4 { margin: 0; font: 600 1.45rem/1.2 var(--f-display); display: flex; gap: 10px; align-items: flex-start; }
.panel-aside h4 svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.panel-aside ul, .panel-aside ol { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; color: var(--ink-soft); }
.panel-aside li::marker { color: var(--gold); }
.panel-aside b { color: var(--ink); }
.panel-aside .note { font-size: .95rem; color: var(--ink); font-weight: 600; }
.panel-aside a { color: var(--deep); font-weight: 700; }
.panel-aside.alert { background: #f7e8e2; }
.panel-aside.alert h4 { color: var(--danger); }
.panel-aside.alert li::marker { color: var(--danger); }
.panel-media { position: relative; border-radius: var(--r); overflow: hidden; min-height: 340px; }
.panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-media.wide { min-height: 0; aspect-ratio: 21 / 9; }
.panel-media.tall { min-height: 0; aspect-ratio: 4 / 5; }
.panel-grid > .panel-media.wide { grid-column: 1 / -1; }
.meals.in-panel { margin-top: 18px; }
.meals.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dark .meal b { color: var(--on-deep); }
.dark .meal .n { color: var(--gold-light); }
.dark .meal span:last-child { color: var(--on-deep-soft); }

/* Стоимость */
.price-factors { margin-bottom: 28px; }
.included { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.included-title { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-right: 8px; }
.included span:not(.included-title) { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.included svg { width: 18px; height: 18px; color: var(--gold); }

/* Нижняя панель как в приложении */
.tabbar { display: none; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.panel .reveal { opacity: 1; transform: none; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.family { align-items: center; }
.family .split-media img { aspect-ratio: 4 / 5.4; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; } .reveal.d4 { transition-delay: .48s; }

/* Адаптив */
@media (max-width: 1020px) {
  .doors, .split, .location, .contact { grid-template-columns: minmax(0, 1fr); }
  .family .split-media img { aspect-ratio: 4 / 4.4; }
  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .situations { grid-template-columns: minmax(0, 1fr); }
  .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-media, .panel-media.wide { min-height: 0; aspect-ratio: 16 / 10; }
  .panel-media.tall { aspect-ratio: 4 / 5; max-width: 480px; }
  .meals.four { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255, 253, 249, .95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 4px 2px; text-decoration: none; font-size: .68rem; font-weight: 600; color: var(--ink-soft); }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--deep); }
  .tabbar a[aria-current="page"] svg { color: var(--gold); }
  .tabbar .tab-wa svg { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: #25d366; color: #fff; margin-top: -28px; border: 4px solid var(--paper); box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .split.flip > :first-child { order: 0; }
  .door { min-height: 600px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service.wide { grid-column: span 2; }
  .services > .service:last-child:nth-child(odd) { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meals { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-split .media { min-height: 62vh; order: -1; }
  .hero-split .hero-content { padding: 56px clamp(20px, 4vw, 48px) 64px; }
  .split-media { margin-right: 28px; }
  .gallery { grid-template-rows: 460px; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .loc-media .dist { right: 12px; top: -30px; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .header .wrap, .header.scrolled .wrap { min-height: 64px; }
  .section { padding-block: 72px; }
  .logo b { font-size: 1.4rem; }
  .hero-content { padding-top: 120px; }
  .subnav { top: calc(64px + env(safe-area-inset-top, 0px)); }
  .subnav .wrap { padding-block: 8px; }
  .subnav a { padding: 9px 15px; font-size: .82rem; }
  section[id] { scroll-margin-top: 120px; }
  [role="tab"] { scroll-margin-top: 130px; }
  .quick { gap: 10px; }
  .qa { justify-items: center; text-align: center; padding: 16px 8px; gap: 8px; }
  .qa .ic { width: 48px; height: 48px; }
  .qa b { font-size: .9rem; }
  .qa > span:last-child { display: none; }
  .tablist { border-radius: 18px; margin-inline: -4px; }
  .tab { padding: 12px 16px; font-size: .88rem; }
  .panel-grid { padding: 22px 18px; border-radius: var(--r); }
  .panel-media, .panel-media.wide { aspect-ratio: 4 / 3; }
  .panel-media.tall { aspect-ratio: 4 / 5; }
  .panel-aside { padding: 20px; }
  .meals.four { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .included-title { width: 100%; }
  .meals.four .meal { grid-template-columns: minmax(0, 1fr); }
  .meals.four .meal span:last-child { grid-column: auto; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(8, 22, 18, .7) 0%, rgba(8, 22, 18, .55) 40%, rgba(8, 22, 18, .75) 70%, rgba(8, 22, 18, .95) 100%); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div { padding-bottom: 22px; }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 22px; }
  .hero-split .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-split .hero-stats div { padding: 20px 10px 6px 0; }
  .hero-split .hero-stats div + div { padding-left: 12px; }
  .hero-split .hero-stats div:nth-child(3) { padding-left: 12px; border-left: 1px solid var(--line-deep); border-top: 0; padding-top: 20px; }
  .hero-split .hero-stats b { font-size: 1.7rem; }
  .hero-split .hero-stats span { font-size: .74rem; letter-spacing: .02em; }
  .services, .steps { grid-template-columns: minmax(0, 1fr); }
  .service.wide, .services > .service:last-child:nth-child(odd) { grid-column: auto; }
  .services { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
  .dark .services { background: transparent; border-color: var(--line-deep); }
  .service { grid-template-columns: 30px minmax(0, 1fr); gap: 6px 16px; padding: 22px 20px; border-right: 0; }
  .service:last-child { border-bottom: 0; }
  .service svg { grid-row: span 2; width: 28px; height: 28px; margin-top: 2px; }
  .service h3 { font-size: 1.45rem; }
  .service p { font-size: .95rem; }
  .meals { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .meal { grid-template-columns: 40px 1fr; padding: 20px 0 20px 26px; align-items: baseline; border-top: 0; border-left: 1px solid var(--gold); }
  .meal::before { top: 30px; left: -5px; }
  .meal span:last-child { grid-column: 2; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 320px; }
  .gallery figure:first-child { grid-column: span 2; }
  .gallery figcaption { left: 16px; bottom: 14px; font-size: 1.2rem; }
  .door { min-height: 540px; }
  .split-media .badge { left: 16px; bottom: -36px; }
  .split-media .frame { inset: 18px -18px -18px 18px; }
  .split-media { margin-right: 18px; margin-bottom: 36px; }
  .cross { grid-template-columns: minmax(0, 1fr); }
  .cross .circle { width: 84px; height: 84px; }
  .seg { grid-template-columns: minmax(0, 1fr); }
  .faq details p { padding-right: 0; }
  .footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .loc-media .dist { width: 124px; height: 124px; }
  .loc-media .dist b { font-size: 2.5rem; }
  .loc-media .dist span { font-size: .6rem; letter-spacing: .1em; text-align: center; line-height: 1.3; padding: 0 12px; }
  .door::before { background: linear-gradient(180deg, rgba(8, 22, 18, .15) 0%, rgba(8, 22, 18, .72) 32%, rgba(8, 22, 18, .94) 100%); }
  .door .num { display: none; }
}

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

/* Пометка на иллюстрациях, созданных ИИ */
.ai-note {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none;
  padding: 5px 11px; border-radius: 999px; background: rgba(8, 22, 18, .55); color: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 600 .68rem/1.2 var(--f-body); letter-spacing: .04em; white-space: nowrap;
}
.hero-bg .ai-note { top: calc(104px + env(safe-area-inset-top, 0px)); bottom: auto; right: clamp(20px, 4vw, 48px); }
.door .ai-note { top: clamp(20px, 3vw, 36px); bottom: auto; right: clamp(20px, 3vw, 36px); }
.footer .ai-disclaimer { grid-column: 1 / -1; margin: 0; font-size: .82rem; line-height: 1.6; color: rgba(255, 255, 255, .55); max-width: 760px; }
@media (max-width: 1020px) { .hero-bg .ai-note { top: calc(76px + env(safe-area-inset-top, 0px)); } }

/* Отдельные страницы болезней и процедур */
.hero-split.compact { min-height: min(86vh, 760px); }
.hero-split.compact h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--on-deep-soft); }
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-deep); }
.crumbs a:hover { color: #fff; }
.panel-main h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.prose { max-width: 780px; display: grid; gap: 18px; }
.prose h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.prose a, .more-link { color: var(--deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); }
.more-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 6px; }
.more-link svg { width: 18px; height: 18px; color: var(--gold); }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.related a:nth-child(-n+2) { border-top: 1px solid var(--line); }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font: 500 clamp(1.4rem, 2vw, 1.7rem)/1.2 var(--f-display); transition: color .3s; }
.related a:hover { color: var(--gold); }
@media (max-width: 1020px) { .hero-split.compact { min-height: 0; } .hero-split.compact .media { min-height: 46vh; } }
@media (max-width: 720px) { .related { grid-template-columns: minmax(0, 1fr); } .related a:nth-child(2) { border-top: 0; } .wa-card .btn { letter-spacing: .1em; padding-inline: 20px; white-space: nowrap; } }

/* Тонкая стрелка для ссылок «Подробнее» и карточек «Ещё по теме» */
.related svg, .more-link svg { width: 34px; height: 12px; color: var(--gold); flex: none; transition: transform .4s var(--ease); }
.related a:hover svg, .more-link:hover svg { transform: translateX(5px); }
.more-link { gap: 12px; }
/* Связь через WhatsApp вместо формы */
.wa-card { gap: 18px; }
.wa-card .eyebrow { color: var(--gold); }
.wa-card h3 { font-size: clamp(2rem, 3vw, 2.6rem); }
.wa-card .btn { margin-top: 10px; }
.wa-card .btn svg { width: 18px; height: 18px; }
.wa-call { font-size: .95rem; text-align: center; }
.wa-call a { color: var(--deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); white-space: nowrap; }
.wa-call a:hover { color: var(--gold); }
