/* ==========================================================================
   СК «Комета» — дизайн-система «Kinetic Joy» + Liquid Glass
   Единственная действующая палитра (см. Дизайн/ПАЛИТРА — единственная действующая.md)
   Без внешних зависимостей: шрифты самохостятся, JS — классический скрипт.
   ========================================================================== */

/* ---------- Шрифты ---------- */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/Unbounded-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/Unbounded-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/Unbounded-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/Unbounded-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/Unbounded-800-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/Unbounded-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('../fonts/Onest-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url('../fonts/Onest-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url('../fonts/Onest-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url('../fonts/Onest-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('../fonts/Onest-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url('../fonts/Onest-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 700; font-display: swap; src: url('../fonts/Onest-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 700; font-display: swap; src: url('../fonts/Onest-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
  /* Поверхности */
  --bg: #f9f9ff;
  --bg-low: #f0f3ff;
  --bg-mid: #e7eeff;
  --bg-high: #dee8ff;
  --bg-highest: #d8e3fb;
  --bg-dim: #cfdaf2;
  --white: #ffffff;
  --inverse: #263143;
  --inverse-on: #ecf1ff;
  /* Текст и линии */
  --ink: #111c2d;
  --ink-2: #464554;
  --outline: #767586;
  --outline-2: #c7c4d7;
  /* Фиолет — primary */
  --violet: #4648d4;
  --violet-2: #6063ee;
  --violet-deep: #2f2ebe;
  --violet-ink: #07006c;
  --violet-soft: #e1e0ff;
  --violet-dim: #c0c1ff;
  /* Жёлтый — secondary */
  --sun: #fed01b;
  --sun-soft: #ffe083;
  --sun-dim: #eec200;
  --sun-ink: #6f5900;
  --sun-deep: #574500;
  --sun-text: #735c00;
  /* Фуксия — tertiary */
  --fuchsia: #d23284;
  --fuchsia-deep: #b10e6b;
  --fuchsia-soft: #ffd9e4;
  --fuchsia-dim: #ffb0cd;
  --fuchsia-ink: #8c0053;
  /* Ошибка */
  --err: #ba1a1a;
  --err-soft: #ffdad6;
  --err-ink: #93000a;

  /* Радиусы */
  --r-sm: .5rem; --r: 1rem; --r-md: 1.5rem; --r-lg: 2rem; --r-xl: 3rem; --r-full: 9999px;

  /* Сетка */
  --unit: 8px;
  --wrap: 1440px;
  --gutter: 24px;
  --pad-x: clamp(20px, 4vw, 64px);
  --sec-y: clamp(64px, 9vw, 120px);

  /* Типографика */
  --ff-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --ff-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-hero: clamp(2.75rem, 10.5vw, 10.5rem);
  --fs-h1: clamp(2.25rem, 6.4vw, 5.5rem);
  --fs-h2: clamp(1.75rem, 4.6vw, 4rem);
  --fs-h3: clamp(1.375rem, 2.2vw, 2rem);
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-label: .8125rem;

  /* Движение */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .18s;
  --t: .42s;
  --t-slow: .9s;

  /* Стекло */
  --glass-blur: 22px;
  --glass-tint: rgba(255, 255, 255, .52);
  --glass-tint-2: rgba(255, 255, 255, .22);
  --glass-edge: rgba(255, 255, 255, .78);
  --mx: 30%;
  --my: 25%;

  color-scheme: light;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: var(--r-sm); }
.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 { position: fixed; top: 12px; left: 12px; z-index: 1000; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-full); transform: translateY(-160%); transition: transform var(--t-fast); }
.skip:focus { transform: none; }

/* ---------- Типографика ---------- */
.display, .h1, .h2, .h3, .num {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.h2--tight { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
.h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
.h1 em, .h2 em, .display em { font-style: normal; color: var(--violet); }
.h1 .ol, .display .ol { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.lead { font-size: var(--fs-body-lg); font-weight: 500; line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.lead--ink { color: var(--ink); }
.body { font-size: var(--fs-body); color: var(--ink-2); max-width: 40em; text-wrap: pretty; }
.label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label--muted { color: var(--outline); }
.label--violet { color: var(--violet); }
.num { font-weight: 800; line-height: .9; }
.rot { display: inline-block; transform: rotate(-3deg); }

/* ---------- Каркас ---------- */
.wrap { width: min(100% - 2 * var(--pad-x), var(--wrap)); margin-inline: auto; }
.sec { padding-block: var(--sec-y); position: relative; }
.sec--tight { padding-block: calc(var(--sec-y) * .6); }
.sec--flush { padding-top: 0; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
/* start: auto, end: span N — тогда .off-N может сдвинуть начало, не теряя ширину */
.col-3 { grid-column: auto / span 3; } .col-4 { grid-column: auto / span 4; } .col-5 { grid-column: auto / span 5; }
.col-6 { grid-column: auto / span 6; } .col-7 { grid-column: auto / span 7; } .col-8 { grid-column: auto / span 8; }
.col-9 { grid-column: auto / span 9; } .col-12 { grid-column: auto / span 12; }
.off-1 { grid-column-start: 2; } .off-2 { grid-column-start: 3; } .off-3 { grid-column-start: 4; } .off-4 { grid-column-start: 5; }
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(8, 1fr); }
  .col-3, .col-4 { grid-column: auto / span 4; } .col-5, .col-6, .col-7 { grid-column: auto / span 8; } .col-8, .col-9 { grid-column: auto / span 8; }
  .off-1, .off-2, .off-3, .off-4 { grid-column-start: auto; }
}
@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-12 { grid-column: 1 / -1; }
}

/* Заголовок секции в духе референса: мелкий лейбл слева, огромный заголовок справа */
.sec-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gutter); align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.sec-head__label { display: flex; align-items: center; gap: 16px; padding-bottom: .5em; }
.sec-head__label::after { content: ''; flex: 1; height: 1px; background: var(--outline-2); }
.sec-head__title { max-width: 14em; }
.sec-head__note { margin-top: 20px; }
@media (max-width: 768px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Фон: плавные цветовые пятна ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .6; will-change: transform; mix-blend-mode: multiply; }
.blob--v { width: 60vw; height: 60vw; left: -18vw; top: -20vw; background: var(--violet-dim); animation: drift-a 26s var(--ease-io) infinite alternate; }
.blob--s { width: 44vw; height: 44vw; right: -12vw; top: 8vh; background: var(--sun-soft); animation: drift-b 30s var(--ease-io) infinite alternate; }
.blob--f { width: 38vw; height: 38vw; left: 30vw; bottom: -18vw; background: var(--fuchsia-dim); opacity: .45; animation: drift-c 34s var(--ease-io) infinite alternate; }
@keyframes drift-a { to { transform: translate(14vw, 10vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-12vw, 24vh) scale(.9); } }
@keyframes drift-c { to { transform: translate(-18vw, -14vh) scale(1.15); } }

/* ---------- Liquid Glass ---------- */
.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--glass-tint), var(--glass-tint-2));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.7) brightness(1.04);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.7) brightness(1.04);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    inset 0 -1px 0 rgba(70, 72, 212, .10),
    inset 1px 0 0 rgba(255, 255, 255, .45),
    inset -1px 0 0 rgba(70, 72, 212, .06),
    0 24px 60px -32px rgba(17, 28, 45, .28);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t);
}
/* тонкая цветная граница: градиентное кольцо через маску */
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(125deg, rgba(70, 72, 212, .55), rgba(254, 208, 27, .45) 45%, rgba(210, 50, 132, .45) 80%, rgba(255, 255, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .8;
}
/* блик, следующий за курсором (переменные --mx/--my ставит скрипт) */
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 62%),
    linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .18));
  mix-blend-mode: soft-light;
  opacity: .95;
  transition: opacity var(--t);
}
.glass > * { position: relative; z-index: 3; }
/* уровни глубины */
.glass--1 { --glass-blur: 28px; --glass-tint: rgba(255, 255, 255, .62); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 rgba(70, 72, 212, .12), 0 30px 80px -30px rgba(70, 72, 212, .35); }
.glass--2 { --glass-blur: 18px; --glass-tint: rgba(255, 255, 255, .46); }
.glass--3 { --glass-blur: 12px; --glass-tint: rgba(255, 255, 255, .34); --glass-tint-2: rgba(255, 255, 255, .12); }
.glass--violet { --glass-tint: rgba(96, 99, 238, .82); --glass-tint-2: rgba(70, 72, 212, .78); --glass-edge: rgba(255, 255, 255, .45); color: var(--white); }
.glass--violet::before { background: linear-gradient(125deg, rgba(255, 255, 255, .7), rgba(254, 208, 27, .6) 50%, rgba(255, 176, 205, .5)); }
.glass--fuchsia { --glass-tint: rgba(210, 50, 132, .84); --glass-tint-2: rgba(177, 14, 107, .8); --glass-edge: rgba(255, 255, 255, .45); color: var(--white); }
.glass--sun { --glass-tint: rgba(254, 208, 27, .82); --glass-tint-2: rgba(255, 224, 131, .7); color: var(--sun-deep); }
.glass--sun::before { background: linear-gradient(125deg, rgba(255, 255, 255, .9), rgba(115, 92, 0, .25)); }
/* интерактивные состояния стекла */
.glass--hover:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 rgba(70, 72, 212, .12), 0 36px 80px -28px rgba(70, 72, 212, .38); }
.glass--hover:active { transform: translateY(-1px) scale(.995); }
.glass--hover:focus-within { box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 3px var(--sun); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .88); }
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--violet); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border-radius: var(--r-full);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1; letter-spacing: -.01em;
  border: 2px solid transparent;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--sun); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--sun); }
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--violet); border-color: var(--violet); }
.btn--ghost:hover { box-shadow: 4px 4px 0 var(--sun); }
.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--sun-deep); }
.btn--sun:hover { box-shadow: 4px 4px 0 var(--violet); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--violet); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--lg { min-height: 64px; padding: 0 36px; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .arr { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link { font-weight: 600; color: var(--violet); border-bottom: 2px solid var(--violet-dim); transition: border-color var(--t-fast); }
.link:hover { border-color: var(--violet); }

/* ---------- Чипы и бейджи ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-full);
  background: var(--sun); color: var(--ink);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
}
.chip--violet { background: var(--violet-soft); color: var(--violet-deep); }
.chip--fuchsia { background: var(--fuchsia-soft); color: var(--fuchsia-ink); }
.chip--outline { background: transparent; border: 1.5px solid var(--outline-2); color: var(--ink-2); }
.chip--ink { background: var(--ink); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Карточки ---------- */
.card { border-radius: var(--r-md); background: var(--white); padding: clamp(20px, 3vw, 32px); }
.card--pastel { background: var(--bg-low); }
.card--sticker { position: relative; isolation: isolate; }
.card--sticker::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--violet); transform: translate(8px, 8px); z-index: -1; transition: transform var(--t) var(--ease); }
.card--sticker:hover::before { transform: translate(14px, 14px); }
.card--sticker.sun::before { background: var(--sun); }
.card--sticker.fuchsia::before { background: var(--fuchsia); }

