/* «Kids Planet 1»: маленькая планета. Тёмный космос с конфетными красками (фиолет, коралл, мята, солнце) в первом экране,
   орбитах и контактах и светлые «земные» разделы между ними. Эмблема — планета с кольцом, четырьмя лунами-группами и космонавтом;
   показатели — шкалы пульта; группы — модель орбит; «планета по имени» — игра; внизу — горизонт и ракета. */

/* ---------- Шрифты: Exo 2 (заголовки, «космический») и Nunito (текст), с казахскими буквами ә ғ қ ң ө ұ ү һ і ---------- */
@font-face { font-family: "Exo 2"; font-weight: 500 800; font-display: swap; src: url("../assets/fonts/exo2-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-weight: 500 800; font-display: swap; src: url("../assets/fonts/exo2-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-weight: 500 800; font-display: swap; src: url("../assets/fonts/exo2-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: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-400.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+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: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-700.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+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: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-800.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+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 {
  --space: #1c0f3f; --space-2: #2a1468; --space-3: #3a1d9a; --space-d: #12082b;
  --violet: #7c5cf0; --lilac: #b39cff; --coral: #ff7b8a; --pink: #ff8fc7; --mint: #35e0b5; --sun: #ffd34d; --sky: #5cc8ff;
  --paper: #f8f5ff; --cloud: #eef0ff; --peach: #fff1e6; --ink: #24104f; --ink-soft: #5d4f86; --line: rgba(36, 16, 79, .14);
  --head: "Exo 2", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 72px; --arc: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--space); color: var(--ink); font: 400 1.06rem/1.65 var(--body); overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--space-3); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 90; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 800; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; color: var(--space-2); }
h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.3rem); text-wrap: balance; }
h3 { font-size: 1.4rem; }

/* ---------- Кнопки и плашки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--body); font-weight: 800; font-size: 1rem; text-decoration: none; transition: transform .2s, box-shadow .2s, filter .2s; }
.btn-main { background: linear-gradient(135deg, #ffe58f, #ffc233); color: #2a1468; box-shadow: 0 10px 26px rgba(255, 194, 51, .4), inset 0 -3px 0 rgba(160, 100, 0, .25); }
.btn-launch { background: linear-gradient(135deg, #8bf4d8, #35e0b5); color: #08423a; box-shadow: 0 10px 26px rgba(53, 224, 181, .35), inset 0 -3px 0 rgba(0, 100, 80, .25); }
.btn-line { border: 2px solid rgba(179, 156, 255, .8); background: rgba(255, 255, 255, .06); color: #fff; }
.btn-dark { border-color: var(--violet); color: var(--space-3); background: #fff; }
.btn:hover { transform: translateY(-3px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-launch .ico { fill: currentColor; stroke: none; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 123, 138, .25); }
.lede { max-width: 60ch; color: var(--ink-soft); font-size: 1.1rem; text-wrap: pretty; }

/* ---------- Шапка: стеклянная панель над космосом ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; background: rgba(28, 15, 63, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(179, 156, 255, .18); transition: background .3s, box-shadow .3s; }
.top.is-stuck { background: rgba(28, 15, 63, .9); box-shadow: 0 10px 34px rgba(8, 3, 28, .5); }
.top-in { display: flex; align-items: center; gap: 18px; width: min(1240px, 100% - 32px); min-height: var(--bar-h); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 44px; height: 44px; transition: transform .8s cubic-bezier(.3, 1.4, .5, 1); }
.brand:hover img { transform: rotate(360deg) scale(1.08); }
.brand-text strong { display: block; white-space: nowrap; font-family: var(--head); font-weight: 800; font-size: 1.3rem; line-height: 1; letter-spacing: .01em; }
.brand-text small { display: block; white-space: nowrap; font-size: .64rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--lilac); }
.menu { display: flex; justify-content: center; flex: 1; gap: 2px; }
.menu a { position: relative; white-space: nowrap; padding: 9px 14px; border-radius: 999px; color: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .2s; }
.menu a:hover { background: rgba(255, 255, 255, .1); }
.menu a.is-active { background: rgba(179, 156, 255, .25); }
.menu a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px; translate: -50% 0; border-radius: 3px; background: var(--sun); }
.chips { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 42px; padding: 0 16px; border: 1.5px solid rgba(179, 156, 255, .55); border-radius: 999px; background: transparent; color: #fff; font-weight: 800; font-size: .9rem; text-decoration: none; transition: background .2s, color .2s; }
.chip:hover { background: rgba(255, 255, 255, .14); }
.chip-call { background: var(--mint); border-color: transparent; color: #08423a; }
.chip-call:hover { background: #6df0cf; }
.chip-menu { display: none; justify-content: center; width: 42px; padding: 0; cursor: pointer; }

/* ---------- Первый экран: космос и планета ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--bar-h) + 40px) 0 calc(var(--arc) + 70px); overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 78% 46%, rgba(124, 92, 240, .55) 0, rgba(124, 92, 240, 0) 55%), radial-gradient(ellipse at 8% 90%, rgba(255, 123, 138, .28) 0, rgba(255, 123, 138, 0) 46%), radial-gradient(ellipse at 40% 0, rgba(53, 224, 181, .16) 0, rgba(53, 224, 181, 0) 40%), linear-gradient(180deg, #1c0f3f, #20114a 70%, #2a1468); }
.stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 60px); }
.hero-text { display: grid; justify-items: start; gap: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-weight: 800; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--lilac); }
.eyebrow span { width: 42px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--coral), var(--sun)); }
h1 { display: grid; gap: 0; line-height: .9; }
.h-a, .h-b { font-family: var(--head); font-weight: 800; letter-spacing: -.01em; }
.h-a { font-size: clamp(3.2rem, 1rem + 6vw, 5.8rem); color: #fff; text-shadow: 0 6px 30px rgba(124, 92, 240, .6); }
.h-b { display: flex; align-items: center; flex-wrap: nowrap; gap: .12em; font-size: clamp(3.6rem, 1rem + 8vw, 7.8rem); background: linear-gradient(100deg, #ffd34d 0%, #ff7b8a 45%, #b39cff 90%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.js .h-b { animation: nebula 8s ease-in-out infinite; }
@keyframes nebula { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.h-n { display: inline-grid; place-items: center; align-self: center; width: 1.05em; height: 1.05em; margin-left: .05em; border: .07em solid var(--mint); border-radius: 50%; font-style: normal; font-size: .62em; line-height: 1; -webkit-text-fill-color: var(--mint); color: var(--mint); box-shadow: 0 0 .5em rgba(53, 224, 181, .5), inset 0 0 .4em rgba(53, 224, 181, .35); rotate: -8deg; }
.hero-slogan { font-family: var(--head); font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem); line-height: 1.2; color: var(--sun); text-wrap: balance; }
.hero-lead { max-width: 46ch; color: #dcd2ff; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pills li { padding: 6px 18px; border: 1.5px solid rgba(179, 156, 255, .45); border-radius: 999px; background: rgba(255, 255, 255, .07); font-weight: 700; font-size: .95rem; color: #e9e3ff; }
.pills strong { font-family: var(--head); font-weight: 800; color: var(--sun); }
.hero-planet { position: relative; justify-self: center; width: min(100%, 560px, 74svh); }
.planet-hint { margin-top: 4px; text-align: center; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(179, 156, 255, .85); }
.kp-conf { will-change: transform; }

/* ---------- Разделы: «горизонты» — верх каждого раздела выгнут дугой, как край планеты ---------- */
.section { position: relative; margin-top: calc(var(--arc) * -1); padding: calc(clamp(64px, 8vw, 108px) + var(--arc)) 0 clamp(64px, 8vw, 108px); border-radius: 50% 50% 0 0 / var(--arc) var(--arc) 0 0; }
.head { display: grid; justify-items: start; gap: 14px; margin-bottom: clamp(28px, 4vw, 50px); }
.head-center { justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }

