/* «Төре» — буква Т из четырёх цветных полос (зелёная, малиновая, синяя, горчичная) и белого казахского кружева.
   Сайт сделан как ткань из этих полос: полосы — это факты, группы, шапка и подвал; кружево — орнамент разделов.
   Общий файл для головного сада и филиала «Қаратау»: у филиала (body.accent-branch) синий акцент и силуэт гор Қаратау.
   Шрифты свои (assets/fonts): Geologica (заголовки) и Nunito Sans (текст); казахские буквы есть в обоих. */

@font-face { font-family: "Geologica"; font-weight: 300 900; font-display: swap; src: url("../assets/fonts/geologica-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: "Geologica"; font-weight: 300 900; font-display: swap; src: url("../assets/fonts/geologica-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 300 900; font-display: swap; src: url("../assets/fonts/geologica-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-weight: 400 900; font-display: swap; src: url("../assets/fonts/nunitosans-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: "Nunito Sans"; font-weight: 400 900; font-display: swap; src: url("../assets/fonts/nunitosans-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito Sans"; font-weight: 400 900; font-display: swap; src: url("../assets/fonts/nunitosans-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 {
  --green: #06592a; --green-2: #0b7a3b; --magenta: #b02a7c; --blue: #2a2fa6; --mustard: #d9a024; --navy: #1f3d93;
  --ink: #17224a; --paper: #fbf7ef; --cream: #f4ecdc; --card: #ffffff; --text: #17224a; --muted: #55607e; --line: rgba(23, 34, 74, .12);
  --accent: var(--green); --accent-2: var(--magenta);
  --stripe: linear-gradient(90deg, var(--green) 0 25%, var(--magenta) 25% 50%, var(--blue) 50% 75%, var(--mustard) 75% 100%);
  /* имена для общих блоков (галерея, новости, документы, диалоги) */
  --gold: var(--mustard); --gold-d: var(--accent); --amber: var(--magenta); --cocoa: var(--ink); --brown: var(--ink); --head: var(--ink); --night: var(--ink);
  --display: "Geologica", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 74px;
  --ease-pop: cubic-bezier(.3, 1.5, .5, 1);
  --shadow: 0 22px 50px rgba(23, 34, 74, .12);
}
.accent-branch { --accent: var(--blue); --accent-2: var(--mustard); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 500 1.03rem/1.7 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 90; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 800; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.lede { max-width: 62ch; font-size: 1.07rem; color: var(--muted); text-wrap: pretty; }
.head { display: grid; gap: 12px; margin-bottom: 44px; }
.head-center { justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); }
.hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; font-size: .92rem; font-weight: 700; color: var(--muted); }
.hint .ico, .hero-hint .ico { color: var(--magenta); }
.orn { width: 120px; height: auto; color: var(--accent); }
.orn-head { width: 110px; opacity: .9; }

/* ---------- Разделы ---------- */
.section, .foot, .hero { overflow-x: clip; }
.section { position: relative; padding: clamp(72px, 8vw, 112px) 0; }
.section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--stripe); opacity: .9; }
.sec-paper { background: var(--paper); }
.sec-cream { background: var(--cream); }
.sec-white { background: #fff; }
.sec-green { background: var(--green); color: #fff; }
.accent-branch .sec-green { background: var(--blue); }
.sec-green h2, .sec-green .kicker { color: #fff; } .sec-green .kicker { color: var(--mustard); }
.sec-green .lede { color: rgba(255, 255, 255, .86); }
.sec-sky { background: #eef3fb; }
.sec-deep { background: var(--ink); color: #fff; }
.sec-deep h2 { color: #fff; } .sec-deep .kicker { color: var(--mustard); } .sec-deep .lede { color: rgba(255, 255, 255, .84); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 16px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .25s var(--ease-pop), box-shadow .25s, background .2s; }
.btn:hover { transform: translateY(-3px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9rem; border-radius: 12px; }
.btn-main { position: relative; overflow: hidden; background: var(--accent); color: #fff !important; box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--stripe); }
.btn-line { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--line), 0 6px 16px rgba(23, 34, 74, .06); }
.btn-line .ico { color: var(--accent); }

/* ---------- Шапка ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(251, 247, 239, .93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .3s; }
.top.is-stuck { box-shadow: 0 10px 30px rgba(23, 34, 74, .1); }
.top-in { display: flex; align-items: center; gap: 14px; width: min(1260px, 100% - 32px); height: var(--bar-h); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-weight: 900; font-size: 1.6rem; letter-spacing: -.02em; color: var(--accent); }
.brand-text small { font-size: .66rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--magenta); }
.menu { display: flex; gap: 2px; }
.menu a { position: relative; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 800; font-size: .92rem; text-decoration: none; transition: background .2s; }
.menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--stripe); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.menu a:hover::after, .menu a.is-active::after { transform: scaleX(1); }
.chips { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 900; font-size: .84rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip-call { border-color: transparent; background: var(--accent); color: #fff !important; }
.chip-sister { border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); }
.chip-t { width: 18px; height: auto; transition: transform .4s var(--ease-pop); }
.chip-sister:hover .chip-t { transform: rotate(-12deg) scale(1.2); }
.chip-menu { display: none; width: 42px; padding: 0; justify-content: center; }
.stripes { position: relative; height: 5px; background: rgba(23, 34, 74, .06); }
.stripes i { display: block; width: var(--p, 0%); height: 100%; background: var(--stripe); background-size: 100vw 100%; }

/* ---------- Первый экран ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: 100svh; padding: calc(var(--bar-h) + 40px) 0 90px; background: radial-gradient(ellipse at 80% 40%, #fff 0, transparent 55%), var(--paper); }
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rib { fill: none; stroke-width: 74; stroke-linecap: round; opacity: .95; }
.hero-orn { position: absolute; width: 220px; color: var(--accent); opacity: .08; pointer-events: none; }
.ho-1 { left: -40px; top: 18%; rotate: -14deg; } .ho-2 { left: 34%; bottom: 6%; rotate: 8deg; width: 160px; color: var(--magenta); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.hero-text { display: grid; gap: 18px; justify-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(23, 34, 74, .08); font-weight: 800; font-size: .84rem; color: var(--ink); }
.eyebrow .ico { color: var(--magenta); }
.hero-title { display: grid; gap: 4px; justify-items: start; }
.ht-kicker { font-weight: 900; font-size: .9rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.ht-word { display: flex; font-family: var(--display); font-weight: 900; font-size: clamp(4.4rem, 2.4rem + 7vw, 8.6rem); line-height: .95; letter-spacing: -.03em; }
.ht-l { display: inline-block; text-shadow: 0 6px 0 rgba(23, 34, 74, .08); }
.ht-g { color: var(--green); } .ht-m { color: var(--magenta); } .ht-b { color: var(--blue); } .ht-y { color: var(--mustard); }
.ht-branch { margin-top: 6px; padding: 6px 16px; border-radius: 12px; background: var(--blue); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.hero-tag { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); color: var(--ink); }
.hero-lead { max-width: 52ch; font-size: 1.08rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hint { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; background: rgba(255, 255, 255, .8); font-weight: 800; font-size: .9rem; }
.hero-logo { position: relative; display: grid; justify-items: center; }
.logo-halo { position: absolute; inset: 4%; border-radius: 50%; background: #fff; box-shadow: 0 30px 70px rgba(23, 34, 74, .16); }
.to-logo { position: relative; width: min(100%, 520px); height: auto; overflow: visible; -webkit-tap-highlight-color: transparent; }
.to-t { cursor: pointer; }
.crown { position: absolute; left: 50%; top: 13%; z-index: 3; width: 22%; translate: -60% 0; opacity: 0; pointer-events: none; }
.crown.on { opacity: 1; }
.crown svg { width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(122, 77, 0, .35)); }
.hero-ridge { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.hero-ridge .ridge { display: block; width: 100%; height: clamp(90px, 13vw, 170px); }

/* ---------- ЛОГОТИП: части (assets/logo/tore.svg) ---------- */
.to-lace, .to-l, .to-bandg { transform-box: fill-box; transform-origin: 50% 50%; }
.to-l { transform-origin: 50% 100%; }
.to-ring { stroke-dasharray: 100; }
.to-band, .to-lace { transition: fill .7s ease; }
.to-lace { cursor: pointer; }
.to-logo.sh1 .to-g { fill: var(--magenta); } .to-logo.sh1 .to-m { fill: var(--blue); } .to-logo.sh1 .to-b { fill: var(--mustard); } .to-logo.sh1 .to-y { fill: var(--green); }
.to-logo.sh2 .to-g { fill: var(--blue); } .to-logo.sh2 .to-m { fill: var(--mustard); } .to-logo.sh2 .to-b { fill: var(--green); } .to-logo.sh2 .to-y { fill: var(--magenta); }
.to-logo.sh3 .to-g { fill: var(--mustard); } .to-logo.sh3 .to-m { fill: var(--green); } .to-logo.sh3 .to-b { fill: var(--magenta); } .to-logo.sh3 .to-y { fill: var(--blue); }

/* ---------- О нас ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.dict { position: relative; padding: 34px 34px 30px 44px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.dict::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: linear-gradient(180deg, var(--green) 0 25%, var(--magenta) 25% 50%, var(--blue) 50% 75%, var(--mustard) 75% 100%); }
.dict-t { position: absolute; right: -16px; top: -10px; width: 150px; opacity: .1; rotate: 10deg; }
.dict-word { font-family: var(--display); font-weight: 900; font-size: clamp(3.2rem, 2rem + 4vw, 5rem); line-height: 1; letter-spacing: -.03em; color: var(--accent); }
.dict-kind { margin-top: 6px; font-size: .86rem; font-weight: 800; font-style: italic; color: var(--muted); }
.dict-defs { display: grid; gap: 10px; margin: 18px 0; counter-reset: d; }
.dict-defs li { position: relative; padding-left: 40px; counter-increment: d; font-weight: 800; }
.dict-defs li::before { content: counter(d); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; font-family: var(--display); font-size: .9rem; background: var(--green); }
.dict-defs li:nth-child(2)::before { background: var(--magenta); } .dict-defs li:nth-child(3)::before { background: var(--blue); }
.dict-note { padding-top: 14px; border-top: 2px dashed var(--line); font-family: var(--display); font-weight: 700; color: var(--navy); }
.about-text { display: grid; gap: 14px; justify-items: start; }
.about-text .lede { max-width: none; color: #39456e; }
.place { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 18px; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(23, 34, 74, .06); font-weight: 800; }
.place .ico { color: var(--magenta); }
.place a { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; text-decoration: none; }
.bands-wrap { margin-top: 64px; }
.bands-title { margin-bottom: 18px; text-align: center; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.bands { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.bands li:nth-child(2) { margin-left: 4%; } .bands li:nth-child(3) { margin-left: 8%; } .bands li:nth-child(4) { margin-left: 12%; }
.band { position: relative; display: flex; align-items: center; gap: 18px; width: 100%; min-height: 84px; padding: 12px 28px; border: 0; border-radius: 22px 60px 22px 22px; background: var(--c); color: #fff; text-align: left; cursor: pointer; overflow: hidden; transition: transform .35s var(--ease-pop), border-radius .4s; }
.band::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 7px); pointer-events: none; }
.band:hover { transform: translateX(10px); }
.band-big { position: relative; z-index: 1; font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; white-space: nowrap; }
.band-big .b-sm { font-size: 1.5rem; }
.band-label { position: relative; z-index: 1; font-weight: 800; font-size: 1rem; opacity: .95; }
.band-orn { position: absolute; right: 18px; top: 50%; z-index: 1; width: 90px; color: #fff; opacity: .25; translate: 0 -50%; transition: opacity .4s, transform .6s var(--ease-pop); }
.band.is-open { border-radius: 60px 22px 22px 60px; }
.band.is-open .band-orn { opacity: .9; transform: scale(1.35) rotate(-8deg); }

/* ---------- Группы: лестница полос ---------- */
.ladder { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.rung { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; grid-template-areas: "age name count" "age pick count"; align-items: center; gap: 2px 22px; width: 100%; padding: 18px 26px; border: 0; border-radius: 22px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; box-shadow: inset 10px 0 0 var(--c), 0 16px 34px rgba(0, 0, 0, .16); transition: transform .35s var(--ease-pop), box-shadow .35s; }
.rung:hover { transform: translateX(8px); }
.rung.is-picked { box-shadow: inset 10px 0 0 var(--c), 0 0 0 4px var(--mustard), 0 16px 34px rgba(0, 0, 0, .2); }
.rung-age { grid-area: age; font-family: var(--display); font-weight: 900; font-size: 1.7rem; line-height: 1.05; color: var(--c); }
.rung-name { grid-area: name; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.rung-pick { grid-area: pick; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .88rem; color: var(--muted); }
.rung-count { grid-area: count; display: flex; align-items: center; gap: 6px; }
.rung-t { width: 34px; height: auto; transition: transform .5s var(--ease-pop); }
.rung:hover .rung-t { transform: translateY(-6px) rotate(-8deg); }
.rung:hover .rung-t + .rung-t { transform: translateY(-6px) rotate(8deg); }
.rung-count small { font-weight: 900; color: var(--muted); }

/* ---------- Кружки ---------- */
.clubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.club { position: relative; border-radius: 24px; background: #fff; box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease-pop); }
.club::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.club:hover { transform: translateY(-6px); }
.club-open { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; width: 100%; padding: 24px 22px 22px; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.club-media { display: grid; place-items: center; width: 70px; height: 70px; }
.club-media img { width: 100%; height: 100%; border-radius: 18px; object-fit: cover; }
.club-ico { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 20px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.club-ico .extra-ico { width: 44px; height: 44px; }
.club-body { display: grid; gap: 6px; justify-items: start; }
.club-title { font-family: var(--display); font-weight: 800; font-size: 1.18rem; line-height: 1.2; }
.club-badge { padding: 2px 10px; border-radius: 8px; background: color-mix(in srgb, var(--green) 12%, #fff); color: var(--green); font-weight: 900; font-size: .74rem; letter-spacing: .04em; }
.club-badge.is-paid { background: color-mix(in srgb, var(--magenta) 12%, #fff); color: var(--magenta); }
.club-meta { font-weight: 800; font-size: .8rem; color: var(--muted); }
.club-text { color: var(--muted); font-size: .95rem; }
.story-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .88rem; color: var(--magenta); }
.club.played .club-ico { background: var(--c); color: #fff; }
.note-fly { position: fixed; z-index: 74; font-family: var(--display); font-size: 26px; font-weight: 900; pointer-events: none; }

/* ---------- Руководство ---------- */
.leaders { display: grid; gap: 30px; }
.leader { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; max-width: 860px; margin: 0 auto; padding: 34px clamp(24px, 4vw, 44px); border-radius: 32px; background: #fff; box-shadow: var(--shadow); }
.portrait { width: 220px; aspect-ratio: 1; margin: 0 auto; }
.portrait-in { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 8px #fff, 0 0 0 14px var(--accent); }
.portrait-in img, .portrait-in .avatar { width: 100%; height: 100%; object-fit: cover; }
.leader-body { display: grid; gap: 8px; justify-items: start; }
.leader-role { font-weight: 900; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--magenta); }
.leader-body h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.leader-edu span { display: block; font-weight: 900; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.leader-about { color: var(--muted); }
.leader-years { display: inline-flex; align-items: baseline; gap: 8px; }
.leader-years strong { font-family: var(--display); font-size: 2.4rem; color: var(--accent); }
.leader-orn { width: 110px; margin-top: 6px; }

/* ---------- Два сада — одна семья ---------- */
.family-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.city-box { display: grid; gap: 10px; }
.city { width: 100%; height: auto; border-radius: 36px; box-shadow: var(--shadow); }
.city-box figcaption { text-align: center; font-size: .86rem; font-weight: 700; color: var(--muted); }
.river { cursor: pointer; }
.pin { cursor: pointer; }
.boat { opacity: 0; transition: opacity .3s; }
.boat.go { opacity: 1; }
.homes { display: grid; gap: 18px; }
.home { position: relative; display: grid; gap: 6px; justify-items: start; padding: 24px 26px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); transition: transform .35s var(--ease-pop), box-shadow .35s; }
.home.flash { transform: scale(1.03); box-shadow: 0 0 0 4px var(--mustard), var(--shadow); }
.home-me { box-shadow: inset 0 0 0 3px var(--accent), var(--shadow); }
.home-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 900; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.home h3 { font-size: 1.25rem; }
.home-district { font-weight: 900; color: var(--magenta); font-size: .9rem; }
.home-line { color: var(--muted); font-size: .95rem; }
.home-t { position: absolute; right: 20px; top: 18px; width: 40px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

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

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

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

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

/* ---------- Общие блоки: в палитре «Төре» ---------- */
.tab { border: 2px solid var(--line); background: #fff; color: var(--ink); }
.tab.is-on { background: var(--accent); color: #fff; }
.photo-btn { border-color: #fff; outline: 0; box-shadow: 0 24px 46px rgba(23, 34, 74, .18); }
.hall-nav { background: var(--accent); color: #fff; border: 0; box-shadow: 0 10px 24px rgba(23, 34, 74, .2); }
.story, .doc-set, .jobs { border: 0; box-shadow: var(--shadow); }
.story-title { font-family: var(--display); }
.jobs { background: var(--accent); }
.toast { border: 0; box-shadow: 0 18px 44px rgba(23, 34, 74, .3), inset 0 -5px 0 var(--magenta); }
.toast .t-coin { border: 0; border-radius: 6px; background: var(--stripe); }
.news-dialog { border: 0; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); }
.nd-close { border: 0; background: var(--accent); color: #fff; }
.lb-close, .lb-nav { border: 0; }

/* ---------- Контакты ---------- */
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-info { display: grid; gap: 14px; justify-items: start; }
.contact-phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); color: #fff !important; text-decoration: none; }
.contact-phone .ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--mustard); color: var(--ink); }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.contact-list .ico { margin-top: 3px; color: var(--mustard); }
.contact-list a { color: #fff !important; font-weight: 900; }
.social-label { margin-top: 6px; font-size: .76rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; background: #fff; color: var(--ink) !important; font-weight: 900; text-decoration: none; transition: transform .25s var(--ease-pop); }
.socials a:hover { transform: translateY(-3px); }
.form { position: relative; padding: 48px 34px 32px; border-radius: 30px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .3); overflow: hidden; }
.form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--stripe); }
.seal { position: absolute; top: 22px; right: 24px; width: 66px; height: 66px; }
.seal img { width: 100%; height: 100%; border-radius: 50%; }
.form h3 { font-size: 2rem; color: var(--accent); }
.form-orn { width: 90px; margin: 4px 0 2px; color: var(--magenta); }
.form label { display: block; margin: 16px 0 6px; font-weight: 900; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 13px 18px; border: 2px solid #e3e6ef; border-radius: 14px; background: #fbfcff; font: 600 1rem var(--body); color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317224a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px; padding-right: 42px; }
.form select.flash { animation: flash 1s ease; }
@keyframes flash { 30% { border-color: var(--mustard); box-shadow: 0 0 0 6px rgba(217, 160, 36, .35); } }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.consent { position: relative; display: flex !important; gap: 10px; align-items: flex-start; margin-top: 16px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .88rem !important; font-weight: 700 !important; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.form .btn { width: 100%; margin-top: 20px; }
.form-note { margin-top: 10px; font-weight: 900; color: var(--green); opacity: 0; transition: opacity .3s; }
.form-note.show { opacity: 1; }
.form-note.error { color: #b3261e; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Подвал ---------- */
.foot { position: relative; background: #0d1633; color: #dfe3f2; }
.foot-stripes { display: grid; grid-template-columns: repeat(4, 1fr); height: 18px; }
.foot-stripes i:nth-child(1) { background: var(--green); } .foot-stripes i:nth-child(2) { background: var(--magenta); } .foot-stripes i:nth-child(3) { background: var(--blue); } .foot-stripes i:nth-child(4) { background: var(--mustard); }
.foot-in-top { display: grid; gap: 16px; justify-items: center; padding: 44px 0 10px; text-align: center; }
.foot-bye { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); color: #fff; }
.foot-sister { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #fff !important; font-weight: 900; text-decoration: none; transition: background .2s, transform .25s var(--ease-pop); }
.foot-sister:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }
.fs-t { width: 30px; height: auto; }
.letters-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: .88rem; }
.letters-row i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 2px dashed rgba(255, 255, 255, .25); color: transparent; font-style: normal; font-family: var(--display); font-weight: 900; transition: background .4s, color .4s, transform .5s var(--ease-pop); }
.letters-row i.on { border-style: solid; border-color: transparent; color: #fff; transform: rotate(-6deg) scale(1.1); }
.letters-row i.on:nth-of-type(1) { background: var(--green); } .letters-row i.on:nth-of-type(2) { background: var(--magenta); } .letters-row i.on:nth-of-type(3) { background: var(--blue); } .letters-row i.on:nth-of-type(4) { background: var(--mustard); }
.eggs { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 8px 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-weight: 700; font-size: .88rem; }
.eggs-dots { display: inline-flex; gap: 6px; }
.eggs-dots i { width: 12px; height: 26px; border-radius: 4px; background: rgba(255, 255, 255, .14); transition: background .4s, transform .5s var(--ease-pop); }
.eggs-dots i.on { background: var(--c); transform: scaleY(1.15); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 20px; padding: 20px 0 30px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.foot-in img { width: 46px; height: 46px; border-radius: 50%; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; color: var(--mustard) !important; font-weight: 900; text-decoration: none; }

/* спрятанные буквы Т-Ө-Р-Е (пасхалка) */
.hid-letter { position: absolute; z-index: 4; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border: 0; border-radius: 9px; background: var(--c); color: #fff; font-family: var(--display); font-weight: 900; font-size: 1.05rem; cursor: pointer; opacity: .85; rotate: -8deg; -webkit-tap-highlight-color: transparent; }
.hid-letter.got { pointer-events: none; }

/* ---------- Летящее ---------- */
.sky-layer { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.strip { position: fixed; left: 0; top: 0; z-index: 74; width: 8px; height: 22px; border-radius: 3px; pointer-events: none; }
.fx-orn { position: absolute; left: 0; top: 0; width: 80px; height: auto; }

/* ---------- Движение (только если посетитель не просил его уменьшить) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .8s cubic-bezier(.3, 1.3, .5, 1); transition-delay: var(--delay, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .orn path { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.6s ease-out .2s; }
  .js .orn.is-drawn path { stroke-dashoffset: 0; }

  .js .rib { stroke-dasharray: 100; animation: draw 1.8s calc(var(--i) * .16s + .1s) cubic-bezier(.5, 0, .3, 1) both; }
  @keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
  .js .eyebrow, .js .hero-tag, .js .hero-lead, .js .hero-actions, .js .hero-hint, .js .ht-kicker, .js .ht-branch { animation: rise .8s var(--ease-pop) both; }
  .js .eyebrow { animation-delay: .1s; } .js .ht-kicker { animation-delay: .2s; } .js .ht-branch { animation-delay: .9s; } .js .hero-tag { animation-delay: 1s; } .js .hero-lead { animation-delay: 1.15s; } .js .hero-actions { animation-delay: 1.3s; } .js .hero-hint { animation-delay: 1.5s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  .js .ht-l { animation: letter-in .9s calc(var(--i) * .12s + .3s) var(--ease-pop) both, letter-bob 5s calc(var(--i) * .3s + 2s) ease-in-out infinite; }
  @keyframes letter-in { from { opacity: 0; transform: translateX(-60px) skewX(-14deg); } }
  @keyframes letter-bob { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(-10px) rotate(-3deg); } }
  .hero-orn { animation: orn-float 9s ease-in-out infinite alternate; }
  @keyframes orn-float { to { transform: translateY(-16px) rotate(6deg); } }
  .river-flow { animation: flow 3s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -80; } }
  .pin-pulse { animation: pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }
  .pin { transition: transform .3s var(--ease-pop); }
  .rung-t { animation: t-sway 3s calc(var(--i) * .4s) ease-in-out infinite alternate; transform-origin: 50% 100%; }
  @keyframes t-sway { from { rotate: -4deg; } to { rotate: 4deg; } }
  .hid-letter { animation: hl-bob 3s ease-in-out infinite alternate; }
  @keyframes hl-bob { to { transform: translateY(-6px) rotate(10deg); } }
  .hid-letter.got { animation: hl-got .9s var(--ease-pop) forwards; }
  @keyframes hl-got { 40% { transform: translateY(-50px) scale(1.6) rotate(-180deg); opacity: 1; } 100% { transform: translateY(-110px) scale(.3) rotate(-360deg); opacity: 0; } }
  .club.played .club-ico { animation: boing .6s var(--ease-pop); }
  @keyframes boing { 40% { transform: scale(1.15) rotate(-8deg); } 70% { transform: scale(.95) rotate(4deg); } }
  .crown.on { animation: crown-drop 1s cubic-bezier(.3, 1.5, .5, 1) both, crown-bob 3s 1s ease-in-out infinite alternate; }
  @keyframes crown-drop { from { opacity: 0; transform: translateY(-160px) rotate(-30deg); } }
  @keyframes crown-bob { to { transform: translateY(-6px) rotate(3deg); } }
  .home-t { animation: t-sway 3s ease-in-out infinite alternate; }

  /* логотип: живые части */
  .to-shine { animation: shine 7s 2s ease-in-out infinite; }
  @keyframes shine { 0% { transform: translateX(0); } 40%, 100% { transform: translateX(760px); } }
  .to-lace { animation: lace-breathe 6s calc(var(--j, 0) * .45s) ease-in-out infinite; }
  @keyframes lace-breathe { 0%, 82%, 100% { transform: none; } 90% { transform: scale(1.12); } }
  .to-l { animation: l-wave 6s calc(var(--i) * .1s + 3s) ease-in-out infinite; }
  @keyframes l-wave { 0%, 20%, 100% { transform: none; } 10% { transform: translateY(-6px) scale(1.1); } }
  .to-lace.pop { animation: lace-pop .7s var(--ease-pop); }
  @keyframes lace-pop { 40% { transform: scale(1.45) rotate(-10deg); } }
  .to-logo.tap .to-bandg { animation: band-kick .6s calc(var(--b) * 60ms) var(--ease-pop); }
  @keyframes band-kick { 40% { transform: translateX(-14px); } }

  /* вступление: кольцо рисуется, полосы буквы Т заезжают по очереди, кружево распускается, буквы balabaqsha встают по дуге */
  .js .is-intro .to-disc { animation: disc-in .8s var(--ease-pop) both; transform-box: fill-box; transform-origin: center; }
  @keyframes disc-in { from { transform: scale(.5); opacity: 0; } }
  .js .is-intro .to-ring { animation: draw 1.6s .2s cubic-bezier(.5, 0, .3, 1) both; }
  .js .is-intro .to-bandg { animation: band-in .8s calc(var(--b) * .16s + .5s) var(--ease-pop) both; }
  @keyframes band-in { from { opacity: 0; transform: translateX(-90px); } }
  .js .is-intro .to-lace { animation: lace-in .7s calc(var(--j, 0) * 70ms + 1.3s) var(--ease-pop) both; }
  .js .is-intro .to-b.to-lace, .js .is-intro .to-y.to-lace { animation-delay: calc(var(--j, 0) * 70ms + 1.6s); }
  @keyframes lace-in { from { opacity: 0; transform: scale(0) rotate(-40deg); } }
  .js .is-intro .to-l { animation: l-in .5s calc(var(--i) * 60ms + 1.7s) var(--ease-pop) both; }
  @keyframes l-in { from { opacity: 0; transform: translateY(-20px) scale(.2); } }
  .js .is-intro .to-shine { animation: shine 1.4s 2.4s ease-in-out both; }
}

/* =====================================================================================
   ДВА РАЗНЫХ ХАРАКТЕРА. Код общий, но:
   «Төре» (body.accent-main) — «мост»: четыре ленты буквы Т тянутся через весь сайт, рисуются при прокрутке, впереди бежит огонёк,
   а в подвале ленты входят в четыре полосы. «Қаратау» (body.accent-branch) — горы: слои хребтов с параллаксом, восход,
   беркуты, туман, гребни гор между разделами, факты-вершины с флажками, полоса прокрутки — хребет.
   ===================================================================================== */

/* ---------- Төре: мост из лент ---------- */
#main { position: relative; }
.bifrost { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: 0; overflow: visible; pointer-events: none; }
.accent-main .section > .wrap, .accent-main .foot-in-top, .accent-main .foot-in { position: relative; z-index: 2; }
.accent-main .section > .hid-letter { z-index: 4; }
.bf-r { fill: none; stroke: var(--c); stroke-width: var(--bw, 12px); stroke-linecap: round; stroke-linejoin: round; opacity: .93; }
.bf-glow { fill: none; stroke: #fff; stroke-width: var(--gw, 90px); stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.bf-light { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 40; opacity: .95; }
.bf-head { transition: opacity .4s; }
.bf-head circle { fill: #fff; }
.bf-head .bf-halo { fill: #ffd27a; opacity: .5; }
.accent-main .groups .lede, .accent-main .groups h2 { text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }

/* ---------- Қаратау: горы ---------- */
.accent-branch .hero { min-height: 100svh; padding-bottom: clamp(170px, 22vw, 260px); background: #fbeedd; }
.accent-branch .hero-orn { display: none; }
.hero-peaks { position: absolute; inset: 0; pointer-events: none; }
.peaks { position: absolute; inset: 0; width: 100%; height: 100%; }
.pk-flap { transform-box: fill-box; transform-origin: 50% 60%; }
.accent-branch .logo-halo { box-shadow: 0 30px 80px rgba(23, 34, 74, .28); }
.accent-branch .eyebrow, .accent-branch .hero-hint { background: rgba(255, 255, 255, .88); }
.accent-branch .hero-lead { color: #3a4470; }
/* полоса прокрутки — хребет */
.ridgebar { height: 14px; margin-top: -3px; }
.ridgeline { display: block; width: 100%; height: 14px; }
.rl-base { fill: none; stroke: rgba(23, 34, 74, .16); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rl-done { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
/* гребни гор вместо полос между разделами */
.accent-branch .section::before { top: -30px; height: 32px; background: inherit; opacity: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 32'%3E%3Cpath d='M0 32V24L40 12L70 20L110 4L150 18L190 10L230 22L270 6L310 16L350 2L400 20L440 10L480 22L520 8L560 24V32Z'/%3E%3C/svg%3E") 0 0 / 560px 32px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 32'%3E%3Cpath d='M0 32V24L40 12L70 20L110 4L150 18L190 10L230 22L270 6L310 16L350 2L400 20L440 10L480 22L520 8L560 24V32Z'/%3E%3C/svg%3E") 0 0 / 560px 32px repeat-x; }
.accent-branch .groups::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: rgba(255, 255, 255, .09); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 110'%3E%3Cpath d='M0 110V70L80 30L130 60L210 10L290 66L360 34L440 80L520 20L600 64L700 40V110Z'/%3E%3C/svg%3E") 0 100% / 700px 110px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 110'%3E%3Cpath d='M0 110V70L80 30L130 60L210 10L290 66L360 34L440 80L520 20L600 64L700 40V110Z'/%3E%3C/svg%3E") 0 100% / 700px 110px repeat-x; }
.accent-branch .ladder li:nth-child(2) { margin-left: 8%; } .accent-branch .ladder li:nth-child(3) { margin-left: 16%; }
.accent-branch .rung { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 60'%3E%3Cpath d='M0 60L40 18L60 36L92 4L130 42L160 26V60Z' fill='%232a2fa6' fill-opacity='.08'/%3E%3C/svg%3E") no-repeat right 110px bottom / 160px 60px; }
/* факты-вершины */
.peaks-facts { display: flex; justify-content: center; align-items: flex-end; max-width: 1000px; margin: 70px auto 0; padding: 0 20px; }
.peaks-facts li { flex: 1 1 0; margin: 0 -22px; }
.peaks-facts li:nth-child(odd) { z-index: 1; }
.pf { position: relative; display: block; width: 100%; height: calc(var(--h) * 2.9px); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pf-mt { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 16px 20px rgba(23, 34, 74, .2)); transition: transform .45s var(--ease-pop); }
.pf:hover .pf-mt { transform: translateY(-8px); }
.pf-text { position: absolute; left: 18%; right: 18%; bottom: 12%; display: grid; justify-items: center; gap: 2px; color: #fff; text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); pointer-events: none; }
.pf-big { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); line-height: 1; }
.pf-big .b-sm { font-size: clamp(.9rem, .8rem + .4vw, 1.15rem); line-height: 1.15; display: block; }
.pf-label { font-weight: 800; font-size: .78rem; line-height: 1.25; }
.pf-flag { position: absolute; left: 50%; bottom: 100%; width: 4px; height: 48px; margin-left: -2px; border-radius: 2px; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease-pop); }
.pf-flag i { position: absolute; left: 4px; top: 0; width: 30px; height: 20px; background: var(--c); clip-path: polygon(0 0, 100% 50%, 0 100%); transform-origin: 0 50%; }
.pf.is-open .pf-flag { transform: scaleY(1); }
/* подвал: ночные горы с флагом на вершине */
.foot-ridge { position: relative; height: 130px; margin-bottom: -1px; background: var(--ink); background-image: radial-gradient(1.6px 1.6px at 12% 30%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 26% 12%, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 64% 22%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 80% 10%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 92% 36%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 40% 40%, #fff 50%, transparent 52%); }
.foot-ridge .ridge { position: absolute; left: 0; right: 0; bottom: 0; display: block; width: 100%; height: 100%; }
.foot-ridge .ridge path:first-child { fill: #3b40a8; }
.foot-ridge .ridge path:last-child { fill: #0d1633; }
.summit-flag { position: absolute; left: 48.6%; top: 22%; width: 3px; height: 34px; margin-top: -34px; background: #fff; }
.summit-flag i { position: absolute; left: 3px; top: 0; width: 26px; height: 17px; background: var(--magenta); clip-path: polygon(0 0, 100% 50%, 0 100%); transform-origin: 0 50%; }

@media (prefers-reduced-motion: no-preference) {
  .bf-light { animation: bf-run 1.8s linear infinite; }
  @keyframes bf-run { to { stroke-dashoffset: -42; } }
  .bf-halo { animation: bf-pulse 1.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  @keyframes bf-pulse { to { transform: scale(1.5); opacity: .15; } }

  .js .pk-l { animation: pk-rise 1.5s calc(var(--i) * .2s + .1s) cubic-bezier(.2, .9, .3, 1) backwards; }
  @keyframes pk-rise { from { transform: translateY(320px); } }
  .js .pk-sun { animation: pk-rise 2.6s .4s cubic-bezier(.2, .8, .3, 1) backwards; }
  .js .pk-edge { stroke-dasharray: 100; animation: draw 2.6s calc(var(--i) * .3s + 1.2s) ease-out backwards; }
  .pk-fog { animation: pk-fog 24s ease-in-out infinite alternate; }
  @keyframes pk-fog { from { transform: translateX(-60px); } to { transform: translateX(80px); } }
  .pk-flap { animation: pk-flap 1.1s ease-in-out infinite alternate; }
  @keyframes pk-flap { from { transform: scaleY(1); } to { transform: scaleY(.55); } }
  .accent-branch .section::before { animation: ridge-drift 90s linear infinite; }
  .accent-branch .section:nth-of-type(even)::before { animation-direction: reverse; animation-duration: 120s; }
  @keyframes ridge-drift { to { -webkit-mask-position: 560px 0; mask-position: 560px 0; } }
  .pf-flag i, .summit-flag i { animation: flag-wave 1.2s ease-in-out infinite alternate; }
  @keyframes flag-wave { from { transform: skewY(-6deg) scaleX(1); } to { transform: skewY(6deg) scaleX(.85); } }
  .js .peaks-facts li { animation: pf-up 1s calc(var(--i) * .14s) var(--ease-pop) backwards; }
  @keyframes pf-up { from { transform: translateY(60px); opacity: 0; } }
}

@media (max-width: 760px) {
  .peaks-facts { flex-wrap: wrap; row-gap: 56px; padding: 0; }
  .peaks-facts li { flex: 1 1 50%; margin: 0; }
  .pf { height: calc(var(--h) * 1.9px); }
  .accent-branch .ladder li { margin-left: 0 !important; }
  .accent-branch .rung { background-position: right 12px bottom; }
  .foot-ridge { height: 90px; }
  .hero-peaks { top: auto; height: 600px; -webkit-mask: linear-gradient(transparent, #000 30%); mask: linear-gradient(transparent, #000 30%); }
  .accent-branch .hero { background: linear-gradient(180deg, #e6e9ff, #fbeedd 55%); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) { .menu a { padding: 8px 8px; font-size: .86rem; } .brand-text small { display: none; } .chip-sister span { display: none; } .chip-sister { width: 42px; padding: 0; justify-content: center; } }
@media (max-width: 1100px) {
  .chip-menu { display: inline-flex; }
  .chip-call span { display: none; }
  .chip-call { width: 42px; padding: 0; justify-content: center; }
  .menu { position: absolute; top: calc(var(--bar-h) + 2px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 4px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(23, 34, 74, .22); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 18px; font-size: 1.05rem; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { justify-items: center; order: 2; }
  .hero-title { justify-items: center; }
  .hero-logo { order: 1; }
  .to-logo { width: min(100%, 440px); }
  .hero-actions { justify-content: center; }
  .about-grid, .contact-grid, .docs-grid, .family-grid { grid-template-columns: 1fr; }
  .about-text { justify-items: center; text-align: center; }
  .clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ribbons { opacity: .35; }
}
@media (max-width: 760px) {
  .leader { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .leader-body { justify-items: center; }
  .portrait { width: 190px; }
  .bands li { margin-left: 0 !important; }
  .rung { grid-template-columns: 1fr auto; grid-template-areas: "age count" "name name" "pick pick"; }
}
@media (max-width: 640px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .clubs { grid-template-columns: 1fr; }
  .form { padding: 46px 20px 28px; }
  .seal { width: 52px; height: 52px; top: 18px; right: 16px; }
  .foot-in { justify-content: center; text-align: center; } .foot-in p { width: 100%; }
  .hall-nav { width: 44px; height: 44px; }
  .photo-btn img { height: clamp(240px, 46vh, 360px); }
  .band { flex-wrap: wrap; min-height: 72px; padding: 12px 18px; gap: 2px 12px; }
  .band-label { flex: 1 1 150px; line-height: 1.3; }
  .band-big { font-size: 2rem; } .band-big .b-sm { font-size: 1.1rem; }
  .band-label { font-size: .9rem; }
  .band-orn { width: 60px; }
  .dict { padding: 30px 22px 24px 34px; }
  .hero-orn { display: none; }
}
@media (max-width: 420px) {
  .top-in { gap: 6px; width: calc(100% - 20px); }
  .brand img { width: 42px; height: 42px; }
  .brand-text strong { font-size: 1.35rem; }
  .chip { min-height: 38px; padding: 0 10px; }
  .chip-menu, .chip-call, .chip-sister { width: 38px; padding: 0; }
}
