/* Алихан 2019: тёмно-синее небо и золото — цвета логотипа.
   Светлые разделы — слоновая кость с золотой каймой, тёмные — ночное небо с золотой пылью. */

/* ---------- Шрифты (все с казахскими буквами ә ғ қ ң ө ұ ү һ і) ---------- */
@font-face { font-family: "Forum"; font-weight: 400; font-display: swap; src: url("../assets/fonts/forum-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: "Forum"; font-weight: 400; font-display: swap; src: url("../assets/fonts/forum-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Forum"; font-weight: 400; font-display: swap; src: url("../assets/fonts/forum-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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; }

@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }

:root {
  --navy-950: #050d20;
  --navy-900: #08162f;
  --navy-800: #0c1f45;
  --navy-700: #13295a;
  --gold-100: #fff3c9;
  --gold-200: #fbe6a0;
  --gold-300: #f5d16c;
  --gold-400: #e9b640;
  --gold-500: #cf9626;
  --gold-600: #a97616;
  --ivory: #fbf6e8;
  --ivory-2: #f3ead2;
  --ink: #12224a;
  --ink-soft: #4b5878;
  --on-dark: #eef0f7;
  --on-dark-soft: #b9c2da;
  --line-gold: rgba(233, 182, 64, .38);
  --gold-text: linear-gradient(180deg, #fdf1bd 0%, #f4cb5e 40%, #d9a02c 64%, #f2cd62 100%);
  --gold-btn: linear-gradient(180deg, #fcebb0 0%, #f1c458 46%, #c9901f 100%);
  --display: "Forum", "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 72px;
  --soft: 0 18px 46px rgba(5, 13, 32, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 10px); -webkit-text-size-adjust: 100%; background: var(--navy-900); }
body { margin: 0; color: var(--on-dark); background: var(--navy-900); 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(--gold-300); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-300); 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: 80; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 56px); margin-inline: auto; }
.muted { color: var(--on-dark-soft); }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); text-wrap: balance; }
h3 { font-size: 1.5rem; }
.gold-text { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--display); font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
.kicker .ico { width: 1.25em; height: 1.25em; stroke-width: 1.6; }
.lede { margin-top: 14px; font-size: 1.12rem; max-width: 60ch; text-wrap: pretty; }
.head { margin-bottom: 44px; }
.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: radial-gradient(ellipse 120% 80% at 50% -10%, #17316a 0%, #0b1d43 46%, #050d20 100%); }
#nature { position: absolute; inset: 0; width: 100%; height: 100%; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow-a { width: 52vmax; height: 52vmax; right: -16vmax; top: -22vmax; background: #f0bd4a; opacity: .16; animation: glow-a 20s ease-in-out infinite alternate; }
.glow-b { width: 46vmax; height: 46vmax; left: -20vmax; top: 40vh; background: #2c56b8; opacity: .3; animation: glow-b 26s 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); } }

/* ---------- Шапка ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; gap: 10px; padding: 0 max(20px, calc((100% - 1240px) / 2));
  background: rgba(8, 22, 47, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-gold);
}
.bar-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--gold-200); text-decoration: none; font-family: var(--display); font-size: 1.45rem; line-height: 1; white-space: nowrap; }
.bar-brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(233, 182, 64, .45), 0 0 18px rgba(233, 182, 64, .35); }
.bar-brand b { font-weight: 400; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bar-nav { display: flex; align-items: center; gap: 2px; }
.bar-nav a { position: relative; padding: 9px 12px; color: var(--on-dark); font-weight: 700; font-size: .93rem; text-decoration: none; white-space: nowrap; transition: color .2s; }
.bar-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold-text); transform: scaleX(0); transition: transform .3s; }
.bar-nav a:hover { color: var(--gold-200); }
.bar-nav a.is-active { color: var(--gold-200); }
.bar-nav a:hover::after, .bar-nav a.is-active::after { transform: scaleX(1); }
.bar-lang { display: grid; place-items: center; min-width: 50px; height: 42px; border: 1px solid var(--line-gold); border-radius: 999px; color: var(--gold-200); font-weight: 800; font-size: .84rem; text-decoration: none; }
.bar-lang:hover { background: rgba(233, 182, 64, .14); }
.bar-call { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--gold-btn); color: var(--navy-900); font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 16px rgba(233, 182, 64, .3); }
.bar-menu { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-gold); border-radius: 50%; background: none; color: var(--gold-200); cursor: pointer; }
.bar-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--p, 0%); background: var(--gold-text); box-shadow: 0 0 10px rgba(245, 209, 108, .8); }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--bar-h) + 40px) 0 90px; display: flex; align-items: center; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.burst {
  position: absolute; left: 70%; top: 52%; z-index: 0; width: min(170vh, 1700px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(245, 209, 108, .17) 0 3.2deg, transparent 3.2deg 11.25deg);
  -webkit-mask-image: radial-gradient(circle, #000 4%, transparent 62%); mask-image: radial-gradient(circle, #000 4%, transparent 62%);
}
h1 { font-size: clamp(2.7rem, 1.4rem + 4.4vw, 5.2rem); line-height: 1.02; text-wrap: balance; }
.hero-name { display: block; margin-bottom: 16px; font-family: var(--body); font-weight: 800; font-size: clamp(.95rem, .9rem + .3vw, 1.1rem); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
.hero-lead { margin-top: 20px; max-width: 46ch; font-size: 1.16rem; color: var(--on-dark); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 24px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border: 1px solid var(--line-gold); border-radius: 999px; background: rgba(8, 22, 47, .55); font-weight: 700; font-size: .95rem; }
.hero-facts .ico { color: var(--gold-300); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-more { position: absolute; left: 50%; bottom: 22px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translateX(-50%); color: var(--on-dark-soft); font-family: var(--display); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.hero-more .ico { color: var(--gold-300); animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border: 2px solid transparent; border-radius: 999px; overflow: hidden; cursor: pointer; font-family: var(--body); font-weight: 800; font-size: 1.04rem; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-btn); color: var(--navy-900); box-shadow: 0 10px 26px rgba(233, 182, 64, .32), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-20deg); transition: left .7s; }
.btn-gold:hover::after { left: 130%; }
.btn-ghost { background: rgba(8, 22, 47, .4); border-color: var(--gold-400); color: var(--gold-200); }
.btn-ghost:hover { background: rgba(233, 182, 64, .16); }

/* ---------- Живой логотип ---------- */
.hero-logo { position: relative; justify-self: center; width: min(100%, 580px, calc(100svh - var(--bar-h) - 130px)); }
.ll { --mx: 0; --my: 0; position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ll-stage { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.ll-layer { position: absolute; inset: 0; display: block; }
.ll-back { transform: translate(calc(var(--mx) * 4px), calc(var(--my) * 4px)); }
.ll-rays { transform: translate(calc(var(--mx) * 8px), calc(var(--my) * 8px)); }
.ll-mid { transform: translate(calc(var(--mx) * 12px), calc(var(--my) * 12px)); }
.ll-stars { transform: translate(calc(var(--mx) * 22px), calc(var(--my) * 20px)); }
.ll-title { transform: translate(calc(var(--mx) * 6px), calc(var(--my) * 6px)); }
.ll-part { position: absolute; display: block; }
.ll-part img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.ll-glow { position: absolute; left: 14%; top: 4%; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(245, 209, 108, .42), rgba(245, 209, 108, .1) 45%, transparent 68%); }
.ll-ringglint { overflow: hidden; }
.ll-ringglint i { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 80%, rgba(255, 252, 232, .95) 90%, transparent 97%); mix-blend-mode: screen; }
.ll-sheen { position: absolute; inset: 0; display: block; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; background: linear-gradient(112deg, transparent 38%, rgba(255, 244, 196, .85) 50%, transparent 62%) 160% 0 / 300% 100% no-repeat; mix-blend-mode: screen; pointer-events: none; }
.ll-spk { position: absolute; width: 6.4%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); background: #fff6d2; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); filter: drop-shadow(0 0 4px #ffe48a); pointer-events: none; }
.ll-spark { position: fixed; z-index: 60; width: 20px; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .ll-ring { -webkit-mask-image: conic-gradient(#000 var(--sweep), transparent calc(var(--sweep) + .6deg)); mask-image: conic-gradient(#000 var(--sweep), transparent calc(var(--sweep) + .6deg)); animation: ring-draw 1.7s .1s cubic-bezier(.45, .1, .25, 1) both; }
  .ll-glow { animation: glow-in 1.6s .3s ease-out both, glow-pulse 5s 2s ease-in-out infinite; }
  .ll-sun { transform-origin: 50% 100%; animation: sun-rise 1.1s .55s cubic-bezier(.2, .9, .3, 1.15) both; }
  .ll-ray { transform-origin: var(--ox) var(--oy); animation: ray-pop .6s calc(1.1s + var(--i) * 42ms) cubic-bezier(.3, 1.7, .5, 1) both, ray-breathe 3.6s calc(3.6s + var(--i) * 130ms) ease-in-out infinite; }
  .ll-A { animation: a-rise 1s 1.5s cubic-bezier(.2, .9, .3, 1.1) both; }
  .ll-left { animation: from-left 1s 1.85s cubic-bezier(.2, .9, .3, 1.1) both; }
  .ll-right { animation: from-right 1s 1.85s cubic-bezier(.2, .9, .3, 1.1) both; }
  .ll-star { animation: star-pop .6s calc(2.5s + var(--i) * 110ms) cubic-bezier(.3, 1.8, .5, 1) both, twinkle calc(2.2s + var(--i) * .4s) calc(3.6s + var(--i) * .3s) ease-in-out infinite alternate; }
  .ll-letter { animation: letter-drop .75s calc(2.7s + var(--i) * 75ms) cubic-bezier(.3, 1.5, .5, 1) both; }
  .ll-line-l { transform-origin: 100% 50%; animation: line-grow .9s 3.5s cubic-bezier(.3, .8, .3, 1) both; }
  .ll-line-r { transform-origin: 0 50%; animation: line-grow .9s 3.5s cubic-bezier(.3, .8, .3, 1) both; }
  .ll-orn { animation: star-pop .6s 3.4s cubic-bezier(.3, 1.8, .5, 1) both; }
  .ll-sub { animation: sub-rise .6s calc(3.8s + var(--i) * 60ms) cubic-bezier(.2, .9, .3, 1.1) both; }
  .ll-sheen { animation: sheen 7s 5s ease-in-out infinite; }
  .ll-ringglint i { animation: spin 7s 2s linear infinite; }
  .ll-spk { animation: spk 3s calc(4.6s + var(--i) * .5s) ease-in-out infinite; }
  .ll-stage { animation: float 8s 4.6s ease-in-out infinite; }
  .ll.is-paused, .ll.is-paused * { animation-play-state: paused !important; }

  .burst { animation: burst-spin 140s linear infinite; }
  .gold-text.shine, .hero h1 .gold-text { background-size: 100% 220%; animation: text-shine 6s ease-in-out infinite alternate; }
  .coin { animation: bob 6s ease-in-out infinite alternate; }
  .coin:nth-child(2) { animation-duration: 7.4s; animation-delay: -2s; }
  .extra-medal { animation: bob 6s ease-in-out infinite alternate; }

  .js .step-plate { transform: scaleY(0); transform-origin: 50% 100%; }
  .js .step-top > * { opacity: 0; transform: scale(0) rotate(-90deg); }
  .js .step.is-in .step-plate { transform: scaleY(1); transition: transform .9s calc(var(--s) * 160ms) cubic-bezier(.2, .9, .3, 1.1); }
  .js .step.is-in .step-top > * { opacity: 1; transform: none; transition: transform .6s calc(var(--s) * 160ms + .7s + var(--k, 0) * 90ms) cubic-bezier(.3, 1.8, .5, 1), opacity .3s calc(var(--s) * 160ms + .7s); }
  .js .step.is-in .step-top i { animation: twinkle 2.4s calc(var(--s) * .3s + var(--k, 0) * .2s + 2s) ease-in-out infinite alternate; }

  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .3, 1); transition-delay: var(--delay, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes ring-draw { from { --sweep: 0deg; } to { --sweep: 360deg; } }
@keyframes glow-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes glow-pulse { 50% { opacity: .65; transform: scale(1.06); } }
@keyframes sun-rise { from { transform: translateY(16%) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ray-pop { from { transform: scale(.05); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ray-breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.07); } }
@keyframes a-rise { from { clip-path: inset(100% 0 0 0); transform: translateY(10%); } to { clip-path: inset(-5%); transform: none; } }
@keyframes from-left { from { transform: translateX(-14%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes from-right { from { transform: translateX(14%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes star-pop { from { transform: scale(0) rotate(-140deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes twinkle { from { transform: scale(.88) rotate(-6deg); filter: brightness(.9); } to { transform: scale(1.1) rotate(8deg); filter: brightness(1.35); } }
@keyframes letter-drop { from { transform: translateY(-75%) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes line-grow { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sub-rise { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheen { 0%, 62% { background-position: 160% 0; } 100% { background-position: -50% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spk { 0%, 100% { transform: translate(-50%, -50%) scale(0) rotate(0); } 40% { transform: translate(-50%, -50%) scale(1) rotate(45deg); } 70% { transform: translate(-50%, -50%) scale(0) rotate(90deg); } }
@keyframes float { 50% { transform: translateY(-1.4%); } }
@keyframes burst-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes text-shine { to { background-position: 0 100%; } }
@keyframes bob { to { transform: translateY(-9px); } }

/* ---------- Разделы ---------- */
.sec { position: relative; padding: 104px 0; }
.sec::before { content: ""; position: absolute; left: 50%; top: 0; width: min(560px, 80%); height: 14px; transform: translate(-50%, -50%); background:
  linear-gradient(90deg, transparent, var(--gold-400) 30%, var(--gold-400) 70%, transparent) center / 100% 1px no-repeat; }
.sec::after { content: ""; position: absolute; left: 50%; top: 0; width: 11px; height: 11px; transform: translate(-50%, -50%) rotate(45deg); background: var(--gold-text); box-shadow: 0 0 14px rgba(245, 209, 108, .7); }
.sec-light { background: rgba(251, 246, 232, .96); color: var(--ink); }
.sec-light .kicker { color: var(--gold-600); }
.sec-light h2, .sec-light h3 { color: var(--ink); }
.sec-light .lede { color: var(--ink-soft); }
.sec-light a { color: #8a5a0a; }
.sec-light .muted { color: var(--ink-soft); }
.sec-dark h2, .sec-night h2 { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-dark h3, .sec-night h3 { color: var(--gold-200); }
.sec-dark .lede, .sec-night .lede { color: var(--on-dark-soft); }
.sec-night { background: linear-gradient(180deg, rgba(5, 13, 32, .55), rgba(5, 13, 32, .92)); }
.sec-light h2::after { content: ""; display: block; width: 84px; height: 3px; margin-top: 16px; border-radius: 3px; background: var(--gold-text); }
.head-center h2::after { margin-inline: auto; }

/* О саде */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 52px; align-items: start; }
.coins { display: flex; gap: 22px; margin-top: 34px; }
.coin { position: relative; display: grid; place-content: center; justify-items: center; width: clamp(128px, 16vw, 168px); aspect-ratio: 1; border-radius: 50%; text-align: center; line-height: 1.1; background: radial-gradient(circle at 35% 28%, #fdf1b8, #f1c458 45%, #b97f14 100%); box-shadow: 0 16px 30px rgba(120, 80, 10, .3), inset 0 0 0 5px rgba(255, 255, 255, .35), inset 0 0 0 7px rgba(150, 100, 15, .55); color: var(--navy-900); }
.coin strong { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 2.1rem + 2.2vw, 3.9rem); line-height: 1; }
.coin span { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }
.info-card { padding: 32px 34px; background: #fff; border: 1px solid rgba(233, 182, 64, .55); border-radius: 30px; box-shadow: 0 22px 50px rgba(18, 34, 74, .12), inset 0 0 0 5px #fff, inset 0 0 0 6px rgba(233, 182, 64, .35); }
.info-card h3 { color: var(--ink); }
.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 rgba(169, 118, 22, .35); 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: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-600); }
.info-card dd { font-weight: 700; overflow-wrap: anywhere; color: var(--ink); }
.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: 18px; margin-top: 44px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--gold-400), var(--soft); }
.director { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 60px; padding: 30px 38px; background: linear-gradient(135deg, #0c1f45, #13295a); color: var(--on-dark); border-radius: 34px; box-shadow: 0 0 0 1px var(--gold-400), inset 0 0 0 6px #0c1f45, inset 0 0 0 7px rgba(233, 182, 64, .5), var(--soft); }
.director .kicker { color: var(--gold-300); margin-bottom: 4px; }
.director-photo { aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: radial-gradient(circle, #1c3a78, #0a1b3f); box-shadow: 0 0 0 3px var(--gold-400), 0 0 0 7px rgba(8, 22, 47, .8), 0 0 0 8px rgba(233, 182, 64, .5); display: grid; place-items: center; }
.director-photo img { width: 100%; height: 100%; object-fit: cover; }
.director-photo img.director-mark { object-fit: contain; padding: 6%; }
.sec-light .director h2 { color: transparent; }
.director-name { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.sec-light .director-name::after { display: none; }
.director-role { margin-top: 4px; font-family: var(--display); font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-200); }
.director p + p { margin-top: 8px; }

/* Возрастные ступени */
.steps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; align-items: end; max-width: 940px; margin: 0 auto; }
.step { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.step-top { display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 52px; margin-bottom: 12px; }
.step-top i { width: 22px; height: 22px; background: var(--gold-text); clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 81% 96%, 50% 74%, 19% 96%, 30% 60%, 0 38%, 38% 36%); filter: drop-shadow(0 0 6px rgba(245, 209, 108, .7)); }
.step-crown { width: 58px; height: 58px; color: var(--gold-300); stroke-width: 1.4; filter: drop-shadow(0 0 10px rgba(245, 209, 108, .7)); }
.step-plate { width: 100%; height: calc(120px + var(--s) * 54px); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 22px 22px 8px 8px; background: linear-gradient(180deg, #fdeaa8 0%, #f0c155 40%, #c48a1c 100%); box-shadow: 0 18px 34px rgba(0, 0, 0, .35), inset 0 0 0 4px rgba(255, 255, 255, .4), inset 0 0 0 6px rgba(150, 100, 15, .5); color: var(--navy-900); }
.step-plate strong { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 1; text-shadow: 0 2px 0 rgba(255, 255, 255, .45); }
.step-plate small { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.steps-cta { margin-top: 48px; text-align: center; }

/* Кружки */
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; max-width: 1000px; margin-inline: auto; }
.extras-solo { grid-template-columns: minmax(0, 780px); }
.extra { display: flex; align-items: center; gap: 28px; padding: 30px 34px; background: #fff; border-radius: 30px; box-shadow: 0 22px 50px rgba(18, 34, 74, .12), inset 0 0 0 5px #fff, inset 0 0 0 6px rgba(233, 182, 64, .45); border: 1px solid rgba(233, 182, 64, .55); }
.extra-medal { flex: none; display: grid; place-items: center; width: clamp(108px, 13vw, 150px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fdf1b8, #f1c458 45%, #b97f14 100%); color: var(--navy-900); box-shadow: 0 14px 28px rgba(120, 80, 10, .3), inset 0 0 0 5px rgba(255, 255, 255, .35), inset 0 0 0 7px rgba(150, 100, 15, .5); }
.extra-medal img { width: 100%; height: 100%; object-fit: cover; }
.extra-ico { width: 54%; height: 54%; stroke-width: 2.6; }
.extra h3 { font-size: 1.9rem; }
.extra p { margin-top: 6px; color: var(--ink-soft); }
.extra .extra-meta { font-weight: 800; color: var(--gold-600); }
.extra-body a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; }

/* Фото */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab { min-height: 44px; padding: 0 20px; border: 1px solid var(--line-gold); border-radius: 999px; background: rgba(8, 22, 47, .5); color: var(--on-dark); cursor: pointer; font-weight: 800; }
.tab:hover { background: rgba(233, 182, 64, .14); }
.tab.is-on { background: var(--gold-btn); border-color: transparent; color: var(--navy-900); }
.album { columns: 3 280px; column-gap: 20px; }
.album figure { break-inside: avoid; margin-bottom: 20px; }
.album figure[hidden] { display: none; }
.photo-btn { position: relative; display: block; width: 100%; padding: 5px; border: 0; border-radius: 26px; overflow: hidden; background: var(--gold-btn); cursor: zoom-in; box-shadow: var(--soft); }
.photo-btn img { width: 100%; height: auto; border-radius: 21px; transition: transform .6s; }
.photo-btn:hover img { transform: scale(1.04); }
.photo-btn figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 5px 13px; border-radius: 14px; background: rgba(8, 22, 47, .82); color: var(--gold-100); font-weight: 700; font-size: .92rem; text-align: left; }
.album-more { display: flex; margin: 8px auto 0; }
.album-more[hidden] { display: none; }
.album-empty { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.album-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 4 / 5; padding: 16px; text-align: center; border: 1px solid var(--line-gold); border-radius: 999px 999px 28px 28px; background: linear-gradient(180deg, rgba(233, 182, 64, .1), rgba(233, 182, 64, .02)); }
.album-slot .ico { width: 42px; height: 42px; color: var(--gold-300); }
.album-slot b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--gold-200); line-height: 1.15; }
.album-slot small { color: var(--on-dark-soft); }

/* Новости */
.note { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 1px solid rgba(233, 182, 64, .55); border-radius: 999px; background: #fff; font-weight: 800; color: var(--ink-soft); }
.note .ico { color: var(--gold-500); fill: currentColor; stroke: none; }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story { overflow: hidden; background: #fff; border: 1px solid rgba(233, 182, 64, .55); border-radius: 28px; box-shadow: 0 22px 50px rgba(18, 34, 74, .12); }
.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; color: var(--ink); cursor: pointer; }
.story-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-800); }
.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% 22%; }
.story-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(8, 22, 47, .85); color: var(--gold-200); font-weight: 800; font-size: .88rem; }
.story-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 24px; flex: 1; }
.story-body time { font-weight: 800; font-size: .85rem; letter-spacing: .06em; color: var(--gold-600); }
.story-title { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--ink); }
.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: #8a5a0a; }
@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: 330px; }
  .story:first-child:not(:only-child) .story-body { flex: 1; justify-content: center; padding: 34px; }
  .story:first-child:not(:only-child) .story-title { font-size: 2.2rem; }
}
.story:only-child { max-width: 560px; }
.news-dialog { width: min(780px, calc(100% - 24px)); max-height: 90vh; padding: 0; border: 1px solid var(--gold-400); border-radius: 28px; background: var(--ivory); color: var(--ink); overflow: auto; }
.news-dialog::backdrop { background: rgba(5, 13, 32, .78); }
.nd-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold-400); border-radius: 50%; background: var(--navy-900); color: var(--gold-200); cursor: pointer; }
.nd-stage { position: relative; background: #050d20; }
.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: 1px solid var(--gold-400); border-radius: 50%; background: rgba(8, 22, 47, .85); color: var(--gold-200); cursor: pointer; }
.nd-prev { left: 12px; }
.nd-next { right: 12px; }
.nd-counter { position: absolute; left: 12px; bottom: 12px; display: none; padding: 3px 12px; border-radius: 999px; background: rgba(8, 22, 47, .85); color: var(--gold-200); 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(--ivory-2); }
.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-500); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 24px 28px 34px; }
.nd-gallery[hidden] + .nd-body { padding-top: 58px; }
.nd-body time { font-weight: 800; color: var(--gold-600); }
.nd-body h3 { color: var(--ink); font-size: 1.9rem; margin: .25em 0 .5em; }
#ndText { overflow-wrap: anywhere; }

/* Документы и вакансии */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 42px; align-items: start; }
.doc-sets { display: grid; gap: 18px; margin-top: 30px; }
.doc-set { padding: 24px 28px; border: 1px solid var(--line-gold); border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }
.doc-set p, .doc-set ul { margin-top: 10px; }
.doc-set li + li { margin-top: 12px; }
.doc-set li a { display: inline-flex; gap: 10px; align-items: flex-start; font-weight: 800; color: var(--on-dark); text-decoration-color: rgba(245, 209, 108, .6); }
.doc-set li a:hover { color: var(--gold-200); }
.doc-set li a .ico { margin-top: .22em; color: var(--gold-300); }
.doc-set small { display: block; margin-left: 2.1em; color: var(--on-dark-soft); }
.jobs { padding: 30px 32px; border-radius: 30px; background: var(--ivory); color: var(--ink); box-shadow: 0 0 0 1px var(--gold-400), inset 0 0 0 5px var(--ivory), inset 0 0 0 6px rgba(233, 182, 64, .5), var(--soft); }
.jobs h3 { color: var(--ink); font-size: 1.9rem; }
.jobs .muted { margin-top: 10px; color: var(--ink-soft); }
.job { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(169, 118, 22, .35); }
.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: #8a5a0a; font-weight: 800; }

/* Контакты */
.contact { padding-bottom: 44px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.contact-phone { display: block; margin-top: 18px; font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); text-decoration: none; }
.contact-phone + .contact-phone { margin-top: 2px; }
.contact-list { display: grid; gap: 14px; margin-top: 20px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.contact-list .ico { margin-top: .22em; color: var(--gold-300); }
.social-label { margin-top: 28px; font-weight: 800; color: var(--on-dark-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 20px; border: 1px solid var(--line-gold); border-radius: 999px; background: rgba(8, 22, 47, .5); color: var(--gold-200); font-weight: 800; text-decoration: none; }
.socials a:hover { background: rgba(233, 182, 64, .16); }
.form { padding: 30px 32px; border-radius: 32px; background: var(--ivory); color: var(--ink); box-shadow: 0 0 0 1px var(--gold-400), inset 0 0 0 5px var(--ivory), inset 0 0 0 6px rgba(233, 182, 64, .5), var(--soft); }
.form h3 { color: var(--ink); font-size: 2rem; }
.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 16px; border: 1.5px solid rgba(169, 118, 22, .45); border-radius: 16px; background: #fff; font: inherit; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold-500); outline: 0; box-shadow: 0 0 0 4px rgba(233, 182, 64, .25); }
.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(--gold-500); }
.form .btn { width: 100%; margin-top: 18px; }
.hp-field { position: absolute; left: -9999px; }
.form-note { display: none; margin-top: 14px; font-weight: 800; color: #2d6a3a; }
.form-note.show { display: block; }
.form-note.error { color: #a8362b; }
.map { display: block; width: 100%; height: 340px; margin-top: 48px; border: 0; border-radius: 30px; box-shadow: 0 0 0 2px var(--gold-400), 0 0 0 8px rgba(8, 22, 47, .8), 0 0 0 9px rgba(233, 182, 64, .5); background: var(--navy-800); }
.foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-gold); color: var(--on-dark-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: 70; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(5, 13, 32, .95); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; max-width: min(1000px, 78vw); border-radius: 12px; box-shadow: 0 0 0 2px var(--gold-400); }
.lightbox figcaption { margin-top: 12px; color: var(--gold-100); text-align: center; font-weight: 700; }
.lb-close, .lb-nav { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--gold-400); border-radius: 50%; background: var(--navy-900); color: var(--gold-200); cursor: pointer; }
.lb-close { position: absolute; top: 16px; right: 16px; }

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

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1180px) {
  .bar-call span { display: none; }
  .bar-call { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 1040px) {
  .bar-menu { display: grid; }
  .bar-nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: rgba(8, 22, 47, .96); border: 1px solid var(--line-gold); border-radius: 24px; box-shadow: var(--soft); }
  .bar-nav.open { display: flex; }
  .bar-nav a { padding: 13px 16px; font-size: 1.05rem; }
  .bar-nav a::after { left: 16px; right: auto; width: 34px; bottom: 7px; }
  .hero { display: block; padding-bottom: 100px; }
  .hero-grid, .about-grid, .docs-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 10px; }
  .hero-logo { order: -1; width: min(86%, 440px, 48svh); }
  .hero-text { text-align: center; }
  .hero-text .kicker { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-facts, .hero-actions { justify-content: center; }
  .burst { left: 50%; top: 24%; width: 150vw; }
  .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); }
  .sec { padding: 72px 0; }
  .bar { gap: 6px; padding: 0 14px; }
  .bar-brand { font-size: 1.2rem; gap: 8px; }
  .bar-brand img { width: 38px; height: 38px; }
  .hero { padding-top: calc(var(--bar-h) + 14px); padding-bottom: 80px; }
  .hero-logo { width: min(80%, 40svh); }
  .hero-text .kicker { display: none; }
  h1 { font-size: 2.35rem; margin-top: 2px; }
  .hero-name { margin-bottom: 8px; font-size: .78rem; }
  .hero-lead { margin-top: 12px; font-size: 1rem; }
  .hero-facts { margin-top: 14px; gap: 6px; }
  .hero-facts li { padding: 4px 12px; font-size: .88rem; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .btn { width: 100%; min-height: 50px; }
  .hero-more { display: none; }
  .info-card { padding: 24px 20px; }
  .info-card dl { grid-template-columns: minmax(0, 1fr); }
  .coins { gap: 14px; }
  .director { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 18px; justify-items: start; }
  .director-photo { width: 150px; }
  .steps { gap: 8px; }
  .step-plate { height: calc(96px + var(--s) * 40px); border-radius: 14px 14px 6px 6px; }
  .step-plate strong { font-size: 2.4rem; }
  .step-plate small { font-size: .62rem; letter-spacing: .06em; }
  .step-top { min-height: 40px; gap: 3px; }
  .step-top i { width: 14px; height: 14px; }
  .step-crown { width: 38px; height: 38px; }
  .extra { flex-direction: column; text-align: center; padding: 28px 22px; }
  .extra-body a { justify-content: center; }
  .album-empty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .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 { padding: 24px 20px; }
  .map { height: 260px; border-radius: 24px; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox img { max-width: 72vw; }
}
