/* «TOPKID» (Талгар) — «TOP KID значит лучший».
   Палитра — из логотипа заказчика: сочный жёлтый звезды и букв, толстый чёрный контур, белый центр звезды и семь цветов надписи
   «детский сад» (красный, синий, жёлтый, зелёный, малиновый, голубой, оранжевый). Стиль — «чемпионский»: жёсткие чёрные контуры
   и тени, лучи-софиты, табло, аллея звёзд, сцена. Шрифты свои (assets/fonts): Exo 2 (заголовки, курсив 900) и Overpass (текст);
   казахские буквы есть в обоих. */

@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../assets/fonts/exo2-normal-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: "Exo 2"; font-style: italic; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/exo2-italic-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: "Overpass"; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/overpass-normal-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: "Exo 2"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../assets/fonts/exo2-normal-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Exo 2"; font-style: italic; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/exo2-italic-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Overpass"; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/overpass-normal-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("../assets/fonts/exo2-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Exo 2"; font-style: italic; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/exo2-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass"; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/overpass-normal-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 {
  --yellow: #fff200; --yellow-d: #e6c800; --yellow-l: #fffbd0; --ink: #111; --text: #1c1c1c; --muted: #555; --line: rgba(17, 17, 17, .14); --card: #fff;
  --red: #ff1a1a; --blue: #1f2bff; --gold: #fdb500; --green: #00a321; --pink: #fd00bd; --cyan: #009aff; --orange: #fe4800;
  --rainbow: linear-gradient(90deg, #ff1a1a, #fe4800, #fdb500, #00a321, #009aff, #1f2bff, #fd00bd);
  --teal: var(--blue); --teal-d: #1520b8; --teal-dd: #0d1680; --teal-l: #eef0ff;
  --gold-d: #b98400; --gold-l: var(--yellow-l); --red-d: #b30000; --sand: #f5f5f0; --amber: var(--orange); --cocoa: var(--ink); --head: var(--ink); --night: #111;
  --display: "Exo 2", system-ui, sans-serif;
  --body: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 76px;
  --ease-pop: cubic-bezier(.3, 1.6, .5, 1);
  --pop: 5px 5px 0 var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --halftone: radial-gradient(circle, rgba(17, 17, 17, .14) 1.6px, transparent 2px) 0 0 / 14px 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 500 1.06rem/1.65 var(--body); overflow-x: hidden; }
img, svg { 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(--blue); }
button { font: inherit; color: inherit; }
b, strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 90; padding: 10px 16px; border-radius: 10px; background: #fff; font-weight: 800; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h2 { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem); line-height: 1; color: var(--ink); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.2; }
.lede { max-width: 62ch; font-size: 1.12rem; color: var(--muted); text-wrap: pretty; }
.head { display: grid; gap: 14px; margin-bottom: 50px; }
.head-center { justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 4px 14px; border: 3px solid var(--ink); border-radius: 8px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-family: var(--display); font-style: italic; font-weight: 900; font-size: .92rem; text-transform: uppercase; color: var(--ink); rotate: -2deg; }
.kicker::before { content: "★"; }
.hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: .98rem; color: var(--muted); text-align: center; }
.hint .ico, .hero-hint .ico { color: var(--pink); }

