/* «Үш батыр» — казахские батыры: небо с солнцем в 32 луча, степь с юртами, узор «қошқар мүйіз», свиток-«жарлық», щиты-группы.
   Шрифты свои (Podkova, Nunito), без внешних зависимостей. Анимации включаются классом html.js и отключаются при prefers-reduced-motion. */

@font-face { font-family: "Podkova"; font-weight: 500 800; font-display: swap; src: url("../assets/fonts/podkova-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: "Podkova"; font-weight: 500 800; font-display: swap; src: url("../assets/fonts/podkova-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Podkova"; font-weight: 500 800; font-display: swap; src: url("../assets/fonts/podkova-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: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-400.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-700.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-800.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }

:root {
  --navy: #1b2447; --navy-2: #273264; --navy-3: #0f1636;
  --sky: #19b3d8; --sky-d: #0c86ad; --sky-l: #d9f4fb; --sky-ll: #eefaff;
  --gold: #ffc531; --gold-d: #d98a00; --gold-l: #fff0b8;
  --brick: #f98a1c; --brick-d: #c85f08;
  --red: #e8402a; --purple: #7a55b8; --green: #6fae3a;
  --cream: #fff8e6; --paper: #fffaf0; --paper-2: #fff1d2; --white: #fffefb;
  --text: #2a2f4d; --muted: #5d6486;
  --head: "Podkova", Georgia, "Times New Roman", serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --stroke: 3px solid var(--navy);
  --pop: 0 6px 0 var(--navy);
  --bar-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--body); font-size: 1.04rem; line-height: 1.62; color: var(--text);
  background: var(--paper); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.12; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-d); outline-offset: 3px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -70px; z-index: 90; padding: 10px 16px; border: var(--stroke); border-radius: 12px; background: var(--gold); font-weight: 800; }
.skip-link:focus { top: 12px; }
.hp-field { position: absolute; left: -9999px; }
.muted { color: var(--muted); }

