/* «Боташым-Ай»: лунная колыбельная. Сумеречное небо со звёздами и светлячками, логотип-луна с детьми оживает,
   разделы — пастельные «рассветы», контакты — снова ночь. Цвета берём из логотипа: лунно-жёлтый, зелёный, розовый, голубой. */

/* ---------- Шрифты: Comfortaa (заголовки) и Golos Text (текст), с казахскими буквами ә ғ қ ң ө ұ ү һ і ---------- */
@font-face { font-family: "Comfortaa"; font-weight: 500 700; font-display: swap; src: url("../assets/fonts/comfortaa-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: "Comfortaa"; font-weight: 500 700; font-display: swap; src: url("../assets/fonts/comfortaa-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Comfortaa"; font-weight: 500 700; font-display: swap; src: url("../assets/fonts/comfortaa-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: "Golos Text"; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/golos-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: "Golos Text"; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/golos-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/golos-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 {
  --night: #181b47; --night-2: #262a6b; --dusk: #5d4aa6; --rose: #f4a5c6;
  --moon: #fbc324; --moon-hi: #ffe48a; --moon-lo: #d99a0a;
  --green: #7aa942; --green-deep: #4b7a2a; --leaf: #a9c564; --green-soft: #e6f2d2;
  --pink: #ec86a8; --pink-deep: #c2557d; --pink-soft: #fde1ec;
  --blue: #62b3de; --blue-deep: #2b7fb0; --blue-soft: #d9eef9;
  --cream: #fff9ee; --paper: #fffdf8; --lilac: #efe9ff;
  --ink: #272559; --ink-soft: #5d5b86;
  --head: "Comfortaa", "Nunito", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lift: 0 14px 40px rgba(39, 37, 89, .14);
  --pop: 0 6px 0 rgba(39, 37, 89, .12);
  --bar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--blue-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; border-radius: 8px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 90; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 700; }
.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.15; letter-spacing: -.01em; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem); text-wrap: balance; }
h3 { font-size: 1.3rem; }