/* ---------- Навигация: плавающее стекло ---------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; padding-inline: var(--pad-x); pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  width: min(100%, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px;
  border-radius: var(--r-full);
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -.02em; color: var(--ink); padding-right: 8px; }
.nav__mark { width: 18px; height: 48px; color: var(--violet); flex: none; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 10px 14px; border-radius: var(--r-full);
  font-weight: 600; font-size: .9375rem; color: var(--ink-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--ink); background: rgba(255, 255, 255, .55); }
.nav__links a[aria-current="page"], .nav__links a.is-active { color: var(--violet); }
.nav__links a[aria-current="page"]::after, .nav__links a.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--sun); border-radius: 2px; }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; flex-direction: column; width: 48px; height: 48px; border-radius: var(--r-full); align-items: center; justify-content: center; margin-left: auto; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform var(--t) var(--ease), opacity var(--t); }
.nav__burger span + span { margin-top: 6px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav__sheet { display: none; }
@media (max-width: 1200px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__sheet {
    display: block; position: fixed; inset: 88px var(--pad-x) auto; z-index: 99;
    border-radius: var(--r-lg); padding: 20px;
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; visibility: hidden;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .nav__sheet.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav__sheet a { display: block; padding: 14px 12px; font-family: var(--ff-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; border-radius: var(--r); }
  .nav__sheet a:hover, .nav__sheet a:focus-visible { background: rgba(255, 255, 255, .6); }
  .nav__sheet a[aria-current="page"] { color: var(--violet); }
  .nav__sheet .btn { margin-top: 12px; width: 100%; white-space: normal; min-height: 56px; padding: 12px 20px; }
}
@media (max-width: 480px) { .nav { top: 10px; } .nav__brand span { display: none; } }

/* ---------- Первый экран ---------- */
/* Секция выше экрана: пока пользователь прокручивает «лишние» 68svh, сцена
   закреплена, а заголовок заливается словами (переменные --p ставит скрипт). */
.hero { position: relative; height: 168svh; }
.hero__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding-top: 104px; overflow: hidden; }
.hero__ribbon { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero__ribbon path { fill: none; stroke: var(--violet-dim); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--hp, 0)); opacity: .9; }
.hero__stage { container-type: inline-size; container-name: hero; position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(16px, 3vh, 32px); }
.hero__kicker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: 0 var(--gutter); flex: 1; align-content: center; }
.hero__title { grid-column: 1 / 8; grid-row: 1; margin: 0; font-family: var(--ff-display); font-weight: 800; font-size: clamp(2.5rem, 8cqi, 8rem); line-height: .94; letter-spacing: -.04em; text-wrap: initial; }
.hero__copy { grid-column: 1 / 7; grid-row: 2; margin-top: clamp(20px, 3.5vh, 40px); }
.hero__art { grid-column: 8 / 13; grid-row: 1 / 3; align-self: center; justify-self: end; width: 100%; }
.hero__lead { font-size: clamp(1.0625rem, 1.5vw, 1.375rem); font-weight: 500; line-height: 1.45; color: var(--ink); max-width: 24em; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 18px 80px 24px 0; border-top: 1px solid var(--outline-2); }
.hero__foot a { transition: color var(--t-fast); }
.hero__foot a:hover { color: var(--violet); }
.hero__foot .spacer { flex: 1; }
/* заливка слов: контур снизу, сверху — залитая копия, обрезанная по --p.
   Обрезки встык: залитое видно слева от границы, контур — справа, иначе под
   заливкой просвечивает кайма обводки. Запас .2em по краям — под выносные
   элементы букв (ножка «К» шире бокса слова из-за отрицательного трекинга). */
