/* «Нұр-Айша» — сумерки над селом у гор, луна и тёплый свет. Палитра логотипа: сливовый фон, золото месяца, розовое платье, тёплый свет «нұр», сливочная бумага.
   Шрифты: Philosopher (заголовки, как надпись в логотипе) и Onest (текст) — свои, лежат в assets/fonts; казахские буквы есть в обоих. */

@font-face { font-family: "Philosopher"; font-weight: 700; font-display: swap; src: url("../assets/fonts/philosopher-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: "Philosopher"; font-weight: 700; font-display: swap; src: url("../assets/fonts/philosopher-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Philosopher"; font-weight: 700; font-display: swap; src: url("../assets/fonts/philosopher-latin-700.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 800; font-display: swap; src: url("../assets/fonts/onest-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: "Onest"; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/onest-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 800; font-display: swap; src: url("../assets/fonts/onest-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 {
  --n9: #1a0b30; --n8: #2b1348; --n7: #3b1a63; --n6: #5a2d8c; --n5: #7a3fb8;
  --lilac: #cdb4f0; --lilac-l: #f1e8fb;
  --gold: #ffb627; --gold-l: #ffd36b; --gold-d: #e98a1c; --amber: #ff8a3d; --rose: #ff6b9a; --rose-d: #d93a76; --teal: #22c1b0;
  --cream: #fff7ea; --paper: #fffdf8; --ground: #1d0c35;
  --ink: #2b1348; --ink-soft: #6a5a82; --line: rgba(59, 26, 99, .14);
  --display: "Philosopher", "Georgia", serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 72px; --arc: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--n9); color: var(--ink); font: 400 1.04rem/1.65 var(--body); overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--n5); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 90; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 800; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
h2, h3 { line-height: 1.12; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); letter-spacing: .005em; text-wrap: balance; }
h3 { font-weight: 800; font-size: 1.3rem; }
.lede { max-width: 62ch; font-size: 1.08rem; text-wrap: pretty; }
.head { display: grid; gap: 12px; margin-bottom: 38px; }
.head-center { justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--n5); }
.kicker .ico { width: 1.7em; height: 1.7em; padding: 4px; border-radius: 50%; background: var(--gold); color: var(--n8); fill: currentColor; stroke: none; }

