/* BOLASHAQ.COM: два сада, у каждого своя тема.
   Dariya — рассвет над рекой: янтарь, апельсин и золото; Dameli — цветущее дерево: коралл, роза и персик.
   Общее (сетка, разделы, формы) — ниже, темы задают переменные. */

/* ---------- Шрифты (все с казахскими буквами ә ғ қ ң ө ұ ү һ і) ---------- */
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 700 900; font-display: swap; src: url("../assets/fonts/rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-400.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-700.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-800.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }

/* ---------- Темы ---------- */
:root, .theme-hub {
  --bg: #fff8ee;
  --paper: #fffdf9;
  --cream: #ffeed8;
  --beige: #ffdcb4;
  --head: #7b3320;
  --accent: #d4570f;
  --accent-hover: #ea7020;
  --kicker: #b4531a;
  --soft-a: #f5a623;
  --soft-b: #ff86ab;
  --soft-c: #ffd27a;
  --ink: #3b2a22;
  --ink-soft: #6d5749;
  --line: rgba(123, 51, 32, .17);
  --display: "Rubik", "Arial Rounded MT Bold", system-ui, sans-serif;
  --display-weight: 800;
  --display-scale: 1;
  --glow-a: #ffe2a0;
  --glow-b: #ffd0d8;
  --glow-c: #ffe9c8;
  --orb-0: radial-gradient(circle at 35% 30%, #ffc45a, #f5a623 55%, #d9800f);
  --orb-1: radial-gradient(circle at 35% 30%, #ff9a5a, #e5602b 55%, #b8420f);
  --orb-2: radial-gradient(circle at 35% 30%, #ff9bb4, #ee5f86 55%, #c23a64);
}
.theme-dariya {
  --bg: #fff8ec;
  --cream: #ffeccf;
  --beige: #ffd9a6;
  --head: #8a3a12;
  --accent: #d4570f;
  --accent-hover: #ea7020;
  --kicker: #b4531a;
  --soft-a: #f5a623;
  --soft-b: #e5602b;
  --soft-c: #ffd27a;
  --glow-a: #ffe2a0;
  --glow-b: #ffd3b0;
  --glow-c: #fff0c8;
}
.theme-dameli {
  --bg: #fff5f2;
  --paper: #fffdfc;
  --cream: #ffe8e4;
  --beige: #ffd3d0;
  --head: #a3224d;
  --accent: #cf3b6c;
  --accent-hover: #e0507f;
  --kicker: #b82c5b;
  --soft-a: #ff86ab;
  --soft-b: #8fa84e;
  --soft-c: #ffb347;
  --ink: #3a2530;
  --ink-soft: #6e5560;
  --line: rgba(163, 34, 77, .16);
  --glow-a: #ffd0dc;
  --glow-b: #ffe6b8;
  --glow-c: #e6efc4;
  --orb-0: radial-gradient(circle at 35% 30%, #ff9bb4, #ee5f86 55%, #c23a64);
  --orb-1: radial-gradient(circle at 35% 30%, #ffc680, #ffa14a 55%, #d9791f);
  --orb-2: radial-gradient(circle at 35% 30%, #bfd27a, #8fa84e 55%, #6a8130);
}
:root { --bar-h: 70px; --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; --soft: 0 14px 40px rgba(60, 50, 40, .1); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 18px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--soft-a); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 800; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 56px); margin-inline: auto; }
.muted { color: var(--ink-soft); }

h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.08; color: var(--head); }
h2 { font-size: calc(clamp(2rem, 1.45rem + 2.4vw, 3.3rem) * var(--display-scale)); text-wrap: balance; }
h3 { font-size: calc(1.4rem * var(--display-scale)); }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 800; font-size: .96rem; letter-spacing: .02em; color: var(--kicker); }
.kicker .ico { color: var(--soft-a); fill: currentColor; stroke: none; width: 1em; height: 1em; }
.lede { margin-top: 14px; font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }
.head { margin-bottom: 42px; }
.head-center { text-align: center; }
.head-center .lede { margin-inline: auto; }

/* ---------- Фон ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
#nature { position: absolute; inset: 0; width: 100%; height: 100%; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.glow-a { width: 52vmax; height: 52vmax; right: -18vmax; top: -22vmax; background: var(--glow-a); opacity: .7; animation: glow-a 18s ease-in-out infinite alternate; }
.glow-b { width: 44vmax; height: 44vmax; left: -20vmax; top: 34vh; background: var(--glow-b); opacity: .6; animation: glow-b 24s ease-in-out infinite alternate; }
.glow-c { width: 38vmax; height: 38vmax; right: -12vmax; bottom: -16vmax; background: var(--glow-c); opacity: .55; animation: glow-c 21s ease-in-out infinite alternate; }
@keyframes glow-a { to { transform: translate(-7vmax, 5vmax) scale(1.14); } }
@keyframes glow-b { to { transform: translate(8vmax, -6vmax) scale(.9); } }
@keyframes glow-c { to { transform: translate(-6vmax, -7vmax) scale(1.12); } }

/* След при прокрутке: солнышки («Dariya») или цветы («Dameli») — js/main.js */
main { position: relative; isolation: isolate; }
.vine { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; pointer-events: none; }
.vine-line { fill: none; stroke: var(--soft-a); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 2 9; opacity: .7; }
.vine-node { transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1), opacity .4s; }
.vine-node.on { transform: scale(1); opacity: 1; }

/* ---------- Шапка ---------- */
.bar {
  position: fixed; top: 10px; left: 50%; z-index: 30; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; width: min(1360px, 100% - 20px); min-height: 60px; padding: 6px 10px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 26px rgba(60, 50, 40, .08);
}
.bar-home { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 800; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.bar-home:hover { background: var(--beige); }
.bar-brand { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; color: var(--head); text-decoration: none; font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.15rem * var(--display-scale)); line-height: 1; white-space: nowrap; }
.bar-brand img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.hub-word { font-size: 1.6rem; letter-spacing: .01em; padding-left: 10px; }
.bar-nav { display: flex; align-items: center; gap: 2px; }
.bar-nav a { padding: 8px 11px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .93rem; text-decoration: none; transition: background .2s, color .2s; white-space: nowrap; }
.bar-nav a:hover { background: var(--cream); }
.bar-nav a.is-active { background: var(--accent); color: #fff; }
.bar-nav .nav-other { display: none; }
.bar-lang { display: grid; place-items: center; min-width: 48px; height: 44px; border-radius: 999px; background: var(--cream); color: var(--head); font-weight: 800; font-size: .84rem; text-decoration: none; }
.bar-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bar-call:hover { background: var(--accent-hover); }
.bar-menu { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--head); cursor: pointer; }

/* ---------- Первый экран сада ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--bar-h) + 30px) 0 180px; overflow: hidden; display: flex; align-items: center; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
h1 { font-size: calc(clamp(2.2rem, 1.3rem + 3.3vw, 4rem) * var(--display-scale)); line-height: 1.04; text-wrap: balance; }
.hero-name { display: block; margin-bottom: 14px; font-family: var(--body); font-weight: 800; font-size: clamp(.98rem, .9rem + .3vw, 1.12rem); line-height: 1.35; color: var(--kicker); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: .96rem; }
.hero-facts .ico { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 1.05rem; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--accent); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-main:hover { background: var(--accent-hover); }
.btn-line { background: var(--paper); border-color: var(--accent); color: var(--accent); }
.btn-line:hover { background: var(--accent); color: #fff; }
.hero-logo { position: relative; justify-self: center; width: min(100%, 480px, calc((100svh - var(--bar-h) - 170px) * .86)); }
.hero-halo { position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--paper) 0 44%, color-mix(in srgb, var(--glow-a) 70%, transparent) 60%, transparent 72%); }

/* Сцены первого экрана: река с корабликом («Dariya») и цветущий луг («Dameli») */
.scene { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 260px; z-index: 1; }

/* ---------- Живые логотипы ---------- */
.ll { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; container-type: inline-size; -webkit-tap-highlight-color: transparent; text-align: center; }
.ll-emblem { display: block; width: 78%; margin: 0 auto; filter: drop-shadow(0 14px 22px rgba(120, 50, 20, .18)); }
.ll-art { width: 100%; height: auto; overflow: visible; }
.ll-word { display: block; margin-top: 2%; font: 800 clamp(2.2rem, 21cqw, 5.4rem)/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.ll-sub { display: block; margin-top: 2.5%; font: 800 clamp(.62rem, 4.1cqw, 1.2rem)/1 var(--body); letter-spacing: .34em; padding-left: .34em; white-space: nowrap; }
.ll-l { display: inline-block; }
.ll-dariya .ll-word .ll-l { background: linear-gradient(180deg, #ffa21f 10%, #d4450f 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(255, 255, 255, .8)); }
.ll-dariya .ll-sub { color: #9a4a18; }
.ll-dameli .ll-word .ll-l { background: linear-gradient(180deg, #ff7aa2 10%, #c4325f 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(255, 255, 255, .8)); }
.ll-dameli .ll-sub { color: #9a3a58; }
.ll-spark { position: fixed; z-index: 50; width: 22px; pointer-events: none; }
.dr-sunwrap, .dr-rays, .dr-sun { transform-origin: 200px 205px; }
.dm-tr { stroke-dasharray: 1; stroke-dashoffset: 0; }
.dr-ring, .dm-ring { stroke-dasharray: 1; stroke-dashoffset: 0; transform-origin: 200px 200px; transform: rotate(-90deg); }
.dm-bl .fl, .dm-gf .fl, .mf .fl, .st-flower .fl { transform-box: fill-box; transform-origin: center; }
.wing { transform-box: fill-box; transform-origin: 100% 50%; }
.dm-bf { offset-rotate: 0deg; }
.pt, .sp { transform-box: fill-box; transform-origin: center; }
.dr-boat, .dr-bird, .boat-bob { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  /* Dariya: кольцо рисуется, встаёт солнце, течёт река, плывёт кораблик, буквы подпрыгивают */
  .dr-ring { animation: draw 1.3s .1s ease-out both; }
  .dr-hill { animation: hill-up .9s .25s cubic-bezier(.25, .9, .3, 1) both; }
  .dr-hill.h2 { animation-delay: .4s; }
  .dr-sunwrap { animation: sun-rise 1.7s .55s cubic-bezier(.2, .85, .3, 1) both; }
  .dr-rays { animation: spin 70s linear infinite; }
  .dr-sun { animation: pulse 4.5s 2.4s ease-in-out infinite alternate; }
  .dr-river { animation: fade-in .9s 1.25s ease-out both; }
  .dr-bank, .dr-reeds { animation: fade-in .8s 1.5s ease-out both; }
  .dr-ripples .rp { stroke-dasharray: .16 .1; animation: fade-in .6s 1.7s both, ripple 3.6s 2s linear infinite; }
  .dr-boat { animation: boat-in .9s 2s cubic-bezier(.3, 1.5, .5, 1) both; }
  .dr-boat-in { animation: drift-x 8s 3s ease-in-out infinite alternate; }
  .dr-bird { animation: fade-in .6s 2.3s both, fly 7s 2.9s ease-in-out infinite alternate; }
  .dr-bird.b2 { animation-delay: 2.5s, 3.3s; animation-duration: .6s, 9s; }
  .dr-bird.b3 { animation-delay: 2.7s, 2.5s; animation-duration: .6s, 6s; }
  .dr-spk .sp { animation: twinkle 2.2s calc(2.4s + var(--i, 0) * .5s) ease-in-out infinite alternate; }
  .dr-spk .s2 { animation-delay: 3s; } .dr-spk .s3 { animation-delay: 3.5s; }

  /* Dameli: кольцо, растёт дерево, одно за другим распускаются цветы, летают бабочки, падают лепестки */
  .dm-ring { animation: draw 1.3s .1s ease-out both; }
  .dm-glow { animation: fade-in 1s .2s both, pulse 6s 1.4s ease-in-out infinite alternate; transform-origin: 200px 160px; }
  .dm-hill { animation: hill-up .9s .25s cubic-bezier(.25, .9, .3, 1) both; }
  .dm-hill.h2 { animation-delay: .4s; }
  .dm-tr { animation: draw 1s cubic-bezier(.3, .7, .3, 1) both; }
  .dm-tr.t0 { animation-delay: .55s; animation-duration: 1.1s; }
  .dm-tr.t1 { animation-delay: 1.45s; } .dm-tr.t2 { animation-delay: 1.6s; } .dm-tr.t3 { animation-delay: 1.75s; }
  .dm-tr.t4 { animation-delay: 2s; } .dm-tr.t5 { animation-delay: 2.1s; }
  .dm-bl .fl { animation: bloom .75s calc(2.1s + var(--i) * 90ms) cubic-bezier(.3, 1.7, .5, 1) both; }
  .dm-crown { animation: sway 7s 4.5s ease-in-out infinite alternate; transform-origin: 200px 240px; }
  .dm-gf .fl { animation: bloom .7s calc(3.3s + var(--i) * 140ms) cubic-bezier(.3, 1.7, .5, 1) both, wiggle 4s calc(4.2s + var(--i) * .4s) ease-in-out infinite alternate; }
  .dm-grass { animation: fade-in .6s 3.2s both; }
  .pt { animation: fall 7s linear infinite; opacity: 0; }
  .pt.p1 { animation-delay: 3.4s; } .pt.p2 { animation-delay: 4.6s; } .pt.p3 { animation-delay: 5.5s; animation-duration: 8s; }
  .pt.p4 { animation-delay: 6.3s; } .pt.p5 { animation-delay: 7.4s; animation-duration: 8s; }
  .dm-bf { animation: fade-in .6s 3.8s both, flit 16s 3.8s linear infinite; offset-path: path("M60 262C110 196 150 236 196 200S300 126 336 196 256 270 172 256 40 292 60 262Z"); }
  .dm-bf.bf2 { animation-delay: 4.3s, 4.3s; animation-direction: normal, reverse; animation-duration: .6s, 21s; offset-path: path("M340 240C300 180 250 214 214 176S110 120 70 190 160 262 248 246 360 280 340 240Z"); }
  .wing { animation: flap .42s ease-in-out infinite alternate; }
  .wing.wr { animation-delay: 0s; }

  /* Название по буквам */
  .ll-word .ll-l { animation: letter-drop .75s calc(2.2s + var(--i) * 95ms) cubic-bezier(.3, 1.6, .5, 1) both; }
  .ll-sub .ll-l { animation: letter-rise .5s calc(3.1s + var(--i) * 45ms) ease-out both; }
  .ll-dameli .ll-word .ll-l { animation-delay: calc(3.2s + var(--i) * 95ms); }
  .ll-dameli .ll-sub .ll-l { animation-delay: calc(4.1s + var(--i) * 45ms); }
  .ll.is-paused, .ll.is-paused * { animation-play-state: paused !important; }

  .hero-halo { animation: halo 7s ease-in-out infinite alternate; }
  .river-boat .boat-bob { animation: bob-rock 2.8s ease-in-out infinite alternate; }
  .river-lines { animation: ripple-h 9s linear infinite; }
  .mf .fl { animation: wiggle 3.6s calc(var(--i) * -.45s) ease-in-out infinite alternate; }
  .meadow-bf .wing { animation: flap .38s ease-in-out infinite alternate; }
    .sphere { animation: bob-big 6s ease-in-out infinite alternate; }
  .sphere-b { animation-duration: 7.4s; animation-delay: -2s; }

  /* Рисунки групп оживают, когда карточка на экране */
  .js .stage .st-sun { transform-box: fill-box; transform-origin: center; transform: scale(.5); }
  .js .stage.is-in .st-sun { transform: scale(1); transition: transform .9s .2s cubic-bezier(.3, 1.6, .5, 1); }
  .js .stage.is-in .st-rays { animation: spin 40s linear infinite; }
  .js .stage .st-flower .fl, .js .stage .st-bud, .js .stage .st-leaf { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); }
  .js .stage.is-in .st-flower .fl, .js .stage.is-in .st-bud, .js .stage.is-in .st-leaf { transform: scale(1); transition: transform .7s .35s cubic-bezier(.3, 1.8, .5, 1); }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); transition-delay: var(--delay, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
.st-rays, .st-sun { transform-box: fill-box; transform-origin: center; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hill-up { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sun-rise { from { transform: translateY(150px) scale(.8); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes ripple { to { stroke-dashoffset: -1.2; } }
@keyframes ripple-h { to { stroke-dashoffset: -330; } }
@keyframes boat-in { from { transform: translateY(-26px) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drift-x { from { transform: translate(-12px, 0) rotate(-2deg); } to { transform: translate(12px, 2px) rotate(2deg); } }
@keyframes bob-rock { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-3px); } }
@keyframes fly { from { transform: translate(-10px, 3px) scaleY(1); } 50% { transform: translate(8px, -4px) scaleY(.55); } to { transform: translate(24px, 2px) scaleY(1); } }
@keyframes twinkle { from { transform: scale(.4) rotate(-10deg); opacity: .35; } to { transform: scale(1.15) rotate(12deg); opacity: 1; } }
@keyframes bloom { from { transform: scale(0) rotate(-140deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sway { from { transform: rotate(-.9deg); } to { transform: rotate(.9deg); } }
@keyframes wiggle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes fall { 0% { transform: translate(0, -20px) rotate(0); opacity: 0; } 8% { opacity: .95; } 100% { transform: translate(60px, 230px) rotate(420deg); opacity: 0; } }
@keyframes flit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.18); } }
@keyframes letter-drop { from { transform: translateY(-90%) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes letter-rise { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes halo { to { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes bob-big { to { transform: translateY(-9px); } }

/* ---------- Разделы ---------- */
.section { position: relative; padding: 96px 0; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: color-mix(in srgb, var(--cream) 82%, transparent); border-radius: 50% 50% 50% 50% / 76px 76px 76px 76px;
}

/* О саде */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.spheres { display: flex; gap: 18px; margin-top: 30px; }
.sphere { display: grid; place-content: center; justify-items: center; width: clamp(120px, 15vw, 164px); aspect-ratio: 1; border-radius: 50%; color: #fff; text-align: center; line-height: 1.1; }
.sphere strong { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; }
.sphere span { font-weight: 800; }
.sphere-a { background: var(--orb-1); }
.sphere-b { background: var(--orb-0); margin-top: 22px; }
.info-card { padding: 30px 32px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); border: 1px solid var(--line); }
.info-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin-top: 10px; }
.info-card dl > div { padding: 13px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.info-card dl > div.wide { grid-column: 1 / -1; }
.info-card dl > div:last-child { border-bottom: 0; }
.info-card dt { font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.info-card dd { font-weight: 800; overflow-wrap: anywhere; }
.info-card a { text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.info-card a.inline { display: inline-block; margin-left: 6px; font-weight: 700; font-size: .92rem; text-decoration: underline; }
.about-photos { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 40px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px 28px 110px 28px; box-shadow: var(--soft); }
.about-photos img:nth-child(2) { border-radius: 110px 28px 28px 28px; }
.about-photos img:nth-child(3) { border-radius: 28px 110px 28px 28px; }
.director { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 34px; align-items: center; margin-top: 56px; padding: 30px 36px; background: var(--paper); border: 1px solid var(--line); border-radius: 34px; box-shadow: var(--soft); }
.director-photo { aspect-ratio: 1; overflow: hidden; border-radius: 47% 53% 44% 56% / 55% 46% 54% 45%; background: var(--cream); display: grid; place-items: center; }
.director-photo img { width: 100%; height: 100%; object-fit: cover; }
.director-photo img.director-mark { object-fit: contain; padding: 18%; }
.director-pair { display: flex; gap: 6px; padding: 16%; }
.director-pair img { width: 50%; height: auto; object-fit: contain; }
.director-name { font-size: calc(clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem) * var(--display-scale)); }
.director-role { margin-top: 4px; font-weight: 800; color: var(--kicker); }
.director p + p { margin-top: 8px; }
.director .kicker { margin-bottom: 4px; }
.section > .wrap > .director:first-child { margin-top: 0; }

/* Группы */
.stages { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; align-items: end; }
.stage { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 20px 24px; background: var(--paper); border-radius: 30px; box-shadow: var(--soft); }
.stage:nth-child(2) { transform: translateY(-12px); }
.stage:nth-child(3) { transform: translateY(-24px); }
.stage:nth-child(4) { transform: translateY(-36px); }
.js .stage.reveal.is-in:nth-child(2) { transform: translateY(-12px); }
.js .stage.reveal.is-in:nth-child(3) { transform: translateY(-24px); }
.js .stage.reveal.is-in:nth-child(4) { transform: translateY(-36px); }
.stage-art { width: min(100%, 210px); }
.stage-age { margin-top: 10px; padding: 3px 14px; border-radius: 999px; background: var(--cream); color: var(--head); font-weight: 800; }
.stage h3 { margin-top: 8px; font-size: calc(1.45rem * var(--display-scale)); }
.stage-names { margin-top: 8px; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.stage-names span { display: block; font-size: .82rem; color: var(--kicker); }
.stage a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; }

/* Кружки */
.orb-0 { background: var(--orb-0); }
.orb-1 { background: var(--orb-1); }
.orb-2 { background: var(--orb-2); }
.extra-ico { width: 52%; height: 52%; }

/* Фото */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-weight: 800; }
.tab.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.album { columns: 3 280px; column-gap: 18px; }
.album figure { break-inside: avoid; margin-bottom: 18px; }
.album figure[hidden] { display: none; }
.photo-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: var(--beige); cursor: zoom-in; box-shadow: var(--soft); }
.photo-btn img { width: 100%; height: auto; transition: transform .6s; }
.photo-btn:hover img { transform: scale(1.04); }
.photo-btn figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 5px 12px; border-radius: 14px; background: color-mix(in srgb, var(--paper) 92%, transparent); font-weight: 700; font-size: .92rem; text-align: left; }
.album-more { display: flex; margin: 8px auto 0; }
.album-more[hidden] { display: none; }

/* Новости */
.note { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; color: var(--ink-soft); }
.note .ico { color: var(--soft-a); }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story { background: var(--paper); border-radius: 30px; overflow: hidden; box-shadow: var(--soft); }
.story:first-child:not(:only-child) { grid-column: span 3; }
.story-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.story-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.story:hover .story-img img { transform: scale(1.04); }
.story-img-empty img { object-fit: contain; padding: 12% 24%; }
.story-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--head) 88%, transparent); color: #fff; font-weight: 800; font-size: .88rem; }
.story-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; flex: 1; }
.story-body time { font-weight: 800; font-size: .88rem; color: var(--ink-soft); }
.story-title { font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.4rem * var(--display-scale)); line-height: 1.15; color: var(--head); }
.story-excerpt { color: var(--ink-soft); }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--accent); }
@media (min-width: 861px) {
  .story:first-child:not(:only-child) .story-open { flex-direction: row; }
  .story:first-child:not(:only-child) .story-img { flex: 1.3; aspect-ratio: auto; min-height: 320px; }
  .story:first-child:not(:only-child) .story-body { flex: 1; justify-content: center; padding: 32px; }
  .story:first-child:not(:only-child) .story-title { font-size: calc(2rem * var(--display-scale)); }
}
.story:only-child { max-width: 560px; }
.news-dialog { width: min(780px, calc(100% - 24px)); max-height: 90vh; padding: 0; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); overflow: auto; }
.news-dialog::backdrop { background: rgba(30, 30, 40, .62); }
.nd-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.nd-stage { position: relative; background: #1f1d26; }
.nd-img { width: 100%; height: min(58vh, 470px); object-fit: contain; }
.nd-nav { position: absolute; top: 50%; transform: translateY(-50%); display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); cursor: pointer; }
.nd-prev { left: 12px; }
.nd-next { right: 12px; }
.nd-counter { position: absolute; left: 12px; bottom: 12px; display: none; padding: 3px 11px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-weight: 800; font-size: .86rem; }
.has-many .nd-nav { display: grid; }
.has-many .nd-counter { display: block; }
.nd-thumbs { display: none; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--cream); }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 3px solid #fff0; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.nd-thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 24px 26px 32px; }
.nd-gallery[hidden] + .nd-body { padding-top: 56px; }
.nd-body time { font-weight: 800; color: var(--ink-soft); }
.nd-body h3 { font-size: calc(1.8rem * var(--display-scale)); margin: .25em 0 .5em; }
#ndText { overflow-wrap: anywhere; }

/* Документы и вакансии */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.doc-sets { display: grid; gap: 16px; margin-top: 28px; }
.doc-set { padding: 22px 26px; background: var(--paper); border-radius: 28px; box-shadow: var(--soft); }
.doc-set p, .doc-set ul { margin-top: 8px; }
.doc-set li + li { margin-top: 10px; }
.doc-set li a { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 800; }
.doc-set li a .ico { margin-top: .22em; }
.doc-set small { display: block; margin-left: 2em; color: var(--ink-soft); }
.doc-sub { margin-top: 16px; padding: 14px 18px; border-radius: 20px; background: var(--cream); }
.doc-sub summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.2rem * var(--display-scale)); color: var(--head); }
.doc-sub summary .ico { color: var(--kicker); }
.doc-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--body); font-size: .8rem; font-weight: 800; }
.jobs { padding: 28px 30px; background: var(--head); color: #f1f4f4; border-radius: 34px; box-shadow: var(--soft); }
.jobs h3 { color: #fff; font-size: calc(1.7rem * var(--display-scale)); }
.jobs .muted { margin-top: 10px; color: rgba(255, 255, 255, .78); }
.job { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.job summary { cursor: pointer; font-weight: 800; }
.job p { margin-top: 8px; }
.job a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #fff; font-weight: 800; }

/* Контакты */
.contact { padding-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-phone { display: block; margin-top: 14px; font-family: var(--display); font-weight: var(--display-weight); font-size: calc(clamp(1.8rem, 1.3rem + 2vw, 2.7rem) * var(--display-scale)); color: var(--head); text-decoration: none; }
.contact-phone + .contact-phone { margin-top: 2px; }
.contact-phone:hover { color: var(--accent-hover); }
.contact-list { display: grid; gap: 12px; margin-top: 18px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.contact-list .ico { margin-top: .22em; color: var(--accent); }
.social-label { margin-top: 26px; font-weight: 800; color: var(--ink-soft); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; text-decoration: none; }
.socials a:hover { background: var(--cream); }
.form { padding: 28px 30px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); }
.form label { display: block; margin: 14px 0 4px; font-size: .92rem; font-weight: 800; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 12px 15px; border: 1.5px solid var(--beige); border-radius: 16px; background: #fff; font: inherit; color: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: 0; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.form .consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.form .btn { width: 100%; margin-top: 16px; }
.hp-field { position: absolute; left: -9999px; }
.form-note { display: none; margin-top: 14px; font-weight: 800; color: var(--head); }
.form-note.show { display: block; }
.form-note.error { color: #a8362b; }
.map { display: block; width: 100%; height: 340px; margin-top: 44px; border: 0; border-radius: 34px; box-shadow: var(--soft); background: var(--beige); }
.foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.foot p { margin-right: auto; }
.foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }

/* Просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(24, 24, 30, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; max-width: min(1000px, 78vw); border-radius: 12px; }
.lightbox figcaption { margin-top: 10px; color: #fff; text-align: center; font-weight: 700; }
.lb-close, .lb-nav { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.lb-close { position: absolute; top: 16px; right: 16px; }

/* ---------- Общая главная BOLASHAQ.COM ---------- */
.hub-hero { padding: calc(var(--bar-h) + 56px) 0 70px; }
.hub-hero h1 { font-size: calc(clamp(2.4rem, 1.5rem + 3.4vw, 4.2rem) * var(--display-scale)); }
.hub-mark { width: 44px; height: 44px; flex: none; }
.hm-petals { transform-origin: 0 0; animation: spin 40s linear infinite; }
.hub-word small { font-size: .62em; color: var(--accent); letter-spacing: .02em; }
.portals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.portal { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 30px 34px; border-radius: 40px; overflow: hidden; box-shadow: var(--soft); isolation: isolate; }
.portal-dariya { background: linear-gradient(180deg, #fffdf8, #ffeccf); --accent: #d4570f; --accent-hover: #ea7020; --head: #8a3a12; --kicker: #b4531a; }
.portal-dameli { background: linear-gradient(180deg, #fffdfc, #ffe4e2); --accent: #cf3b6c; --accent-hover: #e0507f; --head: #a3224d; --kicker: #b82c5b; }
.portal-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.portal-sun { position: absolute; right: -60px; top: -60px; width: 220px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffe08a 0 36%, rgba(255, 200, 80, .35) 55%, transparent 70%); animation: pulse 6s ease-in-out infinite alternate; }
.portal-petals { position: absolute; inset: 0; background-image:
  radial-gradient(7px 4px at 12% 18%, #ff9bb9, #fff0), radial-gradient(6px 3.5px at 28% 40%, #ffb1c8, #fff0),
  radial-gradient(7px 4px at 84% 24%, #ff86ab, #fff0), radial-gradient(6px 3.5px at 90% 62%, #ffb1c8, #fff0),
  radial-gradient(7px 4px at 8% 76%, #ff86ab, #fff0), radial-gradient(6px 3.5px at 56% 90%, #ffc2d4, #fff0); }
.portal-logo { width: min(100%, 330px); }
.portal h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* название уже в логотипе */
.portal-place { display: inline-flex; gap: 8px; align-items: flex-start; max-width: 40ch; color: var(--ink-soft); font-weight: 700; }
.portal-place .ico { margin-top: .2em; color: var(--accent); }
.portal-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 10px; }
.portal-facts li { display: grid; padding: 8px 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); line-height: 1.2; }
.portal-facts strong { font-size: 1.15rem; color: var(--head); }
.portal-facts span { font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
.hub-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hub-card { padding: 28px 30px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); }
.hub-card img { width: 64px; height: 64px; object-fit: contain; }
.hub-card h3 { margin-top: 8px; }
.hub-card .btn { margin-top: 20px; }
.hub-card-dariya { --accent: #d4570f; --head: #8a3a12; }
.hub-card-dameli { --accent: #cf3b6c; --head: #a3224d; }
.hub-nav a { font-weight: 800; }
.director-phone { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; }
.director-phone .ico { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow { animation: none; }
}

/* ---------- Планшет и телефон ---------- */
/* Кнопка «на главную» — только значок; телефон текстом — только на широких экранах, иначе меню налезает на название */
.bar-home span { display: none; }
.bar-home { width: 44px; padding: 0; justify-content: center; }
@media (max-width: 1400px) {
  .bar-call span { display: none; }
  .bar-call { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 1180px) {
  .bar-call span, .bar-home span { display: none; }
  .bar-call { width: 44px; padding: 0; justify-content: center; }
  .bar-home { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 1190px) {  /* меню в шапке сворачивается раньше, чем перестаёт помещаться */
  .bar-menu { display: grid; }
  .bar-nav:not(.hub-nav) {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--soft);
  }
  .bar-nav.open { display: flex; }
  .bar-nav a { padding: 12px 16px; font-size: 1.05rem; }
  .bar-nav .nav-other { display: block; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; color: var(--accent); }
}
@media (max-width: 1040px) {
  .hero { display: block; padding-bottom: 150px; }
  .hero-grid, .about-grid, .docs-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 14px; }
  .hero-logo { order: -1; width: min(78%, 400px, 42svh); }
  .hero-text { text-align: center; }
  .hero-facts, .hero-actions { justify-content: center; }
  .hero-text .kicker { justify-content: center; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage:nth-child(n), .js .stage.reveal.is-in:nth-child(n) { transform: none; }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story:first-child:not(:only-child) { grid-column: span 2; }
}
@media (max-width: 760px) {
  .portals, .hub-contacts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --bar-h: 64px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding: 68px 0; }
  .band::before { border-radius: 50% 50% 50% 50% / 38px 38px 38px 38px; }
  .bar { gap: 6px; }
  .bar-brand { font-size: calc(1.02rem * var(--display-scale)); }
  .bar-brand img { width: 36px; height: 36px; }
  .hub-word { font-size: 1.35rem; }
  .hub-nav { display: none; }
  .hero { padding-top: calc(var(--bar-h) + 18px); padding-bottom: 110px; }
  .hero-logo { width: min(70%, 33svh); }
  .hero-text .kicker { display: none; }
  h1 { font-size: calc(1.9rem * var(--display-scale)); margin-top: 4px; }
  .hero-name { margin-bottom: 8px; font-size: .95rem; }
  .hero-facts { margin-top: 14px; gap: 6px; }
  .hero-facts li { padding: 4px 11px; font-size: .88rem; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .btn { width: 100%; min-height: 50px; }
  .scene { height: 150px; }
  .info-card { padding: 22px 20px; }
  .info-card dl { grid-template-columns: minmax(0, 1fr); }
  .director { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; gap: 16px; justify-items: start; }
  .director-photo { width: 140px; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stage { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; align-items: center; text-align: left; padding: 14px 20px 20px; }
  .stage-art { grid-row: 1 / span 2; width: 120px; }
  .stage-age { justify-self: start; align-self: end; margin-top: 0; }
  .stage h3 { align-self: start; margin-top: 4px; }
  .stage-names, .stage a { grid-column: 1 / -1; }
      .stories { grid-template-columns: minmax(0, 1fr); }
  .story:first-child:not(:only-child) { grid-column: auto; }
  .about-photos { grid-template-columns: minmax(0, 1fr); }
  .form, .doc-set, .jobs, .hub-card { padding: 22px 20px; }
  .portal { padding: 26px 18px 28px; border-radius: 30px; }
  .portal-logo { width: min(70%, 240px); }
  .map { height: 260px; border-radius: 24px; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox img { max-width: 72vw; }
}

/* ---------- Команда и блог медсестры ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px 24px; max-width: 1080px; margin-inline: auto; }
.person, .nurse-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 22px 28px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s; }
.person:hover, .nurse-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 22px 44px rgba(60, 50, 40, .14); }
.person-photo { width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 5px solid var(--cream); background: var(--cream); box-shadow: 0 10px 24px rgba(60, 50, 40, .12); }
.person-photo img, .person-photo .avatar { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-top: 14px; font-size: calc(1.28rem * var(--display-scale)); }
.person-role { margin-top: 8px; padding: 3px 14px; border-radius: 999px; background: var(--cream); color: var(--head); font-weight: 800; font-size: .9rem; }
.person-teacher .person-role { background: color-mix(in srgb, var(--soft-a) 26%, #fff); }
.person-assistant .person-role { background: #e3f4d9; }
.person-nurse .person-role, .nurse-card span { background: #ffe1ec; }
.person-group { margin-top: 8px; font-weight: 800; color: var(--kicker); }
.person-about { margin-top: 8px; color: var(--ink-soft); font-size: .97rem; text-wrap: pretty; }
.person-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; text-decoration: none; }
.person-link:hover { text-decoration: underline; }
.person-link .ico { color: #e0407c; fill: currentColor; stroke: none; }

.nurse-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.nurse-card { padding: 24px 18px 26px; }
.nurse-card strong { margin-top: 14px; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.25rem; color: var(--head); line-height: 1.2; }
.nurse-card span { margin-top: 8px; padding: 3px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: var(--head); }
.blog-list { display: grid; gap: 16px; min-width: 0; }
.blog-all { justify-self: start; }
.blog-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0; overflow: hidden; background: var(--paper); border-radius: 28px; box-shadow: var(--soft); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(60, 50, 40, .13); }
.blog-card img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.blog-card-ico { display: grid; place-items: center; min-height: 150px; background: linear-gradient(135deg, #ffe1ec, var(--cream)); color: #e0407c; }
.blog-card-ico .ico { width: 44px; height: 44px; fill: currentColor; stroke: none; }
.blog-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 20px; min-width: 0; }
.blog-card-body time { font-weight: 800; font-size: .86rem; color: var(--ink-soft); }
.blog-card-body strong { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.22rem; line-height: 1.2; color: var(--head); overflow-wrap: anywhere; }
.blog-card-text { color: var(--ink-soft); font-size: .97rem; }
.blog-card .story-more { margin-top: auto; padding-top: 4px; }

/* Страница блога */
.blog-main { padding: calc(var(--bar-h) + 52px) 0 70px; min-height: 70svh; }
.blog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 44px; margin-bottom: 38px; }
.blog-head > div { flex: 1 1 380px; min-width: 0; }
.blog-head h1 { font-size: calc(clamp(2rem, 1.4rem + 2.4vw, 3.3rem) * var(--display-scale)); }
.blog-head .nurse-card { width: 250px; flex: none; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card-big { grid-template-columns: minmax(0, 1fr); }
.blog-card-big img, .blog-card-big .blog-card-ico { height: 210px; min-height: 0; }
.blog-post { max-width: 800px; margin-inline: auto; }
.blog-backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }
.blog-backlink:hover { text-decoration: underline; }
.blog-post-head { margin: 18px 0 22px; }
.blog-post-head h1 { font-size: calc(clamp(1.9rem, 1.3rem + 2.2vw, 3rem) * var(--display-scale)); text-wrap: balance; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-weight: 700; color: var(--ink-soft); }
.blog-photos { columns: 2 280px; margin-bottom: 26px; }
.blog-body { font-size: 1.14rem; line-height: 1.8; overflow-wrap: anywhere; }
.blog-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; }
.blog-pager a { display: grid; gap: 4px; flex: 1 1 0; min-width: 0; max-width: 48%; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--soft); text-decoration: none; color: var(--head); }
.blog-pager a.is-next { text-align: right; margin-left: auto; }
.blog-pager span { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 800; color: var(--kicker); }
.blog-pager a.is-next span { justify-content: flex-end; }
.blog-pager strong { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.25; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .nurse-grid { grid-template-columns: minmax(0, 1fr); }
  .nurse-card { max-width: 320px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  .blog-card { grid-template-columns: minmax(0, 1fr); }
  .blog-card img, .blog-card .blog-card-ico { height: 180px; min-height: 0; }
  .blog-head .nurse-card { width: 100%; max-width: 320px; }
  .blog-pager { flex-direction: column; }
  .blog-pager a { max-width: none; }
  .blog-main { padding-top: calc(var(--bar-h) + 30px); }
}

/* ---------- Кружки: карточки с фото, по нажатию — подробности и фотографии ---------- */
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; max-width: 1100px; margin-inline: auto; }
.club { min-width: 0; }
.club-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); box-shadow: var(--soft); color: inherit; font: inherit; text-align: left; cursor: default; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s; }
.club.is-openable .club-open { cursor: pointer; }
.club.is-openable .club-open:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(60, 50, 40, .15); }
.club-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; color: #fff; }
.club-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.club.is-openable .club-open:hover .club-media img { transform: scale(1.05); }
.club-media .extra-ico { width: 34%; height: auto; aspect-ratio: 1; }
.club-media .story-count { right: 12px; bottom: 12px; }
.club-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.club-title { font-family: var(--display); font-weight: var(--display-weight); font-size: calc(1.3rem * var(--display-scale)); line-height: 1.2; color: var(--head); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: text-decoration-color .25s; }
.club.is-openable .club-open:hover .club-title, .club.is-openable .club-open:focus-visible .club-title { text-decoration-color: var(--soft-a); }
.club:not(.is-openable) .club-title { text-decoration: none; }
.club-meta { font-weight: 800; font-size: .9rem; color: var(--kicker); }
.club-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-soft); font-size: .96rem; }
.club .story-more { margin-top: auto; padding-top: 6px; }
@media (max-width: 640px) {
  .clubs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
