/* Алтын балалар («золотые дети»): золото логотипа, небесно-голубой и глубокий синий — цвета казахского флага.
   Общее (сетка, разделы, формы) — ниже. */

/* ---------- Шрифты (все с казахскими буквами ә ғ қ ң ө ұ ү һ і) ---------- */
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-400.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-700.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-800.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }

/* ---------- Тема ---------- */
:root, .theme-altyn {
  --bg: #fffaf0;
  --paper: #ffffff;
  --cream: #fdf0cc;
  --beige: #f5dd9c;
  --head: #14284b;          /* глубокий синий */
  --accent: #f0a500;        /* золото */
  --accent-hover: #ffc233;
  --on-accent: #14284b;     /* текст на золотых кнопках */
  --link: #9a5a00;
  --kicker: #a86400;
  --soft-a: #f5b82e;
  --soft-b: #34b3e0;
  --soft-c: #ffe08a;
  --ink: #1e2a45;
  --ink-soft: #586280;
  --line: rgba(20, 40, 75, .14);
  --display: "Rubik", "Arial Rounded MT Bold", system-ui, sans-serif;
  --display-weight: 800;
  --display-scale: 1;
  --glow-a: #ffe9a8;
  --glow-b: #cdeefa;
  --glow-c: #fff0c2;
  --gold: linear-gradient(135deg, #ffe27a, #ffbf1f 55%, #f0a500);
  --orb-0: radial-gradient(circle at 35% 30%, #fff1a0, #ffc933 55%, #e59a00);
  --orb-1: radial-gradient(circle at 35% 30%, #8ee0f7, #34b3e0 55%, #1b8fc6);
  --orb-2: radial-gradient(circle at 35% 30%, #4a6cab, #243e72 55%, #14284b);
}
:root { --bar-h: 70px; --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; --soft: 0 14px 40px rgba(90, 60, 10, .12); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 18px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--link, var(--accent)); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--soft-a); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 800; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 56px); margin-inline: auto; }
.muted { color: var(--ink-soft); }

h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.08; color: var(--head); }
h2 { font-size: calc(clamp(2rem, 1.45rem + 2.4vw, 3.3rem) * var(--display-scale)); text-wrap: balance; }
h3 { font-size: calc(1.4rem * var(--display-scale)); }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 800; font-size: .96rem; letter-spacing: .02em; color: var(--kicker); }
.kicker .ico { color: var(--soft-a); fill: currentColor; stroke: none; width: 1em; height: 1em; }
.lede { margin-top: 14px; font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }
.head { margin-bottom: 42px; }
.head-center { text-align: center; }
.head-center .lede { margin-inline: auto; }

