/* ==========================================================================
   1. ТОКЕНЫ. Тема клиента = правка только этого раздела.
   Светлая тема — :root по умолчанию. Тёмная — класс theme-dark на <html>
   (или на отдельной секции, чтобы сделать её «инверсной»).
   ========================================================================== */
:root,
.theme-light {
  --bg: #f5f6f1;            /* светлый тёплый серо-зелёный */
  --surface: #ffffff;
  --surface-2: #e8ede6;     /* вторичный фон секций */
  --text: #1c2622;          /* 13.1:1 на surface-2 */
  --muted: #55625b;         /* 5.4:1 на surface-2 */
  --accent: #2e6b5e;        /* глубокий шалфей: 5.2:1 на surface-2, белый на нём 6.2:1 */
  --accent-contrast: #ffffff;
  --line: #d9e0d8;
  --shadow-color: 20 45 38;
  color-scheme: light;
}

:root {
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-head: 600;
  --ls-head: -0.01em;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-btn: 12px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --gap: clamp(16px, 0.9vw + 12px, 24px);
  --section-y: clamp(64px, 5vw + 44px, 128px);
  --container: 1200px;
  --gutter: clamp(16px, 3vw + 4px, 40px);
  --header-h: 68px;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h4: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.45vw, 1.4rem);
  --fs-h2: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem);
  --fs-h1: clamp(1.875rem, 1.1rem + 3.3vw, 4rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
}

/* Производные токены — пересчитываются для любой темы автоматически */
:root,
.theme-light,
.theme-dark {
  --accent-soft: color-mix(in srgb, var(--accent) 13%, var(--surface));
  --accent-hover: color-mix(in srgb, var(--accent) 86%, var(--text));
  --shadow-sm: 0 1px 2px rgb(var(--shadow-color) / 0.06), 0 2px 8px rgb(var(--shadow-color) / 0.05);
  --shadow-md: 0 2px 6px rgb(var(--shadow-color) / 0.06), 0 14px 36px rgb(var(--shadow-color) / 0.1);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

/* ==========================================================================
   2. БАЗА
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.is-locked { overflow: hidden; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.theme-dark, .theme-light { background-color: var(--bg); color: var(--text); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p, li, h1, h2, h3, h4 { overflow-wrap: break-word; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }

h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--font-head);
  font-weight: var(--fw-head);
  letter-spacing: var(--ls-head);
  line-height: 1.12;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }
p { text-wrap: pretty; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[tabindex="-1"]:focus { box-shadow: none; }
::selection { background: var(--accent); color: var(--accent-contrast); }

.icon, .ph__icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ==========================================================================
   3. РАСКЛАДКА
   ========================================================================== */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--surface-2); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