/* ---------- Тон разделов: светлый «день» и тёмные «сумерки» с лунной дугой сверху ---------- */
.section, .foot { overflow-x: clip; }
.section { position: relative; padding: calc(var(--arc) + clamp(56px, 7vw, 96px)) 0 clamp(64px, 8vw, 104px); }
.section::before { content: ""; position: absolute; left: -6%; right: -6%; top: -1px; height: var(--arc); background: var(--prev, var(--ground)); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.sec-light { --prev: var(--n8); background: var(--cream); color: var(--ink); }
.sec-light h2, .sec-light h3 { color: var(--n7); }
.sec-light .lede { color: var(--ink-soft); }
.sec-dark { --prev: var(--cream); background-color: var(--n8); background-image: radial-gradient(circle at 85% 8%, rgba(122, 63, 184, .35), transparent 45%), radial-gradient(circle at 8% 92%, rgba(255, 107, 154, .12), transparent 40%); color: #eadffa; }
.sec-dark h2 { color: var(--gold-l); }
.sec-dark h3 { color: #fff4cf; }
.sec-dark .lede { color: #d9c8f3; }
.sec-dark .kicker { color: var(--lilac); }
.about { --prev: var(--ground); }

/* ---------- Кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--body); font-weight: 800; font-size: 1rem; text-decoration: none; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(1px); }
.btn-main { background: linear-gradient(135deg, var(--rose), var(--rose-d)); color: #fff; box-shadow: 0 12px 28px rgba(217, 58, 118, .38), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn-gold, .btn-lamp { background: linear-gradient(135deg, #ffe08a, var(--gold)); color: var(--n8); box-shadow: 0 12px 28px rgba(255, 182, 39, .38), inset 0 -3px 0 rgba(150, 90, 0, .25); }
.btn-line { border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); color: #fff; backdrop-filter: blur(6px); }
.btn-line:hover { background: rgba(255, 255, 255, .16); }
.btn .ico { stroke-width: 2; }
.btn-lamp .ico, .btn-gold .ico:first-child:not(:last-child) { fill: none; }

/* ---------- Шапка ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(26, 11, 48, .5); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: background .3s, box-shadow .3s; }
.top.is-stuck { background: rgba(26, 11, 48, .86); box-shadow: 0 10px 34px rgba(0, 0, 0, .3); }
.top-in { display: flex; align-items: center; gap: 18px; width: min(1240px, 100% - 32px); height: var(--bar-h); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: #fff; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 211, 107, .5); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1.55rem; color: var(--gold-l); }
.brand-text small { white-space: nowrap; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lilac); }
.menu { display: flex; gap: 2px; }
.menu a { padding: 9px 13px; border-radius: 999px; color: #eadffa; font-weight: 700; font-size: .93rem; text-decoration: none; transition: background .2s, color .2s; }
.menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.menu a.is-active { background: var(--gold); color: var(--n8); }
.chips { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 42px; padding: 0 15px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 999px; background: transparent; color: #fff; font-weight: 800; font-size: .9rem; text-decoration: none; cursor: pointer; transition: background .2s; }
.chip:hover { background: rgba(255, 255, 255, .12); }
.chip-call { border-color: var(--gold); background: var(--gold); color: var(--n8); }
.chip-call:hover { background: var(--gold-l); }
.chip-menu { display: none; width: 42px; padding: 0; justify-content: center; }
.phase { display: grid; place-items: center; width: 42px; height: 42px; }
.moon-mini { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(255, 211, 107, .45)); }
.bar-line { height: 3px; background: rgba(255, 255, 255, .08); }
.bar-line i { display: block; width: var(--p, 0%); height: 100%; background: linear-gradient(90deg, var(--gold), var(--rose)); box-shadow: 0 0 12px var(--gold); }

/* ---------- Первый экран: сумерки над селом ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: 100svh; padding: calc(var(--bar-h) + 40px) 0 clamp(170px, 22vw, 260px); overflow: hidden; color: #fff; background: linear-gradient(180deg, #1a0b30 0%, #2b1348 34%, #5a2d8c 62%, #b8498a 82%, #ff9a5c 100%); --mx: 72%; --my: 34%; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.moon-glow { position: absolute; right: 6%; top: 8%; width: min(64vw, 720px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, .34), rgba(255, 150, 90, .1) 45%, transparent 68%); }
.stars { position: absolute; inset: 0; }
.stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: .75; }
.secret { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(circle 190px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .55) 48%, transparent 100%); mask-image: radial-gradient(circle 190px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .55) 48%, transparent 100%); }
.sc-lines path { filter: drop-shadow(0 0 4px rgba(255, 224, 138, .9)); }
.fireflies { position: absolute; inset: 0; width: 100%; height: 100%; }
.spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 240px at var(--mx) var(--my), rgba(255, 226, 140, .2), transparent 70%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.hero-text { display: grid; gap: 20px; justify-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-l); }
.hero-title { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 .1em; font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, .6rem + 6.4vw, 6.4rem); line-height: 1; filter: drop-shadow(0 0 26px rgba(255, 190, 70, .35)); }
.ht-word { display: inline-flex; }
.ht-word span { display: inline-block; background: linear-gradient(180deg, #fff6c8, #ffc83d 55%, #ff9a2e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ht-moon .moon { width: .56em; height: .56em; margin-inline: .04em; }
.hero-slogan { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); color: #ffe9b3; }
.hero-slogan .ico { color: var(--gold); fill: currentColor; stroke: none; width: 1em; height: 1em; }
.hero-lead { max-width: 52ch; font-size: 1.12rem; color: #ecdffb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-logo { position: relative; display: grid; justify-items: center; gap: 14px; }
.logo-btn { width: min(100%, 500px); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.na-logo { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
.logo-hint { display: inline-flex; align-items: center; gap: 8px; max-width: 34ch; text-align: center; font-size: .86rem; font-weight: 700; color: var(--lilac); }
.logo-hint .ico { fill: var(--gold); stroke: none; color: var(--gold); }
.village { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: clamp(130px, 18vw, 240px); pointer-events: none; }
.village .win { fill: #ffcf5a; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; z-index: 3; display: grid; justify-items: center; gap: 2px; translate: -50% 0; color: #fff3cf; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.scroll-cue .ico { width: 1.7em; height: 1.7em; }
.sky-layer { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.lantern { position: absolute; left: 0; top: 0; width: 46px; height: auto; overflow: visible; --c: #ff8a3d; will-change: transform, opacity; }
.lt-halo { fill: #ffd36b; opacity: .2; }
.lt-body { fill: var(--c); stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.lt-ribs { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.6; stroke-linecap: round; }
.lt-cap { fill: #7a4a1a; }
.lt-flame { fill: #fff3a0; }

/* ---------- ЛОГОТИП: колыбель-месяц, малыш, свет ---------- */
.na-glow-bg, .na-spk { transform-box: fill-box; transform-origin: center; }
.na-rays { transform-box: view-box; transform-origin: 0 0; }
.na-orb > circle:first-child { transform-box: view-box; transform-origin: 0 0; }

/* ---------- О саде ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-text { display: grid; gap: 14px; justify-items: start; }
.about-text .head { margin-bottom: 6px; }
.place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; padding: 12px 18px; border-radius: 20px; background: #fff; box-shadow: 0 10px 26px rgba(59, 26, 99, .1); font-weight: 700; }
.place .ico { color: var(--rose-d); }
.place a { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 800; color: var(--n5); text-decoration: none; }
.about-moon { width: min(100%, 420px); justify-self: center; }
.about-moon .na-logo { filter: drop-shadow(0 24px 44px rgba(59, 26, 99, .35)); }
.portal { position: relative; justify-self: center; width: min(100%, 440px); }
.portal-in { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 28px 28px; border: 8px solid var(--gold); box-shadow: 0 0 0 4px var(--n7), 0 30px 60px rgba(59, 26, 99, .3); }
.portal-in img { width: 100%; height: 100%; object-fit: cover; }
.portal figcaption { margin-top: 12px; text-align: center; font-family: var(--display); font-size: 1.2rem; color: var(--n7); }
.garland-wrap { margin-top: clamp(44px, 6vw, 80px); }
.garland-title { margin-bottom: 4px; text-align: center; font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 700; }
.garland { position: relative; min-height: 270px; margin-top: 6px; }
.g-wire { position: absolute; left: 0; top: 18px; width: 100%; height: 60px; overflow: visible; }
.g-wire path { fill: none; stroke: var(--n7); stroke-width: 3; vector-effect: non-scaling-stroke; }
.g-list li { position: absolute; left: var(--x); top: var(--y); translate: -50% 0; }
.g-bulb { position: relative; display: grid; justify-items: center; gap: 4px; width: 160px; padding: 0; border: 0; background: none; cursor: pointer; }
.g-bulb::before { content: ""; position: absolute; left: 50%; top: 12px; width: 190px; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 61, .55), transparent 66%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.g-bulb.is-lit::before { opacity: 1; }
.bulb { width: 46px; height: auto; overflow: visible; position: relative; }
.bulb-glass { fill: #dccff0; stroke: #b3a0d4; stroke-width: 2; transition: fill .5s, filter .5s; }
.bulb-fil { stroke: #9a86bd; stroke-width: 2.6; transition: stroke .4s; }
.bulb-shine { fill: none; stroke: #fff; stroke-opacity: .7; stroke-width: 3; stroke-linecap: round; }
.is-lit > .bulb .bulb-glass, .is-lit.gbulb .bulb-glass { fill: #ffe27a; stroke: #ffb627; filter: drop-shadow(0 0 12px #ffc83d); }
.is-lit > .bulb .bulb-fil, .is-lit.gbulb .bulb-fil { stroke: #ff8a3d; }
.g-tag { position: relative; display: grid; justify-items: center; gap: 0; min-width: 132px; margin-top: 8px; padding: 12px 14px 12px; border-radius: 20px; background: #fff; box-shadow: 0 12px 26px rgba(59, 26, 99, .16); text-align: center; transition: background .4s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.g-tag::before { content: ""; position: absolute; left: 50%; top: -9px; width: 2px; height: 10px; background: var(--n7); }
.g-tag .ico { color: var(--rose-d); margin-bottom: 2px; }
.g-tag strong { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; color: var(--n7); white-space: nowrap; }
.g-tag small { font-size: .78rem; font-weight: 700; letter-spacing: .05em; color: var(--ink-soft); }
.g-bulb.is-lit .g-tag { background: linear-gradient(180deg, #fff6d2, #ffe8a0); transform: translateY(2px); }
.garland-hint, .awards-hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.garland-hint .ico, .awards-hint .ico { fill: var(--gold-d); stroke: none; color: var(--gold-d); }
.about-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 44px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: 0 14px 34px rgba(59, 26, 99, .2); }

/* ---------- Группы: четыре фазы луны ---------- */
.age-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; max-width: 920px; margin: 0 auto 46px; padding: clamp(22px, 3vw, 38px); border-radius: 44px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); }
.age-moon { position: relative; width: clamp(150px, 22vw, 230px); aspect-ratio: 1; }
.moon-big { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 0 calc(10px + 34px * var(--p, .2)) rgba(255, 208, 90, calc(.25 + .5 * var(--p, .2)))); }
.age-halo { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, calc(.2 + .35 * var(--p, .2))), transparent 62%); }
.age-ctl { display: grid; gap: 10px; }
.age-ctl label { font-weight: 800; font-size: 1.05rem; color: #fff4cf; }
.age-ctl output { display: inline-block; min-width: 3.2em; padding: 2px 12px; border-radius: 999px; background: var(--gold); color: var(--n8); font-weight: 800; text-align: center; }
.age-ctl input[type="range"] { width: 100%; height: 12px; margin: 10px 0 0; appearance: none; -webkit-appearance: none; border-radius: 999px; background: linear-gradient(90deg, var(--gold) 0 var(--fill, 12%), rgba(255, 255, 255, .18) var(--fill, 12%)); cursor: pointer; }
.age-ctl input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff7d6; background: radial-gradient(circle at 35% 30%, #fff6c4, #ffb627 70%); box-shadow: 0 0 22px rgba(255, 200, 60, .85); transition: transform .2s; }
.age-ctl input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff7d6; background: radial-gradient(circle at 35% 30%, #fff6c4, #ffb627 70%); box-shadow: 0 0 22px rgba(255, 200, 60, .85); }
.age-ctl input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
.age-ticks { display: flex; justify-content: space-between; padding: 0 6px; font-weight: 800; font-size: .86rem; color: var(--lilac); }
.age-now { min-height: 3.4em; font-size: 1.04rem; color: #ecdffb; }
.age-now b { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--gold-l); }
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.phase-card { display: grid; justify-items: center; gap: 8px; padding: 28px 20px 26px; border-radius: 34px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); text-align: center; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), background .4s, box-shadow .4s, border-color .4s; }
.phase-card.is-on { transform: translateY(-10px); background: linear-gradient(180deg, rgba(255, 211, 107, .22), rgba(255, 255, 255, .07)); border-color: rgba(255, 211, 107, .7); box-shadow: 0 24px 50px rgba(255, 182, 39, .22); }
.moon-btn { width: 104px; height: 104px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.moon-btn:hover { transform: scale(1.1) rotate(-6deg); }
.moon-btn .moon { width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(255, 208, 90, .45)); }
.phase-card h3 { font-family: var(--display); font-size: 1.5rem; }
.phase-card .ages { padding: 2px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 800; font-size: .9rem; color: var(--gold-l); }
.phase-card .motto { min-height: 2.8em; color: #d9c8f3; }
.phase-card .btn { min-height: 46px; padding: 0 20px; font-size: .94rem; margin-top: 6px; }

/* ---------- Учредитель ---------- */
.leaders { display: grid; gap: 28px; }
.leader { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); align-items: center; padding: clamp(26px, 4vw, 48px); border-radius: 44px; background: #fff; box-shadow: 0 26px 60px rgba(59, 26, 99, .14); }
.leader-photo { position: relative; width: 240px; aspect-ratio: 1; }
.leader-photo > img, .leader-photo .avatar { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); border-radius: 50%; object-fit: cover; box-shadow: 0 14px 30px rgba(59, 26, 99, .3); }
.leader-photo .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px dashed var(--gold); }
.leader-body { display: grid; gap: 8px; justify-items: start; }
.leader-role { font-weight: 800; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-d); }
.leader h3 { font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); font-weight: 700; color: var(--n7); }
.leader-edu { font-weight: 700; }
.leader-edu span { display: inline-block; margin-right: 10px; padding: 1px 11px; border-radius: 999px; background: var(--lilac-l); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--n6); }
.leader-about { max-width: 64ch; color: var(--ink-soft); }
.leader-years { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.leader-years strong { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--gold-d); }
.leader-years span { font-weight: 800; color: var(--n7); }
.awards { grid-column: 1 / -1; padding-top: 10px; border-top: 2px dotted var(--line); }
.awards h4 { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; font-family: var(--display); font-size: 1.6rem; color: var(--n7); }
.awards h4 .ico { color: var(--gold-d); }
.medals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.medal { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico year" "ico text"; align-items: center; gap: 0 14px; width: 100%; height: 100%; padding: 16px 18px; border: 2px solid var(--line); border-radius: 24px; background: var(--paper); text-align: left; cursor: pointer; overflow: hidden; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .4s, border-color .4s, box-shadow .4s; }
.medal:hover { transform: translateY(-4px); }
.medal-ico { grid-area: ico; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lilac-l); color: var(--n6); transition: background .4s, color .4s; }
.medal-ico .ico { width: 28px; height: 28px; }
.medal b { grid-area: year; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; color: var(--n7); }
.medal-t { grid-area: text; font-size: .86rem; line-height: 1.35; font-weight: 600; color: var(--ink-soft); }
.medal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .8) 50%, transparent 65%); translate: -120% 0; }
.medal.is-on { border-color: var(--gold); background: linear-gradient(135deg, #fff6d2, #ffe190); box-shadow: 0 16px 34px rgba(255, 182, 39, .35); }
.medal.is-on .medal-ico { background: var(--gold); color: var(--n8); }
.medal.is-shine::after { animation: sheen .9s ease; }
@keyframes sheen { to { translate: 120% 0; } }

/* ---------- Кружки ---------- */
.clubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 26px 22px; padding-top: 18px; }
.club { position: relative; display: grid; border-radius: 32px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), background .5s, border-color .5s, box-shadow .5s; }
.club:hover { transform: translateY(-6px); }
.club.is-lit { background: linear-gradient(160deg, rgba(255, 211, 107, .2), rgba(255, 255, 255, .06)); border-color: rgba(255, 211, 107, .75); box-shadow: 0 0 0 1px rgba(255, 211, 107, .4), 0 22px 54px rgba(255, 182, 39, .28); }
.club-open { display: grid; gap: 16px; width: 100%; padding: 30px 26px 28px; border: 0; background: none; color: inherit; text-align: left; cursor: default; font: inherit; }
.club.is-openable .club-open { cursor: pointer; }
.club-media { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px; background: rgba(255, 255, 255, .09); color: var(--lilac); transition: background .5s, color .5s, transform .5s; overflow: hidden; }
.club-media .extra-ico { width: 56px; height: 56px; }
.club-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.club.is-lit .club-media { background: var(--gold); color: var(--n8); transform: rotate(-4deg); }
.club-body { display: grid; gap: 6px; }
.club-title { font-family: var(--display); font-size: 1.6rem; line-height: 1.15; color: #fff4cf; }
.club-meta { font-size: .84rem; font-weight: 800; letter-spacing: .06em; color: var(--gold-l); }
.club-text { color: #d9c8f3; }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 800; font-size: .9rem; color: var(--gold-l); }
.story-count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .78rem; font-weight: 800; }
.club-lamp { position: absolute; top: -18px; right: 24px; z-index: 2; width: 46px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 0; }
.club-lamp::before { content: ""; position: absolute; left: 50%; top: -14px; width: 2px; height: 20px; background: rgba(255, 255, 255, .4); }
.lantern-sm { position: static; width: 100%; }
.club:not(.is-lit) .lantern-sm { filter: grayscale(.75) brightness(.62); }
.club.is-lit .lantern-sm { filter: drop-shadow(0 0 16px rgba(255, 190, 60, .85)); }
.club .lt-halo { opacity: 0; }
.club.is-lit .lt-halo { opacity: .55; }

/* ---------- Фото ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
.tab { min-height: 44px; padding: 0 20px; border: 2px solid var(--n7); border-radius: 999px; background: transparent; font-weight: 800; font-size: .9rem; color: var(--n7); cursor: pointer; }
.tab.is-on { background: var(--n7); color: #fff; }
.hall { position: relative; }
.album { display: flex; align-items: center; gap: 30px; padding: 30px max(24px, calc((100vw - 1160px) / 2)) 44px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.album::-webkit-scrollbar { display: none; }
.album.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hall-one .album { justify-content: center; cursor: default; }
.album figure { flex: none; scroll-snap-align: center; margin: 0; transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.album figure:hover { transform: translateY(-8px) rotate(-1deg); }
.album figure[hidden] { display: none; }
.photo-btn { position: relative; display: block; padding: 0; border: 10px solid #fff; border-radius: 999px 999px 34px 34px; background: #fff; cursor: zoom-in; overflow: hidden; box-shadow: 0 0 0 3px var(--gold), 0 26px 50px rgba(59, 26, 99, .22); }
.photo-btn img { display: block; width: auto; height: clamp(260px, 50vh, 460px); max-width: min(84vw, 680px); object-fit: cover; border-radius: inherit; pointer-events: none; }
.photo-btn figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(26, 11, 48, .88)); color: #fff; font-family: var(--display); font-size: 1.3rem; text-align: left; opacity: 0; transition: opacity .3s; }
.photo-btn:hover figcaption, .photo-btn:focus-visible figcaption { opacity: 1; }
.hall-nav { position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 54px; height: 54px; translate: 0 -50%; border: 0; border-radius: 50%; background: var(--n7); color: #fff; cursor: pointer; box-shadow: 0 10px 24px rgba(59, 26, 99, .35); }
.hall-prev { left: max(10px, calc((100vw - 1260px) / 2)); } .hall-next { right: max(10px, calc((100vw - 1260px) / 2)); }
.gallery .hall-hint { display: flex; justify-content: center; color: var(--ink-soft); font-weight: 700; }

/* ---------- Новости ---------- */
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.story { overflow: hidden; border-radius: 32px; background: #fff; color: var(--ink); box-shadow: 0 18px 44px rgba(0, 0, 0, .25); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.story:hover { transform: translateY(-8px); }
.story-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.story-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--lilac-l); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.story:hover .story-img img { transform: scale(1.06); }
.story-img-empty { display: grid; place-items: center; }
.story-img-empty img { width: 34%; height: auto; object-fit: contain; }
.story-body { display: grid; gap: 6px; padding: 18px 24px 26px; }
.story-body time { font-size: .84rem; font-weight: 800; color: var(--rose-d); }
.story-title { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.2; color: var(--n7); }
.story-excerpt { color: var(--ink-soft); font-size: .98rem; }
.story .story-more { color: var(--n5); }

/* ---------- Документы и вакансии ---------- */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc-sets { display: grid; gap: 22px; margin-top: 20px; }
.doc-set, .jobs { padding: 26px 28px; border-radius: 30px; background: #fff; box-shadow: 0 14px 34px rgba(59, 26, 99, .1); }
.jobs { background: linear-gradient(160deg, var(--n6), var(--n8)); color: #fff; }
.jobs h3 { color: #fff; }
.doc-set h3, .jobs h3 { margin-bottom: 12px; }
.sec-dark .doc-set h3, .sec-light .doc-set h3 { color: var(--n7); }
.sec-dark .jobs h3, .sec-light .jobs h3 { color: #fff; }
.doc-set li { display: grid; gap: 2px; padding: 10px 0; border-top: 1.5px dotted var(--line); }
.doc-set li:first-child { border-top: 0; }
.doc-set a { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--n7); }
.doc-set a .ico { color: var(--rose-d); }
.doc-set small { margin-left: 32px; color: var(--ink-soft); font-weight: 700; }
.job { margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed rgba(255, 255, 255, .4); }
.job summary { cursor: pointer; font-weight: 800; }
.job p { margin-top: 8px; color: #eadffa; }
.job a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 800; color: var(--gold-l); }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-info { display: grid; gap: 14px; justify-items: start; }
.contact-info h2 { margin-bottom: 4px; }
.contact-phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); color: var(--gold-l); text-decoration: none; }
.contact-phone .ico { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--gold); color: var(--n8); }
.contact-phone:hover { color: #fff; }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.contact-list .ico { margin-top: 3px; color: var(--gold); }
.contact-list a { color: var(--gold-l); }
.sec-light .contact-info h2, .sec-light .contact-phone { color: var(--n7); }
.sec-light .contact-list a { color: var(--n5); }
.social-label { margin-top: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--n7); font-weight: 800; text-decoration: none; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.socials a:hover { transform: translateY(-3px) rotate(-2deg); }
.form { position: relative; padding: 42px 36px 34px; border-radius: 40px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .35), 0 0 0 4px rgba(255, 182, 39, .6); }
.form::after { content: ""; position: absolute; left: 22px; bottom: 18px; width: 90px; height: 90px; border-radius: 50%; box-shadow: 14px 0 0 0 rgba(255, 182, 39, .18); transform: rotate(-30deg); pointer-events: none; }
.seal { position: absolute; top: -26px; right: 30px; width: 76px; height: 76px; padding: 4px; border-radius: 50%; background: #fff; box-shadow: 0 10px 22px rgba(59, 26, 99, .3); rotate: 10deg; }
.seal img { width: 100%; height: 100%; border-radius: 50%; }
.form h3 { max-width: calc(100% - 90px); font-family: var(--display); font-weight: 700; font-size: 2.2rem; color: var(--n7); }
.form label { display: block; margin: 16px 0 6px; font-weight: 800; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 13px 18px; border: 2px solid #e3d6f4; border-radius: 18px; background: #fff; font: 600 1rem var(--body); color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233b1a63' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px; padding-right: 42px; }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--n5); box-shadow: 0 0 0 5px rgba(122, 63, 184, .18); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; margin-top: 16px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .9rem !important; font-weight: 600 !important; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--n7); }
.form .btn { width: 100%; margin-top: 20px; }
.form-note { min-height: 0; margin-top: 10px; font-weight: 800; color: #1b7a3a; opacity: 0; transition: opacity .3s; }
.form-note.show { opacity: 1; }
.form-note.error { color: var(--rose-d); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Подвал: ночное село и гирлянда ---------- */
.foot { position: relative; margin-top: -1px; background: var(--n9); color: #d9c8f3; }
.night { position: relative; height: clamp(250px, 30vw, 360px); overflow: hidden; background: linear-gradient(180deg, #1a0b30, #3b1a63 78%, #7a3a86); }
.stars-foot { bottom: 40%; }
.garland-foot { position: absolute; left: 0; right: 0; top: 16px; z-index: 2; height: 100px; }
.gf-wire { position: absolute; inset: 0; width: 100%; height: 80px; overflow: visible; }
.gf-wire path { fill: none; stroke: #8f78b8; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.gbulb { position: absolute; left: var(--x); top: var(--y); z-index: 1; width: clamp(30px, 3.4vw, 44px); padding: 0; border: 0; background: none; translate: -50% -4px; cursor: pointer; }
.gbulb::before { content: ""; position: absolute; left: 50%; top: 34%; width: 230%; aspect-ratio: 1; translate: -50% -20%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 61, .5), transparent 65%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.gbulb.is-lit::before { opacity: 1; }
.gbulb .bulb { width: 100%; }
.gbulb:nth-child(3n+1).is-lit .bulb-glass { fill: #ffe27a; }
.gbulb:nth-child(3n+2).is-lit .bulb-glass { fill: #ff9dbb; stroke: #ff6b9a; filter: drop-shadow(0 0 12px #ff6b9a); }
.gbulb:nth-child(3n).is-lit .bulb-glass { fill: #8cf0e2; stroke: #22c1b0; filter: drop-shadow(0 0 12px #22c1b0); }
.foot .village { position: absolute; bottom: -1px; height: clamp(120px, 16vw, 210px); }
.foot-ground { display: grid; gap: 14px; justify-items: center; padding: 34px 0 30px; background: var(--ground); text-align: center; }
.foot-bye { font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); color: var(--gold-l); }
.foot-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: .9rem; color: var(--lilac); }
.eggs { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-weight: 700; font-size: .9rem; }
.eggs-dots { display: inline-flex; gap: 7px; }
.eggs-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: background .5s, box-shadow .5s, transform .5s; }
.eggs-dots i.on { background: var(--gold); box-shadow: 0 0 12px var(--gold); transform: scale(1.15); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 10px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
.foot-in img { width: 44px; height: 44px; border-radius: 50%; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-l); font-weight: 800; text-decoration: none; }
.after-light::before, .after-dark::before { content: ""; position: absolute; left: -6%; right: -6%; top: -1px; z-index: 3; height: calc(var(--arc) * .8); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.after-light::before { background: var(--cream); } .after-dark::before { background: var(--n8); }

/* ---------- Всплывающее, просмотр фото, диалоги ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 12px 24px 12px 14px; border-radius: 999px; background: var(--n8); border: 2px solid var(--gold); color: #fff; font-weight: 700; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 26px rgba(255, 182, 39, .3); translate: -50% 0; animation: toast-in .5s cubic-bezier(.3, 1.6, .5, 1); }
.toast[hidden] { display: none; }
.toast b { color: var(--gold-l); }
.toast .moon { width: 34px; height: 34px; flex: none; }
@keyframes toast-in { from { transform: translateY(40px) scale(.8); opacity: 0; } }
.news-dialog { width: min(640px, 100% - 32px); max-height: calc(100% - 40px); padding: 0; border: 0; border-radius: 34px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.news-dialog::backdrop { background: rgba(26, 11, 48, .78); }
.nd-close { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--n7); color: #fff; cursor: pointer; }
.nd-gallery { position: relative; background: var(--n9); }
.nd-stage { position: relative; }
.nd-img { width: 100%; max-height: 60vh; object-fit: contain; }
.nd-nav { position: absolute; top: 50%; display: none; place-items: center; width: 44px; height: 44px; translate: 0 -50%; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--n7); cursor: pointer; }
.nd-prev { left: 10px; } .nd-next { right: 10px; }
.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; }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.nd-thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 26px 28px 32px; }
.nd-gallery[hidden] + .nd-body { padding-top: 60px; }
.nd-body time { font-weight: 800; color: var(--rose-d); }
.nd-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; margin: .2em 0 .5em; color: var(--n7); }
#ndText { overflow-wrap: anywhere; }
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(26, 11, 48, .95); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 80vh; border-radius: 18px; }
.lightbox figcaption { margin-top: 12px; color: #fff; font-family: var(--display); font-size: 1.3rem; }
.lb-close, .lb-nav { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border: 0; border-radius: 50%; background: #fff; color: var(--n7); cursor: pointer; }
.lb-close { position: absolute; top: 18px; right: 18px; }

/* летящие элементы: искры, звёзды, падающие огни */
.spark { position: fixed; left: 0; top: 0; z-index: 74; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--gold) 60%, transparent 70%); pointer-events: none; }
.comet { position: fixed; left: 0; top: 0; z-index: 74; width: 160px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255, 224, 138, .9) 70%, #fff); box-shadow: 0 0 14px 2px rgba(255, 214, 120, .8); pointer-events: none; }
.flash { position: fixed; inset: 0; z-index: 72; pointer-events: none; background: radial-gradient(circle at 50% 40%, rgba(255, 226, 140, .55), rgba(255, 107, 154, .18) 50%, transparent 75%); }

/* ---------- Движение (только если посетитель не просил его уменьшить) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(34px) scale(.97); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .9, .3, 1.2); transition-delay: var(--delay, 0s); }
  .js .reveal.from-right { transform: translate(34px, 24px) scale(.97); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .stars i { animation: twinkle var(--t) var(--d) ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: .95; transform: scale(1.25); } }
  .moon-glow { animation: breathe 7s ease-in-out infinite alternate; }
  @keyframes breathe { from { opacity: .7; transform: scale(.96); } to { opacity: 1; transform: scale(1.05); } }
  .village .win { animation: flick 4.2s calc(var(--i) * -.9s) ease-in-out infinite; }
  @keyframes flick { 0%, 100% { opacity: 1; } 46% { opacity: .55; } 52% { opacity: 1; } 78% { opacity: .75; } }

  .js .ht-word span { animation: letter-in .9s calc(var(--i) * 80ms + .2s) cubic-bezier(.3, 1.5, .5, 1) both, letter-glow 5s calc(var(--i) * .18s + 1.8s) ease-in-out infinite; }
  @keyframes letter-in { from { opacity: 0; transform: translateY(40px) scale(.4) rotate(12deg); } }
  @keyframes letter-glow { 0%, 100% { transform: none; } 50% { transform: translateY(-6px); } }
  .js .ht-moon { animation: letter-in .9s .45s cubic-bezier(.3, 1.5, .5, 1) both, moon-spin 14s 2s ease-in-out infinite; }
  @keyframes moon-spin { 0%, 70%, 100% { transform: none; } 85% { transform: rotate(20deg) scale(1.12); } }
  .js .eyebrow, .js .hero-slogan, .js .hero-lead, .js .hero-actions, .js .logo-hint { animation: rise .8s cubic-bezier(.2, .9, .3, 1) both; }
  .js .eyebrow { animation-delay: .1s; } .js .hero-slogan { animation-delay: 1.1s; } .js .hero-lead { animation-delay: 1.25s; } .js .hero-actions { animation-delay: 1.4s; } .js .logo-hint { animation-delay: 2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
  .scroll-cue .ico { animation: nudge 1.8s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateY(6px); } }

  /* логотип: колыбель качается, малыш машет, свет пульсирует */
  .js .na-logo { animation: logo-in 1.2s .2s cubic-bezier(.2, .9, .3, 1.2) both; }
  @keyframes logo-in { from { opacity: 0; transform: translateY(40px) scale(.85) rotate(-6deg); } }
  .na-moon, .na-kid { transform-origin: 200px 60px; animation: cradle 5.6s ease-in-out infinite alternate; }
  @keyframes cradle { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
  .na-arm { transform-origin: 250px 246px; animation: wave 2.4s ease-in-out infinite alternate; }
  @keyframes wave { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
  .na-head { transform-box: fill-box; transform-origin: 50% 100%; animation: tilt 4.4s ease-in-out infinite alternate; }
  @keyframes tilt { from { transform: rotate(-2deg); } to { transform: rotate(2.4deg); } }
  .na-rays { animation: spin 18s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .na-orb > circle:first-child { animation: pulse 3s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { transform: scale(.88); opacity: .75; } 50% { transform: scale(1.12); opacity: 1; } }
  .na-glow-bg { animation: pulse-bg 6s ease-in-out infinite alternate; }
  @keyframes pulse-bg { from { transform: scale(.9); opacity: .5; } to { transform: scale(1.15); opacity: 1; } }
  .na-spk { animation: spk 3.4s calc(var(--i) * .55s) ease-in-out infinite; }
  @keyframes spk { 0%, 100% { opacity: .2; transform: scale(.5) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(90deg); } }
  .logo-btn:hover .na-rays { animation-duration: 5s; }
  .logo-btn.is-paused * { animation-play-state: paused !important; }

  .leader-photo .ring { animation: spin 40s linear infinite; }
  .club-lamp { animation: swing 4.4s calc(var(--i, 0) * -.7s) ease-in-out infinite alternate; }
  .club:nth-child(2n) .club-lamp { animation-delay: -1.6s; } .club:nth-child(3n) .club-lamp { animation-delay: -2.8s; }
  @keyframes swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
  .club.is-lit .lt-flame { animation: flame .5s ease-in-out infinite alternate; }
  @keyframes flame { from { transform: scale(.85); } to { transform: scale(1.15) translateY(-1px); } }
  .lt-flame { transform-box: fill-box; transform-origin: 50% 100%; }
  .g-bulb.is-lit .g-tag { animation: tag-sway 3.6s ease-in-out infinite alternate; transform-origin: 50% -8px; }
  @keyframes tag-sway { from { transform: rotate(-2.4deg) translateY(2px); } to { transform: rotate(2.4deg) translateY(2px); } }
  .gbulb.is-lit .bulb { animation: bulb-pop .5s cubic-bezier(.3, 1.8, .5, 1); }
  @keyframes bulb-pop { 40% { transform: scale(1.25); } }
  .phase-card.is-on .moon-btn { animation: float-moon 3.4s ease-in-out infinite alternate; }
  @keyframes float-moon { from { transform: translateY(0); } to { transform: translateY(-8px); } }
  .medal.is-on .medal-ico { animation: medal-pop .6s cubic-bezier(.3, 1.8, .5, 1); }
  @keyframes medal-pop { 40% { transform: scale(1.35) rotate(-12deg); } }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fireflies { display: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1360px) { .menu a { padding: 9px 9px; font-size: .88rem; } .brand-text small { display: none; } }
@media (max-width: 1100px) {
  .chip-menu { display: inline-flex; }
  .chip-call span { display: none; }
  .chip-call { width: 42px; padding: 0; justify-content: center; }
  .menu { position: absolute; top: calc(var(--bar-h) - 4px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 4px; padding: 14px; border-radius: 28px; background: rgba(43, 19, 72, .98); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 211, 107, .4); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 18px; font-size: 1.05rem; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { justify-items: center; order: 2; }
  .hero-title { justify-content: center; }
  .hero-logo { order: 1; }
  .logo-btn { width: min(100%, 400px); }
  .hero-actions { justify-content: center; }
  .about-grid, .contact-grid, .docs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .age-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .age-ctl { width: 100%; }
  .leader { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 30px 22px 34px; }
  .leader-body { justify-items: center; }
  .leader-photo { width: 200px; }
  .garland { min-height: 0; padding-top: 8px; }
  .g-wire { display: none; }
  .g-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 12px; justify-items: center; }
  .g-list li { position: static; translate: none; }
}
@media (max-width: 640px) {
  :root { --arc: 38px; }
  .wrap { width: min(1160px, 100% - 32px); }
  .form { padding: 40px 20px 28px; }
  .seal { right: 18px; width: 64px; height: 64px; }
  .foot-in { justify-content: center; text-align: center; } .foot-in p { width: 100%; }
  .hall-nav { width: 44px; height: 44px; }
  .photo-btn img { height: clamp(220px, 40vh, 340px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .place a { margin-left: 0; }
  .club-open { padding: 28px 20px 24px; }
  .phase-card.is-on { transform: translateY(-4px); }
  .village { height: 120px; }
}
@media (max-width: 520px) {
  .top-in { gap: 8px; width: calc(100% - 20px); }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.3rem; }
  .chips { gap: 5px; }
  .chip { min-height: 40px; padding: 0 12px; font-size: .86rem; }
  .chip-menu, .chip-call { width: 40px; padding: 0; justify-content: center; }
  .phase { position: absolute; left: var(--p, 0%); bottom: -15px; width: 28px; height: 28px; translate: -50% 0; pointer-events: none; } .moon-mini { width: 28px; height: 28px; }
  .hero-title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .gbulb { width: 26px; }
}