.fw { position: relative; display: inline-block; white-space: nowrap; }
.fw__o { color: transparent; -webkit-text-stroke: 1.5px rgba(17, 28, 45, .3); clip-path: inset(-.12em -.2em -.16em calc(var(--p, 0) * (100% + .4em) - .2em)); }
.fw__f { position: absolute; inset: 0; color: var(--ink); clip-path: inset(-.12em calc(100% + .2em - var(--p, 0) * (100% + .4em)) -.16em -.2em); }
.fw--v .fw__f { color: var(--violet); }
/* фото в круге + жёлтый «стикер» позади; оба чуть едут за курсором */
.hero__photo { position: relative; isolation: isolate; width: min(100%, 58svh); aspect-ratio: 1; margin-left: auto; transform: translate(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px)); transition: transform .7s var(--ease); }
.hero__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 28%; box-shadow: 0 30px 80px -30px rgba(70, 72, 212, .45); }
.hero__disc { position: absolute; inset: 0; border-radius: 50%; background: var(--sun); z-index: -1; transform: translate(calc(22px + var(--px, 0) * -8px), calc(22px + var(--py, 0) * -8px)); transition: transform .9s var(--ease); }
.hero__switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-full); }
.hero__switch button { min-height: 36px; padding: 0 14px; border-radius: var(--r-full); font-weight: 600; font-size: .8125rem; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
.hero__switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.hero__switch button:hover { color: var(--ink); }
/* предпросмотр «телефон»: сцена 375px в рамке, закрепление снимается */
.hero--phone, .hero--static { height: auto; }
.hero--phone .hero__pin, .hero--static .hero__pin { position: static; height: auto; min-height: 100svh; overflow: visible; }
.hero--phone .hero__stage { width: 375px; max-width: 100%; margin-inline: auto; border: 10px solid var(--ink); border-radius: 44px; padding: 32px 16px 20px; background: var(--bg); box-shadow: 0 40px 100px -40px rgba(17, 28, 45, .5); min-height: 720px; flex: none; }
.hero--phone .hero__ribbon { display: none; }
/* та же вёрстка, что на 375px, — и внутри «телефона», и на настоящем телефоне */
@container hero (max-width: 700px) {
  .hero__top { margin-bottom: 20px; }
  .hero__grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; align-content: start; }
  .hero__title { grid-column: 1; grid-row: 1; font-size: clamp(2.5rem, 13.5cqi, 4.5rem); }
  .hero__art { grid-column: 1; grid-row: 2; justify-self: start; margin-top: 24px; }
  .hero__photo { width: min(100%, 250px); margin-left: 0; }
  .hero__disc { transform: translate(14px, 14px); }
  .hero__copy { grid-column: 1; grid-row: 3; margin-top: 24px; }
  .hero__actions .btn { width: 100%; }
  .hero__foot { gap: 10px 18px; padding-right: 0; }
  .hero__foot .spacer { display: none; }
}
/* невысокие ноутбуки: сцена должна целиком помещаться в закреплённый экран */
@media (min-width: 769px) and (max-height: 800px) {
  .hero__pin { padding-top: 92px; }
  .hero__top { margin-bottom: 12px; }
  .hero__title { font-size: clamp(2.5rem, 7cqi, 7rem); }
  .hero__copy { margin-top: 16px; }
  .hero__photo { width: min(100%, 54svh); }
  .hero__foot { padding: 12px 80px 14px 0; }
}
@media (max-width: 768px) {
  .hero { height: auto; }
  .hero__pin { position: static; height: auto; min-height: 100svh; overflow: visible; padding-top: 88px; }
  .hero__ribbon { display: none; }
}

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; white-space: nowrap; position: relative; }
.marquee__track { display: inline-flex; align-items: center; gap: var(--mq-gap, 40px); padding-right: var(--mq-gap, 40px); animation: marquee var(--mq-dur, 36s) linear infinite; will-change: transform; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee--hero { --mq-gap: .28em; --mq-dur: 46s; font-family: var(--ff-display); font-weight: 800; font-size: var(--fs-hero); font-size: clamp(2.75rem, 11.5cqi, 10.5rem); line-height: 1; letter-spacing: -.04em; margin-inline: calc(-1 * var(--pad-x)); padding-block: .04em; }
.marquee--hero .w { display: inline-block; }
.marquee--hero .w--v { color: var(--violet); }
.marquee--hero .w--ol { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.marquee--hero .w--f { color: var(--fuchsia); }
.marquee--hero .sep { width: .22em; height: .22em; border-radius: 50%; background: var(--sun); display: inline-block; margin-inline: .16em; vertical-align: middle; }
.marquee--caps { --mq-gap: 28px; --mq-dur: 32s; padding: 16px 0; border-block: 1px solid var(--outline-2); }
.marquee--caps .item { display: inline-flex; align-items: center; gap: 28px; font-weight: 700; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.marquee--caps .item::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.marquee--caps .item:nth-child(3n)::after { background: var(--sun); }
.marquee--caps .item:nth-child(3n+1)::after { background: var(--fuchsia); }
.marquee--sun { background: var(--sun); border: 0; }
.marquee--sun .item { color: var(--sun-deep); }
.marquee--sun .item::after { background: var(--ink) !important; }
.marquee--photos { --mq-gap: 16px; --mq-dur: 70s; margin-inline: calc(-1 * var(--pad-x)); }
.marquee--photos .marquee__track { align-items: stretch; }
.marquee--photos img { height: clamp(160px, 22vw, 300px); width: auto; border-radius: var(--r-md); object-fit: cover; flex: none; }
.marquee--photos img:nth-child(odd) { transform: rotate(-1.5deg) translateY(6px); }
.marquee--photos img:nth-child(even) { transform: rotate(1.2deg); }

/* ---------- Появление при скролле ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
.stagger > * { --d: calc(var(--i, 0) * 80ms); }

/* ---------- Схема экосистемы (главный motion-момент) ---------- */
/* Ядро сверху по центру, пять потоков-комет веером вниз, пять модулей в ряд.
   Фазы: is-split — ядро вспыхивает, потоки летят; is-assembled — модули
   поднимаются по прилёту, рельс соединяет их в одну систему. Итого ≤ 2 с. */
.eco__stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.eco__core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.eco__orb { position: relative; width: clamp(120px, 12vw, 168px); aspect-ratio: 1; border-radius: 50%; background: var(--violet); color: var(--white); display: grid; place-items: center; box-shadow: 10px 10px 0 var(--sun); transform: translate(calc(var(--px, 0) * 8px), calc(var(--py, 0) * 8px)); transition: transform .6s var(--ease); }
.eco__orb svg { width: 32%; height: auto; }
.eco__core .label { color: var(--ink-2); }
.eco__streams { display: block; width: 100%; aspect-ratio: 1200 / 220; height: auto; overflow: visible; margin-top: 4px; }
.eco__streams path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.eco__streams .glow { stroke-width: 10; filter: blur(6px); }
.eco__streams .s1, .eco__streams .g1 { stroke: var(--violet); } .eco__streams .s2, .eco__streams .g2 { stroke: var(--sun-dim); }
.eco__streams .s3, .eco__streams .g3 { stroke: var(--fuchsia); } .eco__streams .s4, .eco__streams .g4 { stroke: var(--violet-2); }
.eco__streams .s5, .eco__streams .g5 { stroke: var(--sun); }
.eco__streams .head { opacity: 0; stroke: #fff; stroke-width: 2; }
.eco__streams .head.h1 { fill: var(--violet); } .eco__streams .head.h2 { fill: var(--sun-dim); } .eco__streams .head.h3 { fill: var(--fuchsia); }
.eco__streams .head.h4 { fill: var(--violet-2); } .eco__streams .head.h5 { fill: var(--sun); }
.eco__streams .pulse { opacity: 0; fill: #fff; stroke: var(--violet); stroke-width: 1.5; }
.eco__modules { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; width: 100%; padding-top: 10px; }
.eco__rail { position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--violet), var(--sun-dim) 25%, var(--fuchsia) 50%, var(--violet-2) 75%, var(--sun)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) 1.05s; }
.eco__mod { --dot: var(--violet); position: relative; padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(28px) scale(.96); transition: opacity .5s var(--ease), transform .7s var(--ease), box-shadow var(--t); }
.eco__mod::before { content: ''; position: absolute; top: -17px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); transform: translateX(-50%); box-shadow: 0 0 0 4px var(--bg); }
.eco__mod:nth-child(3) { --dot: var(--sun-dim); } .eco__mod:nth-child(4) { --dot: var(--fuchsia); } .eco__mod:nth-child(5) { --dot: var(--violet-2); } .eco__mod:nth-child(6) { --dot: var(--sun); }
.eco__mod .h3 { font-size: 1.125rem; -webkit-hyphens: manual; hyphens: manual; }
.eco__mod .body { font-size: .875rem; }
.eco__mod .label { color: var(--violet); font-size: .6875rem; }
.eco__mod .eco__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); margin-bottom: 4px; flex: none; }
.eco__mod:nth-child(3) .eco__ico { background: var(--sun-soft); color: var(--sun-deep); }
.eco__mod:nth-child(4) .eco__ico { background: var(--fuchsia-soft); color: var(--fuchsia-ink); }
.eco__mod:nth-child(6) .eco__ico { background: var(--sun-soft); color: var(--sun-deep); }
.eco__mod .btn { margin-top: auto; align-self: flex-start; }
.eco.is-split .eco__orb { animation: core-pulse .9s var(--ease) both; }
.eco.is-split .eco__streams path { animation: stream 1s var(--ease-io) forwards; }
.eco.is-split .eco__streams .glow { animation: stream-glow 1s var(--ease-io) forwards; }
.eco.is-split .eco__streams .s1, .eco.is-split .eco__streams .g1 { animation-delay: 0s; }
.eco.is-split .eco__streams .s2, .eco.is-split .eco__streams .g2 { animation-delay: .07s; }
.eco.is-split .eco__streams .s3, .eco.is-split .eco__streams .g3 { animation-delay: .14s; }
.eco.is-split .eco__streams .s4, .eco.is-split .eco__streams .g4 { animation-delay: .21s; }
.eco.is-split .eco__streams .s5, .eco.is-split .eco__streams .g5 { animation-delay: .28s; }
.eco.is-assembled .eco__mod { opacity: 1; transform: none; }
.eco.is-assembled .eco__mod:nth-child(2) { transition-delay: .55s; } .eco.is-assembled .eco__mod:nth-child(3) { transition-delay: .63s; }
.eco.is-assembled .eco__mod:nth-child(4) { transition-delay: .71s; } .eco.is-assembled .eco__mod:nth-child(5) { transition-delay: .79s; }
.eco.is-assembled .eco__mod:nth-child(6) { transition-delay: .87s; }
.eco.is-assembled .eco__rail { transform: scaleX(1); }
@keyframes stream { 0% { stroke-dashoffset: 1; opacity: 0; } 15% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .85; } }
@keyframes stream-glow { 0% { stroke-dashoffset: 1; opacity: 0; } 20% { opacity: .5; } 100% { stroke-dashoffset: 0; opacity: .22; } }
@keyframes core-pulse { 0% { filter: brightness(1); } 25% { filter: brightness(1.25) saturate(1.3); transform: scale(1.06); } 100% { filter: brightness(1); transform: scale(1); } }
@media (max-width: 1024px) {
  .eco__streams, .eco__rail { display: none; }
  .eco__core::after { content: ''; width: 2px; height: 36px; background: var(--violet-dim); border-radius: 2px; }
  .eco__modules { grid-template-columns: repeat(2, 1fr); padding-top: 0; }
  .eco__mod:nth-child(6) { grid-column: 1 / -1; }
  .eco__mod::before { display: none; }
  /* потоков нет — модули собираются сразу, короткой лесенкой */
  .eco.is-assembled .eco__mod:nth-child(2) { transition-delay: .05s; } .eco.is-assembled .eco__mod:nth-child(3) { transition-delay: .13s; }
  .eco.is-assembled .eco__mod:nth-child(4) { transition-delay: .21s; } .eco.is-assembled .eco__mod:nth-child(5) { transition-delay: .29s; }
  .eco.is-assembled .eco__mod:nth-child(6) { transition-delay: .37s; }
}
@media (max-width: 640px) { .eco__modules { grid-template-columns: 1fr; } }