/* О нас + пульт показателей */
.about { z-index: 2; background: radial-gradient(ellipse at 90% 10%, rgba(179, 156, 255, .35) 0, transparent 50%), var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 76px); align-items: center; }
.about-text { display: grid; gap: 16px; justify-items: start; }
.about-text .head { margin-bottom: 4px; }
.place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; padding: 12px 20px; border: 1.5px solid rgba(124, 92, 240, .3); border-radius: 22px; background: #fff; font-weight: 700; color: var(--space-2); }
.place .ico { color: var(--coral); }
.place a { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 800; color: var(--violet); text-decoration: none; }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }
.pulse::after { content: ""; position: absolute; inset: -6px; border: 2px solid var(--mint); border-radius: 50%; opacity: 0; }
.js .pulse::after { animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.5); } }
.frame { justify-self: center; width: min(100%, 460px); }
.frame-in { padding: 12px; border-radius: 50% 50% 28px 28px / 36% 36% 28px 28px; background: linear-gradient(160deg, var(--violet), var(--space-2)); box-shadow: 0 26px 56px rgba(58, 29, 154, .35); overflow: hidden; }
.frame-in img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 48% 48% 18px 18px / 30% 30% 18px 18px; }
.frame figcaption { margin-top: 12px; text-align: center; font-family: var(--head); font-weight: 700; color: var(--space-2); }
.frame ~ .console { grid-column: 1 / -1; }
.console { padding: clamp(22px, 4vw, 40px); border-radius: 38px; background: radial-gradient(ellipse at 20% 0, rgba(124, 92, 240, .5) 0, transparent 60%), linear-gradient(160deg, var(--space-2), var(--space)); box-shadow: 0 30px 60px rgba(28, 15, 63, .35), inset 0 0 0 1.5px rgba(179, 156, 255, .35); color: #fff; }
.console-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 24px; }
.console-head h3 { color: var(--sun); font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.console-head p { color: #cbbfff; font-size: .95rem; }
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(14px, 2.4vw, 30px); }
.gauge-cell { display: grid; justify-items: center; gap: 10px; }
.gauge { --gc: var(--mint); position: relative; width: 100%; max-width: 190px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); cursor: pointer; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.gauge:hover { transform: scale(1.06); }
.g1 { --gc: var(--sun); } .g2 { --gc: var(--coral); } .g3 { --gc: var(--sky); } .g0 { --gc: var(--mint); }
.g-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.g-bg, .g-fg { fill: none; stroke-width: 7; stroke-linecap: round; }
.g-bg { stroke: rgba(255, 255, 255, .12); }
.g-fg { stroke: var(--gc); stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 5px var(--gc)); }
.js .console:not(.is-in) .g-fg { stroke-dashoffset: 100; }
.js .console.is-in .g-fg { animation: g-fill 1.7s cubic-bezier(.3, .7, .2, 1) calc(var(--i, 0) * .15s) backwards; }
.js .gauge-cell { --i: 0; }
.gauge.is-replay .g-fg { animation: g-fill 1.5s cubic-bezier(.3, .7, .2, 1) backwards; }
@keyframes g-fill { from { stroke-dashoffset: 100; } }
.g-in { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; padding: 16%; text-align: center; }
.g-ico { width: 1.7rem; height: 1.7rem; color: var(--gc); stroke-width: 2; }
.g-val { font-family: var(--head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: #fff; }
.g-txt { font-size: 1.05rem; line-height: 1.15; overflow-wrap: anywhere; }
.g-in small { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #cbbfff; }
.g-label { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #bfb1ff; }
.about-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 48px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: 0 16px 36px rgba(58, 29, 154, .25); }

/* Орбиты: модель солнечной системы. Планета на каждой орбите = группа */
.groups { z-index: 3; color: #fff; background: radial-gradient(ellipse at 15% 20%, rgba(124, 92, 240, .45) 0, transparent 55%), radial-gradient(ellipse at 90% 90%, rgba(255, 123, 138, .22) 0, transparent 50%), linear-gradient(180deg, #24135a, #1c0f3f); }
.groups h2 { color: #fff; } .groups .lede { color: #cbbfff; } .groups .kicker { color: var(--sun); }
.groups::before { content: ""; position: absolute; inset: 0; opacity: .7; pointer-events: none; background-image: radial-gradient(1.6px 1.6px at 30px 40px, #fff, transparent), radial-gradient(1.2px 1.2px at 130px 110px, #dcd2ff, transparent), radial-gradient(1.8px 1.8px at 200px 30px, #ffe9a3, transparent), radial-gradient(1.2px 1.2px at 80px 180px, #fff, transparent); background-size: 240px 220px; border-radius: inherit; }
.orbit-wrap { position: relative; display: grid; gap: clamp(24px, 4vw, 44px); justify-items: center; }
.planets { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); gap: clamp(10px, 3vw, 40px); justify-content: center; width: 100%; }
.orb { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border: 0; border-radius: 28px; background: transparent; color: #fff; cursor: pointer; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1), background .2s; }
.orb svg { width: min(100%, 110px); height: auto; overflow: visible; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .4)); }
.js .orb svg { animation: floaty 6s ease-in-out calc(var(--i) * -1.3s) infinite; }
.orb:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .08); }
.orb.is-on { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(255, 211, 77, .8); }
.orb.is-on svg { filter: drop-shadow(0 0 14px rgba(255, 255, 255, .8)); }
.orb-name { font: 700 1.05rem/1.2 var(--head); }
.orb-age { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sun); }
.orbit-cards { position: relative; display: grid; gap: 18px; width: min(100%, 620px); }
.orbit-card { display: none; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 22px; align-items: center; padding: 26px 28px; border-radius: 34px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(179, 156, 255, .4); backdrop-filter: blur(8px); }
.orbit-card.is-on { display: grid; animation: card-in .6s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.oc-art { grid-row: 1 / span 4; width: 120px; }
.kp-orb { width: 100%; height: auto; overflow: visible; }
.js .orbit-card.is-on .oc-art { animation: oc-spin 1s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes oc-spin { from { transform: rotate(-140deg) scale(.3); } }
.t-age { align-self: end; font-family: var(--head); font-weight: 800; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.orbit-card h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.t-level { color: #cbbfff; font-weight: 700; }
.t-motto { color: #fff; font-weight: 600; }
.orbit-card .btn { grid-column: 1 / -1; margin-top: 14px; justify-self: start; min-height: 50px; }
.groups-hint { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #bfb1ff; }
.groups-hint .ico { fill: var(--sun); stroke: none; }

/* Игра «планета по имени» */
.play { z-index: 4; background: radial-gradient(ellipse at 8% 20%, rgba(53, 224, 181, .25) 0, transparent 45%), radial-gradient(ellipse at 95% 80%, rgba(255, 143, 199, .28) 0, transparent 50%), #f2fffb; }
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.play-text .head { margin-bottom: 26px; }
.playbox { display: grid; gap: 16px; max-width: 520px; }
.playbox input { width: 100%; min-height: 68px; padding: 0 28px; border: 3px solid var(--violet); border-radius: 999px; background: #fff; font: 800 1.6rem/1 var(--head); color: var(--space-2); box-shadow: 0 10px 28px rgba(124, 92, 240, .2); transition: box-shadow .2s, border-color .2s; }
.playbox input::placeholder { color: rgba(58, 29, 154, .35); font-weight: 600; }
.playbox input:focus { outline: 0; border-color: var(--coral); box-shadow: 0 0 0 6px rgba(255, 123, 138, .25), 0 10px 28px rgba(124, 92, 240, .2); }
.play-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.play-stage { position: relative; display: grid; justify-items: center; gap: 12px; padding: clamp(16px, 3vw, 30px); border-radius: 44px; background: radial-gradient(ellipse at 50% 40%, rgba(124, 92, 240, .55) 0, transparent 65%), linear-gradient(160deg, var(--space-2), var(--space)); box-shadow: 0 30px 60px rgba(28, 15, 63, .35); overflow: hidden; }
.play-stage::before { content: ""; position: absolute; inset: 0; opacity: .8; pointer-events: none; background-image: radial-gradient(1.6px 1.6px at 30px 40px, #fff, transparent), radial-gradient(1.2px 1.2px at 130px 110px, #dcd2ff, transparent), radial-gradient(1.8px 1.8px at 200px 30px, #ffe9a3, transparent), radial-gradient(1.2px 1.2px at 80px 180px, #fff, transparent); background-size: 240px 220px; }
#genSvg { position: relative; width: min(100%, 380px); height: auto; overflow: visible; }
#genSvg.is-pop { animation: gen-pop .8s cubic-bezier(.2, 1.6, .4, 1); }
#genSvg.is-empty { filter: grayscale(1) brightness(.7); opacity: .6; }
@keyframes gen-pop { from { transform: scale(.3) rotate(-60deg); opacity: 0; } }
.gen-name { position: relative; padding: 8px 24px; border-radius: 999px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px rgba(179, 156, 255, .5); font: 800 1.3rem/1.2 var(--head); color: var(--sun); text-align: center; overflow-wrap: anywhere; }
.gp-tex { }
.js .gp-tex { animation: gp-scroll 18s linear infinite; }
@keyframes gp-scroll { to { transform: translateX(-200px); } }

/* Руководство */
.team { z-index: 5; background: radial-gradient(ellipse at 85% 0, rgba(255, 143, 199, .3) 0, transparent 50%), var(--peach); }
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 36px; justify-items: center; }
.leaders-1 { grid-template-columns: minmax(0, 760px); justify-content: center; }
.leader { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; align-items: center; width: 100%; padding: 30px; border-radius: 44px; background: #fff; box-shadow: 0 24px 56px rgba(58, 29, 154, .16); }
.leader-photo { position: relative; width: 230px; aspect-ratio: 1; border-radius: 50%; }
.leader-photo::before { content: ""; position: absolute; inset: -12px; border: 2.5px dashed var(--violet); border-radius: 50%; opacity: .55; }
.js .leader-photo::before { animation: spin-r 40s linear infinite; }
@keyframes spin-r { to { rotate: 360deg; } }
.leader-photo > img, .leader-photo > .avatar { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--violet); }
.leader-years { position: absolute; right: -16px; bottom: -4px; display: grid; place-content: center; width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, #ffe58f, #ffc233); text-align: center; line-height: 1; color: #3a2400; box-shadow: 0 10px 22px rgba(255, 194, 51, .5); rotate: 10deg; }
.leader-years strong { font-family: var(--head); font-weight: 800; font-size: 1.9rem; }
.leader-years span { max-width: 9ch; margin-inline: auto; font-size: .56rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.leader-role { display: inline-block; margin-bottom: 8px; padding: 4px 14px; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.leader h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.leader-edu { display: grid; gap: 2px; margin-top: 10px; color: var(--ink-soft); }
.leader-edu span { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.leader-about { margin-top: 12px; padding: 10px 16px; border-left: 4px solid var(--mint); border-radius: 0 14px 14px 0; background: #effff9; color: var(--space-2); font-weight: 700; }
.tabset { margin-top: 14px; }
.tabset-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-tab { min-height: 36px; padding: 0 14px; border: 1.5px solid var(--violet); border-radius: 999px; background: #fff; font-weight: 800; font-size: .8rem; color: var(--space-3); cursor: pointer; transition: background .2s, color .2s; }
.ts-tab.is-on { background: var(--violet); color: #fff; }
.ts-panel { display: none; margin-top: 12px; font-size: .98rem; }
.ts-panel.is-on { display: block; animation: rise .45s cubic-bezier(.2, .8, .3, 1); }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }

/* Кружки */
.extras { z-index: 6; background: radial-gradient(ellipse at 10% 10%, rgba(92, 200, 255, .3) 0, transparent 50%), #eaf6ff; }
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 28px; }
.club { position: relative; display: flex; flex-direction: column; border-radius: 34px; background: #fff; overflow: hidden; box-shadow: 0 18px 44px rgba(58, 29, 154, .15); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; }
.club:hover { transform: translateY(-8px); box-shadow: 0 26px 54px rgba(58, 29, 154, .25); }
.club-open { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: default; }
button.club-open { cursor: pointer; }
.club-media { position: relative; display: grid; place-items: center; height: 156px; overflow: hidden; background: linear-gradient(135deg, var(--violet), var(--space-3)); color: #fff; }
.club:nth-child(3n+2) .club-media { background: linear-gradient(135deg, #ff8fc7, #ff7b8a); }
.club:nth-child(3n+3) .club-media { background: linear-gradient(135deg, #35e0b5, #3a9be8); }
.club-media::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.6px 1.6px at 22px 30px, #fff, transparent), radial-gradient(1.2px 1.2px at 90px 80px, #fff, transparent), radial-gradient(2px 2px at 140px 20px, #ffe9a3, transparent); background-size: 170px 120px; opacity: .7; }
.club-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.extra-ico { position: relative; width: 78px; height: 78px; stroke-width: 2.4; transition: transform .45s cubic-bezier(.3, 1.9, .5, 1); }
.club:hover .extra-ico { transform: scale(1.14) rotate(-8deg); }
.club-body { display: grid; align-content: start; gap: 6px; padding: 18px 24px 26px; }
.club-title { font-family: var(--head); font-weight: 700; font-size: 1.4rem; color: var(--space-2); }
.club-meta { font-size: .86rem; font-weight: 800; color: var(--violet); }
.club-text { color: var(--ink-soft); }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 800; color: var(--violet); }
.story-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--space); color: #fff; font-size: .82rem; font-weight: 800; }

/* Фото */
.gallery { z-index: 7; padding-bottom: clamp(56px, 7vw, 96px); color: #fff; background: radial-gradient(ellipse at 50% 0, rgba(124, 92, 240, .5) 0, transparent 60%), linear-gradient(180deg, #24135a, #1c0f3f); overflow: hidden; }
.gallery h2 { color: #fff; } .gallery .lede { color: #cbbfff; } .gallery .kicker { color: var(--sun); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
.tab { min-height: 44px; padding: 0 20px; border: 1.5px solid rgba(179, 156, 255, .6); border-radius: 999px; background: transparent; font-weight: 800; font-size: .9rem; color: #fff; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.tab:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); }
.tab.is-on { background: var(--sun); border-color: transparent; color: #2a1468; }
.hall { position: relative; }
.album { display: flex; align-items: center; gap: 30px; padding: 34px max(24px, calc((100vw - 1160px) / 2)) 48px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100vw - 1160px) / 2)); scrollbar-width: none; cursor: grab; }
.album::-webkit-scrollbar { display: none; }
.album.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.album figure { flex: none; scroll-snap-align: start; margin: 0; transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.album figure:hover { transform: translateY(-8px) scale(1.02); }
.album figure[hidden] { display: none; }
.photo-btn { position: relative; display: block; padding: 0; border: 0; border-radius: 40px; background: none; cursor: zoom-in; overflow: hidden; box-shadow: 0 0 0 4px rgba(179, 156, 255, .6), 0 24px 46px rgba(0, 0, 0, .5); }
.photo-btn img { display: block; width: auto; height: clamp(250px, 46vh, 420px); max-width: min(82vw, 640px); object-fit: cover; pointer-events: none; }
.photo-btn figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(18, 8, 43, .9)); color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.1rem; text-align: left; opacity: 0; transition: opacity .3s; }
.photo-btn:hover figcaption, .photo-btn:focus-visible figcaption { opacity: 1; }
.hall-nav { position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 54px; height: 54px; translate: 0 -50%; border: 0; border-radius: 50%; background: var(--sun); color: #2a1468; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); transition: transform .15s; }
.hall-nav:hover { transform: translateY(calc(-50% - 3px)); } .hall-nav:active { transform: translateY(calc(-50% + 2px)); }
.hall-prev { left: max(10px, calc((100vw - 1260px) / 2)); } .hall-next { right: max(10px, calc((100vw - 1260px) / 2)); }
.hall-hint { text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #bfb1ff; }
.note { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 34px 20px; border: 2px dashed rgba(179, 156, 255, .5); border-radius: 26px; text-align: center; }

/* Новости */
.news { z-index: 8; background: var(--paper); }
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.story { overflow: hidden; border-radius: 32px; background: #fff; box-shadow: 0 18px 44px rgba(58, 29, 154, .15); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.story:hover { transform: translateY(-8px); }
.story-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.story-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--space-2); }
.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: 30%; height: auto; object-fit: contain; }
.story-body { display: grid; gap: 6px; padding: 18px 24px 26px; }
.story-body time { font-size: .84rem; font-weight: 800; color: var(--coral); }
.story-title { font-family: var(--head); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--space-2); }
.story-excerpt { color: var(--ink-soft); font-size: .98rem; }

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

/* Контакты и горизонт */
.contact { z-index: 10; padding-bottom: 0; color: #fff; background: radial-gradient(ellipse at 15% 0, rgba(124, 92, 240, .5) 0, transparent 55%), linear-gradient(180deg, #24135a, #170b38); }
.contact::before { content: ""; position: absolute; inset: 0; opacity: .75; pointer-events: none; background-image: radial-gradient(1.6px 1.6px at 30px 40px, #fff, transparent), radial-gradient(1.2px 1.2px at 130px 110px, #dcd2ff, transparent), radial-gradient(1.8px 1.8px at 200px 30px, #ffe9a3, transparent), radial-gradient(1.2px 1.2px at 80px 180px, #fff, transparent); background-size: 240px 220px; border-radius: inherit; }
.contact > * { position: relative; }
.contact h2 { color: #fff; } .contact .kicker { color: var(--sun); } .contact .lede { color: #cbbfff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.contact-info { display: grid; gap: 14px; justify-items: start; }
.contact-info .head { margin-bottom: 0; }
.contact-phone { font-family: var(--head); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; text-decoration: none; color: var(--sun); }
.contact-phone:hover { color: #fff; }
.contact-list { display: grid; gap: 12px; margin-top: 6px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.contact-list .ico { margin-top: .22em; color: var(--mint); }
.contact-list a { text-underline-offset: 3px; color: var(--sun); }
.social-label { margin-top: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: #bfb1ff; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1.5px solid rgba(179, 156, 255, .7); border-radius: 999px; font-weight: 800; text-decoration: none; color: #fff; transition: background .2s, color .2s, transform .2s; }
.socials a:hover { background: var(--sun); border-color: transparent; color: #2a1468; transform: translateY(-3px); }
.form { position: relative; padding: 42px 36px 34px; border-radius: 40px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 6px rgba(179, 156, 255, .3); }
.seal { position: absolute; top: -34px; right: 30px; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--space); box-shadow: 0 10px 24px rgba(0, 0, 0, .4), 0 0 0 4px #fff; }
.seal img { width: 78%; height: auto; }
.js .seal img { animation: seal-spin 14s linear infinite; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
.form h3 { max-width: calc(100% - 90px); font-size: 2rem; }
.form label { display: block; margin: 16px 0 6px; font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 13px 18px; border: 2px solid #ddd3ff; border-radius: 18px; background: var(--paper); font-weight: 700; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.form input::placeholder, .form textarea::placeholder { color: rgba(36, 16, 79, .35); }
.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='%237c5cf0' 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: 100px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 5px rgba(124, 92, 240, .2); background: #fff; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.form .consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--violet); }
.form .btn { width: 100%; margin-top: 22px; }
.form-note { display: none; margin-top: 14px; font-weight: 800; color: #0f8f6c; }
.form-note.show { display: block; }
.form-note.error { color: #d23b4e; }
.hp-field { position: absolute; left: -9999px; }
.foot { margin-top: 40px; }
.foot-sky { position: relative; }
.horizon { line-height: 0; }
.horizon svg { width: 100%; height: auto; overflow: visible; }
.kp-fl { transform-box: fill-box; transform-origin: 50% 100%; }
.js .kp-fl { animation: sway 4s ease-in-out calc(var(--i) * -.6s) infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
.pad-rocket { position: absolute; left: 50%; bottom: 52.5%; z-index: 2; width: clamp(40px, 5vw, 62px); padding: 0; border: 0; background: none; translate: -50% 0; cursor: pointer; transition: scale .25s cubic-bezier(.3, 1.8, .5, 1); }
.pad-rocket:hover { scale: 1.12; }
.pad-rocket svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.kp-flame { transform-box: fill-box; transform-origin: 50% 0; opacity: 0; transition: opacity .2s; }
.pad-rocket:hover .kp-flame, .is-fly .kp-flame, .kp-fly .kp-flame { opacity: 1; }
.js .pad-rocket:hover .kp-flame, .js .kp-fly .kp-flame, .is-fly .kp-flame { animation: flame .12s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scaleY(.8); } to { transform: scaleY(1.25); } }
.foot-ground { position: relative; padding-top: 20px; background: var(--space-d); }
.foot-bye { padding: 6px 16px 0; text-align: center; font-family: var(--head); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: #fff; }
.foot-hint { margin-top: 2px; text-align: center; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8e7fd6; }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; padding: 18px 0 28px; }
.foot-in img { flex: none; width: 40px; height: 40px; }
.foot-in p { margin-right: auto; font-weight: 600; color: #b3a6ee; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; color: var(--sun); }
.foot-in a:hover { color: #fff; }
.kp-fly { position: fixed; left: 0; top: 0; z-index: 80; width: 54px; pointer-events: none; will-change: transform; }
.kp-fly svg, .kp-rocket-svg { width: 100%; height: auto; overflow: visible; }

/* Просмотр фото и новости */
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(18, 8, 43, .94); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; max-width: min(1000px, 78vw); border-radius: 28px; box-shadow: 0 0 0 4px rgba(179, 156, 255, .6), 0 30px 70px rgba(0, 0, 0, .6); }
.lightbox figcaption { margin-top: 12px; color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.3rem; }
.lb-close, .lb-nav, .nd-close, .nd-nav { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sun); color: #2a1468; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.news-dialog { width: min(780px, calc(100% - 24px)); max-height: 90vh; padding: 0; border: 0; border-radius: 34px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: auto; }
.news-dialog::backdrop { background: rgba(18, 8, 43, .82); }
.nd-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.nd-stage { position: relative; background: var(--space-d); }
.nd-img { display: block; width: 100%; height: min(58vh, 470px); object-fit: contain; }
.nd-nav { position: absolute; top: 50%; translate: 0 -50%; display: none; width: 46px; height: 46px; }
.nd-prev { left: 12px; } .nd-next { right: 12px; }
.nd-counter { position: absolute; left: 12px; bottom: 12px; display: none; padding: 2px 12px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-weight: 800; font-size: .9rem; }
.has-many .nd-nav { display: grid; } .has-many .nd-counter { display: block; }
.nd-thumbs { display: none; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--cloud); }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.nd-thumbs button.is-active { border-color: var(--violet); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 24px 30px 34px; }
.nd-gallery[hidden] + .nd-body { padding-top: 62px; }
.nd-body time { font-weight: 800; color: var(--coral); }
.nd-body h3 { margin: .15em 0 .5em; font-size: 1.9rem; }

/* ===================================================================================
   ПЛАНЕТА (includes/art.php → kp_emblem()). Базовые стили — готовая картинка; движение включает класс .js на <html>
   (его нет при «уменьшить движение»), поэтому без анимации эмблема просто собрана.
   Слои: .kp-p (параллакс от курсора, --d — глубина) > появление > покой (бесконечное движение). Луны ведёт js/main.js.
   =================================================================================== */
.kp { position: relative; width: 100%; aspect-ratio: 1; -webkit-tap-highlight-color: transparent; }
.kp-svg { display: block; width: 100%; height: 100%; max-width: none; overflow: visible; }
.kp-p { transform: translate(calc(var(--px, 0) * var(--d, 0) * 1.5px), calc(var(--py, 0) * var(--d, 0) * .9px)); transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.kp-planet { cursor: pointer; }
.kp-bead { stroke-dashoffset: calc(var(--o, 0) * 1px); }
.kp-planet-in, .kp-ring-in, .kp-kid, .kp-wave, .kp-eyes { transform-origin: 260px 260px; }
.kp-kid { transform-origin: 260px 170px; }
.kp-wave { transform-origin: 292px 142px; }
.kp-eyes { transform-origin: 260px 121px; }
.kp-moon { cursor: pointer; outline: none; }
.kp-moon-in { transition: transform .3s cubic-bezier(.3, 1.8, .5, 1), filter .3s; }
.kp-moon:hover .kp-moon-in, .kp-moon:focus-visible .kp-moon-in { transform: scale(1.22); filter: drop-shadow(0 0 8px rgba(255, 255, 255, .9)); }
.kp-spark, .kp-spark-in { transform-box: fill-box; transform-origin: 50% 50%; }
.kp-glow { transform-origin: 260px 260px; }
.kp-tip { position: absolute; left: 0; top: 0; z-index: 3; padding: 7px 16px; border-radius: 999px; background: #fff; color: var(--space-2); font: 800 clamp(.8rem, 1.4vw, .98rem) / 1.2 var(--head); white-space: nowrap; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); opacity: 0; transform: translate(-50%, -4px) scale(.85); transition: opacity .2s, transform .3s cubic-bezier(.3, 1.8, .5, 1); pointer-events: none; }
.kp-tip.show { opacity: 1; transform: translate(-50%, -100%) scale(1); }

.js .kp-cont { animation: kp-scroll 30s linear infinite; }
@keyframes kp-scroll { to { transform: translateX(-300px); } }
.js .kp-bead { animation: kp-bead 5s linear infinite; }
@keyframes kp-bead { to { stroke-dashoffset: calc(var(--o, 0) * 1px - 21.1px); } }
.js .kp-glow { animation: kp-glow 5s ease-in-out infinite; }
@keyframes kp-glow { 0%, 100% { opacity: .6; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
.js .kp-planet-in { animation: kp-pop 1.1s cubic-bezier(.2, 1.5, .4, 1) .1s backwards; }
@keyframes kp-pop { from { transform: scale(0) rotate(-50deg); opacity: 0; } }
.js .kp-ring-in { animation: kp-ringin 1.3s cubic-bezier(.2, 1.2, .4, 1) .5s backwards; }
@keyframes kp-ringin { from { transform: scale(.3) rotate(-70deg); opacity: 0; } }
.js .kp-kid-in { animation: kp-peek 1s cubic-bezier(.2, 1.7, .4, 1) 1.4s backwards; }
@keyframes kp-peek { from { transform: translateY(80px); } }
.js .kp-kid { animation: kp-bob 4s ease-in-out 2.6s infinite; }
@keyframes kp-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(2.5deg); } }
.js .kp-wave { animation: kp-waveh 1.3s ease-in-out 2.8s infinite alternate; }
@keyframes kp-waveh { from { transform: rotate(-16deg); } to { transform: rotate(12deg); } }
.js .kp-eyes { animation: kp-blink 5s ease-in-out 3s infinite; }
@keyframes kp-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.js .kp-moon-in { animation: kp-moonin .9s cubic-bezier(.2, 1.7, .4, 1) calc(1s + var(--i) * .16s) backwards; }
@keyframes kp-moonin { from { transform: scale(0) rotate(-120deg); } }
.js .kp-spark-in { animation: kp-starpop .8s cubic-bezier(.2, 1.7, .4, 1) calc(1.6s + var(--i) * .12s) backwards; }
@keyframes kp-starpop { from { transform: scale(0) rotate(-140deg); opacity: 0; } }
.js .kp-spark { animation: kp-twinkle calc(2.2s + var(--i) * .3s) ease-in-out calc(var(--i) * -.5s) infinite; }
@keyframes kp-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.5) rotate(25deg); opacity: .5; } }
.kp.is-hot .kp-planet { animation: kp-jolt .7s ease; transform-origin: 260px 260px; }
@keyframes kp-jolt { 30% { transform: scale(1.06, .94); } 60% { transform: scale(.97, 1.04); } }
.kp.is-paused *, .hero.is-paused .kp *, .hero.is-paused .kp-bead, .play.is-paused .gp-tex { animation-play-state: paused !important; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease var(--delay, 0s), transform .9s cubic-bezier(.2, .9, .3, 1) var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .stars { display: none; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) { .menu a { padding: 9px 10px; font-size: .88rem; } .brand-text small { display: none; } }
@media (max-width: 1100px) {
  .chip-menu { display: inline-flex; }
  .chip-call span { display: none; }
  .chip-call { width: 42px; padding: 0; justify-content: center; }
  .menu { position: absolute; top: calc(var(--bar-h) - 6px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 4px; padding: 14px; border-radius: 28px; background: rgba(36, 19, 90, .98); box-shadow: 0 24px 60px rgba(8, 3, 28, .6), inset 0 0 0 1.5px rgba(179, 156, 255, .35); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 18px; font-size: 1.05rem; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { justify-items: center; order: 2; }
  .hero-planet { order: 1; width: min(100%, 420px); }
  .hero-actions, .pills { justify-content: center; }
  .about-grid, .contact-grid, .docs-grid, .play-grid { grid-template-columns: 1fr; }
  .about-text, .play-text .head { justify-items: start; }
  .play-stage { max-width: 480px; margin-inline: auto; width: 100%; }
}
@media (max-width: 760px) {
  .leader { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 22px 34px; }
  .leader-photo { width: 210px; }
  .leader > div:last-child { display: grid; justify-items: center; }
  .tabset-bar { justify-content: center; }
  .leader-about { border-left: 0; border-top: 4px solid var(--mint); border-radius: 0 0 14px 14px; }
}
@media (max-width: 640px) {
  :root { --arc: 38px; }
  .planets { grid-template-columns: repeat(2, minmax(0, 150px)); }
  .wrap { width: min(1160px, 100% - 32px); }
  .form { padding: 38px 20px 28px; }
  .seal { right: 18px; width: 64px; height: 64px; }
  .foot-in { justify-content: center; text-align: center; } .foot-in p { margin-right: 0; width: 100%; }
  .hall-nav { width: 44px; height: 44px; }
  .photo-btn img { height: clamp(210px, 38vh, 340px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .orbit-card { grid-template-columns: 84px minmax(0, 1fr); padding: 22px 20px; gap: 4px 16px; }
  .oc-art { width: 84px; }
  .console { border-radius: 30px; padding: 22px 16px; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .playbox input { font-size: 1.3rem; min-height: 60px; }
  .place a { margin-left: 0; }
}
@media (max-width: 520px) {
  .tab { min-height: 40px; padding: 0 14px; font-size: .84rem; }
  .top-in { gap: 8px; width: calc(100% - 20px); }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.15rem; }
  .chips { gap: 6px; }
  .chip { min-height: 40px; padding: 0 12px; font-size: .86rem; }
  .chip-menu, .chip-call { width: 40px; padding: 0; }
}