.section-head { display: grid; gap: var(--sp-4); max-width: 720px; margin-bottom: clamp(32px, 3vw + 16px, 56px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 768px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-7); }
  .section-head--split > .section-head__aside { grid-row: 1 / span 3; grid-column: 2; align-self: end; }
}
.section-head p { color: var(--muted); font-size: var(--fs-lg); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head--center .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Планшет: нечётная последняя карточка в grid--3 растягивается на всю ширину (без «сироты») */
@media (min-width: 600px) and (max-width: 959.98px) {
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid--3 > .service:last-child:nth-child(odd), .grid--3 > .member:last-child:nth-child(odd) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid--3 > .service:last-child:nth-child(odd) .media, .grid--3 > .member:last-child:nth-child(odd) .media { aspect-ratio: auto; min-height: 100%; }
  .hero__art { max-width: 400px; }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.lead { font-size: var(--fs-lg); color: var(--muted); }
.muted { color: var(--muted); }
.text-accent { color: var(--accent); }

/* ==========================================================================
   4. КНОПКИ, БЕЙДЖИ, ССЫЛКИ
   ========================================================================== */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--btn-bd); border-radius: var(--radius-btn);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { --btn-bd: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: var(--radius-btn); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-contrast); --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn--ghost { --btn-bg: transparent; }
.btn--light { --btn-bg: #fff; --btn-fg: #16120f; --btn-bd: #fff; }
.btn--light:hover { --btn-bg: #f1ece6; --btn-bd: #f1ece6; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.5); }
.btn--outline-light:hover { --btn-bd: #fff; --btn-bg: rgb(255 255 255 / 0.08); }
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn--icon { width: 52px; padding: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 3px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--text);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.badge--outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.badge .icon { width: 14px; height: 14px; color: var(--accent); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px;
  color: var(--accent); font-weight: 700; text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.checklist { display: grid; gap: var(--sp-3); }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; margin-top: 0.15em; color: var(--accent); }

/* ==========================================================================
   5. ДЕКОРАТИВНЫЕ ПЛЕЙСХОЛДЕРЫ (вместо фото) и МЕДИА
   .media — рамка с пропорцией; внутри либо <img>, либо .ph
   ========================================================================== */
.media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: var(--ratio, 4 / 3); background: var(--surface-2); isolation: isolate; }
.media > img, .media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--square { --ratio: 1; }
.media--portrait { --ratio: 4 / 5; }
.media--wide { --ratio: 16 / 9; }

.ph {
  --c1: color-mix(in srgb, var(--accent) 24%, var(--surface));
  --c2: color-mix(in srgb, var(--accent) 7%, var(--surface-2));
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, var(--c1), transparent 60%), linear-gradient(160deg, var(--c2), var(--surface-2));
  color: color-mix(in srgb, var(--accent) 70%, var(--text));
}
.ph::before { content: ""; position: absolute; inset: 0; opacity: 0.55; pointer-events: none; }
.ph__icon { width: 44px; height: 44px; position: relative; opacity: 0.8; stroke-width: 1.4; }
.ph__label {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(6px);
  color: var(--text); font-size: var(--fs-xs); font-weight: 700;
}
/* концентрические кольца */
.ph--1::before { background: repeating-radial-gradient(circle at 78% 28%, transparent 0 22px, color-mix(in srgb, var(--accent) 22%, transparent) 22px 23px); }
/* диагональные полосы */
.ph--2 { background: linear-gradient(200deg, var(--c1), var(--c2) 70%); }
.ph--2::before { background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--accent) 14%, transparent) 14px 15px); }
/* точечная сетка */
.ph--3 { background: radial-gradient(90% 80% at 0% 100%, var(--c1), transparent 65%), var(--c2); }
.ph--3::before { background-image: radial-gradient(color-mix(in srgb, var(--accent) 35%, transparent) 1.2px, transparent 1.6px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(135deg, #000 20%, transparent 85%); mask-image: linear-gradient(135deg, #000 20%, transparent 85%); }
/* арки */
.ph--4 { background: linear-gradient(180deg, var(--c2), var(--c1)); }
.ph--4::before { opacity: 1; background: radial-gradient(circle at 50% 120%, transparent 0 34%, color-mix(in srgb, var(--accent) 16%, transparent) 34% 35%, transparent 35% 48%, color-mix(in srgb, var(--accent) 16%, transparent) 48% 49%, transparent 49% 62%, color-mix(in srgb, var(--accent) 16%, transparent) 62% 63%, transparent 63%); }
/* насыщенная (акцентная) плитка */
.ph--accent { --c1: color-mix(in srgb, var(--accent) 70%, #fff); background: radial-gradient(110% 90% at 100% 0%, var(--c1), transparent 60%), var(--accent); color: var(--accent-contrast); }
.ph--accent::before { background: repeating-radial-gradient(circle at 20% 110%, transparent 0 26px, color-mix(in srgb, var(--accent-contrast) 22%, transparent) 26px 27px); }
.ph--accent .ph__icon { opacity: 0.9; }

/* ==========================================================================
   6. COMPONENT: header
   ========================================================================== */
/* Фон и blur — на ::before, а не на самой шапке: backdrop-filter/filter/transform
   на .site-header делают её containing block для position: fixed, и мобильное
   меню .nav (fixed внутри шапки) схлопывается до высоты шапки. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.menu-open::before { background: var(--bg); }
.header__inner { display: flex; align-items: center; gap: var(--sp-5); height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1; margin-right: auto; }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); font-size: 1rem; }
.logo__sub { display: block; margin-top: 4px; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; color: var(--muted); }

.nav__list { display: flex; gap: var(--sp-1); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--text);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__footer { display: none; }
.header__cta { display: none; }

.burger {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text);
}
.burger__box { position: relative; width: 22px; height: 14px; }
.burger__box span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 260ms var(--ease), opacity 160ms var(--ease), top 260ms var(--ease); }
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; }
.burger__box span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 959.98px) {
  .nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 49;
    display: flex; flex-direction: column; gap: var(--sp-6);
    padding: var(--sp-5) var(--gutter) calc(var(--sp-6) + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 220ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--line); }
  .nav__link { width: 100%; min-height: 60px; padding: 0; border-radius: 0; font-family: var(--font-head); font-size: 1.375rem; font-weight: var(--fw-head); justify-content: space-between; }
  .nav__link:hover { background: transparent; color: var(--accent); }
  .nav__footer { display: grid; gap: var(--sp-4); margin-top: auto; }
  .nav__footer .muted { font-size: var(--fs-sm); }
}
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .logo { margin-right: 0; }
  .nav { margin-inline: auto; }
}

/* ==========================================================================
   7. COMPONENT: hero (варианты .hero--type и .hero--photo)
   ========================================================================== */
.hero { position: relative; overflow: clip; isolation: isolate; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: var(--fs-lg); color: var(--muted); max-width: 54ch; }
.hero__content { display: grid; gap: var(--sp-5); align-content: center; }
.hero__content .btn-row { margin-top: var(--sp-2); }
.hero__facts { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.hero__facts li { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); font-weight: 600; }
.hero__facts .icon { width: 20px; height: 20px; color: var(--accent); }
@media (min-width: 600px) { .hero__facts { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: var(--sp-6); } }

/* --- hero--type: без фото, типографика + градиент + паттерн --- */
.hero--type { padding-block: clamp(40px, 4vw + 24px, 96px) clamp(56px, 5vw + 32px, 120px); background: radial-gradient(60% 55% at 92% 8%, var(--accent-soft), transparent 70%), var(--bg); }
.hero--type::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 80% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 80% 30%, #000, transparent 75%);
}
.hero--type .hero__grid { display: grid; gap: clamp(40px, 4vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero--type .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }

.hero__art { position: relative; width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 5 / 5.4; }
@media (max-width: 599.98px) {
  .hero__art { aspect-ratio: 1 / 1; max-width: 340px; }
  .hero__art .hero-card--b { top: 4%; }
  .hero__art .hero-card--a { bottom: 6%; }
  .hero--type .btn-row .btn { flex: 1 1 100%; }
}
.hero__frame {
  position: absolute; inset: 0 10% 0 10%; overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: radial-gradient(100% 70% at 70% 0%, color-mix(in srgb, var(--accent) 55%, #fff), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent));
  box-shadow: var(--shadow-md);
}
.hero__frame::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 105%, transparent 0 28px, rgb(255 255 255 / 0.16) 28px 29px); }
.hero__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__ring { position: absolute; width: 38%; aspect-ratio: 1; right: 0; top: 4%; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.hero__dot { position: absolute; width: 14%; aspect-ratio: 1; left: 2%; top: 22%; border-radius: 50%; background: var(--text); opacity: 0.9; }
.hero-card {
  position: absolute; display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px 16px 12px 12px; border-radius: var(--radius); max-width: 78%;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.hero-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.hero-card__icon .icon { width: 22px; height: 22px; }
.hero-card__label { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.hero-card__value { font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; }
.hero-card--a { left: 0; bottom: 14%; }
.hero-card--b { right: 0; top: 46%; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .icon { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-card--a { animation: float 7s ease-in-out infinite; }
  .hero-card--b { animation: float 8s ease-in-out -3s infinite; }
}
@keyframes float { 50% { transform: translateY(-8px); } }

/* --- hero--photo: фото на фоне + затемнение. Без <img> — тёмный градиент. --- */
.hero--photo { display: grid; align-items: end; min-height: min(86svh, 780px); padding-block: clamp(96px, 10vw, 160px) clamp(40px, 5vw, 88px); color: #fff; background: #1a1512; }
.hero--photo .hero__media { position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 85% 10%, color-mix(in srgb, var(--accent) 60%, #000), transparent 70%), linear-gradient(160deg, #2a221d, #120f0d); }
.hero--photo .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--photo .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(12 9 7 / 0.35) 0%, rgb(12 9 7 / 0.5) 40%, rgb(12 9 7 / 0.88) 100%); }
@media (min-width: 960px) { .hero--photo .hero__media::after { background: linear-gradient(90deg, rgb(12 9 7 / 0.85) 0%, rgb(12 9 7 / 0.55) 55%, rgb(12 9 7 / 0.25) 100%), linear-gradient(0deg, rgb(12 9 7 / 0.5), transparent 40%); } }
.hero--photo .hero__content { max-width: 720px; }
.hero--photo .hero__lead { color: rgb(255 255 255 / 0.86); }
.hero--photo .hero__title em { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.12em; }
.hero--photo .eyebrow { color: #fff; }
.hero--photo .hero__facts { border-top-color: rgb(255 255 255 / 0.22); }
.hero--photo .hero__facts .icon { color: #fff; }

/* ==========================================================================
   8. КАРТОЧКИ: преимущества, услуги
   ========================================================================== */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  padding: clamp(22px, 1.5vw + 16px, 32px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card p { color: var(--muted); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }

/* COMPONENT: features (преимущества) */
.feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--sp-2); background: var(--accent-soft); color: var(--accent); }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: var(--fs-h4); }
@media (max-width: 599.98px) {
  .feature { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-4); row-gap: var(--sp-1); align-items: start; padding: 20px; }
  .feature__icon { grid-row: span 2; margin: 0; width: 48px; height: 48px; }
}

/* COMPONENT: services (направления) */
.service { padding: 0; overflow: hidden; gap: 0; }
.service .media { border-radius: 0; --ratio: 16 / 10; }
.service .media img { transition: transform 600ms var(--ease); }
.service:hover .media img { transform: scale(1.04); }
.service__body { display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; padding: clamp(20px, 1.2vw + 16px, 28px); }
.service__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.service__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.service__price { font-weight: 700; }
.service__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service:has(.service__link:focus-visible) { box-shadow: var(--focus); }
.service__link:focus-visible { box-shadow: none; }

/* ==========================================================================
   9. COMPONENT: tabs (для расписания, прайса)
   ========================================================================== */
.tabs__list {
  display: flex; gap: 4px; width: max-content; max-width: 100%; margin-bottom: var(--sp-6);
  padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.section--alt .tabs__list { background: var(--bg); }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs--center .tabs__list { margin-inline: auto; }
/* .tabs__list--fill: вкладки делят ширину поровну (на мобиле), без прокрутки */
@media (max-width: 767.98px) {
  .tabs__list--fill { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .tabs__list--fill .tab { padding: 0 6px; }
}
.tab {
  flex: none; min-height: 44px; min-width: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-sm); }
.tab:focus-visible { border-radius: 999px; }
.tab__long { display: none; }
@media (min-width: 960px) { .tab__long { display: inline; } .tab__long + .tab__short, .tab:has(.tab__long) .tab__short { display: none; } }
.tabs__panel:focus-visible { border-radius: var(--radius); }
.tabs__nojs-title { margin: var(--sp-6) 0 var(--sp-4); font-size: var(--fs-h4); }
.js .tabs__nojs-title { display: none; }
html:not(.js) .tabs__list { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .tabs__panel.is-entering { animation: panel-in 320ms var(--ease); }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }

/* ==========================================================================
   10. COMPONENT: pricing (прайс-лист)
   ========================================================================== */
.pricing__card { padding: clamp(8px, 1vw + 4px, 16px) clamp(20px, 2vw + 12px, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-5); align-items: center; padding-block: clamp(16px, 1vw + 12px, 24px); }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-row__title { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.price-row__meta { margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }
.price-row__price { font-family: var(--font-head); font-weight: var(--fw-head); font-size: var(--fs-lg); white-space: nowrap; text-align: right; }
.price-row__price small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.pricing__note { display: flex; gap: var(--sp-3); align-items: flex-start; margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--muted); }
.pricing__note .icon { color: var(--accent); margin-top: 2px; }

/* ==========================================================================
   11. COMPONENT: plans (абонементы, 3 тарифа; .plan--featured — выделенный)
   ========================================================================== */
.plans { display: grid; gap: var(--gap); align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 959.98px) { .plans { max-width: 560px; margin-inline: auto; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-4);
  padding: clamp(24px, 1.5vw + 20px, 40px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.plan__name { font-size: var(--fs-h3); }
.plan__desc { color: var(--muted); font-size: var(--fs-sm); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding-block: var(--sp-4); border-block: 1px solid var(--line); }
.plan__amount { font-family: var(--font-head); font-weight: var(--fw-head); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); letter-spacing: var(--ls-head); line-height: 1; }
.plan__period { color: var(--muted); font-size: var(--fs-sm); }
.plan .checklist { margin-bottom: var(--sp-4); font-size: var(--fs-sm); }
.plan .btn { margin-top: auto; }
.plan__badge { position: absolute; top: 0; right: clamp(24px, 1.5vw + 20px, 40px); transform: translateY(-50%); }
.plan--featured { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); box-shadow: 0 20px 48px color-mix(in srgb, var(--accent) 26%, transparent); }
.plan--featured .plan__desc, .plan--featured .plan__period { color: color-mix(in srgb, var(--accent-contrast) 88%, transparent); }
.plan--featured .plan__price { border-color: color-mix(in srgb, var(--accent-contrast) 25%, transparent); }
.plan--featured .checklist .icon { color: currentColor; }
.plan--featured .btn { --btn-bg: var(--accent-contrast); --btn-fg: var(--accent); --btn-bd: var(--accent-contrast); }
.plan--featured .btn:hover { --btn-bg: color-mix(in srgb, var(--accent-contrast) 90%, var(--accent)); }
.plan--featured :focus-visible { box-shadow: 0 0 0 3px var(--accent), 0 0 0 5px var(--accent-contrast); }
.plan--featured .plan__badge { background: var(--text); color: var(--bg); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   12. COMPONENT: schedule (расписание: табы по дням, список слотов)
   ========================================================================== */
.slots { display: grid; gap: var(--sp-3); }
.slot {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3) var(--sp-4); align-items: center;
  padding: var(--sp-4) var(--sp-5); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease);
}
.slot:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.slot__time { display: grid; min-width: 64px; }
.slot__time time { font-family: var(--font-head); font-weight: var(--fw-head); font-size: var(--fs-lg); line-height: 1.2; }
.slot__time span { font-size: var(--fs-xs); color: var(--muted); }
.slot__title { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.slot__meta { font-size: var(--fs-sm); color: var(--muted); }
.slot__side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--line); }
.badge--low { background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); }
@media (min-width: 768px) {
  .slot { grid-template-columns: 96px minmax(0, 1fr) auto; padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-6); }
  .slot__side { grid-column: auto; padding-top: 0; border-top: 0; gap: var(--sp-5); }
}
.schedule__note { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--muted); }

/* ==========================================================================
   13. COMPONENT: gallery (сетка; плитки .ph или <img>)
   ========================================================================== */
.gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; grid-auto-flow: dense; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; }
.gallery__item > img, .gallery__item > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.gallery__item:hover > img { transform: scale(1.04); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: var(--gap); } }
@media (min-width: 1200px) { .gallery { grid-auto-rows: 240px; } }

/* ==========================================================================
   14. COMPONENT: team (роли без имён)
   ========================================================================== */
.member { padding: 0; overflow: hidden; gap: 0; }
.member .media { border-radius: 0; --ratio: 16 / 10; }
@media (min-width: 960px) { .member .media { --ratio: 1; } }
.member__body { display: grid; gap: var(--sp-2); padding: var(--sp-5); }
.member__role { font-size: var(--fs-h4); }
.member__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }

/* ==========================================================================
   15. COMPONENT: reviews — одна крупная цитата + плашка «Что изменилось».
   Без JS отзывы идут списком; script.js ставит .is-ready и включает листание.
   ========================================================================== */
#reviews { overflow-x: clip; } /* сдвиг цитаты при анимации не даёт горизонтальной прокрутки */
.quotes { position: relative; max-width: 1040px; margin-inline: auto; }
.quotes__track { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
.quote { display: grid; gap: var(--sp-6); align-items: center; min-width: 0; }
.quote__main {
  position: relative; display: grid; gap: var(--sp-5); justify-items: center; text-align: center; min-width: 0;
  padding-top: clamp(44px, 2vw + 36px, 64px);
}
/* Крупная мягкая кавычка — фирменный знак блока */
.quote__main::before {
  content: "\201C"; position: absolute; top: -0.12em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-style: italic; font-weight: 400; line-height: 1;
  font-size: clamp(6rem, 4vw + 5rem, 9rem); color: var(--accent); opacity: 0.18;
  pointer-events: none;
}
.quote__text p {
  font-family: var(--font-head); font-style: italic; font-weight: 400;
  font-size: clamp(1.3125rem, 0.95rem + 1.25vw, 1.875rem); line-height: 1.42;
  letter-spacing: -0.005em; color: var(--text); text-wrap: pretty; max-width: 34ch;
}
.quote__who { display: grid; justify-items: center; gap: var(--sp-1); font-size: var(--fs-sm); color: var(--muted); }
.quote__dir { color: var(--accent); font-weight: 600; }
@media (min-width: 600px) {
  .quote__who { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-1) var(--sp-3); }
  .quote__dir::before { content: "·"; margin-right: var(--sp-3); color: var(--muted); font-weight: 400; }
}
.quote__change {
  display: grid; gap: var(--sp-2); justify-self: center; width: min(100%, 340px);
  padding: var(--sp-5); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.quote__label {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.quote__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.quote__change p { color: var(--text); font-family: var(--font-head); font-size: var(--fs-lg); line-height: 1.4; }

@media (min-width: 960px) {
  .quote { grid-template-columns: minmax(0, 1fr) 280px; column-gap: var(--sp-8); }
  .quote__change { width: 100%; justify-self: stretch; padding: var(--sp-6) var(--sp-5); margin-top: clamp(44px, 2vw + 36px, 64px); }
}

/* Режим карусели: все отзывы в одной ячейке — высота блока не прыгает */
.quotes.is-ready .quotes__track { gap: 0; touch-action: pan-y; }
.quotes.is-ready .quote { grid-area: 1 / 1; }
.quotes__track:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
.quotes.is-ready .quote:not(.is-active) { visibility: hidden; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .quotes.is-ready .quote:not(.is-active) { transition: opacity 220ms ease, visibility 0s linear 220ms; }
  .quotes.is-ready .quote.is-active { animation: quote-in 560ms var(--ease) both; }
}
@keyframes quote-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); } }

.quotes__nav { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); margin-top: clamp(32px, 2vw + 24px, 48px); }
.quotes__nav[hidden] { display: none; }
.quotes__arrow {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); color: var(--accent); border: 1px solid var(--line); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.quotes__arrow .icon { width: 20px; height: 20px; }
.quotes__arrow--prev .icon { transform: scaleX(-1); }
.quotes__arrow:hover { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.quotes__arrow:focus-visible, .quotes__dot:focus-visible { outline: none; box-shadow: var(--focus); }
.quotes__dots { display: flex; align-items: center; }
.quotes__dot {
  width: 32px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px;
}
.quotes__dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 30%, transparent);
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.quotes__dot:hover::before { background: color-mix(in srgb, var(--accent) 60%, transparent); }
.quotes__dot[aria-current="true"]::before { width: 22px; background: var(--accent); }

