/* «Балапанчик 2021» (с. Байтерек) — «весенний двор, где птенцы учатся летать».
   Палитра — из логотипа: жёлтый птенец, оранжевый клюв, голубое небо, зелёный луг, розовые щёчки, кремовая скорлупа,
   коричневый контур гнезда. Шрифты свои (assets/fonts): Shantell Sans (заголовки; переменный — вес 300–800,
   оси «прыгучесть» BNCE и «небрежность» INFM) и Andika (текст — шрифт для начинающих читать), казахские буквы есть в обоих. */

@font-face { font-family: "Shantell Sans"; font-weight: 300 800; font-display: swap; src: url("../assets/fonts/shantell-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: "Shantell Sans"; font-weight: 300 800; font-display: swap; src: url("../assets/fonts/shantell-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Shantell Sans"; font-weight: 300 800; font-display: swap; src: url("../assets/fonts/shantell-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Andika"; font-weight: 400; font-display: swap; src: url("../assets/fonts/andika-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: "Andika"; font-weight: 400; font-display: swap; src: url("../assets/fonts/andika-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Andika"; font-weight: 400; font-display: swap; src: url("../assets/fonts/andika-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Andika"; font-weight: 700; font-display: swap; src: url("../assets/fonts/andika-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: "Andika"; font-weight: 700; font-display: swap; src: url("../assets/fonts/andika-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Andika"; font-weight: 700; font-display: swap; src: url("../assets/fonts/andika-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --yolk: #ffd23f; --yolk-d: #e8a10c; --yolk-l: #fff3c4;
  --orange: #ff7a1a; --orange-d: #c94f05; --beak: #ff8a1f;
  --sky: #2ea6e6; --sky-d: #1a78b0; --sky-dd: #0f5a86; --sky-l: #dff4ff;
  --grass: #4cb33a; --grass-d: #2f8a26; --grass-l: #e6f7d9;
  --pink: #f25579; --pink-l: #ffe1e8; --lilac: #8a5cf0;
  --cream: #fffaf0; --shell: #fff4e0; --ink: #6b3a12; --text: #4a2a10; --muted: #7d5f45; --line: rgba(107, 58, 18, .14); --card: #fff;
  /* имена общих блоков (галерея, новости, документы) */
  --teal: var(--sky); --teal-d: var(--sky-d); --teal-dd: var(--sky-dd); --teal-l: var(--sky-l);
  --gold: var(--yolk); --gold-d: var(--yolk-d); --gold-l: var(--yolk-l);
  --red: var(--orange); --red-d: var(--orange-d); --sand: #fff1d6;
  --amber: var(--orange); --cocoa: var(--ink); --head: var(--orange-d); --night: #16324f;
  --display: "Shantell Sans", "Comic Sans MS", system-ui, sans-serif;
  --body: "Andika", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 78px;
  --ease-pop: cubic-bezier(.3, 1.5, .5, 1);
  --shadow: 0 20px 46px rgba(107, 58, 18, .13);
  --zig: linear-gradient(135deg, var(--cream) 25%, transparent 25%) -10px 0 / 20px 20px, linear-gradient(225deg, var(--cream) 25%, transparent 25%) -10px 0 / 20px 20px;
  --pickets: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='60'%3E%3Crect x='0' y='22' width='40' height='7' rx='2' fill='%23fff' stroke='%236b3a12' stroke-width='2.4'/%3E%3Crect x='0' y='42' width='40' height='7' rx='2' fill='%23fff' stroke='%236b3a12' stroke-width='2.4'/%3E%3Cpath d='M12 60V12l8-9 8 9v48Z' fill='%23fff' stroke='%236b3a12' stroke-width='2.8' stroke-linejoin='round'/%3E%3C/svg%3E");
  --speckle: radial-gradient(circle at 30% 40%, rgba(232, 161, 12, .16) 1.6px, transparent 2.2px) 0 0 / 34px 30px, radial-gradient(circle at 70% 70%, rgba(242, 85, 121, .12) 1.4px, transparent 2px) 0 0 / 46px 38px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 1.08rem/1.65 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--sky-d); }
button { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 90; padding: 10px 16px; border-radius: 10px; background: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 1.4rem + 2.9vw, 3.8rem); line-height: 1.05; color: var(--orange-d); text-wrap: balance; font-variation-settings: "INFM" 40, "BNCE" 30; }
h3 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.25; }
.lede { max-width: 64ch; font-size: 1.14rem; color: var(--muted); text-wrap: pretty; }
.head { display: grid; gap: 14px; margin-bottom: 50px; }
.head-center { justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 18px 6px 12px; border-radius: 999px; background: var(--yolk); box-shadow: 0 3px 0 var(--yolk-d); font-family: var(--display); font-weight: 700; font-size: .92rem; letter-spacing: .06em; color: var(--ink); }
.kicker .ico { color: var(--orange-d); }
.hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: .98rem; font-weight: 700; color: var(--muted); text-align: center; }
.hint .ico, .hero-hint .ico { color: var(--yolk-d); }

