/* «Ботақан»: караван по дюнам. Тёплый песок и бирюза логотипа; день и ночь переключаются кнопкой в шапке.
   Верблюжонок оживает, в первом экране можно его кормить и гладить, о садике рассказывает «Созвездие Ботақана». */

/* ---------- Шрифты: Rubik (заголовки) и Onest (текст), с казахскими буквами ә ғ қ ң ө ұ ү һ і ---------- */
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/onest-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: "Onest"; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/onest-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; }

:root {
  --sand: #f6d9a0; --sun: #ffb23e; --camel: #e9a64a; --brown: #7b4020;
  --teal: #2fb0aa; --teal-deep: #1c7f7c; --mint: #8ed0ac; --coral: #f0715f; --coral-deep: #c9503f; --pink: #f27d96; --sky: #5bc3e8; --gold: #f6b845;
  /* тема: день */
  --bg: #fff7e8; --bg-2: #fcebc9; --card: #fff; --card-2: #fff2d6;
  --ink: #3a2418; --ink-soft: #7a5a44; --line: rgba(58, 36, 24, .14);
  --accent: var(--coral-deep); --link: var(--teal-deep);
  --bar-ink: #3a2418; --bar-bg: rgba(255, 247, 232, .9);
  --sky-a: #79cdee; --sky-b: #ffe6b8; --sky-c: #ffcd8c; --sky-bite: #ffd166;
  --d1: #f7cf86; --d2: #efb765; --d3: var(--bg);
  --cloud: rgba(255, 255, 255, .85); --cv: rgba(123, 64, 32, .5);
  --shadow: 0 16px 40px rgba(123, 64, 32, .16);
  --head: "Rubik", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 74px;
}
html[data-theme="night"] {
  --bg: #10283a; --bg-2: #0c2030; --card: #17394d; --card-2: #1d4560;
  --ink: #fdf0d8; --ink-soft: #b9cad4; --line: rgba(255, 255, 255, .14);
  --accent: #ffb09f; --link: #7fe0d9;
  --bar-ink: #fdf0d8; --bar-bg: rgba(16, 40, 58, .9);
  --sky-a: #0a1a33; --sky-b: #15375a; --sky-c: #2a5a78; --sky-bite: #15375a;
  --d1: #1d4c66; --d2: #163b52; --d3: var(--bg);
  --cloud: rgba(255, 255, 255, .07); --cv: rgba(8, 22, 34, .85);
  --shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; transition: background-color .6s, color .6s; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--link); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 90; padding: 10px 16px; border-radius: 12px; background: #fff; color: #3a2418; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem); text-wrap: balance; }
h3 { font-size: 1.3rem; }