/* ---------- Направления (нумерованные строки, как в референсе) ---------- */
.dirs { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gutter); }
.dirs__aside { position: sticky; top: 120px; align-self: start; }
.dirs__aside .h2 { font-size: clamp(1.75rem, 2.5vw, 2.5rem); }
.dirs__list { display: flex; flex-direction: column; }
.dir { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(120px, 200px); gap: 20px; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--outline-2); align-items: start; position: relative; }
.dir:last-child { border-bottom: 1px solid var(--outline-2); }
.dir__n { font-family: var(--ff-display); font-weight: 700; font-size: .875rem; color: var(--outline); padding-top: .5em; }
.dir__n::before { content: '['; color: var(--outline-2); } .dir__n::after { content: ']'; color: var(--outline-2); }
.dir__title { font-size: clamp(1.75rem, 3.6vw, 3.25rem); letter-spacing: -.035em; transition: color var(--t-fast); }
.dir:hover .dir__title { color: var(--violet); }
.dir__body { margin-top: 14px; max-width: 34em; }
.dir__chips { margin-top: 18px; }
.dir__pic { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); transform: rotate(3deg); transition: transform var(--t) var(--ease); justify-self: end; }
.dir:nth-child(even) .dir__pic { transform: rotate(-3deg); }
.dir:hover .dir__pic { transform: rotate(0) scale(1.04); }
@media (max-width: 1024px) { .dirs { grid-template-columns: 1fr; } .dirs__aside { position: static; } .dirs__aside .h2 { font-size: var(--fs-h2); } }
@media (max-width: 640px) { .dir { grid-template-columns: 40px 1fr; } .dir__pic { grid-column: 2; max-width: 220px; justify-self: start; } }