/* ---------- Разделы ---------- */
.section, .foot, .hero { overflow-x: clip; }
.section { position: relative; padding: clamp(80px, 8vw, 120px) 0; }
.sec-cream { background: var(--speckle), var(--cream); }
.sec-white { background: #fff; }
.sec-sky { background: linear-gradient(180deg, var(--sky-l), #f4fbff); }
.sec-grass { background: linear-gradient(180deg, #f2fbff 0%, #eaf8de 60%, #d8f0c6 100%); }
/* край скорлупы между разделами */
.sec-grass::before, .sec-sky::before, .sec-white::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--zig); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 1.1rem; text-decoration: none; transition: transform .25s var(--ease-pop), box-shadow .25s, background .2s; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-main { background: linear-gradient(180deg, #ff9640, var(--orange)); color: #fff !important; box-shadow: 0 6px 0 var(--orange-d), 0 14px 26px rgba(201, 79, 5, .3); text-shadow: 0 2px 0 rgba(150, 50, 0, .35); }
.btn-main:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange-d); }
.btn-line { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 3px var(--sky), 0 6px 0 var(--sky-d); }
.btn-line .ico { color: var(--sky-d); }

/* ---------- Шапка: кремовая скорлупа с зубчатым краем ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--cream); transition: filter .3s; }
.top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; background: var(--zig); background-size: 20px 20px; }
.top.is-stuck { filter: drop-shadow(0 8px 12px rgba(107, 58, 18, .14)); }
.top-in { display: flex; align-items: center; gap: 14px; width: min(1280px, 100% - 32px); height: var(--bar-h); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand img { width: 62px; height: 62px; transition: transform .5s var(--ease-pop); }
.brand:hover img { transform: translateY(-4px) rotate(-8deg); }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--orange); text-shadow: 1px 2px 0 var(--ink); white-space: nowrap; font-variation-settings: "INFM" 30; }
.brand-text small { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-d); }
.menu { display: flex; gap: 2px; }
.menu a { position: relative; padding: 8px 11px; border-radius: 999px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1rem; white-space: nowrap; text-decoration: none; transition: background .2s, color .2s; }
.menu a:hover { background: var(--yolk-l); }
.menu a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 10px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--yolk); box-shadow: 0 0 0 2px var(--ink); transform: translateX(-50%) scale(0); transition: transform .35s var(--ease-pop); }
.menu a:hover::after, .menu a.is-active::after { transform: translateX(-50%) scale(1); }
.menu a.is-active { color: var(--orange-d); }
.chips { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip-call { border-color: transparent; background: var(--grass); color: #fff !important; box-shadow: 0 3px 0 var(--grass-d); }
.chip-menu { display: none; width: 42px; padding: 0; justify-content: center; }

/* яйцо прокрутки: трещина растёт по мере чтения, внизу страницы яйцо лопается */
.scroll-egg { position: fixed; right: 16px; bottom: 16px; z-index: 55; width: 58px; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .4s, transform .4s var(--ease-pop); filter: drop-shadow(0 6px 8px rgba(107, 58, 18, .25)); }
.scroll-egg.show { opacity: 1; transform: none; }
.se-svg { width: 100%; height: auto; overflow: visible; }
.se-crack { stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.se-top { transform-box: view-box; transform-origin: 54px 40px; transition: transform .7s var(--ease-pop); }
.scroll-egg.hatched .se-top { transform: translate(6px, -26px) rotate(38deg); }
.scroll-egg.hatched .se-crack { opacity: 0; }
.scroll-egg:hover { transform: rotate(-8deg); }

/* ---------- Первый экран: весеннее небо, луг, забор, Бәйтерек, курочка с цыплятами ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--bar-h) + 64px) 0 clamp(250px, 26vw, 350px); background: linear-gradient(180deg, #a8e0ff 0%, #d6f1ff 38%, #f3fbff 62%, #fff8e1 100%); }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; left: 4%; top: calc(var(--bar-h) + 26px); width: clamp(90px, 10vw, 150px); aspect-ratio: 1; }
.sun-rays { position: absolute; inset: -60%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 210, 63, .55) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 28%, transparent 68%); mask: radial-gradient(circle, #000 28%, transparent 68%); }
.sun-disc { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #fffbe0, var(--yolk) 50%, #ffb81f 85%); box-shadow: 0 0 60px 16px rgba(255, 210, 63, .5); }
.cloud { position: absolute; width: 150px; height: 46px; border-radius: 999px; background: #fff; box-shadow: 0 8px 0 rgba(46, 166, 230, .12); }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.cloud::before { left: 22px; bottom: 16px; width: 60px; height: 60px; }
.cloud::after { left: 66px; bottom: 12px; width: 50px; height: 50px; }
.cl-1 { left: 22%; top: 18%; } .cl-2 { right: 8%; top: 12%; scale: .8; } .cl-3 { left: 48%; top: 30%; scale: .55; opacity: .85; }
.birds { position: absolute; left: 30%; top: 12%; width: 110px; fill: none; stroke: var(--sky-dd); stroke-width: 2.4; stroke-linecap: round; opacity: .6; }
.hero-grid { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero-text { display: grid; gap: 16px; justify-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; background: #fff; font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--grass-d); box-shadow: 0 6px 16px rgba(46, 166, 230, .18); }
.eyebrow .ico { color: var(--pink); }
.hero-title { display: grid; gap: 4px; line-height: .95; }
.ht-word { display: flex; flex-wrap: nowrap; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, .9rem + 4.7vw, 6.2rem); letter-spacing: -.02em; font-variation-settings: "INFM" 30, "BNCE" 0; }
.ht-l { display: inline-block; color: var(--c); -webkit-text-stroke: 10px #fff; paint-order: stroke fill; text-shadow: 3px 5px 0 var(--ink); cursor: default; transform-origin: 50% 100%; }
.ht-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.ht-year { position: relative; display: grid; place-items: center; width: 64px; }
.hy-egg { width: 100%; height: auto; }
.ht-year b { position: absolute; top: 44%; padding: 0 3px; border-radius: 6px; background: rgba(255, 250, 240, .92); font: 800 .95rem/1.1 var(--display); color: var(--orange-d); }
.ht-kicker { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, .85rem + .8vw, 1.5rem); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-dd); }
.hero-tag { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.2; color: var(--grass-d); font-variation-settings: "INFM" 60; }
.hero-lead { max-width: 52ch; font-size: 1.14rem; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-logo { position: relative; display: grid; place-items: center; }
.logo-glow { position: absolute; inset: 2%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 243, 196, .95), rgba(255, 243, 196, 0) 66%); }
.bp-logo { position: relative; width: min(100%, 520px); height: auto; overflow: visible; filter: drop-shadow(0 18px 22px rgba(107, 58, 18, .18)); }
.bp-logo .bl-chick-wrap, .bp-logo .bl-cap-wrap, .bp-logo .bl-sun-wrap, .bp-logo .bl-l { cursor: pointer; }
.bl-chick, .bl-cap, .bl-egg, .bl-badge, .bl-nest-front, .bl-nest-back { transform-box: view-box; transform-origin: 200px 270px; }
.bl-cap { transform-origin: 250px 112px; }
.bl-sun, .bl-rays { transform-box: view-box; transform-origin: 0 0; }
.bl-wing-l { transform-box: view-box; transform-origin: 150px 196px; }
.bl-wing-r { transform-box: view-box; transform-origin: 250px 196px; }
.bl-eye { transform-box: fill-box; transform-origin: 50% 50%; }
.bl-beak-low { transform-box: view-box; transform-origin: 200px 180px; }
.bl-tuft { transform-box: view-box; transform-origin: 206px 112px; }
.bl-l { transform-box: view-box; transform-origin: 0 0; }
.bl-cloud { transform-box: fill-box; }
.feathers { position: absolute; inset: 0; pointer-events: none; }
.feathers i { position: absolute; width: 14px; height: 26px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: linear-gradient(180deg, #fff6c4, var(--yolk)); box-shadow: 0 0 0 1.5px rgba(107, 58, 18, .35); opacity: 0; }
.feathers i:nth-child(1) { left: 10%; top: 20%; } .feathers i:nth-child(2) { left: 84%; top: 14%; } .feathers i:nth-child(3) { left: 6%; top: 62%; }
.feathers i:nth-child(4) { left: 90%; top: 56%; } .feathers i:nth-child(5) { left: 50%; top: 2%; }

/* луг */
.meadow { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: clamp(230px, 24vw, 330px); }
.hill { position: absolute; left: 0; bottom: 0; width: 100%; }
.hill-far { height: 100%; fill: #b9e88d; }
.hill-mid { height: 74%; fill: #86cf5c; }
.hill-near { height: 50%; fill: #5db342; }
.baiterek { position: absolute; left: 3%; bottom: 40%; width: clamp(130px, 14vw, 220px); }
.tree-svg { width: 100%; height: auto; }
.gold-egg { left: 48%; top: 4%; width: 24px !important; }
.fence { position: absolute; left: 0; right: 0; bottom: 38%; height: 54px; background: var(--pickets) 0 100% / 34px 54px repeat-x; pointer-events: none; }
.daisies { position: absolute; inset: 0; pointer-events: none; }
.daisies i { position: absolute; bottom: calc(12% + var(--k) * 3%); width: 14px; height: 14px; border-radius: 50%; background: var(--yolk); box-shadow: 0 -9px 0 -2px #fff, 0 9px 0 -2px #fff, 9px 0 0 -2px #fff, -9px 0 0 -2px #fff, 6px 6px 0 -2px #fff, -6px -6px 0 -2px #fff, 6px -6px 0 -2px #fff, -6px 6px 0 -2px #fff; }
.daisies i::after { content: ""; position: absolute; left: 6px; top: 14px; width: 3px; height: 20px; border-radius: 2px; background: var(--grass-d); z-index: -1; }
.yard { position: absolute; inset: 0; }
.hen-btn { position: absolute; left: 58%; bottom: 9%; width: clamp(120px, 13vw, 200px); padding: 0; border: 0; background: none; cursor: pointer; }
.hen-bob, .cb-bob { display: block; }
.hen-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 0 rgba(47, 138, 38, .35)); }
.chick-btn { position: absolute; left: var(--x); bottom: 10%; width: calc(clamp(68px, 7.4vw, 112px) * var(--s)); padding: 0; border: 0; background: none; cursor: pointer; }
.cb-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 4px 0 rgba(47, 138, 38, .35)); }
.cs-head { transform-box: view-box; transform-origin: 54px 36px; }
.cs-la, .cs-lb { transform-box: view-box; }
.cs-la { transform-origin: 36px 58px; } .cs-lb { transform-origin: 48px 58px; }
.cs-wing { transform-box: view-box; transform-origin: 30px 42px; }
.hn-head { transform-box: view-box; transform-origin: 118px 76px; }
.hn-wing { transform-box: view-box; transform-origin: 64px 84px; }
.hn-tail { transform-box: view-box; transform-origin: 56px 70px; }
.hn-la { transform-box: view-box; transform-origin: 82px 120px; } .hn-lb { transform-box: view-box; transform-origin: 106px 118px; }
.hero-hint { position: absolute; left: 50%; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; translate: -50% 0; padding: 6px 16px; border-radius: 999px; background: rgba(255, 250, 240, .92); font-weight: 700; font-size: .95rem; color: var(--grass-d); white-space: nowrap; pointer-events: none; }
.note-pop { position: fixed; left: 0; top: 0; z-index: 76; font: 800 1.6rem/1 var(--display); color: var(--orange); -webkit-text-stroke: 5px #fff; paint-order: stroke fill; pointer-events: none; white-space: nowrap; }
.heart-pop { position: fixed; left: 0; top: 0; z-index: 76; width: 70px; height: 62px; pointer-events: none; }
.heart-pop::before { content: ""; position: absolute; inset: 0; background: var(--pink); clip-path: path("M35 60C12 44 0 31 0 17C0 7 8 0 17 0C25 0 31 5 35 12C39 5 45 0 53 0C62 0 70 7 70 17C70 31 58 44 35 60Z"); }
.feather { position: fixed; left: 0; top: 0; z-index: 76; width: 12px; height: 22px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: linear-gradient(180deg, #fff6c4, var(--yolk)); box-shadow: 0 0 0 1.5px rgba(107, 58, 18, .35); pointer-events: none; }

/* ---------- О нас: тёплое гнёздышко, птенец с облачком, яйца-факты ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.about-text { display: grid; gap: 16px; justify-items: start; }
.about-p { font-size: 1.14rem; text-wrap: pretty; }
.place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 20px; border-radius: 999px; background: #fff; font-weight: 700; box-shadow: var(--shadow), inset 0 0 0 2px var(--yolk); }
.place .ico { color: var(--pink); }
.place a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.buddy { position: relative; display: grid; place-items: end center; width: 100%; max-width: 400px; aspect-ratio: 1; justify-self: center; }
.buddy-sun { position: absolute; left: 50%; top: 6%; width: 76%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, #fff 0 40%, var(--sky-l) 41% 62%, rgba(223, 244, 255, .5) 63% 80%, transparent 81%); }
.buddy-btn { position: relative; z-index: 2; display: grid; justify-items: center; width: 62%; margin-bottom: 15%; padding: 0; border: 0; background: none; cursor: pointer; }
.buddy-chick { width: 100%; height: auto; overflow: visible; }
.buddy-nest { position: absolute; left: 10%; right: 10%; bottom: 6%; z-index: 3; height: 22%; pointer-events: none; }
.buddy-nest .nest-svg, .basket-nest .nest-svg, .portrait-nest .nest-svg { width: 100%; height: 100%; }
.bubble { position: absolute; right: -34%; top: -6%; z-index: 3; padding: 10px 16px; border-radius: 22px 22px 22px 4px; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 10px 20px rgba(107, 58, 18, .15); font: 700 1.1rem/1.2 var(--display); color: var(--orange-d); white-space: nowrap; transform-origin: 0 100%; }
.ck-cap, .ck-shell, .ck-body { transform-box: view-box; }
.ck-cap { transform-origin: 122px 40px; }
.ck-wl { transform-box: view-box; transform-origin: 40px 90px; } .ck-wr { transform-box: view-box; transform-origin: 120px 90px; }
.ck-eye { transform-box: fill-box; transform-origin: 50% 50%; }
.ck-beak-low { transform-box: view-box; transform-origin: 80px 96px; }
.ck-tuft { transform-box: view-box; transform-origin: 86px 40px; }
.ck-scarf-tail { transform-box: view-box; transform-origin: 44px 124px; }
.snaps { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.snap { position: relative; overflow: hidden; border-radius: 50% 50% 22px 22px / 34% 34% 22px 22px; background: #fff; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--yolk), var(--shadow); }
.snap:first-child { grid-column: 1 / -1; }
.snap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.snap figcaption { padding: 8px 14px 12px; font-family: var(--display); font-weight: 700; text-align: center; color: var(--orange-d); }
.snaps-1 { grid-template-columns: 1fr; }

.basket-wrap { position: relative; margin-top: clamp(60px, 7vw, 100px); }
.basket-title { margin-bottom: 64px; text-align: center; font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.4rem); color: var(--sky-dd); }
.basket { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; max-width: 1000px; margin-inline: auto; padding: 0 2%; }
.basket-nest { position: relative; z-index: 1; display: block; height: 120px; max-width: 1060px; margin: -100px auto 0; pointer-events: none; }
.fact-egg { position: relative; display: grid; justify-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.fe-art { position: relative; display: block; width: 120px; aspect-ratio: 120 / 150; transition: transform .3s var(--ease-pop); }
.fact-egg:hover .fe-art { transform: translateY(-6px) rotate(-4deg); }
.fe-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fe-top { z-index: 3; transform-origin: 90% 50%; transition: transform .7s var(--ease-pop), opacity .7s; }
.fe-bottom { z-index: 1; }
.fe-txt { display: grid; justify-items: center; text-align: center; line-height: 1.1; }
.fe-big { position: absolute; left: 50%; top: 26%; z-index: 2; display: grid; place-items: center; min-width: 96px; min-height: 70px; padding: 6px 10px; translate: -50% 0; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; background: radial-gradient(circle at 40% 30%, #fff, var(--yolk-l)); box-shadow: 0 0 0 3px var(--ink); transform: translateY(40px) scale(.2); opacity: 0; transition: transform .6s .15s var(--ease-pop), opacity .3s .15s; }
.fe-big b { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--orange); -webkit-text-stroke: 4px #fff; paint-order: stroke fill; }
.fe-big b.b-sm { font-size: 1.05rem; color: var(--sky-dd); -webkit-text-stroke: 0; }
.fe-label { position: relative; z-index: 4; margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 2px var(--line); font-weight: 700; font-size: .86rem; color: var(--muted); }
.fact-egg.open .fe-top { transform: translate(40px, -26px) rotate(36deg); opacity: .95; }
.fact-egg.open .fe-big { transform: none; opacity: 1; }

/* ---------- Группы: как растёт птенец ---------- */
.growth { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: end; counter-reset: st; }
.growth-1 { grid-template-columns: minmax(0, 340px); justify-content: center; } .growth-2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.growth-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.growth::before { content: ""; position: absolute; left: 12%; right: 12%; top: 168px; height: 14px; background: radial-gradient(circle, rgba(107, 58, 18, .35) 3px, transparent 3.6px) 0 50% / 26px 14px repeat-x; pointer-events: none; }
.stage { display: grid; width: 100%; padding: 0; border: 0; background: none; text-align: center; cursor: pointer; }
.stage-art { position: relative; display: grid; place-items: end center; height: 230px; }
.stage-ground { position: absolute; left: 50%; bottom: 0; width: 170px; height: 34px; translate: -50% 0; border-radius: 50%; background: radial-gradient(ellipse, #8dd16a, #5db342 70%); box-shadow: 0 4px 0 var(--grass-d); }
.stage-chick { position: relative; width: 150px; height: auto; margin-bottom: 14px; overflow: visible; filter: drop-shadow(0 6px 0 rgba(47, 138, 38, .25)); transform-origin: 50% 100%; }
.stage-1 .stage-chick { width: 158px; } .stage-2 .stage-chick { width: 172px; }
.stage-card { position: relative; display: grid; justify-items: center; gap: 8px; margin-top: 18px; padding: 22px 18px 24px; border-radius: 28px; background: #fff; box-shadow: inset 0 -7px 0 var(--c), var(--shadow); transition: transform .3s var(--ease-pop), box-shadow .3s; }
.stage:hover .stage-card { transform: translateY(-6px) rotate(-1deg); }
.stage-tag { position: absolute; top: -16px; padding: 3px 14px; border-radius: 999px; background: var(--c); color: #fff; font: 700 .86rem/1.4 var(--display); box-shadow: 0 3px 0 rgba(0, 0, 0, .15); white-space: nowrap; }
.stage-age { margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--c); -webkit-text-stroke: 1px rgba(0, 0, 0, .06); }
.stage-name { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.2; color: var(--ink); }
.stage-text { font-size: 1rem; color: var(--muted); }
.stage-pick { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; font-size: .95rem; color: var(--sky-d); }
.stage.picked .stage-card { box-shadow: 0 0 0 4px var(--c), var(--shadow); }

/* ---------- Кружки: скворечники ---------- */
.houses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 30px; }
.houses-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.club { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 26px 22px 30px; border-radius: 32px; background: #fff; color: var(--ink); box-shadow: inset 0 -7px 0 var(--c), var(--shadow); text-align: center; transition: transform .35s var(--ease-pop); }
.club:hover { transform: translateY(-8px) rotate(-.6deg); }
.house-doors { padding: 0; border: 0; background: none; cursor: pointer; }
.house-art { position: relative; display: block; width: 170px; aspect-ratio: 160 / 190; }
.house-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.house-ico { position: absolute; left: 50%; top: 55%; display: grid; place-items: center; width: 66px; height: 66px; translate: -50% -50%; color: #fff; }
.house-ico svg { position: static; width: 100%; height: 100%; stroke-width: 3.6; }
.bh-door { transform-box: view-box; transform-origin: 26px 110px; transition: transform .7s var(--ease-pop); }
.house-doors:hover .bh-door { transform: scaleX(.86) skewY(-3deg); }
.house.open .bh-door { transform: scaleX(.08) skewY(-10deg); }
.club-body { display: grid; gap: 8px; justify-items: center; margin-top: 14px; }
.club-title { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--orange-d); }
.club-badge { padding: 2px 12px; border-radius: 999px; background: var(--grass-l); color: var(--grass-d); font-weight: 700; font-size: .86rem; }
.club-badge.is-paid { background: var(--yolk-l); color: var(--orange-d); }
.club-meta { font-size: .92rem; font-weight: 700; color: var(--sky-d); }
.club-text { color: var(--muted); font-size: 1.02rem; }
.club-thumb img { width: 100%; max-height: 160px; border-radius: 16px; object-fit: cover; }
.club-open { padding: 0; border: 0; background: none; cursor: pointer; }
.story-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; color: var(--sky-d); }

/* ---------- Руководство: портреты в гнёздах ---------- */
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 44px; max-width: 900px; margin-inline: auto; }
.leaders-1 { max-width: 420px; }
.leader { display: grid; justify-items: center; gap: 18px; text-align: center; }
.portrait { position: relative; width: 220px; padding-bottom: 26px; }
.portrait-photo { display: grid; place-items: center; width: 220px; aspect-ratio: 1; overflow: hidden; border-radius: 50% 50% 50% 50% / 56% 56% 44% 44%; background: var(--yolk-l); box-shadow: 0 0 0 7px #fff, 0 0 0 11px var(--c), var(--shadow); }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.portrait-photo .avatar { width: 100%; height: auto; }
.portrait-nest { position: absolute; left: -8%; right: -8%; bottom: 0; height: 64px; }
.leader-body { display: grid; gap: 10px; justify-items: center; }
.leader-role { padding: 4px 16px; border-radius: 999px; background: var(--c); color: #fff; font-family: var(--display); font-weight: 700; font-size: .95rem; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.leader-body h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); color: var(--ink); }
.leader-label { margin-top: 8px; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-d); }
.leader-edu { display: grid; gap: 8px; }
.leader-edu li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; border-radius: 16px; background: #fff; box-shadow: inset 4px 0 0 var(--yolk), 0 8px 20px rgba(107, 58, 18, .08); font-weight: 600; text-align: left; }
.leader-edu .ico { margin-top: 3px; color: var(--yolk-d); }
.leader-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.leader-skills li { padding: 6px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 3px var(--c); font-weight: 700; }
.leader-about { color: var(--muted); }
.leader-years { display: flex; align-items: baseline; gap: 8px; } .leader-years strong { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--orange); }

/* ---------- Видео ---------- */
.video-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.video-grid .head { margin-bottom: 0; }
.video-note { font-size: .92rem; color: var(--muted); }
.tv { position: relative; padding: 14px; border-radius: 30px; background: var(--yolk); box-shadow: 0 0 0 4px var(--teal-dd), 0 30px 60px rgba(138, 35, 22, .25); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--teal-dd); }
.tv-screen img { width: 100%; height: 100%; object-fit: cover; }
.tv-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(8, 74, 82, .55)); pointer-events: none; }
.tv-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-screen.is-on::after { display: none; }
.tv-play { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.tv-sun { position: relative; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 40% 36%, #fff6c2, var(--gold) 60%, var(--orange)); box-shadow: 0 0 0 10px rgba(245, 179, 27, .3); transition: transform .4s var(--ease-pop); }
.tv-play:hover .tv-sun { transform: scale(1.12); }
.tv-tri { position: relative; width: 36px; margin-left: 6px; color: var(--red-d); }
.tv-label { padding: 6px 18px; border-radius: 12px; background: rgba(8, 74, 82, .75); font-weight: 800; }

/* ---------- Фото ---------- */
.gallery { padding-top: 110px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
.tab { min-height: 44px; padding: 0 20px; border: 2px solid var(--gold-d); border-radius: 999px; background: var(--card); font-weight: 800; font-size: .88rem; color: var(--text); cursor: pointer; }
.tab.is-on { background: var(--gold); color: var(--cocoa); }
.hall { position: relative; }
.album { display: flex; align-items: center; gap: 28px; padding: 30px max(24px, calc((100vw - 1160px) / 2)) 44px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.album::-webkit-scrollbar { display: none; }
.album.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hall-one .album { justify-content: center; cursor: default; }
.album figure { flex: none; scroll-snap-align: center; margin: 0; transition: transform .4s var(--ease-pop); }
.album figure:nth-child(odd) { transform: rotate(-1.5deg); } .album figure:nth-child(even) { transform: rotate(1.5deg) translateY(12px); }
.album figure:hover { transform: translateY(-8px) rotate(0); }
.album figure[hidden] { display: none; }
.photo-btn { position: relative; display: block; padding: 0; border: 10px solid #fffdf6; border-bottom-width: 44px; border-radius: 12px; background: #fffdf6; cursor: zoom-in; overflow: hidden; box-shadow: 0 24px 46px rgba(90, 46, 10, .2), 0 0 0 3px rgba(240, 164, 0, .5); }
.photo-btn img { display: block; width: auto; height: clamp(260px, 50vh, 460px); max-width: min(84vw, 640px); object-fit: cover; pointer-events: none; }
.photo-btn figcaption { position: absolute; left: 0; right: 0; bottom: -36px; padding: 0 10px; color: var(--cocoa); font-family: var(--display); font-size: 1.1rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall-nav { position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 54px; height: 54px; translate: 0 -50%; border: 0; border-radius: 50%; background: var(--gold); color: var(--cocoa); cursor: pointer; box-shadow: 0 10px 24px rgba(224, 138, 0, .35); }
.hall-prev { left: max(10px, calc((100vw - 1260px) / 2)); } .hall-next { right: max(10px, calc((100vw - 1260px) / 2)); }
.gallery .hall-hint { display: flex; justify-content: center; color: var(--muted); font-weight: 600; }

/* ---------- Новости ---------- */
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.story { overflow: hidden; border-radius: 30px; background: var(--card); box-shadow: 0 18px 44px rgba(90, 46, 10, .12); transition: transform .35s var(--ease-pop), background-color .9s; }
.story:hover { transform: translateY(-8px); }
.story-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.story-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff3cf; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.story:hover .story-img img { transform: scale(1.06); }
.story-img-empty { display: grid; place-items: center; }
.story-img-empty img { width: 34%; height: auto; object-fit: contain; }
.story-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 700; font-size: .82rem; }
.story-body { display: grid; gap: 6px; padding: 18px 24px 26px; }
.story-body time { font-size: .84rem; font-weight: 800; color: var(--amber); }
.story-title { font-weight: 800; font-size: 1.25rem; line-height: 1.25; color: var(--head); }
.story-excerpt { color: var(--muted); font-size: .98rem; }

/* ---------- Документы и вакансии ---------- */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc-sets { display: grid; gap: 22px; margin-top: 20px; }
.doc-set, .jobs { padding: 26px 28px; border-radius: 28px; background: var(--card); box-shadow: 0 14px 34px rgba(90, 46, 10, .1); }
.jobs { background: linear-gradient(160deg, #1c2d72, #0c1846); color: #fff4da; }
.doc-set h3, .jobs h3 { margin-bottom: 12px; color: var(--head); }
.jobs h3 { color: #ffe27a; }
.doc-set li { display: grid; gap: 2px; padding: 10px 0; border-top: 2px dotted var(--line); }
.doc-set li:first-child { border-top: 0; }
.doc-set a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--text); }
.doc-set a .ico { color: var(--gold-d); }
.doc-set small { margin-left: 32px; color: var(--muted); font-weight: 600; }
.job { margin-top: 14px; padding-top: 14px; border-top: 2px dashed rgba(255, 255, 255, .3); }
.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; font-weight: 800; color: var(--gold) !important; }

/* ---------- Всплывающее, просмотр фото, диалоги ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 12px 24px 12px 14px; border-radius: 999px; background: #fffdf6; color: #3b2408; font-weight: 600; box-shadow: 0 18px 44px rgba(90, 46, 10, .3), inset 0 -5px 0 var(--gold); translate: -50% 0; animation: toast-in .5s var(--ease-pop); }
.toast[hidden] { display: none; }
.toast b { color: #b86a00; }
.toast .t-coin { width: 30px; height: 30px; flex: none; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fff6c0, #ffd23a 50%, #d98a00); box-shadow: 0 0 12px rgba(255, 198, 26, .8); }
@keyframes toast-in { from { transform: translateY(40px) scale(.8); opacity: 0; } }
.news-dialog { width: min(640px, 100% - 32px); max-height: calc(100% - 40px); padding: 0; border: 0; border-radius: 30px; background: #fffdf6; color: #3b2408; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); }
.news-dialog::backdrop { background: rgba(12, 24, 70, .75); }
.nd-close { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--gold); color: var(--cocoa); cursor: pointer; }
.nd-gallery { position: relative; background: var(--night); }
.nd-stage { position: relative; }
.nd-img { width: 100%; max-height: 60vh; object-fit: contain; }
.nd-nav { position: absolute; top: 50%; display: none; place-items: center; width: 44px; height: 44px; translate: 0 -50%; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #3b2408; cursor: pointer; }
.nd-prev { left: 10px; } .nd-next { right: 10px; }
.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: 700; 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; }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.nd-thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 26px 28px 32px; }
.nd-gallery[hidden] + .nd-body { padding-top: 60px; }
.nd-body time { font-weight: 800; color: #b86a00; }
.nd-body h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.3; color: #8a4b0b; margin: .2em 0 .5em; }
#ndText { overflow-wrap: anywhere; }
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(12, 24, 70, .95); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 80vh; border-radius: 16px; }
.lightbox figcaption { margin-top: 12px; color: #fff; font-family: var(--display); font-size: 1.3rem; }
.lb-close, .lb-nav { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border: 0; border-radius: 50%; background: #fff; color: #3b2408; cursor: pointer; }
.lb-close { position: absolute; top: 18px; right: 18px; }


/* ---------- Общие блоки: в палитре «Балапанчика» ---------- */
.tv { background: var(--yolk); box-shadow: 0 0 0 4px var(--ink), 0 30px 60px rgba(107, 58, 18, .22); }
.tv-screen { background: var(--sky-dd); }
.tv-sun { background: radial-gradient(circle at 40% 36%, #fffbe0, var(--yolk) 60%, var(--orange)); box-shadow: 0 0 0 10px rgba(255, 210, 63, .35); }
.tv-tri { color: var(--orange-d); }
.tv-label { background: rgba(15, 90, 134, .75); }
.tab { border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; }
.tab.is-on { background: var(--yolk); color: var(--ink); border-color: var(--yolk-d); }
.photo-btn { border-color: #fff; border-radius: 14px; box-shadow: 0 24px 46px rgba(107, 58, 18, .18), 0 0 0 3px var(--yolk); }
.photo-btn figcaption { color: var(--orange-d); font-weight: 700; }
.hall-nav { background: var(--orange); color: #fff; box-shadow: 0 5px 0 var(--orange-d); }
.story, .doc-set, .jobs { border-radius: 28px; box-shadow: var(--shadow); }
.story-title { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--orange-d); }
.story-img { background: var(--yolk-l); }
.story-body time { color: var(--sky-d); }
.doc-set h3 { color: var(--orange-d); }
.doc-set a .ico { color: var(--sky-d); }
.jobs { background: linear-gradient(160deg, var(--grass), var(--grass-d)); color: #fff; }
.jobs h3 { color: var(--yolk); }
.job a { color: var(--yolk) !important; }
.toast { border-radius: 999px; box-shadow: 0 18px 44px rgba(107, 58, 18, .3), inset 0 -5px 0 var(--yolk); color: var(--ink); }
.toast b { color: var(--orange-d); }
.toast .t-egg { width: 26px; flex: none; }
.news-dialog { border-radius: 28px; color: var(--ink); }
.news-dialog::backdrop { background: rgba(15, 90, 134, .7); }
.nd-body time { color: var(--sky-d); }
.nd-body h3 { font-family: var(--display); font-weight: 800; color: var(--orange-d); }
.nd-close { background: var(--orange); color: #fff; }
.nd-thumbs button.is-active { border-color: var(--yolk); }
.lightbox { background: rgba(20, 50, 80, .95); }

/* ---------- Контакты: закат над лугом, письмо и почтовый ящик ---------- */
.sec-sunset { background: linear-gradient(180deg, #fff4d6 0%, #ffe0b8 40%, #ffc9b5 75%, #ffd3c9 100%); }
.sunset-sun { position: absolute; left: 32%; bottom: 56px; width: 150px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 36%, #fffbe0, #ffcf4a 55%, #ff9a3c); box-shadow: 0 0 80px 30px rgba(255, 170, 60, .4); pointer-events: none; }
.cl-4 { left: 6%; top: 60px; scale: .7; opacity: .9; } .cl-5 { right: 22%; top: 120px; scale: .5; opacity: .8; }
.contact-hill { position: absolute; left: 0; bottom: 0; width: 100%; height: 120px; fill: #5db342; pointer-events: none; }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; padding-bottom: 120px; }
.contact-info { display: grid; gap: 14px; justify-items: start; }
.contact-phone-row { display: flex; align-items: center; gap: 10px; }
.contact-phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); color: var(--orange-d) !important; text-decoration: none; }
.contact-phone .ico { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--yolk); color: var(--ink); box-shadow: 0 3px 0 var(--yolk-d); }
.contact-wa { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #25d366; color: #fff; transition: transform .25s var(--ease-pop); }
.contact-wa:hover { transform: scale(1.1) rotate(-8deg); }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.contact-list .ico { margin-top: 3px; color: var(--pink); }
.contact-list a { font-weight: 700; }
.social-label { margin-top: 6px; font-family: var(--display); font-size: .95rem; font-weight: 700; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ink) !important; font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 var(--line); transition: transform .25s var(--ease-pop); }
.socials a:hover { transform: translateY(-3px); }
.map-box { width: 100%; margin-top: 8px; overflow: hidden; border-radius: 20px; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--yolk); }
.map-box iframe { display: block; width: 100%; height: 260px; border: 0; }
.post { position: relative; }
/* форма — письмо «авиапочтой»: полосатая кайма, линейки, марка с птенцом */
.form { position: relative; padding: 40px 32px 32px; border-radius: 20px; background: repeating-linear-gradient(180deg, transparent 0 33px, rgba(46, 166, 230, .14) 33px 35px), #fff; color: var(--ink); box-shadow: 0 0 0 10px #fff, 0 0 0 10px transparent, 0 30px 60px rgba(201, 79, 5, .25); }
.form::before { content: ""; position: absolute; inset: -10px; z-index: -1; border-radius: 26px; background: repeating-linear-gradient(135deg, var(--pink) 0 14px, #fff 14px 24px, var(--sky) 24px 38px, #fff 38px 48px); }
.stamp { position: absolute; right: 18px; top: -26px; display: grid; place-items: center; width: 82px; height: 96px; padding: 8px; background: var(--sky-l); rotate: 8deg; -webkit-mask: radial-gradient(circle at 5px 5px, transparent 3.4px, #000 3.6px) -5px -5px / 10px 10px; mask: radial-gradient(circle at 5px 5px, transparent 3.4px, #000 3.6px) -5px -5px / 10px 10px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); }
.stamp-chick { width: 100%; height: auto; }
.form h3 { margin-top: 2px; padding-right: 80px; font-size: 1.8rem; color: var(--orange-d); }
.form label { display: block; margin: 16px 0 6px; font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--muted); }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--cream); font: 600 1.06rem var(--body); color: var(--ink); transition: border-color .2s, background .2s; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b3a12' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 36px; }
.form select.flash { animation: flash 1s ease; }
@keyframes flash { 30% { background-color: rgba(255, 210, 63, .6); } }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--sky); background-color: #fff; }
.consent { position: relative; display: flex !important; gap: 10px; align-items: flex-start; margin-top: 18px !important; font-family: var(--body) !important; font-size: .95rem !important; font-weight: 600 !important; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--grass-d); }
.form .btn { width: 100%; margin-top: 22px; }
.form-note { margin-top: 12px; font-weight: 700; color: var(--grass-d); opacity: 0; transition: opacity .3s; }
.form-note.show { opacity: 1; }
.form-note.error { color: #b3261e; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mailbox-wrap { position: absolute; right: -14px; bottom: -126px; z-index: 3; width: 96px; pointer-events: none; }
.mailbox { width: 100%; height: auto; overflow: visible; }
.mb-flag { transform-box: view-box; transform-origin: 119px 84px; transform: rotate(90deg); transition: transform .8s var(--ease-pop); }
.mailbox-wrap.got .mb-flag { transform: none; }
.envelope { position: absolute; left: 10%; top: 6%; width: 46px; height: 32px; border-radius: 4px; background: linear-gradient(155deg, transparent 48%, rgba(107, 58, 18, .3) 49% 51%, transparent 52%), linear-gradient(25deg, transparent 48%, rgba(107, 58, 18, .3) 49% 51%, transparent 52%), #fff; box-shadow: 0 0 0 2px var(--ink); opacity: 0; }

/* ---------- Подвал: луг, забор, счётчик пасхальных яиц ---------- */
.foot { position: relative; background: linear-gradient(180deg, #5db342, var(--grass-d) 60%, #24701d); color: #fff; }
.fence-foot { position: relative; display: block; bottom: auto; top: -40px; height: 54px; margin-bottom: -54px; }
.foot-in-top { display: grid; gap: 16px; justify-items: center; padding: 40px 0 34px; text-align: center; }
.foot-logo { width: 150px; height: 150px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .25)); }
.foot-bye { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); color: var(--yolk); text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.eggs { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 10px 22px; border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(255, 210, 63, .45); font-weight: 700; font-size: .95rem; }
.eggs-dots { display: inline-flex; gap: 6px; }
.eggs-dots i { display: block; width: 22px; opacity: .45; filter: grayscale(1) brightness(1.1); transition: opacity .4s, filter .4s, transform .5s var(--ease-pop); }
.eggs-dots i svg { width: 100%; height: auto; }
.eggs-dots i.on { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 210, 63, .9)); transform: scale(1.25) rotate(-14deg); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding: 20px 0 30px; background: rgba(0, 0, 0, .18); color: rgba(255, 255, 255, .9); font-size: .95rem; }
.foot-in.wrap { width: 100%; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; color: var(--yolk) !important; font-weight: 700; text-decoration: none; }

/* ---------- Спрятанные яички ---------- */
.hid-egg { position: absolute; z-index: 4; width: 30px; padding: 0; border: 0; background: none; cursor: pointer; rotate: var(--r, 0deg); }
.he-svg { width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); }

/* ---------- Летящее: парад цыплят, птенец-лётчик, яички ---------- */
.sky-layer { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.rain-egg { position: fixed; left: 0; top: 0; z-index: 74; width: 24px; height: auto; pointer-events: none; }
.walker { position: fixed; left: 0; bottom: 6px; z-index: 75; display: flex; gap: 6px; align-items: flex-end; pointer-events: none; }
.walker .walk-svg { width: 76px; height: auto; overflow: visible; }
.walker .walk-svg:nth-child(odd) { width: 64px; }
.flyer { position: fixed; left: 0; top: 0; z-index: 75; width: 110px; pointer-events: none; }
.flyer .fly-svg { width: 100%; height: auto; overflow: visible; }

/* ---------- Движение (только если посетитель не просил его уменьшить) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .7s ease, transform .8s cubic-bezier(.3, 1.3, .5, 1); transition-delay: var(--delay, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes blink { 0%, 92%, 100% { transform: none; } 95% { transform: scaleY(.1); } }

  /* небо */
  .js .sun { animation: sun-in 1.6s .2s var(--ease-pop) both; }
  @keyframes sun-in { from { transform: translateY(60px) scale(.5); opacity: 0; } }
  .sun-rays { animation: spin 40s linear infinite; }
  .cloud { animation: drift 30s ease-in-out infinite alternate; }
  .cl-2 { animation-duration: 38s; animation-delay: -10s; } .cl-3 { animation-duration: 24s; animation-delay: -6s; } .cl-5 { animation-duration: 28s; }
  @keyframes drift { to { translate: 80px 0; } }
  .birds { animation: birds 32s linear infinite; }
  @keyframes birds { from { translate: -40vw 0; } to { translate: 80vw -40px; } }

  /* заголовок: буквы падают, потом «прыгают» — ось BNCE шрифта Shantell Sans */
  .js .eyebrow, .js .hero-tag, .js .hero-lead, .js .hero-actions, .js .ht-sub { animation: rise .8s var(--ease-pop) both; }
  .js .eyebrow { animation-delay: .1s; } .js .ht-sub { animation-delay: 1.1s; } .js .hero-tag { animation-delay: 1.25s; } .js .hero-lead { animation-delay: 1.4s; } .js .hero-actions { animation-delay: 1.55s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  .js .ht-l { animation: l-in .9s calc(var(--i) * .08s + .2s) var(--ease-pop) both, l-jelly 3.4s calc(var(--i) * .16s + 1.8s) ease-in-out infinite; }
  @keyframes l-in { from { opacity: 0; transform: translateY(-110px) rotate(-18deg) scale(.5); } }
  @keyframes l-jelly { 0%, 100% { transform: none; font-variation-settings: "INFM" 30, "BNCE" -60; } 25% { transform: translateY(-6px) rotate(-3deg); } 50% { font-variation-settings: "INFM" 70, "BNCE" 90; transform: translateY(0) scale(1.04, .96); } 75% { transform: translateY(-3px) rotate(2deg); } }
  .ht-l.hop { animation: l-hop .6s var(--ease-pop); }
  @keyframes l-hop { 40% { transform: translateY(-40px) rotate(-10deg) scale(1.15); } }
  .ht-year { animation: egg-wobble 3s 2.2s ease-in-out infinite; }
  @keyframes egg-wobble { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(-12deg); } 84% { transform: rotate(10deg); } 92% { transform: rotate(-5deg); } }

  /* логотип: вступление — значок, солнце, яйцо качается, шапочка отскакивает, птенец выглядывает, буквы падают */
  .js .is-intro .bl-badge { animation: badge-in .9s .1s var(--ease-pop) both; }
  @keyframes badge-in { from { opacity: 0; transform: scale(.6); } }
  .js .is-intro .bl-sun { animation: lsun-in 1.2s .5s var(--ease-pop) both; }
  @keyframes lsun-in { from { opacity: 0; transform: translate(-60px, 60px) scale(.3); } }
  .js .is-intro .bl-egg, .js .is-intro .bl-nest-front, .js .is-intro .bl-nest-back { animation: pop-in .7s .6s var(--ease-pop) both; }
  @keyframes pop-in { from { opacity: 0; transform: scale(.4); } }
  .js .is-intro .bl-chick { animation: chick-in 1.1s 1.2s cubic-bezier(.3, 1.4, .5, 1) both; }
  @keyframes chick-in { 0% { transform: translateY(90px) scale(.8); } 30% { transform: translateY(70px) rotate(-6deg); } 45% { transform: translateY(70px) rotate(6deg); } 100% { transform: none; } }
  .js .is-intro .bl-cap { animation: cap-in 1.1s 1.2s cubic-bezier(.3, 1.4, .5, 1) both; }
  @keyframes cap-in { 0% { transform: translate(-50px, 92px) rotate(0); } 30% { transform: translate(-50px, 72px) rotate(-6deg); } 45% { transform: translate(-50px, 72px) rotate(6deg); } 70% { transform: translate(10px, -40px) rotate(30deg); } 100% { transform: none; } }
  .js .is-intro .bl-l { animation: ll-drop .7s calc(var(--i) * .08s + 1.9s) cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes ll-drop { from { opacity: 0; transform: translateY(-140px) rotate(-30deg) scale(.6); } }
  /* логотип: живые части */
  .bl-rays { animation: spin 26s linear infinite; }
  .bl-c1 { animation: drift 14s ease-in-out infinite alternate; } .bl-c2 { animation: drift 18s ease-in-out infinite alternate-reverse; }
  .bl-birdie { animation: birdie 9s ease-in-out infinite alternate; }
  @keyframes birdie { to { transform: translate(40px, -18px); } }
  .bl-eye { animation: blink 4.4s 3.4s infinite; }
  .bl-wing-l { animation: flap-l 3.2s 3.2s ease-in-out infinite; } .bl-wing-r { animation: flap-r 3.2s 3.2s ease-in-out infinite; }
  @keyframes flap-l { 0%, 70%, 100% { transform: none; } 76%, 88% { transform: rotate(-22deg); } 82%, 94% { transform: rotate(6deg); } }
  @keyframes flap-r { 0%, 70%, 100% { transform: none; } 76%, 88% { transform: rotate(22deg); } 82%, 94% { transform: rotate(-6deg); } }
  .bl-beak-low { animation: peep 5s 4s ease-in-out infinite; }
  @keyframes peep { 0%, 80%, 92%, 100% { transform: none; } 84%, 88% { transform: translateY(5px) rotate(4deg); } }
  .bp-logo .bl-cap-wrap { animation: cap-bob 4.6s 3.6s ease-in-out infinite; }
  @keyframes cap-bob { 0%, 64%, 100% { transform: none; } 72% { transform: translateY(-16px) rotate(6deg); } 80% { transform: translateY(0); } 86% { transform: translateY(-5px); } }
  .bl-cap-wrap { transform-box: view-box; transform-origin: 250px 112px; }
  .bl-chick-wrap { transform-box: view-box; transform-origin: 200px 270px; animation: sway 4s 3s ease-in-out infinite alternate; }
  @keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
  .bl-l { animation: ll-wave 4.4s calc(var(--i) * .12s + 3.2s) ease-in-out infinite; }
  @keyframes ll-wave { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-9px) rotate(-5deg); } 86% { transform: translateY(2px) rotate(3deg); } }
  .bl-l.hop { animation: ll-hop .6s var(--ease-pop); }
  @keyframes ll-hop { 40% { transform: translateY(-30px) rotate(-12deg) scale(1.2); } }
  .bl-chick-wrap.hop { animation: chick-jump .7s var(--ease-pop); }
  @keyframes chick-jump { 40% { transform: translateY(-30px) scale(1.05, .95); } 70% { transform: translateY(0) scale(.96, 1.04); } }
  .bl-cap-wrap.hop { animation: cap-hop .8s var(--ease-pop); }
  @keyframes cap-hop { 40% { transform: translateY(-46px) rotate(24deg); } }
  .bp-logo.hatched .bl-cap-wrap { animation: cap-fly 1.4s cubic-bezier(.3, 1, .6, 1) forwards; }
  @keyframes cap-fly { 40% { transform: translate(80px, -120px) rotate(160deg); } 100% { transform: translate(150px, 10px) rotate(300deg); opacity: 0; } }
  .bp-logo.hatched .bl-chick-wrap { animation: chick-out 1.6s var(--ease-pop) both; }
  @keyframes chick-out { 30% { transform: translateY(-70px) rotate(-8deg); } 60% { transform: translateY(-34px) rotate(6deg); } 100% { transform: translateY(-34px); } }
  .bl-sun.spin { animation: lsun-spin 1.2s var(--ease-pop); }
  @keyframes lsun-spin { 50% { transform: scale(1.35) rotate(180deg); } 100% { transform: rotate(360deg); } }
  .feathers i { animation: feather-fall 7s calc(var(--n, 0) * 1s) ease-in-out infinite; }
  .feathers i:nth-child(1) { --n: 0; } .feathers i:nth-child(2) { --n: 1.6; } .feathers i:nth-child(3) { --n: 3.1; } .feathers i:nth-child(4) { --n: 4.4; } .feathers i:nth-child(5) { --n: 5.5; }
  @keyframes feather-fall { 0% { opacity: 0; transform: translateY(-20px) rotate(-30deg); } 15% { opacity: .9; } 50% { transform: translate(20px, 60px) rotate(30deg); } 85% { opacity: .8; } 100% { opacity: 0; transform: translate(-10px, 130px) rotate(-20deg); } }

  /* луг: курочка и цыплята */
  .baiterek .tree-svg { transform-origin: 50% 100%; animation: tree-sway 6s ease-in-out infinite alternate; }
  @keyframes tree-sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg); } }
  .daisies i { animation: daisy 3s calc(var(--k) * -.5s) ease-in-out infinite alternate; }
  @keyframes daisy { to { transform: rotate(18deg) translateY(-2px); } }
  .hen-btn { animation: hen-walk 16s ease-in-out infinite alternate; }
  @keyframes hen-walk { from { translate: -30px 0; } to { translate: 40px 0; } }
  .chick-btn { animation: hen-walk 16s ease-in-out infinite alternate; }
  .hen-bob { animation: bob .5s ease-in-out infinite alternate; }
  .cb-bob { animation: bob .34s var(--d) ease-in-out infinite alternate; }
  @keyframes bob { to { transform: translateY(-3px); } }
  .hn-la, .cs-la { animation: step .5s ease-in-out infinite alternate; }
  .hn-lb, .cs-lb { animation: step .5s ease-in-out infinite alternate-reverse; }
  .cs-la, .cs-lb { animation-duration: .34s; }
  @keyframes step { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
  .hn-head { animation: peck 4s 1s ease-in-out infinite; }
  .cs-head { animation: peck 3s var(--d) ease-in-out infinite; }
  @keyframes peck { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(38deg); } 80% { transform: rotate(30deg); } 84% { transform: rotate(40deg); } 90% { transform: none; } }
  .hn-tail { animation: tail 2s ease-in-out infinite alternate; }
  @keyframes tail { to { transform: rotate(-6deg); } }
  .hen-btn.cluck .hn-wing, .chick-btn.hop .cs-wing { animation: wing-flap .18s ease-in-out 6 alternate; }
  @keyframes wing-flap { to { transform: rotate(-38deg); } }
  .hen-btn.cluck .hen-bob { animation: hen-hop .9s var(--ease-pop); }
  @keyframes hen-hop { 40% { transform: translateY(-24px); } }
  .chick-btn.hop .cb-bob { animation: c-jump .8s var(--ease-pop); }
  @keyframes c-jump { 40% { transform: translateY(-46px) rotate(-10deg); } }
  .yard.party .cb-bob, .yard.party .hen-bob { animation: c-jump .8s calc(var(--k, 0) * .12s) var(--ease-pop) 3; }

  /* о нас */
  .buddy-sun { animation: halo 5s ease-in-out infinite alternate; }
  @keyframes halo { to { transform: scale(1.05); } }
  .buddy-chick .ck-eye, .stage-chick .ck-eye, .stamp-chick .ck-eye { animation: blink 4.6s 1s infinite; }
  .buddy-chick .ck-cap { animation: cap-bob 4s 2s ease-in-out infinite; }
  .buddy-btn.talk .buddy-chick { animation: chick-jump .6s var(--ease-pop); }
  .buddy-btn.talk .bubble { animation: bubble-pop .5s var(--ease-pop); }
  @keyframes bubble-pop { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
  .bubble { animation: bubble-float 3s ease-in-out infinite alternate; }
  @keyframes bubble-float { to { transform: translateY(-6px) rotate(-2deg); } }
  .fe-art { animation: egg-sit 4s calc(var(--i) * -.7s) ease-in-out infinite; }
  @keyframes egg-sit { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-7deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } }
  .fact-egg:hover .fe-art { animation: none; }
  .fact-egg.pop .fe-big { animation: big-bounce .8s .5s var(--ease-pop); }
  @keyframes big-bounce { 40% { transform: translateY(-14px) scale(1.12); } }

  /* группы */
  .stage-0 .stage-chick { animation: egg-wobble 3s calc(var(--i) * -.6s) ease-in-out infinite; }
  .stage-0 .ck-cap { animation: cap-bob 3s .6s ease-in-out infinite; }
  .stage-1 .stage-chick { animation: sway 2.6s ease-in-out infinite alternate; }
  .stage-1 .ck-wl, .stage-1 .ck-wr { animation: none; }
  .stage-2 .stage-chick { animation: hop-loop 2.2s ease-in-out infinite; }
  @keyframes hop-loop { 0%, 60%, 100% { transform: none; } 75% { transform: translateY(-26px); } 88% { transform: translateY(0) scale(1.05, .95); } }
  .stage-2 .ck-wl, .fly-svg .ck-wl { animation: flap-l2 .5s ease-in-out infinite alternate; }
  .stage-2 .ck-wr, .fly-svg .ck-wr { animation: flap-r2 .5s ease-in-out infinite alternate; }
  .fly-svg .ck-wl, .fly-svg .ck-wr { animation-duration: .16s; }
  @keyframes flap-l2 { from { transform: rotate(12deg); } to { transform: rotate(-22deg); } }
  @keyframes flap-r2 { from { transform: rotate(-12deg); } to { transform: rotate(22deg); } }
  .fly-svg .ck-scarf-tail { animation: scarf .3s ease-in-out infinite alternate; }
  @keyframes scarf { to { transform: rotate(-14deg) scaleX(1.1); } }
  .stage.swing .stage-chick { animation: c-jump .8s var(--ease-pop); }

  /* кружки */
  .house-ico svg { animation: ico-bob 3s calc(var(--i) * -.9s) ease-in-out infinite alternate; }
  @keyframes ico-bob { to { transform: translateY(-5px) rotate(-5deg); } }
  .house-art { animation: house-sway 5s calc(var(--i) * -1.2s) ease-in-out infinite alternate; transform-origin: 50% 100%; }
  @keyframes house-sway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }

  /* контакты */
  .sunset-sun { animation: halo 6s ease-in-out infinite alternate; }
  .stamp-chick .ck-wl { animation: flap-l2 .9s ease-in-out infinite alternate; } .stamp-chick .ck-wr { animation: flap-r2 .9s ease-in-out infinite alternate; }
  .mailbox-wrap.got .envelope { animation: env-fly 1s ease-in both; }
  @keyframes env-fly { 0% { opacity: 1; transform: translate(-260px, -320px) rotate(-30deg) scale(1.4); } 70% { opacity: 1; transform: translate(10px, 10px) rotate(0) scale(.8); } 100% { opacity: 0; transform: translate(16px, 22px) scale(.4); } }
  .mailbox-wrap.got .mailbox { animation: c-jump .6s .9s var(--ease-pop); }

  /* яички */
  .hid-egg { animation: hid-wiggle 4s calc(var(--r, 0deg) / 10deg * .3s) ease-in-out infinite; }
  @keyframes hid-wiggle { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-14deg); } 92% { transform: rotate(12deg); } }
  .hid-egg.got { animation: egg-got 1s var(--ease-pop) forwards; }
  @keyframes egg-got { 40% { transform: translateY(-60px) scale(1.9) rotate(360deg); opacity: 1; } 100% { transform: translateY(-140px) scale(.4); opacity: 0; } }
  .scroll-egg.hatched .se-chick { animation: c-jump .8s .3s var(--ease-pop); }
  .scroll-egg.shake .se-svg { animation: egg-wobble .9s ease-in-out; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1400px) { .menu a { padding: 8px 9px; font-size: .95rem; } }
@media (max-width: 1320px) {
  .chip-menu { display: inline-flex; }
  .menu { position: absolute; top: calc(var(--bar-h) + 18px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 4px; padding: 14px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 3px var(--yolk), 0 24px 60px rgba(107, 58, 18, .22); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 18px; font-size: 1.12rem; }
  .menu a::after { left: auto; right: 22px; bottom: 50%; transform: translateY(50%) scale(0); }
  .menu a:hover::after, .menu a.is-active::after { transform: translateY(50%) scale(1); }
}
@media (max-width: 1060px) {
  .hero { min-height: 0; padding-top: calc(var(--bar-h) + 44px); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { justify-items: center; order: 2; }
  .hero-title { justify-items: center; }
  .ht-word, .ht-sub { justify-content: center; }
  .hero-logo { order: 1; }
  .bp-logo { width: min(100%, 380px); }
  .hero-actions { justify-content: center; }
  .about-grid, .contact-grid, .docs-grid, .video-grid { grid-template-columns: 1fr; }
  .buddy { max-width: 330px; }
  .growth-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .houses-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .mailbox-wrap { right: 0; }
}
@media (max-width: 760px) { .chip-call span { display: none; } .chip-call { width: 42px; padding: 0; justify-content: center; } }
@media (max-width: 640px) {
  .wrap { width: min(1180px, 100% - 32px); }
  body { font-size: 1.04rem; }
  .hero { padding-bottom: 220px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .ht-word { font-size: clamp(2.4rem, .4rem + 10.4vw, 4rem); }
  .ht-l { -webkit-text-stroke-width: 7px; text-shadow: 2px 4px 0 var(--ink); }
  .meadow { height: 210px; }
  .sun { width: 70px; left: 6%; }
  .baiterek { left: -6%; width: 120px; bottom: 34%; }
  .hen-btn { left: 60%; width: 96px; bottom: 19%; }
  .chick-btn { bottom: 19%; }
  .gold-egg { width: 18px !important; }
  .brand-text small { white-space: nowrap; }
  .chick-btn { width: calc(58px * var(--s)); }
  .chick-btn:nth-of-type(2) { --x: 45% !important; } .chick-btn:nth-of-type(3) { --x: 32% !important; } .chick-btn:nth-of-type(4) { --x: 20% !important; }
  .hero-hint { font-size: .85rem; bottom: 8px; }
  .bubble { right: -14%; top: -14%; font-size: .95rem; }
  .basket { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .basket-nest { display: none; }
  .fe-art { width: 104px; }
  .growth { grid-template-columns: 1fr; gap: 40px; }
  .growth::before { display: none; }
  .stage-art { height: 200px; }
  .form { padding: 36px 18px 26px; }
  .form h3 { font-size: 1.5rem; }
  .stamp { width: 66px; height: 78px; right: 10px; }
  .mailbox-wrap { width: 74px; bottom: -110px; }
  .sunset-sun { width: 100px; }
  .foot-in { justify-content: center; text-align: center; } .foot-in p { width: 100%; }
  .hall-nav { width: 44px; height: 44px; }
  .photo-btn img { height: clamp(240px, 46vh, 360px); }
  .tv { padding: 8px; border-radius: 22px; } .tv-screen { border-radius: 16px; } .tv-sun { width: 86px; height: 86px; }
}
@media (max-width: 420px) {
  .top-in { gap: 6px; width: calc(100% - 20px); }
  .brand img { width: 48px; height: 48px; }
  .brand-text strong { font-size: 1.32rem; }
  .brand-text small { font-size: .6rem; letter-spacing: .08em; }
  .chip { min-height: 38px; padding: 0 10px; }
  .chip-menu, .chip-call { width: 38px; padding: 0; }
  .chip-call span { display: none; }
}