/* ---------- Кнопки и плашки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 0; border-radius: 18px; cursor: pointer; font-family: var(--head); font-weight: 800; font-size: 1rem; text-decoration: none; transition: transform .18s, box-shadow .18s, background .2s; }
.btn-main { background: linear-gradient(180deg, #ffc65e, var(--sun)); color: #3a2000; box-shadow: 0 6px 0 #c67f10, 0 14px 26px rgba(255, 178, 62, .4); }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 9px 0 #c67f10, 0 18px 30px rgba(255, 178, 62, .46); }
.btn-main:active { transform: translateY(3px); box-shadow: 0 2px 0 #c67f10; }
.btn-line { border: 2px solid var(--brown); color: var(--brown); background: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
html[data-theme="night"] .btn-line { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-line:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .6); }
html[data-theme="night"] .btn-line:hover { background: rgba(255, 255, 255, .2); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 26px; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--teal) 0 7px, transparent 7px 11px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border: 1.5px solid rgba(123, 64, 32, .28); border-radius: 999px; background: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); font-weight: 600; font-size: .95rem; }
html[data-theme="night"] .pill { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.pill .ico { color: var(--teal-deep); }
.lede { max-width: 60ch; color: var(--ink-soft); font-size: 1.1rem; text-wrap: pretty; }
.inline { color: inherit; text-underline-offset: 3px; }

/* ---------- Шапка: тропа, по которой идёт верблюжонок; переключатель дня и ночи ---------- */
.top { --p: 0; position: fixed; inset: 0 0 auto; z-index: 50; color: var(--bar-ink); transition: background .3s, box-shadow .3s, color .6s; }
.top.is-stuck { background: var(--bar-bg); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(58, 36, 24, .12); }
.top-in { display: flex; align-items: center; gap: 20px; width: min(1240px, 100% - 32px); min-height: var(--bar-h); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 4px 12px rgba(58, 36, 24, .25); transition: rotate .6s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand-mark img { rotate: -14deg; }
.brand-text strong { display: block; white-space: nowrap; font-family: var(--head); font-weight: 900; font-size: 1.3rem; line-height: 1.05; }
.brand-text small { display: block; white-space: nowrap; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.menu { display: flex; justify-content: center; flex: 1; gap: 2px; }
.menu a { white-space: nowrap; padding: 8px 13px; border-radius: 12px; color: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.menu a:hover { background: rgba(255, 255, 255, .45); }
html[data-theme="night"] .menu a:hover { background: rgba(255, 255, 255, .12); }
.menu a.is-active { background: var(--sun); color: #3a2000; }
.chips { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(58, 36, 24, .22); border-radius: 14px; background: rgba(255, 255, 255, .5); color: inherit; font-weight: 700; font-size: .93rem; text-decoration: none; backdrop-filter: blur(6px); transition: background .2s; }
html[data-theme="night"] .chip { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); }
.chip:hover { background: rgba(255, 255, 255, .85); }
html[data-theme="night"] .chip:hover { background: rgba(255, 255, 255, .2); }
.chip-menu { display: none; justify-content: center; width: 44px; padding: 0; cursor: pointer; }
.theme { padding: 0; border: 0; background: none; cursor: pointer; }
.theme-track { position: relative; display: flex; align-items: center; justify-content: space-between; width: 72px; height: 40px; padding: 0 9px; border-radius: 999px; background: linear-gradient(90deg, #8fd8f2, #ffe29a); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .15); transition: background .5s; color: #fff; }
html[data-theme="night"] .theme-track { background: linear-gradient(90deg, #243c6a, #0e1e3a); }
.theme-track .ico { position: relative; z-index: 1; width: 18px; height: 18px; }
.t-sun { color: #b86a00; } .t-moon { color: #cfe0ff; }
.theme-knob { position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); transition: transform .55s cubic-bezier(.3, 1.5, .5, 1), background .4s; }
html[data-theme="night"] .theme-knob { transform: translateX(32px); background: #ffe9a8; }
.theme:hover .theme-knob { scale: 1.08; }
.trail { position: relative; height: 4px; margin-top: -4px; background: var(--line); opacity: 0; transition: opacity .3s; }
.top.is-stuck .trail { opacity: 1; }
.trail-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--teal), var(--sun), var(--coral)); border-radius: 0 3px 3px 0; }
.trail-camel { position: absolute; left: calc(var(--p) * 100%); bottom: 2px; width: 34px; translate: -70% 0; color: var(--brown); }
html[data-theme="night"] .trail-camel { color: var(--sand); }
.camel-mini { width: 100%; height: auto; overflow: visible; }
.js .cm-leg { transform-box: fill-box; transform-origin: 50% 0; animation: leg .7s ease-in-out infinite alternate; }
.js .cm-l2, .js .cm-l3 { animation-direction: alternate-reverse; }
@keyframes leg { from { rotate: -22deg; } to { rotate: 22deg; } }
.js .cm-tail { transform-box: fill-box; transform-origin: 100% 0; animation: tailw .5s ease-in-out infinite alternate; }
@keyframes tailw { from { rotate: -14deg; } to { rotate: 14deg; } }

/* ---------- Первый экран: небо, солнце / луна, облака, дюны, караван ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; padding: calc(var(--bar-h) + 30px) 0 clamp(150px, 20vw, 290px); display: flex; align-items: center; overflow: hidden; background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 62%, var(--sky-c) 100%); transition: background .8s; }
.hero-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky-night { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
html[data-theme="night"] .sky-night { opacity: 1; }
.sky-stars { position: absolute; inset: 0 0 25% 0; width: 100%; height: 75%; }
.tw { opacity: .85; }
.js .tw { animation: twinkle var(--t, 3s) ease-in-out var(--d, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .95; } 50% { opacity: .2; } }
.orb { position: absolute; top: 12%; left: 43%; width: clamp(90px, 10.5vw, 160px); transition: transform .9s cubic-bezier(.3, 1.3, .5, 1); }
.orb svg { width: 100%; height: auto; overflow: visible; }
.js .orb-rays { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 60s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.orb-disc { transition: fill .6s; } .orb-bite { transition: transform .8s cubic-bezier(.3, 1.2, .5, 1), fill .6s; transform: scale(0); transform-origin: 72px 52px; }
html[data-theme="night"] .orb-disc { fill: #fff3c8; }
html[data-theme="night"] .orb-bite { transform: scale(1); }
.orb-rays { transition: opacity .5s; } html[data-theme="night"] .orb-rays { opacity: 0; }
.orb-face { transition: opacity .4s; } html[data-theme="night"] .orb-face { opacity: 0; }
.hc { position: absolute; left: -380px; color: var(--cloud); transition: color .8s; }
.hc-1 { top: 20%; } .hc-2 { top: 36%; } .hc-3 { top: 52%; } .hc-4 { top: 8%; }
.js .hc-1 { animation: cloud 120s linear -30s infinite; } .js .hc-2 { animation: cloud 170s linear -90s infinite; }
.js .hc-3 { animation: cloud 150s linear -10s infinite; } .js .hc-4 { animation: cloud 210s linear -150s infinite; }
@keyframes cloud { to { translate: calc(100vw + 760px) 0; } }
.caravan { position: absolute; left: 0; bottom: clamp(70px, 9.5vw, 150px); display: flex; gap: 34px; width: 190px; color: var(--cv); }
.caravan .camel-mini { width: 52px; flex: none; }
.js .caravan { animation: caravan 90s linear -20s infinite; }
@keyframes caravan { from { translate: -220px 0; } to { translate: calc(100vw + 40px) 0; } }
.dunes { position: absolute; inset: auto 0 0 0; width: 100%; height: clamp(150px, 20vw, 290px); }
.d-1 { fill: var(--d1); transition: fill .8s; } .d-2 { fill: var(--d2); transition: fill .8s; } .d-3 { fill: var(--d3); transition: fill .6s; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-text { display: grid; justify-items: start; gap: 18px; }
h1 { display: grid; gap: 14px; }
.hero-name { font-family: var(--head); font-weight: 800; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); color: var(--coral-deep); }
html[data-theme="night"] .hero-name { color: var(--gold); }
.hero-name small { margin-left: 8px; font-size: .72em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
html[data-theme="night"] .hero-name small { color: #7fe0d9; }
.hero-title { font-family: var(--head); font-weight: 900; font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.2rem); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; color: var(--brown); }
html[data-theme="night"] .hero-title { color: #fff6e0; }
.hero-title em { font-style: normal; background: linear-gradient(100deg, var(--teal), #3a9fe0 55%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="night"] .hero-title em { background-image: linear-gradient(100deg, #7fe0d9, #ffd98a 55%, #ff9d8a); }
.hero-lead { max-width: 46ch; font-size: 1.12rem; color: var(--ink-soft); }
html[data-theme="night"] .hero-lead { color: #cfdbe3; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 11px; border: 1.5px solid rgba(123, 64, 32, .22); border-radius: 14px; background: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); font-weight: 600; font-size: .95rem; }
html[data-theme="night"] .hero-facts li { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); }
.hero-facts .ico { color: var(--teal-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 6px; }
.hero-logo { position: relative; justify-self: center; width: min(100%, 480px, calc(76svh * .766)); }
.hero-logo::before { content: ""; position: absolute; inset: -10% -12% 0; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 226, 140, .65), rgba(255, 200, 120, .25) 50%, transparent 72%); }
html[data-theme="night"] .hero-logo::before { background: radial-gradient(circle, rgba(127, 224, 217, .28), rgba(255, 220, 130, .12) 50%, transparent 72%); }

/* игра «покорми ботақана» */
.game { position: absolute; left: 50%; bottom: -4px; translate: -50% 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; width: max-content; max-width: 100%; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); font-weight: 700; font-size: .92rem; box-shadow: 0 6px 18px rgba(123, 64, 32, .15); }
html[data-theme="night"] .game { background: rgba(255, 255, 255, .12); }
.js .game { display: flex; } .game[hidden] { display: none; }
.game-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-deep); }
html[data-theme="night"] .game-hint { color: #7fe0d9; }
.game-score b { display: inline-block; min-width: 1.2em; font-family: var(--head); font-size: 1.1em; color: var(--coral-deep); }
html[data-theme="night"] .game-score b { color: var(--gold); }
.game-toast { position: absolute; left: 50%; top: -2%; translate: -50% 0; padding: 8px 18px; border-radius: 999px; background: var(--teal-deep); color: #fff; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s cubic-bezier(.3, 1.6, .5, 1); }
.game-toast.show { opacity: 1; translate: -50% 12px; }
.treat { position: absolute; z-index: 5; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .8); color: #3f9a56; box-shadow: 0 8px 18px rgba(63, 154, 86, .35); cursor: pointer; display: grid; place-items: center; animation: treat-float 3.2s ease-in-out infinite; transition: scale .2s; }
.treat:hover { scale: 1.22; }
.treat .ico { width: 26px; height: 26px; fill: currentColor; stroke: #2d7a42; stroke-width: 1.2; }
.treat.is-flying { animation: none; pointer-events: none; }
@keyframes treat-float { 0%, 100% { translate: 0 0; rotate: -6deg; } 50% { translate: 0 -10px; rotate: 8deg; } }
.bk-heart { position: fixed; z-index: 60; pointer-events: none; }

/* ---------- Разделы ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.head { display: grid; justify-items: start; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.head-center { justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }
.wave { position: absolute; left: 0; width: 100%; height: clamp(40px, 6vw, 80px); pointer-events: none; }
.wave-top { top: -1px; color: var(--bg); transform: scaleY(-1); }

/* О саде: текст и «Созвездие Ботақана» */
.about { background: var(--bg); transition: background .6s; }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.about-text { display: grid; gap: 16px; justify-items: start; }
.about-text .head { margin-bottom: 2px; }
.legal { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 16px; border-radius: 14px; background: var(--card-2); font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.sky-card { position: relative; display: grid; gap: 14px; padding: clamp(16px, 2.4vw, 26px); border-radius: 36px; background: linear-gradient(160deg, #0d2740, #173f5c 60%, #1d4f66); color: #fff; box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .12); overflow: hidden; }
.sky-head { display: grid; gap: 4px; padding: 4px 8px 0; }
.sky-head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; color: #ffe9a8; }
.sky-head h3 .ico { fill: #ffd166; stroke: none; }
.sky-hint { font-size: .9rem; color: #b6cbd8; }
.sky-stage { position: relative; aspect-ratio: 560 / 380; border-radius: 26px; background: radial-gradient(ellipse at 50% 120%, rgba(47, 176, 170, .28), transparent 62%); cursor: crosshair; touch-action: manipulation; }
.sky-bg { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.sky-bg .sky-stars { inset: 0; height: 100%; }
.cs-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cs-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .cs-line { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.5, 0, .2, 1) .3s; }
.js .cs-inner { stroke-dasharray: 3 5; stroke-dashoffset: 0; opacity: 0; transition: opacity 1.6s ease 2s; }
.js .sky-card.is-in .cs-outline { stroke-dashoffset: 0; }
.js .sky-card.is-in .cs-inner { opacity: .55; }
.cs-dot { opacity: .95; }
.js .cs-dot { opacity: 0; animation: dot-in .5s ease calc(.3s + var(--i) * .09s) forwards paused; }
.js .sky-card.is-in .cs-dot { animation-play-state: running; }
@keyframes dot-in { from { opacity: 0; r: 0; } to { opacity: .95; } }
.fstar { position: absolute; z-index: 2; width: 46px; height: 46px; translate: -50% -50%; padding: 0; border: 0; background: none; cursor: pointer; }
.fstar-core { position: absolute; inset: 7px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3bd, #ffcf4a 70%); color: #6a4300; box-shadow: 0 0 0 3px rgba(255, 224, 138, .25), 0 0 20px 4px rgba(255, 207, 74, .55); transition: transform .3s cubic-bezier(.3, 1.8, .5, 1), background .3s, box-shadow .3s; }
.fstar-core .ico { width: 17px; height: 17px; stroke-width: 2.3; }
.js .fstar-core { animation: pulse 2.6s ease-in-out calc(var(--i) * -.4s) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 224, 138, .25), 0 0 16px 3px rgba(255, 207, 74, .45); } 50% { box-shadow: 0 0 0 9px rgba(255, 224, 138, .08), 0 0 26px 7px rgba(255, 207, 74, .7); } }
.fstar:hover .fstar-core, .fstar:focus-visible .fstar-core { transform: scale(1.22); }
.fstar.is-on .fstar-core { transform: scale(1.34); background: radial-gradient(circle at 35% 30%, #fff, #7fe0d9 75%); color: #0b4b49; animation: none; box-shadow: 0 0 0 6px rgba(127, 224, 217, .3), 0 0 30px 8px rgba(127, 224, 217, .7); }
.fstar-tip { position: absolute; left: 50%; bottom: calc(100% - 2px); translate: -50% 4px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #173f5c; font-size: .78rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.fstar:hover .fstar-tip, .fstar:focus-visible .fstar-tip, .fstar.is-on .fstar-tip { opacity: 1; translate: -50% 0; }
.lit-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 26px; }
.lit { position: absolute; width: 22px; height: 22px; translate: -50% -50%; color: #fff6c8; filter: drop-shadow(0 0 6px rgba(255, 224, 138, .9)); animation: lit-in .7s cubic-bezier(.2, 1.8, .4, 1) both, twinkle 3s ease-in-out .7s infinite; }
@keyframes lit-in { from { scale: 0; rotate: -140deg; } }
.sky-detail { min-height: 96px; }
.fd { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 22px; background: rgba(255, 255, 255, .08); animation: fd-in .5s cubic-bezier(.2, .9, .3, 1); }
.fd[hidden] { display: none; }
@keyframes fd-in { from { opacity: 0; translate: 0 12px; } }
.fd-ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: #ffcf4a; color: #6a4300; }
.fd-ico .ico { width: 24px; height: 24px; }
.fd-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fdcd7; }
.fd-value { font-weight: 600; font-size: 1.1rem; line-height: 1.4; overflow-wrap: anywhere; }
.fd-value a { color: #ffe9a8; text-underline-offset: 3px; }
.fd-value .big { font-family: var(--head); font-size: 1.8rem; color: #ffe9a8; }
.fd-act { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; font-size: .92rem; color: #7fe0d9; text-decoration: none; }
.fd-act:hover { color: #fff; }
.sky-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.schip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 12px; background: transparent; color: #d7e4ec; font-weight: 600; font-size: .82rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.schip .ico { width: 15px; height: 15px; }
.schip:hover { background: rgba(255, 255, 255, .12); }
.schip.is-on { background: #7fe0d9; border-color: #7fe0d9; color: #0b3b39; }
.sky-count { font-size: .85rem; color: #9fdcd7; text-align: right; }
.sky-count b { color: #ffe9a8; }
.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: 6px solid var(--card); border-radius: 26px; box-shadow: var(--shadow); }

/* Заведующая */
.team { padding-top: clamp(96px, 12vw, 150px); background: var(--bg-2); transition: background .6s; }
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.person { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: center; width: min(900px, 100%); padding: 30px 40px; border-radius: 40px; background: var(--card); box-shadow: var(--shadow); transition: background .6s; }
.person-frame { position: relative; width: 290px; aspect-ratio: 1; margin: -6px; }
.person-frame .ornament { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.js .person-frame .ornament { animation: spin 140s linear infinite; }
.person-photo { position: absolute; left: 14.8%; top: 14.8%; width: 70.4%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--sand); }
.person-photo img, .person-photo .avatar { display: block; width: 100%; height: 100%; object-fit: cover; }
.person-years { position: absolute; right: -2px; bottom: 4px; display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; background: var(--card); box-shadow: 0 8px 20px rgba(58, 36, 24, .22); text-align: center; line-height: 1; }
.person-years svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); rotate: -90deg; }
.g-bg, .g-fg { fill: none; stroke-width: 7; }
.g-bg { stroke: var(--bg-2); } .g-fg { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v)); }
.js .g-fg { stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s cubic-bezier(.3, .8, .3, 1) .3s; }
.js .person.is-in .g-fg { stroke-dashoffset: calc(100 - var(--v)); }
.person-years strong { margin-top: 10px; font-family: var(--head); font-size: 1.7rem; color: var(--ink); }
.person-years span { display: block; max-width: 56px; margin-top: 2px; font-size: .5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); }
.person-role { display: inline-block; padding: 4px 16px; margin-bottom: 10px; border-radius: 10px; background: var(--card-2); color: var(--accent); font-family: var(--head); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.person h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.person-group, .person-about { margin-top: 10px; color: var(--ink-soft); }
.tabset { margin-top: 18px; }
.tabset-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; width: fit-content; max-width: 100%; border-radius: 16px; background: var(--bg-2); }
.ts-tab { min-height: 38px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; font-family: var(--head); font-weight: 700; font-size: .88rem; color: var(--ink-soft); cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.ts-tab:hover { transform: translateY(-1px); }
.ts-tab.is-on { background: var(--card); color: var(--ink); box-shadow: 0 3px 10px rgba(58, 36, 24, .14); }
.ts-panel { display: none; margin-top: 12px; padding: 14px 18px; border-left: 4px solid var(--teal); border-radius: 0 16px 16px 0; background: var(--bg-2); font-size: 1.04rem; }
.ts-panel.is-on { display: block; animation: fd-in .4s cubic-bezier(.2, .9, .3, 1); }

/* Группы: измеряем рост, камелёнок растёт */
.groups { background: linear-gradient(180deg, var(--bg-2), var(--bg)); transition: background .6s; }
.agelab { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; max-width: 880px; margin: 0 auto clamp(28px, 4vw, 48px); padding: 26px clamp(20px, 4vw, 44px); border-radius: 40px; background: var(--card); box-shadow: var(--shadow); transition: background .6s; }
.growth { position: relative; width: 100%; max-width: 330px; height: 300px; }
.wall { position: absolute; inset: 0 auto 0 0; width: 46px; border-radius: 14px; background: var(--card-2) repeating-linear-gradient(0deg, transparent 0 28px, rgba(122, 90, 68, .4) 28px 30px); }
.wall-mark { position: absolute; left: -8px; width: 62px; height: 4px; border-radius: 2px; background: var(--coral); bottom: calc(24px + var(--k, .8) * 200px); transition: bottom .7s cubic-bezier(.3, 1.6, .5, 1); }
.growth-camel { position: absolute; left: 62%; bottom: 20px; width: 220px; transform-origin: 50% 100%; transform: translateX(-50%) scale(var(--k, .8)); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 12px 10px rgba(58, 36, 24, .2)); }
.growth-shadow { position: absolute; left: 62%; bottom: 12px; width: 190px; height: 20px; translate: -50% 0; border-radius: 50%; background: rgba(58, 36, 24, .18); filter: blur(5px); transform: scaleX(var(--k, .8)); transition: transform .7s; }
.age-ctl { display: grid; gap: 8px; }
.age-ctl label { font-family: var(--head); font-weight: 800; font-size: 1.15rem; }
.age-out { font-family: var(--head); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--teal-deep); }
html[data-theme="night"] .age-out { color: #7fe0d9; }
#ageRange { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--sun), var(--coral)); outline-offset: 8px; cursor: pointer; }
#ageRange::-webkit-slider-thumb { -webkit-appearance: none; width: 38px; height: 38px; border-radius: 50%; border: 5px solid #fff; background: var(--brown); box-shadow: 0 6px 14px rgba(58, 36, 24, .35); transition: scale .2s; }
#ageRange::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; border: 5px solid #fff; background: var(--brown); box-shadow: 0 6px 14px rgba(58, 36, 24, .35); }
#ageRange:active::-webkit-slider-thumb { scale: 1.2; }
.ticks { display: flex; justify-content: space-between; padding: 0 12px; font-family: var(--head); font-weight: 800; color: var(--ink-soft); }
.age-note { padding: 10px 14px; border-radius: 14px; background: var(--card-2); font-size: .94rem; font-weight: 500; color: var(--ink-soft); animation: fd-in .4s; }
.age-note[hidden] { display: none; }
.grps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); max-width: 880px; margin-inline: auto; }
.grp { --tone: var(--teal); --tone-soft: #d5f1ee; --tone-ink: #0f5a57; position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 24px 30px; border-radius: 36px; background: var(--card); text-align: center; box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .4s, filter .4s, box-shadow .4s, background .6s; }
.grp-coral { --tone: var(--coral); --tone-soft: #ffe0d9; --tone-ink: #8a2a1c; }
html[data-theme="night"] .grp { --tone-soft: rgba(255, 255, 255, .12); --tone-ink: #fff0d6; }
.grp.is-dim { opacity: .5; filter: saturate(.55); transform: scale(.965); }
.grp.is-on { transform: translateY(-8px); box-shadow: 0 0 0 4px var(--tone), var(--shadow); }
.grp-art { width: 150px; margin-bottom: 4px; }
.gart { width: 100%; height: auto; overflow: visible; }
.js .ga-a { animation: bob 3.4s ease-in-out infinite; } .js .ga-b { animation: bob 3.4s ease-in-out -1s infinite; } .js .ga-c { animation: bob 3.4s ease-in-out -2s infinite; }
.js .ga-bag { animation: bob 3.6s ease-in-out infinite; } .js .ga-pencil { animation: bob 3.6s ease-in-out -1.5s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.grp-age { display: inline-block; padding: 4px 18px; border-radius: 12px; background: var(--tone-soft); color: var(--tone-ink); font-family: var(--head); font-weight: 800; font-size: 1.1rem; }
.grp h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.grp-motto { max-width: 24ch; color: var(--ink-soft); font-weight: 500; }
.grp-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 46px; padding: 0 24px; border-radius: 14px; background: var(--tone); color: #fff; font-family: var(--head); font-weight: 800; text-decoration: none; box-shadow: 0 5px 0 rgba(0, 0, 0, .16); transition: transform .15s, box-shadow .15s; }
.grp-link:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(0, 0, 0, .18); }

/* Кружки: переключатель и «живые» карточки */
.extras { background: var(--bg); transition: background .6s; }
.seg { position: relative; display: flex; width: fit-content; margin: 0 auto 30px; padding: 5px; border-radius: 18px; background: var(--card-2); }
.seg-b { position: relative; z-index: 1; min-height: 42px; padding: 0 22px; border: 0; background: none; font-family: var(--head); font-weight: 800; font-size: .95rem; color: var(--ink-soft); cursor: pointer; transition: color .25s; }
.seg-b.is-on { color: #fff; }
.seg-thumb { position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; width: var(--w, 90px); transform: translateX(var(--x, 5px)); border-radius: 13px; background: linear-gradient(180deg, var(--teal), var(--teal-deep)); box-shadow: 0 5px 12px rgba(28, 127, 124, .4); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), width .45s cubic-bezier(.3, 1.4, .5, 1); }
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 24px; perspective: 1100px; }
.club { --tone: var(--teal); --tone-soft: #d5f1ee; position: relative; display: flex; flex-direction: column; border-radius: 32px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .3s, background .6s; will-change: transform; }
.club.is-tilt { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 26px 50px rgba(58, 36, 24, .25); }
.club::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .45), transparent 55%); opacity: 0; transition: opacity .3s; }
.club.is-tilt::after { opacity: 1; }
.club-1 { --tone: var(--coral); --tone-soft: #ffe3dc; } .club-2 { --tone: var(--sky); --tone-soft: #d9f1fb; } .club-3 { --tone: var(--gold); --tone-soft: #fff0c4; }
html[data-theme="night"] .club { --tone-soft: rgba(255, 255, 255, .1); }
.club[hidden], .club.is-gone { display: none; }
.club.is-pop { animation: club-pop .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--k, 0) * 70ms); }
@keyframes club-pop { from { opacity: 0; scale: .8; translate: 0 20px; } }
.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: 150px; overflow: hidden; background: radial-gradient(circle at 50% 130%, var(--tone-soft), transparent 75%); }
.club-media::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 2px dashed var(--tone); opacity: .5; }
.js .club-media::before { animation: spin 30s linear infinite; }
.club-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.extra-ico { position: relative; width: 84px; height: 84px; padding: 19px; border-radius: 28px; background: var(--tone); color: #fff; box-shadow: 0 10px 22px rgba(58, 36, 24, .2), inset 0 -5px 0 rgba(0, 0, 0, .1); stroke-width: 3; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.club-3 .extra-ico { color: #3a2000; }
.club:hover .extra-ico { transform: scale(1.12) rotate(-8deg); }
.club-tag { position: absolute; left: 14px; top: 14px; padding: 3px 12px; border-radius: 999px; background: var(--card); font-size: .78rem; font-weight: 800; letter-spacing: .04em; box-shadow: 0 3px 8px rgba(58, 36, 24, .15); }
.club-tag-free { color: var(--teal-deep); } .club-tag-paid { color: var(--coral-deep); }
.club-body { display: grid; align-content: start; gap: 6px; padding: 18px 24px 26px; }
.club-title { font-family: var(--head); font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.club-meta { font-size: .86rem; font-weight: 700; color: var(--accent); }
.club-text { color: var(--ink-soft); font-size: .98rem; }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--head); font-weight: 800; color: var(--link); }
.story-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: rgba(40, 20, 8, .75); color: #fff; font-size: .82rem; font-weight: 700; }

/* Галерея */
.gallery { background: var(--bg-2); transition: background .6s; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tab { min-height: 44px; padding: 0 20px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); font-family: var(--head); font-size: .95rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: transform .15s, background .2s; }
.tab:hover { transform: translateY(-2px); }
.tab.is-on { background: var(--teal); border-color: var(--teal); color: #fff; }
.album { column-width: 260px; column-gap: 24px; }
.album figure { position: relative; break-inside: avoid; margin: 0 0 24px; }
.album figure:nth-child(3n+1) { rotate: -1.2deg; } .album figure:nth-child(3n+2) { rotate: 1deg; } .album figure:nth-child(3n) { rotate: -.4deg; }
.photo-btn { position: relative; display: block; width: 100%; padding: 8px; border: 0; border-radius: 26px; background: var(--card); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .3s; }
.photo-btn:hover { transform: translateY(-5px) rotate(.8deg); }
.photo-btn img { display: block; width: 100%; height: auto; border-radius: 19px; }
.photo-btn figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 28px 16px 12px; border-radius: 0 0 19px 19px; background: linear-gradient(transparent, rgba(40, 20, 8, .85)); color: #fff; font-family: var(--head); font-weight: 700; 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; border-color: var(--teal); color: var(--teal-deep); background: transparent; }
html[data-theme="night"] .album-more { color: #7fe0d9; }
.note { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 34px 20px; border: 2px dashed var(--line); border-radius: 30px; background: var(--card); font-weight: 600; color: var(--ink-soft); text-align: center; }

/* Новости */
.news { background: var(--bg); transition: background .6s; }
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 26px; }
.story { overflow: hidden; border-radius: 32px; background: var(--card); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), background .6s; }
.story:hover { transform: translateY(-7px) rotate(-.4deg); }
.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: var(--card-2); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story:hover .story-img img { transform: scale(1.06); }
.story-img-empty { display: grid; place-items: center; background: linear-gradient(180deg, var(--sky-a), var(--sand)); }
.story-img-empty img { width: 52%; height: 100%; object-fit: contain; }
.story-body { display: grid; gap: 6px; padding: 18px 24px 26px; }
.story-body time { font-size: .86rem; font-weight: 700; color: var(--accent); }
.story-title { font-family: var(--head); font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: var(--ink); }
.story-excerpt { color: var(--ink-soft); font-size: .98rem; }

/* Документы и вакансии */
.docs { background: var(--bg-2); transition: background .6s; }
.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: 20px; margin-top: 20px; }
.doc-set, .jobs { padding: 26px 28px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); transition: background .6s; }
.jobs { background: linear-gradient(160deg, var(--card), var(--card-2)); }
.doc-set h3, .jobs h3 { margin-bottom: 12px; font-size: 1.3rem; }
.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(--ink); }
.doc-set a:hover { color: var(--link); }
.doc-set a .ico { color: var(--accent); }
.doc-set small { margin-left: 32px; color: var(--ink-soft); font-weight: 600; }
.job { margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--line); }
.job summary { cursor: pointer; font-weight: 700; }
.job p { margin-top: 8px; }
.job a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--head); font-weight: 800; color: var(--accent); }

/* Контакты: ночной оазис, письмо уходит с караваном */
.contact { position: relative; isolation: isolate; padding-bottom: 0; padding-top: clamp(96px, 11vw, 150px); border-radius: 50% 50% 0 0 / 70px 70px 0 0; background: linear-gradient(180deg, #0f3148, #123a52 55%, #1a4a5e); color: #fff; overflow: hidden; }
.night-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.night-sky .sky-stars { inset: 0; height: 100%; }
.contact h2 { color: #fff; }
.contact .kicker { color: #ffd98a; }
.contact .lede { color: #c9dde8; }
.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: 14px; justify-items: start; }
.contact-info .head { margin-bottom: 0; }
.contact-phone { font-family: var(--head); font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 900; line-height: 1.1; text-decoration: none; color: #ffd166; transition: color .2s, transform .2s; }
.contact-phone:hover { color: #fff; transform: translateX(4px); }
.contact-list { display: grid; gap: 12px; margin-top: 6px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.contact-list .ico { margin-top: .22em; color: #ffd166; }
.contact-list a { text-underline-offset: 3px; color: #9fe6e0; }
.social-label { margin-top: 8px; font-family: var(--head); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: #9fdcd7; }
.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: 1.5px solid rgba(255, 217, 138, .6); border-radius: 14px; font-family: var(--head); font-weight: 800; text-decoration: none; color: #ffe9a8; transition: background .2s, color .2s, transform .2s; }
.socials a:hover { background: #ffd166; color: #3a2000; transform: translateY(-3px); }
.form { position: relative; padding: 42px 36px 34px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 40px; background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(4, 16, 26, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.seal { position: absolute; top: -30px; right: 28px; display: grid; place-items: center; width: 78px; height: 78px; border: 4px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 10px 24px rgba(4, 16, 26, .5), 0 0 0 6px rgba(255, 209, 102, .35); overflow: hidden; rotate: 8deg; }
.seal img { width: 100%; height: 100%; }
.form h3 { max-width: calc(100% - 90px); font-size: 1.8rem; color: #fff; }
.form label { display: block; margin: 16px 0 6px; font-family: var(--head); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #bcd6e2; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 13px 16px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 16px; background: rgba(6, 22, 34, .45); font-weight: 500; color: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .45); }
.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='%23ffd166' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px; padding-right: 42px; }
.form select option { color: #0f3148; }
.form textarea { resize: vertical; min-height: 100px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: #ffd166; background-color: rgba(6, 22, 34, .7); box-shadow: 0 0 0 4px rgba(255, 209, 102, .22); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-family: var(--body); font-size: .9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #c9dde8; }
.form .consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: #ffd166; }
.form .btn { width: 100%; margin-top: 22px; }
.form-note { display: none; margin-top: 14px; font-weight: 700; color: #ffe9a8; }
.form-note.show { display: block; }
.form-note.error { color: #ff9f8f; }
.hp-field { position: absolute; left: -9999px; }
.postal { position: absolute; inset: 0; z-index: 4; display: none; align-items: flex-end; border-radius: inherit; overflow: hidden; background: linear-gradient(180deg, rgba(15, 49, 72, .96), rgba(15, 49, 72, .9)); }
.postal.run { display: flex; }
.postal-walk { position: absolute; left: 0; bottom: 38px; display: flex; align-items: flex-end; width: 130px; color: #f6d9a0; animation: postal 3.2s cubic-bezier(.4, 0, .6, 1) forwards; }
.postal-walk .camel-mini { width: 100%; }
.postal-letter { position: absolute; left: 36px; bottom: 62px; width: 38px; height: 26px; border-radius: 4px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); animation: letter-bob .4s ease-in-out infinite alternate; }
.postal-letter::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 49%, #d9e6ee 50% 52%, transparent 53%), linear-gradient(225deg, transparent 49%, #d9e6ee 50% 52%, transparent 53%); }
.postal-letter::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; translate: -50% -50%; border-radius: 50%; background: var(--coral); }
.postal-text { position: absolute; left: 0; right: 0; top: 32%; text-align: center; font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: #ffe9a8; padding: 0 20px; opacity: 0; animation: fd-in .6s ease .9s forwards; }
@keyframes postal { from { translate: -150px 0; } to { translate: calc(var(--fw, 460px) + 40px) 0; } }
@keyframes letter-bob { to { translate: 0 -3px; rotate: 4deg; } }
.map { display: block; width: 100%; height: 340px; margin-top: 64px; border: 0; border-radius: 36px; box-shadow: 0 24px 60px rgba(4, 16, 26, .5); background: #123a52; }
.foot { margin-top: 64px; padding-top: 30px; background: #09202f; }
.foot-bye { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--head); font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: #ffe9a8; text-align: center; }
.foot-bye .ico { width: 1em; height: 1em; fill: #ffd166; stroke: #ffd166; }
.js .foot-bye .ico { animation: twinkle 3s ease-in-out infinite; }
.foot-road { position: relative; height: 40px; margin-top: 10px; color: #f6d9a0; overflow: hidden; border-bottom: 2px dashed rgba(246, 217, 160, .25); }
.foot-road .camel-mini { position: absolute; left: 0; bottom: 0; width: 44px; }
.js .foot-road .camel-mini { animation: caravan 40s linear infinite; }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; padding: 22px 0 28px; }
.foot-in img { flex: none; border-radius: 50%; background: #fff; }
.foot-in p { margin-right: auto; font-weight: 500; color: #a9c2d0; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 800; text-decoration: none; color: #ffe9a8; }
.foot-in a:hover { color: #fff; }

/* Просмотр фото и новости */
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(10, 24, 36, .93); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; max-width: min(1000px, 78vw); border: 6px solid #fff; border-radius: 22px; }
.lightbox figcaption { margin-top: 12px; color: #fff; font-family: var(--head); font-size: 1.1rem; }
.lb-close, .lb-nav, .nd-close, .nd-nav { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sun); color: #3a2000; cursor: pointer; box-shadow: 0 5px 0 #c67f10; }
.lb-close { position: absolute; top: 16px; right: 16px; }
.news-dialog { width: min(780px, calc(100% - 24px)); max-height: 90vh; padding: 0; border: 0; border-radius: 32px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(4, 16, 26, .5); overflow: auto; }
.news-dialog::backdrop { background: rgba(10, 24, 36, .78); }
.nd-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.nd-stage { position: relative; background: #09202f; }
.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: 700; 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(--bg-2); }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.nd-thumbs button.is-active { border-color: var(--sun); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 24px 30px 34px; }
.nd-gallery[hidden] + .nd-body { padding-top: 62px; }
.nd-body time { font-weight: 700; color: var(--accent); }
.nd-body h3 { margin: .15em 0 .5em; font-size: 1.9rem; }

/* ===================================================================================
   ЛОГОТИП (includes/art.php → bk_logo_svg()). Базовые стили — готовая картинка; движение включает класс .js на <html>
   (его нет при «уменьшить движение»), поэтому без анимации логотип просто собран.
   Слои: .bkl-p (параллакс от курсора, --d — глубина) > .bkl-in (появление) > покой (бесконечное «дыхание»).
   =================================================================================== */
.bkl { position: relative; width: 100%; -webkit-tap-highlight-color: transparent; }
.bkl-svg { display: block; width: 100%; height: auto; overflow: visible; }
.bkl-shadow { filter: drop-shadow(0 18px 30px rgba(80, 40, 10, .32)); }
.bkl-hit { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.bkl-hit-camel { left: 21%; top: 17.5%; width: 50%; height: 36%; }
.bkl-p { transform: translate(calc(var(--px, 0) * var(--d, 0) * 1px), calc(var(--py, 0) * var(--d, 0) * 1px)); transition: transform .35s cubic-bezier(.2, .8, .3, 1); }
.bkl-blush { opacity: 0; transition: opacity .4s; }
.bkl.is-eat .bkl-blush, .bkl.is-pet .bkl-blush { opacity: .5; }
.bkl-headwrap { transform-box: fill-box; transform-origin: 50% 95%; transform: rotate(calc(var(--look, 0) * 1deg)); transition: transform .3s ease-out; }
.bkl-part, .bkl-head, .bkl-camel, .bkl-camel-in, .bkl-let, .bkl-let-in, .bkl-leaf, .bkl-spark, .bkl-ring-spin { transform-box: fill-box; }
.bkl-head { transform-origin: 50% 95%; }
.bkl-ear-r { transform-origin: 24% 66%; } .bkl-ear-l { transform-origin: 72% 74%; } .bkl-tail { transform-origin: 24% 77%; }
.bkl-let-in { transform-origin: 50% 100%; transition: transform .25s cubic-bezier(.3, 1.8, .5, 1); cursor: pointer; }
.bkl-let-in:hover { transform: translateY(-12px) rotate(-4deg) scale(1.1); }

.js .bkl-plate { transform-box: fill-box; transform-origin: 50% 40%; animation: bkl-pop .9s cubic-bezier(.2, 1.3, .4, 1) backwards; }
@keyframes bkl-pop { from { transform: scale(.4); opacity: 0; } }
.js .bkl-ring-in { transform-box: fill-box; transform-origin: 50% 50%; }
.js .bkl-ring-in > g { transform-origin: 50% 50%; }
.js .bkl-ring-spin { transform-origin: 50% 50%; animation: bkl-ring-in 1.5s cubic-bezier(.3, .9, .3, 1) .3s backwards, bkl-spin 140s linear 1.8s infinite; }
@keyframes bkl-ring-in { from { transform: rotate(-160deg) scale(.55); opacity: 0; } }
@keyframes bkl-spin { to { transform: rotate(360deg); } }
.js .bkl-disc-in { transform-box: fill-box; transform-origin: 50% 50%; animation: bkl-disc 1s cubic-bezier(.3, 1.2, .4, 1) .55s backwards; }
@keyframes bkl-disc { from { transform: scale(.05); opacity: 0; } }
.js .bkl-hill-in { animation: bkl-rise-big 1s cubic-bezier(.2, .9, .3, 1) 1.05s backwards; }
@keyframes bkl-rise-big { from { transform: translateY(120px); } }

.js .bkl-camel-in { transform-origin: 50% 100%; animation: bkl-drop 1.25s cubic-bezier(.3, 1.1, .5, 1) 1.45s backwards; }
@keyframes bkl-drop { 0% { transform: translateY(-380px) rotate(-8deg); opacity: 0; } 18% { opacity: 1; } 56% { transform: translateY(0) scale(1.1, .86); } 72% { transform: translateY(-26px) scale(.96, 1.06); } 86% { transform: translateY(0) scale(1.04, .95); } 100% { transform: none; } }
.js .bkl-camel { transform-origin: 50% 100%; animation: bkl-breathe 4.2s ease-in-out 3s infinite; }
@keyframes bkl-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.008, 1.016); } }
.js .bkl-head { animation: bkl-wake 1.2s cubic-bezier(.3, 1.4, .5, 1) 2.2s backwards, bkl-nod 6s ease-in-out 3.6s infinite; }
@keyframes bkl-wake { from { transform: rotate(-12deg) translateY(10px); } 55% { transform: rotate(5deg); } }
@keyframes bkl-nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(1.8deg); } 65% { transform: rotate(-1.6deg) translateY(1px); } }
.js .bkl-ear-r { animation: bkl-ear 7s ease-in-out 3.2s infinite; }
.js .bkl-ear-l { animation: bkl-ear 7s ease-in-out 5.1s infinite reverse; }
@keyframes bkl-ear { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(14deg); } 90% { transform: rotate(-4deg); } 93% { transform: rotate(10deg); } 96% { transform: rotate(0); } }
.js .bkl-tail { animation: bkl-wag 3.6s ease-in-out 3s infinite; }
@keyframes bkl-wag { 0%, 55%, 100% { transform: rotate(0); } 62% { transform: rotate(16deg); } 69% { transform: rotate(-12deg); } 76% { transform: rotate(14deg); } 83% { transform: rotate(-8deg); } 90% { transform: rotate(0); } }
.bkl.is-pet .bkl-tail { animation: bkl-wag-fast .28s ease-in-out infinite alternate; }
@keyframes bkl-wag-fast { from { transform: rotate(-16deg); } to { transform: rotate(18deg); } }
.bkl.is-pet .bkl-ear-r, .bkl.is-pet .bkl-ear-l { animation: bkl-ear-fast .5s ease-in-out infinite alternate; }
@keyframes bkl-ear-fast { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
.bkl.is-eat .bkl-head { animation: bkl-chew 1.1s ease-in-out 1; }
@keyframes bkl-chew { 0% { transform: rotate(0); } 12% { transform: rotate(9deg) translateY(5px); } 24% { transform: rotate(-1deg); } 36% { transform: rotate(8deg) translateY(4px); } 48% { transform: rotate(-1deg); } 60% { transform: rotate(7deg) translateY(3px); } 72% { transform: rotate(0); } 100% { transform: rotate(0); } }
.bkl.is-eat .bkl-camel { animation: bkl-munch 1.1s ease-in-out 1; }
@keyframes bkl-munch { 20%, 50% { transform: scale(1.02, .985); } 35%, 65% { transform: scale(.995, 1.012); } }

.js .bkl-leaf-in { animation: bkl-grow 1.1s cubic-bezier(.3, .8, .3, 1) 2.3s backwards; }
@keyframes bkl-grow { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.bkl-leaf-l { transform-origin: 90% 98%; } .bkl-leaf-r { transform-origin: 14% 95%; }
.js .bkl-leaf-l { animation: bkl-sway 5.8s ease-in-out 3.5s infinite; }
.js .bkl-leaf-r { animation: bkl-sway 6.6s ease-in-out 4s infinite reverse; }
@keyframes bkl-sway { 0%, 100% { transform: rotate(0); } 33% { transform: rotate(3deg); } 66% { transform: rotate(-2.4deg); } }
.js .bkl-spark-in { animation: bkl-starpop .8s cubic-bezier(.2, 1.7, .4, 1) var(--delay, 1.6s) backwards; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes bkl-starpop { from { transform: scale(0) rotate(-140deg); opacity: 0; } }
.js .bkl-spark { transform-origin: 50% 50%; animation: bkl-twinkle calc(2.4s + var(--i) * .33s) ease-in-out calc(var(--i) * -.5s) infinite; }
@keyframes bkl-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(16deg); opacity: .65; } }

.js .bkl-let-in { animation: bkl-letter .8s cubic-bezier(.2, 1.6, .4, 1) calc(2.6s + var(--i) * .12s) backwards; }
@keyframes bkl-letter { from { transform: translateY(-220px) rotate(-30deg) scale(.6); opacity: 0; } }
.js .bkl-let { transform-origin: 50% 100%; animation: bkl-wave 7s ease-in-out calc(4.6s + var(--i) * .13s) infinite; }
@keyframes bkl-wave { 0%, 86%, 100% { transform: translateY(0) scale(1); } 90% { transform: translateY(-16px) scale(.96, 1.06); } 94% { transform: translateY(0) scale(1.05, .94); } 97% { transform: translateY(-3px); } }
.bkl-let.is-spin { animation: bkl-spin-let .8s cubic-bezier(.3, 1.3, .5, 1) 1 !important; }
@keyframes bkl-spin-let { 0% { transform: translateY(0) rotate(0) scale(1); } 40% { transform: translateY(-34px) rotate(180deg) scale(1.2); } 100% { transform: translateY(0) rotate(360deg) scale(1); } }
.js .bkl-sub-in { animation: bkl-wipe 1s cubic-bezier(.5, 0, .2, 1) 3.7s backwards; }
@keyframes bkl-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* «Ура!» по нажатию на буквы / верблюжонка */
.bkl.is-cheer .bkl-camel-layer .bkl-camel { animation: bkl-jump .85s cubic-bezier(.3, 1.2, .5, 1) 1; }
@keyframes bkl-jump { 0% { transform: none; } 14% { transform: scale(1.06, .9); } 44% { transform: translateY(-34px) scale(.95, 1.08); } 76% { transform: translateY(0) scale(1.06, .93); } 100% { transform: none; } }
.bkl.is-cheer .bkl-spark { animation: bkl-star-cheer .9s ease-out 1; }
@keyframes bkl-star-cheer { 40% { transform: scale(2.1) rotate(160deg); } 100% { transform: scale(1) rotate(360deg); } }
.bkl.is-cheer .bkl-let { animation: bkl-wave-fast .7s ease-in-out calc(var(--i) * .06s) 1; }
@keyframes bkl-wave-fast { 40% { transform: translateY(-26px) rotate(-6deg); } 100% { transform: none; } }
.bkl.is-paused *, .hero.is-paused * { animation-play-state: paused !important; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--delay, 0s), transform .8s cubic-bezier(.2, .9, .3, 1) var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .grp.reveal.is-in.is-on { transform: translateY(-8px); }
.js .club.reveal.is-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .7s ease var(--delay, 0s), transform .25s ease-out; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
  .menu a { padding: 8px 10px; font-size: .9rem; }
  .brand-text small { display: none; }
}
@media (max-width: 1130px) {
  .chip-menu { display: inline-flex; }
  .chip-call span { display: none; }
  .chip-call { width: 44px; padding: 0; justify-content: center; }
  .menu { position: absolute; top: calc(var(--bar-h) - 6px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 4px; padding: 14px; border-radius: 28px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(40, 20, 8, .3); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 18px; font-size: 1.05rem; }
  .hero { padding-top: calc(var(--bar-h) + 20px); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { justify-items: center; order: 2; }
  .hero-logo { order: 1; width: min(100%, 420px, calc(66svh * .766)); margin-bottom: 80px; }
  .hero-facts, .hero-actions { justify-content: center; }
  .orb { top: 5%; left: auto; right: 5%; width: 88px; }
  .about-grid, .contact-grid, .docs-grid { grid-template-columns: 1fr; }
  .agelab { grid-template-columns: 1fr; justify-items: center; }
  .age-ctl { width: 100%; }
}
@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 22px; gap: 26px; }
  .person-info { display: grid; justify-items: center; }
  .grps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .form { padding: 38px 22px 28px; }
  .seal { right: 18px; width: 66px; height: 66px; }
  .map { height: 280px; border-radius: 26px; }
  .foot-in { justify-content: center; text-align: center; } .foot-in p { margin-right: 0; width: 100%; }
  .theme-track { width: 64px; } html[data-theme="night"] .theme-knob { transform: translateX(24px); }
}
@media (max-width: 520px) {
  .top-in { gap: 8px; width: calc(100% - 20px); }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.05rem; }
  .chips { gap: 6px; }
  .chip { min-height: 40px; padding: 0 12px; font-size: .88rem; }
  .chip-menu, .chip-call { width: 40px; padding: 0; }
  .theme-track { width: 56px; height: 36px; padding: 0 7px; } .theme-knob { width: 28px; height: 28px; } html[data-theme="night"] .theme-knob { transform: translateX(20px); }
}