/* ---------- Кнопки, значки, флажок-«кикер» ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: var(--stroke); border-radius: 16px; font-family: var(--head); font-size: 1.08rem; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .2s; }
.btn-main { background: var(--gold); color: var(--navy); box-shadow: var(--pop); }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--navy); background: #ffd24f; }
.btn-main:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy); }
.btn-line { background: var(--cream); color: var(--navy); box-shadow: var(--pop); }
.btn-line:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--navy); background: #fff; }
.btn-line:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.pennant { display: inline-flex; align-items: center; gap: 8px; padding: 7px 26px 7px 16px; background: var(--navy); color: var(--gold); font-family: var(--head); font-size: .86rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%); }
.pennant .ico { width: 1.1em; height: 1.1em; }
.band { display: block; width: 100%; height: 18px; }

/* ---------- Шапка: тёмно-синяя, под ней узор; по нему летит стрела ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--cream); }
.top-in { display: flex; align-items: center; gap: 18px; width: min(1320px, calc(100% - 32px)); height: 66px; margin-inline: auto; }
.brand { display: flex; flex: none; align-items: center; gap: 12px; text-decoration: none; color: inherit; white-space: nowrap; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); background: var(--sky); }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-family: var(--head); font-size: 1.45rem; font-weight: 800; color: var(--gold); }
.brand small { margin-top: 2px; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9fd9ea; }
.menu { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.menu a { position: relative; padding: 8px 13px; font-family: var(--head); font-size: .98rem; font-weight: 600; text-decoration: none; white-space: nowrap; color: #e8ecff; transition: color .2s; }
.menu a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 9px; height: 9px; background: var(--gold); translate: -50% 4px; rotate: 45deg; scale: 0; transition: scale .25s cubic-bezier(.3, 1.6, .5, 1); }
.menu a:hover { color: var(--gold); }
.menu a.is-active { color: var(--gold); }
.menu a.is-active::after { scale: 1; }
.chips { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu + .chips { margin-left: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 2px solid var(--gold); border-radius: 999px; font-family: var(--head); font-size: .92rem; font-weight: 700; text-decoration: none; color: var(--gold); transition: background .2s, color .2s; }
.chip:hover { background: var(--gold); color: var(--navy); }
.chip-call { background: var(--gold); color: var(--navy); }
.chip-call:hover { background: #fff; border-color: #fff; }
.chip-menu { display: none; padding: 0; width: 44px; justify-content: center; background: none; }
.chip-menu .ico { width: 24px; height: 24px; }
.bandline { position: relative; height: 18px; }
.bandline .band { position: absolute; inset: 0; }
.prog { position: absolute; inset: 0; }
.prog-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.prog-arrow { position: absolute; top: 1px; left: calc((100% - 60px) * var(--p, 0)); width: 60px; height: 16px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }

/* ---------- Первый экран: небо, солнце, степь ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 52px) 0 0; background: linear-gradient(180deg, #27bde3 0%, #6fd6ef 38%, #bfeefa 68%, #fff1c8 100%); isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky-burst { position: absolute; left: 66%; top: 34%; width: 1600px; height: 1600px; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .26) 0 4.5deg, transparent 4.5deg 9deg); -webkit-mask-image: radial-gradient(circle, #000 14%, transparent 62%); mask-image: radial-gradient(circle, #000 14%, transparent 62%); }
.cloud { position: absolute; width: 150px; opacity: .95; }
.cloud-a { top: 9%; left: 4%; }
.cloud-b { top: 30%; left: 44%; width: 104px; opacity: .8; }
.cloud-c { top: 16%; right: 5%; width: 126px; }
.eagle { position: absolute; top: 20%; left: -120px; width: 78px; opacity: 0; }
.wing { transform-box: fill-box; }
.wing-l { transform-origin: 100% 75%; } .wing-r { transform-origin: 0 75%; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(8px, 3vw, 40px); align-items: center; padding-bottom: clamp(120px, 14vw, 190px); }
.hero-text { display: grid; justify-items: start; gap: 18px; }
.hero h1 { display: grid; gap: 2px; }
.hero-name { font-size: clamp(3.6rem, 6.7vw, 6.5rem); white-space: nowrap; font-weight: 800; line-height: .92; letter-spacing: .01em; color: var(--gold); text-shadow: -3px -3px 0 var(--navy), 3px -3px 0 var(--navy), -3px 3px 0 var(--navy), 3px 3px 0 var(--navy), 0 -4px 0 var(--navy), 0 4px 0 var(--navy), -4px 0 0 var(--navy), 4px 0 0 var(--navy), 0 9px 0 var(--navy), 0 14px 18px rgba(27, 36, 71, .3); }
.hero-sub { font-family: var(--head); font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--navy); letter-spacing: .03em; }
.hero-title { position: relative; display: inline-block; margin-top: 4px; padding: 10px 24px; border: var(--stroke); border-radius: 14px; background: var(--cream); font-family: var(--head); font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 700; color: var(--navy); box-shadow: 5px 5px 0 var(--navy); rotate: -1.4deg; }
.hero-title::before, .hero-title::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; background: var(--gold); border: 3px solid var(--navy); translate: 0 -50%; rotate: 45deg; }
.hero-title::before { left: -10px; } .hero-title::after { right: -10px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 2px solid var(--navy); border-radius: 999px; background: rgba(255, 255, 255, .86); font-weight: 800; font-size: .93rem; color: var(--navy); }
.hero-facts .ico { color: var(--sky-d); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero-logo { position: relative; display: grid; place-items: center; }
.hero-sun { position: absolute; left: 50%; top: 2%; width: 96%; translate: -50% -50%; max-width: none; }
.sun-rays { transform-origin: 0 0; }
.ubl { position: relative; z-index: 1; display: block; width: min(660px, 100%); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; filter: drop-shadow(0 18px 20px rgba(27, 36, 71, .28)); }
.ubl:focus-visible { outline-offset: 6px; border-radius: 24px; }
.ubl-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-note { position: absolute; right: -2%; bottom: -3%; z-index: 2; display: flex; align-items: flex-start; gap: 2px; font-family: var(--head); font-size: 1.15rem; font-weight: 700; color: var(--navy); rotate: 5deg; pointer-events: none; }
.hero-note svg { width: 48px; height: 38px; margin-top: 18px; scale: -1 1; rotate: 22deg; }
.hero-note span { padding: 3px 12px; border: 2.5px solid var(--navy); border-radius: 12px; background: var(--gold); box-shadow: 3px 3px 0 var(--navy); }

.hero-land { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: clamp(150px, 17vw, 240px); pointer-events: none; }
.hero-land > svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.land-back { height: 86% !important; } .land-mid { height: 66% !important; } .land-front { height: 40% !important; }
.hero-land .land-front { overflow: visible; }
.yurt { position: absolute; height: auto !important; width: clamp(70px, 9.5vw, 138px) !important; }
.hero-land .yurt-a { left: 7%; bottom: 46%; } .hero-land .yurt-b { left: auto; right: 9%; bottom: 40%; width: clamp(52px, 6.4vw, 96px) !important; }
.smoke { position: absolute; left: calc(7% + clamp(35px, 4.7vw, 66px)); bottom: calc(46% + clamp(70px, 9.5vw, 138px) * .74); width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .8); opacity: 0; }
.smoke-b { left: calc(7% + clamp(35px, 4.7vw, 66px) + 8px); }
.blade { transform-box: fill-box; transform-origin: 50% 100%; }

/* ---------- Разделы ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.head { display: grid; justify-items: start; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.head-center { justify-items: center; text-align: center; }
.head h2, .section h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
.divider { width: 170px; height: 20px; color: var(--gold-d); overflow: visible; }
.head-center .divider { margin-inline: auto; }
.lede { max-width: 62ch; color: var(--muted); font-size: 1.1rem; }
.dr-scroll { stroke-dasharray: 1; stroke-dashoffset: 0; }
.section > .band { position: absolute; left: 0; top: 0; }

/* О садике: текст, медали и свиток */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-text { display: grid; gap: 16px; justify-items: start; }
.about-text .head { margin-bottom: 4px; }
.medals { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 14px; }
.medal { position: relative; display: grid; place-content: center; justify-items: center; width: 118px; height: 118px; border: 4px solid var(--navy); border-radius: 50%; background: radial-gradient(circle at 34% 28%, #ffe888, var(--gold) 58%, #e39a10); box-shadow: 0 7px 0 var(--navy); text-align: center; rotate: -5deg; }
.medal::before, .medal::after { content: ""; position: absolute; z-index: -1; bottom: -26px; width: 26px; height: 38px; background: var(--red); border: 3px solid var(--navy); }
.medal::before { left: 26px; rotate: 10deg; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
.medal::after { right: 26px; rotate: -10deg; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
.medal strong { font-family: var(--head); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--navy); }
.medal span { margin-top: 3px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.medal-b { rotate: 4deg; background: radial-gradient(circle at 34% 28%, #ffc07a, var(--brick) 58%, #d96d0c); }
.medal-c { rotate: -2deg; background: radial-gradient(circle at 34% 28%, #9fe9f8, var(--sky) 58%, var(--sky-d)); }
.medal-c strong, .medal-c span { color: var(--navy); }
.decree { position: relative; padding-bottom: 8px; filter: drop-shadow(0 12px 0 rgba(27, 36, 71, .16)); }
.decree-roll { position: relative; z-index: 2; display: block; height: 36px; margin-inline: -14px; border: var(--stroke); border-radius: 18px; background: linear-gradient(#b8741f, #f7c46c 42%, #fddf9a 56%, #a8661a); }
.decree-roll::before, .decree-roll::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; translate: 0 -50%; border: 3px solid var(--navy); border-radius: 50%; background: radial-gradient(circle, #e8b25a 0 30%, #a8661a 32%); }
.decree-roll::before { left: 6px; } .decree-roll::after { right: 6px; }
.decree-sheet { position: relative; margin: -4px 8px; padding: 30px clamp(20px, 3vw, 34px) 26px; border-inline: 3px solid var(--navy); background: #fff3cf repeating-linear-gradient(transparent 0 33px, rgba(185, 120, 30, .09) 33px 34px); }
.decree-sheet h3 { margin-bottom: 14px; font-size: 1.5rem; text-align: center; }
.fact { display: grid; grid-template-columns: minmax(104px, 36%) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 2px dotted rgba(27, 36, 71, .32); }
.fact:last-child { border-bottom: 0; }
.fact dt { font-family: var(--head); font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brick-d); }
.fact dd { font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.fact a { text-underline-offset: 3px; }
.fact a.inline { display: block; width: fit-content; margin-top: 3px; font-size: .9rem; color: var(--sky-d); }
.about-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 48px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--stroke); border-radius: 18px; box-shadow: var(--pop); }

/* Заведующая */
.team { background: var(--sky-ll); }
.team::before { content: ""; position: absolute; inset: 0; opacity: .5; background: radial-gradient(circle at 12% 20%, var(--sky-l) 0 120px, transparent 121px), radial-gradient(circle at 88% 80%, var(--gold-l) 0 150px, transparent 151px); pointer-events: none; }
.people { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.person { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: center; width: min(720px, 100%); padding: 28px 32px; border: var(--stroke); border-radius: 28px; background: #fff; box-shadow: 0 9px 0 var(--navy); }
.people-1 .person { margin-inline: auto; }
.person-frame { position: relative; display: grid; place-items: center; }
.person-frame::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; border: 3px dashed var(--gold-d); background: conic-gradient(from 0deg, transparent 0 8deg, rgba(255, 197, 49, .24) 8deg 16deg, transparent 16deg 30deg, rgba(255, 197, 49, .24) 30deg 38deg, transparent 38deg 60deg, rgba(255, 197, 49, .24) 60deg 68deg, transparent 68deg 90deg, rgba(255, 197, 49, .24) 90deg 98deg, transparent 98deg 120deg, rgba(255, 197, 49, .24) 120deg 128deg, transparent 128deg 150deg, rgba(255, 197, 49, .24) 150deg 158deg, transparent 158deg 180deg, rgba(255, 197, 49, .24) 180deg 188deg, transparent 188deg 210deg, rgba(255, 197, 49, .24) 210deg 218deg, transparent 218deg 240deg, rgba(255, 197, 49, .24) 240deg 248deg, transparent 248deg 270deg, rgba(255, 197, 49, .24) 270deg 278deg, transparent 278deg 300deg, rgba(255, 197, 49, .24) 300deg 308deg, transparent 308deg 330deg, rgba(255, 197, 49, .24) 330deg 338deg, transparent 338deg); }
.person-photo { position: relative; width: 184px; aspect-ratio: 4 / 5; overflow: hidden; border: 4px solid var(--navy); border-radius: 92px 92px 18px 18px; background: var(--sky); box-shadow: 0 6px 0 var(--navy); }
.person-photo img, .person-photo .avatar { display: block; width: 100%; height: 100%; object-fit: cover; }
.person-years { position: absolute; right: -4px; bottom: -8px; display: grid; place-items: center; width: 74px; height: 74px; border: 3px solid var(--navy); border-radius: 50%; background: var(--gold); text-align: center; line-height: 1; rotate: 8deg; }
.person-years strong { font-family: var(--head); font-size: 1.5rem; }
.person-years span { font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.person-role { display: inline-block; padding: 3px 14px; margin-bottom: 8px; border-radius: 999px; background: var(--navy); color: var(--gold); font-family: var(--head); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.person h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.person-edu, .person-group, .person-about { margin-top: 8px; color: var(--muted); }
.person-edu span { margin-right: 8px; font-weight: 800; color: var(--brick-d); }

/* Группы: три щита-батыра на ночном небе */
.groups { padding-top: clamp(84px, 10vw, 128px); background-color: var(--navy); background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.6px), radial-gradient(rgba(255, 197, 49, .7) 1.4px, transparent 2px), radial-gradient(circle at 50% 120%, #2f3d85 0, transparent 60%); background-size: 80px 80px, 130px 130px, 100% 100%; background-position: 0 0, 40px 55px, 0 0; color: var(--cream); }
.groups h2 { color: var(--cream); }
.groups .pennant { background: var(--gold); color: var(--navy); }
.groups .divider { color: var(--gold); }
.groups .lede { color: #c7d0ff; margin-inline: auto; }
.batyrs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3.4vw, 46px); margin-top: clamp(70px, 8vw, 96px); align-items: start; }
.batyr { --c1: #8f6bd2; --c2: #6340a2; --tx: #fff; --ring: var(--gold); position: relative; display: grid; justify-items: center; gap: 4px; padding: 108px 22px 52px; border: 4px solid #fff; border-radius: 30px 30px 130px 130px / 30px 30px 96px 96px; background: linear-gradient(165deg, var(--c1), var(--c2)); color: var(--tx); text-align: center; box-shadow: 0 0 0 4px var(--navy), 0 16px 0 4px rgba(0, 0, 0, .3); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.batyr::before { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(255, 255, 255, .45); border-radius: 22px 22px 118px 118px / 22px 22px 86px 86px; pointer-events: none; }
.batyr:nth-child(1) { rotate: -1.8deg; } .batyr:nth-child(3) { rotate: 1.8deg; }
.batyr:nth-child(2) { margin-top: 26px; }
.batyr:hover { transform: translateY(-10px) rotate(0deg); }
.batyr-blue { --c1: #2cc4ea; --c2: #0c86ad; }
.batyr-gold { --c1: #ffd552; --c2: #f09f0a; --tx: var(--navy); --ring: var(--navy); }
.batyr-face { position: absolute; top: -74px; left: 50%; translate: -50% 0; width: 176px; height: 176px; overflow: hidden; border: 6px solid #fff; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 5px var(--ring), 0 12px 0 rgba(0, 0, 0, .28); transition: rotate .4s cubic-bezier(.3, 1.6, .5, 1), scale .4s; }
.batyr-purple .batyr-face { background: #d7c7f5; } .batyr-blue .batyr-face { background: #9be3f5; } .batyr-gold .batyr-face { background: #ffe9a0; }
.batyr-face img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 90%; }
.batyr:hover .batyr-face { rotate: -6deg; scale: 1.06; }
.batyr-rank { position: absolute; top: 18px; left: 22px; font-family: var(--head); font-size: 2.4rem; font-weight: 800; line-height: 1; opacity: .26; }
.batyr-level { font-family: var(--head); font-size: .86rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .92; }
.batyr h3 { font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 800; color: inherit; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.batyr-motto { max-width: 18ch; margin-top: 2px; font-weight: 700; opacity: .94; }
.batyr-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 46px; padding: 0 22px; border: 3px solid var(--navy); border-radius: 999px; background: var(--cream); color: var(--navy); font-family: var(--head); font-weight: 700; text-decoration: none; box-shadow: 0 5px 0 var(--navy); transition: transform .15s, box-shadow .15s; }
.batyr-link:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--navy); }

/* Кружки: «медали» */
.extras { background: var(--paper); }
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.club { position: relative; display: flex; flex-direction: column; border: var(--stroke); border-radius: 24px; background: #fff; box-shadow: var(--pop); overflow: hidden; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s; }
.club:hover { transform: translateY(-6px); box-shadow: 0 12px 0 var(--navy); }
.club-open { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: default; }
button.club-open { cursor: pointer; }
.club-media { position: relative; display: grid; place-items: center; height: 138px; overflow: hidden; border-bottom: var(--stroke); background: var(--sky-l); }
.club-media::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 255, 255, .55) 0 7deg, transparent 7deg 15deg); transition: rotate 1.4s ease; }
.club:hover .club-media::before { rotate: 40deg; }
.orb-1 { background: var(--gold-l); } .orb-2 { background: #e8defa; }
.club-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.extra-ico { position: relative; width: 86px; height: 86px; padding: 19px; border: 4px solid var(--navy); border-radius: 50%; background: var(--gold); color: var(--navy); box-shadow: 0 5px 0 var(--navy); stroke-width: 3; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.orb-1 .extra-ico { background: var(--sky); } .orb-2 .extra-ico { background: var(--brick); }
.club:hover .extra-ico { transform: scale(1.1) rotate(-6deg); }
.club-body { display: grid; align-content: start; gap: 6px; padding: 18px 22px 24px; }
.club-title { font-family: var(--head); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.club-meta { font-size: .86rem; font-weight: 800; color: var(--brick-d); }
.club-text { color: var(--muted); font-size: .98rem; }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--head); font-weight: 700; color: var(--sky-d); }
.story-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: rgba(27, 36, 71, .82); color: #fff; font-size: .82rem; font-weight: 800; }
.extras .club:nth-child(3n+2) { transform: translateY(0); }

/* Галерея */
.gallery { background: var(--sky-ll); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tab { min-height: 44px; padding: 0 20px; border: 3px solid var(--navy); border-radius: 999px; background: #fff; font-family: var(--head); font-size: 1rem; font-weight: 700; color: var(--navy); box-shadow: 0 4px 0 var(--navy); transition: transform .15s; }
.tab:hover { transform: translateY(-2px); background: var(--gold-l); }
.tab.is-on { background: var(--gold); }
.album { column-width: 260px; column-gap: 26px; }
.album figure { position: relative; break-inside: avoid; margin: 0 0 28px; }
.album figure:nth-child(3n+1) { rotate: -1deg; } .album figure:nth-child(3n+2) { rotate: .8deg; } .album figure:nth-child(3n) { rotate: -.4deg; }
.photo-btn { position: relative; display: block; width: 100%; padding: 7px; border: 4px solid var(--navy); border-radius: 18px; background: #fff3cf; overflow: hidden; box-shadow: var(--pop); cursor: zoom-in; transition: transform .25s; }
.photo-btn:hover { transform: translateY(-4px) rotate(.6deg); }
.photo-btn img { display: block; width: 100%; height: auto; border-radius: 10px; }
.photo-btn figcaption { position: absolute; left: 7px; right: 7px; bottom: 7px; padding: 26px 14px 10px; border-radius: 0 0 10px 10px; background: linear-gradient(transparent, rgba(27, 36, 71, .88)); color: #fff; font-family: var(--head); font-weight: 600; text-align: left; opacity: 0; transition: opacity .25s; }
.photo-btn:hover figcaption, .photo-btn:focus-visible figcaption { opacity: 1; }
.album figure[hidden] { display: none; }
.album-more { display: flex; margin: 18px auto 0; }
.note { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 30px 20px; border: 3px dashed var(--navy); border-radius: 22px; background: rgba(255, 255, 255, .6); font-weight: 800; color: var(--muted); text-align: center; }

/* Новости */
.news { background: var(--paper); }
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.story { overflow: hidden; border: var(--stroke); border-radius: 24px; background: #fff; box-shadow: var(--pop); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.story:hover { transform: translateY(-6px) rotate(-.4deg); }
.story-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.story-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--stroke); background: var(--sky-l); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story:hover .story-img img { transform: scale(1.05); }
.story-img-empty { display: grid; place-items: center; background: linear-gradient(180deg, #7ddaf1, #fff1c8); }
.story-img-empty img { width: 62%; height: 100%; object-fit: contain; }
.story-body { display: grid; gap: 6px; padding: 18px 22px 24px; }
.story-body time { font-size: .86rem; font-weight: 800; color: var(--brick-d); }
.story-title { font-family: var(--head); font-size: 1.28rem; font-weight: 700; line-height: 1.2; color: var(--navy); }
.story-excerpt { color: var(--muted); font-size: .98rem; }

/* Документы и вакансии */
.docs { background: var(--paper-2); }
.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: 8px; }
.doc-set, .jobs { padding: 24px 26px; border: var(--stroke); border-radius: 22px; background: #fff; box-shadow: var(--pop); }
.jobs { background: var(--gold-l); }
.doc-set h3, .jobs h3 { margin-bottom: 12px; font-size: 1.3rem; }
.doc-set li { display: grid; gap: 2px; padding: 9px 0; border-top: 2px dotted rgba(27, 36, 71, .25); }
.doc-set li:first-child { border-top: 0; }
.doc-set a { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--navy); }
.doc-set a:hover { color: var(--sky-d); }
.doc-set a .ico { color: var(--brick-d); }
.doc-set small { margin-left: 32px; color: var(--muted); font-weight: 700; }
.job { margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--navy); }
.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-family: var(--head); font-weight: 700; color: var(--red); }

/* Контакты: ночь, письмо с печатью */
.contact { padding-bottom: 0; background-color: var(--navy); background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.6px), radial-gradient(rgba(255, 197, 49, .7) 1.4px, transparent 2px); background-size: 80px 80px, 130px 130px; background-position: 0 0, 40px 55px; color: var(--cream); padding-top: clamp(84px, 10vw, 128px); }
.contact h2 { color: var(--cream); }
.contact .pennant { background: var(--gold); color: var(--navy); }
.contact .divider { color: var(--gold); }
.contact .lede { color: #c7d0ff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.contact-info { display: grid; gap: 16px; justify-items: start; }
.contact-phone { font-family: var(--head); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; text-decoration: none; color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.contact-phone:hover { color: #fff; }
.contact-list { display: grid; gap: 12px; margin-top: 6px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.contact-list .ico { margin-top: .22em; color: var(--gold); }
.contact-list a { text-underline-offset: 3px; color: #9fe9f8; }
.social-label { margin-top: 6px; font-family: var(--head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .86rem; color: #9fd9ea; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 2px solid var(--gold); border-radius: 999px; font-family: var(--head); font-weight: 700; text-decoration: none; color: var(--gold); transition: background .2s, color .2s; }
.socials a:hover { background: var(--gold); color: var(--navy); }
.form { position: relative; padding: 40px 34px 32px; border: 4px solid var(--gold); border-radius: 22px; background: var(--cream); color: var(--navy); box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px rgba(255, 197, 49, .35), 0 18px 0 rgba(0, 0, 0, .28); }
.form::before { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(27, 36, 71, .28); border-radius: 14px; pointer-events: none; }
.seal { position: absolute; top: -34px; right: 26px; display: grid; place-items: center; width: 82px; height: 82px; border: 4px solid var(--gold); border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px var(--navy), 0 6px 0 rgba(0, 0, 0, .3); overflow: hidden; rotate: 8deg; }
.seal img { width: 100%; height: 100%; }
.form h3 { max-width: calc(100% - 96px); font-size: 2rem; }
.form label { display: block; margin: 16px 0 2px; font-family: var(--head); font-size: .86rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brick-d); }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 8px 4px; border: 0; border-bottom: 3px solid var(--navy); border-radius: 0; background: transparent; font-weight: 700; color: var(--navy); }
.form select { appearance: none; background: transparent 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='%231b2447' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 6px center / 14px; padding-right: 30px; }
.form textarea { resize: vertical; min-height: 96px; line-height: 30px; background: repeating-linear-gradient(transparent 0 29px, rgba(27, 36, 71, .2) 29px 30px); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-bottom-color: var(--gold-d); background-color: rgba(255, 197, 49, .16); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-family: var(--body); font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); }
.form .consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); }
.form .btn { width: 100%; margin-top: 20px; }
.form-note { display: none; margin-top: 14px; font-weight: 800; color: var(--navy); }
.form-note.show { display: block; }
.form-note.error { color: var(--red); }
.map { display: block; width: 100%; height: 340px; margin-top: 64px; border: 4px solid var(--gold); border-radius: 22px; box-shadow: 0 0 0 4px var(--navy), 0 14px 0 rgba(0, 0, 0, .28); background: var(--sky-l); }
.foot { margin-top: 64px; background: var(--navy-3); }
.foot .band { margin-bottom: 0; }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; padding: 22px 0 26px; }
.foot-in img { flex: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); background: var(--sky); }
.foot-in p { margin-right: auto; font-weight: 700; color: #c7d0ff; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; text-decoration: none; color: var(--gold); }
.foot-in a:hover { color: #fff; }
.contact > .wrap + .wrap { margin-top: 0; }

/* Просмотр фото и новости */
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(15, 22, 54, .92); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; max-width: min(1000px, 78vw); border: 5px solid var(--gold); border-radius: 14px; }
.lightbox figcaption { margin-top: 12px; color: #fff; font-family: var(--head); font-size: 1.15rem; }
.lb-close, .lb-nav, .nd-close, .nd-nav { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 3px solid var(--navy); border-radius: 50%; background: var(--gold); color: var(--navy); cursor: pointer; box-shadow: 0 4px 0 var(--navy); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.news-dialog { width: min(780px, calc(100% - 24px)); max-height: 90vh; padding: 0; border: 4px solid var(--navy); border-radius: 24px; background: var(--white); color: var(--text); box-shadow: 0 12px 0 var(--navy); overflow: auto; }
.news-dialog::backdrop { background: rgba(15, 22, 54, .78); }
.nd-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.nd-stage { position: relative; background: var(--navy-3); border-bottom: var(--stroke); }
.nd-img { display: block; width: 100%; height: min(58vh, 470px); object-fit: contain; }
.nd-nav { position: absolute; top: 50%; translate: 0 -50%; display: none; width: 46px; height: 46px; }
.nd-prev { left: 12px; } .nd-next { right: 12px; }
.nd-counter { position: absolute; left: 12px; bottom: 12px; display: none; padding: 2px 12px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-weight: 800; font-size: .9rem; }
.has-many .nd-nav { display: grid; } .has-many .nd-counter { display: block; }
.nd-thumbs { display: none; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--paper-2); }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.nd-thumbs button.is-active { border-color: var(--gold-d); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 24px 28px 32px; }
.nd-gallery[hidden] + .nd-body { padding-top: 62px; }
.nd-body time { font-weight: 800; color: var(--brick-d); }
.nd-body h3 { margin: .15em 0 .5em; font-size: 1.9rem; }

/* ===================================================================================
   ЛОГОТИП: анимация (включается классом html.js; без неё показывается готовая картинка)
   Структура — includes/art.php, ub_logo_svg(): дом/крыша/ковёр — векторные, батыры — слои:
   .ubl-p (параллакс) > .ubl-in (выход из двери) > .ubl-react (прыжок «ура») > .ubl-idle (дыхание).
   =================================================================================== */
.ubl-house, .ubl-roof, .ubl-ground, .ubl-in, .ubl-react, .ubl-idle, .ubl-p, .ubl-sign, .ubl-sign-in, .ubl-leaf, .ubl-arc, .ubl-plume, .ubl-sh, .ubl-spark, .ubl-bush, .ubl-dots ellipse { transform-box: fill-box; }
.ubl-spark { opacity: 0; transform-origin: 50% 50%; }
.ubl-leaf { transform: scaleX(.16); }
.ubl-leaf-l { transform-origin: 0 50%; } .ubl-leaf-r { transform-origin: 100% 50%; }
.ubl-glint { opacity: 0; }
.ubl-in, .ubl-idle, .ubl-react { transform-origin: 50% 100%; }
.ubl-in-l { --dx: 206px; --dy: -256px; } .ubl-in-m { --dx: -30px; --dy: -234px; } .ubl-in-r { --dx: -235px; --dy: -229px; }
.ubl-plume { transform-origin: 92% 43%; } .ubl-arc { transform-origin: 86% 40%; }
/* параллакс от курсора: --px / --py (−1…1) выставляет js/main.js */
.ubl-p { transition: transform .35s ease-out; transform-origin: 50% 100%; }
.ubl-p-l { transform: translate(calc(var(--px, 0) * 11px), calc(var(--py, 0) * 4px)) rotate(calc(var(--px, 0) * 1deg)); }
.ubl-p-m { transform: translate(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 6px)) rotate(calc(var(--px, 0) * 1.4deg)); }
.ubl-p-r { transform: translate(calc(var(--px, 0) * 21px), calc(var(--py, 0) * 8px)) rotate(calc(var(--px, 0) * 1.8deg)); }
.ubl-house { transform: translate(calc(var(--px, 0) * -4px), 0); transition: transform .35s ease-out; }
.ubl-roof { transform: translate(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -2px)); transition: transform .35s ease-out; }

html.js .ubl-dots ellipse { transform-origin: 50% 50%; animation: ubl-float 6s ease-in-out infinite, ubl-pop .6s cubic-bezier(.3, 1.8, .5, 1) backwards; }
html.js .ubl-dots ellipse:nth-child(1) { animation-delay: .2s, .2s; } html.js .ubl-dots ellipse:nth-child(2) { animation-delay: .9s, .35s; } html.js .ubl-dots ellipse:nth-child(3) { animation-delay: .4s, .5s; }
html.js .ubl-dots ellipse:nth-child(4) { animation-delay: 1.3s, .25s; } html.js .ubl-dots ellipse:nth-child(5) { animation-delay: .7s, .42s; } html.js .ubl-dots ellipse:nth-child(6) { animation-delay: .2s, .58s; }
html.js .ubl-ground { transform-origin: 50% 100%; animation: ubl-grow .9s .1s cubic-bezier(.2, .9, .3, 1) backwards; }
html.js .ubl-bush { transform-origin: 50% 100%; animation: ubl-bush 5s ease-in-out infinite alternate; }
html.js .ubl-house { transform-origin: 50% 100%; animation: ubl-rise 1s .45s cubic-bezier(.2, .9, .3, 1.1) backwards; }
html.js .ubl-roof { animation: ubl-drop 1s 1.05s cubic-bezier(.3, 1.4, .5, 1) backwards; }
html.js .ubl-leaf-l { animation: ubl-door-l .9s 1.75s cubic-bezier(.4, 0, .2, 1) backwards; }
html.js .ubl-leaf-r { animation: ubl-door-r .9s 1.75s cubic-bezier(.4, 0, .2, 1) backwards; }
html.js .ubl-glow { animation: ubl-fade .8s 1.9s backwards; }
html.js .ubl-carpet, html.js .ubl-steps { animation: ubl-unroll .85s 1.95s ease-out backwards; }
html.js .ubl-sh { animation: ubl-fade .5s 2.9s backwards; }
html.js .ubl-in-m { animation: ubl-out 1.25s 2.2s cubic-bezier(.25, .8, .35, 1) backwards; }
html.js .ubl-in-l { animation: ubl-out 1.25s 2.45s cubic-bezier(.25, .8, .35, 1) backwards; }
html.js .ubl-in-r { animation: ubl-out 1.25s 2.7s cubic-bezier(.25, .8, .35, 1) backwards; }
html.js .ubl-sign-in { transform-origin: 50% 60%; animation: ubl-slap .9s 3.5s cubic-bezier(.3, 1.4, .5, 1) backwards; }
html.js .ubl-idle-l { animation: ubl-bob 3.4s 4s ease-in-out infinite; }
html.js .ubl-idle-m { animation: ubl-bob 3s 4.3s ease-in-out infinite; }
html.js .ubl-idle-r { animation: ubl-bob 3.7s 4.1s ease-in-out infinite; }
html.js .ubl-plume { animation: ubl-sway 3.8s 4s ease-in-out infinite alternate; }
html.js .ubl-arc { animation: ubl-sway2 4.6s 4s ease-in-out infinite alternate; }
html.js .ubl-sign { transform-origin: 50% 60%; transform-box: fill-box; animation: ubl-wobble 6s 5s ease-in-out infinite; }
html.js .ubl-spark-a { animation: ubl-twinkle 3.6s 4.2s ease-in-out infinite; }
html.js .ubl-spark-b { animation: ubl-twinkle 4.2s 5.1s ease-in-out infinite; }
html.js .ubl-spark-c { animation: ubl-twinkle 4.8s 6.3s ease-in-out infinite; }
html.js .ubl-glint { animation: ubl-glint 7s linear infinite; animation-delay: 4.5s; }
html.js .ubl-win g:nth-of-type(2) .ubl-glint { animation-delay: 5.3s; } html.js .ubl-win g:nth-of-type(3) .ubl-glint { animation-delay: 6.4s; } html.js .ubl-win g:nth-of-type(4) .ubl-glint { animation-delay: 7.1s; }
html.js .ubl-win-l g:nth-of-type(1) .ubl-glint { animation-delay: 8s; } html.js .ubl-win-l g:nth-of-type(2) .ubl-glint { animation-delay: 5.9s; } html.js .ubl-win-l g:nth-of-type(3) .ubl-glint { animation-delay: 9s; } html.js .ubl-win-l g:nth-of-type(4) .ubl-glint { animation-delay: 6.8s; }
/* реакции: «ура» по нажатию и подпрыгивание батыра, на которого указывает курсор */
html.js .ubl.is-cheer .ubl-react-l { animation: ubl-jump .95s 0s; } html.js .ubl.is-cheer .ubl-react-m { animation: ubl-jump .95s .14s; } html.js .ubl.is-cheer .ubl-react-r { animation: ubl-jump .95s .28s; }
html.js .ubl.is-cheer .ubl-sign { animation: ubl-shake .9s .2s; }
html.js .ubl.look-l:not(.is-cheer) .ubl-react-l, html.js .ubl.look-m:not(.is-cheer) .ubl-react-m, html.js .ubl.look-r:not(.is-cheer) .ubl-react-r { animation: ubl-hop .55s; }
html.js .ubl.is-paused *, html.js .hero.is-paused .sky-burst, html.js .hero.is-paused .sun-rays, html.js .hero.is-paused .cloud, html.js .hero.is-paused .eagle, html.js .hero.is-paused .wing, html.js .hero.is-paused .blade, html.js .hero.is-paused .smoke { animation-play-state: paused !important; }

@keyframes ubl-pop { from { transform: scale(0); } }
@keyframes ubl-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes ubl-grow { from { transform: scaleY(0); opacity: 0; } 60% { transform: scaleY(1.05); opacity: 1; } }
@keyframes ubl-bush { from { transform: skewX(-1.4deg); } to { transform: skewX(1.4deg); } }
@keyframes ubl-rise { from { transform: scaleY(.02); opacity: 0; } 15% { opacity: 1; } 75% { transform: scaleY(1.03); } }
@keyframes ubl-drop { from { transform: translateY(-340px) rotate(-3deg); opacity: 0; } 20% { opacity: 1; } 72% { transform: translateY(8px) rotate(.4deg); } 100% { } }
@keyframes ubl-door-l { from { transform: scaleX(1); } }
@keyframes ubl-door-r { from { transform: scaleX(1); } }
@keyframes ubl-fade { from { opacity: 0; } }
@keyframes ubl-unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ubl-out {
  0% { transform: translate(var(--dx), var(--dy)) scale(.07); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(calc(var(--dx) * .2), calc(var(--dy) * .12 - 110px)) scale(1.07, 1.03); }
  68% { transform: translate(0, 0) scale(1.1, .86); }
  82% { transform: translate(0, -16px) scale(.97, 1.05); }
  100% { transform: none; }
}
@keyframes ubl-slap { 0% { transform: scale(0) rotate(-18deg); opacity: 0; } 55% { transform: scale(1.16) rotate(4deg); opacity: 1; } 78% { transform: scale(.96) rotate(-2deg); } 100% { transform: none; } }
@keyframes ubl-bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-7px) scale(.994, 1.012); } }
@keyframes ubl-sway { from { transform: rotate(-4.5deg); } to { transform: rotate(5deg); } }
@keyframes ubl-sway2 { from { transform: rotate(3.5deg); } to { transform: rotate(-3.5deg); } }
@keyframes ubl-wobble { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-1.4deg); } 94% { transform: rotate(1.2deg); } 97% { transform: rotate(-.5deg); } }
@keyframes ubl-twinkle { 0%, 55%, 100% { transform: scale(0) rotate(0); opacity: 0; } 66% { transform: scale(1) rotate(35deg); opacity: 1; } 78% { transform: scale(.25) rotate(90deg); opacity: 0; } }
@keyframes ubl-glint { 0% { transform: translateX(0); opacity: 0; } 3% { opacity: .85; } 14% { transform: translateX(210px); opacity: .85; } 17%, 100% { transform: translateX(240px); opacity: 0; } }
@keyframes ubl-jump { 0% { transform: none; } 22% { transform: translateY(-80px) scale(.96, 1.07); } 42% { transform: translateY(0) scale(1.09, .88); } 58% { transform: translateY(-30px) scale(.99, 1.03); } 76% { transform: scale(1.03, .97); } 100% { transform: none; } }
@keyframes ubl-hop { 0% { transform: none; } 35% { transform: translateY(-26px) scale(.98, 1.04); } 65% { transform: scale(1.04, .95); } 100% { transform: none; } }
@keyframes ubl-shake { 0%, 100% { transform: none; } 20% { transform: rotate(-3deg) scale(1.05); } 45% { transform: rotate(3deg) scale(1.05); } 70% { transform: rotate(-1.5deg); } }

/* небо и степь */
html.js .sky-burst { animation: ub-spin 160s linear infinite; }
html.js .sun-rays { animation: ub-spin 70s linear infinite; }
html.js .cloud-a { animation: ub-drift 90s linear infinite; } html.js .cloud-b { animation: ub-drift 120s -40s linear infinite; } html.js .cloud-c { animation: ub-drift 100s -70s linear infinite; }
html.js .eagle { animation: ub-fly 22s 6s linear infinite; }
html.js .wing-l { animation: ub-flap-l .8s ease-in-out infinite alternate; } html.js .wing-r { animation: ub-flap-r .8s ease-in-out infinite alternate; }
html.js .blade { animation: ub-grass 3.8s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
html.js .smoke { animation: ub-smoke 5s ease-out infinite; } html.js .smoke-b { animation-delay: 2.5s; }
html.js .hero-text > * { animation: ub-rise .8s cubic-bezier(.2, .8, .2, 1) backwards; }
html.js .hero-text > :nth-child(1) { animation-delay: .1s; } html.js .hero-text > :nth-child(2) { animation-delay: .25s; } html.js .hero-text > :nth-child(3) { animation-delay: .45s; } html.js .hero-text > :nth-child(4) { animation-delay: .6s; } html.js .hero-text > :nth-child(5) { animation-delay: .75s; }
html.js .hero-note { animation: ub-rise .6s 4.6s backwards; }
html.js .hero-note .dr-scroll { animation: ub-draw 1s 4.9s ease backwards; }
html.js .hero-sun { animation: ub-sunrise 1.6s .2s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes ub-spin { to { rotate: 360deg; } }
@keyframes ub-drift { from { translate: -200px 0; } to { translate: calc(100vw + 200px) 0; } }
@keyframes ub-fly { 0% { translate: 0 0; opacity: 0; } 3% { opacity: 1; } 50% { translate: 62vw -34px; } 97% { opacity: 1; } 100% { translate: 128vw 20px; opacity: 0; } }
@keyframes ub-flap-l { from { transform: rotate(-18deg); } to { transform: rotate(14deg); } }
@keyframes ub-flap-r { from { transform: rotate(18deg); } to { transform: rotate(-14deg); } }
@keyframes ub-grass { from { transform: skewX(-7deg); } to { transform: skewX(7deg); } }
@keyframes ub-smoke { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 15% { opacity: .85; } 100% { transform: translate(18px, -56px) scale(2.4); opacity: 0; } }
@keyframes ub-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes ub-draw { from { stroke-dashoffset: 1; } }
@keyframes ub-sunrise { from { transform: translate(0, 240px); opacity: 0; } }

/* ---------- Появление при прокрутке ---------- */
html.js .reveal { opacity: 0; transform: translateY(30px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--delay, 0s), transform .8s var(--delay, 0s) cubic-bezier(.2, .8, .2, 1); }
html.js .batyr.reveal { transform: translateY(70px) scale(.9) rotate(var(--r0, 0deg)); }
html.js .batyr:nth-child(1).reveal { --r0: -6deg; } html.js .batyr:nth-child(3).reveal { --r0: 6deg; }
html.js .batyr.reveal.is-in { transition: opacity .6s calc(var(--i, 0) * .18s), transform .9s calc(var(--i, 0) * .18s) cubic-bezier(.3, 1.4, .5, 1); }
html.js .reveal .dr-scroll { stroke-dashoffset: 1; }
html.js .reveal.is-in .dr-scroll { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s .35s ease; }
html.js .decree.reveal .decree-sheet { max-height: 0; padding-block: 0; overflow: hidden; }
html.js .decree.reveal.is-in .decree-sheet { max-height: 900px; padding-block: 30px 26px; transition: max-height 1.5s .15s ease, padding .5s; }
html.js .medal.reveal { transform: scale(.3) rotate(-30deg); }
html.js .medal.reveal.is-in { transform: rotate(-5deg); transition: opacity .5s var(--delay, 0s), transform .9s var(--delay, 0s) cubic-bezier(.3, 1.8, .5, 1); }
html.js .medal-b.reveal.is-in { transform: rotate(4deg); } html.js .medal-c.reveal.is-in { transform: rotate(-2deg); }

/* ---------- Адаптив ---------- */
@media (max-width: 1260px) {
  .menu a { padding: 8px 9px; font-size: .92rem; }
  .chip-call span { display: none; }
  .chip-call { width: 44px; justify-content: center; padding: 0; }
}
@media (max-width: 1100px) {
  .chip-menu { display: inline-flex; }
  .menu { position: fixed; top: var(--bar-h); left: 12px; right: 12px; z-index: 49; display: none; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; padding: 16px; border: 3px solid var(--gold); border-radius: 22px; background: var(--navy); box-shadow: 0 12px 0 rgba(0, 0, 0, .3); }
  .menu.open { display: grid; }
  .menu a { padding: 12px 14px; border: 2px solid rgba(255, 197, 49, .5); border-radius: 14px; text-align: center; font-size: 1.05rem; }
  .menu a::after { display: none; }
  .menu a.is-active { background: var(--gold); color: var(--navy); }
  .chips { margin-left: auto; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 6px; padding-bottom: 150px; }
  .hero-text { justify-items: center; text-align: center; order: 2; }
  .hero-facts, .hero-actions { justify-content: center; }
  .hero-logo { order: 1; }
  .ubl { width: min(560px, 96%); }
  .hero-sun { width: 112%; }
  .hero-note { right: 4%; bottom: 0; }
  .about-grid, .contact-grid, .docs-grid { grid-template-columns: 1fr; }
  .batyrs { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; row-gap: 96px; }
  .batyr:nth-child(2) { margin-top: 0; }
  .person { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 640px) {
  :root { --bar-h: 76px; }
  .wrap { width: min(1180px, calc(100% - 28px)); }
  .top-in { height: 58px; gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 1.2rem; }
  .brand small { display: none; }
  .menu { grid-template-columns: 1fr; }
  .hero-name { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-note { display: none; }
  .medal { width: 104px; height: 104px; } .medals { gap: 16px; justify-content: center; }
  .fact { grid-template-columns: 1fr; }
  .person { padding: 24px 18px; }
  .form { padding: 36px 20px 26px; }
  .map { height: 260px; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox img { max-width: 72vw; }
  .album { column-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
