/* Болашақ-2015 и Нұрболашақ-2018: два сада, у каждого своя тема.
   «Болашақ-2015» — национальный орнамент, небо и золото логотипа (синий, золотой, бирюзовый);
   «Нұрболашақ-2018» — «нұр» (свет): бирюза, коралл и солнечно-жёлтый, воздушные шары. Общее (сетка, разделы, формы) — ниже. */

/* ---------- Шрифты (все с казахскими буквами ә ғ қ ң ө ұ ү һ і) ---------- */
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-400.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-700.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-800.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }

/* ---------- Темы ---------- */
:root, .theme-hub {
  --bg: #f3faff;
  --paper: #ffffff;
  --cream: #e4f3fb;
  --beige: #cde6f4;
  --head: #12307a;
  --accent: #1b66c9;
  --accent-hover: #2f7fe0;
  --kicker: #0e7c8a;
  --soft-a: #ffc23a;
  --soft-b: #1db5a8;
  --soft-c: #ff8a5c;
  --ink: #1b2a4e;
  --ink-soft: #53648a;
  --line: rgba(18, 48, 122, .16);
  --display: "Rubik", "Arial Rounded MT Bold", system-ui, sans-serif;
  --display-weight: 800;
  --display-scale: 1;
  --glow-a: #cfe9ff;
  --glow-b: #c9f4ec;
  --glow-c: #fff0c2;
  --orb-0: radial-gradient(circle at 35% 30%, #ffe27a, #ffc23a 55%, #e09a10);
  --orb-1: radial-gradient(circle at 35% 30%, #6cc4ff, #1b8fd6 55%, #1160a8);
  --orb-2: radial-gradient(circle at 35% 30%, #7fe3d6, #1db5a8 55%, #107f78);
}
.theme-bolashak {
  --bg: #f2f9ff;
  --cream: #e3f1fb;
  --beige: #c8e2f4;
  --head: #12307a;
  --accent: #1b66c9;
  --accent-hover: #2f7fe0;
  --kicker: #a87400;
  --soft-a: #f2b92f;
  --soft-b: #1b8fd6;
  --soft-c: #ffe08a;
  --glow-a: #d6ecff;
  --glow-b: #fff1c4;
  --glow-c: #cfeff4;
}
.theme-nurbolashak {
  --bg: #f1fbf8;
  --paper: #ffffff;
  --cream: #dff6ef;
  --beige: #bfeadf;
  --head: #0f4f55;
  --accent: #e8604a;
  --accent-hover: #f27a63;
  --kicker: #0e8a86;
  --soft-a: #ff8a5c;
  --soft-b: #1db5a8;
  --soft-c: #ffd23f;
  --ink: #173a3d;
  --ink-soft: #4d6e70;
  --line: rgba(15, 79, 85, .16);
  --glow-a: #bff3ea;
  --glow-b: #ffe1cf;
  --glow-c: #fff3c2;
  --orb-0: radial-gradient(circle at 35% 30%, #ffab8f, #e8604a 55%, #b8402c);
  --orb-1: radial-gradient(circle at 35% 30%, #7fe3d6, #1db5a8 55%, #107f78);
  --orb-2: radial-gradient(circle at 35% 30%, #ffe27a, #ffd23f 55%, #e0a410);
}
:root { --bar-h: 70px; --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; --soft: 0 14px 40px rgba(20, 50, 90, .11); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 18px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); 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(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--soft-a); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 800; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 56px); margin-inline: auto; }
.muted { color: var(--ink-soft); }

h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.08; color: var(--head); }
h2 { font-size: calc(clamp(2rem, 1.45rem + 2.4vw, 3.3rem) * var(--display-scale)); text-wrap: balance; }
h3 { font-size: calc(1.4rem * var(--display-scale)); }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 800; font-size: .96rem; letter-spacing: .02em; color: var(--kicker); }
.kicker .ico { color: var(--soft-a); fill: currentColor; stroke: none; width: 1em; height: 1em; }
.lede { margin-top: 14px; font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }
.head { margin-bottom: 42px; }
.head-center { text-align: center; }
.head-center .lede { margin-inline: auto; }

/* ---------- Фон ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
#nature { position: absolute; inset: 0; width: 100%; height: 100%; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.glow-a { width: 52vmax; height: 52vmax; right: -18vmax; top: -22vmax; background: var(--glow-a); opacity: .7; animation: glow-a 18s ease-in-out infinite alternate; }
.glow-b { width: 44vmax; height: 44vmax; left: -20vmax; top: 34vh; background: var(--glow-b); opacity: .6; animation: glow-b 24s ease-in-out infinite alternate; }
.glow-c { width: 38vmax; height: 38vmax; right: -12vmax; bottom: -16vmax; background: var(--glow-c); opacity: .55; animation: glow-c 21s ease-in-out infinite alternate; }
@keyframes glow-a { to { transform: translate(-7vmax, 5vmax) scale(1.14); } }
@keyframes glow-b { to { transform: translate(8vmax, -6vmax) scale(.9); } }
@keyframes glow-c { to { transform: translate(-6vmax, -7vmax) scale(1.12); } }

/* След при прокрутке: солнышки («Болашақ-2015») или цветы («Нұрболашақ-2018») — js/main.js */
main { position: relative; isolation: isolate; }
.vine { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; pointer-events: none; }
.vine-line { fill: none; stroke: var(--soft-a); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 2 9; opacity: .7; }
.vine-node { transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1), opacity .4s; }
.vine-node.on { transform: scale(1); opacity: 1; }

/* ---------- Шапка ---------- */
.bar {
  position: fixed; top: 10px; left: 50%; z-index: 30; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; width: min(1360px, 100% - 20px); min-height: 60px; padding: 6px 10px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 26px rgba(60, 50, 40, .08);
}
.bar-home { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 800; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.bar-home:hover { background: var(--beige); }
.bar-brand { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; color: var(--head); text-decoration: none; font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.15rem * var(--display-scale)); line-height: 1; white-space: nowrap; }
.bar-brand img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.hub-word { font-size: 1.6rem; letter-spacing: .01em; padding-left: 10px; }
.bar-nav { display: flex; align-items: center; gap: 2px; }
.bar-nav a { padding: 8px 11px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .93rem; text-decoration: none; transition: background .2s, color .2s; white-space: nowrap; }
.bar-nav a:hover { background: var(--cream); }
.bar-nav a.is-active { background: var(--accent); color: #fff; }
.bar-nav .nav-other { display: none; }
.bar-lang { display: grid; place-items: center; min-width: 48px; height: 44px; border-radius: 999px; background: var(--cream); color: var(--head); font-weight: 800; font-size: .84rem; text-decoration: none; }
.bar-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bar-call:hover { background: var(--accent-hover); }
.bar-menu { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--head); cursor: pointer; }

/* ---------- Первый экран сада ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--bar-h) + 30px) 0 180px; overflow: hidden; display: flex; align-items: center; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
h1 { font-size: calc(clamp(2.2rem, 1.3rem + 3.3vw, 4rem) * var(--display-scale)); line-height: 1.04; text-wrap: balance; }
.hero-name { display: block; margin-bottom: 14px; font-family: var(--body); font-weight: 800; font-size: clamp(.98rem, .9rem + .3vw, 1.12rem); line-height: 1.35; color: var(--kicker); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: .96rem; }
.hero-facts .ico { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 1.05rem; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--accent); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-main:hover { background: var(--accent-hover); }
.btn-line { background: var(--paper); border-color: var(--accent); color: var(--accent); }
.btn-line:hover { background: var(--accent); color: #fff; }
.hero-logo { position: relative; justify-self: center; width: min(100%, 480px, calc((100svh - var(--bar-h) - 170px) * .86)); }
.hero-halo { position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--paper) 0 44%, color-mix(in srgb, var(--glow-a) 70%, transparent) 60%, transparent 72%); }

/* Сцены первого экрана: степь с юртой («Болашақ-2015») и воздушные шары над холмами («Нұрболашақ-2018») */
.scene { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 260px; z-index: 1; }

/* ---------- Живые логотипы ---------- */
.ll { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; container-type: inline-size; -webkit-tap-highlight-color: transparent; text-align: center; }
.ll-emblem { display: block; width: 78%; margin: 0 auto; filter: drop-shadow(0 14px 22px rgba(120, 50, 20, .18)); }
.ll-art { width: 100%; height: auto; overflow: visible; }
.ll-word { display: block; margin-top: 2%; font: 800 clamp(2.2rem, 21cqw, 5.4rem)/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.ll-sub { display: block; margin-top: 2.5%; font: 800 clamp(.62rem, 4.1cqw, 1.2rem)/1 var(--body); letter-spacing: .34em; padding-left: .34em; white-space: nowrap; }
.ll-l { display: inline-block; }
.ll-spark { position: fixed; z-index: 50; width: 22px; pointer-events: none; }
.st-flower .fl { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {


  /* Название по буквам */
  .ll-word .ll-l { animation: letter-drop .75s calc(2.2s + var(--i) * 95ms) cubic-bezier(.3, 1.6, .5, 1) both; }
  .ll-sub .ll-l { animation: letter-rise .5s calc(3.1s + var(--i) * 45ms) ease-out both; }
  .ll.is-paused, .ll.is-paused * { animation-play-state: paused !important; }

  .hero-halo { animation: halo 7s ease-in-out infinite alternate; }
    .sphere { animation: bob-big 6s ease-in-out infinite alternate; }
  .sphere-b { animation-duration: 7.4s; animation-delay: -2s; }

  /* Рисунки групп оживают, когда карточка на экране */
  .js .stage .st-sun { transform-box: fill-box; transform-origin: center; transform: scale(.5); }
  .js .stage.is-in .st-sun { transform: scale(1); transition: transform .9s .2s cubic-bezier(.3, 1.6, .5, 1); }
  .js .stage.is-in .st-rays { animation: spin 40s linear infinite; }
  .js .stage .st-flower .fl, .js .stage .st-bud, .js .stage .st-leaf { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); }
  .js .stage.is-in .st-flower .fl, .js .stage.is-in .st-bud, .js .stage.is-in .st-leaf { transform: scale(1); transition: transform .7s .35s cubic-bezier(.3, 1.8, .5, 1); }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); transition-delay: var(--delay, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
.st-rays, .st-sun { transform-box: fill-box; transform-origin: center; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hill-up { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sun-rise { from { transform: translateY(150px) scale(.8); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes ripple { to { stroke-dashoffset: -1.2; } }
@keyframes ripple-h { to { stroke-dashoffset: -330; } }
@keyframes boat-in { from { transform: translateY(-26px) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drift-x { from { transform: translate(-12px, 0) rotate(-2deg); } to { transform: translate(12px, 2px) rotate(2deg); } }
@keyframes bob-rock { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-3px); } }
@keyframes fly { from { transform: translate(-10px, 3px) scaleY(1); } 50% { transform: translate(8px, -4px) scaleY(.55); } to { transform: translate(24px, 2px) scaleY(1); } }
@keyframes twinkle { from { transform: scale(.4) rotate(-10deg); opacity: .35; } to { transform: scale(1.15) rotate(12deg); opacity: 1; } }
@keyframes bloom { from { transform: scale(0) rotate(-140deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sway { from { transform: rotate(-.9deg); } to { transform: rotate(.9deg); } }
@keyframes wiggle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes fall { 0% { transform: translate(0, -20px) rotate(0); opacity: 0; } 8% { opacity: .95; } 100% { transform: translate(60px, 230px) rotate(420deg); opacity: 0; } }
@keyframes flit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.18); } }
@keyframes letter-drop { from { transform: translateY(-90%) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes letter-rise { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes halo { to { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes bob-big { to { transform: translateY(-9px); } }

/* ---------- «Болашақ-2015»: слои присланного логотипа ---------- */
.ll-bolashak .bl-art { position: relative; display: block; width: 100%; aspect-ratio: 1242 / 1246; filter: drop-shadow(0 14px 22px rgba(18, 48, 122, .22)); }
.bl-base { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.bl-part { position: absolute; display: block; pointer-events: none; }
.bl-part img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.bl-shine { position: absolute; inset: 0; pointer-events: none; -webkit-mask: url("../assets/logo/bolashak/silhouette.png") center / 100% 100% no-repeat; mask: url("../assets/logo/bolashak/silhouette.png") center / 100% 100% no-repeat; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .8) 50%, transparent 60%) 220% 0 / 220% 100% no-repeat; }
.bl-spk { position: absolute; display: block; aspect-ratio: 1; pointer-events: none; transform-origin: center; }
.bl-spk svg { width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(255, 240, 160, .9)); }
.bl-sun { transform-origin: 50% 100%; }
.bl-flag { transform-origin: 3% 50%; }
.bl-cap { transform-origin: 30% 100%; }
.bl-banner, .bl-star-l, .bl-star-r { transform-origin: 50% 50%; }
.bl-kid-boy4, .bl-kid-green, .bl-kid-purple, .bl-kid-pink, .bl-kid-blue, .bl-kid-red, .bl-toy-rings, .bl-teddy, .bl-ball { transform-origin: 50% 100%; }
.ll-spark { position: fixed; z-index: 50; width: 22px; pointer-events: none; }
.ll-nurbolashak .ll-emblem { display: block; width: 84%; margin: 0 auto; filter: drop-shadow(0 14px 22px rgba(15, 79, 85, .2)); }
.ll-nurbolashak .ll-word { font-size: clamp(1.4rem, 9.3cqw, 3.4rem); margin-top: 3%; }
.ll-nurbolashak .ll-word .ll-l { background: linear-gradient(180deg, #ff8a5c 5%, #d6442e 95%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .85)); }
.ll-nurbolashak .ll-sub { font-size: clamp(.5rem, 3.3cqw, 1rem); letter-spacing: .2em; color: #0e7c78; }
.nb-art { overflow: visible; }
.nb-ring { stroke-dasharray: 1; stroke-dashoffset: 0; transform-origin: 200px 200px; transform: rotate(-90deg); }
.nb-rays, .nb-star, .nb-cloud, .nb-bird { transform-origin: 0 0; }
.nb-star { transform-box: fill-box; transform-origin: center; }
.nb-balloon { transform-origin: 200px 60px; }
.nb-flame { transform-origin: 200px 262px; }
.nb-kid { transform-origin: 0 14px; }
.nb-hand { transform-origin: 0 0; }
.nb-eyes { transform-box: fill-box; transform-origin: center; }

/* Сцены первого экрана */
.scene-cloud { }
.tp, .flagw, .bn, .eagle { transform-origin: 0 0; }
.flagw { transform-box: fill-box; transform-origin: 0 50%; }
.bn { transform-origin: 0 70px; }

@media (prefers-reduced-motion: no-preference) {
  /* «Болашақ-2015»: слои появляются, солнце дышит, флаг развевается, шапочка и вывеска подпрыгивают, дети раскачиваются по очереди, по силуэту бежит блик */
  .bl-base { animation: fade-in .5s both; }
  .bl-sun { animation: bl-pop .8s .3s cubic-bezier(.3, 1.5, .5, 1) both, bl-sun 5s 1.2s ease-in-out infinite alternate; }
  .bl-flag { animation: fade-in .5s .4s both, bl-flag 2.4s ease-in-out infinite alternate; }
  .bl-cap { animation: bl-drop .8s 1s cubic-bezier(.3, 1.6, .5, 1) both, bl-cap 5.5s 2s ease-in-out infinite; }
  .bl-banner { animation: bl-drop .9s .8s cubic-bezier(.3, 1.4, .5, 1) both, bl-banner 5s 1.8s ease-in-out infinite alternate; }
  .bl-star-l, .bl-star-r { animation: fade-in .4s 1.4s both, twinkle 2.2s 1.6s ease-in-out infinite alternate; }
  .bl-star-r { animation-delay: 1.5s, 2s; }
  .bl-kid-green { animation: bl-up .8s 1.1s cubic-bezier(.3, 1.5, .5, 1) both, bl-kid 3.3s 2s ease-in-out infinite; }
  .bl-kid-pink { animation: bl-up .8s 1.25s cubic-bezier(.3, 1.5, .5, 1) both, bl-kid 3.7s 2.3s ease-in-out infinite; }
  .bl-kid-boy4 { animation: bl-up .8s 1.4s cubic-bezier(.3, 1.5, .5, 1) both, bl-kid 3.1s 2.6s ease-in-out infinite; }
  .bl-kid-purple { animation: bl-up .8s 1.55s cubic-bezier(.3, 1.5, .5, 1) both, bl-kid 3.5s 2.9s ease-in-out infinite; }
  .bl-kid-blue { animation: bl-up .8s 1.7s cubic-bezier(.3, 1.5, .5, 1) both, bl-kid-low 4s 3.2s ease-in-out infinite; }
  .bl-kid-red { animation: bl-up .8s 1.8s cubic-bezier(.3, 1.5, .5, 1) both, bl-kid-low 4.4s 3.5s ease-in-out infinite; }
  .bl-teddy { animation: bl-up .8s 1.95s cubic-bezier(.3, 1.5, .5, 1) both, bl-teddy 4.6s 3s ease-in-out infinite; }
  .bl-ball { animation: bl-up .8s 2.05s cubic-bezier(.3, 1.5, .5, 1) both, bl-ball 3.2s 3s ease-in-out infinite; }
  .bl-toy-rings { animation: bl-up .8s 1.15s cubic-bezier(.3, 1.5, .5, 1) both, bl-teddy 5s 3s ease-in-out infinite; }
  .bl-shine { animation: bl-shine 6.5s 2.8s ease-in-out infinite; }
  .bl-spk { animation: twinkle 2.4s calc(var(--i) * .5s) ease-in-out infinite alternate; }
  .ll.is-paused, .ll.is-paused * { animation-play-state: paused !important; }

  /* «Нұрболашақ-2018»: кольцо рисуется, шар поднимается и парит, горелка мерцает, малыши выглядывают и машут, лучи вращаются */
  .nb-ring { animation: draw 1.3s .1s ease-out both; }
  .nb-rays { animation: spin 90s linear infinite; }
  .nb-hill { animation: hill-up .9s .25s cubic-bezier(.25, .9, .3, 1) both; }
  .nb-hill.h2 { animation-delay: .4s; }
  .nb-balloon-wrap { animation: nb-rise 1.7s .5s cubic-bezier(.2, .8, .3, 1.15) both; }
  .nb-balloon { animation: nb-float 6s 2.3s ease-in-out infinite alternate; }
  .nb-flame { animation: nb-flame .45s ease-in-out infinite alternate; }
  .nb-kid { animation: nb-peek .6s calc(1.9s + var(--i) * .2s) cubic-bezier(.3, 1.7, .5, 1) both, nb-bob 3s calc(2.6s + var(--i) * .5s) ease-in-out infinite; }
  .nb-hand { animation: nb-wave 1.1s calc(2.4s + var(--i, 0) * .3s) ease-in-out infinite alternate; }
  .nb-eyes { animation: blink 4.4s 3s infinite; }
  .nb-cloud.c1 { animation: nb-drift 13s ease-in-out infinite alternate; }
  .nb-cloud.c2 { animation: nb-drift 17s -5s ease-in-out infinite alternate-reverse; }
  .nb-bird.b1 { animation: nb-fly 7s ease-in-out infinite alternate; }
  .nb-bird.b2 { animation: nb-fly 9s -3s ease-in-out infinite alternate-reverse; }
  .nb-star { animation: twinkle 2.4s calc(var(--i) * .5s) ease-in-out infinite alternate; }
  .ll-nurbolashak .ll-word .ll-l { animation-delay: calc(2.6s + var(--i) * 70ms); }
  .ll-nurbolashak .ll-sub .ll-l { animation-delay: calc(3.5s + var(--i) * 30ms); }

  /* Сцены: тюльпаны и флажок колышутся, беркуты парят, шары покачиваются */
  .scene-cloud { animation: drift 46s linear infinite alternate; }
  .scene-cloud.sc2 { animation-duration: 62s; animation-delay: -12s; }
  .tp { animation: wiggle 3.6s calc(var(--i) * -.45s) ease-in-out infinite alternate; }
  .flagw { animation: bl-flag 1.8s ease-in-out infinite alternate; }
  .eagle { animation: soar 2.6s ease-in-out infinite alternate; }
  .bn { animation: bn-float 7s calc(var(--i) * -1.7s) ease-in-out infinite alternate; }
}
@keyframes drift { to { transform: translateX(160px); } }
@keyframes soar { from { transform: scaleY(1) translateY(0); } to { transform: scaleY(.55) translateY(3px); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes bl-pop { from { transform: scale(.2) translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bl-sun { from { transform: scale(1) rotate(-1.5deg); } to { transform: scale(1.045) rotate(1.5deg); } }
@keyframes bl-flag { from { transform: skewY(-4deg) scaleX(1); } to { transform: skewY(4deg) scaleX(.95); } }
@keyframes bl-drop { from { transform: translateY(-40%) rotate(-5deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bl-cap { 0%, 60%, 100% { transform: none; } 66% { transform: translateY(-14%) rotate(-7deg); } 74% { transform: translateY(2%) rotate(2deg); } 82% { transform: none; } }
@keyframes bl-banner { from { transform: translateY(0) scale(1); } to { transform: translateY(-1.8%) scale(1.012); } }
@keyframes bl-up { from { transform: translateY(14%) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bl-kid { 0%, 100% { transform: none; } 50% { transform: translateY(-1.8%) rotate(-1.2deg); } }
@keyframes bl-kid-low { 0%, 100% { transform: none; } 50% { transform: translateY(-1.2%) rotate(.8deg); } }
@keyframes bl-teddy { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(2deg); } 75% { transform: rotate(-2deg); } }
@keyframes bl-ball { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-5%) rotate(10deg); } 70% { transform: translateY(0) rotate(-6deg); } }
@keyframes bl-shine { 0%, 45% { background-position: 220% 0; } 100% { background-position: -120% 0; } }
@keyframes nb-rise { from { transform: translateY(130px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nb-float { from { transform: translateY(0) rotate(-1.8deg); } to { transform: translateY(-9px) rotate(1.8deg); } }
@keyframes nb-flame { from { transform: scaleY(.8) scaleX(.9); } to { transform: scaleY(1.3) scaleX(1.05); } }
@keyframes nb-peek { from { transform: translateY(20px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nb-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-2px) rotate(3deg); } }
@keyframes nb-wave { from { transform: rotate(-18deg); } to { transform: rotate(26deg); } }
@keyframes nb-drift { from { transform: translateX(-14px); } to { transform: translateX(30px); } }
@keyframes nb-fly { from { transform: translate(-8px, 2px); } to { transform: translate(10px, -6px); } }
@keyframes bn-float { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-16px) rotate(3deg); } }

/* ---------- Разделы ---------- */
.section { position: relative; padding: 96px 0; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: color-mix(in srgb, var(--cream) 82%, transparent); border-radius: 50% 50% 50% 50% / 76px 76px 76px 76px;
}

/* О саде */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.spheres { display: flex; gap: 18px; margin-top: 30px; }
.sphere { display: grid; place-content: center; justify-items: center; width: clamp(120px, 15vw, 164px); aspect-ratio: 1; border-radius: 50%; color: #fff; text-align: center; line-height: 1.1; }
.sphere strong { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; }
.sphere span { font-weight: 800; }
.sphere-a { background: var(--orb-1); }
.sphere-b { background: var(--orb-0); margin-top: 22px; }
.info-card { padding: 30px 32px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); border: 1px solid var(--line); }
.info-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin-top: 10px; }
.info-card dl > div { padding: 13px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.info-card dl > div.wide { grid-column: 1 / -1; }
.info-card dl > div:last-child { border-bottom: 0; }
.info-card dt { font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.info-card dd { font-weight: 800; overflow-wrap: anywhere; }
.info-card a { text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.info-card a.inline { display: inline-block; margin-left: 6px; font-weight: 700; font-size: .92rem; text-decoration: underline; }
.about-photos { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 40px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px 28px 110px 28px; box-shadow: var(--soft); }
.about-photos img:nth-child(2) { border-radius: 110px 28px 28px 28px; }
.about-photos img:nth-child(3) { border-radius: 28px 110px 28px 28px; }
.director { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 34px; align-items: center; margin-top: 56px; padding: 30px 36px; background: var(--paper); border: 1px solid var(--line); border-radius: 34px; box-shadow: var(--soft); }
.director-photo { aspect-ratio: 1; overflow: hidden; border-radius: 47% 53% 44% 56% / 55% 46% 54% 45%; background: var(--cream); display: grid; place-items: center; }
.director-photo img { width: 100%; height: 100%; object-fit: cover; }
.director-photo img.director-mark { object-fit: contain; padding: 18%; }
.director-pair { display: flex; gap: 6px; padding: 16%; }
.director-pair img { width: 50%; height: auto; object-fit: contain; }
.director-name { font-size: calc(clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem) * var(--display-scale)); }
.director-role { margin-top: 4px; font-weight: 800; color: var(--kicker); }
.director p + p { margin-top: 8px; }
.director .kicker { margin-bottom: 4px; }
.section > .wrap > .director:first-child { margin-top: 0; }

/* Группы */
.stages { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; align-items: end; }
.stage { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 20px 24px; background: var(--paper); border-radius: 30px; box-shadow: var(--soft); }
.stage:nth-child(2) { transform: translateY(-12px); }
.stage:nth-child(3) { transform: translateY(-24px); }
.stage:nth-child(4) { transform: translateY(-36px); }
.js .stage.reveal.is-in:nth-child(2) { transform: translateY(-12px); }
.js .stage.reveal.is-in:nth-child(3) { transform: translateY(-24px); }
.js .stage.reveal.is-in:nth-child(4) { transform: translateY(-36px); }
.stage-art { width: min(100%, 210px); }
.stage-age { margin-top: 10px; padding: 3px 14px; border-radius: 999px; background: var(--cream); color: var(--head); font-weight: 800; }
.stage h3 { margin-top: 8px; font-size: calc(1.45rem * var(--display-scale)); }
.stage-names { margin-top: 8px; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.stage-names span { display: block; font-size: .82rem; color: var(--kicker); }
.stage a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; }

/* Кружки */
.orb-0 { background: var(--orb-0); }
.orb-1 { background: var(--orb-1); }
.orb-2 { background: var(--orb-2); }
.extra-ico { width: 52%; height: 52%; }

/* Фото */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-weight: 800; }
.tab.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.album { columns: 3 280px; column-gap: 18px; }
.album figure { break-inside: avoid; margin-bottom: 18px; }
.album figure[hidden] { display: none; }
.photo-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: var(--beige); cursor: zoom-in; box-shadow: var(--soft); }
.photo-btn img { width: 100%; height: auto; transition: transform .6s; }
.photo-btn:hover img { transform: scale(1.04); }
.photo-btn figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 5px 12px; border-radius: 14px; background: color-mix(in srgb, var(--paper) 92%, transparent); font-weight: 700; font-size: .92rem; text-align: left; }
.album-more { display: flex; margin: 8px auto 0; }
.album-more[hidden] { display: none; }

/* Новости */
.note { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; color: var(--ink-soft); }
.note .ico { color: var(--soft-a); }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story { background: var(--paper); border-radius: 30px; overflow: hidden; box-shadow: var(--soft); }
.story:first-child:not(:only-child) { grid-column: span 3; }
.story-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.story-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.story:hover .story-img img { transform: scale(1.04); }
.story-img-empty img { object-fit: contain; padding: 12% 24%; }
.story-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--head) 88%, transparent); color: #fff; font-weight: 800; font-size: .88rem; }
.story-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; flex: 1; }
.story-body time { font-weight: 800; font-size: .88rem; color: var(--ink-soft); }
.story-title { font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.4rem * var(--display-scale)); line-height: 1.15; color: var(--head); }
.story-excerpt { color: var(--ink-soft); }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--accent); }
@media (min-width: 861px) {
  .story:first-child:not(:only-child) .story-open { flex-direction: row; }
  .story:first-child:not(:only-child) .story-img { flex: 1.3; aspect-ratio: auto; min-height: 320px; }
  .story:first-child:not(:only-child) .story-body { flex: 1; justify-content: center; padding: 32px; }
  .story:first-child:not(:only-child) .story-title { font-size: calc(2rem * var(--display-scale)); }
}
.story:only-child { max-width: 560px; }
.news-dialog { width: min(780px, calc(100% - 24px)); max-height: 90vh; padding: 0; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); overflow: auto; }
.news-dialog::backdrop { background: rgba(30, 30, 40, .62); }
.nd-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.nd-stage { position: relative; background: #1f1d26; }
.nd-img { width: 100%; height: min(58vh, 470px); object-fit: contain; }
.nd-nav { position: absolute; top: 50%; transform: translateY(-50%); display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); cursor: pointer; }
.nd-prev { left: 12px; }
.nd-next { right: 12px; }
.nd-counter { position: absolute; left: 12px; bottom: 12px; display: none; padding: 3px 11px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-weight: 800; font-size: .86rem; }
.has-many .nd-nav { display: grid; }
.has-many .nd-counter { display: block; }
.nd-thumbs { display: none; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--cream); }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 3px solid #fff0; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.nd-thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 24px 26px 32px; }
.nd-gallery[hidden] + .nd-body { padding-top: 56px; }
.nd-body time { font-weight: 800; color: var(--ink-soft); }
.nd-body h3 { font-size: calc(1.8rem * var(--display-scale)); margin: .25em 0 .5em; }
#ndText { overflow-wrap: anywhere; }

/* Документы и вакансии */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.doc-sets { display: grid; gap: 16px; margin-top: 28px; }
.doc-set { padding: 22px 26px; background: var(--paper); border-radius: 28px; box-shadow: var(--soft); }
.doc-set p, .doc-set ul { margin-top: 8px; }
.doc-set li + li { margin-top: 10px; }
.doc-set li a { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 800; }
.doc-set li a .ico { margin-top: .22em; }
.doc-set small { display: block; margin-left: 2em; color: var(--ink-soft); }
.doc-sub { margin-top: 16px; padding: 14px 18px; border-radius: 20px; background: var(--cream); }
.doc-sub summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.2rem * var(--display-scale)); color: var(--head); }
.doc-sub summary .ico { color: var(--kicker); }
.doc-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--body); font-size: .8rem; font-weight: 800; }
.jobs { padding: 28px 30px; background: var(--head); color: #f1f4f4; border-radius: 34px; box-shadow: var(--soft); }
.jobs h3 { color: #fff; font-size: calc(1.7rem * var(--display-scale)); }
.jobs .muted { margin-top: 10px; color: rgba(255, 255, 255, .78); }
.job { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.job summary { cursor: pointer; font-weight: 800; }
.job p { margin-top: 8px; }
.job a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #fff; font-weight: 800; }

/* Контакты */
.contact { padding-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-phone { display: block; margin-top: 14px; font-family: var(--display); font-weight: var(--display-weight); font-size: calc(clamp(1.8rem, 1.3rem + 2vw, 2.7rem) * var(--display-scale)); color: var(--head); text-decoration: none; }
.contact-phone + .contact-phone { margin-top: 2px; }
.contact-phone:hover { color: var(--accent-hover); }
.contact-list { display: grid; gap: 12px; margin-top: 18px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.contact-list .ico { margin-top: .22em; color: var(--accent); }
.social-label { margin-top: 26px; font-weight: 800; color: var(--ink-soft); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; text-decoration: none; }
.socials a:hover { background: var(--cream); }
.form { padding: 28px 30px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); }
.form label { display: block; margin: 14px 0 4px; font-size: .92rem; font-weight: 800; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 12px 15px; border: 1.5px solid var(--beige); border-radius: 16px; background: #fff; font: inherit; color: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: 0; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.form .consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.form .btn { width: 100%; margin-top: 16px; }
.hp-field { position: absolute; left: -9999px; }
.form-note { display: none; margin-top: 14px; font-weight: 800; color: var(--head); }
.form-note.show { display: block; }
.form-note.error { color: #a8362b; }
.map { display: block; width: 100%; height: 340px; margin-top: 44px; border: 0; border-radius: 34px; box-shadow: var(--soft); background: var(--beige); }
.foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.foot p { margin-right: auto; }
.foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }

/* Просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(24, 24, 30, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; max-width: min(1000px, 78vw); border-radius: 12px; }
.lightbox figcaption { margin-top: 10px; color: #fff; text-align: center; font-weight: 700; }
.lb-close, .lb-nav { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.lb-close { position: absolute; top: 16px; right: 16px; }

/* ---------- Общая главная «Болашақ-2015» ---------- */
.hub-hero { padding: calc(var(--bar-h) + 56px) 0 70px; }
.hub-hero h1 { font-size: calc(clamp(2.4rem, 1.5rem + 3.4vw, 4.2rem) * var(--display-scale)); }
.hub-mark { width: 44px; height: 44px; flex: none; }
.hm-petals { transform-origin: 0 0; animation: spin 40s linear infinite; }
.hub-word small { font-size: .62em; color: var(--accent); letter-spacing: .02em; }
.portals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.portal { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 30px 34px; border-radius: 40px; overflow: hidden; box-shadow: var(--soft); isolation: isolate; }
.portal-bolashak { background: linear-gradient(180deg, #fbfdff, #dcecfb); --accent: #1b66c9; --accent-hover: #2f7fe0; --head: #12307a; --kicker: #a87400; }
.portal-nurbolashak { background: linear-gradient(180deg, #fcfffe, #d6f4ec); --accent: #e8604a; --accent-hover: #f27a63; --head: #0f4f55; --kicker: #0e8a86; }
.portal-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.portal-sun { position: absolute; right: -60px; top: -60px; width: 220px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffe08a 0 36%, rgba(255, 200, 80, .35) 55%, transparent 70%); animation: pulse 6s ease-in-out infinite alternate; }
.portal-petals { position: absolute; inset: 0; background-image:
  radial-gradient(7px 4px at 12% 18%, #ff9bb9, #fff0), radial-gradient(6px 3.5px at 28% 40%, #ffb1c8, #fff0),
  radial-gradient(7px 4px at 84% 24%, #ff86ab, #fff0), radial-gradient(6px 3.5px at 90% 62%, #ffb1c8, #fff0),
  radial-gradient(7px 4px at 8% 76%, #ff86ab, #fff0), radial-gradient(6px 3.5px at 56% 90%, #ffc2d4, #fff0); }
.portal-logo { width: min(100%, 330px); }
.portal h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* название уже в логотипе */
.portal-place { display: inline-flex; gap: 8px; align-items: flex-start; max-width: 40ch; color: var(--ink-soft); font-weight: 700; }
.portal-place .ico { margin-top: .2em; color: var(--accent); }
.portal-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 10px; }
.portal-facts li { display: grid; padding: 8px 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); line-height: 1.2; }
.portal-facts strong { font-size: 1.15rem; color: var(--head); }
.portal-facts span { font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
.hub-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hub-card { padding: 28px 30px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); }
.hub-card img { width: 64px; height: 64px; object-fit: contain; }
.hub-card h3 { margin-top: 8px; }
.hub-card .btn { margin-top: 20px; }
.hub-card-bolashak { --accent: #1b66c9; --head: #12307a; }
.hub-card-nurbolashak { --accent: #e8604a; --head: #0f4f55; }
.hub-nav a { font-weight: 800; }
.director-phone { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; }
.director-phone .ico { color: var(--accent); }

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

/* ---------- Планшет и телефон ---------- */
/* Кнопка «на главную» — только значок; телефон текстом — только на широких экранах, иначе меню налезает на название */
.bar-home span { display: none; }
.bar-home { width: 44px; padding: 0; justify-content: center; }
@media (max-width: 1400px) {
  .bar-call span { display: none; }
  .bar-call { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 1180px) {
  .bar-call span, .bar-home span { display: none; }
  .bar-call { width: 44px; padding: 0; justify-content: center; }
  .bar-home { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 1190px) {  /* меню в шапке сворачивается раньше, чем перестаёт помещаться */
  .bar-menu { display: grid; }
  .bar-nav:not(.hub-nav) {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--soft);
  }
  .bar-nav.open { display: flex; }
  .bar-nav a { padding: 12px 16px; font-size: 1.05rem; }
  .bar-nav .nav-other { display: block; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; color: var(--accent); }
}
@media (max-width: 1040px) {
  .hero { display: block; padding-bottom: 150px; }
  .hero-grid, .about-grid, .docs-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 14px; }
  .hero-logo { order: -1; width: min(78%, 400px, 42svh); }
  .hero-text { text-align: center; }
  .hero-facts, .hero-actions { justify-content: center; }
  .hero-text .kicker { justify-content: center; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage:nth-child(n), .js .stage.reveal.is-in:nth-child(n) { transform: none; }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story:first-child:not(:only-child) { grid-column: span 2; }
}
@media (max-width: 760px) {
  .portals, .hub-contacts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --bar-h: 64px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding: 68px 0; }
  .band::before { border-radius: 50% 50% 50% 50% / 38px 38px 38px 38px; }
  .bar { gap: 6px; }
  .bar-brand { font-size: calc(1.02rem * var(--display-scale)); }
  .bar-brand img { width: 36px; height: 36px; }
  .hub-word { font-size: 1.35rem; }
  .hub-nav { display: none; }
  .hero { padding-top: calc(var(--bar-h) + 18px); padding-bottom: 110px; }
  .hero-logo { width: min(70%, 33svh); }
  .hero-text .kicker { display: none; }
  h1 { font-size: calc(1.9rem * var(--display-scale)); margin-top: 4px; }
  .hero-name { margin-bottom: 8px; font-size: .95rem; }
  .hero-facts { margin-top: 14px; gap: 6px; }
  .hero-facts li { padding: 4px 11px; font-size: .88rem; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .btn { width: 100%; min-height: 50px; }
  .scene { height: 150px; }
  .info-card { padding: 22px 20px; }
  .info-card dl { grid-template-columns: minmax(0, 1fr); }
  .director { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; gap: 16px; justify-items: start; }
  .director-photo { width: 140px; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stage { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; align-items: center; text-align: left; padding: 14px 20px 20px; }
  .stage-art { grid-row: 1 / span 2; width: 120px; }
  .stage-age { justify-self: start; align-self: end; margin-top: 0; }
  .stage h3 { align-self: start; margin-top: 4px; }
  .stage-names, .stage a { grid-column: 1 / -1; }
      .stories { grid-template-columns: minmax(0, 1fr); }
  .story:first-child:not(:only-child) { grid-column: auto; }
  .about-photos { grid-template-columns: minmax(0, 1fr); }
  .form, .doc-set, .jobs, .hub-card { padding: 22px 20px; }
  .portal { padding: 26px 18px 28px; border-radius: 30px; }
  .portal-logo { width: min(70%, 240px); }
  .map { height: 260px; border-radius: 24px; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox img { max-width: 72vw; }
}

/* ---------- Команда и блог медсестры ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px 24px; max-width: 1080px; margin-inline: auto; }
.person, .nurse-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 22px 28px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s; }
.person:hover, .nurse-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 22px 44px rgba(60, 50, 40, .14); }
.person-photo { width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 5px solid var(--cream); background: var(--cream); box-shadow: 0 10px 24px rgba(60, 50, 40, .12); }
.person-photo img, .person-photo .avatar { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-top: 14px; font-size: calc(1.28rem * var(--display-scale)); }
.person-role { margin-top: 8px; padding: 3px 14px; border-radius: 999px; background: var(--cream); color: var(--head); font-weight: 800; font-size: .9rem; }
.person-teacher .person-role { background: color-mix(in srgb, var(--soft-a) 26%, #fff); }
.person-assistant .person-role { background: #e3f4d9; }
.person-nurse .person-role, .nurse-card span { background: #ffe1ec; }
.person-group { margin-top: 8px; font-weight: 800; color: var(--kicker); }
.person-about { margin-top: 8px; color: var(--ink-soft); font-size: .97rem; text-wrap: pretty; }
.person-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; text-decoration: none; }
.person-link:hover { text-decoration: underline; }
.person-link .ico { color: #e0407c; fill: currentColor; stroke: none; }

.nurse-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.nurse-card { padding: 24px 18px 26px; }
.nurse-card strong { margin-top: 14px; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.25rem; color: var(--head); line-height: 1.2; }
.nurse-card span { margin-top: 8px; padding: 3px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: var(--head); }
.blog-list { display: grid; gap: 16px; min-width: 0; }
.blog-all { justify-self: start; }
.blog-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0; overflow: hidden; background: var(--paper); border-radius: 28px; box-shadow: var(--soft); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(60, 50, 40, .13); }
.blog-card img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.blog-card-ico { display: grid; place-items: center; min-height: 150px; background: linear-gradient(135deg, #ffe1ec, var(--cream)); color: #e0407c; }
.blog-card-ico .ico { width: 44px; height: 44px; fill: currentColor; stroke: none; }
.blog-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 20px; min-width: 0; }
.blog-card-body time { font-weight: 800; font-size: .86rem; color: var(--ink-soft); }
.blog-card-body strong { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.22rem; line-height: 1.2; color: var(--head); overflow-wrap: anywhere; }
.blog-card-text { color: var(--ink-soft); font-size: .97rem; }
.blog-card .story-more { margin-top: auto; padding-top: 4px; }

/* Страница блога */
.blog-main { padding: calc(var(--bar-h) + 52px) 0 70px; min-height: 70svh; }
.blog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 44px; margin-bottom: 38px; }
.blog-head > div { flex: 1 1 380px; min-width: 0; }
.blog-head h1 { font-size: calc(clamp(2rem, 1.4rem + 2.4vw, 3.3rem) * var(--display-scale)); }
.blog-head .nurse-card { width: 250px; flex: none; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card-big { grid-template-columns: minmax(0, 1fr); }
.blog-card-big img, .blog-card-big .blog-card-ico { height: 210px; min-height: 0; }
.blog-post { max-width: 800px; margin-inline: auto; }
.blog-backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }
.blog-backlink:hover { text-decoration: underline; }
.blog-post-head { margin: 18px 0 22px; }
.blog-post-head h1 { font-size: calc(clamp(1.9rem, 1.3rem + 2.2vw, 3rem) * var(--display-scale)); text-wrap: balance; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-weight: 700; color: var(--ink-soft); }
.blog-photos { columns: 2 280px; margin-bottom: 26px; }
.blog-body { font-size: 1.14rem; line-height: 1.8; overflow-wrap: anywhere; }
.blog-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; }
.blog-pager a { display: grid; gap: 4px; flex: 1 1 0; min-width: 0; max-width: 48%; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--soft); text-decoration: none; color: var(--head); }
.blog-pager a.is-next { text-align: right; margin-left: auto; }
.blog-pager span { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 800; color: var(--kicker); }
.blog-pager a.is-next span { justify-content: flex-end; }
.blog-pager strong { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.25; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .nurse-grid { grid-template-columns: minmax(0, 1fr); }
  .nurse-card { max-width: 320px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  .blog-card { grid-template-columns: minmax(0, 1fr); }
  .blog-card img, .blog-card .blog-card-ico { height: 180px; min-height: 0; }
  .blog-head .nurse-card { width: 100%; max-width: 320px; }
  .blog-pager { flex-direction: column; }
  .blog-pager a { max-width: none; }
  .blog-main { padding-top: calc(var(--bar-h) + 30px); }
}

/* ---------- Кружки: карточки с фото, по нажатию — подробности и фотографии ---------- */
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; max-width: 1100px; margin-inline: auto; }
.club { min-width: 0; }
.club-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); box-shadow: var(--soft); color: inherit; font: inherit; text-align: left; cursor: default; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s; }
.club.is-openable .club-open { cursor: pointer; }
.club.is-openable .club-open:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(60, 50, 40, .15); }
.club-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; color: #fff; }
.club-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.club.is-openable .club-open:hover .club-media img { transform: scale(1.05); }
.club-media .extra-ico { width: 34%; height: auto; aspect-ratio: 1; }
.club-media .story-count { right: 12px; bottom: 12px; }
.club-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.club-title { font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.3rem * var(--display-scale)); line-height: 1.2; color: var(--head); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: text-decoration-color .25s; }
.club.is-openable .club-open:hover .club-title, .club.is-openable .club-open:focus-visible .club-title { text-decoration-color: var(--soft-a); }
.club:not(.is-openable) .club-title { text-decoration: none; }
.club-meta { font-weight: 800; font-size: .9rem; color: var(--kicker); }
.club-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-soft); font-size: .96rem; }
.club .story-more { margin-top: auto; padding-top: 6px; }
@media (max-width: 640px) {
  .clubs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Длинные названия садов в шапке: меню сворачивается раньше, телефон — значком */
@media (max-width: 1500px) {
  .bar-call span { display: none; }
  .bar-call { width: 44px; padding: 0; justify-content: center; }
  .bar-nav a { padding: 8px 9px; font-size: .88rem; }
}
@media (min-width: 1041px) and (max-width: 1260px) {
  .bar-menu { display: grid; }
  .bar-nav:not(.hub-nav) { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--soft); }
  .bar-nav.open { display: flex; }
  .bar-nav a { padding: 12px 16px; font-size: 1.05rem; }
}

/* Заведующие на общей главной */
.heads { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 24px; }
.heads .director { margin-top: 0; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
.heads .director-nurbolashak { --head: #0f4f55; --kicker: #0e8a86; }
.theme-bolashak .hero-logo { width: min(100%, 560px, calc((100svh - var(--bar-h) - 150px) * 1)); }
@media (max-width: 640px) { .heads { grid-template-columns: minmax(0, 1fr); } .heads .director { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 640px) {
  .bar-brand { min-width: 0; font-size: .92rem; }
  .bar-brand span { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) { .bar-brand { font-size: .82rem; } .bar-brand img { width: 32px; height: 32px; } }
