/* «LEGO K-A-A» — мир из кубиков. Палитра логотипа: зелёный (LEGO), синий (K), жёлтый (A), красный (A), белые перчатки и тёмный контур.
   По образу «Бақытты Шақ»: крупный заголовок по центру, нижняя док-панель, карточки с «толщиной» снизу — здесь это кубики с шипами.
   Шрифт Rubik (переменный 300–900, лежит в assets/fonts), казахские буквы есть. */

@font-face { font-family: "Rubik"; font-weight: 300 900; font-display: swap; src: url("../assets/fonts/rubik-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Rubik"; font-weight: 300 900; font-display: swap; src: url("../assets/fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 300 900; font-display: swap; src: url("../assets/fonts/rubik-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 {
  --red: #e8332a; --red-d: #a81d16; --yellow: #ffcd1a; --yellow-d: #d69a00; --blue: #1f6fd6; --blue-d: #13469a;
  --green: #4cb83a; --green-d: #2c7d20; --lime: #8fdc4f; --orange: #ff8a1e; --orange-d: #c75f00;
  --ink: #14305f; --ink-soft: #4f5f7e; --cream: #fffaf0; --sky: #d7ecff; --line: rgba(20, 48, 95, .14);
  --font: "Rubik", "Arial Rounded MT Bold", system-ui, sans-serif;
  --studs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='14'%3E%3Crect x='8' y='0' width='28' height='16' rx='5'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.04rem/1.62 var(--font); 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; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 90; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 800; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
h2 { font-weight: 900; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.lede { max-width: 62ch; font-size: 1.08rem; text-wrap: pretty; }
.head { display: grid; gap: 12px; margin-bottom: 40px; }
.head-center { justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 6px; border-radius: 999px; background: #fff; box-shadow: 0 4px 0 var(--line); font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.kicker .ico { width: 1.9em; height: 1.9em; padding: 5px; border-radius: 8px; background: var(--red); color: #fff; }
.hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; font-weight: 700; opacity: .8; }
.hint .ico, .fig-hint .ico { fill: currentColor; stroke: none; }

/* ---------- Разделы: цвет и шипы по верхнему краю ---------- */
.section, .foot { overflow-x: clip; }
.section { position: relative; padding: clamp(80px, 9vw, 120px) 0 clamp(70px, 8vw, 110px); background: var(--bg); }
.section::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: var(--bg); -webkit-mask: var(--studs) 0 0 / 44px 14px repeat-x; mask: var(--studs) 0 0 / 44px 14px repeat-x; }
.sec-cream { --bg: var(--cream); }
.sec-white { --bg: #fff; }
.sec-blue { --bg: var(--blue); color: #fff; }
.sec-yellow { --bg: var(--yellow); color: var(--ink); }
.sec-green { --bg: var(--green); color: #fff; }
.sec-blue .lede, .sec-green .lede { color: rgba(255, 255, 255, .9); }
.sec-cream .lede, .sec-white .lede { color: var(--ink-soft); }
.sec-blue .kicker .ico { background: var(--yellow); color: var(--ink); }
.sec-yellow .kicker .ico { background: var(--blue); }
.sec-green .kicker .ico { background: var(--yellow); color: var(--ink); }
.sec-blue::after, .sec-green::after, .sec-yellow::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 22px 22px, rgba(255, 255, 255, .09) 9px, transparent 10px) 0 0 / 44px 44px; }
.section > .wrap { position: relative; z-index: 1; }

/* ---------- Кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 14px; cursor: pointer; font-family: var(--font); font-weight: 800; font-size: 1.02rem; text-decoration: none; transition: transform .15s, box-shadow .15s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(5px); }
.btn-main { background: var(--red); color: #fff; box-shadow: 0 7px 0 var(--red-d), 0 14px 24px rgba(168, 29, 22, .3); }
.btn-main:active { box-shadow: 0 2px 0 var(--red-d); }
.btn-gold { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-d); }
.btn-gold:active { box-shadow: 0 1px 0 var(--yellow-d); }
.btn-line { background: #fff; color: var(--ink); box-shadow: 0 7px 0 #c9d3e3, 0 14px 24px rgba(20, 48, 95, .12); }
.btn-line:active { box-shadow: 0 2px 0 #c9d3e3; }

/* ---------- Шапка: логотип слева, телефон и язык справа ---------- */
.top { position: fixed; inset: 14px 16px auto; z-index: 50; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 5px 0 rgba(20, 48, 95, .2); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.chips { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: .92rem; text-decoration: none; white-space: nowrap; box-shadow: 0 5px 0 #c9d3e3; transition: transform .15s; }
.chip:hover { transform: translateY(-2px); }
.chip-call .ico { color: var(--red); }

/* ---------- Нижняя док-панель ---------- */
.dock { position: fixed; left: 50%; bottom: 14px; z-index: 55; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 20px); padding: 6px; translate: -50% 0; border-radius: 22px; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 8px 0 3px var(--blue), 0 20px 40px rgba(20, 48, 95, .3); }
.dock-build { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; border-right: 2px dashed var(--line); font-weight: 900; font-size: .95rem; }
.dock-stack { display: flex; flex-direction: column-reverse; gap: 2px; }
.dock-stack i { display: block; width: 22px; height: 6px; border-radius: 2px; background: #e6ebf3; transition: background .3s, transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.dock-stack i.on { transform: scaleX(1.12); }
.dock-stack i.on.db-red { background: var(--red); } .dock-stack i.on.db-yellow { background: var(--yellow); } .dock-stack i.on.db-blue { background: var(--blue); } .dock-stack i.on.db-green { background: var(--green); } .dock-stack i.on.db-orange { background: var(--orange); }
.dock-build b { min-width: 3ch; }
.dock-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.dock-links::-webkit-scrollbar { display: none; }
.dock a { display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 6px 10px; border-radius: 14px; color: var(--ink); font-size: .72rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.dock a .ico { width: 20px; height: 20px; }
.dock a:hover { background: var(--sky); }
.dock a.is-active { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-d); }

/* ---------- Башня сбоку (растёт с прокруткой) ---------- */
.side-tower { position: fixed; right: 18px; bottom: 110px; z-index: 40; display: none; width: 52px; pointer-events: none; }
.st-bricks { display: flex; flex-direction: column-reverse; }
.st-bricks span { display: block; height: 26px; opacity: 0; transform: translateY(-60px); transition: opacity .25s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.st-bricks span.on { opacity: 1; transform: none; }
.st-bricks .brick { width: 52px; height: auto; }
.st-fig { position: absolute; left: 50%; bottom: calc(var(--h, 0) * 26px + 6px); width: 34px; translate: -50% 0; transition: bottom .4s cubic-bezier(.3, 1.6, .5, 1); --torso: #ff8a1e; --legs: #13469a; }
@media (min-width: 1280px) { .side-tower { display: block; } }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: 100svh; padding: 92px 0 150px; overflow: hidden; background: linear-gradient(180deg, #bfe3ff 0%, #e4f3ff 52%, #fffaf0 100%); }
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floater { position: absolute; transform: translateY(var(--py, 0px)) rotate(var(--r)); filter: drop-shadow(0 10px 8px rgba(20, 48, 95, .15)); }
.floater .brick { width: 100%; height: auto; }
.hero-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; text-align: center; }
.logo-btn { width: min(100%, 470px); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lk-logo { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 0 rgba(20, 48, 95, .08)); }
.hero-title { max-width: 16ch; font-weight: 900; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.hero-lead { max-width: 54ch; font-size: 1.12rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 4px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink); font-weight: 700; font-size: .92rem; text-decoration: none; }
.hero-fig { position: absolute; left: max(16px, calc(50% - 640px)); bottom: 76px; z-index: 3; display: grid; justify-items: center; width: 150px; --torso: #e8332a; --legs: #13469a; }
.fig-btn { width: 112px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fig-btn .mf { width: 100%; height: auto; overflow: visible; }
.fig-stand { display: flex; align-items: flex-end; margin-top: -6px; }
.fig-stand .brick { width: 84px; height: auto; } .fig-stand .brick + .brick { width: 56px; margin-left: -6px; }
.fig-hint { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .74rem; font-weight: 700; line-height: 1.25; text-align: left; color: var(--ink-soft); }
.hat { display: none; }
.hero-fig[data-hat="hair"] .hat-hair, .hero-fig[data-hat="cap"] .hat-cap, .hero-fig[data-hat="astro"] .hat-astro, .hero-fig[data-hat="cowboy"] .hat-cowboy, .hero-fig[data-hat="captain"] .hat-captain, .hero-fig[data-hat="crown"] .hat-crown { display: block; }
.hat-on { display: block; }
.bubble { position: absolute; bottom: calc(100% - 6px); left: 60%; min-width: 90px; padding: 8px 12px; border-radius: 14px; background: #fff; font-weight: 800; font-size: .9rem; box-shadow: 0 4px 0 #c9d3e3; opacity: 0; transform: translateY(8px) scale(.8); transition: opacity .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.bubble::after { content: ""; position: absolute; left: 18px; bottom: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bubble.show { opacity: 1; transform: none; }
.hero-wall { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 64px; overflow: hidden; }
.hero-wall span { flex: none; }
.hero-wall .brick { width: auto; height: 60px; }

/* ---------- О нас ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-text { display: grid; gap: 14px; justify-items: start; }
.about-text .head { margin-bottom: 6px; }
.place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; padding: 12px 18px; border-radius: 14px; background: #fff; box-shadow: 0 6px 0 #dfe6f1; font-weight: 700; }
.place .ico { color: var(--red); }
.place a { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 800; text-decoration: none; }
.brick-frame { position: relative; justify-self: center; width: min(100%, 440px); padding: 14px; border-radius: 18px; background: var(--red); box-shadow: 0 12px 0 var(--red-d), 0 30px 50px rgba(20, 48, 95, .2); rotate: 2deg; }
.bf-studs { position: absolute; left: 22px; right: 22px; top: -12px; height: 14px; background: var(--red); -webkit-mask: var(--studs) 0 0 / 44px 14px repeat-x; mask: var(--studs) 0 0 / 44px 14px repeat-x; }
.bf-in { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; }
.bf-in img { width: 100%; height: 100%; object-fit: cover; }
.brick-frame figcaption { margin-top: 10px; text-align: center; font-weight: 900; color: #fff; }
.facts-wrap { margin-top: clamp(50px, 6vw, 84px); text-align: center; }
.facts-title { margin-bottom: 34px; font-weight: 900; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 30px 14px; }
.fact { --c: var(--red); --d: var(--red-d); position: relative; display: grid; place-items: center; align-content: center; width: calc(var(--w) * 78px + 30px); min-height: 118px; padding: 16px 12px 12px; border: 0; border-radius: 10px; background: var(--c); color: #fff; box-shadow: 0 10px 0 var(--d), inset 0 3px 0 rgba(255, 255, 255, .35); cursor: pointer; font-family: var(--font); transition: transform .15s; }
.fact:active { transform: translateY(6px); box-shadow: 0 4px 0 var(--d); }
.fact-studs { position: absolute; left: 10px; right: 10px; top: -12px; height: 14px; background: var(--c); -webkit-mask: var(--studs) 0 0 / 44px 14px repeat-x; mask: var(--studs) 0 0 / 44px 14px repeat-x; }
.fact strong, .fact b { font-weight: 900; font-size: 1.9rem; line-height: 1.05; white-space: nowrap; }
.fact small { margin-top: 4px; font-weight: 700; font-size: .82rem; opacity: .9; }
.fact-yellow { --c: var(--yellow); --d: var(--yellow-d); color: var(--ink); }
.fact-blue { --c: var(--blue); --d: var(--blue-d); }
.fact-green { --c: var(--green); --d: var(--green-d); }
.fact.pop { animation: pop .8s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pop { 0% { transform: none; } 35% { transform: translateY(-70px) rotate(-14deg); } 70% { transform: translateY(4px) rotate(0); } 85% { transform: translateY(-6px); } 100% { transform: none; } }

/* ---------- Группы: башни ---------- */
.towers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: end; }
.tower { position: relative; display: grid; justify-items: center; gap: 16px; }
.tower-btn { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tower-fig { width: 78px; margin-bottom: -6px; z-index: 2; transition: transform .3s; }
.tower-fig .mf { width: 100%; height: auto; overflow: visible; }
.tower-stack { display: flex; flex-direction: column-reverse; }
.tb { display: block; margin-top: -10px; }
.tb .brick { width: 150px; height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .12)); }
.tb.new { animation: drop .55s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes drop { from { transform: translateY(-160px); opacity: 0; } 60% { opacity: 1; } }
.tower-fig.jump { animation: jump .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes jump { 40% { transform: translateY(-46px) rotate(-10deg); } 70% { transform: translateY(0) rotate(0); } 85% { transform: translateY(-8px); } }
.tower-info { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 22px 16px 22px; border-radius: 16px; background: #fff; color: var(--ink); text-align: center; box-shadow: 0 8px 0 var(--blue-d), 0 20px 30px rgba(0, 0, 0, .15); }
.tower-info h3 { font-weight: 900; font-size: 1.3rem; }
.tower-info .motto { color: var(--ink-soft); }
.tower-info .btn { min-height: 46px; padding: 0 18px; font-size: .94rem; margin-top: 6px; }
.rocket { position: absolute; right: -6px; top: -40px; z-index: 3; width: 58px; padding: 0; border: 0; background: none; cursor: pointer; }
.rocket .rocket-svg { width: 100%; height: auto; overflow: visible; }
.rocket-pilot { position: absolute; left: 50%; top: 26%; width: 22px; translate: -50% 0; opacity: 0; }
.rocket.fly .rocket-pilot { opacity: 1; }

/* ---------- Кубик-карточка (руководитель, кружки, форма) ---------- */
.brick-card { --c: #fff; --d: #c9d3e3; position: relative; border-radius: 16px; background: var(--c); box-shadow: 0 10px 0 var(--d), 0 24px 40px rgba(20, 48, 95, .14), inset 0 3px 0 rgba(255, 255, 255, .35); }
.bc-studs { position: absolute; left: 14px; right: 14px; top: -12px; height: 14px; background: var(--c); -webkit-mask: var(--studs) 0 0 / 44px 14px repeat-x; mask: var(--studs) 0 0 / 44px 14px repeat-x; }
.bc-red { --c: var(--red); --d: var(--red-d); color: #fff; }
.bc-blue { --c: var(--blue); --d: var(--blue-d); color: #fff; }
.bc-green { --c: var(--green); --d: var(--green-d); color: #fff; }
.bc-yellow { --c: #ffe066; --d: var(--yellow-d); color: var(--ink); }
.bc-orange { --c: var(--orange); --d: var(--orange-d); color: #fff; }
.bc-white { --c: #fff; --d: #c9d3e3; color: var(--ink); }
.sec-yellow .bc-yellow { --c: #fff3b8; }

/* ---------- Руководитель ---------- */
.leaders { display: grid; gap: 34px; max-width: 880px; margin-inline: auto; }
.leader { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(22px, 4vw, 46px); align-items: center; padding: clamp(26px, 4vw, 44px); }
.leader-photo { width: 200px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .5); }
.leader-photo img, .leader-photo .avatar { width: 100%; height: 100%; object-fit: cover; }
.leader-body { display: grid; gap: 8px; justify-items: start; }
.leader-role { padding: 3px 12px; border-radius: 8px; background: rgba(255, 255, 255, .22); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.leader h3 { font-weight: 900; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); }
.leader-edu span { margin-right: 10px; font-weight: 800; opacity: .8; }
.leader-about { max-width: 60ch; opacity: .92; }
.leader-years { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.leader-years strong { font-weight: 900; font-size: 3.4rem; line-height: 1; }
.leader-years span { font-weight: 800; }

/* ---------- Кружки ---------- */
.clubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 40px 22px; padding-top: 14px; }
.club { transition: transform .15s; }
.club:hover { transform: translateY(-4px) rotate(-1deg); }
.club.snap { animation: snap .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes snap { 30% { transform: translateY(8px) scale(.97); } 70% { transform: translateY(-6px); } }
.club-open { display: grid; align-content: start; gap: 14px; width: 100%; height: 100%; padding: 26px 22px 24px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.club-media { position: relative; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 16px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.bc-white .club-media, .bc-yellow .club-media { background: var(--sky); color: var(--blue); }
.club-media .extra-ico { width: 52px; height: 52px; }
.club-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.club-body { display: grid; gap: 6px; }
.club-title { font-weight: 900; font-size: 1.4rem; line-height: 1.15; }
.club-meta { font-size: .84rem; font-weight: 800; opacity: .85; }
.club-text { opacity: .92; }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 800; font-size: .9rem; }
.story-count { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .76rem; font-weight: 800; }

/* ---------- Прятки: человечки выглядывают из-за края ---------- */
.peek { position: absolute; top: var(--top); z-index: 4; display: block; width: 64px; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.peek-r { right: -30px; rotate: -16deg; }
.peek-l { left: -30px; rotate: 16deg; }
.peek .peek-svg { width: 100%; height: auto; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); }
.peek em { position: absolute; top: -32px; left: 50%; translate: -50% 0; padding: 3px 10px; border-radius: 10px; background: #fff; color: var(--ink); font-style: normal; font-weight: 900; font-size: .8rem; white-space: nowrap; opacity: 0; }
.peek.is-found { pointer-events: none; }
.peek.is-found em { animation: found 1.2s ease forwards; }
.peek.is-found .peek-svg { animation: hide 1.2s .3s ease forwards; }
@keyframes found { 20%, 70% { opacity: 1; transform: translateY(-6px); } 100% { opacity: 0; } }
@keyframes hide { to { transform: translateX(var(--away, 60px)); opacity: 0; } }
.peek-l { --away: -60px; }

/* ---------- Фото ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 8px; }
.tab { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--sky); font-weight: 800; font-size: .9rem; color: var(--ink); cursor: pointer; box-shadow: 0 5px 0 #b8d2ef; transition: transform .12s; }
.tab:active { transform: translateY(4px); box-shadow: 0 1px 0 #b8d2ef; }
.tab.is-on { background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--blue-d); }
.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 .3s cubic-bezier(.3, 1.5, .5, 1); }
.album figure:hover { transform: translateY(-6px) rotate(-1deg); }
.album figure[hidden] { display: none; }
.photo-btn { --c: var(--red); --d: var(--red-d); position: relative; display: block; padding: 0; border: 10px solid var(--c); border-radius: 18px; background: var(--c); cursor: zoom-in; overflow: hidden; box-shadow: 0 10px 0 var(--d), 0 26px 40px rgba(20, 48, 95, .18); }
.album figure:nth-child(4n+2) .photo-btn { --c: var(--yellow); --d: var(--yellow-d); }
.album figure:nth-child(4n+3) .photo-btn { --c: var(--blue); --d: var(--blue-d); }
.album figure:nth-child(4n+4) .photo-btn { --c: var(--green); --d: var(--green-d); }
.photo-btn img { display: block; width: auto; height: clamp(260px, 52vh, 480px); max-width: min(84vw, 680px); object-fit: cover; border-radius: 8px; pointer-events: none; }
.photo-btn figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(20, 48, 95, .85)); color: #fff; font-weight: 800; text-align: left; opacity: 0; transition: opacity .3s; }
.photo-btn:hover figcaption, .photo-btn:focus-visible figcaption { opacity: 1; }
.hall-nav { position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 54px; height: 54px; translate: 0 -50%; border: 0; border-radius: 14px; background: var(--yellow); color: var(--ink); cursor: pointer; box-shadow: 0 6px 0 var(--yellow-d); }
.hall-prev { left: max(10px, calc((100vw - 1260px) / 2)); } .hall-next { right: max(10px, calc((100vw - 1260px) / 2)); }
.gallery .hall-hint { display: flex; justify-content: center; color: var(--ink-soft); font-weight: 700; }

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

/* ---------- Документы и вакансии ---------- */
.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: 24px 26px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 8px 0 #dfe6f1; }
.jobs { background: var(--blue); color: #fff; box-shadow: 0 8px 0 var(--blue-d); }
.doc-set h3, .jobs h3 { margin-bottom: 12px; }
.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: 800; text-decoration: none; color: var(--ink); }
.doc-set a .ico { color: var(--red); }
.doc-set small { margin-left: 32px; color: var(--ink-soft); font-weight: 700; }
.job { margin-top: 14px; padding-top: 14px; border-top: 2px dashed rgba(255, 255, 255, .4); }
.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(--yellow); }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-info { display: grid; gap: 14px; justify-items: start; }
.contact-phone { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); color: #fff; text-decoration: none; }
.contact-phone .ico { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-d); }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.contact-list .ico { margin-top: 3px; color: var(--yellow); }
.contact-list a { color: #fff; }
.social-label { margin-top: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; text-decoration: none; box-shadow: 0 5px 0 var(--green-d); transition: transform .15s; }
.socials a:hover { transform: translateY(-3px); }
.form { padding: 40px 34px 32px; }
.seal { position: absolute; top: -28px; right: 26px; width: 74px; height: 74px; border-radius: 50%; background: #fff; box-shadow: 0 6px 0 rgba(20, 48, 95, .2); rotate: 10deg; }
.seal img { width: 100%; height: 100%; border-radius: 50%; }
.form h3 { max-width: calc(100% - 90px); font-weight: 900; font-size: 2rem; }
.form label { display: block; margin: 16px 0 6px; font-weight: 800; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 13px 16px; border: 2px solid #d8e2ef; border-radius: 12px; background: #f7faff; font: 600 1rem var(--font); color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314305f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px; padding-right: 42px; }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 5px rgba(31, 111, 214, .16); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; margin-top: 16px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .9rem !important; font-weight: 600 !important; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.form .btn { width: 100%; margin-top: 22px; }
.form-note { margin-top: 12px; font-weight: 800; color: var(--green-d); opacity: 0; transition: opacity .3s; }
.form-note.show { opacity: 1; }
.form-note.error { color: var(--red); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Подвал: игра «построй башню» ---------- */
.foot { position: relative; background: var(--ink); color: #dce7f7; }
.playground { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 30px; align-items: end; width: min(1160px, 100% - 40px); margin-inline: auto; padding: 70px 0 0; }
.pg-head { display: grid; gap: 10px; padding-bottom: 40px; }
.pg-head h3 { font-weight: 900; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); color: #fff; }
.pg-count { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.pg-count b { font-size: 2rem; color: var(--yellow); }
.pg-reset { padding: 6px 14px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 800; cursor: pointer; }
.pg-stage { position: relative; height: 520px; }
.pg-stack { position: absolute; left: 50%; bottom: 46px; display: flex; flex-direction: column-reverse; translate: -50% 0; }
.pg-stack span { display: block; margin-top: -9px; }
.pg-stack .brick { width: 120px; height: auto; }
.pg-stack span.new { animation: drop .5s cubic-bezier(.3, 1.4, .5, 1); }
.pg-fig { position: absolute; left: calc(50% + 74px); bottom: 46px; width: 64px; transition: left .5s ease, bottom .6s cubic-bezier(.3, 1.4, .5, 1); }
.pg-fig .mf { width: 100%; height: auto; overflow: visible; }
.pg-fig.on-top { left: calc(50% - 32px); }
.pg-flag { position: absolute; right: -24px; top: -20px; width: 4px; height: 54px; background: #fff; opacity: 0; transform-origin: bottom; transform: scaleY(0); transition: transform .5s, opacity .3s; }
.pg-flag::after { content: ""; position: absolute; left: 4px; top: 0; width: 34px; height: 22px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.pg-fig.flag .pg-flag { opacity: 1; transform: none; }
.baseplate { position: absolute; left: 0; right: 0; bottom: 0; height: 54px; padding: 0; border: 0; border-radius: 12px 12px 0 0; background: var(--green) radial-gradient(circle at 22px 18px, #6fd45a 9px, var(--green-d) 10px, var(--green-d) 11px, transparent 12px) 0 0 / 44px 54px; cursor: pointer; box-shadow: inset 0 4px 0 rgba(255, 255, 255, .25); }
.foot-ground { display: grid; gap: 14px; justify-items: center; padding: 30px 0 120px; background: #0e2449; text-align: center; }
.foot-bye { font-weight: 900; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); color: #fff; }
.eggs { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 8px 18px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-weight: 700; font-size: .9rem; }
.eggs-dots { display: inline-flex; gap: 6px; }
.eggs-dots i { width: 18px; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .18); transition: background .4s, transform .4s; }
.eggs-dots i.on:nth-child(4n+1) { background: var(--red); } .eggs-dots i.on:nth-child(4n+2) { background: var(--yellow); } .eggs-dots i.on:nth-child(4n+3) { background: var(--blue); } .eggs-dots i.on:nth-child(4n+4) { background: var(--green); }
.eggs-dots i.on { transform: translateY(-3px); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 10px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
.foot-in img { width: 44px; height: 44px; border-radius: 50%; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-weight: 800; text-decoration: none; }

/* ---------- Всплывающее, просмотр фото, диалоги ---------- */
.toast { position: fixed; left: 50%; bottom: 110px; z-index: 80; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 12px 22px 12px 12px; border-radius: 16px; background: var(--yellow); color: var(--ink); font-weight: 700; box-shadow: 0 7px 0 var(--yellow-d), 0 20px 40px rgba(0, 0, 0, .3); translate: -50% 0; animation: toast-in .5s cubic-bezier(.3, 1.6, .5, 1); }
.toast[hidden] { display: none; }
.toast .brick { width: 40px; height: auto; flex: none; }
@keyframes toast-in { from { transform: translateY(40px) scale(.8); opacity: 0; } }
.news-dialog { width: min(640px, 100% - 32px); max-height: calc(100% - 40px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 12px 0 #c9d3e3, 0 40px 90px rgba(0, 0, 0, .45); }
.news-dialog::backdrop { background: rgba(20, 48, 95, .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: 12px; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 4px 0 var(--red-d); }
.nd-gallery { position: relative; background: var(--ink); }
.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: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; }
.nd-prev { left: 10px; } .nd-next { right: 10px; }
.nd-counter { position: absolute; left: 12px; bottom: 12px; display: none; padding: 3px 11px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-weight: 800; font-size: .86rem; }
.has-many .nd-nav { display: grid; } .has-many .nd-counter { display: block; }
.nd-thumbs { display: none; gap: 8px; padding: 10px 12px; overflow-x: auto; }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.nd-thumbs button.is-active { border-color: var(--yellow); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 26px 28px 32px; }
.nd-gallery[hidden] + .nd-body { padding-top: 60px; }
.nd-body time { font-weight: 800; color: var(--red); }
.nd-body h3 { font-weight: 900; font-size: 1.8rem; 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(14, 36, 73, .95); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 80vh; border-radius: 14px; }
.lightbox figcaption { margin-top: 12px; color: #fff; font-weight: 800; font-size: 1.2rem; }
.lb-close, .lb-nav { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border: 0; border-radius: 14px; background: var(--yellow); color: var(--ink); cursor: pointer; box-shadow: 0 5px 0 var(--yellow-d); }
.lb-close { position: absolute; top: 18px; right: 18px; }

/* летящие кубики, искры, ракета */
.sky-layer { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.fall { position: absolute; left: 0; top: 0; width: 56px; will-change: transform; }
.fall .brick { width: 100%; height: auto; }
.spark { position: fixed; left: 0; top: 0; z-index: 74; width: 12px; height: 8px; border-radius: 2px; pointer-events: none; }
.disco-lights { position: fixed; inset: 0; z-index: 59; pointer-events: none; mix-blend-mode: multiply; background: conic-gradient(from 0deg at 50% 0%, rgba(232, 51, 42, .25), rgba(255, 205, 26, .25), rgba(31, 111, 214, .25), rgba(76, 184, 58, .25), rgba(232, 51, 42, .25)); }

/* ---------- Движение (только если посетитель не просил его уменьшить) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .6s ease, transform .7s cubic-bezier(.3, 1.5, .5, 1); transition-delay: var(--delay, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .floater { animation: bob calc(5s + var(--d) * 1.4s) calc(var(--i) * -.8s) ease-in-out infinite alternate; }
  @keyframes bob { from { translate: 0 0; } to { translate: 0 calc(-10px - var(--d) * 6px); } }
  .js .floater { animation: float-in 1s calc(var(--i) * .08s) cubic-bezier(.3, 1.5, .5, 1) both, bob calc(5s + var(--d) * 1.4s) calc(var(--i) * -.8s + 1s) ease-in-out infinite alternate; }
  @keyframes float-in { from { opacity: 0; scale: .3; } }

  .js .hero-wall span { animation: wall-in .6s calc(.9s + var(--i) * 70ms) cubic-bezier(.3, 1.5, .5, 1) both; }
  @keyframes wall-in { from { transform: translateY(-120px); opacity: 0; } 60% { opacity: 1; } }
  .js .hero-title, .js .hero-lead, .js .hero-actions, .js .scroll-cue { animation: rise .7s cubic-bezier(.3, 1.4, .5, 1) both; }
  .js .hero-title { animation-delay: 1.2s; } .js .hero-lead { animation-delay: 1.35s; } .js .hero-actions { animation-delay: 1.5s; } .js .scroll-cue { animation-delay: 1.7s; }
  @keyframes rise { from { opacity: 0; transform: translateY(30px); } }
  .scroll-cue .ico { animation: nudge 1.6s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateY(5px); } }
  .js .hero-fig { animation: fig-in .9s 1.6s cubic-bezier(.3, 1.5, .5, 1) both; }
  @keyframes fig-in { from { opacity: 0; transform: translateY(80px); } }

  /* логотип: буквы LEGO выпрыгивают, K-A-A подпрыгивают по очереди, моргают и машут */
  .js .lk-l { animation: l-in .7s calc(var(--i) * .1s + .2s) cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes l-in { from { opacity: 0; transform: translateY(-80px) scale(.4); } }
  .lk-l, .lk-c, .lk-b, .lk-eyes, .lk-mouth { transform-box: fill-box; transform-origin: 50% 100%; }
  .lk-eyes { transform-origin: 50% 50%; }
  .js .lk-c { animation: c-in .8s calc(var(--i) * .14s + .6s) cubic-bezier(.3, 1.6, .5, 1) both, hop 3.6s calc(var(--i) * .3s + 1.8s) ease-in-out infinite; }
  @keyframes c-in { from { opacity: 0; transform: translateY(70px) scale(.3); } }
  @keyframes hop { 0%, 70%, 100% { transform: none; } 76% { transform: scale(1.08, .9); } 84% { transform: translateY(-16px) scale(.95, 1.06); } 92% { transform: scale(1.04, .96); } }
  .lk-eyes { animation: blink 4.4s calc(var(--i, 0) * .7s + 2s) infinite; }
  .lk-c1 .lk-eyes { animation-delay: 2.9s; } .lk-c2 .lk-eyes { animation-delay: 3.5s; }
  @keyframes blink { 0%, 92%, 100% { transform: none; } 95% { transform: scaleY(.1); } }
  .lk-hand-in { transform-box: fill-box; transform-origin: 50% 100%; animation: wave 1.3s ease-in-out infinite alternate; }
  .lk-hand-r .lk-hand-in { animation-delay: -.6s; }
  @keyframes wave { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
  .js .lk-b { animation: b-in .5s calc(var(--i) * 45ms + 1.1s) cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes b-in { from { opacity: 0; transform: scale(.2); } }
  .logo-btn.is-paused * { animation-play-state: paused !important; }
  .lk-c.say { animation: say .6s cubic-bezier(.3, 1.6, .5, 1) !important; }
  @keyframes say { 40% { transform: translateY(-30px) rotate(-8deg) scale(1.1); } }
  .logo-btn.dance .lk-c { animation: dance .5s ease-in-out infinite alternate !important; }
  .logo-btn.dance .lk-c1 { animation-delay: -.25s !important; }
  @keyframes dance { from { transform: rotate(-10deg) translateY(0); } to { transform: rotate(10deg) translateY(-14px); } }

  /* человечки: дышат, машут, прыгают */
  .mf .mf-arm-r { transform-box: fill-box; transform-origin: 50% 8%; }
  .hero-fig .mf-arm-r { animation: arm 2.6s ease-in-out infinite; }
  @keyframes arm { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-120deg); } 80% { transform: rotate(-95deg); } 90% { transform: rotate(-125deg); } }
  .fig-btn .mf { animation: sway 3.4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
  @keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
  .fig-btn.swap .mf { animation: spin-y .5s ease; }
  @keyframes spin-y { 50% { transform: scaleX(0) translateY(-14px); } }
  .tower-fig .mf { animation: sway 3s calc(var(--i, 0) * -.9s) ease-in-out infinite alternate; transform-origin: 50% 100%; }
  .st-fig .mf { animation: sway 1.6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
  .peek .peek-svg { animation: peekaboo 6s calc(var(--top) * -.1s) ease-in-out infinite; }
  .peek:nth-of-type(odd) .peek-svg { animation-duration: 7.4s; }
  @keyframes peekaboo { 0%, 40%, 100% { transform: translateX(0); } 55%, 80% { transform: translateX(var(--in, -20px)); } }
  .peek-l .peek-svg { --in: 20px; }
  .rocket .flame { transform-box: fill-box; transform-origin: 50% 0; animation: flame .18s ease-in-out infinite alternate; }
  @keyframes flame { from { transform: scaleY(.7); } to { transform: scaleY(1.15); } }
  .rocket { animation: hover 2.4s ease-in-out infinite alternate; }
  @keyframes hover { from { translate: 0 0; } to { translate: 0 -8px; } }
  body.disco .mf { animation: dance .35s ease-in-out infinite alternate !important; transform-origin: 50% 100%; }
  body.disco .floater { animation: dance .4s ease-in-out infinite alternate !important; }
  body.disco .disco-lights { animation: disco 1.2s linear infinite; }
  @keyframes disco { to { filter: hue-rotate(360deg); } }
}

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

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .about-grid, .contact-grid, .docs-grid { grid-template-columns: 1fr; }
  .brick-frame { rotate: 0deg; }
  .hero-fig { position: relative; left: auto; bottom: auto; margin: 26px auto 0; }
  .hero { padding-bottom: 110px; }
  .playground { grid-template-columns: 1fr; }
  .pg-head { padding-bottom: 0; text-align: center; justify-items: center; }
}
@media (max-width: 860px) {
  .towers { grid-template-columns: 1fr; gap: 54px; max-width: 360px; margin-inline: auto; }
  .leader { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .leader-body { justify-items: center; }
  .leader-photo { width: 170px; }
}
@media (max-width: 640px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .dock { bottom: 8px; border-radius: 18px; }
  .dock a { min-width: 54px; padding: 6px 6px; font-size: .64rem; }
  .dock-build { padding: 0 8px 0 4px; }
  .dock-build b { display: none; }
  .chip-call span { display: none; }
  .chip-call { width: 44px; padding: 0; justify-content: center; }
  .brand img { width: 48px; height: 48px; }
  .hero { padding-top: 76px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .floater:nth-child(n+5) { display: none; }
  .form { padding: 40px 20px 28px; }
  .seal { right: 18px; width: 62px; height: 62px; }
  .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); }
  .place a { margin-left: 0; }
  .fact { width: calc(50vw - 30px); }
  .pg-stage { height: 420px; }
  .peek { width: 50px; }
  .toast { bottom: 96px; }
}