.section, .foot, .hero { overflow-x: clip; }
.section { position: relative; padding: clamp(84px, 8vw, 124px) 0; }
.sec-white { background: #fff; }
.sec-yellow { background: var(--halftone), var(--yellow); }
.sec-walk { background: #232323; color: #fff; }
.sec-walk h2 { color: var(--yellow); } .sec-walk .lede { color: rgba(255, 255, 255, .78); }
.sec-stage { background: radial-gradient(ellipse at 50% 0, #3a3a3a, #111 70%); color: #fff; }
.sec-stage h2 { color: #fff; } .sec-stage .lede { color: rgba(255, 255, 255, .75); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 3px solid var(--ink); border-radius: 14px; cursor: pointer; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.1rem; text-transform: uppercase; text-decoration: none; box-shadow: var(--pop); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-main { background: var(--yellow); color: var(--ink) !important; }
.btn-line { background: #fff; color: var(--ink) !important; }

/* ---------- Шапка: рейтинг-звёзды прокрутки ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: #fff; border-bottom: 4px solid var(--ink); }
.top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 5px; background: var(--rainbow); }
.top-in { display: flex; align-items: center; gap: 14px; width: min(1280px, 100% - 32px); height: var(--bar-h); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand img { width: 52px; height: 52px; transition: transform .6s var(--ease-pop); }
.brand:hover img { transform: rotate(72deg) scale(1.1); }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.7rem; color: var(--yellow); -webkit-text-stroke: 1.6px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.brand-text small { margin-top: 2px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.menu { display: flex; gap: 2px; }
.menu a { position: relative; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 800; font-size: .95rem; white-space: nowrap; text-decoration: none; transition: background .2s; }
.menu a:hover, .menu a.is-active { background: var(--yellow); }
.rating { display: flex; gap: 1px; font-size: 1.15rem; line-height: 1; }
.rating i { font-style: normal; color: #ddd; -webkit-text-stroke: 1px var(--ink); transition: color .3s, transform .4s var(--ease-pop); }
.rating i.on { color: var(--yellow); transform: scale(1.15) rotate(-10deg); }
.chips { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 3px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; font-size: .88rem; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.chip-call { background: var(--yellow); color: var(--ink) !important; }
.chip-menu { display: none; width: 42px; padding: 0; justify-content: center; }

/* ---------- Первый экран: лучи-софиты, полутон, конфетти, логотип в карточке, бегущая строка ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--bar-h) + 60px) 0 120px; background: var(--yellow); }
.burst { position: absolute; left: 72%; top: 46%; width: 220vmax; aspect-ratio: 1; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .55) 0 7.5deg, transparent 7.5deg 15deg); pointer-events: none; }
.dots { position: absolute; inset: 0; background: var(--halftone); -webkit-mask: linear-gradient(90deg, #000, transparent 60%); mask: linear-gradient(90deg, #000, transparent 60%); pointer-events: none; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; width: 14px; height: 8px; border: 2px solid var(--ink); background: var(--c); rotate: calc(var(--k) * 37deg); }
.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero-text { display: grid; gap: 16px; justify-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: .92rem; box-shadow: 3px 3px 0 var(--ink); }
.eyebrow .ico { color: var(--red); }
.hero-title { display: grid; gap: 6px; line-height: .9; }
.ht-word { display: flex; font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(4rem, 1.8rem + 8vw, 9rem); letter-spacing: -.02em; }
.ht-l { display: inline-block; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); cursor: pointer; transform-origin: 50% 100%; }
.ht-kicker { display: flex; font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); }
.ht-kicker span { display: inline-block; color: var(--c); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.hero-tag { display: inline-block; padding: 4px 14px; background: var(--ink); color: var(--yellow); font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(1.2rem, .9rem + 1vw, 1.7rem); line-height: 1.25; rotate: -1.5deg; }
.hero-lead { max-width: 52ch; font-size: 1.1rem; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.hero-actions .btn-main { background: #fff; }
.hero-logo { position: relative; display: grid; justify-items: center; gap: 14px; }
.logo-card { position: relative; width: min(100%, 560px); padding: 30px 26px 22px; border: 5px solid var(--ink); border-radius: 28px; background: #fff; box-shadow: 10px 10px 0 var(--ink); rotate: 2deg; }
.tk-logo { width: 100%; height: auto; overflow: visible; }
.tk-logo .tk-star, .tk-logo .tk-l, .tk-logo .tk-s { cursor: pointer; }
.tk-star, .tk-l, .tk-s { transform-box: fill-box; }
.tk-star { transform-origin: 50% 50%; }
.tk-star-in { transform-box: fill-box; transform-origin: 52% 50%; }
.tk-l, .tk-s { transform-origin: 50% 100%; }
.rosette { position: absolute; left: -10px; top: -26px; z-index: 2; display: grid; place-items: center; width: 110px; height: 110px; border: 4px solid var(--ink); border-radius: 50%; background: radial-gradient(circle, #fff 0 46%, transparent 47%), repeating-conic-gradient(var(--red) 0 15deg, var(--yellow) 15deg 30deg); box-shadow: 4px 4px 0 var(--ink); }
.rosette::after { content: ""; position: absolute; left: 30px; top: 96px; width: 50px; height: 50px; z-index: -1; background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50%); clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 80%, 50% 100%, 25% 80%, 0 100%); }
.rosette b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 2rem; color: var(--ink); }
.hero-hint { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: .9rem; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; overflow: hidden; border-top: 4px solid var(--ink); background: var(--ink); }
.ticker-in { display: flex; width: max-content; gap: 34px; padding: 12px 0; }
.ticker span { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.3rem; color: var(--c); white-space: nowrap; text-transform: uppercase; }
.note-pop { position: fixed; left: 0; top: 0; z-index: 76; font: italic 900 2rem/1 var(--display); color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; pointer-events: none; white-space: nowrap; }
.bit { position: fixed; left: 0; top: 0; z-index: 74; border: 2px solid var(--ink); border-radius: 2px; pointer-events: none; }
.fly-star, .rain-item { position: fixed; left: 0; top: 0; z-index: 74; height: auto; pointer-events: none; overflow: visible; }

/* ---------- О нас: «почему мы TOP», табло ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.about-text { display: grid; gap: 16px; justify-items: start; }
.about-p { font-size: 1.1rem; text-wrap: pretty; }
.place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 18px; border: 3px solid var(--ink); border-radius: 14px; background: var(--yellow-l); font-weight: 700; box-shadow: var(--pop); }
.place .ico { color: var(--red); }
.place a { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.whytop { display: grid; gap: 16px; }
.whytop li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 5px 5px 0 var(--c); font-family: var(--display); font-weight: 800; font-size: 1.15rem; transition: transform .3s var(--ease-pop); }
.whytop li:nth-child(even) { margin-left: 30px; }
.whytop li:hover { transform: translateX(8px) rotate(-1deg); }
.wt-num { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 50%; background: var(--c); color: #fff; font-style: italic; font-weight: 900; font-size: 1.4rem; -webkit-text-stroke: 1px var(--ink); }
.snaps { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.snap { position: relative; overflow: hidden; border: 4px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: var(--shadow); rotate: calc((var(--k) - 1) * 1.5deg); }
.snap:first-child { grid-column: 1 / -1; }
.snap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.snap figcaption { padding: 8px 12px; font-family: var(--display); font-weight: 800; text-align: center; }
.snaps-1 { grid-template-columns: 1fr; }
.board-wrap { margin-top: clamp(70px, 8vw, 110px); }
.board-title { margin-bottom: 22px; text-align: center; font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); text-transform: uppercase; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; width: 100%; padding: 22px; border: 5px solid var(--ink); border-radius: 22px; background: #1a1a1a; box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px var(--ink); cursor: pointer; }
.bd-wide { grid-column: span 2; }
.bd-cell { display: grid; justify-items: center; gap: 10px; padding: 14px 8px; border-radius: 12px; background: #262626; }
.bd-val { display: flex; gap: 3px; perspective: 400px; }
.bd-val i { position: relative; display: grid; place-items: center; min-width: 30px; height: 50px; padding: 0 3px; border-radius: 6px; background: linear-gradient(180deg, #3a3a3a 0 49%, #111 49% 51%, #2e2e2e 51%); font-family: var(--display); font-style: normal; font-weight: 900; font-size: 1.9rem; color: var(--yellow); transform-origin: 50% 50%; }
.bd-label { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); text-align: center; }

/* ---------- Группы: аллея звёзд ---------- */
.walk { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 4px solid #000; }
.tile { position: relative; display: grid; justify-items: center; gap: 6px; width: 100%; height: 100%; padding: 26px 18px 24px; border: 0; border-right: 3px solid #0e0e0e; border-bottom: 3px solid #0e0e0e; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .06) 2px, transparent 3px) 0 0 / 22px 22px, radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .05) 1.5px, transparent 2px) 0 0 / 30px 30px, #3a3a3a; color: #fff; text-align: center; cursor: pointer; transition: background-color .4s; }
.tile:hover { background-color: #444; }
.tile-star { position: relative; display: grid; place-items: center; width: 150px; transition: transform .5s var(--ease-pop), filter .4s; }
.ts-svg { width: 100%; height: auto; overflow: visible; }
.tile-ico { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; translate: -50% -44%; color: var(--ink); }
.tile-ico svg { width: 100%; height: 100%; }
.tile-name { font-family: var(--display); font-weight: 800; font-size: 1.12rem; line-height: 1.25; color: var(--yellow); }
.tile-age { padding: 1px 12px; border: 2px solid var(--c); border-radius: 999px; font-weight: 800; font-size: .85rem; color: #fff; }
.tile-text { font-size: .93rem; color: rgba(255, 255, 255, .72); }
.tile-pick { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .86rem; color: #fff; text-decoration: underline 3px var(--c); text-underline-offset: 4px; }
.tile:hover .tile-star { transform: rotate(-12deg) scale(1.06); }
.tile.lit .tile-star { filter: drop-shadow(0 0 14px var(--c)) drop-shadow(0 0 30px var(--c)); }
.tile.on { background-color: #4a4a4a; box-shadow: inset 0 0 0 4px var(--c); }

/* ---------- Кружки: сцена с прожекторами ---------- */
.stage { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; padding-bottom: 30px; }
.stage::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: 0; height: 40px; border: 4px solid #000; border-radius: 50% 50% 0 0 / 30px 30px 0 0; background: linear-gradient(180deg, #8a5a2b, #5a3714); z-index: 0; }
.club { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; text-align: center; }
.spot { position: relative; width: 90px; padding: 0; border: 0; background: none; cursor: pointer; }
.spot-svg { width: 100%; height: auto; overflow: visible; }
.sp-head { transform-box: fill-box; transform-origin: 20% 60%; rotate: 70deg; transition: rotate .6s var(--ease-pop); }
.beam { position: absolute; left: 50%; top: 60px; width: 320px; height: 300px; translate: -50% 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff) 0, transparent 85%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); opacity: .18; pointer-events: none; transition: opacity .4s; mix-blend-mode: screen; }
.act.on .beam { opacity: .7; }
.act-card { position: relative; display: grid; justify-items: center; gap: 8px; width: 100%; margin-top: 60px; padding: 26px 22px 26px; border: 4px solid var(--ink); border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 8px 8px 0 var(--c); transition: transform .35s var(--ease-pop); }
.act.on .act-card { transform: translateY(-8px); }
.act-ico { display: grid; place-items: center; width: 74px; height: 74px; margin-top: -60px; border: 4px solid var(--ink); border-radius: 50%; background: var(--c); color: #fff; }
.act-ico svg { width: 44px; height: 44px; stroke-width: 3.6; }
.club-title { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.6rem; line-height: 1.1; text-transform: uppercase; }
.club-badge { padding: 1px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); font-weight: 800; font-size: .82rem; }
.club-badge.is-paid { background: #fff; }
.club-meta { font-size: .9rem; font-weight: 700; color: var(--blue); }
.club-text { color: var(--muted); }
.club-thumb img { width: 100%; max-height: 140px; border-radius: 12px; object-fit: cover; }
.club-open { padding: 0; border: 0; background: none; cursor: pointer; }
.story-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .93rem; color: var(--blue); }

/* ---------- Руководство: капитан команды ---------- */
.leaders { display: grid; gap: 40px; max-width: 900px; margin-inline: auto; }
.leader { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; align-items: center; padding: 34px; border: 5px solid var(--ink); border-radius: 26px; background: #fff; box-shadow: 10px 10px 0 var(--ink); }
.captain { position: relative; width: 240px; aspect-ratio: 1; }
.captain img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border: 5px solid var(--ink); border-radius: 50%; }
.captain .avatar { width: 100%; height: 100%; }
.captain-star { position: absolute; right: -18px; top: -18px; z-index: 2; width: 90px; }
.cs-svg { width: 100%; height: auto; }
.leader-body { display: grid; gap: 10px; justify-items: start; }
.leader-role { padding: 3px 14px; border: 3px solid var(--ink); border-radius: 8px; background: var(--yellow); font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink); }
.leader-body h3 { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.leader-label { margin-top: 6px; font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.leader-edu { display: grid; gap: 8px; }
.leader-edu li { position: relative; padding-left: 22px; font-weight: 700; }
.leader-edu li::before { content: "★"; position: absolute; left: 0; color: var(--gold); }
.leader-about { color: var(--muted); }
.leader-years { display: flex; align-items: baseline; gap: 8px; } .leader-years strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 2.6rem; }

/* ---------- Видео ---------- */
.video-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.video-grid .head { margin-bottom: 0; }
.video-note { font-size: .92rem; color: var(--muted); }
.tv { position: relative; padding: 14px; border-radius: 30px; background: var(--ink); box-shadow: 0 0 0 4px var(--teal-dd), 0 30px 60px rgba(138, 35, 22, .25); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--teal-dd); }
.tv-screen img { width: 100%; height: 100%; object-fit: cover; }
.tv-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(8, 74, 82, .55)); pointer-events: none; }
.tv-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-screen.is-on::after { display: none; }
.tv-play { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.tv-sun { position: relative; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 40% 36%, #fff6c2, var(--gold) 60%, var(--orange)); box-shadow: 0 0 0 10px rgba(245, 179, 27, .3); transition: transform .4s var(--ease-pop); }
.tv-play:hover .tv-sun { transform: scale(1.12); }
.tv-tri { position: relative; width: 36px; margin-left: 6px; color: var(--red-d); }
.tv-label { padding: 6px 18px; border-radius: 12px; background: rgba(8, 74, 82, .75); font-weight: 800; }

/* ---------- Фото ---------- */
.gallery { padding-top: 110px; }
.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(--gold-d); border-radius: 999px; background: var(--card); font-weight: 800; font-size: .88rem; color: var(--text); cursor: pointer; }
.tab.is-on { background: var(--gold); color: var(--cocoa); }
.hall { position: relative; }
.album { display: flex; align-items: center; gap: 28px; 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 var(--ease-pop); }
.album figure:nth-child(odd) { transform: rotate(-1.5deg); } .album figure:nth-child(even) { transform: rotate(1.5deg) translateY(12px); }
.album figure:hover { transform: translateY(-8px) rotate(0); }
.album figure[hidden] { display: none; }
.photo-btn { position: relative; display: block; padding: 0; border: 10px solid #fffdf6; border-bottom-width: 44px; border-radius: 12px; background: #fffdf6; cursor: zoom-in; overflow: hidden; box-shadow: 0 24px 46px rgba(90, 46, 10, .2), 0 0 0 3px rgba(240, 164, 0, .5); }
.photo-btn img { display: block; width: auto; height: clamp(260px, 50vh, 460px); max-width: min(84vw, 640px); object-fit: cover; pointer-events: none; }
.photo-btn figcaption { position: absolute; left: 0; right: 0; bottom: -36px; padding: 0 10px; color: var(--cocoa); font-family: var(--display); font-size: 1.1rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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(--gold); color: var(--cocoa); cursor: pointer; box-shadow: 0 10px 24px rgba(224, 138, 0, .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(--muted); font-weight: 600; }

/* ---------- Новости ---------- */
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.story { overflow: hidden; border-radius: 30px; background: var(--card); box-shadow: 0 18px 44px rgba(90, 46, 10, .12); transition: transform .35s var(--ease-pop), background-color .9s; }
.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: #fff3cf; }
.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-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 700; font-size: .82rem; }
.story-body { display: grid; gap: 6px; padding: 18px 24px 26px; }
.story-body time { font-size: .84rem; font-weight: 800; color: var(--amber); }
.story-title { font-weight: 800; font-size: 1.25rem; line-height: 1.25; color: var(--head); }
.story-excerpt { color: var(--muted); font-size: .98rem; }

/* ---------- Документы и вакансии ---------- */
.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: 28px; background: var(--card); box-shadow: 0 14px 34px rgba(90, 46, 10, .1); }
.jobs { background: linear-gradient(160deg, #1c2d72, #0c1846); color: #fff4da; }
.doc-set h3, .jobs h3 { margin-bottom: 12px; color: var(--head); }
.jobs h3 { color: #ffe27a; }
.doc-set li { display: grid; gap: 2px; padding: 10px 0; border-top: 2px dotted var(--line); }
.doc-set li:first-child { border-top: 0; }
.doc-set a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--text); }
.doc-set a .ico { color: var(--gold-d); }
.doc-set small { margin-left: 32px; color: var(--muted); font-weight: 600; }
.job { margin-top: 14px; padding-top: 14px; border-top: 2px dashed rgba(255, 255, 255, .3); }
.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; font-weight: 800; color: var(--gold) !important; }

/* ---------- Всплывающее, просмотр фото, диалоги ---------- */
.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: #fffdf6; color: #3b2408; font-weight: 600; box-shadow: 0 18px 44px rgba(90, 46, 10, .3), inset 0 -5px 0 var(--gold); translate: -50% 0; animation: toast-in .5s var(--ease-pop); }
.toast[hidden] { display: none; }
.toast b { color: #b86a00; }
.toast .t-coin { width: 30px; height: 30px; flex: none; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fff6c0, #ffd23a 50%, #d98a00); box-shadow: 0 0 12px rgba(255, 198, 26, .8); }
@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: 30px; background: #fffdf6; color: #3b2408; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); }
.news-dialog::backdrop { background: rgba(12, 24, 70, .75); }
.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(--gold); color: var(--cocoa); cursor: pointer; }
.nd-gallery { position: relative; background: var(--night); }
.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, .92); color: #3b2408; 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: 700; 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: #b86a00; }
.nd-body h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.3; color: #8a4b0b; margin: .2em 0 .5em; }
#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(12, 24, 70, .95); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 80vh; border-radius: 16px; }
.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: #3b2408; cursor: pointer; }
.lb-close { position: absolute; top: 18px; right: 18px; }


/* ---------- Общие блоки ---------- */
.tv { background: var(--ink); box-shadow: var(--shadow); }
.tab { border: 3px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; }
.tab.is-on { background: var(--yellow); }
.photo-btn { border-color: #fff; border-radius: 12px; box-shadow: var(--shadow); outline: 3px solid var(--ink); }
.photo-btn figcaption { color: var(--ink); font-family: var(--display); font-weight: 800; }
.hall-nav { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.story, .doc-set, .jobs { border: 4px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow); }
.story-title { font-family: var(--display); font-weight: 900; font-size: 1.25rem; color: var(--ink); }
.story-img { background: var(--yellow-l); }
.story-body time { color: var(--pink); }
.doc-set h3 { color: var(--ink); }
.doc-set a .ico { color: var(--blue); }
.jobs { background: var(--ink); color: #fff; }
.jobs h3 { color: var(--yellow); }
.job a { color: var(--yellow) !important; }
.toast { border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.toast b { color: var(--pink); }
.toast .t-ico { width: 30px; height: 30px; flex: none; background: var(--yellow); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.news-dialog { border: 4px solid var(--ink); }
.news-dialog::backdrop { background: rgba(17, 17, 17, .75); }
.nd-body h3 { font-family: var(--display); font-weight: 900; color: var(--ink); }
.nd-close { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); }
.lightbox { background: rgba(17, 17, 17, .95); }

/* ---------- Контакты ---------- */
.contact-grid { position: relative; z-index: 2; 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-phone-row { display: flex; align-items: center; gap: 10px; }
.contact-phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); color: var(--ink) !important; text-decoration: none; }
.contact-phone .ico { width: 50px; height: 50px; padding: 12px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.contact-wa { display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 12px; background: #25d366; color: #fff; box-shadow: 3px 3px 0 var(--ink); transition: transform .2s; }
.contact-wa:hover { transform: rotate(-8deg); }
.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; }
.contact-list a { font-weight: 800; color: var(--ink); }
.social-label { margin-top: 6px; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; }
.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: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink) !important; font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.socials a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.map-box { width: 100%; margin-top: 8px; overflow: hidden; border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.map-box iframe { display: block; width: 100%; height: 260px; border: 0; }
.form { position: relative; padding: 40px 32px 32px; border: 5px solid var(--ink); border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.form-star { position: absolute; right: -26px; top: -30px; width: 86px; rotate: 14deg; }
.fs-svg { width: 100%; height: auto; }
.form h3 { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.9rem; text-transform: uppercase; }
.form label { display: block; margin: 16px 0 6px; font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; font: 600 1.05rem var(--body); color: var(--ink); transition: box-shadow .15s, background .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='%23111' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 36px; }
.form select.flash { animation: flash 1s ease; }
@keyframes flash { 30% { background-color: var(--yellow); } }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; background-color: var(--yellow-l); box-shadow: 4px 4px 0 var(--ink); }
.consent { position: relative; display: flex !important; gap: 10px; align-items: flex-start; margin-top: 18px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .95rem !important; font-weight: 600 !important; color: var(--ink) !important; }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--ink); }
.form .btn { width: 100%; margin-top: 22px; }
.form-note { margin-top: 12px; font-weight: 800; color: var(--green); opacity: 0; transition: opacity .3s; }
.form-note.show { opacity: 1; }
.form-note.error { color: #b3261e; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Подвал ---------- */
.foot { position: relative; background: var(--ink); color: #fff; }
.foot-stripe { display: grid; grid-template-columns: repeat(7, 1fr); height: 12px; }
.foot-stripe i { background: var(--c); }
.foot-in-top { display: grid; gap: 16px; justify-items: center; padding: 40px 0 34px; text-align: center; }
.foot-logo { width: 220px; height: auto; padding: 16px; border: 4px solid var(--yellow); border-radius: 24px; background: #fff; }
.foot-bye { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); color: var(--yellow); text-transform: uppercase; }
.eggs { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 10px 20px; border: 3px solid var(--yellow); border-radius: 14px; font-weight: 700; font-size: .95rem; }
.eggs-dots { display: inline-flex; gap: 6px; }
.eggs-dots i { display: block; width: 24px; opacity: .3; filter: grayscale(1); transition: opacity .4s, filter .4s, transform .5s var(--ease-pop); }
.eggs-dots i svg { width: 100%; height: auto; }
.eggs-dots i.on { opacity: 1; filter: none; transform: scale(1.25) rotate(-18deg); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding: 20px 0 30px; border-top: 2px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .8); font-size: .93rem; }
.foot-in.wrap { width: min(1180px, 100% - 40px); }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow) !important; font-weight: 800; text-decoration: none; }

/* ---------- Спрятанные звёзды, салют, шоу ---------- */
.hid.hstar { position: absolute; z-index: 4; width: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.hs-svg { width: 100%; height: auto; overflow: visible; }
.sky-layer { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.show-beams { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.show-beams i { position: absolute; bottom: -10%; left: var(--x); width: 160px; height: 130vh; background: linear-gradient(0deg, var(--c), transparent 90%); clip-path: polygon(45% 100%, 55% 100%, 100% 0, 0 0); opacity: .45; mix-blend-mode: multiply; transform-origin: 50% 100%; }

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(30px) rotate(-1.5deg); transition: opacity .6s ease, transform .7s var(--ease-pop); transition-delay: var(--delay, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  @keyframes spin { to { rotate: 360deg; } }

  .burst { animation: spin 50s linear infinite; }
  .confetti i { animation: conf 4s calc(var(--k) * -.4s) ease-in-out infinite alternate; }
  @keyframes conf { to { transform: translateY(-20px) rotate(180deg); } }
  .ticker-in { animation: ticker 28s linear infinite; }
  @keyframes ticker { to { transform: translateX(-50%); } }
  .js .eyebrow, .js .hero-tag, .js .hero-lead, .js .hero-actions, .js .ht-kicker, .js .hero-hint { animation: rise .7s var(--ease-pop) both; }
  .js .eyebrow { animation-delay: .1s; } .js .ht-kicker { animation-delay: .9s; } .js .hero-tag { animation-delay: 1.05s; } .js .hero-lead { animation-delay: 1.2s; } .js .hero-actions { animation-delay: 1.35s; } .js .hero-hint { animation-delay: 2.6s; }
  .js .ht-l { animation: slam .6s calc(var(--i) * .08s + .2s) cubic-bezier(.2, 1.6, .4, 1) both, l-bounce 3.6s calc(var(--i) * .12s + 2s) ease-in-out infinite; }
  @keyframes slam { from { opacity: 0; transform: scale(3) rotate(-12deg); } }
  @keyframes l-bounce { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-14px) rotate(-6deg); } 94% { transform: translateY(2px) scale(1.05, .95); } }
  .ht-l.hop { animation: l-hop .5s var(--ease-pop); }
  @keyframes l-hop { 40% { transform: translateY(-36px) rotate(-14deg) scale(1.15); } }
  .rosette { animation: rosette 1s 1.2s var(--ease-pop) both, wiggle 3s 2.4s ease-in-out infinite; }
  @keyframes rosette { from { transform: scale(0) rotate(-180deg); } }
  @keyframes wiggle { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; } }
  .logo-card { animation: card-in .8s .1s var(--ease-pop) both; }
  @keyframes card-in { from { opacity: 0; transform: translateY(60px) rotate(-8deg) scale(.8); } }

  /* логотип: звезда влетает с вращением, буквы «шлёпаются», надпись прыгает радугой */
  .js .is-intro .tk-star { animation: star-in 1.1s .4s var(--ease-pop) both; }
  @keyframes star-in { from { opacity: 0; transform: translateX(-200px) rotate(-540deg) scale(.3); } }
  .js .is-intro .tk-l { animation: slam .55s calc(var(--i) * .1s + .9s) cubic-bezier(.2, 1.6, .4, 1) both; }
  .js .is-intro .tk-s { animation: s-in .5s calc(var(--i) * .07s + 1.7s) var(--ease-pop) both; }
  @keyframes s-in { from { opacity: 0; transform: translateY(30px) scale(.2); } }
  .tk-star-in { animation: twinkle 4s 2.6s ease-in-out infinite; }
  @keyframes twinkle { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-14deg) scale(1.08); } 86% { transform: rotate(10deg); } 93% { transform: rotate(-4deg); } }
  .tk-l { animation: tk-wave 5s calc(var(--i) * .1s + 3.4s) ease-in-out infinite; }
  @keyframes tk-wave { 0%, 80%, 100% { transform: none; } 86% { transform: translateY(-10px) scale(1.06); } 93% { transform: translateY(1px) scale(1, .95); } }
  .tk-s { animation: s-hop 2.6s calc(var(--i) * .12s + 3s) ease-in-out infinite; }
  @keyframes s-hop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-8px) rotate(-6deg); } }
  .tk-l.hop { animation: l-hop .5s var(--ease-pop); }
  .tk-logo.spin .tk-star-in { animation: star-spin 1.4s var(--ease-pop); }
  @keyframes star-spin { 60% { transform: rotate(400deg) scale(1.25); } 100% { transform: rotate(360deg); } }
  .tk-logo.wink .tk-smile { opacity: 1 !important; animation: smile 4s ease forwards; }
  @keyframes smile { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }

  /* табло */
  .board.flip .bd-val i { animation: flap .7s calc(var(--i) * .12s + var(--k) * .07s) ease-in-out; }
  @keyframes flap { 0% { transform: rotateX(0); } 50% { transform: rotateX(-90deg); color: #fff; } 100% { transform: rotateX(-360deg); } }

  /* аллея */
  .ts-svg { animation: tile-twinkle 4s calc(var(--i) * -.6s) ease-in-out infinite; }
  @keyframes tile-twinkle { 0%, 85%, 100% { filter: none; } 92% { filter: brightness(1.25); } }
  .tile.lit .tile-star { animation: star-pop .8s var(--ease-pop); }
  @keyframes star-pop { 40% { transform: scale(1.25) rotate(20deg); } }

  /* сцена */
  .act.on .sp-head { rotate: 52deg; }
  .beam { animation: beam 3s calc(var(--i) * -1s) ease-in-out infinite alternate; }
  @keyframes beam { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
  .act-ico svg { animation: ico-bob 2.4s calc(var(--i) * -.6s) ease-in-out infinite alternate; }
  @keyframes ico-bob { to { transform: translateY(-4px) rotate(-6deg); } }

  /* капитан */
  .captain-star { animation: wiggle 3s ease-in-out infinite; }

  .hid.hstar { animation: hs-spin 5s linear infinite; }
  @keyframes hs-spin { to { rotate: 360deg; } }
  .hid.got { animation: hs-got 1s var(--ease-pop) forwards; }
  @keyframes hs-got { 40% { transform: translateY(-60px) scale(2.2); opacity: 1; } 100% { transform: translateY(-140px) scale(.3); opacity: 0; } }
  .show-beams i { animation: sweep 1s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.3s); }
  @keyframes sweep { from { transform: rotate(-25deg); } to { transform: rotate(25deg); } }
  .rating.pulse i { animation: l-hop .5s var(--ease-pop); animation-delay: calc(var(--k) * .08s); }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1400px) { .menu a { padding: 8px 8px; font-size: .92rem; } }
@media (max-width: 1320px) {
  .chip-menu { display: inline-flex; }
  .menu { position: absolute; top: calc(var(--bar-h) + 12px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 4px; padding: 14px; border: 4px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: 8px 8px 0 var(--ink); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 16px; font-size: 1.1rem; }
}
@media (max-width: 1060px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { justify-items: center; order: 2; }
  .hero-title { justify-items: center; }
  .ht-word, .ht-kicker { justify-content: center; }
  .hero-logo { order: 1; }
  .logo-card { width: min(100%, 460px); }
  .hero-actions { justify-content: center; }
  .burst { left: 50%; top: 30%; }
  .about-grid, .contact-grid, .docs-grid, .video-grid { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .leader-body { justify-items: center; }
  .rating { display: none; }
}
@media (max-width: 760px) { .chip-call span { display: none; } .chip-call { width: 42px; padding: 0; justify-content: center; } }
@media (max-width: 640px) {
  .wrap { width: min(1180px, 100% - 32px); }
  body { font-size: 1.02rem; }
  .hero { padding-bottom: 90px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .ht-word { font-size: clamp(3rem, 1rem + 13vw, 4.6rem); }
  .ht-l { -webkit-text-stroke-width: 3px; text-shadow: 4px 4px 0 var(--ink); }
  .logo-card { padding: 22px 16px 16px; box-shadow: 6px 6px 0 var(--ink); }
  .rosette { width: 80px; height: 80px; left: -6px; top: -20px; } .rosette b { font-size: 1.5rem; } .rosette::after { left: 20px; top: 70px; width: 40px; height: 40px; }
  .whytop li:nth-child(even) { margin-left: 0; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 10px; }
  .bd-wide .bd-val i { min-width: 18px; font-size: 1.15rem; }
  .bd-val i { min-width: 22px; height: 40px; font-size: 1.4rem; }
  .walk { grid-template-columns: 1fr 1fr; }
  .tile { padding: 18px 10px; }
  .tile-star { width: 110px; } .tile-ico { width: 28px; height: 28px; }
  .tile-text { display: none; }
  .tile-name { font-size: .98rem; }
  .leader { padding: 24px 18px; box-shadow: 6px 6px 0 var(--ink); }
  .captain { width: 200px; }
  .form { padding: 38px 18px 24px; box-shadow: 6px 6px 0 var(--ink); }
  .form-star { right: -8px; width: 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(240px, 46vh, 360px); }
  .tv { padding: 8px; border-radius: 22px; } .tv-screen { border-radius: 16px; } .tv-sun { width: 86px; height: 86px; }
}
@media (max-width: 420px) {
  .top-in { gap: 6px; width: calc(100% - 20px); }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.35rem; }
  .brand-text small { font-size: .58rem; letter-spacing: .06em; }
  .chip { min-height: 38px; padding: 0 10px; }
  .chip-menu, .chip-call { width: 38px; padding: 0; }
  .chip-call span { display: none; }
}