/* ---------- Показатели: цветные карточки вразнобой ---------- */
.stats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.stat { border-radius: var(--r-md); padding: 28px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.stat .num { font-size: clamp(3rem, 6.4vw, 6.5rem); }
.stat .label { align-self: flex-end; text-align: right; max-width: 12em; }
.stat--violet { background: var(--violet); color: var(--white); grid-column: span 5; rotate: -1.2deg; }
.stat--sun { background: var(--sun); color: var(--sun-deep); grid-column: span 4; rotate: 1.5deg; translate: 0 18px; }
.stat--pastel { background: var(--bg-high); color: var(--ink); grid-column: span 3; rotate: -.8deg; }
.stat--fuchsia { background: var(--fuchsia); color: var(--white); grid-column: span 4; rotate: 1deg; translate: 0 -10px; }
.stat--ink { background: var(--ink); color: var(--white); grid-column: span 5; rotate: -1.4deg; translate: 0 8px; }
.stat--white { background: var(--white); color: var(--ink); grid-column: span 3; rotate: .9deg; translate: 0 20px; }
.stat--wide { grid-column: span 8; }
@media (max-width: 1024px) { .stat--violet, .stat--ink { grid-column: span 7; } .stat--sun, .stat--fuchsia { grid-column: span 5; } .stat--pastel, .stat--white { grid-column: span 6; } .stat--wide { grid-column: span 12; } }
@media (max-width: 640px) { .stat { grid-column: 1 / -1 !important; min-height: 180px; rotate: 0deg !important; translate: 0 !important; } .stats { gap: 12px; } }

/* ---------- Кейсы (выпускницы): раскрытие по нажатию ---------- */
.cases { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 48px); }
.case { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.case:nth-child(even) .case__media { order: 2; grid-column: 7 / 13; } .case:nth-child(even) .case__body { grid-column: 1 / 6; }
.case__media { grid-column: 1 / 7; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; position: relative; background: var(--bg-high); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case:hover .case__media img { transform: scale(1.04); }
.case__media .chip { position: absolute; left: 20px; top: 20px; }
.case__body { grid-column: 8 / 13; }
.case__title { font-size: clamp(2rem, 4.2vw, 3.75rem); }
.case__meta { margin-top: 10px; color: var(--ink-2); font-weight: 500; }
.case__toggle { margin-top: 24px; }
.case__toggle .arr { display: inline-block; transition: transform var(--t) var(--ease); }
.case__toggle[aria-expanded="true"] .arr { transform: rotate(45deg); }
.case__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease); }
.case__panel > div { overflow: hidden; }
.case__panel.is-open { grid-template-rows: 1fr; }
.case__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.case__fact { padding: 16px; border-radius: var(--r); background: var(--bg-low); }
.case__fact .num { font-size: 2rem; color: var(--violet); }
.case__fact .label { margin-top: 6px; color: var(--ink-2); font-size: .6875rem; }
.case__text { margin-top: 20px; }
@media (max-width: 1024px) {
  .case, .case:nth-child(even) .case__media, .case:nth-child(even) .case__body { grid-column: 1 / -1; order: 0; }
  .case { grid-template-columns: 1fr; }
  .case__media { grid-column: 1 / -1; aspect-ratio: 16 / 10; } .case__body { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .case__facts { grid-template-columns: 1fr 1fr; } }

/* ---------- До / После: перетаскиваемая граница ---------- */
.ba { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink); --pos: 50%; user-select: none; touch-action: pan-y; }
.ba__side { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(20px, 3vw, 40px); }
.ba__side--after { clip-path: inset(0 0 0 var(--pos)); }
.ba__side--before { background: linear-gradient(135deg, var(--bg-mid), var(--bg-highest)); color: var(--ink); }
.ba__side--after { background: linear-gradient(135deg, var(--violet), var(--violet-deep) 70%, var(--fuchsia-deep)); color: var(--white); }
.ba__side .display { font-size: clamp(2rem, 5.2vw, 5rem); }
.ba__side--before > .label { padding-left: 44px; }
.ba__side .display span { display: block; }
.ba__list { display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: clamp(.875rem, 1.2vw, 1.0625rem); }
.ba__list li { display: flex; align-items: center; gap: 10px; }
.ba__list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; flex: none; }
.ba__side--after .ba__list li::before { background: var(--sun); opacity: 1; }
.ba__silhouette { position: absolute; right: 6%; bottom: 0; height: 88%; width: auto; opacity: .14; pointer-events: none; }
.ba__side--after .ba__silhouette { opacity: .3; color: var(--white); }
.ba__side--before .ba__silhouette { color: var(--violet); transform: rotate(8deg) translateY(10%); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 5; }
.ba__handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--white); box-shadow: 0 0 0 1px rgba(17, 28, 45, .2); }
.ba__knob { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(17, 28, 45, .6); cursor: ew-resize; transition: transform var(--t-fast); }
.ba:hover .ba__knob, .ba:focus-within .ba__knob { transform: translate(-50%, -50%) scale(1.08); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 6; }
.ba__range:focus-visible ~ .ba__handle .ba__knob { outline: 3px solid var(--white); outline-offset: 3px; }
.ba__tag { position: absolute; top: 20px; padding: 8px 14px; border-radius: var(--r-full); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; z-index: 4; pointer-events: none; }
.ba__tag--l { left: 20px; background: var(--white); color: var(--ink); }
.ba__tag--r { right: 20px; background: var(--sun); color: var(--ink); }
@media (max-width: 640px) { .ba { aspect-ratio: 3 / 4; } .ba__side { padding: 60px 16px 20px; } }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); }
.calc__form { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; }
.calc__out { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.calc__out .num { font-size: clamp(3rem, 6vw, 5.5rem); transition: transform var(--t) var(--ease); }
.calc__out .num.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.06); } }
.calc__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc__cell { padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, .5); }
.calc__cell .num { font-size: 1.75rem; }
.calc__cell .label { margin-top: 4px; font-size: .625rem; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__val { font-family: var(--ff-display); font-weight: 700; color: var(--violet); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.range:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: var(--r-full); }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--violet) var(--fill, 50%), var(--outline-2) var(--fill, 50%)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--outline-2); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--violet); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--white); border: 3px solid var(--violet); box-shadow: 0 6px 16px -6px rgba(70, 72, 212, .6); transition: transform var(--t-fast); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--violet); }
.range:hover::-webkit-slider-thumb, .range:active::-webkit-slider-thumb { transform: scale(1.12); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: var(--r-full); background: rgba(255, 255, 255, .5); }
.seg button { min-height: 40px; padding: 0 16px; border-radius: var(--r-full); font-weight: 600; font-size: .9375rem; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.seg button:active { transform: scale(.97); }
@media (max-width: 1024px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc > * { min-width: 0; max-width: 100%; }
.field, .seg, .range { min-width: 0; max-width: 100%; }
@media (max-width: 480px) { .calc__row { grid-template-columns: 1fr 1fr; } }

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.step { padding: 24px 20px; min-height: 260px; display: flex; flex-direction: column; gap: 12px; counter-increment: step; }
.step__n { font-family: var(--ff-display); font-weight: 800; font-size: 2.25rem; letter-spacing: -.04em; color: var(--violet); line-height: 1; }
.step:nth-child(2) .step__n { color: var(--sun-dim); } .step:nth-child(3) .step__n { color: var(--fuchsia); } .step:nth-child(5) .step__n { color: var(--sun-dim); }
.step .h3 { font-size: 1.125rem; }
.step .body { font-size: .9375rem; margin-top: auto; }
.step:nth-child(odd) { translate: 0 16px; }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:nth-child(odd) { translate: 0; } .step:last-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } .step { min-height: auto; } }