/* ---------- Кнопки и плашки ---------- */
.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(--head); font-weight: 700; font-size: 1.02rem; text-decoration: none; transition: transform .18s, box-shadow .18s, background .2s; }
.btn-main { background: linear-gradient(180deg, #ffd75a, var(--moon)); color: #3a2a00; box-shadow: 0 6px 0 var(--moon-lo), 0 14px 26px rgba(251, 195, 36, .35); }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--moon-lo), 0 18px 30px rgba(251, 195, 36, .4); }
.btn-main:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--moon-lo); }
.btn-line { border: 2px solid rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn-line:hover { background: rgba(255, 255, 255, .2); transform: translateY(-3px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-deep); }
.kicker::before { content: ""; width: 22px; height: 22px; background: radial-gradient(circle at 70% 40%, transparent 0 8px, var(--moon) 8.5px); border-radius: 50%; rotate: -18deg; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); color: #fff; font-weight: 600; font-size: .95rem; }
.pill .ico { color: var(--moon); }
.lede { max-width: 60ch; color: var(--ink-soft); font-size: 1.1rem; text-wrap: pretty; }
.inline { color: inherit; text-underline-offset: 3px; }

/* ---------- Шапка: прозрачная над небом, потом молочная; кольцо у логотипа — прогресс прокрутки ---------- */
.top { --p: 1; position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.top.is-stuck { background: rgba(255, 249, 238, .9); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(39, 37, 89, .1); }
.top-in { display: flex; align-items: center; gap: 22px; 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: #fff; transition: color .3s; }
.brand-mark { position: relative; display: grid; place-items: center; width: 54px; height: 54px; flex: none; }
.brand-mark::before { content: ""; position: absolute; inset: 1.2px; border: 2.8px solid rgba(255, 255, 255, .22); border-radius: 50%; }
.brand-mark img { width: 38px; height: 38px; border-radius: 50%; transition: rotate .6s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand-mark img { rotate: 24deg; }
.brand-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand-ring path { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.js .brand-ring .ra-1 { stroke-dashoffset: calc(100 - 100 * clamp(0, var(--p) * 4, 1)); }
.js .brand-ring .ra-2 { stroke-dashoffset: calc(100 - 100 * clamp(0, var(--p) * 4 - 1, 1)); }
.js .brand-ring .ra-3 { stroke-dashoffset: calc(100 - 100 * clamp(0, var(--p) * 4 - 2, 1)); }
.js .brand-ring .ra-0 { stroke-dashoffset: calc(100 - 100 * clamp(0, var(--p) * 4 - 3, 1)); }
.brand-text strong { display: block; white-space: nowrap; font-family: var(--head); font-size: 1.2rem; line-height: 1.05; }
.brand-text small { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.menu { display: flex; justify-content: center; flex: 1; gap: 2px; }
.menu a { white-space: nowrap; padding: 8px 13px; border-radius: 999px; color: rgba(255, 255, 255, .92); font-weight: 600; font-size: .96rem; text-decoration: none; transition: background .2s, color .2s; }
.menu a:hover { background: rgba(255, 255, 255, .16); }
.menu a.is-active { background: var(--moon); color: #3a2a00; }
.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: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; backdrop-filter: blur(6px); transition: background .2s, color .2s; }
.chip:hover { background: rgba(255, 255, 255, .26); }
.chip-menu { display: none; justify-content: center; width: 44px; padding: 0; cursor: pointer; }
.top.is-stuck .brand, .top.is-stuck .menu a { color: var(--ink); }
.top.is-stuck .menu a:hover { background: var(--pink-soft); }
.top.is-stuck .menu a.is-active { background: var(--moon); color: #3a2a00; }
.top.is-stuck .brand-mark::before { border-color: rgba(39, 37, 89, .12); }
.top.is-stuck .chip { border-color: rgba(39, 37, 89, .18); background: #fff; color: var(--ink); }

/* ---------- Первый экран: сумеречное небо, звёзды, облака, холмы, светлячки ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; padding: calc(var(--bar-h) + 34px) 0 clamp(150px, 20vw, 280px); display: flex; align-items: center; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #14173f 0%, #232768 26%, #4f3f9b 54%, #a65aa7 78%, #f09cc0 100%); }
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky-stars { position: absolute; inset: 0 0 20% 0; width: 100%; height: 80%; }
.tw { opacity: .85; }
.js .tw { animation: twinkle var(--t, 3s) ease-in-out var(--d, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .2; } }
.shoot { position: absolute; width: 150px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); opacity: 0; rotate: -24deg; }
.shoot-a { top: 14%; left: 64%; } .shoot-b { top: 30%; left: 28%; } .shoot-c { top: 8%; left: 38%; }
.js .shoot-a { animation: shoot 9s linear 2.5s infinite; }
.js .shoot-b { animation: shoot 13s linear 6s infinite; }
.js .shoot-c { animation: shoot 17s linear 10s infinite; }
@keyframes shoot { 0% { opacity: 0; translate: 0 0; } 1% { opacity: 1; } 7% { opacity: 0; translate: -340px 154px; } 100% { opacity: 0; translate: -340px 154px; } }
.hc { position: absolute; left: -380px; color: rgba(255, 236, 247, .1); }
.hc-1 { top: 22%; } .hc-2 { top: 40%; color: rgba(255, 236, 247, .1); } .hc-3 { top: 56%; color: rgba(255, 220, 240, .16); } .hc-4 { top: 10%; color: rgba(255, 236, 247, .08); }
.js .hc-1 { animation: cloud 120s linear -30s infinite; } .js .hc-2 { animation: cloud 170s linear -90s infinite; }
.js .hc-3 { animation: cloud 150s linear -10s infinite; } .js .hc-4 { animation: cloud 210s linear -150s infinite; }
@keyframes cloud { to { translate: calc(100vw + 760px) 0; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-text { display: grid; justify-items: start; gap: 18px; }
h1 { display: grid; gap: 14px; }
.hero-name { font-family: var(--head); font-weight: 700; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); color: var(--moon-hi); letter-spacing: .02em; }
.hero-name small { margin-left: 8px; font-size: .75em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ffd2e4; }
.hero-title { font-family: var(--head); font-weight: 700; font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.9rem); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 4px 30px rgba(20, 20, 70, .35); }
.hero-title em { font-style: normal; background: linear-gradient(100deg, #ffe48a, #ffb3d1 55%, #a9ddff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); font-weight: 600; font-size: .95rem; }
.hero-facts .ico { color: var(--moon); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 6px; }
.hero-logo { position: relative; justify-self: center; width: min(100%, 610px); }
.hero-logo::before { content: ""; position: absolute; inset: -9%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 226, 122, .55), rgba(255, 170, 210, .25) 48%, transparent 70%); }
.hero-logo::after { content: ""; position: absolute; inset: -4.5%; z-index: -1; border: 2px dashed rgba(255, 255, 255, .28); border-radius: 50%; }
.js .hero-logo::after { animation: spin 90s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.hero-note { position: absolute; right: -3%; top: 2%; display: flex; align-items: flex-end; gap: 4px; color: #ffe9b8; font-family: var(--head); font-weight: 700; rotate: 6deg; pointer-events: none; }
.hero-note svg { width: 48px; height: 38px; margin-bottom: -22px; rotate: 100deg; scale: -1 1; }
.js .hero-note { animation: nudge 2.4s ease-in-out 6s infinite; opacity: 0; animation-fill-mode: both; }
@keyframes nudge { 0%, 100% { opacity: 1; translate: 0 0; } 50% { opacity: 1; translate: 0 -6px; } }
.dr-scroll { stroke-dasharray: 1; }
.hills { position: absolute; inset: auto 0 0 0; z-index: 1; width: 100%; height: clamp(130px, 18vw, 260px); pointer-events: none; }
.h-back { fill: #6a55b0; } .h-mid { fill: #ee93bb; } .h-front { fill: var(--cream); }
.flies { position: absolute; inset: auto 0 0 0; z-index: 1; height: clamp(130px, 18vw, 260px); pointer-events: none; }
.fly { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff2a8; box-shadow: 0 0 10px 3px rgba(255, 226, 110, .8); opacity: .9; }
.js .fly { animation: fly var(--t, 8s) ease-in-out var(--d, 0s) infinite alternate; }
@keyframes fly { 0% { translate: -12px 6px; opacity: .2; } 50% { opacity: 1; } 100% { translate: 18px -14px; opacity: .3; } }
.hero .flies { z-index: 2; }

/* ---------- Разделы ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.head { display: grid; justify-items: start; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.head-center { justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }
.dr-scroll { stroke-dashoffset: 0; }

/* О саде: текст, планеты-цифры, «мобиль» и паспорт */
.about { background: var(--cream); }
.about::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 8% 12%, rgba(244, 165, 198, .22) 0 150px, transparent 152px), radial-gradient(circle at 96% 70%, rgba(98, 179, 222, .18) 0 190px, transparent 192px), radial-gradient(circle at 70% 4%, rgba(251, 195, 36, .2) 0 90px, transparent 92px); }
.about-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-text { display: grid; gap: 16px; justify-items: start; }
.about-text .head { margin-bottom: 2px; }
.medals { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; }
.medal { position: relative; display: grid; place-content: center; justify-items: center; width: 116px; height: 116px; border-radius: 50%; text-align: center; color: #fff; background: radial-gradient(circle at 32% 26%, #cde88e, var(--green) 62%, var(--green-deep)); box-shadow: 0 14px 28px rgba(75, 122, 42, .3); }
.medal::before { content: ""; position: absolute; inset: -8px; border: 2px dashed currentColor; border-radius: 50%; opacity: .35; }
.js .medal::before { animation: spin 40s linear infinite; }
.medal strong { font-family: var(--head); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.medal span { margin-top: 3px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.medal-a { color: var(--green-deep); }
.medal-a strong, .medal-a span { color: #fff; }
.medal-b { color: var(--moon-lo); background: radial-gradient(circle at 32% 26%, #ffeaa0, var(--moon) 62%, var(--moon-lo)); box-shadow: 0 14px 28px rgba(217, 154, 10, .3); }
.medal-b strong, .medal-b span { color: #4a3300; }
.medal-c { color: var(--pink-deep); background: radial-gradient(circle at 32% 26%, #ffc7da, var(--pink) 62%, var(--pink-deep)); box-shadow: 0 14px 28px rgba(194, 85, 125, .28); }
.about-values { position: relative; display: grid; gap: 6px; padding: clamp(14px, 3vw, 28px); border-radius: 44px; background: linear-gradient(180deg, #ece6ff, #fde3ee); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8), var(--lift); }
.mobile { width: min(100%, 500px); height: auto; margin-inline: auto; overflow: visible; }
.mob-lab { font: 700 15px var(--head); fill: var(--ink); }
.values-cap { text-align: center; font-family: var(--head); font-weight: 700; color: var(--pink-deep); }
.js .mob-all { transform-box: view-box; transform-origin: 50% 0; animation: rock 8s ease-in-out infinite; }
@keyframes rock { 0%, 100% { rotate: -1.4deg; } 50% { rotate: 1.4deg; } }
.js .mob-swing { transform-box: fill-box; transform-origin: 50% 0; animation: swing 4.6s ease-in-out calc(var(--i) * -1.2s) infinite alternate; }
@keyframes swing { from { rotate: -5deg; } to { rotate: 5deg; } }
.passport { position: relative; margin-top: clamp(36px, 5vw, 60px); padding: clamp(26px, 4vw, 44px); border-radius: 36px; background: #fff; box-shadow: var(--lift); }
.passport::before { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(236, 134, 168, .4); border-radius: 28px; pointer-events: none; }
.passport h3 { margin-bottom: 18px; font-size: 1.5rem; }
.passport dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.fact { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 4px 14px; padding: 12px 0; border-bottom: 2px dotted rgba(39, 37, 89, .16); }
.fact.wide { grid-column: 1 / -1; }
.fact dt { font-family: var(--head); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-deep); }
.fact dd { font-weight: 600; overflow-wrap: anywhere; }
.fact a { text-underline-offset: 3px; }
.fact a.inline { display: block; width: fit-content; margin-top: 3px; font-size: .9rem; color: var(--blue-deep); }
.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: 6px solid #fff; border-radius: 26px; box-shadow: var(--lift); }

/* Заведующая */
.team { background: linear-gradient(180deg, var(--cream), var(--lilac)); }
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.person { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; align-items: center; width: min(820px, 100%); padding: 32px 38px; border-radius: 44px; background: #fff; box-shadow: var(--lift); }
.person::after { content: ""; position: absolute; top: 18px; right: 24px; width: 56px; height: 56px; background: radial-gradient(circle at 68% 38%, transparent 0 18px, var(--moon) 19px); border-radius: 50%; rotate: -22deg; opacity: .9; }
.person-frame { position: relative; display: grid; place-items: center; }
.person-frame::before { content: ""; position: absolute; left: 50%; top: 50%; width: 118%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: conic-gradient(from 200deg, var(--leaf), var(--moon), var(--pink), var(--blue), var(--leaf)); -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 63%); mask: radial-gradient(circle, transparent 0 62%, #000 63%); opacity: .95; }
.js .person-frame::before { animation: spin 16s linear infinite; }
.person-photo { position: relative; width: 190px; aspect-ratio: 4 / 5; overflow: hidden; border: 6px solid #fff; border-radius: 100px 100px 28px 28px; background: var(--night-2); }
.person-photo img, .person-photo .avatar { display: block; width: 100%; height: 100%; object-fit: cover; }
.person-years { position: absolute; right: -14px; bottom: -14px; z-index: 2; display: grid; place-items: center; width: 82px; height: 82px; border: 4px solid #fff; border-radius: 50%; background: var(--moon); color: #3a2a00; text-align: center; line-height: 1; box-shadow: 0 8px 18px rgba(217, 154, 10, .4); }
.person-years strong { font-family: var(--head); font-size: 1.6rem; }
.person-years span { max-width: 64px; font-size: .5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.person-role { display: inline-block; padding: 4px 16px; margin-bottom: 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-deep); font-family: var(--head); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.person h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.person-edu, .person-group, .person-about { margin-top: 10px; color: var(--ink-soft); }
.person-edu span { margin-right: 8px; font-weight: 700; color: var(--pink-deep); }
.person-about { font-size: 1.04rem; }

/* Группы: арки с ночным небом и фазами луны */
.groups { background: linear-gradient(180deg, var(--lilac) 0%, #fbdce9 55%, #fdeadf 100%); }
.groups::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .6) 0 110px, transparent 112px), radial-gradient(circle at 4% 88%, rgba(255, 255, 255, .5) 0 160px, transparent 162px); }
.phases { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.phase { --tone: var(--moon); --tone-soft: #fff1bd; --tone-ink: #5a4100; position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 22px 30px; border-radius: 48px; background: #fff; text-align: center; box-shadow: var(--lift); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1), box-shadow .4s; }
.phase:nth-child(2) { margin-top: 38px; }
.phase:hover { transform: translateY(-10px) rotate(-.6deg); box-shadow: 0 24px 50px rgba(39, 37, 89, .2); }
.phase-pink { --tone: var(--pink); --tone-soft: var(--pink-soft); --tone-ink: #7a1f45; }
.phase-green { --tone: var(--green); --tone-soft: var(--green-soft); --tone-ink: #2f5416; }
.phase-art { width: min(100%, 230px); margin-bottom: 8px; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.phase:hover .phase-art { transform: translateY(-6px) scale(1.04); }
.scene { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(39, 37, 89, .28)); }
.js .sc-bob { animation: bob 2.8s ease-in-out infinite; }
.js .sc-bal-1 { animation: balloon 4.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.js .sc-bal-2 { animation: balloon 5.4s ease-in-out -1.6s infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.js .sc-bal-3 { animation: balloon 4s ease-in-out -2.4s infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes balloon { 0%, 100% { rotate: -4deg; translate: 0 0; } 50% { rotate: 5deg; translate: 0 -6px; } }
.phase-age { display: inline-block; padding: 4px 18px; border-radius: 999px; background: var(--tone-soft); color: var(--tone-ink); font-family: var(--head); font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.phase h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--tone-ink); }
.phase-motto { max-width: 20ch; color: var(--ink-soft); font-weight: 500; }
.phase-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--tone); color: #fff; font-family: var(--head); font-weight: 700; text-decoration: none; box-shadow: 0 5px 0 rgba(0, 0, 0, .14); transition: transform .15s, box-shadow .15s; }
.phase-yellow .phase-link { color: #3a2a00; }
.phase-link:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(0, 0, 0, .16); }

/* Кружки: звёзды-созвездие */
.extras { background: var(--cream); }
.clubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 24px; }
.club { --tone: var(--moon); --tone-soft: #fff1bd; position: relative; display: flex; flex-direction: column; border-radius: 36px; background: #fff; box-shadow: var(--lift); overflow: hidden; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s; }
.club:hover { transform: translateY(-8px); box-shadow: 0 24px 46px rgba(39, 37, 89, .18); }
.club-1 { --tone: var(--pink); --tone-soft: var(--pink-soft); } .club-2 { --tone: var(--blue); --tone-soft: var(--blue-soft); } .club-3 { --tone: var(--green); --tone-soft: var(--green-soft); }
.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: 150px; overflow: hidden; background: radial-gradient(circle at 50% 120%, var(--tone-soft), #fff 70%); }
.club-media::before { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 2px dashed var(--tone); opacity: .45; }
.js .club-media::before { animation: spin 30s linear infinite; }
.club-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.extra-ico { position: relative; width: 84px; height: 84px; padding: 19px; border-radius: 50%; background: var(--tone); color: #fff; box-shadow: 0 10px 22px rgba(39, 37, 89, .2), inset 0 -5px 0 rgba(0, 0, 0, .1); stroke-width: 3; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.club-0 .extra-ico { color: #3a2a00; }
.club:hover .extra-ico { transform: scale(1.12) rotate(-8deg); }
.club-body { display: grid; align-content: start; gap: 6px; padding: 18px 24px 26px; }
.club-title { font-family: var(--head); font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.club-meta { font-size: .86rem; font-weight: 700; color: var(--pink-deep); }
.club-text { color: var(--ink-soft); font-size: .98rem; }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--head); font-weight: 700; color: var(--blue-deep); }
.story-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: rgba(24, 27, 71, .8); color: #fff; font-size: .82rem; font-weight: 700; }

/* Галерея */
.gallery { background: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tab { min-height: 44px; padding: 0 20px; border: 2px solid var(--pink-soft); border-radius: 999px; background: #fff; font-family: var(--head); font-size: .98rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: transform .15s, background .2s; }
.tab:hover { transform: translateY(-2px); background: var(--pink-soft); }
.tab.is-on { background: var(--moon); border-color: var(--moon); color: #3a2a00; }
.album { column-width: 260px; column-gap: 24px; }
.album figure { position: relative; break-inside: avoid; margin: 0 0 24px; }
.album figure:nth-child(3n+1) { rotate: -1.2deg; } .album figure:nth-child(3n+2) { rotate: 1deg; } .album figure:nth-child(3n) { rotate: -.4deg; }
.photo-btn { position: relative; display: block; width: 100%; padding: 8px; border: 0; border-radius: 26px; background: var(--cream); overflow: hidden; box-shadow: var(--lift); cursor: zoom-in; transition: transform .3s; }
.photo-btn:hover { transform: translateY(-5px) rotate(.8deg); }
.photo-btn img { display: block; width: 100%; height: auto; border-radius: 19px; }
.photo-btn figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 28px 16px 12px; border-radius: 0 0 19px 19px; background: linear-gradient(transparent, rgba(24, 27, 71, .85)); color: #fff; font-family: var(--head); font-weight: 600; text-align: left; opacity: 0; transition: opacity .25s; }
.photo-btn:hover figcaption, .photo-btn:focus-visible figcaption { opacity: 1; }
.album figure[hidden] { display: none; }
.album-more { display: flex; margin: 18px auto 0; border-color: var(--pink); color: var(--pink-deep); background: transparent; }
.album-more:hover { background: var(--pink-soft); }
.note { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 34px 20px; border: 2px dashed rgba(236, 134, 168, .55); border-radius: 30px; background: var(--cream); font-weight: 600; color: var(--ink-soft); text-align: center; }

/* Новости */
.news { background: linear-gradient(180deg, #fff, #fff6d8); }
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 26px; }
.story { overflow: hidden; border-radius: 34px; background: #fff; box-shadow: var(--lift); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.story:hover { transform: translateY(-7px) rotate(-.4deg); }
.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(--blue-soft); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story:hover .story-img img { transform: scale(1.06); }
.story-img-empty { display: grid; place-items: center; background: linear-gradient(180deg, #2a2f78, #6b57b0 60%, #f3a6c4); }
.story-img-empty img { width: 58%; height: 100%; object-fit: contain; }
.story-body { display: grid; gap: 6px; padding: 18px 24px 26px; }
.story-body time { font-size: .86rem; font-weight: 700; color: var(--pink-deep); }
.story-title { font-family: var(--head); font-size: 1.28rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.story-excerpt { color: var(--ink-soft); font-size: .98rem; }

/* Документы и вакансии */
.docs { background: var(--cream); }
.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: 20px; margin-top: 20px; }
.doc-set, .jobs { padding: 26px 28px; border-radius: 32px; background: #fff; box-shadow: var(--lift); }
.jobs { background: linear-gradient(160deg, #ece6ff, #fde3ee); }
.doc-set h3, .jobs h3 { margin-bottom: 12px; font-size: 1.3rem; }
.doc-set li { display: grid; gap: 2px; padding: 10px 0; border-top: 2px dotted rgba(39, 37, 89, .14); }
.doc-set li:first-child { border-top: 0; }
.doc-set a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
.doc-set a:hover { color: var(--blue-deep); }
.doc-set a .ico { color: var(--pink-deep); }
.doc-set small { margin-left: 32px; color: var(--ink-soft); font-weight: 600; }
.job { margin-top: 14px; padding-top: 14px; border-top: 2px dashed rgba(39, 37, 89, .22); }
.job summary { cursor: pointer; font-weight: 700; }
.job p { margin-top: 8px; }
.job a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--head); font-weight: 700; color: var(--pink-deep); }

/* Контакты: ночь, звёзды, карточка-«открытка» */
.contact { position: relative; isolation: isolate; padding-bottom: 0; padding-top: clamp(96px, 11vw, 150px); border-radius: 50% 50% 0 0 / 70px 70px 0 0; background: linear-gradient(180deg, #181b47, #262a6b 55%, #3b2f80); color: #fff; overflow: hidden; }
.night-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.night-sky .sky-stars { inset: 0; height: 100%; }
.night-sky .tw-big { opacity: .45; }
.contact h2 { color: #fff; }
.contact .kicker { color: var(--moon-hi); }
.contact .lede { color: #d6d3ff; }
.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-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1.1; text-decoration: none; color: var(--moon); transition: color .2s, transform .2s; }
.contact-phone:hover { color: #fff; transform: translateX(4px); }
.contact-list { display: grid; gap: 12px; margin-top: 6px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.contact-list .ico { margin-top: .22em; color: var(--moon); }
.contact-list a { text-underline-offset: 3px; color: #a9ddff; }
.social-label { margin-top: 8px; font-family: var(--head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; color: #b9b5ee; }
.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(255, 228, 138, .6); border-radius: 999px; font-family: var(--head); font-weight: 700; text-decoration: none; color: var(--moon-hi); transition: background .2s, color .2s, transform .2s; }
.socials a:hover { background: var(--moon); color: #3a2a00; transform: translateY(-3px); }
.form { position: relative; padding: 42px 36px 34px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 44px; background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(8, 8, 40, .5), inset 0 1px 0 rgba(255, 255, 255, .3); }
.seal { position: absolute; top: -34px; right: 30px; display: grid; place-items: center; width: 78px; height: 78px; border: 4px solid #fff; border-radius: 50%; background: var(--night-2); box-shadow: 0 10px 24px rgba(8, 8, 40, .5), 0 0 0 6px rgba(251, 195, 36, .35); overflow: hidden; rotate: 8deg; }
.seal img { width: 100%; height: 100%; }
.form h3 { max-width: calc(100% - 90px); font-size: 1.9rem; color: #fff; }
.form label { display: block; margin: 16px 0 6px; font-family: var(--head); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #cfcaff; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 13px 16px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 16px; background: rgba(12, 12, 52, .45); font-weight: 500; color: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .45); }
.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='%23ffe48a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px; padding-right: 42px; }
.form select option { color: #181b47; }
.form textarea { resize: vertical; min-height: 100px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--moon); background-color: rgba(12, 12, 52, .7); box-shadow: 0 0 0 4px rgba(251, 195, 36, .22); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-family: var(--body); font-size: .9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #d6d3ff; }
.form .consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--moon); }
.form .btn { width: 100%; margin-top: 22px; }
.form-note { display: none; margin-top: 14px; font-weight: 700; color: var(--moon-hi); }
.form-note.show { display: block; }
.form-note.error { color: #ff9fb8; }
.hp-field { position: absolute; left: -9999px; }
.map { display: block; width: 100%; height: 340px; margin-top: 64px; border: 0; border-radius: 40px; box-shadow: 0 24px 60px rgba(8, 8, 40, .5); background: var(--night-2); }
.foot { margin-top: 64px; padding-top: 34px; background: #11143a; }
.foot-bye { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--moon-hi); text-align: center; }
.foot-bye .ico { width: 1em; height: 1em; fill: var(--moon); stroke: var(--moon); }
.js .foot-bye .ico { animation: twinkle 3s ease-in-out infinite; }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; padding: 22px 0 28px; }
.foot-in img { flex: none; border-radius: 50%; background: #fff; }
.foot-in p { margin-right: auto; font-weight: 500; color: #b9b5ee; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; text-decoration: none; color: var(--moon-hi); }
.foot-in a:hover { color: #fff; }

/* Просмотр фото и новости */
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(14, 16, 50, .92); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; max-width: min(1000px, 78vw); border: 6px solid #fff; border-radius: 22px; }
.lightbox figcaption { margin-top: 12px; color: #fff; font-family: var(--head); font-size: 1.1rem; }
.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(--moon); color: #3a2a00; cursor: pointer; box-shadow: 0 5px 0 var(--moon-lo); }
.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(8, 8, 40, .5); overflow: auto; }
.news-dialog::backdrop { background: rgba(14, 16, 50, .78); }
.nd-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.nd-stage { position: relative; background: #11143a; }
.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: 700; 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(--cream); }
.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(--moon); 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: 700; color: var(--pink-deep); }
.nd-body h3 { margin: .15em 0 .5em; font-size: 1.9rem; }

/* ===================================================================================
   ЛОГОТИП (includes/art.php → bm_logo_svg()). Базовые стили — готовая картинка; движение включает класс .js на <html>
   (его нет при «уменьшить движение»), поэтому без анимации логотип просто собран.
   Слои: .bml-p (параллакс от курсора, --d — глубина) > .bml-in (появление) > .bml-idle… (бесконечное «дыхание»).
   =================================================================================== */
.bml { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.bml:focus-visible { outline: 3px solid var(--moon); outline-offset: 6px; border-radius: 50%; }
.bml-svg { display: block; width: 100%; height: auto; overflow: visible; }
.bml-shadow { filter: drop-shadow(0 22px 34px rgba(10, 8, 50, .5)); }
.bml-arc { stroke-dasharray: 1; }
.bml-comet { fill: none; stroke-width: 9; stroke-dasharray: .05 .95; opacity: 0; }
.bml-p { transform: translate(calc(var(--px, 0) * var(--d, 0) * 1px), calc(var(--py, 0) * var(--d, 0) * 1px)); transition: transform .35s cubic-bezier(.2, .8, .3, 1); }
.bml-lab { font: 700 12.5px var(--head); fill: #47543a; }
.bml-lid { transform-box: fill-box; transform-origin: 50% 50%; transform: scaleY(0); }
.bml-shine { transform: skewX(-18deg) translateX(-200px); }
.bml-badge-in { transition: transform .25s cubic-bezier(.3, 1.8, .5, 1); transform-box: fill-box; transform-origin: 50% 50%; }
.bml-badge-in:hover { transform: scale(1.14); }
.bml-hills-in, .bml-badge-in, .bml-heart-in { cursor: pointer; }

.js .bml-plate { transform-box: fill-box; transform-origin: 50% 50%; animation: bml-pop .9s cubic-bezier(.2, 1.3, .4, 1) backwards; }
@keyframes bml-pop { from { transform: scale(.35); opacity: 0; } }
.js .bml-arc { animation: bml-draw .85s cubic-bezier(.5, 0, .2, 1) backwards; }
.js .bml-arc-1 { animation-delay: .35s; } .js .bml-arc-2 { animation-delay: .65s; } .js .bml-arc-3 { animation-delay: .95s; } .js .bml-arc-4 { animation-delay: 1.25s; }
@keyframes bml-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.js .bml-comet { opacity: .8; animation: bml-comet 8s linear 3.6s infinite backwards; }
@keyframes bml-comet { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }

.js .bml-cloud-l { animation: bml-cloud-l 1.1s cubic-bezier(.2, .9, .3, 1) 1.05s backwards; }
.js .bml-cloud-r { animation: bml-cloud-r 1.1s cubic-bezier(.2, .9, .3, 1) 1.2s backwards; }
@keyframes bml-cloud-l { from { transform: translateX(-90px); opacity: 0; } }
@keyframes bml-cloud-r { from { transform: translateX(90px); opacity: 0; } }
.js .bml-drift { animation: bml-drift 9s ease-in-out 2.3s infinite alternate; }
.js .bml-cloud-r .bml-drift { animation-duration: 11s; animation-direction: alternate-reverse; }
@keyframes bml-drift { from { transform: translateX(-6px); } to { transform: translateX(8px); } }

.js .bml-star-in { transform-box: fill-box; transform-origin: 50% 50%; animation: bml-starpop .8s cubic-bezier(.2, 1.7, .4, 1) var(--delay, 1s) backwards; }
@keyframes bml-starpop { from { transform: scale(0) rotate(-140deg); opacity: 0; } }
.js .bml-star { transform-box: fill-box; transform-origin: 50% 50%; animation: bml-twinkle calc(2.4s + var(--i) * .33s) ease-in-out calc(2.4s + var(--i) * -.5s) infinite; }
@keyframes bml-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.74) rotate(16deg); opacity: .66; } }

.js .bml-moon-in { transform-box: fill-box; transform-origin: 50% 0; animation: bml-moon-in 1.4s cubic-bezier(.3, 1.1, .5, 1) .5s backwards; }
@keyframes bml-moon-in { 0% { transform: translateY(-330px) rotate(-42deg); opacity: 0; } 22% { opacity: 1; } 58% { transform: translateY(28px) rotate(8deg); } 78% { transform: translateY(-9px) rotate(-3deg); } 100% { transform: none; } }
.js .bml-moon-idle { transform-box: fill-box; transform-origin: 50% -80%; animation: bml-sway 8s ease-in-out 1.9s infinite; }
@keyframes bml-sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(2.4deg) translateY(-1px); } 75% { transform: rotate(-2.4deg) translateY(-1px); } }
.js .bml-glow { transform-box: fill-box; transform-origin: 50% 50%; animation: bml-glow 4.4s ease-in-out 1.6s infinite; }
@keyframes bml-glow { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.08); } }

.js .bml-kid { transform-box: fill-box; transform-origin: 50% 100%; animation: bml-kidpop .9s cubic-bezier(.2, 1.5, .4, 1) 1.6s backwards; }
.js .bml-kid-girl { animation-delay: 1.85s; }
@keyframes bml-kidpop { 0% { transform: translateY(36px) scale(.3, .15); opacity: 0; } 55% { transform: translateY(-8px) scale(.92, 1.16); opacity: 1; } 78% { transform: translateY(0) scale(1.06, .94); } 100% { transform: none; } }
.js .bml-kids { transform-box: fill-box; transform-origin: 50% 100%; animation: bml-hop 7s ease-in-out 4.6s infinite; }
@keyframes bml-hop { 0%, 84%, 100% { transform: none; } 88% { transform: translateY(0) scale(1.03, .96); } 92% { transform: translateY(-9px) scale(.98, 1.04); } 96% { transform: translateY(0) scale(1.03, .96); } }
.bml-arm { transform-box: fill-box; }
.bml-arm-boy { transform-origin: 76% 74%; } .bml-arm-girl { transform-origin: 20% 75%; }
.js .bml-arm-boy { animation: bml-wave-b 5.4s ease-in-out 2.9s infinite; }
.js .bml-arm-girl { animation: bml-wave-g 5.4s ease-in-out 3.4s infinite; }
@keyframes bml-wave-b { 0%, 40%, 100% { transform: rotate(0); } 6% { transform: rotate(-17deg); } 12% { transform: rotate(10deg); } 18% { transform: rotate(-17deg); } 24% { transform: rotate(10deg); } 30% { transform: rotate(-13deg); } 36% { transform: rotate(0); } }
@keyframes bml-wave-g { 0%, 40%, 100% { transform: rotate(0); } 6% { transform: rotate(17deg); } 12% { transform: rotate(-10deg); } 18% { transform: rotate(17deg); } 24% { transform: rotate(-10deg); } 30% { transform: rotate(13deg); } 36% { transform: rotate(0); } }
.js .bml-lid { animation: bml-blink 4.8s linear calc(3s + var(--b) * .35s) infinite; }
@keyframes bml-blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }

.js .bml-title-in { animation: bml-wipe 1s cubic-bezier(.5, 0, .2, 1) 2.35s backwards; }
@keyframes bml-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .bml-shine { animation: bml-shine 7s ease-in-out 4.6s infinite; }
@keyframes bml-shine { 0% { transform: skewX(-18deg) translateX(-200px); } 20%, 100% { transform: skewX(-18deg) translateX(620px); } }
.js .bml-sub-in { animation: bml-rise .8s ease-out 3s backwards; }
@keyframes bml-rise { from { opacity: 0; transform: translateY(14px); } }
.js .bml-heart-in { transform-box: fill-box; transform-origin: 50% 70%; animation: bml-heartpop .8s cubic-bezier(.2, 1.9, .4, 1) 3.2s backwards; }
@keyframes bml-heartpop { from { transform: scale(0); opacity: 0; } }
.js .bml-heart { transform-box: fill-box; transform-origin: 50% 70%; animation: bml-beat 1.9s ease-in-out 4.1s infinite; }
@keyframes bml-beat { 0%, 60%, 100% { transform: scale(1); } 10% { transform: scale(1.14); } 22% { transform: scale(.98); } 34% { transform: scale(1.08); } }
.js .bml-ray { stroke-dasharray: 1; animation: bml-draw .5s ease-out 3.5s backwards; }
.js .bml-rays { animation: bml-flick 1.9s ease-in-out 4.1s infinite; }
@keyframes bml-flick { 0%, 60%, 100% { opacity: .55; } 12% { opacity: 1; } }

.js .bml-hills-in { animation: bml-rise-big 1s cubic-bezier(.2, .9, .3, 1) 1.95s backwards; }
@keyframes bml-rise-big { from { transform: translateY(110px); } }
.js .bml-badge-in { animation: bml-badgepop .7s cubic-bezier(.2, 1.9, .4, 1) calc(2.6s + var(--i) * .17s) backwards; }
@keyframes bml-badgepop { from { transform: scale(0); opacity: 0; } }
.js .bml-badge { transform-box: fill-box; transform-origin: 50% 50%; animation: bml-bob 3.4s ease-in-out calc(3.8s + var(--i) * .5s) infinite; }
@keyframes bml-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.js .bml-br-in { animation: bml-grow 1.2s cubic-bezier(.3, .8, .3, 1) 2.3s backwards; }
@keyframes bml-grow { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.bml-br { transform-box: fill-box; }
.bml-br-l { transform-origin: 51% 98%; } .bml-br-r { transform-origin: 46% 96%; }
.js .bml-br-l { animation: bml-br 6.4s ease-in-out 3.6s infinite; }
.js .bml-br-r { animation: bml-br 7.2s ease-in-out 4s infinite reverse; }
@keyframes bml-br { 0%, 100% { transform: rotate(0); } 33% { transform: rotate(2.2deg); } 66% { transform: rotate(-1.8deg); } }

/* «Ура!» по нажатию */
.bml.is-cheer .bml-kids { animation: bml-jump .85s cubic-bezier(.3, 1.2, .5, 1) 1; }
@keyframes bml-jump { 0% { transform: none; } 14% { transform: scale(1.08, .88); } 44% { transform: translateY(-30px) scale(.94, 1.1); } 76% { transform: translateY(0) scale(1.07, .92); } 100% { transform: none; } }
.bml.is-cheer .bml-arm-boy { animation: bml-wave-fast .45s ease-in-out 2; }
.bml.is-cheer .bml-arm-girl { animation: bml-wave-fast-g .45s ease-in-out 2; }
@keyframes bml-wave-fast { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-20deg); } 75% { transform: rotate(14deg); } }
@keyframes bml-wave-fast-g { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(20deg); } 75% { transform: rotate(-14deg); } }
.bml.is-cheer .bml-star { animation: bml-star-cheer .9s ease-out 1; }
@keyframes bml-star-cheer { 0% { transform: scale(1); } 40% { transform: scale(1.9) rotate(160deg); } 100% { transform: scale(1) rotate(360deg); } }
.bml.is-cheer .bml-crescent { animation: bml-moon-pulse .8s ease-out 1; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes bml-moon-pulse { 40% { transform: scale(1.05); filter: brightness(1.15); } }
.bml.is-cheer .bml-heart { animation: bml-beat-fast .8s ease-in-out 1; }
@keyframes bml-beat-fast { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.3); } 40% { transform: scale(1); } 60% { transform: scale(1.22); } }
.bml.is-paused *, .hero.is-paused * { animation-play-state: paused !important; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--delay, 0s), transform .8s cubic-bezier(.2, .9, .3, 1) var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .phase.reveal.is-in:hover { transform: translateY(-10px) rotate(-.6deg); transition-delay: 0s; transition-duration: .4s; }
.js .club.reveal.is-in:hover, .js .story.reveal.is-in:hover { transition-delay: 0s; transition-duration: .3s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
  .menu a { padding: 8px 10px; font-size: .9rem; }
  .brand-text small { display: none; }
}
@media (max-width: 1100px) {
  .chip-menu { display: inline-flex; }
  .chip-call span { display: none; }
  .chip-call { width: 44px; 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: #fff; box-shadow: 0 24px 60px rgba(24, 27, 71, .3); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 18px; border-radius: 18px; color: var(--ink); font-size: 1.05rem; }
  .menu a:hover { background: var(--pink-soft); }
  .hero { padding-top: calc(var(--bar-h) + 20px); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { justify-items: center; order: 2; }
  .hero-logo { order: 1; width: min(100%, 520px); }
  .hero-note { display: none; }
  .hero-facts, .hero-actions { justify-content: center; }
  .about-grid, .contact-grid, .docs-grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .phase:nth-child(2) { margin-top: 0; }
  .passport dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .person { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 22px; gap: 26px; }
  .person-info { display: grid; justify-items: center; }
  .fact { grid-template-columns: 1fr; }
  .form { padding: 38px 22px 28px; }
  .seal { right: 18px; width: 66px; height: 66px; }
  .map { height: 280px; border-radius: 28px; }
  .medal { width: 100px; height: 100px; } .medal strong { font-size: 1.9rem; }
  .brand-text strong { font-size: 1.08rem; }
  .foot-in { justify-content: center; text-align: center; } .foot-in p { margin-right: 0; width: 100%; }
}
@media (max-width: 520px) {
  .top-in { gap: 8px; width: calc(100% - 20px); }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 46px; height: 46px; } .brand-mark img { width: 32px; height: 32px; }
  .brand-text strong { font-size: 1rem; }
  .chips { gap: 6px; }
  .chip { min-height: 40px; padding: 0 12px; font-size: .88rem; }
  .chip-menu, .chip-call { width: 40px; padding: 0; }
}