/* ---------- Фон ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
#nature { position: absolute; inset: 0; width: 100%; height: 100%; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.glow-a { width: 52vmax; height: 52vmax; right: -18vmax; top: -22vmax; background: var(--glow-a); opacity: .7; animation: glow-a 18s ease-in-out infinite alternate; }
.glow-b { width: 44vmax; height: 44vmax; left: -20vmax; top: 34vh; background: var(--glow-b); opacity: .6; animation: glow-b 24s ease-in-out infinite alternate; }
.glow-c { width: 38vmax; height: 38vmax; right: -12vmax; bottom: -16vmax; background: var(--glow-c); opacity: .55; animation: glow-c 21s ease-in-out infinite alternate; }
@keyframes glow-a { to { transform: translate(-7vmax, 5vmax) scale(1.14); } }
@keyframes glow-b { to { transform: translate(8vmax, -6vmax) scale(.9); } }
@keyframes glow-c { to { transform: translate(-6vmax, -7vmax) scale(1.12); } }

main { position: relative; isolation: isolate; }

/* ---------- Шапка ---------- */
.bar {
  position: fixed; top: 10px; left: 50%; z-index: 30; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; width: min(1360px, 100% - 20px); min-height: 60px; padding: 6px 10px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 26px rgba(90, 60, 10, .12);
}
.bar-home { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 800; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.bar-home:hover { background: var(--beige); }
.bar-brand { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; color: var(--head); text-decoration: none; font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.15rem * var(--display-scale)); line-height: 1; white-space: nowrap; }
.bar-brand img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.hub-word { font-size: 1.6rem; letter-spacing: .01em; padding-left: 10px; }
.bar-nav { display: flex; align-items: center; gap: 2px; }
.bar-nav a { padding: 8px 11px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .93rem; text-decoration: none; transition: background .2s, color .2s; white-space: nowrap; }
.bar-nav a:hover { background: var(--cream); }
.bar-nav a.is-active { background: var(--gold); color: var(--on-accent); }
.bar-nav .nav-other { display: none; }
.bar-lang { display: grid; place-items: center; min-width: 48px; height: 44px; border-radius: 999px; background: var(--cream); color: var(--head); font-weight: 800; font-size: .84rem; text-decoration: none; }
.bar-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--gold); color: var(--on-accent, #fff); font-weight: 800; text-decoration: none; white-space: nowrap; }
.bar-call:hover { filter: brightness(1.06); }
.bar-progress { position: absolute; left: 22px; right: 22px; bottom: 1px; height: 3px; border-radius: 3px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
.bar-menu { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--head); cursor: pointer; }

/* ---------- Первый экран сада ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--bar-h) + 30px) 0 180px; overflow: hidden; display: flex; align-items: center; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
h1 { font-size: calc(clamp(2.2rem, 1.3rem + 3.3vw, 4rem) * var(--display-scale)); line-height: 1.04; text-wrap: balance; }
.hero-name { display: block; margin-bottom: 14px; font-family: var(--body); font-weight: 800; font-size: clamp(.98rem, .9rem + .3vw, 1.12rem); line-height: 1.35; color: var(--kicker); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: .96rem; }
.hero-facts .ico { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 1.05rem; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-main { position: relative; overflow: hidden; background: var(--gold); color: var(--on-accent, #fff); box-shadow: 0 10px 24px rgba(240, 165, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-main:hover { filter: brightness(1.06); }
.btn-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .75) 50%, transparent 64%); transform: translateX(-130%); pointer-events: none; }
.btn-line { background: var(--paper); border-color: var(--accent); color: var(--head); }
.btn-line:hover { background: var(--gold); color: var(--on-accent); }
.hero-rays { position: absolute; left: 26%; top: 46%; z-index: 0; width: max(150vmin, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(255, 205, 70, .3) 0 6deg, transparent 6deg 15deg); -webkit-mask-image: radial-gradient(circle, #000 0 14%, transparent 60%); mask-image: radial-gradient(circle, #000 0 14%, transparent 60%); }
.hero-facts .chip-gold { background: linear-gradient(135deg, #fff4b8, #ffd54a); border-color: rgba(217, 137, 0, .55); }
.hero-facts .chip-gold .ico { color: #a86400; }
.hero-logo { position: relative; order: -1; justify-self: center; width: min(100%, 500px, calc((100svh - var(--bar-h) - 200px) * .98)); }
.hero-halo { position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--paper) 0 44%, color-mix(in srgb, var(--glow-a) 70%, transparent) 60%, transparent 72%); }

/* Степь внизу первого экрана */
.scene { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 260px; z-index: 1; }
.hero { padding-top: calc(var(--bar-h) + 40px); }

/* ---------- Живой логотип ---------- */
.ll { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; container-type: inline-size; -webkit-tap-highlight-color: transparent; text-align: center; }
.ll-art { position: relative; display: block; width: 100%; aspect-ratio: 300 / 254; }
.ll-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ll-word { display: block; margin-top: 2%; font: 800 clamp(1.5rem, 10.2cqw, 4rem)/1.08 var(--display); letter-spacing: .01em; white-space: nowrap; }
.ll-sub { display: block; margin-top: 3%; font: 700 clamp(.62rem, 4.5cqw, 1.3rem)/1 var(--display); letter-spacing: .2em; padding-left: .2em; color: var(--head); white-space: nowrap; }
.ll-l { display: inline-block; }
.ll-gap { display: inline-block; width: .3em; }
.ll-word .ll-l {
  color: transparent;
  background: linear-gradient(100deg, #c27500 0%, #ffcc3a 22%, #fff3b0 38%, #ffcc3a 54%, #c27500 80%, #ffcc3a 100%) 0 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 0 rgba(120, 70, 0, .35)) drop-shadow(0 6px 9px rgba(224, 150, 0, .3));
}
.ll-spark { position: fixed; z-index: 50; width: 22px; pointer-events: none; }
.ll-rays, .ll-wing, .ll-chick, .ll-all, .ll-spk, .ll-hat { transform-origin: 0 0; }
.ll-all { transform-origin: 0 76px; }
.ll-dots { transform-origin: 150px 128px; }
.ll-eyes { transform-box: fill-box; transform-origin: center; }
.ll-hat { transform: rotate(-6deg); }

@media (prefers-reduced-motion: no-preference) {
  /* Лучи вращаются, птенец вылупляется и качается, шапочка-скорлупа подпрыгивает, крылья машут, буквы падают золотыми слитками */
  .ll-rays { animation: a-spin 50s linear infinite; }
  .ll-dots { animation: a-spin 70s linear infinite reverse; }
  .ll-all { animation: a-wobble 5.2s 3s ease-in-out infinite; }
  .ll-chick { animation: a-hatch 1.1s .5s cubic-bezier(.3, 1.5, .5, 1) both, a-bob 3.4s 1.7s ease-in-out infinite alternate; }
  .ll-egg { animation: a-egg .7s .25s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: 0 40px; }
  .ll-hat { animation: a-hat 6s 2.6s ease-in-out infinite; }
  .ll-wing-l { animation: a-flap-l 4.4s 2.2s ease-in-out infinite; }
  .ll-wing-r { animation: a-flap-r 4.4s 2.2s ease-in-out infinite; }
  .ll-eyes { animation: a-blink 4.6s 3s infinite; }
  .ll-spk { animation: a-twinkle 2.4s calc(var(--i) * .45s) ease-in-out infinite alternate; }
  .ll-word .ll-l { animation: a-ingot .8s calc(1.5s + var(--i) * 70ms) cubic-bezier(.3, 1.7, .5, 1) both, a-shine 5.5s calc(2.8s + var(--i) * 90ms) linear infinite; }
  .ll-sub .ll-l { animation: a-rise .5s calc(2.9s + var(--i) * 40ms) ease-out both; }
  .ll.is-paused, .ll.is-paused * { animation-play-state: paused !important; }

  /* Степь: ковыль колышется, искорки мерцают, беркуты парят, облака плывут; кнопка блестит */
  .scene-cloud { animation: a-drift 46s linear infinite alternate; }
  .scene-cloud.sc2 { animation-duration: 62s; animation-delay: -12s; }
  .kv { animation: a-grass 3.8s calc(var(--i) * -.35s) ease-in-out infinite; }
  .sk { animation: a-twinkle 2.6s calc(var(--i) * .5s) ease-in-out infinite alternate; }
  .eagle { animation: a-soar 2.6s ease-in-out infinite alternate; }
  .hero-rays { animation: a-spin 140s linear infinite; }
  .hero-halo { animation: halo 7s ease-in-out infinite alternate; }
  .sphere { animation: bob-big 6s ease-in-out infinite alternate; }
  .sphere-b { animation-duration: 7.4s; animation-delay: -2s; }
  .sphere-c { animation-duration: 6.6s; animation-delay: -4s; }
  .btn-main::after { animation: a-sweep 5s 2s ease-in-out infinite; }

  /* Группы: птенец прыгает, верблюжонок кивает и виляет хвостом, ромашка раскрывается и качается */
  .st-chick { animation: s-hop 2.6s ease-in-out infinite; transform-origin: 100px 134px; }
  .st-wing-l { animation: a-flap-l 2.6s ease-in-out infinite; }
  .st-wing-r { animation: a-flap-r 2.6s ease-in-out infinite; }
  .st-eye { animation: a-blink 4.2s infinite; }
  .st-head { animation: s-nod 4.5s ease-in-out infinite; }
  .st-tail { animation: s-tail 1.3s ease-in-out infinite alternate; }
  .st-daisy { animation: a-sway 5s ease-in-out infinite; }
  .st-bloom { animation: s-spin 40s linear infinite; }
  .js .stage .st-pet { transform: scale(0); }
  .js .stage.is-in .st-pet { transform: none; transition: transform .6s calc(.3s + var(--k) * 70ms) cubic-bezier(.3, 1.7, .5, 1); }

  /* Орнамент рисуется, секция появляется */
  .js .orn-p { stroke-dashoffset: 1; }
  .js .orn-d { transform: scale(0); }
  .js .is-in .orn-p { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s .2s ease-out; }
  .js .is-in .orn-d { transform: none; transition: transform .6s .1s cubic-bezier(.3, 1.8, .5, 1); }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); transition-delay: var(--delay, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
.st-chick, .st-daisy, .st-head, .st-tail, .st-bloom, .st-wing { transform-box: view-box; }
.st-wing, .st-bloom, .st-daisy, .st-head, .st-tail { transform-origin: 0 0; }
.st-daisy { transform-origin: 100px 136px; }
.st-bloom { transform-origin: 100px 62px; }
.st-head { transform-origin: 150px 50px; }
.st-tail { transform-origin: 0 0; }
.st-eye { transform-box: fill-box; transform-origin: center; }
.st-pet { transform-box: fill-box; transform-origin: 50% 100%; }
circle.st-pet { transform-origin: center; }
.kv, .sk, .eagle { transform-origin: 0 0; }
.sk { transform-box: fill-box; transform-origin: center; }

@keyframes a-spin { to { transform: rotate(360deg); } }
@keyframes a-wobble { 0%, 18%, 100% { transform: none; } 6% { transform: rotate(3.5deg); } 12% { transform: rotate(-3deg); } 15% { transform: rotate(1.5deg); } }
@keyframes a-hatch { from { transform: translateY(70px) scale(.35); opacity: 0; } 55% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes a-egg { from { transform: translateY(40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-bob { from { transform: translateY(0) rotate(-1.4deg); } to { transform: translateY(-4px) rotate(1.4deg); } }
@keyframes a-hat { 0%, 62%, 100% { transform: rotate(-6deg); } 70% { transform: translateY(-16px) rotate(-14deg); } 78% { transform: translateY(2px) rotate(-3deg); } 86% { transform: rotate(-7deg); } }
@keyframes a-flap-l { 0%, 60%, 100% { transform: none; } 66% { transform: rotate(32deg); } 72% { transform: rotate(-6deg); } 78% { transform: rotate(30deg); } 84% { transform: rotate(-4deg); } 92% { transform: rotate(10deg); } }
@keyframes a-flap-r { 0%, 60%, 100% { transform: none; } 66% { transform: rotate(-32deg); } 72% { transform: rotate(6deg); } 78% { transform: rotate(-30deg); } 84% { transform: rotate(4deg); } 92% { transform: rotate(-10deg); } }
@keyframes a-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@keyframes a-twinkle { from { transform: scale(.2) rotate(-20deg); opacity: .25; } to { transform: scale(1) rotate(20deg); opacity: 1; } }
@keyframes a-ingot { from { transform: translateY(-150%) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-shine { from { background-position: 0 0; } to { background-position: -260% 0; } }
@keyframes a-rise { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-drift { to { transform: translateX(160px); } }
@keyframes a-grass { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes a-soar { from { transform: scaleY(1) translateY(0); } to { transform: scaleY(.55) translateY(3px); } }
@keyframes a-sweep { 0%, 55% { transform: translateX(-130%); } 80%, 100% { transform: translateX(130%); } }
@keyframes a-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes s-hop { 0%, 55%, 100% { transform: none; } 20% { transform: translateY(-14px) scale(.97, 1.04); } 38% { transform: translateY(0) scale(1.05, .94); } 46% { transform: none; } }
@keyframes s-nod { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(5deg); } }
@keyframes s-tail { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
@keyframes s-spin { to { transform: rotate(360deg); } }
@keyframes halo { to { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes bob-big { to { transform: translateY(-9px); } }

/* ---------- Разделы ---------- */
.section { position: relative; padding: 96px 0; }
.band { --band: #fdf0cc; }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: -34px; bottom: -34px; z-index: -2; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36V20Q30 0 60 20T120 20T180 20T240 20V36Z' fill='%23fdf0cc'/%3E%3C/svg%3E") top left / 240px 36px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 36' preserveAspectRatio='none'%3E%3Cpath d='M0 0V16Q30 36 60 16T120 16T180 16T240 16V0Z' fill='%23fdf0cc'/%3E%3C/svg%3E") bottom left / 240px 36px repeat-x,
    linear-gradient(var(--band), var(--band)) center / 100% calc(100% - 70px) no-repeat;
}
@media (max-width: 640px) { .band::before { top: -24px; bottom: -24px; background-size: 160px 24px, 160px 24px, 100% calc(100% - 46px); } }

/* О саде */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.spheres { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.sphere { display: grid; place-content: center; justify-items: center; width: clamp(104px, 11vw, 138px); aspect-ratio: 1; border-radius: 50%; color: #fff; text-align: center; line-height: 1.1; }
.sphere strong { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1; }
.sphere span { font-weight: 800; }
.sphere-a { background: var(--orb-1); }
.sphere-b { background: var(--orb-0); margin-top: 22px; color: var(--head); }
.sphere-c { background: var(--orb-2); }
.sphere-c strong::after { content: "+"; }
.voucher { display: flex; align-items: center; gap: 14px; max-width: 540px; margin-top: 22px; padding: 14px 20px; border: 1.5px solid rgba(229, 154, 0, .5); border-radius: 22px; background: linear-gradient(135deg, #fff6d0, #ffe9a0); }
.voucher .ico { width: 38px; height: 38px; color: #b86e00; }
.voucher span { line-height: 1.35; font-weight: 700; }
.voucher strong { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--head); }
.info-card { padding: 30px 32px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); border: 1px solid var(--line); }
.info-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin-top: 10px; }
.info-card dl > div { padding: 13px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.info-card dl > div.wide { grid-column: 1 / -1; }
.info-card dl > div:last-child { border-bottom: 0; }
.info-card dt { font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.info-card dd { font-weight: 800; overflow-wrap: anywhere; }
.info-card a { text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.info-card a.inline { display: inline-block; margin-left: 6px; font-weight: 700; font-size: .92rem; text-decoration: underline; }
.about-photos { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 40px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px 28px 110px 28px; box-shadow: var(--soft); }
.about-photos img:nth-child(2) { border-radius: 110px 28px 28px 28px; }
.about-photos img:nth-child(3) { border-radius: 28px 110px 28px 28px; }

/* Руководство: золотые арки с фото */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1060px; margin-inline: auto; align-items: start; }
.person { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 22px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 34px; box-shadow: var(--soft); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s; overflow: hidden; }
.person::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 233, 150, .5) 50%, transparent 62%); transform: translateX(-130%); transition: transform .9s; pointer-events: none; }
.person:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(217, 137, 0, .22); }
.person:hover::before { transform: translateX(130%); }
.person-frame { position: relative; width: min(100%, 210px); padding: 6px; border-radius: 999px 999px 28px 28px; background: linear-gradient(145deg, #fff3a8, #ffc933 35%, #d98900 68%, #ffe27a); box-shadow: 0 14px 30px rgba(217, 137, 0, .32); }
.person-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 22px 22px; background: var(--cream); }
.person-photo img, .person-photo .avatar { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.person-years { position: absolute; right: -18px; bottom: -16px; display: grid; place-content: center; width: 88px; aspect-ratio: 1; border: 3px solid #fff; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3a8, #ffc933 55%, #e59a00); box-shadow: 0 10px 20px rgba(217, 137, 0, .4); color: var(--head); text-align: center; line-height: 1.05; }
.person-years strong { font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1; }
.person-years span { font-weight: 800; font-size: .66rem; }
.person-role { margin-top: 26px; padding: 3px 16px; border-radius: 999px; background: var(--head); color: #ffe27a; font-weight: 800; font-size: .92rem; }
.person-founder { border-color: rgba(229, 154, 0, .55); background: linear-gradient(180deg, #fffaf0, #fff); box-shadow: 0 22px 50px rgba(217, 137, 0, .2); }
.person-founder .person-role { background: var(--gold); color: var(--head); }
.person h3 { margin-top: 10px; font-size: calc(1.28rem * var(--display-scale)); }
.person-edu { margin-top: 8px; font-weight: 800; }
.person-edu span { display: block; font-size: .78rem; color: var(--ink-soft); }
.person-group { margin-top: 6px; font-weight: 800; color: var(--kicker); }
.person-about { margin-top: 8px; color: var(--ink-soft); font-size: .96rem; text-wrap: pretty; }

/* Орнамент под заголовками */
.orn { display: block; width: 150px; height: 23px; margin: 10px 0 6px; overflow: visible; }
.head-center .orn { margin-inline: auto; }
.orn-p { stroke-dasharray: 1; stroke-dashoffset: 0; }
.orn-d { transform-box: fill-box; transform-origin: center; }

/* Группы */
.groups-ages { display: flex; justify-content: center; align-items: center; gap: 8px; margin: -22px auto 34px; font-weight: 800; color: var(--kicker); }
.stages { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 24px; align-items: end; max-width: 1060px; margin-inline: auto; }
.stage { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 20px 24px; background: var(--paper); border-radius: 30px; box-shadow: var(--soft); }
.stage:nth-child(2) { transform: translateY(-12px); }
.stage:nth-child(3) { transform: translateY(-24px); }
.stage:nth-child(4) { transform: translateY(-36px); }
.js .stage.reveal.is-in:nth-child(2) { transform: translateY(-12px); }
.js .stage.reveal.is-in:nth-child(3) { transform: translateY(-24px); }
.js .stage.reveal.is-in:nth-child(4) { transform: translateY(-36px); }
.stage-art { width: min(100%, 230px); overflow: visible; }
.stage-kind { margin-top: 10px; font-weight: 800; font-size: .84rem; color: var(--kicker); text-transform: uppercase; letter-spacing: .08em; }
.stage-age { margin-top: 10px; padding: 3px 14px; border-radius: 999px; background: var(--cream); color: var(--head); font-weight: 800; }
.stage h3 { margin-top: 2px; font-size: calc(1.45rem * var(--display-scale)); }
.stage-names { margin-top: 8px; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.stage-names span { display: block; font-size: .82rem; color: var(--kicker); }
.stage a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; }

/* Кружки: карточки с фото; по нажатию — подробности и фотографии занятий */
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; max-width: 1100px; margin-inline: auto; }
.club { min-width: 0; }
.club-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); box-shadow: var(--soft); color: inherit; font: inherit; text-align: left; cursor: default; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s; }
.club.is-openable .club-open { cursor: pointer; }
.club.is-openable .club-open:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(217, 137, 0, .2); }
.club-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; color: #fff; }
.orb-0 { background: var(--orb-0); color: var(--head); }
.orb-1 { background: var(--orb-1); }
.orb-2 { background: var(--orb-2); }
.club-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.club.is-openable .club-open:hover .club-media img { transform: scale(1.05); }
.extra-ico { width: 34%; height: auto; aspect-ratio: 1; }
.club-media .story-count { right: 12px; bottom: 12px; }
.club-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.club-title { font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.3rem * var(--display-scale)); line-height: 1.2; color: var(--head); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: text-decoration-color .25s; }
.club.is-openable .club-open:hover .club-title, .club.is-openable .club-open:focus-visible .club-title { text-decoration-color: var(--soft-a); }
.club:not(.is-openable) .club-title { text-decoration: none; }
.club-meta { font-weight: 800; font-size: .9rem; color: var(--kicker); }
.club-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-soft); font-size: .96rem; }
.club .story-more { margin-top: auto; padding-top: 6px; }

/* Фото */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-weight: 800; }
.tab.is-on { background: var(--gold); border-color: var(--accent); color: var(--head); }
.album { columns: 3 280px; column-gap: 18px; }
.album figure { break-inside: avoid; margin-bottom: 18px; }
.album figure[hidden] { display: none; }
.photo-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: var(--beige); cursor: zoom-in; box-shadow: var(--soft); }
.photo-btn img { width: 100%; height: auto; transition: transform .6s; }
.photo-btn:hover img { transform: scale(1.04); }
.photo-btn figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 5px 12px; border-radius: 14px; background: color-mix(in srgb, var(--paper) 92%, transparent); font-weight: 700; font-size: .92rem; text-align: left; }
.album-more { display: flex; margin: 8px auto 0; }
.album-more[hidden] { display: none; }

/* Новости */
.note { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; color: var(--ink-soft); }
.note .ico { color: var(--soft-a); }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story { background: var(--paper); border-radius: 30px; overflow: hidden; box-shadow: var(--soft); }
.story:first-child:not(:only-child) { grid-column: span 3; }
.story-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.story-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.story:hover .story-img img { transform: scale(1.04); }
.story-img-empty img { object-fit: contain; padding: 12% 24%; }
.story-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--head) 88%, transparent); color: #fff; font-weight: 800; font-size: .88rem; }
.story-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; flex: 1; }
.story-body time { font-weight: 800; font-size: .88rem; color: var(--ink-soft); }
.story-title { font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.4rem * var(--display-scale)); line-height: 1.15; color: var(--head); }
.story-excerpt { color: var(--ink-soft); }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--link); }
@media (min-width: 861px) {
  .story:first-child:not(:only-child) .story-open { flex-direction: row; }
  .story:first-child:not(:only-child) .story-img { flex: 1.3; aspect-ratio: auto; min-height: 320px; }
  .story:first-child:not(:only-child) .story-body { flex: 1; justify-content: center; padding: 32px; }
  .story:first-child:not(:only-child) .story-title { font-size: calc(2rem * var(--display-scale)); }
}
.story:only-child { max-width: 560px; }
.news-dialog { width: min(780px, calc(100% - 24px)); max-height: 90vh; padding: 0; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); overflow: auto; }
.news-dialog::backdrop { background: rgba(10, 20, 45, .68); }
.nd-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.nd-stage { position: relative; background: #1f1d26; }
.nd-img { width: 100%; height: min(58vh, 470px); object-fit: contain; }
.nd-nav { position: absolute; top: 50%; transform: translateY(-50%); display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); cursor: pointer; }
.nd-prev { left: 12px; }
.nd-next { right: 12px; }
.nd-counter { position: absolute; left: 12px; bottom: 12px; display: none; padding: 3px 11px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-weight: 800; font-size: .86rem; }
.has-many .nd-nav { display: grid; }
.has-many .nd-counter { display: block; }
.nd-thumbs { display: none; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--cream); }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 3px solid #fff0; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.nd-thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 24px 26px 32px; }
.nd-gallery[hidden] + .nd-body { padding-top: 56px; }
.nd-body time { font-weight: 800; color: var(--ink-soft); }
.nd-body h3 { font-size: calc(1.8rem * var(--display-scale)); margin: .25em 0 .5em; }
#ndText { overflow-wrap: anywhere; }

/* Документы и вакансии */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.doc-sets { display: grid; gap: 16px; margin-top: 28px; }
.doc-set { padding: 22px 26px; background: var(--paper); border-radius: 28px; box-shadow: var(--soft); }
.doc-set p, .doc-set ul { margin-top: 8px; }
.doc-set li + li { margin-top: 10px; }
.doc-set li a { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 800; }
.doc-set li a .ico { margin-top: .22em; }
.doc-set small { display: block; margin-left: 2em; color: var(--ink-soft); }
.doc-sub { margin-top: 16px; padding: 14px 18px; border-radius: 20px; background: var(--cream); }
.doc-sub summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.2rem * var(--display-scale)); color: var(--head); }
.doc-sub summary .ico { color: var(--kicker); }
.doc-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--gold); color: var(--head); font-family: var(--body); font-size: .8rem; font-weight: 800; }
.jobs { padding: 28px 30px; background: linear-gradient(160deg, #1d3a6e, var(--head)); color: #f1f4f4; border-radius: 34px; box-shadow: var(--soft); }
.jobs h3 { color: #fff; font-size: calc(1.7rem * var(--display-scale)); }
.jobs .muted { margin-top: 10px; color: rgba(255, 255, 255, .78); }
.job { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.job summary { cursor: pointer; font-weight: 800; }
.job p { margin-top: 8px; }
.job a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #fff; font-weight: 800; }

/* Контакты */
.contact { padding-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-phone { display: block; margin-top: 14px; font-family: var(--display); font-weight: var(--display-weight); font-size: calc(clamp(1.8rem, 1.3rem + 2vw, 2.7rem) * var(--display-scale)); color: var(--head); text-decoration: none; }
.contact-phone + .contact-phone { margin-top: 2px; }
.contact-phone:hover { color: var(--link); }
.contact-list { display: grid; gap: 12px; margin-top: 18px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.contact-list .ico { margin-top: .22em; color: var(--accent); }
.social-label { margin-top: 26px; font-weight: 800; color: var(--ink-soft); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; text-decoration: none; }
.socials a:hover { background: var(--cream); }
.form { padding: 28px 30px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); }
.form label { display: block; margin: 14px 0 4px; font-size: .92rem; font-weight: 800; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 12px 15px; border: 1.5px solid var(--beige); border-radius: 16px; background: #fff; font: inherit; color: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: 0; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.form .consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.form .btn { width: 100%; margin-top: 16px; }
.hp-field { position: absolute; left: -9999px; }
.form-note { display: none; margin-top: 14px; font-weight: 800; color: var(--head); }
.form-note.show { display: block; }
.form-note.error { color: #a8362b; }
.map { display: block; width: 100%; height: 340px; margin-top: 44px; border: 0; border-radius: 34px; box-shadow: var(--soft); background: var(--beige); }
.foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.foot p { margin-right: auto; }
.foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }

/* Просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(24, 24, 30, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; max-width: min(1000px, 78vw); border-radius: 12px; }
.lightbox figcaption { margin-top: 10px; color: #fff; text-align: center; font-weight: 700; }
.lb-close, .lb-nav { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.lb-close { position: absolute; top: 16px; right: 16px; }

.hub-nav a { font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow { animation: none; }
}

/* ---------- Планшет и телефон ---------- */
/* Кнопка «на главную» — только значок; телефон текстом — только на широких экранах, иначе меню налезает на название */
.bar-home span { display: none; }
.bar-home { width: 44px; padding: 0; justify-content: center; }
@media (max-width: 1400px) {
  .bar-call span { display: none; }
  .bar-call { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 1180px) {
  .bar-call span, .bar-home span { display: none; }
  .bar-call { width: 44px; padding: 0; justify-content: center; }
  .bar-home { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 1040px) {
  .bar-menu { display: grid; }
  .bar-nav:not(.hub-nav) {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--soft);
  }
  .bar-nav.open { display: flex; }
  .bar-nav a { padding: 12px 16px; font-size: 1.05rem; }
  .bar-nav .nav-other { display: block; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; color: var(--accent); }
  .hero { display: block; padding-bottom: 150px; }
  .hero-rays { left: 50%; top: 270px; width: max(160vmin, 900px); }
  .people { grid-template-columns: minmax(0, 1fr); max-width: 420px; gap: 24px; }
  .hero-grid, .about-grid, .docs-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 14px; }
  .hero-logo { order: -1; width: min(78%, 400px, 42svh); }
  .hero-text { text-align: center; }
  .hero-facts, .hero-actions { justify-content: center; }
  .hero-text .kicker { justify-content: center; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .stage { padding-inline: 12px; }
  .stage:nth-child(n), .js .stage.reveal.is-in:nth-child(n) { transform: none; }
      .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story:first-child:not(:only-child) { grid-column: span 2; }
}
@media (max-width: 640px) {
  :root { --bar-h: 64px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding: 68px 0; }
  .bar { gap: 6px; }
  .bar-brand { font-size: calc(1.02rem * var(--display-scale)); }
  .bar-brand img { width: 36px; height: 36px; }
  .hub-word { font-size: 1.35rem; }
  .hub-nav { display: none; }
  .hero { padding-top: calc(var(--bar-h) + 18px); padding-bottom: 110px; }
  .hero-logo { width: min(70%, 33svh); }
  .hero-text .kicker { display: none; }
  h1 { font-size: calc(1.9rem * var(--display-scale)); margin-top: 4px; }
  .hero-name { margin-bottom: 8px; font-size: .95rem; }
  .hero-facts { margin-top: 14px; gap: 6px; }
  .hero-facts li { padding: 4px 11px; font-size: .88rem; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .btn { width: 100%; min-height: 50px; }
  .scene { height: 150px; }
  .hero { padding-top: calc(var(--bar-h) + 40px); }
  .info-card { padding: 22px 20px; }
  .info-card dl { grid-template-columns: minmax(0, 1fr); }
          .stages { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .person-frame { width: min(100%, 190px); }
  .stage { display: grid; grid-template-columns: 124px minmax(0, 1fr); column-gap: 16px; align-items: center; text-align: left; padding: 14px 20px 20px; }
  .stage-art { grid-row: 1 / span 3; width: 124px; }
  .stage-age { justify-self: start; align-self: end; margin-top: 0; }
  .stage-kind { margin-top: 4px; }
  .stage h3 { align-self: start; margin-top: 4px; }
  .stage-names, .stage a { grid-column: 1 / -1; }
  .clubs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .stories { grid-template-columns: minmax(0, 1fr); }
  .story:first-child:not(:only-child) { grid-column: auto; }
  .about-photos { grid-template-columns: minmax(0, 1fr); }
  .form, .doc-set, .jobs, .hub-card { padding: 22px 20px; }
  .map { height: 260px; border-radius: 24px; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox img { max-width: 72vw; }
}