/* ==========================================================================
   16. COMPONENT: steps (как записаться 1-2-3)
   ========================================================================== */
.steps { display: grid; gap: var(--gap); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; display: grid; gap: var(--sp-3); align-content: start; padding: clamp(24px, 1.5vw + 16px, 32px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: var(--fw-head); font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em;
  color: var(--accent); margin-bottom: var(--sp-3);
}
.step p { color: var(--muted); }
@media (min-width: 768px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: calc(clamp(24px, 1.5vw + 16px, 32px) + 20px); left: calc(clamp(24px, 1.5vw + 16px, 32px) + 76px); right: clamp(24px, 1.5vw + 16px, 32px); border-top: 1.5px dashed var(--line); }
}
.steps__cta { margin-top: var(--sp-7); display: flex; justify-content: center; }

/* ==========================================================================
   17. COMPONENT: faq (аккордеон на <details>)
   ========================================================================== */
.faq__layout { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) { .faq__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-8); align-items: start; } .faq__layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq__layout .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 64px; padding: var(--sp-4) 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--fs-lg); line-height: 1.4;
  transition: color var(--dur) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q:focus-visible { border-radius: 8px; }
.faq__toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform 300ms var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.faq__toggle .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__toggle { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.faq__body { overflow: hidden; }
.faq__body > div { padding: 0 56px var(--sp-5) 0; color: var(--muted); display: grid; gap: var(--sp-3); }

/* ==========================================================================
   18. COMPONENT: booking (форма записи)
   ========================================================================== */
.booking__layout { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) { .booking__layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sp-8); align-items: center; } }
.booking__info { display: grid; gap: var(--sp-5); }
.booking__info .section-head { margin-bottom: 0; }
.booking__contact { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--muted); }
.booking__contact a { color: var(--text); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.booking__contact a:hover { color: var(--accent); }

.form { display: grid; gap: var(--sp-4); padding: clamp(24px, 2vw + 16px, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form__title { font-size: var(--fs-h3); }
.form__row { display: grid; gap: var(--sp-4); }
@media (min-width: 600px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-sm); font-weight: 700; }
.field__label .req { color: var(--accent); }
.field__control {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field__control::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field__control:hover { border-color: color-mix(in srgb, var(--text) 35%, var(--line)); }
.field__control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: var(--surface); }
.field__control:user-invalid { border-color: #c62828; }
.theme-dark .field__control:user-invalid { border-color: #ff8a80; }
textarea.field__control { min-height: 104px; resize: vertical; }
.field__select { position: relative; }
.field__select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.field__select .field__control { padding-right: 44px; cursor: pointer; }
.field__control[type="date"] { cursor: pointer; }
.field__control[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.6; cursor: pointer; }
.consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; min-height: 44px; }
.consent input {
  flex: none; width: 32px; height: 32px; margin: -4px 0 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; border: 1.5px solid color-mix(in srgb, var(--text) 30%, var(--line)); border-radius: 9px; background: var(--bg) center / 20px no-repeat;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.consent input:hover { border-color: var(--accent); }
.consent input:checked { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.theme-dark .consent input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0d07' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.consent input:focus-visible { box-shadow: var(--focus); }
.consent span { padding-top: 2px; }
.form__success {
  display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--text); font-weight: 600; font-size: var(--fs-sm);
}
.form__success[hidden] { display: none; }
.form__success .icon { color: var(--accent); width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) { .form__success:not([hidden]) { animation: panel-in 360ms var(--ease); } }

/* ==========================================================================
   19. COMPONENT: contacts (+ стилизованная «карта»)
   ========================================================================== */
.contacts__layout { display: grid; gap: var(--gap); }
@media (min-width: 960px) { .contacts__layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.contact-list { display: grid; gap: var(--sp-2); padding: clamp(20px, 2vw + 12px, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-list li { display: flex; gap: var(--sp-4); align-items: center; padding-block: var(--sp-3); }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.contact-list__label { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list__value { font-weight: 700; text-decoration: none; }
a.contact-list__value { display: inline-flex; min-height: 32px; align-items: center; }
a.contact-list__value:hover { color: var(--accent); }
.socials { display: flex; gap: var(--sp-2); }
.socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.socials a:focus-visible { border-radius: 50%; }
.socials .icon { width: 22px; height: 22px; }

.map-stub {
  position: relative; overflow: hidden; min-height: 320px; border-radius: var(--radius-lg); isolation: isolate;
  background:
    linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--surface);
  border: 1px solid var(--line);
}
.map-stub__roads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: var(--line); }
.map-stub__park { fill: color-mix(in srgb, var(--accent) 9%, transparent); }
.map-stub__river { stroke: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); }
.map-stub__pin { position: absolute; left: 50%; top: clamp(36%, 30% + 4vw, 46%); transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 6px; }
.map-stub__marker { width: 56px; height: 56px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-md); }
.map-stub__marker .icon { transform: rotate(45deg); width: 24px; height: 24px; }
.map-stub__pulse { position: absolute; left: 50%; bottom: -10px; width: 24px; height: 8px; margin-left: -12px; border-radius: 50%; background: rgb(var(--shadow-color) / 0.25); }
.map-stub__card { position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-stub__card strong { display: block; }
.map-stub__card span { font-size: var(--fs-sm); color: var(--muted); }

/* ==========================================================================
   20. COMPONENT: page-head (заголовок внутренней страницы)
   ========================================================================== */
.page-head { padding-block: clamp(40px, 4vw + 20px, 88px) clamp(32px, 3vw + 16px, 64px); background: radial-gradient(50% 80% at 100% 0%, var(--accent-soft), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.page-head__inner { display: grid; gap: var(--sp-4); max-width: 780px; }
.page-head p { font-size: var(--fs-lg); color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--sp-2); opacity: 0.6; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ==========================================================================
   21. COMPONENT: cta-band (финальный призыв)
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; display: grid; gap: var(--sp-5); padding: clamp(32px, 4vw + 16px, 72px); border-radius: var(--radius-lg); background: var(--accent); color: var(--accent-contrast); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(circle at 100% 0%, transparent 0 30px, color-mix(in srgb, var(--accent-contrast) 14%, transparent) 30px 31px); -webkit-mask-image: linear-gradient(240deg, #000, transparent 70%); mask-image: linear-gradient(240deg, #000, transparent 70%); }
.cta-band > div:first-child { display: grid; gap: var(--sp-3); }
.cta-band p { max-width: 52ch; color: color-mix(in srgb, var(--accent-contrast) 90%, transparent); font-size: var(--fs-lg); }
.cta-band .btn { --btn-bg: var(--accent-contrast); --btn-fg: var(--accent); --btn-bd: var(--accent-contrast); }
.cta-band .btn--ghost { --btn-bg: transparent; --btn-fg: var(--accent-contrast); --btn-bd: color-mix(in srgb, var(--accent-contrast) 50%, transparent); }
.cta-band :focus-visible { box-shadow: 0 0 0 3px var(--accent), 0 0 0 5px var(--accent-contrast); }
@media (min-width: 960px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* ==========================================================================
   22. COMPONENT: footer
   ========================================================================== */
.site-footer { padding-block: var(--sp-8) var(--sp-5); background: var(--surface); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__about { display: grid; gap: var(--sp-4); justify-items: start; max-width: 340px; color: var(--muted); }
.footer__about .logo { color: var(--text); }
.footer__title { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-2); }
.footer__links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }

/* ==========================================================================
   23. COMPONENT: sticky-cta (липкая кнопка на мобиле)
   ========================================================================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: var(--sp-2); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}
.sticky-cta .btn--primary { flex: 1; }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (max-width: 767.98px) { .has-sticky-cta .site-footer { padding-bottom: calc(var(--sp-5) + 76px + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ==========================================================================
   24. ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ. Класс reveal-ready ставит script.js —
   без JS контент виден сразу.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
  .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* === Клиент === */

/* hero: справа фото, слева — тёмно-зелёный фон с мягким свечением акцента */
.hero--photo { background: #14221e; }
.hero--photo .hero__media { background: #1b2d28; }
.hero--photo .hero__media > img { position: absolute; inset: 0; object-position: 50% 30%; }
.hero--photo .hero__media::after { z-index: 1; background: linear-gradient(180deg, rgb(20 34 30 / 0.2) 0%, rgb(20 34 30 / 0.45) 38%, rgb(14 26 22 / 0.92) 78%); }
.hero--photo .hero__title { font-size: clamp(1.875rem, 1.1rem + 3.3vw, 3.8rem); }
.hero--photo .eyebrow { color: #cfe6dc; }
.hero--photo .hero__title em { text-decoration-color: #7fc3ae; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid rgb(255 255 255 / 0.22); }
.hero__stats li { display: grid; gap: 2px; align-content: start; }
.hero__stats strong { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: var(--fw-head); font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); line-height: 1.1; white-space: nowrap; }
.hero__stats span { font-size: var(--fs-xs); color: rgb(255 255 255 / 0.82); line-height: 1.35; }
/* hero без фото: кольца и иконка в палитре */
.hero__media > .ph { position: absolute; inset: 0; color: rgb(255 255 255 / 0.55); background: radial-gradient(70% 60% at 70% 30%, rgb(46 107 94 / 0.75), transparent 70%), linear-gradient(160deg, #23443b, #14221e); }
.hero__media > .ph::before { opacity: 1; background: repeating-radial-gradient(circle at 70% 32%, transparent 0 38px, rgb(255 255 255 / 0.07) 38px 39px); }
.hero__media > .ph .ph__icon { width: 72px; height: 72px; stroke-width: 1.2; }
@media (max-width: 959.98px) {
  .hero--photo { min-height: 0; padding-top: clamp(300px, 60vw, 460px); }
  .hero--photo .hero__media { bottom: auto; height: clamp(520px, 95vw, 760px); }
  .hero__media > .ph { place-items: start center; padding-top: clamp(64px, 16vw, 150px); }
}
@media (max-width: 599.98px) {
  .hero--photo .hero__media::after { background: linear-gradient(180deg, rgb(20 34 30 / 0.05) 0%, rgb(20 34 30 / 0.35) 45%, #14221e 100%); }
  .hero--photo .btn-row .btn { flex: 1 1 100%; }
}
/* невысокие экраны (iPhone SE 375×667): главная кнопка hero — без прокрутки */
@media (max-width: 599.98px) and (max-height: 720px) {
  .hero--photo { padding-top: 236px; }
  .hero--photo .hero__media { height: 480px; }
  .hero__media > .ph { padding-top: 56px; }
}
@media (min-width: 960px) {
  .hero--photo { min-height: min(88svh, 800px); align-items: center; padding-block: 72px; background: radial-gradient(60% 80% at 0% 100%, rgb(46 107 94 / 0.4), transparent 70%), #14221e; }
  .hero--photo .hero__media { left: 46%; }
  .hero--photo .hero__media::after { background: linear-gradient(90deg, #14221e 0%, rgb(20 34 30 / 0.55) 22%, transparent 55%), linear-gradient(0deg, rgb(20 34 30 / 0.45), transparent 35%); }
  .hero--photo .hero__content { max-width: 600px; }
}

/* steps: 4 шага */
@media (min-width: 768px) and (max-width: 1099.98px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps--4 .step::after { display: none; } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* team: роли без фото — декоративная плитка с иконкой */
.member__tile { height: 128px; border-radius: 0; }
.member__tile .ph__icon { width: 40px; height: 40px; }
@media (min-width: 600px) and (max-width: 959.98px) { .grid--3 > .member:last-child:nth-child(odd) .member__tile { height: auto; min-height: 100%; } }

/* контакт-альтернативы под формой */
.booking__alt { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* prices: быстрые якоря */
.page-head__jump { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.page-head__jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: var(--fs-sm); font-weight: 700; }
.page-head__jump a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 599.98px) { .page-head .btn-row .btn { flex: 1 1 100%; } }

/* prices: прайс рядом с заголовком */
.prices__layout { display: grid; gap: var(--sp-6); }
.prices__layout .section-head { margin-bottom: 0; }
@media (min-width: 960px) { .prices__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-8); align-items: start; } }

/* prices: направления подробно */
.directions { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .directions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.direction { padding: 0; overflow: hidden; gap: 0; display: grid; grid-template-columns: 1fr; }
.direction__media { border-radius: 0; --ratio: 16 / 10; }
/* Человек на этих фото не по центру кадра — сдвигаем обрезку к нему */
.media > img[src$="back.jpg"] { object-position: 76% 50%; }
.media > img[src$="stretching.jpg"] { object-position: 40% 50%; }
.direction__body { display: grid; gap: var(--sp-3); align-content: start; padding: clamp(20px, 1.2vw + 16px, 28px); }
.direction__body .link-arrow { justify-self: start; }
.direction__facts { display: grid; gap: var(--sp-2); margin: var(--sp-2) 0 0; padding-top: var(--sp-3); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.direction__facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--sp-3); }
.direction__facts dt { color: var(--muted); }
.direction__facts dd { margin: 0; font-weight: 600; }
@media (min-width: 1100px) {
  .direction { grid-template-columns: 0.8fr 1.2fr; }
  .direction__media { --ratio: auto; height: 100%; min-height: 100%; }
}


/* page-head выровнен по сетке секций */
.page-head__inner { max-width: calc(var(--container) + var(--gutter) * 2); }
.page-head__inner > * { max-width: 780px; }

/* Плашка концепта (RULES.md): вверху, не fixed, 1–2 строки мелким текстом */
.demo-notice { background: var(--surface-2); color: var(--muted); font-size: 0.75rem; line-height: 1.35; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* about: широкое фото зала под преимуществами */
.about__hall { --ratio: 16 / 9; margin-top: var(--gap); }
@media (min-width: 960px) { .about__hall { --ratio: 21 / 8; } }

/* Фото ещё нет (script.js убрал несработавшую <img>): видна плитка .ph под ней */
.is-noimg > img { display: none; }

/* логотип-буква: рубленый шрифт, чтобы «П» читалась на 34px */
.logo__mark { font-family: var(--font-body); font-weight: 700; }

/* 320px: колонка формы не шире экрана (поля не распирают сетку) */
.booking__layout { grid-template-columns: minmax(0, 1fr); }
.field__control { min-width: 0; }
.form { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 599.98px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Модальное окно записи на занятие (prices.html) ---------- */
.modal {
  width: min(460px, calc(100% - 2 * var(--gutter))); max-height: calc(100dvh - 32px);
  margin: auto; /* общий сброс обнуляет margin, а им браузер центрирует <dialog> */
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-md);
  overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgb(20 34 30 / 0.55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in var(--dur) var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
html:has(.modal[open]) { overflow: hidden; }
/* Отступы — на внутреннем блоке: клик по самому <dialog> означает клик по затемнению */
.modal__step { display: grid; gap: var(--sp-4); padding: clamp(24px, 2vw + 16px, 36px); }
.modal__step[hidden] { display: none; }
.modal__title { font-size: var(--fs-h3); padding-right: 40px; }
.modal__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--text); cursor: pointer;
}
.modal__close .icon { transform: rotate(45deg); }
.modal__close:hover { background: var(--line); }
.modal__close:focus-visible { box-shadow: var(--focus); outline: none; }
.modal__facts {
  display: grid; gap: var(--sp-2); margin: 0; padding: var(--sp-4); list-style: none;
  border-radius: var(--radius-sm); background: var(--accent-soft); font-weight: 600;
}
.modal__facts li { display: flex; gap: var(--sp-3); align-items: center; }
.modal__facts .icon { color: var(--accent); flex: none; }
.modal__form { display: grid; gap: var(--sp-4); }
.modal__done { justify-items: center; text-align: center; }
.modal__done .modal__title { padding-right: 0; }
.modal__done .modal__title:focus { outline: none; }
.modal__done-icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin-top: var(--sp-2);
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
}
.modal__done-icon .icon { width: 36px; height: 36px; }
.modal__done-text { color: var(--text); }
.modal__note { font-size: var(--fs-sm); color: var(--muted); }
.slot .btn.is-booked { background: var(--accent-soft); border-color: transparent; color: var(--accent); cursor: default; }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

/* Плашка концепта: ссылка назад на mallarion.site */
.demo-notice .container { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.demo-notice__back { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.demo-notice__back:hover { text-decoration-thickness: 2px; }
