/* KONYRAT-G: цвета взяты с логотипа — оранжевый и бирюзовый из названия, синий контур лошадки,
   розовые облака, радуга (красная, голубая, жёлтая), мятная качалка. Общее (сетка, разделы, формы) — ниже. */

/* ---------- Шрифты (все с казахскими буквами ә ғ қ ң ө ұ ү һ і) ---------- */
@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-konyrat {
  --bg: #fffaf0;
  --paper: #ffffff;
  --cream: #fff1d6;
  --beige: #ffe2ae;
  --head: #2a3b6e;          /* синий контур лошадки */
  --accent: #ffa21f;        /* оранжевый из «KONYRAT-G» */
  --accent-hover: #ffb54a;
  --on-accent: #2a3b6e;     /* текст на оранжевых кнопках */
  --link: #b45f06;
  --kicker: #c2680a;
  --soft-a: #ffa21f;
  --soft-b: #4fc3e3;
  --soft-c: #f9a8c4;
  --ink: #2a3150;
  --ink-soft: #5b6384;
  --line: rgba(42, 59, 110, .15);
  --display: "Rubik", "Arial Rounded MT Bold", system-ui, sans-serif;
  --display-weight: 800;
  --display-scale: 1;
  --glow-a: #ffe3a6;
  --glow-b: #c9ecf7;
  --glow-c: #fcd5e3;
  --orb-0: radial-gradient(circle at 35% 30%, #ffc766, #ffa21f 55%, #e08400);
  --orb-1: radial-gradient(circle at 35% 30%, #7fdcec, #2ec4d8 55%, #1a98ab);
  --orb-2: radial-gradient(circle at 35% 30%, #ff9bb0, #e8566b 55%, #c23a50);
}
:root { --bar-h: 70px; --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; --soft: 0 14px 40px rgba(60, 50, 40, .1); }

*, *::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(--link, 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); } }

/* След при прокрутке: воздушные шарики вдоль страницы — 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-b); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 2 9; opacity: .6; }
.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: var(--on-accent, #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: var(--on-accent, #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: var(--on-accent, #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(--head); }
.btn-line:hover { background: var(--accent); color: var(--on-accent, #fff); }
.hero-logo { position: relative; justify-self: center; width: min(100%, 500px, calc((100svh - var(--bar-h) - 200px) * .98)); }
.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%); }

/* Сцена внизу первого экрана и гирлянда флажков */
.scene { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 260px; z-index: 1; }
.bunting { position: absolute; left: 0; top: calc(var(--bar-h) + 14px); width: 100%; height: 84px; z-index: 1; pointer-events: none; overflow: visible; }
.bf { transform-box: fill-box; transform-origin: 50% 0; }
.hero { padding-top: calc(var(--bar-h) + 78px); }

/* ---------- Живой логотип ---------- */
.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-art { position: relative; display: block; width: 100%; aspect-ratio: 300 / 242; }
.ll-part { position: absolute; display: block; }
.ll-part img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.ll-spk { position: absolute; display: block; aspect-ratio: 1; pointer-events: none; }
.ll-spk svg { width: 100%; height: 100%; }
.ll-word { display: block; margin-top: 1%; font: 800 clamp(1.9rem, 13.6cqw, 4.8rem)/1.05 var(--display); letter-spacing: .02em; color: #ffa21f; white-space: nowrap; }
.ll-sub { display: block; margin-top: 3%; font: 700 clamp(.7rem, 6cqw, 1.6rem)/1 var(--display); letter-spacing: .2em; padding-left: .2em; color: #2ec4d8; white-space: nowrap; }
.ll-l { display: inline-block; }
.ll-word .ll-l { text-shadow: 0 3px 0 rgba(255, 255, 255, .85), 0 6px 14px rgba(255, 162, 31, .25); }
.ll-spk { transform-origin: center; }
.ll-sky { transform-origin: 0 50%; }
.ll-horse { transform-origin: 52% 94%; }
.ll-balloons { transform-origin: 16% 100%; }
.ll-rattle { transform-origin: 56% 92%; }
.ll-jbox, .ll-jhead { transform-origin: 50% 100%; }
.ll-spark { position: fixed; z-index: 50; width: 18px; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Радуга рисуется, лошадка спрыгивает на качалку и качается, шарики взлетают, клоун выскакивает, буквы падают как кубики */
  .ll-sky { animation: k-wipe 1.3s .15s ease-out both, k-cloud 9s 1.6s ease-in-out infinite alternate; }
  .ll-horse { animation: k-horse-in 1.15s .7s cubic-bezier(.3, 1, .4, 1) both, k-rock 3.2s 2s ease-in-out infinite; }
  .ll-balloons { animation: k-rise 1.5s 1s cubic-bezier(.2, .8, .3, 1.25) both, k-bob 5.5s 2.7s ease-in-out infinite; }
  .ll-rattle { animation: k-pop .7s 1.5s cubic-bezier(.3, 1.7, .5, 1) both, k-shake 6.5s 3.2s ease-in-out infinite; }
  .ll-jbox { animation: k-scale-in .6s 1.6s cubic-bezier(.3, 1.5, .5, 1) both; }
  .ll-jhead { animation: k-jack-in .9s 1.95s cubic-bezier(.3, 1.9, .5, 1) both, k-jack 5.6s 3.4s ease-in-out infinite; }
  .ll-spk { animation: k-twinkle 2.2s calc(2.3s + var(--i) * .4s) ease-in-out infinite alternate both; }
  .ll-word .ll-l { animation: k-block .8s calc(2.3s + var(--i) * 90ms) cubic-bezier(.3, 1.7, .5, 1) both, k-wave 5s calc(4.6s + var(--i) * .12s) ease-in-out infinite; }
  .ll-sub .ll-l { animation: k-rise-s .5s calc(3.4s + var(--i) * 50ms) ease-out both; }
  .ll.is-paused, .ll.is-paused * { animation-play-state: paused !important; }

  .bunting { animation: k-hang .9s .3s cubic-bezier(.3, 1.4, .5, 1) both; }
  .bf { animation: k-swing 3.4s calc(var(--i) * -.22s) ease-in-out infinite alternate; }
  .scene-cloud { animation: k-drift 46s linear infinite alternate; }
  .scene-cloud.sc2 { animation-duration: 62s; animation-delay: -12s; }
    .hero-halo { animation: halo 7s ease-in-out infinite alternate; }
  .orb-ball { animation: bob-big calc(5s + var(--i) * .4s) calc(var(--i) * -.6s) 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-arc { stroke-dashoffset: 1; }
  .js .stage.is-in .st-arc { stroke-dashoffset: 0; transition: stroke-dashoffset .9s calc(.2s + var(--k) * .25s) ease-out; }
  .st-spk { transform-box: fill-box; transform-origin: center; animation: k-twinkle 2s ease-in-out infinite alternate; }
  .st-spk.s2 { animation-delay: .6s; } .st-spk.s3 { animation-delay: 1.1s; }

  .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-arc { stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes k-wipe { from { clip-path: inset(-5% 100% -5% 0); } to { clip-path: inset(-5%); } }
@keyframes k-cloud { from { transform: translateX(-1.5%); } to { transform: translateX(1.5%); } }
@keyframes k-horse-in { 0% { transform: translateY(-90%) rotate(-6deg); opacity: 0; } 25% { opacity: 1; } 58% { transform: translateY(3%) scale(1.03, .96); } 78% { transform: translateY(-2.5%); } 100% { transform: none; opacity: 1; } }
@keyframes k-rock { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(3.6deg); } 75% { transform: rotate(-3.6deg); } }
@keyframes k-rise { from { transform: translateY(75%) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3.5%) rotate(1.6deg); } }
@keyframes k-pop { from { transform: scale(0) rotate(-70deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-shake { 0%, 84%, 100% { transform: none; } 87% { transform: rotate(-11deg); } 90% { transform: rotate(10deg); } 93% { transform: rotate(-7deg); } 96% { transform: rotate(4deg); } }
@keyframes k-scale-in { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-jack-in { from { transform: translateY(70%) scaleY(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-jack { 0%, 66%, 100% { transform: none; } 72% { transform: translateY(-15%) scaleY(1.14); } 79% { transform: translateY(2%) scaleY(.9); } 86% { transform: none; } }
@keyframes k-twinkle { from { transform: scale(.3) rotate(-15deg); opacity: .3; } to { transform: scale(1) rotate(15deg); opacity: 1; } }
@keyframes k-block { from { transform: translateY(-150%) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-wave { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-8%); } 90% { transform: translateY(1%); } }
@keyframes k-rise-s { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-hang { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes k-drift { to { transform: translateX(160px); } }
@keyframes halo { to { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes bob-big { to { transform: translateY(-9px); } }

/* ---------- Разделы ---------- */
.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; }

/* Кружки */
.orbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 40px 24px; max-width: 980px; margin-inline: auto; }
.orb { display: flex; flex-direction: column; align-items: center; text-align: center; }
.orb:nth-child(even) { margin-top: 34px; }
.orb-ball { display: grid; place-items: center; width: clamp(112px, 12vw, 150px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; color: #fff; box-shadow: 0 16px 28px rgba(40, 40, 60, .16); transition: scale .35s cubic-bezier(.3, 1.6, .5, 1); }
.orb:hover .orb-ball { scale: 1.08; }
.orb-ball img { width: 100%; height: 100%; object-fit: cover; }
.orb-0 { background: var(--orb-0); }
.orb-1 { background: var(--orb-1); }
.orb-2 { background: var(--orb-2); }
.extra-ico { width: 52%; height: 52%; }
.orb { min-width: 0; }
.orb h3, .orb p { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.orb h3 { margin-top: 14px; font-size: calc(1.32rem * var(--display-scale)); }
.orb p { margin-top: 4px; font-size: .96rem; color: var(--ink-soft); }
.orb-meta { font-weight: 800; }

/* Фото */
.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; }

/* ---------- Руководитель ---------- */
.director-phone { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; }
.director-phone .ico { color: var(--accent); }
.hub-nav a { font-weight: 800; }

@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: 1040px) {
  .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); }
  .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: 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; }
  .bunting { height: 54px; top: calc(var(--bar-h) + 10px); }
  .hero { padding-top: calc(var(--bar-h) + 56px); }
  .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; }
  .orbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .orb h3 { font-size: 1.1rem; }
  .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; }
  .map { height: 260px; border-radius: 24px; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox img { max-width: 72vw; }
}