/* ---------- Философия ---------- */
.philo { position: relative; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 80px); overflow: hidden; background: var(--ink); color: var(--white); }
.philo::before { content: ''; position: absolute; width: 70vw; height: 70vw; right: -30vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(96, 99, 238, .8), rgba(96, 99, 238, 0) 65%); pointer-events: none; }
.philo::after { content: ''; position: absolute; width: 40vw; height: 40vw; left: -14vw; bottom: -20vw; border-radius: 50%; background: radial-gradient(circle, rgba(210, 50, 132, .7), rgba(210, 50, 132, 0) 65%); pointer-events: none; }
.philo > * { position: relative; z-index: 1; }
.philo .display { font-size: clamp(1.75rem, 4.4vw, 4rem); max-width: 16em; }
.philo .display em { color: var(--sun); }
.philo__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(32px, 5vw, 64px); }
.philo__item { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .25); }
.philo__item .h3 { font-size: 1.125rem; margin-bottom: 8px; }
.philo__item p { color: rgba(255, 255, 255, .78); font-size: .9375rem; }
.philo__mark { position: absolute; right: 4%; bottom: -6%; height: 70%; width: auto; color: rgba(255, 255, 255, .12); z-index: 0; }
@media (max-width: 768px) { .philo__grid { grid-template-columns: 1fr; } .philo__mark { height: 45%; opacity: .6; } }

/* ---------- Залы ---------- */
.halls { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.hall { grid-column: span 4; padding: 24px; min-height: 220px; display: flex; flex-direction: column; gap: 6px; }
.hall:nth-child(1) { grid-column: span 5; } .hall:nth-child(2) { grid-column: span 7; }
.hall:nth-child(n+3) { grid-column: span 3; }
.hall__city { color: var(--violet); }
.hall__name { font-size: clamp(1.5rem, 2.4vw, 2.25rem); }
.hall__addr { color: var(--ink-2); }
.hall__coach { margin-top: auto; padding-top: 16px; font-size: .875rem; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.hall__coach::before { content: ''; width: 24px; height: 2px; background: var(--sun); }
@media (max-width: 1024px) { .hall, .hall:nth-child(n) { grid-column: span 6; } }
@media (max-width: 640px) { .hall, .hall:nth-child(n) { grid-column: 1 / -1; min-height: auto; } }

/* ---------- Тренеры ---------- */
.coaches { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.coach { grid-column: span 3; border-radius: var(--r-md); overflow: hidden; position: relative; background: var(--bg-high); aspect-ratio: 3 / 4; }
.coach--wide { grid-column: span 6; aspect-ratio: 6 / 4; }
.coach img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.coach:hover img { transform: scale(1.05); }
.coach__info { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; border-radius: var(--r); }
.coach__info .h3 { font-size: 1rem; line-height: 1.15; }
.coach__info .label { font-size: .625rem; color: var(--violet); margin-bottom: 4px; }
.coach__info p { font-size: .8125rem; color: var(--ink-2); margin-top: 6px; }
.coach__more { margin-top: 10px; font-size: .8125rem; font-weight: 700; color: var(--violet); display: inline-flex; align-items: center; gap: 6px; }
.coach__more .arr { transition: transform var(--t) var(--ease); }
.coach__more[aria-expanded="true"] .arr { transform: rotate(45deg); }
.coach__bio { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease); }
.coach__bio > div { overflow: hidden; }
.coach__bio.is-open { grid-template-rows: 1fr; }
.coach__bio p { padding-top: 8px; }
.coach--flat { aspect-ratio: auto; background: transparent; }
.coach--flat .coach__pic { aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: var(--bg-high); }
.coach--flat .coach__info { position: static; margin-top: 12px; padding: 0; }
.coach--flat .coach__info .h3 { font-size: 1.125rem; }
@media (max-width: 1024px) { .coach { grid-column: span 4; } .coach--wide { grid-column: span 8; } }
@media (max-width: 640px) { .coach { grid-column: span 6; } .coach--wide { grid-column: 1 / -1; } .coach__info p { display: none; } .coach--flat .coach__info p { display: block; } }

/* ---------- Отзывы ---------- */
.quotes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.quote { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.quote--a { grid-column: span 7; } .quote--b { grid-column: span 5; translate: 0 24px; } .quote--c { grid-column: span 5; translate: 0 -8px; } .quote--d { grid-column: span 7; }
.quote__mark { font-family: var(--ff-display); font-size: 4rem; line-height: .6; color: var(--sun); font-weight: 800; }
.quote__text { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 500; line-height: 1.5; text-wrap: pretty; }
.quote__who { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.quote__who b { font-weight: 700; }
.quote__who span { color: var(--ink-2); font-size: .875rem; }
.quote--long .quote__text { font-size: 1rem; font-weight: 400; color: var(--ink); }
.quote--long .quote__text p + p { margin-top: 12px; }
@media (max-width: 1024px) { .quote, .quote--a, .quote--b, .quote--c, .quote--d { grid-column: 1 / -1; translate: 0; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--outline-2); }
.faq__item { border-bottom: 1px solid var(--outline-2); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; text-align: left; font-weight: 600; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); transition: color var(--t-fast); }
.faq__q:hover { color: var(--violet); }
.faq__q .pl { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--violet); display: grid; place-items: center; color: var(--violet); transition: transform var(--t) var(--ease), background var(--t-fast), color var(--t-fast); }
.faq__q[aria-expanded="true"] .pl { transform: rotate(45deg); background: var(--violet); color: var(--white); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a p { padding-bottom: 22px; max-width: 46em; color: var(--ink-2); }
.faq__a p + p { margin-top: -10px; }

/* ---------- Формы ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .f-full { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 8px; }
.f label { font-weight: 600; font-size: .875rem; }
.f label .req { color: var(--fuchsia); }
.f input, .f select, .f textarea {
  width: 100%; min-height: 56px; padding: 0 20px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, .7); border: 2px solid var(--outline-2);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.f textarea { min-height: 120px; padding: 16px 20px; border-radius: var(--r-md); resize: vertical; }
.f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234648d4' stroke-width='2.5'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.f input:hover, .f select:hover { border-color: var(--outline); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); background: var(--white); }
.f input[aria-invalid="true"], .f select[aria-invalid="true"] { border-color: var(--err); }
.f .err { display: none; color: var(--err-ink); font-size: .8125rem; font-weight: 500; }
.f.is-error .err { display: block; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: .875rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--violet); }
.consent.is-error { color: var(--err-ink); }
.consent a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form__status { padding: 16px 20px; border-radius: var(--r); background: var(--violet-soft); color: var(--violet-deep); font-weight: 500; }
.form__status.is-error { background: var(--err-soft); color: var(--err-ink); }
.form__status.is-ok { background: var(--sun-soft); color: var(--sun-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Финальная заявка ---------- */
.cta { position: relative; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 72px); overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cta__phone { display: inline-flex; margin-top: 24px; font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.375rem, 2.4vw, 2rem); letter-spacing: -.02em; color: var(--violet); }
@media (max-width: 1024px) { .cta__grid { grid-template-columns: 1fr; } }

/* ---------- Внутренние страницы ---------- */
.page-head { padding-top: 140px; padding-bottom: clamp(32px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--outline); margin-bottom: 24px; }
.crumbs a:hover { color: var(--violet); }
.crumbs span::before { content: '/'; margin-right: 8px; color: var(--outline-2); }
.page-head .h1 { max-width: 12em; }
.page-head .lead { margin-top: 24px; }
.prose { max-width: 42em; color: var(--ink); font-size: 1.0625rem; line-height: 1.65; }
.prose h2 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.375rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.1; margin: 2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 700; font-size: 1.125rem; margin: 1.5em 0 .5em; }
.prose p + p { margin-top: 1em; }
.prose ul { padding-left: 1.2em; list-style: disc; margin: 1em 0; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 20px 24px; border-left: 4px solid var(--sun); background: var(--bg-low); border-radius: 0 var(--r) var(--r) 0; font-weight: 500; }
.toc { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.toc a { padding: 8px 12px; border-radius: var(--r); font-weight: 600; font-size: .9375rem; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
.toc a:hover, .toc a.is-active { background: rgba(255, 255, 255, .6); color: var(--violet); }
.article { padding-top: 48px; border-top: 1px solid var(--outline-2); margin-top: 48px; }
.article:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.article__head { margin-bottom: 32px; }
.article__head .h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); max-width: 16em; }
.article__meta { margin-top: 12px; }
.article__fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease); }
.article__fold > div { overflow: hidden; }
.article__fold.is-open { grid-template-rows: 1fr; }

