/* =========================================================================
   «Керемет» бөбектер бақшасы — стили сайта
   Палитра из логотипа: пять ребят (красный, жёлтый, голубой, зелёный, фиолетовый),
   солнце с лучами и раскрытая книга. Тёмный цвет — глубокий фиолетовый.
   Шрифты: Rubik (заголовки), Onest (текст).
   ========================================================================= */

:root {
  --plum-900: #22063a;
  --plum-800: #320855;
  --plum: #4a0b78;
  --purple: #6c12a1;
  --violet: #9b5bd1;
  --lilac: #f4ecfb;
  --lilac-2: #ebdff7;

  --red: #d82d1d;
  --sun: #f7d81d;
  --sun-d: #e2b800;
  --sky: #03a2d1;
  --leaf: #5fb306;

  --paper: #fffbf5;
  --white: #ffffff;
  --ink: #241133;
  --muted: #6c5c7c;
  --line: rgba(74, 11, 120, .12);

  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 18px 40px -22px rgba(50, 8, 85, .35);
  --shadow-lg: 0 30px 70px -30px rgba(50, 8, 85, .45);
  --font-head: "Rubik", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bar-h: 76px;
  --ease: cubic-bezier(.22, .9, .3, 1.15);
}

/* цвета ребят: --c основной, --c-soft фон, --c-ink текст на цвете */
.c-red, .f-red, .g-red, .a-red, .d-red { --c: var(--red); --c-soft: #fde5e1; --c-ink: #fff; }
.c-yellow, .f-yellow, .g-yellow, .a-yellow, .d-yellow { --c: var(--sun); --c-soft: #fff6c7; --c-ink: #3b2a00; }
.c-blue, .f-blue, .g-blue, .a-blue, .d-blue { --c: var(--sky); --c-soft: #dcf3fb; --c-ink: #fff; }
.c-green, .f-green, .g-green, .a-green, .d-green { --c: var(--leaf); --c-soft: #e7f6d6; --c-ink: #fff; }
.c-purple, .f-purple, .g-purple, .a-purple, .d-purple { --c: var(--purple); --c-soft: #efe2f9; --c-ink: #fff; }

.kc-red { color: var(--red); } .kc-yellow { color: var(--sun); } .kc-blue { color: var(--sky); } .kc-green { color: var(--leaf); } .kc-purple { color: var(--purple); }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--paper); overflow-x: hidden; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--plum); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .45em; color: var(--plum-800); letter-spacing: -.01em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--plum); color: #fff; }
.skip-link:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.45em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-lg { padding: .95em 1.8em; font-size: 1.06rem; }
.btn-sm { padding: .55em 1.05em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-icon { padding-inline: 1em; }
.btn-plum { background: var(--plum); color: #fff; box-shadow: 0 12px 26px -12px rgba(74, 11, 120, .7); }
.btn-plum:hover { background: var(--purple); color: #fff; }
.btn-sun { background: var(--sun); color: #3b2a00; box-shadow: 0 10px 22px -12px rgba(226, 184, 0, .9); }
.btn-sun:hover { background: #ffe34a; color: #3b2a00; }
.btn-line { border-color: rgba(74, 11, 120, .25); color: var(--plum); background: rgba(255, 255, 255, .7); }
.btn-line:hover { border-color: var(--plum); color: var(--plum); background: #fff; }
.btn-white { background: #fff; color: var(--plum); }
.btn-white:hover { color: var(--red); }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-glass:hover { background: rgba(255, 255, 255, .28); color: #fff; }

.link-go { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-head); font-weight: 600; color: var(--purple); text-decoration: none; }
.link-go .ico { transition: transform .25s var(--ease); }
.link-go:hover .ico { transform: translateX(4px); }
.link-sm { font-size: .95rem; }

/* ---------- Живой фон ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky-sun {
  position: absolute; width: 1100px; height: 1100px; right: -380px; top: -420px; border-radius: 50%; opacity: .32;
  background: repeating-conic-gradient(from 0deg, rgba(247, 216, 29, .55) 0deg 5deg, transparent 5deg 11.25deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, rgba(0,0,0,.6) 40%, transparent 68%);
          mask: radial-gradient(circle, #000 0 18%, rgba(0,0,0,.6) 40%, transparent 68%);
}
.sky-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; }
.sg1 { width: 520px; height: 520px; left: -200px; top: 40vh; background: #e9d6fb; }
.sg2 { width: 420px; height: 420px; right: -120px; top: 120vh; background: #fff0b0; }
.sg3 { width: 380px; height: 380px; left: 30%; top: 220vh; background: #d4f1fb; }
.bub {
  position: absolute; bottom: -80px; border-radius: 50%; background: var(--c); opacity: var(--o, .22);
  width: var(--s); height: var(--s); left: var(--x);
}
.bub::after {
  content: ""; position: absolute; inset: 16%; border-radius: 50%;
  border: max(2px, calc(var(--s) * .07)) solid transparent; border-top-color: rgba(255, 255, 255, .9); border-right-color: rgba(255, 255, 255, .9);
  transform: rotate(-20deg);
}
.js .sky-sun { animation: spin 160s linear infinite; }
.js .sky-glow { animation: drift 26s ease-in-out infinite alternate; }
.js .sg2 { animation-duration: 32s; }
.js .sg3 { animation-duration: 38s; }
.js .bub { animation: rise var(--dur) linear var(--delay) infinite, sway var(--sw) ease-in-out var(--delay) infinite alternate; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(60px, -40px) scale(1.1); } }
@keyframes rise { from { translate: 0 0; } to { translate: 0 calc(-100vh - 160px); } }
@keyframes sway { from { margin-left: -18px; } to { margin-left: 18px; } }

/* ---------- Шапка ---------- */
.bar { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.bar.is-stuck { background: rgba(255, 251, 245, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(50, 8, 85, .4); }
.bar-in { width: min(1320px, 100% - 32px); margin-inline: auto; height: var(--bar-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum-800); flex: none; }
.brand-mark { width: 48px; height: 48px; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-72deg); }
.brand-text strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; line-height: 1; letter-spacing: -.01em; }
.brand-text small { display: block; margin-top: 3px; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a { position: relative; display: block; padding: 8px 11px; border-radius: 999px; font-weight: 550; font-size: .95rem; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { background: var(--lilac); color: var(--plum); }
.nav a.is-active { color: var(--plum); }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--red); }

.bar-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.topstrip { position: relative; z-index: 51; background: var(--plum-900); color: #d9c8ea; font-size: .86rem; }
.topstrip-in { width: min(1320px, 100% - 32px); margin-inline: auto; min-height: 44px; display: flex; align-items: center; gap: 22px; }
.topstrip-info { display: inline-flex; align-items: center; gap: 8px; color: #d9c8ea; text-decoration: none; white-space: nowrap; }
.topstrip-info .ico { color: var(--sun); }
a.topstrip-info:hover { color: #fff; }
.topstrip .seg { background: rgba(255, 255, 255, .08); }
.topstrip .seg a { color: #cdb9e2; }
.topstrip .seg a:hover { color: #fff; }
.topstrip .seg a.is-on { background: #fff; color: var(--plum); }
.seg-branch { margin-right: auto; }
.seg-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; border: 1.5px solid currentColor; vertical-align: 1px; }
.seg a.is-on .seg-dot { background: var(--leaf); border-color: var(--leaf); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(74, 11, 120, .07); }
.seg a { padding: 6px 11px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.seg a:hover { color: var(--plum); }
.seg a.is-on { background: #fff; color: var(--plum); box-shadow: 0 2px 8px -2px rgba(50, 8, 85, .25); }
.bar-call .ico { width: 1em; height: 1em; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--plum); cursor: pointer; padding: 0; place-items: center; align-content: center; gap: 4px; }
.burger span { display: block; width: 20px; height: 2px; margin: 0 auto; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Главный экран ---------- */
.hero { position: relative; overflow-x: clip; padding: clamp(16px, 3vw, 40px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(20px, 4vw, 56px); min-height: min(720px, calc(100vh - var(--bar-h) - 120px)); }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; color: var(--plum); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.js .dots i { animation: hop 2.4s var(--ease) infinite; }
.dots i:nth-child(2) { animation-delay: .12s; } .dots i:nth-child(3) { animation-delay: .24s; }
.dots i:nth-child(4) { animation-delay: .36s; } .dots i:nth-child(5) { animation-delay: .48s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.hero h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; margin-bottom: .35em; }
.hl-word { position: relative; display: inline-block; color: var(--purple); white-space: nowrap; }
.hl-word::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .2em; z-index: -1; border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--sun), var(--leaf), var(--sky), var(--purple));
}
.js .hl-word::after { transform-origin: left; animation: underline 1.1s .4s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }
.hero-branch {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, .75); border: 1px dashed rgba(74, 11, 120, .25); color: var(--ink); text-decoration: none;
  transition: background .2s, transform .25s var(--ease);
}
.hero-branch:hover { background: #fff; transform: translateY(-2px); color: var(--ink); }
.hero-branch > .ico { color: var(--purple); }
.hb-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--lilac); color: var(--purple); }
.hero-branch strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: .98rem; line-height: 1.2; }
.hero-branch small { color: var(--muted); font-size: .86rem; }

.hero-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
.stage-rays {
  position: absolute; inset: -14%; border-radius: 50%;
  background: repeating-conic-gradient(from 3deg, rgba(247, 216, 29, .55) 0deg 4.5deg, transparent 4.5deg 11.25deg);
  -webkit-mask: radial-gradient(circle, transparent 0 26%, #000 34%, rgba(0,0,0,.5) 52%, transparent 70%);
          mask: radial-gradient(circle, transparent 0 26%, #000 34%, rgba(0,0,0,.5) 52%, transparent 70%);
}
.stage-rays::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 204, .9), rgba(255, 246, 204, 0) 70%); }
.js .stage-rays { animation: spin 90s linear infinite; }
.mark { position: relative; width: 100%; height: 100%; overflow: visible; }
.mark .k-fig { cursor: pointer; }
.mark .k-kid { transition: transform .35s var(--ease), filter .3s; }
.mark .k-fig:hover .k-kid, .mark .k-fig:focus-visible .k-kid { transform: translateY(-10px); filter: drop-shadow(0 8px 10px rgba(50, 8, 85, .25)); }
.mark .k-fig:focus-visible { outline: none; }
.mk-ring { transform-box: view-box; }
.k-rays, .k-page-l, .k-page-r { transform-box: fill-box; }
.mk-ring { transform-origin: 440px 452px; }
.js .mk-ring { animation: spin 70s linear infinite; }
.hero-stage:hover .mk-ring { animation-play-state: paused; }
.js .k-head { animation: nod 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 90%; }
.k-fig-yellow .k-head { animation-delay: -.6s; } .k-fig-blue .k-head { animation-delay: -1.2s; }
.k-fig-green .k-head { animation-delay: -1.8s; } .k-fig-purple .k-head { animation-delay: -2.4s; }
@keyframes nod { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.js .k-kid { animation: bounce 2.8s var(--ease) infinite; }
.k-fig-yellow .k-kid { animation-delay: .56s; } .k-fig-blue .k-kid { animation-delay: 1.12s; }
.k-fig-green .k-kid { animation-delay: 1.68s; } .k-fig-purple .k-kid { animation-delay: 2.24s; }
@keyframes bounce { 0%, 70%, 100% { translate: 0 0; } 82% { translate: 0 -12px; } }
.k-fig.is-hop .k-kid { animation: jump .7s var(--ease) both; }
@keyframes jump { 0% { translate: 0 0; scale: 1; } 35% { translate: 0 -46px; scale: 1.06; } 70% { translate: 0 4px; scale: .98; } 100% { translate: 0 0; scale: 1; } }
.k-rays { transform-origin: 50% 50%; }
.js .k-rays { animation: spin 40s linear infinite reverse; }
.mk-sun { cursor: pointer; }
.mk-sun:focus-visible { outline: none; }
.mk-sun.is-shine .k-rays { animation-duration: 2s; }
.mk-sun.is-shine .k-sun-disc { filter: brightness(1.08) saturate(1.6); }
.k-book { cursor: pointer; }
.js .k-book { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.k-page-l { transform-origin: 100% 70%; } .k-page-r { transform-origin: 0% 70%; }
.mk-book.is-open .k-page-l { animation: flap-l 1s var(--ease); }
.mk-book.is-open .k-page-r { animation: flap-r 1s var(--ease); }
@keyframes flap-l { 40% { transform: scaleX(.2) skewY(8deg); } }
@keyframes flap-r { 40% { transform: scaleX(.2) skewY(-8deg); } }
.mk-book:focus-visible { outline: none; }
.k-hand > path { transform-box: fill-box; transform-origin: 90% 100%; }
.js .k-hand > path { animation: cup-l 4s ease-in-out infinite; }
@keyframes cup-l { 0%, 100% { rotate: 0deg; } 50% { rotate: -3deg; } }
.say {
  position: absolute; left: 50%; top: 4%; z-index: 3; padding: 10px 18px; border-radius: 18px; background: var(--say-c, var(--plum)); color: var(--say-ink, #fff);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 10px) scale(.8); transition: opacity .25s, transform .35s var(--ease);
  box-shadow: var(--shadow);
}
.say::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.say.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.stage-hint { position: absolute; left: 0; right: 0; bottom: -4px; margin: 0; text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); opacity: .8; }

.glance {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(24px, 4vw, 44px);
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
}
.glance-item { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 22px 24px; }
.glance-item + .glance-item { border-left: 1px solid var(--line); }
.glance-item::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: var(--c); }
.glance-ico { grid-row: span 2; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--c-soft); color: var(--c); }
.g-yellow .glance-ico { color: var(--sun-d); }
.glance-ico .ico { width: 24px; height: 24px; }
.glance-item strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; color: var(--plum-800); }
.glance-item span:last-child { font-size: .9rem; color: var(--muted); }
.glance-item.is-long strong { font-size: clamp(1.15rem, 1.8vw, 1.5rem); white-space: nowrap; }

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-tint { background: linear-gradient(180deg, rgba(244, 236, 251, 0), var(--lilac) 12%, var(--lilac) 88%, rgba(244, 236, 251, 0)); }
.sec-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.sec-head-left { margin-left: 0; text-align: left; }
.sec-head-split { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 48px; max-width: none; text-align: left; }
.sec-head-split .lead { margin: 0 0 .5em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font-head); font-weight: 600; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.sec-num { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--plum); color: #fff; font-size: .78rem; letter-spacing: 0; }
.lead { font-size: 1.1rem; color: var(--muted); }
.note { padding: 18px 22px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .7); border: 1.5px dashed rgba(74, 11, 120, .2); color: var(--muted); text-align: center; }
.note-left { text-align: left; }
.note-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #e8d9f7; }
.fine { margin: 18px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- 1. О саде ---------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-copy .lead { color: var(--ink); font-size: 1.15rem; }
.about-copy p:not(.lead):not(.eyebrow) { color: var(--muted); }
.trio { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1.05; }
.trio-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--lilac); }
.trio-1 { grid-row: span 2; border-radius: 120px 120px var(--radius) var(--radius); background: #fff3c4; }
.trio-2 { background: #dcf3fb; border-radius: var(--radius) 80px var(--radius) var(--radius); }
.trio-3 { background: #fde5e1; }
.trio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.trio-item:hover img { transform: scale(1.05); }
.trio-item figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--plum-800); }
.trio-item.is-empty { display: grid; place-items: center; }
.ph-art { width: 62%; height: auto; max-height: 72%; }
.trio-1 .ph-art { width: 78%; }
.js .ph-rays { animation: spin 30s linear infinite; transform-origin: 0 0; }
.ph-kid { width: 70%; }

.passport { position: relative; margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 44px); border-radius: 36px; background: #fff; box-shadow: var(--shadow-lg); }
.passport::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: linear-gradient(120deg, var(--red), var(--sun), var(--leaf), var(--sky), var(--purple)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .65; }
.passport-title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 22px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: var(--paper); transition: background .2s, transform .25s var(--ease); }
.fact:hover { background: var(--c-soft); transform: translateY(-2px); }
.fact-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: var(--c-ink); }
.fact-ico .ico { width: 21px; height: 21px; }
.fact dt { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.fact dd a { display: block; color: var(--ink); text-decoration: none; }
.fact dd a:hover { color: var(--purple); }
.ages { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); }
.ages-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ages-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.age { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px; background: var(--c-soft); font-weight: 600; }
.age-head { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--c); }
.age-head::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2px solid transparent; border-top-color: rgba(255,255,255,.9); border-right-color: rgba(255,255,255,.9); transform: rotate(-20deg); }

/* ---------- Прячущиеся друзья (пасхалка) ---------- */
.peek { position: absolute; z-index: 3; width: 84px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.peek-kid { position: absolute; left: 0; bottom: 0; width: 84px; height: auto; transform: translateY(42%); transition: transform .45s var(--ease); filter: drop-shadow(0 -2px 4px rgba(50, 8, 85, .15)); }
.peek:hover .peek-kid, .peek:focus-visible .peek-kid { transform: translateY(14%); }
.js .peek .peek-kid { animation: peekaboo 7s ease-in-out infinite; }
.peek.is-found { overflow: visible; }
.peek.is-found .peek-kid { animation: found-hop .9s var(--ease) forwards; }
@keyframes peekaboo { 0%, 76%, 100% { transform: translateY(42%); } 82%, 90% { transform: translateY(12%) rotate(-6deg); } }
@keyframes found-hop { 0% { transform: translateY(40%); } 40% { transform: translateY(-40%) rotate(-8deg); } 70% { transform: translateY(8%) rotate(4deg); } 100% { transform: translateY(14%); } }
.peek-passport { top: -46px; right: 56px; }
.peek-gallery { top: -46px; right: 28px; }
.peek-folder { top: -46px; right: 26px; }
.peek-form { top: -46px; right: 40px; }
.peek-director { right: -2px; bottom: 16%; transform: rotate(58deg); transform-origin: 50% 100%; }

/* ---------- 2. Фото ---------- */
.gal-wrap { position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 9px 16px; border: 0; border-radius: 999px; background: #fff; color: var(--plum); font-family: var(--font-head); font-weight: 600; font-size: .92rem; cursor: pointer; box-shadow: 0 4px 14px -8px rgba(50, 8, 85, .3); transition: background .2s, color .2s, transform .2s; }
.chip:hover { transform: translateY(-1px); }
.chip.is-on { background: var(--plum); color: #fff; }
.masonry { columns: 3 280px; column-gap: 14px; }
.shot { break-inside: avoid; margin: 0 0 14px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.shot[hidden] { display: none; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.shot-btn:hover img { transform: scale(1.04); }
.shot figcaption { padding: 10px 14px 12px; font-size: .9rem; color: var(--muted); }
.more-wrap { text-align: center; margin: 24px 0 0; }
.album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.album-card { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 230px; padding: 20px; border-radius: var(--radius); background: var(--c-soft); overflow: hidden; }
.album-card strong { font-family: var(--font-head); font-weight: 650; font-size: 1.05rem; color: var(--plum-800); line-height: 1.25; }
.album-art { display: grid; place-items: center; height: 130px; }
.album-art .ph-art { width: auto; height: 100%; max-height: 120px; }
.album-art .ph-kid { height: 92px; }

/* ---------- 3. Руководитель ---------- */
.director { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.director-photo { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 16px; }
.director-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--red) 0 72deg, var(--sun) 0 144deg, var(--sky) 0 216deg, var(--leaf) 0 288deg, var(--purple) 0 360deg); }
.director-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--paper); }
.js .director-ring { animation: spin 24s linear infinite; }
.director-photo img, .director-photo .director-kid { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.director-photo.is-empty .director-kid { padding: 18% 14% 4%; background: var(--lilac); }
.director-role { font-weight: 600; color: var(--purple); }
.director-quote { position: relative; margin: 18px 0 22px; padding: 18px 22px 18px 54px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); font-size: 1.08rem; color: var(--ink); }
.director-quote::before { content: "“"; position: absolute; left: 16px; top: 2px; font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--sun-d); }
.director-copy .note { margin-bottom: 22px; }

/* ---------- 4. Кружки ---------- */
.panel-plum { margin-inline: clamp(8px, 1.6vw, 20px); border-radius: 48px; background: radial-gradient(120% 90% at 85% 0%, #6a1aa5 0%, var(--plum) 40%, var(--plum-800) 100%); color: #f1e6fb; overflow: hidden; isolation: isolate; }
.plum-rays { position: absolute; z-index: -1; width: 1400px; height: 1400px; left: 50%; top: -700px; margin-left: -700px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 255, 255, .05) 0deg 4deg, transparent 4deg 11.25deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 62%); mask: radial-gradient(circle, #000 20%, transparent 62%); }
.js .plum-rays { animation: spin 120s linear infinite; }
.sec-head-light h2 { color: #fff; }
.sec-head-light .eyebrow { color: var(--sun); }
.sec-head-light .sec-num { background: var(--sun); color: var(--plum-800); }
.sec-head-light .lead { color: #d9c6ee; }
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.club { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: #fff; color: var(--ink); overflow: hidden; transition: transform .35s var(--ease), box-shadow .3s; }
.club:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .6); }
.club::before { content: ""; position: absolute; right: -50px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: var(--c-soft); transition: transform .5s var(--ease); }
.club:hover::before { transform: scale(1.35); }
.club > * { position: relative; }
.club-photo { margin: -22px -22px 18px; aspect-ratio: 16 / 9; overflow: hidden; }
.club-photo img { width: 100%; height: 100%; object-fit: cover; }
.club-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.club-badge { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--c); color: var(--c-ink); transition: transform .5s var(--ease); }
.club-badge::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 3px solid transparent; border-top-color: rgba(255,255,255,.55); transform: rotate(30deg); }
.club:hover .club-badge { transform: rotate(-12deg) scale(1.08); }
.extra-ico { width: 34px; height: 34px; }
.club-kind { padding: 4px 10px; border-radius: 999px; background: var(--lilac); color: var(--purple); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.club.is-service .club-kind { background: var(--sun); color: #3b2a00; }
.club h3 { color: var(--plum-800); margin-bottom: .35em; }
.club p { color: var(--muted); font-size: .97rem; flex: 1; }
.club-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.club-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--paper); font-size: .85rem; font-weight: 600; }
.club-meta .meta-price { background: var(--c-soft); }
.club .link-go { color: var(--plum); margin-top: auto; }

/* ---------- 5. Документы ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; }
.folder { position: relative; padding: 30px 26px 24px; border-radius: 6px var(--radius) var(--radius) var(--radius); background: #fff; box-shadow: var(--shadow-lg); margin-top: 22px; }
.folder-tab { position: absolute; left: 0; top: -22px; width: 44%; height: 26px; border-radius: 18px 18px 0 0; background: var(--fo); }
.folder::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 0 var(--radius) 0 0; background: var(--fo); }
.fo-blue { --fo: var(--sky); } .fo-green { --fo: var(--leaf); } .fo-yellow { --fo: var(--sun); }
.folder h3 { display: flex; align-items: center; gap: 10px; }
.folder h3 .ico { color: var(--purple); width: 1.2em; height: 1.2em; }
.stamp { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; background: #e7f6d6; color: #2f6b00; font-weight: 600; font-size: .95rem; }
.stamp .ico { width: 30px; height: 30px; flex: none; color: var(--leaf); stroke-width: 1.8; }
.js .stamp .ico { animation: wobble 4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(0); } }
.doc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.doc-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--paper); transition: background .2s; }
.doc-list li:hover { background: var(--lilac); }
.doc-list a { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); text-decoration: none; }
.doc-list a .ico { color: var(--purple); }
.doc-list small { padding-left: 1.9em; color: var(--muted); font-size: .82rem; }

/* ---------- 6. Соцсети ---------- */
.social-card { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 30px; padding: clamp(28px, 5vw, 56px); border-radius: 40px; overflow: hidden; color: #fff;
  background: linear-gradient(125deg, #5a0e8d 0%, #8f1ea0 34%, #d8341d 72%, #f2a81a 100%); }
.social-card::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,255,255,.1) 0 5deg, transparent 5deg 11.25deg); -webkit-mask: radial-gradient(circle, #000 15%, transparent 65%); mask: radial-gradient(circle, #000 15%, transparent 65%); pointer-events: none; }
.js .social-card::after { animation: spin 60s linear infinite; }
.social-card h2 { color: #fff; }
.eyebrow-light { color: #ffe68a; }
.eyebrow-light .sec-num { background: #fff; color: var(--plum); }
.social-card .lead { color: rgba(255, 255, 255, .88); }
.social-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.social-tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 330px; justify-self: center; }
.st { display: grid; place-items: center; aspect-ratio: 1; border-radius: 22px; background: rgba(255, 255, 255, .95); }
.st-kid { width: 76%; color: var(--c); }
.st-3 { background: var(--sun); }
.st-ico { width: 46%; height: 46%; color: var(--plum); }
.st-5 { grid-column: 2; }
.js .st { animation: tile 5s ease-in-out infinite; }
.st-2 { animation-delay: -1s !important; } .st-3 { animation-delay: -2s !important; } .st-4 { animation-delay: -3s !important; } .st-5 { animation-delay: -4s !important; }
@keyframes tile { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-2deg); } }
.st-handle { grid-column: 1 / -1; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: .9rem; opacity: .9; overflow-wrap: anywhere; }

/* ---------- 7. Вакансии ---------- */
.jobs-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.jobs-wrap .sec-head { margin-bottom: 0; }
.jobs { display: grid; gap: 12px; }
.job { border-radius: 22px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.job summary { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job-title { font-family: var(--font-head); font-weight: 650; font-size: 1.08rem; color: var(--plum-800); }
.job time { font-size: .85rem; color: var(--muted); }
.job-plus { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--lilac); }
.job-plus::before, .job-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--plum); transition: transform .3s; }
.job-plus::after { transform: rotate(90deg); }
.job[open] .job-plus::after { transform: rotate(0); }
.job-body { padding: 0 22px 22px; color: var(--muted); }
.jobs-empty { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1.5px dashed rgba(74, 11, 120, .2); }
.jobs-kid { width: 96px; flex: none; color: var(--sun); }
.jobs-empty p { margin: 0; color: var(--muted); }

/* ---------- 8. Новости ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.news-card { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.news-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-soft); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-img-empty { display: grid; place-items: center; }
.news-img-empty .ph-art { width: 40%; }
.news-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.news-body time { font-size: .82rem; font-weight: 600; color: var(--c); }
.c-yellow .news-body time { color: var(--sun-d); }
.news-title { font-family: var(--font-head); font-weight: 650; font-size: 1.15rem; line-height: 1.25; color: var(--plum-800); }
.news-excerpt { color: var(--muted); font-size: .95rem; }
.news-body .link-go { margin-top: 6px; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.contact-list { display: grid; gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list div { display: flex; flex-direction: column; }
.c-label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span:not(.c-label):not(.fact-ico) { font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--purple); }
.contact-list .addr-map { font-size: .9rem; color: var(--purple); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--lilac-2); aspect-ratio: 16 / 9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.form { position: relative; display: grid; gap: 6px; padding: clamp(22px, 4vw, 36px); border-radius: 32px; background: #fff; box-shadow: var(--shadow-lg); }
.form h3 { font-size: 1.6rem; margin: 0; }
.form-lead { color: var(--muted); margin-bottom: 10px; }
.form-lead strong { color: var(--plum); }
.form label { font-weight: 600; font-size: .9rem; margin-top: 6px; }
.form input, .form textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(108, 18, 161, .12); }
.form input.is-bad { border-color: var(--red); }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 8px; font-weight: 500 !important; color: var(--muted); }
.check-line input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--purple); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 8px 0 0; font-weight: 600; min-height: 1.5em; }
.form-note.ok { color: #2f7a00; }
.form-note.err { color: var(--red); }

/* ---------- Два сада ---------- */
.branch-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.branch-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border: 2px solid transparent; transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.branch-card.is-here { border-color: rgba(108, 18, 161, .35); background: linear-gradient(135deg, #fff, var(--lilac)); }
.branch-card img { width: 84px; height: 84px; transition: transform .8s var(--ease); }
.branch-card:hover img { transform: rotate(144deg); }
.bc-body { display: grid; gap: 4px; }
.bc-body strong { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--plum-800); }
.bc-body span { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .93rem; }
.bc-body .ico { color: var(--purple); }
.bc-go { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--plum); color: #fff; font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: .85rem; }
.is-here .bc-go { background: var(--sun); color: #3b2a00; }

/* ---------- Подвал ---------- */
.footer { position: relative; margin-top: 40px; padding: 64px 0 28px; background: var(--plum-900); color: #cdb9e2; overflow: hidden; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 20%, var(--sun) 0 40%, var(--sky) 0 60%, var(--leaf) 0 80%, var(--purple) 0); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h3 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer a { color: #e7d9f5; text-decoration: none; }
.footer a:hover { color: var(--sun); }
.foot-word { width: min(360px, 100%); height: auto; overflow: visible; }
.foot-word .k-letters { stroke-width: 4; }
.foot-word .k-letter { cursor: pointer; transform-box: fill-box; transform-origin: 50% 100%; transition: transform .3s var(--ease); }
.foot-word .k-letter:nth-child(5n+1) { fill: var(--red); stroke: var(--red); }
.foot-word .k-letter:nth-child(5n+2) { fill: var(--sun); stroke: var(--sun); }
.foot-word .k-letter:nth-child(5n+3) { fill: var(--sky); stroke: var(--sky); }
.foot-word .k-letter:nth-child(5n+4) { fill: var(--leaf); stroke: var(--leaf); }
.foot-word .k-letter:nth-child(5n) { fill: #b98ae6; stroke: #b98ae6; }
.foot-word .k-letter:hover { transform: translateY(-6px) scale(1.06); }
.foot-word .k-letter.is-jump { animation: letter-jump .6s var(--ease); }
.foot-word.is-dance .k-letter { animation: letter-jump .7s var(--ease) infinite alternate; }
.foot-word.is-dance .k-letter:nth-child(2) { animation-delay: .1s; } .foot-word.is-dance .k-letter:nth-child(3) { animation-delay: .2s; }
.foot-word.is-dance .k-letter:nth-child(4) { animation-delay: .3s; } .foot-word.is-dance .k-letter:nth-child(5) { animation-delay: .4s; }
.foot-word.is-dance .k-letter:nth-child(6) { animation-delay: .5s; } .foot-word.is-dance .k-letter:nth-child(7) { animation-delay: .6s; }
@keyframes letter-jump { 40% { transform: translateY(-22px) rotate(-8deg) scale(1.1); } }
.egg { margin-top: 18px; }
.egg-title { font-size: .92rem; max-width: 30em; }
.egg-dots { display: flex !important; gap: 10px !important; }
.egg-dots li { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1.5px dashed rgba(255, 255, 255, .22); }
.egg-dots .egg-kid { width: 40px; color: rgba(255, 255, 255, .16); transition: color .3s; }
.egg-dots li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.egg-dots li.is-found { border-style: solid; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); }
.egg-dots li.is-found .egg-kid { color: var(--k); animation: found-dot .6s var(--ease); }
.st .st-kid { color: var(--c); }
.egg-dots [data-egg="red"] { --k: var(--red); } .egg-dots [data-egg="yellow"] { --k: var(--sun); } .egg-dots [data-egg="blue"] { --k: var(--sky); }
.egg-dots [data-egg="green"] { --k: var(--leaf); } .egg-dots [data-egg="purple"] { --k: #b98ae6; }
@keyframes found-dot { 0% { transform: scale(.3); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Плавающие элементы ---------- */
.fab-wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.fab-wa:hover { transform: scale(1.08); color: #fff; }
.fab-wa .ico { width: 28px; height: 28px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 18px; background: var(--plum-800); color: #fff; font-family: var(--font-head); font-weight: 600; text-align: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, 20px); transition: opacity .3s, transform .4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 20px; background: rgba(34, 6, 58, .94); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 18px; }
.lightbox figcaption { color: #e5d6f4; }
.lb-close, .lb-nav { display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .24); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-close .ico, .lb-nav .ico { width: 24px; height: 24px; }

/* Новость целиком */
.news-dialog { width: min(720px, 100% - 24px); max-height: 88vh; padding: 0; border: 0; border-radius: 28px; overflow: auto; color: var(--ink); background: #fff; }
.news-dialog::backdrop { background: rgba(34, 6, 58, .7); backdrop-filter: blur(4px); }
.nd-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lilac); color: var(--plum); cursor: pointer; z-index: 1; }
.nd-img { width: 100%; max-height: 380px; object-fit: cover; }
.nd-body { padding: 24px 28px 30px; }
.nd-body time { font-size: .85rem; font-weight: 600; color: var(--purple); }

/* ---------- Частицы и праздник (js/fx.js) ---------- */
.fx-layer { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.fx-bit { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); animation: bit var(--t) cubic-bezier(.2, .7, .3, 1) forwards; }
.fx-bit svg { width: 100%; height: 100%; display: block; }
@keyframes bit { 0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)); opacity: 0; } }
.fx-letter { position: absolute; font-family: var(--font-head); font-weight: 800; color: var(--c); font-size: var(--s); line-height: 1; animation: bit var(--t) cubic-bezier(.2, .7, .3, 1) forwards; }
.fx-party { position: fixed; left: 50%; top: 50%; z-index: 85; width: min(78vmin, 520px); aspect-ratio: 1; margin: calc(min(78vmin, 520px) / -2) 0 0 calc(min(78vmin, 520px) / -2); pointer-events: none; animation: party-in 6.5s var(--ease) forwards; }
.fx-party svg { width: 100%; height: 100%; overflow: visible; }
.fx-party .mk-ring { animation: spin 3.2s linear infinite; }
.fx-party .k-kid { animation: bounce .7s var(--ease) infinite; }
@keyframes party-in { 0% { opacity: 0; transform: scale(.3) rotate(-90deg); } 14% { opacity: 1; transform: scale(1) rotate(0); } 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.4); } }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1240px) {
  .burger { display: grid; }
  .nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); margin: 0; padding: 14px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; max-height: calc(100vh - var(--bar-h) - 24px); overflow: auto; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .nav a { padding: 12px 14px; font-size: 1rem; border-radius: 14px; }
  .nav a.is-active { background: var(--lilac); }
  .nav a.is-active::after { display: none; }
  .bar-tools { margin-left: auto; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .hero-copy { order: 2; }
  .hero-stage { order: 1; max-width: 460px; }
  .stage-rays { inset: -4%; }
  .hero-lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .glance { grid-template-columns: 1fr 1fr; }
  .glance-item:nth-child(3) { border-left: 0; }
  .glance-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about, .director, .jobs-wrap, .contact-grid, .social-card { grid-template-columns: 1fr; }
  .director-photo { max-width: 320px; margin-inline: auto; width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .album { grid-template-columns: 1fr 1fr; }
  .sec-head-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .topstrip-mail { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --bar-h: 66px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-text small { display: none; }
  .bar-call span { display: none; }
  .bar-call { padding: 0; width: 44px; height: 44px; }
  .bar-call .ico { width: 20px; height: 20px; }
  .branch-cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .trio { aspect-ratio: auto; grid-template-rows: 200px 160px; }
  .glance-item { padding: 18px 16px; grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 6px; }
  .glance-ico { grid-row: auto; width: 44px; height: 44px; }
  .glance-item::before { left: 16px; right: 16px; }
  .panel-plum { border-radius: 32px; margin-inline: 6px; }
  .job summary { grid-template-columns: 1fr auto; }
  .job time { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 10px 20px; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: 30%; } .lb-next { right: 30%; }
  .social-tiles { max-width: 240px; }
  .nav ul { grid-template-columns: 1fr; }
  .topstrip-in { gap: 10px; min-height: 42px; }
  .topstrip-info { display: none; }
  .sec-head:not(.sec-head-left):not(.sec-head-split) { text-align: left; }
}
@media (max-width: 400px) {
  .seg-lang a { padding: 6px 8px; }
  .container { width: calc(100% - 32px); }
  .album { grid-template-columns: 1fr; }
  .bar-in { gap: 8px; }
  .brand-text strong { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
