/* Royal Kids (ЖК «Шығыс») — логотип: белый пятиугольник с пятью цветными сторонами, золотая корона, надпись Royal Kids.
   Сайт — «маленькое королевство»: радужные пятиугольники летают по первому экрану, факты — самоцветы, группы — короны,
   кружки — пятиугольные значки, основатель-врач — отдельный раздел «Здоровье». Сайт второго сада (Royal Kids 2) — замок, у него свой стиль.
   Шрифты свои (assets/fonts): Nunito (весь текст, казахские буквы есть) и Quicksand (только латинская надпись Royal Kids, как в логотипе). */

@font-face { font-family: "Nunito"; font-weight: 400 1000; font-display: swap; src: url("../assets/fonts/nunitov-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"; font-weight: 400 1000; font-display: swap; src: url("../assets/fonts/nunitov-cyrillic.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 1000; font-display: swap; src: url("../assets/fonts/nunitov-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: "Quicksand"; font-weight: 700; font-display: swap; src: url("../assets/fonts/quicksand-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF; }

:root {
  --violet: #4a1f9e; --violet-2: #6a34d0; --violet-d: #2a1268; --plum: #1d1145;
  --blue: #1530e0; --pink: #ea1aa3; --red: #f5140e; --orange: #ff6a10; --green: #22b814;
  --gold: #f6c443; --gold-d: #a8700c; --gold-l: #fff3b8;
  --ink: #241a4a; --text: #241a4a; --muted: #5d567a; --line: rgba(36, 26, 74, .12);
  --paper: #fffaf2; --cream: #fff4e2; --card: #ffffff; --sky: #eef1ff;
  --accent: var(--violet); --accent-2: var(--pink);
  --rainbow: linear-gradient(90deg, var(--blue) 0 20%, var(--pink) 20% 40%, var(--red) 40% 60%, var(--orange) 60% 80%, var(--green) 80% 100%);
  --rainbow-soft: linear-gradient(90deg, var(--blue), var(--pink), var(--red), var(--orange), var(--green));
  --goldgrad: linear-gradient(180deg, #fff3b8, #f6c443 45%, #d4951a 80%, #a8700c);
  /* имена для общих блоков (галерея, новости, документы, диалоги) */
  --amber: var(--pink); --cocoa: var(--ink); --brown: var(--ink); --head: var(--ink); --night: var(--plum);
  --display: "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Quicksand", "Nunito", sans-serif;
  --bar-h: 76px;
  --ease-pop: cubic-bezier(.3, 1.5, .5, 1);
  --shadow: 0 22px 50px rgba(42, 18, 104, .12);
  --penta: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 500 1.04rem/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(--pink); 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: 1000; font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; color: var(--violet-d); text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 900; font-size: 1.3rem; line-height: 1.25; }
.lede { max-width: 62ch; font-size: 1.08rem; color: var(--muted); text-wrap: pretty; }
.head { display: grid; gap: 14px; margin-bottom: 46px; justify-items: start; }
.head-center { justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--pink) 10%, #fff); font-weight: 900; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; font-size: .92rem; font-weight: 800; color: var(--muted); }
.hint .ico, .hero-hint .ico { color: var(--pink); }

/* ---------- Разделы ---------- */
.section, .foot, .hero { overflow-x: clip; }
.section { position: relative; padding: clamp(76px, 8vw, 116px) 0; }
.sec-white { background: #fff; }
.sec-cream { background: var(--cream); }
.sec-paper { background: var(--paper); }
.sec-sky { background: var(--sky); }
.sec-violet { background: radial-gradient(circle at 20% 30%, var(--violet-2), transparent 60%), linear-gradient(160deg, var(--violet), var(--violet-d)); color: #fff; }
.sec-violet h2 { color: #fff; } .sec-violet .lede { color: rgba(255, 255, 255, .86); }
.sec-violet .kicker { background: rgba(255, 255, 255, .12); color: var(--gold); }
.sec-royal { background: radial-gradient(circle at 90% 10%, rgba(234, 26, 163, .35), transparent 50%), linear-gradient(160deg, var(--plum), var(--violet-d)); color: #fff; }
.sec-royal h2 { color: #fff; } .sec-royal .lede { color: rgba(255, 255, 255, .84); } .sec-royal .kicker { background: rgba(255, 255, 255, .1); color: var(--gold); }
/* между разделами — зубцы короны */
.sec-cream::before, .sec-sky::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 26px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 30%, 95% 100%, 90% 30%, 85% 100%, 80% 30%, 75% 100%, 70% 30%, 65% 100%, 60% 30%, 55% 100%, 50% 30%, 45% 100%, 40% 30%, 35% 100%, 30% 30%, 25% 100%, 20% 30%, 15% 100%, 10% 30%, 5% 100%, 0 30%); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 18px; cursor: pointer; font-family: var(--display); font-weight: 900; font-size: 1.02rem; 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: 14px; }
.btn-main { position: relative; overflow: hidden; background: var(--violet); color: #fff !important; box-shadow: 0 12px 26px rgba(74, 31, 158, .35); }
.btn-main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--rainbow); }
.btn-main::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn-main:hover::before { left: 120%; }
.btn-line { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--line), 0 6px 16px rgba(42, 18, 104, .06); }
.btn-line .ico { color: var(--pink); }

/* ---------- Шапка ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .3s; }
.top.is-stuck { box-shadow: 0 10px 30px rgba(42, 18, 104, .12); }
.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: 54px; height: 54px; transition: transform .5s var(--ease-pop); }
.brand:hover img { transform: rotate(-10deg) scale(1.06); }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-family: var(--logo); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-text strong span:first-child { color: var(--blue); } .brand-text strong span:last-child { color: var(--pink); }
.brand-text small { font-size: .64rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-d); }
.menu { display: flex; gap: 2px; }
.menu a { position: relative; padding: 8px 11px; white-space: nowrap; border-radius: 10px; color: var(--ink); font-weight: 800; font-size: .9rem; text-decoration: none; transition: background .2s; }
.menu a:hover { background: var(--sky); }
.menu a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 10px; height: 10px; background: var(--c, var(--pink)); clip-path: var(--penta); transform: translateX(-50%) scale(0) rotate(-90deg); transition: transform .35s var(--ease-pop); }
.menu a:nth-child(5n+1) { --c: var(--blue); } .menu a:nth-child(5n+2) { --c: var(--pink); } .menu a:nth-child(5n+3) { --c: var(--red); } .menu a:nth-child(5n+4) { --c: var(--orange); } .menu a:nth-child(5n) { --c: var(--green); }
.menu a:hover::after, .menu a.is-active::after { transform: translateX(-50%) scale(1) rotate(0); }
.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: 14px; 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(--violet); color: #fff !important; }
.chip-sister { border-color: color-mix(in srgb, var(--gold) 70%, transparent); background: #fffaf0; }
.chip-sister img { width: 26px; height: 26px; transition: transform .4s var(--ease-pop); }
.chip-sister:hover img { transform: rotate(-12deg) scale(1.2); }
.chip-menu { display: none; width: 42px; padding: 0; justify-content: center; }
.rainbow-bar { height: 5px; background: rgba(36, 26, 74, .06); }
.rainbow-bar i { display: block; width: var(--p, 0%); height: 100%; background: var(--rainbow); background-size: 100vw 100%; }

/* ---------- Первый экран ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: 100svh; padding: calc(var(--bar-h) + 40px) 0 110px; background: radial-gradient(ellipse at 75% 45%, #fff 0, transparent 55%), radial-gradient(circle at 10% 90%, rgba(234, 26, 163, .12), transparent 40%), radial-gradient(circle at 95% 5%, rgba(21, 48, 224, .1), transparent 40%), var(--paper); }
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.fly-penta { position: absolute; display: block; rotate: var(--r); opacity: .55; }
.fly-penta svg { width: 100%; height: auto; }
.spark { position: absolute; width: 14px; height: 14px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); 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: 999px; background: #fff; box-shadow: 0 6px 18px rgba(42, 18, 104, .08); font-weight: 800; font-size: .86rem; color: var(--ink); }
.eyebrow .ico { color: var(--pink); }
.hero-title { display: grid; gap: 0; justify-items: start; }
.ht-word { display: flex; font-family: var(--logo); font-weight: 700; font-size: clamp(4rem, 2.2rem + 6.4vw, 8rem); line-height: .98; letter-spacing: -.02em; white-space: nowrap; }
.ht-l { display: inline-block; color: var(--c); text-shadow: 0 5px 0 rgba(36, 26, 74, .08); cursor: default; }
.ht-gap { display: inline-block; width: .28em; }
.ht-kicker { margin-top: 2px; font-weight: 1000; font-size: clamp(1rem, .8rem + .7vw, 1.4rem); letter-spacing: .34em; text-transform: uppercase; color: var(--gold-d); }
.hero-tag { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.25; color: var(--violet-d); }
.tag-crown { width: 54px; flex: none; }
.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: 999px; background: rgba(255, 255, 255, .85); font-weight: 800; font-size: .9rem; }
.hero-logo { position: relative; display: grid; place-items: center; }
.logo-rays { position: absolute; inset: -6%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(246, 196, 67, .22) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%); mask: radial-gradient(circle, #000 35%, transparent 70%); }
.logo-halo { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle, #fff 55%, rgba(255, 255, 255, 0) 72%); }
.rk-logo { position: relative; width: min(100%, 520px); height: auto; overflow: visible; -webkit-tap-highlight-color: transparent; filter: drop-shadow(0 26px 40px rgba(42, 18, 104, .18)); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; }
.hero-wave svg { width: 100%; height: 60px; }

/* ---------- ЛОГОТИП: части (assets/logo/royal.svg) ---------- */
.rk-side { cursor: pointer; transition: stroke-width .3s; }
.rk-side:hover, .rk-side.lit { stroke-width: 40; }
.rk-crown, .rk-l, .rk-ball, .rk-gem, .rk-glint { transform-box: fill-box; transform-origin: center; }
.rk-crown { cursor: pointer; transform-origin: 50% 100%; }
.rk-l { cursor: pointer; transform-origin: 50% 100%; }
.rk-glint { opacity: 0; }

/* ---------- О нас: текст, шкатулка с короной, самоцветы-факты ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.about-grid .head { margin-bottom: 0; }
.place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 18px; border-radius: 16px; background: var(--sky); font-weight: 800; }
.place .ico { color: var(--pink); }
.place a { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; text-decoration: none; }
.jewel-logo { position: relative; aspect-ratio: 1; width: min(100%, 340px); margin-inline: auto; }
.jl-ring { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, #fff 40%, var(--cream) 41% 60%, transparent 61%); box-shadow: 0 0 0 10px #fff, var(--shadow); }
.jl-penta { position: absolute; inset: 0; width: 100%; height: 100%; }
.jl-penta path { stroke-width: 2.2; }
.jl-b { inset: 16%; width: 68%; height: 68%; rotate: 36deg; }
.jl-crown { position: absolute; left: 50%; top: 50%; width: 46%; translate: -50% -50%; filter: drop-shadow(0 10px 12px rgba(168, 112, 12, .35)); }
.gems-wrap { margin-top: 66px; }
.gems-title { margin-bottom: 26px; text-align: center; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); color: var(--violet-d); }
.gems { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.gem-btn { position: relative; display: grid; justify-items: center; gap: 4px; width: 100%; height: 100%; padding: 22px 12px 20px; border: 0; border-radius: 26px; background: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 18%, transparent), var(--shadow); cursor: pointer; text-align: center; transition: transform .35s var(--ease-pop), box-shadow .35s; -webkit-tap-highlight-color: transparent; }
.gem-btn:hover { transform: translateY(-6px); }
.gem-stone { position: relative; display: block; width: 74px; margin-bottom: 8px; }
.gem-stone .gem { width: 100%; height: auto; filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--c) 40%, transparent)); transition: transform .5s var(--ease-pop); }
.gem-flare { position: absolute; left: 22%; top: 14%; width: 26px; height: 26px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; }
.gem-big b { display: block; font-weight: 1000; font-size: 2.3rem; line-height: 1; color: var(--c); }
.gem-big .b-sm { font-size: 1.25rem; line-height: 1.2; }
.gem-label { font-weight: 800; font-size: .88rem; color: var(--muted); }
.gem-btn.shine { box-shadow: 0 0 0 3px var(--c), 0 0 40px color-mix(in srgb, var(--c) 45%, transparent), var(--shadow); }
.gem-btn.shine .gem { transform: rotate(-8deg) scale(1.12); }

/* ---------- Здоровье: основатель — врач ---------- */
.health-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.health-text { display: grid; gap: 16px; justify-items: start; }
.doc-badge { position: relative; width: min(100%, 380px); margin-inline: auto; }
.db-svg { width: 100%; height: auto; overflow: visible; }
.db-ring { fill: rgba(255, 255, 255, .06); stroke: var(--gold); stroke-width: 4; stroke-dasharray: 2 3; }
.db-heart { fill: var(--pink); stroke: #fff; stroke-width: 6; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.db-cross { fill: #fff; transform-box: fill-box; transform-origin: center; }
.db-pulse { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.db-crown { position: absolute; left: 50%; top: -2%; width: 34%; translate: -50% 0; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.specs { display: flex; flex-wrap: wrap; gap: 10px; }
.specs li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--goldgrad); color: var(--plum); font-weight: 1000; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.care { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; margin-top: 8px; }
.care li { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.care-ico { display: grid; place-items: center; width: 54px; height: 54px; background: var(--c); clip-path: var(--penta); color: #fff; }
.care-ico svg { width: 28px; height: 28px; }
.care-ico .extra-ico { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.care strong { font-size: 1.12rem; color: #fff; }
.care span:last-child { font-size: .94rem; color: rgba(255, 255, 255, .84); line-height: 1.5; }

/* ---------- Группы: короны растут с возрастом ---------- */
.crowns { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(20px, 4vw, 50px); }
.crowns li { flex: 1 1 300px; max-width: 440px; }
.crown-card { position: relative; display: grid; justify-items: center; gap: 8px; width: 100%; padding: 26px 26px 30px; border: 0; border-radius: 34px; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent), var(--shadow); text-align: center; cursor: pointer; transition: transform .35s var(--ease-pop), box-shadow .35s; -webkit-tap-highlight-color: transparent; }
.crown-card:hover { transform: translateY(-8px); }
.crown-card.picked { box-shadow: 0 0 0 4px var(--c), var(--shadow); }
.cc-crown { display: block; width: calc(220px * var(--s)); margin-bottom: 4px; transform-origin: 50% 100%; }
.cc-crown svg { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(168, 112, 12, .35)); }
.cc-age { padding: 4px 16px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 1000; font-size: 1.3rem; }
.cc-name { font-size: 1.5rem; color: var(--violet-d); }
.cc-text { color: var(--muted); }
.cc-pick { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 900; color: var(--violet); }

/* ---------- Кружки: пятиугольные значки ---------- */
.clubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.club { position: relative; }
.club-open { display: grid; justify-items: center; gap: 12px; width: 100%; height: 100%; padding: 28px 18px 24px; border: 0; border-radius: 28px; background: #fff; box-shadow: inset 0 -6px 0 var(--c), var(--shadow); text-align: center; cursor: pointer; transition: transform .35s var(--ease-pop); -webkit-tap-highlight-color: transparent; }
.club-open:hover { transform: translateY(-8px) rotate(-1deg); }
.club-media { display: grid; place-items: center; width: 108px; height: 104px; background: var(--c); clip-path: var(--penta); }
.club-media img { width: 100%; height: 100%; object-fit: cover; }
.club-ico { display: grid; place-items: center; width: 60px; height: 60px; margin-top: 8px; color: #fff; }
.club-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.club-body { display: grid; gap: 6px; justify-items: center; }
.club-title { font-size: 1.15rem; color: var(--violet-d); line-height: 1.25; }
.club-badge { padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-weight: 900; font-size: .78rem; }
.club-badge.is-paid { background: var(--gold-l); color: var(--gold-d); }
.club-meta { font-size: .84rem; font-weight: 800; color: var(--muted); }
.club-text { font-size: .94rem; color: var(--muted); line-height: 1.5; }
.story-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: var(--violet); }

/* ---------- Основатель ---------- */
.leaders { display: grid; gap: 30px; }
.leader { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; max-width: 880px; margin: 0 auto; padding: 40px clamp(24px, 4vw, 46px); border-radius: 34px; background: #fff; box-shadow: var(--shadow); }
.portrait { position: relative; width: 220px; aspect-ratio: 1; margin: 30px auto 0; }
.portrait-crown { position: absolute; left: 50%; top: -58px; z-index: 2; width: 120px; translate: -50% 0; filter: drop-shadow(0 8px 10px rgba(168, 112, 12, .35)); }
.portrait-in { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 8px #fff, 0 0 0 16px var(--gold), 0 0 0 19px var(--gold-d); }
.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: 1000; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pink); }
.leader-body h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); color: var(--violet-d); }
.leader-edu span { display: block; font-weight: 1000; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.leader-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.leader-tags li { padding: 6px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-weight: 900; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 30%, transparent); }
.leader-about { color: var(--muted); }
.leader-years { display: inline-flex; align-items: baseline; gap: 8px; }
.leader-years strong { font-size: 2.4rem; color: var(--violet); }

/* ---------- Два сада: два дворца и дорога с короной ---------- */
.realm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .7fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.palace { position: relative; display: grid; gap: 6px; justify-items: center; padding: 30px 24px 28px; border-radius: 32px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.palace-me { box-shadow: inset 0 0 0 3px var(--violet), var(--shadow); }
.palace-sister { box-shadow: inset 0 0 0 3px var(--gold), var(--shadow); }
.palace-tag { position: absolute; top: -16px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 900; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.palace-logo { display: block; width: 150px; margin-bottom: 6px; }
.palace-logo img { width: 100%; height: auto; transition: transform .5s var(--ease-pop); }
.palace:hover .palace-logo img { transform: rotate(-6deg) scale(1.06); }
.palace h3 { font-family: var(--logo); font-size: 1.6rem; color: var(--violet-d); }
.palace-place { font-weight: 900; color: var(--pink); }
.palace-line { color: var(--muted); font-size: .95rem; }
.palace-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.realm-road { display: grid; gap: 8px; justify-items: center; }
.road-svg { width: 100%; height: auto; overflow: visible; }
.road { fill: none; stroke: #fff; stroke-width: 16; stroke-linecap: round; }
.road-dash { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; }
.road-hint { font-size: .82rem; font-weight: 800; color: var(--muted); text-align: center; }

/* спрятанные маленькие короны (пасхалка) */
.mini-crown { position: absolute; z-index: 4; width: 38px; margin: -16px 0 0 -19px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .7; rotate: -14deg; -webkit-tap-highlight-color: transparent; }
.mini-crown svg { width: 100%; height: auto; }
.mini-crown.got { pointer-events: none; }

/* ---------- Фото ---------- */
.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; }

/* ---------- Общие блоки: в палитре Royal Kids ---------- */
.tab { border: 2px solid var(--line); background: #fff; color: var(--ink); }
.tab.is-on { background: var(--violet); color: #fff; border-color: var(--violet); }
.photo-btn { border-color: #fff; outline: 0; box-shadow: 0 24px 46px rgba(42, 18, 104, .18), 0 0 0 3px var(--gold); }
.photo-btn figcaption { font-family: var(--display); font-weight: 800; }
.hall-nav { background: var(--violet); color: #fff; border: 0; box-shadow: 0 10px 24px rgba(42, 18, 104, .25); }
.story, .doc-set, .jobs { border: 0; box-shadow: var(--shadow); }
.story-title { font-family: var(--display); font-weight: 900; }
.story-img { background: var(--sky); }
.jobs { background: linear-gradient(160deg, var(--violet), var(--violet-d)); }
.jobs h3 { color: var(--gold); }
.toast { border: 0; box-shadow: 0 18px 44px rgba(42, 18, 104, .3), inset 0 -5px 0 var(--pink); color: var(--ink); }
.toast b { color: var(--violet); }
.toast .t-coin { border: 0; border-radius: 0; background: var(--goldgrad); clip-path: var(--penta); box-shadow: none; }
.news-dialog { border: 0; color: var(--ink); }
.nd-body time { color: var(--pink); }
.nd-body h3 { font-weight: 900; color: var(--violet-d); }
.nd-close { border: 0; background: var(--violet); color: #fff; }
.lb-close, .lb-nav { border: 0; }

/* ---------- Контакты ---------- */
.contact-crown { position: absolute; right: 4%; top: 40px; width: 150px; opacity: .14; rotate: 14deg; pointer-events: none; }
.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-weight: 1000; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); color: #fff !important; text-decoration: none; }
.contact-phone .ico { width: 48px; height: 48px; padding: 12px; background: var(--goldgrad); clip-path: var(--penta); color: var(--plum); }
.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(--gold); }
.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: 14px; 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: 32px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); overflow: hidden; }
.form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--rainbow); }
.seal { position: absolute; top: 22px; right: 24px; width: 70px; height: 70px; }
.seal img { width: 100%; height: 100%; }
.form h3 { font-size: 2rem; color: var(--violet-d); }
.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 #e6e2f2; border-radius: 16px; background: #fcfbff; 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='%23241a4a' 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(--gold); box-shadow: 0 0 0 6px rgba(246, 196, 67, .4); } }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 5px rgba(74, 31, 158, .14); }
.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(--violet); }
.form .btn { width: 100%; margin-top: 20px; }
.form-note { margin-top: 10px; font-weight: 900; color: #12803a; 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: var(--plum); color: #e4def6; }
.foot-rainbow { display: grid; grid-template-columns: repeat(5, 1fr); height: 14px; }
.foot-rainbow i { background: var(--c); }
.parade { position: relative; height: 0; }
.foot-in-top { display: grid; gap: 18px; justify-items: center; padding: 46px 0 10px; text-align: center; }
.foot-bye { font-weight: 1000; 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: 18px; 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); }
.foot-sister img { width: 34px; height: 34px; }
.eggs { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 10px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); font-weight: 700; font-size: .88rem; }
.eggs-dots { display: inline-flex; gap: 6px; }
.eggs-dots i { display: block; width: 24px; color: rgba(255, 255, 255, .16); transition: color .4s, transform .5s var(--ease-pop); }
.eggs-dots i svg { width: 100%; height: auto; }
.eggs-dots i.on { color: var(--c); transform: scale(1.2) rotate(-8deg); }
.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; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold) !important; font-weight: 900; text-decoration: none; }

/* ---------- Летящее ---------- */
.sky-layer { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.confetti { position: fixed; left: 0; top: 0; z-index: 74; width: 14px; height: 14px; clip-path: var(--penta); pointer-events: none; }
.fx-crown { position: absolute; left: 0; top: 0; width: 70px; height: auto; }
.march { position: fixed; bottom: 10px; left: 0; z-index: 75; width: 64px; pointer-events: none; }
.march svg { width: 100%; height: auto; }

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

  .fly-penta { animation: penta-float calc(10s + var(--i) * 1.3s) ease-in-out infinite alternate; }
  .fly-penta svg { animation: penta-spin calc(24s + var(--i) * 4s) linear infinite; }
  @keyframes penta-float { to { transform: translate(18px, -34px); } }
  @keyframes penta-spin { to { transform: rotate(360deg); } }
  .spark { animation: twinkle 3.2s calc(var(--i) * .37s) ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: .9; transform: scale(1) rotate(90deg); } }
  .logo-rays { animation: rays 40s linear infinite; }
  @keyframes rays { to { transform: rotate(360deg); } }

  .js .eyebrow, .js .hero-tag, .js .hero-lead, .js .hero-actions, .js .hero-hint, .js .ht-kicker { animation: rise .8s var(--ease-pop) both; }
  .js .eyebrow { animation-delay: .1s; } .js .ht-kicker { animation-delay: 1.3s; } .js .hero-tag { animation-delay: 1.45s; } .js .hero-lead { animation-delay: 1.6s; } .js .hero-actions { animation-delay: 1.75s; } .js .hero-hint { animation-delay: 1.9s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  .js .ht-l { animation: letter-in .8s calc(var(--i) * .08s + .25s) var(--ease-pop) both, letter-hop 6s calc(var(--i) * .12s + 3s) ease-in-out infinite; }
  @keyframes letter-in { from { opacity: 0; transform: translateY(-90px) rotate(-20deg) scale(.4); } }
  @keyframes letter-hop { 0%, 12%, 100% { transform: none; } 6% { transform: translateY(-14px) rotate(-4deg); } }
  .tag-crown { animation: crown-tilt 3s ease-in-out infinite alternate; transform-origin: 50% 100%; }
  @keyframes crown-tilt { from { rotate: -8deg; } to { rotate: 8deg; } }

  /* логотип: вступление — стороны рисуются по очереди, корона опускается, буквы запрыгивают */
  .js .is-intro .rk-fill { animation: fill-in .7s var(--ease-pop) both; transform-box: fill-box; transform-origin: center; }
  @keyframes fill-in { from { transform: scale(.4); opacity: 0; } }
  .js .is-intro .rk-side { stroke-dasharray: 100; animation: draw .5s calc(var(--i) * .16s + .3s) cubic-bezier(.5, 0, .3, 1) both; }
  @keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
  .js .is-intro .rk-crown { animation: crown-drop 1s 1.1s cubic-bezier(.3, 1.4, .5, 1) both; }
  @keyframes crown-drop { from { opacity: 0; transform: translateY(-260px) rotate(-25deg); } }
  .js .is-intro .rk-l { animation: l-in .55s calc(var(--i) * 70ms + 1.6s) var(--ease-pop) both; }
  @keyframes l-in { from { opacity: 0; transform: translateY(60px) scale(.2); } }
  .js .is-intro .rk-gem, .js .is-intro .rk-ball { animation: pop-in .5s calc(var(--i) * 90ms + 2s) var(--ease-pop) both; }
  @keyframes pop-in { from { transform: scale(0); } }
  /* логотип: живые части */
  .rk-glint { animation: glint 5s 3s ease-in-out infinite; }
  @keyframes glint { 0%, 70%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 80% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
  .rk-gem { animation: gem-blink 4s calc(var(--i) * .5s + 3s) ease-in-out infinite; }
  @keyframes gem-blink { 0%, 80%, 100% { filter: none; } 88% { filter: brightness(1.6); } }
  .rk-ball { animation: ball-bob 3s calc(var(--i) * .2s + 3s) ease-in-out infinite; }
  @keyframes ball-bob { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-14px); } }
  .rk-crown.spin { animation: crown-spin 1.1s var(--ease-pop); }
  @keyframes crown-spin { 40% { transform: translateY(-60px) rotate(-12deg) scale(1.1); } 70% { transform: translateY(-20px) rotate(8deg); } }
  .rk-crown.tap { animation: crown-tap .45s var(--ease-pop); }
  @keyframes crown-tap { 40% { transform: translateY(-18px) rotate(-5deg); } }
  .rk-l.hop { animation: l-hop .6s var(--ease-pop); }
  @keyframes l-hop { 40% { transform: translateY(-50px) rotate(-10deg) scale(1.15); } }
  .rk-side.lit { animation: side-lit .6s ease; }
  @keyframes side-lit { 40% { filter: brightness(1.4) drop-shadow(0 0 8px currentColor); } }

  /* разделы */
  .jl-a { animation: penta-spin 30s linear infinite; }
  .jl-b { animation: penta-spin 22s linear infinite reverse; }
  .jl-crown { animation: crown-hover 3.4s ease-in-out infinite alternate; }
  @keyframes crown-hover { to { transform: translateY(-12px) rotate(4deg); } }
  .gem-stone .gem { animation: gem-sway 4s calc(var(--i) * .3s) ease-in-out infinite alternate; }
  @keyframes gem-sway { from { rotate: -6deg; } to { rotate: 6deg; } }
  .gem-btn.shine .gem-flare { animation: flare .9s ease-out; }
  @keyframes flare { 30% { opacity: 1; transform: scale(1.4) rotate(45deg); } 100% { opacity: 0; transform: scale(.2) rotate(90deg); } }
  .js .db-pulse { animation: pulse-run 2.6s linear infinite; }
  @keyframes pulse-run { 0% { stroke-dashoffset: 100; } 60%, 100% { stroke-dashoffset: 0; } }
  .db-heart { animation: heartbeat 1.3s ease-in-out infinite; }
  .db-cross { animation: heartbeat 1.3s ease-in-out infinite; }
  @keyframes heartbeat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } 25% { transform: scale(.98); } }
  .db-crown { animation: crown-hover 3s ease-in-out infinite alternate; }
  .db-ring { animation: ring-turn 40s linear infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes ring-turn { to { transform: rotate(360deg); } }
  .specs li { animation: rise .6s calc(var(--i) * .12s) var(--ease-pop) both; }
  .cc-crown { animation: crown-tilt 3.4s calc(var(--i) * .5s) ease-in-out infinite alternate; }
  .crown-card.picked .cc-crown { animation: crown-spin 1s var(--ease-pop); }
  .club.played .club-media { animation: boing .6s var(--ease-pop); }
  @keyframes boing { 40% { transform: scale(1.15) rotate(-10deg); } 70% { transform: scale(.95) rotate(5deg); } }
  .road-dash { animation: dash-run 1.4s linear infinite; }
  @keyframes dash-run { to { stroke-dashoffset: -28; } }
  .mini-crown { animation: mc-bob 2.6s ease-in-out infinite alternate; }
  @keyframes mc-bob { to { transform: translateY(-6px) rotate(18deg); } }
  .mini-crown.got { animation: mc-got .9s var(--ease-pop) forwards; }
  @keyframes mc-got { 40% { transform: translateY(-60px) scale(1.8) rotate(-30deg); opacity: 1; } 100% { transform: translateY(-120px) scale(.3) rotate(40deg); opacity: 0; } }
  .contact-crown { animation: crown-hover 5s ease-in-out infinite alternate; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1400px) { .menu a { padding: 8px 7px; font-size: .84rem; } .brand-text small { display: none; } .chip-sister span { display: none; } .chip-sister { width: 42px; padding: 0; justify-content: center; } }
@media (max-width: 1320px) {
  .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: 24px; background: #fff; box-shadow: 0 24px 60px rgba(42, 18, 104, .22); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 18px; font-size: 1.05rem; }
  .menu a::after { left: auto; right: 18px; bottom: 50%; transform: translateY(50%) scale(0); }
  .menu a:hover::after, .menu a.is-active::after { transform: translateY(50%) scale(1); }
}
@media (max-width: 1120px) {
  .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-tag { justify-content: center; }
  .hero-logo { order: 1; }
  .rk-logo { width: min(100%, 420px); }
  .hero-actions { justify-content: center; }
  .about-grid, .contact-grid, .docs-grid, .health-grid { grid-template-columns: 1fr; }
  .about-grid .head { justify-items: center; text-align: center; }
  .jewel-logo { width: min(70%, 280px); }
  .gems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .health-text { justify-items: center; text-align: center; }
  .specs { justify-content: center; }
  .doc-badge { width: min(80%, 320px); }
  .realm { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .road-svg { width: 180px; rotate: 90deg; margin: 34px 0 40px; }
  .rc-in { rotate: -90deg; }
}
@media (max-width: 760px) {
  .leader { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .leader-body { justify-items: center; }
  .leader-tags { justify-content: center; }
  .portrait { width: 190px; }
  .care { grid-template-columns: 1fr; text-align: left; }
  .care li { grid-template-columns: 54px minmax(0, 1fr); column-gap: 14px; }
  .care-ico { grid-row: span 2; }
  .gems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gems li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .hero { padding-bottom: 80px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .ht-word { font-size: clamp(3.2rem, 1.6rem + 8vw, 4.4rem); }
  .tag-crown { width: 40px; }
  .form { padding: 46px 20px 28px; }
  .seal { width: 54px; height: 54px; 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); }
  .fly-penta:nth-child(n+5) { display: none; }
  .gem-big b { font-size: 2rem; }
  .gem-big .b-sm { font-size: 1.1rem; }
  .contact-crown { display: none; }
  .clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .club-open { padding: 22px 12px 20px; }
  .club-media { width: 88px; height: 84px; }
  .club-ico { width: 48px; height: 48px; }
}
@media (max-width: 420px) {
  .top-in { gap: 6px; width: calc(100% - 20px); }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.25rem; }
  .chip { min-height: 38px; padding: 0 10px; }
  .chip-menu, .chip-call, .chip-sister { width: 38px; padding: 0; }
  .chip-sister img { width: 22px; height: 22px; }
}