/* галерея */
.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gal__item { grid-column: span 3; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-high); position: relative; display: block; }
.gal__item:nth-child(6n+1) { grid-column: span 6; aspect-ratio: 16 / 10; }
.gal__item:nth-child(6n+4) { grid-column: span 5; }
.gal__item:nth-child(6n+5) { grid-column: span 4; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gal__item:hover img, .gal__item:focus-visible img { transform: scale(1.05); }
.gal__cap { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: var(--r-full); font-size: .75rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity var(--t), transform var(--t); }
.gal__item:hover .gal__cap, .gal__item:focus-visible .gal__cap { opacity: 1; transform: none; }
.gal__group { margin-bottom: clamp(40px, 6vw, 72px); }
.gal__group .h3 { margin-bottom: 16px; display: flex; align-items: baseline; gap: 16px; }
.gal__group .h3 small { font-family: var(--ff-body); font-weight: 600; font-size: .8125rem; color: var(--outline); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 1024px) { .gal__item, .gal__item:nth-child(n) { grid-column: span 6; aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .gal__item, .gal__item:nth-child(n) { grid-column: 1 / -1; } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(17, 28, 45, .88); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r-md); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8); }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; font-size: 1.5rem; line-height: 1; transition: transform var(--t-fast); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover { transform: scale(1.08) rotate(90deg); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.08); } .lightbox__next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__cap { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--white); font-weight: 500; padding: 8px 16px; border-radius: var(--r-full); background: rgba(17, 28, 45, .6); max-width: 90%; text-align: center; }

/* выпускницы */
.grads { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.grad { grid-column: span 3; display: flex; flex-direction: column; gap: 12px; }
.grad__pic { aspect-ratio: 1; border-radius: 50% 50% var(--r-md) var(--r-md); overflow: hidden; background: var(--bg-high); }
.grad__pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.grad:hover .grad__pic img { transform: scale(1.06); }
.grad .h3 { font-size: 1.125rem; }
.grad p { font-size: .875rem; color: var(--ink-2); }
@media (max-width: 1024px) { .grad { grid-column: span 4; } }
@media (max-width: 640px) { .grad { grid-column: span 6; } }
.awards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.awards a { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-high); display: block; }
.awards img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.awards a:hover img { transform: scale(1.05); }
@media (max-width: 768px) { .awards { grid-template-columns: repeat(3, 1fr); } }

/* аренда: бронирование */
.booking { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: start; }
.booking__steps { display: flex; flex-direction: column; gap: 20px; }
.bstep { padding: clamp(20px, 3vw, 32px); }
.bstep__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bstep__head .label { color: var(--violet); }
.hall-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hall-pick button { text-align: left; padding: 14px 16px; border-radius: var(--r); border: 2px solid transparent; background: rgba(255, 255, 255, .6); transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.hall-pick button:hover { border-color: var(--outline-2); }
.hall-pick button[aria-pressed="true"] { border-color: var(--violet); background: var(--white); }
.hall-pick button:active { transform: scale(.98); }
.hall-pick b { display: block; font-family: var(--ff-display); font-weight: 700; font-size: .9375rem; letter-spacing: -.01em; }
.hall-pick span { display: block; font-size: .8125rem; color: var(--ink-2); margin-top: 2px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head b { font-family: var(--ff-display); font-weight: 700; text-transform: capitalize; }
.cal__nav { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--outline-2); display: grid; place-items: center; transition: border-color var(--t-fast), background var(--t-fast); }
.cal__nav:hover { border-color: var(--violet); }
.cal__nav[disabled] { opacity: .35; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow { text-align: center; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--outline); padding-bottom: 6px; }
.cal__day { aspect-ratio: 1; border-radius: var(--r-sm); display: grid; place-items: center; font-weight: 600; font-size: .9375rem; position: relative; background: rgba(255, 255, 255, .5); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.cal__day:hover:not([disabled]) { background: var(--white); transform: scale(1.05); }
.cal__day[disabled] { opacity: .3; cursor: not-allowed; }
.cal__day[aria-pressed="true"] { background: var(--violet); color: var(--white); }
.cal__day::after { content: ''; position: absolute; bottom: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, transparent); }
.cal__day[data-load="free"] { --dot: var(--sun-dim); } .cal__day[data-load="few"] { --dot: var(--fuchsia); } .cal__day[data-load="club"] { --dot: var(--outline-2); }
.cal__day[aria-pressed="true"]::after { background: var(--sun); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: .8125rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.slots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.slot { min-height: 48px; border-radius: var(--r-sm); font-weight: 700; font-size: .9375rem; background: rgba(255, 255, 255, .6); border: 2px solid transparent; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.slot:hover:not([disabled]) { border-color: var(--violet-dim); }
.slot[data-state="busy"] { background: var(--bg-dim); color: var(--outline); cursor: not-allowed; text-decoration: line-through; }
.slot[data-state="picked"] { background: var(--violet); color: var(--white); }
.slot[data-state="booked"] { background: var(--fuchsia-soft); color: var(--fuchsia-ink); cursor: not-allowed; }
.slot:active:not([disabled]) { transform: scale(.96); }
.summary { padding: clamp(20px, 3vw, 32px); position: sticky; top: 112px; display: flex; flex-direction: column; gap: 20px; }
.summary__rows { display: flex; flex-direction: column; gap: 10px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--outline-2); font-size: .9375rem; }
.summary__row span { color: var(--ink-2); } .summary__row b { text-align: right; }
.summary .btn { width: 100%; }
@media (max-width: 1024px) { .booking { grid-template-columns: minmax(0, 1fr); } .booking > * { min-width: 0; } .summary { position: static; } .slots { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 480px) { .hall-pick { grid-template-columns: 1fr; } .slots { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Футер ---------- */
.footer { padding: clamp(48px, 7vw, 96px) 0 88px; margin-top: var(--sec-y); border-top: 1px solid var(--outline-2); }
.footer__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.footer__brand { grid-column: span 5; }
.footer__brand .display { font-size: clamp(2.5rem, 5vw, 4.5rem); color: var(--violet); }
.footer__brand p { margin-top: 16px; max-width: 26em; color: var(--ink-2); }
.footer__col { grid-column: span 2; }
.footer__col:last-child { grid-column: span 3; }
.footer__col .label { margin-bottom: 14px; color: var(--outline); }
.footer__col a { display: block; padding: 5px 0; font-weight: 500; color: var(--ink-2); transition: color var(--t-fast); }
.footer__col a:hover { color: var(--violet); }
.footer__bottom { margin-top: clamp(32px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--outline-2); display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: .8125rem; color: var(--outline); }
.footer__bottom a { color: var(--ink-2); font-weight: 600; }
.footer__bottom a:hover { color: var(--violet); }
@media (max-width: 1024px) { .footer__brand { grid-column: 1 / -1; } .footer__col { grid-column: span 4; } .footer__col:last-child { grid-column: span 8; } }
@media (max-width: 640px) { .footer__col, .footer__col:last-child { grid-column: 1 / -1; } }

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: var(--pad-x); right: var(--pad-x); bottom: 16px; z-index: 150; padding: 18px 20px; display: none; align-items: center; gap: 16px 24px; flex-wrap: wrap; max-width: 720px; margin-inline: auto; }
.cookie.is-open { display: flex; }
.cookie p { flex: 1 1 280px; font-size: .875rem; color: var(--ink-2); }
.cookie__actions { display: flex; gap: 8px; }

/* ---------- Мелочи ---------- */
.ico { width: 22px; height: 22px; flex: none; }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.divider { height: 1px; background: var(--outline-2); }
.tilt { transition: transform var(--t) var(--ease); }
.tilt:hover { transform: rotate(-1.5deg) translateY(-4px); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; } .mt-8 { margin-top: 64px; }
.center { text-align: center; }
.tel { white-space: nowrap; }
.age-note { font-size: .8125rem; color: var(--outline); }

/* ---------- Уменьшенное движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .blob { animation: none !important; }
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marquee__track { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .eco__mod { opacity: 1 !important; transform: none !important; }
  .eco__streams path { stroke-dashoffset: 0 !important; opacity: .8 !important; }
  .hero { height: auto; } .hero__pin { position: static; height: auto; min-height: 100svh; overflow: visible; }
  .fw__f { clip-path: none !important; } .hero__ribbon path { stroke-dashoffset: 0 !important; }
  .eco__streams .head, .eco__streams .pulse { display: none; }
  .glass::after { background: linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%); }
}
body.reduce-motion { --t: .001s; --t-fast: .001s; --t-slow: .001s; }
body.reduce-motion .blob, body.reduce-motion .marquee__track { animation: none !important; }
body.reduce-motion .hero { height: auto; } body.reduce-motion .hero__pin { position: static; height: auto; min-height: 100svh; overflow: visible; }
body.reduce-motion .fw__f { clip-path: none !important; } body.reduce-motion .hero__ribbon path { stroke-dashoffset: 0 !important; }
body.reduce-motion .eco__streams .head, body.reduce-motion .eco__streams .pulse { display: none; }
body.reduce-motion .eco__rail { transform: scaleX(1) !important; transition: none !important; }
body.reduce-motion .marquee { overflow-x: auto; }
body.reduce-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
body.reduce-motion .eco__mod { opacity: 1 !important; transform: none !important; transition: none !important; }
body.reduce-motion .eco__streams path { animation: none !important; stroke-dashoffset: 0 !important; opacity: .8 !important; }
body.reduce-motion .eco__orb, body.reduce-motion .hero__photo, body.reduce-motion .hero__disc { animation: none !important; transition: none !important; }
.motion-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 140; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.motion-toggle[aria-pressed="true"] { color: var(--violet); }
.motion-toggle svg { width: 20px; height: 20px; }

/* печать */
@media print { .nav, .blobs, .cookie, .motion-toggle, .hero__switch { display: none !important; } .glass { background: #fff; } }

/* ---------- Перенесённые записи старого сайта (wp_content.py) ---------- */
.prose ol { padding-left: 1.4em; list-style: decimal; margin: 1em 0; }
.prose ol > li::marker { font-weight: 700; color: var(--violet); }
.prose ol > li > h3, .prose ol > li > h4 { display: inline; margin: 0; }
.prose h4, .prose h5, .prose h6 { font-weight: 700; font-size: 1.0625rem; margin: 1.4em 0 .5em; }
.prose h5 { color: var(--violet); }
.prose a:not(.btn) { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose p > img:only-child { display: block; margin: 1.2em auto; }
.prose .alignleft, .prose .alignright { max-width: min(46%, 320px); margin: .3em 1.5em 1em 0; float: left; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.prose .aligncenter { display: block; margin: 1.2em auto; }
.prose::after { content: ''; display: table; clear: both; }
@media (max-width: 640px) { .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 1em 0; } }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9375rem; }
.prose td, .prose th { border: 1px solid var(--outline-2); padding: 8px 12px; text-align: left; vertical-align: top; }
.wp-video { position: relative; aspect-ratio: 16 / 9; margin: 1.5em 0; border-radius: var(--r-md); overflow: hidden; background: var(--ink); clear: both; }
.wp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wp-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 1.5em 0; clear: both; }
.wp-gal a { display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--bg-high); }
.wp-gal img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform var(--t) var(--ease); }
.wp-gal a:hover img { transform: scale(1.05); }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; color: var(--ink-2); font-weight: 600; font-size: .9375rem; }
.post__body { padding-bottom: var(--sec-y); }
.post__more { margin-top: clamp(40px, 6vw, 72px); }
/* карточки записей: статьи, выпускницы, альбомы */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.pcard { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--white); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(70, 72, 212, .45); }
.pcard__pic { aspect-ratio: 4 / 3; background: var(--bg-high); overflow: hidden; }
.pcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.pcard__pic--portrait { aspect-ratio: 3 / 4; }
.pcard__pic--portrait img { object-position: 50% 20%; }
.pcard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.pcard__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.pcard__text { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
/* лента новостей: год + строки */
.feed__year { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.25rem); margin: clamp(32px, 5vw, 56px) 0 16px; }
.feed__year:first-child { margin-top: 0; }
.feed__row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--outline-2); }
.feed__row img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r); background: var(--bg-high); }
.feed__row .noimg { width: 96px; height: 72px; border-radius: var(--r); background: var(--bg-low); }
.feed__row b { display: block; font-weight: 700; line-height: 1.3; }
.feed__row span { color: var(--ink-2); font-size: .875rem; }
.feed__row:hover b { color: var(--violet); }
.pcard__pic--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--violet) 0%, var(--fuchsia) 100%); color: rgba(255, 255, 255, .9); }
.pcard__mark { height: 58%; width: auto; filter: drop-shadow(6px 6px 0 var(--sun)); }
.h1--post { font-size: clamp(2rem, 4.6vw, 4rem); max-width: 18em; }
