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

@font-face { font-family: "Kurale"; font-weight: 400; font-display: swap; src: url("../assets/fonts/kurale-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: "Kurale"; font-weight: 400; font-display: swap; src: url("../assets/fonts/kurale-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Kurale"; font-weight: 400; font-display: swap; src: url("../assets/fonts/kurale-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: "Fira Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/fira-cyrillic-ext-400.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/fira-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/fira-latin-400.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: "Fira Sans"; font-weight: 600; font-display: swap; src: url("../assets/fonts/fira-cyrillic-ext-600.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: "Fira Sans"; font-weight: 600; font-display: swap; src: url("../assets/fonts/fira-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-display: swap; src: url("../assets/fonts/fira-latin-600.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: "Fira Sans"; font-weight: 800; font-display: swap; src: url("../assets/fonts/fira-cyrillic-ext-800.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Fira Sans"; font-weight: 800; font-display: swap; src: url("../assets/fonts/fira-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-weight: 800; font-display: swap; src: url("../assets/fonts/fira-latin-800.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 {
  --navy: #1d2a6b; --navy-d: #121a48; --royal: #2b3fbf; --royal-2: #3a55e0;
  --cblue: #0aa2d8; --cpink: #e02a8c; --cgreen: #12a04a; --cpurple: #8e28c8; --corange: #f37a1c; --cred: #e0284a; --cyellow: #f5c518;
  --gold: #f6c443; --gold-d: #a8700c; --gold-l: #fff3b8;
  --ink: #2a2440; --text: #2a2440; --muted: #5f5a72; --line: rgba(42, 36, 64, .14);
  --parch: #fbf1d9; --parch-d: #ecd9ae; --meadow: #f3faee; --sky: #e6f5ff; --card: #ffffff; --stone: #d9cfbd; --brick: #b9653b;
  --accent: var(--royal); --accent-2: var(--cpink);
  --flags: linear-gradient(90deg, var(--cblue) 0 14.3%, var(--cpink) 14.3% 28.6%, var(--cgreen) 28.6% 42.9%, var(--cpurple) 42.9% 57.2%, var(--corange) 57.2% 71.5%, var(--cred) 71.5% 85.8%, var(--cyellow) 85.8%);
  --goldgrad: linear-gradient(180deg, #fff3b8, #f6c443 45%, #d4951a 80%, #a8700c);
  --amber: var(--cpink); --cocoa: var(--ink); --brown: var(--ink); --head: var(--navy); --night: var(--navy-d);
  --display: "Kurale", Georgia, serif;
  --body: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Quicksand", "Fira Sans", sans-serif;
  --bar-h: 76px;
  --ease-pop: cubic-bezier(.3, 1.5, .5, 1);
  --shadow: 0 22px 50px rgba(29, 42, 107, .14);
  --shield: polygon(50% 0, 100% 12%, 100% 52%, 88% 78%, 50% 100%, 12% 78%, 0 52%, 0 12%);
  --merlons: linear-gradient(90deg, #000 0 60%, transparent 60% 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--meadow); color: var(--text); font: 400 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; }
b, strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--cpink); outline-offset: 3px; border-radius: 8px; }
[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: 10px; 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: 400; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem); line-height: 1.08; color: var(--navy); text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.lede { max-width: 62ch; font-size: 1.08rem; color: var(--muted); text-wrap: pretty; }
.head { display: grid; gap: 14px; margin-bottom: 48px; }
.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: 800; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cpink); }
.kicker::before, .kicker::after { content: ""; width: 26px; height: 2px; background: currentColor; opacity: .5; }
.hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.hint .ico, .hero-hint .ico { color: var(--cpink); }

/* ---------- Разделы ---------- */
.section, .foot, .hero { overflow-x: clip; }
.section { position: relative; padding: clamp(80px, 8vw, 120px) 0; }
.sec-meadow { background: var(--meadow); }
.sec-sky { background: linear-gradient(180deg, var(--sky), #f7fcff); }
.sec-royal { background: radial-gradient(circle at 15% 20%, rgba(224, 42, 140, .25), transparent 45%), linear-gradient(160deg, var(--royal), var(--navy-d)); color: #fff; }
.sec-royal h2 { color: #fff; } .sec-royal .lede { color: rgba(255, 255, 255, .86); } .sec-royal .kicker { color: var(--gold); }
.sec-night { background: linear-gradient(180deg, var(--navy-d), #2b1a5e 70%, #3b1d6b); color: #fff; }
.sec-night h2 { color: #fff; } .sec-night .lede { color: rgba(255, 255, 255, .84); } .sec-night .kicker { color: var(--gold); }
/* зубцы крепостной стены сверху у цветных разделов */
.sec-royal::before, .sec-night::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px; background: var(--meadow); -webkit-mask: linear-gradient(#000 0 0) top / 100% 6px no-repeat, var(--merlons) 0 0 / 56px 100% repeat-x; mask: linear-gradient(#000 0 0) top / 100% 6px no-repeat, var(--merlons) 0 0 / 56px 100% repeat-x; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 14px; cursor: pointer; font-family: var(--body); font-weight: 800; 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; background: var(--royal); color: #fff !important; box-shadow: 0 6px 0 var(--navy-d), 0 14px 26px rgba(29, 42, 107, .3); }
.btn-main:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy-d); }
.btn-line { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--line), 0 6px 16px rgba(29, 42, 107, .08); }
.btn-line .ico { color: var(--cpink); }

/* ---------- Шапка: зубцы снизу и верёвка с флажком (прокрутка) ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: #fffdf7; transition: box-shadow .3s; filter: drop-shadow(0 0 0 transparent); }
.top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: #fffdf7; -webkit-mask: var(--merlons) 0 0 / 40px 100% repeat-x; mask: var(--merlons) 0 0 / 40px 100% repeat-x; }
.top.is-stuck { filter: drop-shadow(0 8px 14px rgba(29, 42, 107, .14)); }
.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: 56px; height: 56px; transition: transform .5s var(--ease-pop); }
.brand:hover img { transform: translateY(-4px) rotate(-6deg); }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-family: var(--logo); font-weight: 700; font-size: 1.45rem; color: var(--navy); white-space: nowrap; }
.brand-text em { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-left: 2px; border-radius: 50%; background: var(--goldgrad); color: #7a4d00; font-style: normal; font-size: .85em; vertical-align: 2px; }
.brand-text small { font-size: .64rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--cpink); }
.menu { display: flex; gap: 2px; }
.menu a { position: relative; padding: 8px 11px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .92rem; white-space: nowrap; text-decoration: none; transition: background .2s, color .2s; }
.menu a:hover { background: var(--sky); }
.menu a::before { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 14px; background: var(--c, var(--cpink)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); transform: translateX(-50%) scaleY(0); transform-origin: top; transition: transform .35s var(--ease-pop); }
.menu a:nth-child(7n+1) { --c: var(--cblue); } .menu a:nth-child(7n+2) { --c: var(--cpink); } .menu a:nth-child(7n+3) { --c: var(--cgreen); } .menu a:nth-child(7n+4) { --c: var(--cpurple); } .menu a:nth-child(7n+5) { --c: var(--corange); } .menu a:nth-child(7n+6) { --c: var(--cred); } .menu a:nth-child(7n) { --c: var(--cyellow); }
.menu a:hover::before, .menu a.is-active::before { transform: translateX(-50%) scaleY(1); }
.menu a.is-active { color: var(--royal); }
.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: 800; font-size: .84rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip-call { border-color: transparent; background: var(--royal); color: #fff !important; }
.chip-sister { border-color: color-mix(in srgb, var(--cpink) 40%, transparent); }
.chip-sister img { width: 26px; height: 26px; transition: transform .4s var(--ease-pop); }
.chip-sister:hover img { transform: rotate(14deg) scale(1.2); }
.chip-menu { display: none; width: 42px; padding: 0; justify-content: center; }
.rope { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 2; height: 3px; background: repeating-linear-gradient(90deg, #c9a15a 0 6px, #a77b33 6px 12px); opacity: .45; }
.rope-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--flags); background-size: 100vw 100%; }
.rope-flag { position: absolute; top: 3px; left: var(--p, 0%); width: 14px; height: 16px; translate: -2px 0; background: var(--cpink); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); }
.rope { opacity: 1; }

/* ---------- Первый экран: небо, солнце, облака, гирлянда флажков ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: 100svh; padding: calc(var(--bar-h) + 100px) 0 150px; background: linear-gradient(180deg, #7cc8f5 0%, #b9e3fb 45%, #e6f5ff 80%, var(--meadow) 100%); cursor: crosshair; }
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sun { position: absolute; right: 8%; top: 16%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #fff7c2, #ffd84a 60%, #ffb21a); box-shadow: 0 0 60px 20px rgba(255, 216, 74, .45); }
.sun i { position: absolute; inset: -40px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 216, 74, .35) 0 8deg, transparent 8deg 24deg); -webkit-mask: radial-gradient(circle, transparent 50%, #000 52%, transparent 72%); mask: radial-gradient(circle, transparent 50%, #000 52%, transparent 72%); }
.cloud { position: absolute; width: 180px; height: 56px; border-radius: 60px; background: #fff; opacity: .92; filter: drop-shadow(0 10px 10px rgba(29, 42, 107, .08)); }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.cloud::before { left: 26px; top: -34px; width: 74px; height: 74px; }
.cloud::after { left: 82px; top: -50px; width: 90px; height: 90px; }
.cl-1 { left: 4%; top: 22%; } .cl-2 { left: 38%; top: 12%; scale: .7; } .cl-3 { left: 66%; top: 62%; scale: .8; opacity: .8; } .cl-4 { left: 18%; top: 72%; scale: .6; opacity: .7; }
.bird { position: absolute; width: 26px; height: 10px; border: 3px solid #2a2440; border-color: #2a2440 transparent transparent; border-radius: 50% 50% 0 0; opacity: .55; }
.bird::after { content: ""; position: absolute; left: 100%; top: -3px; width: 26px; height: 10px; border: 3px solid #2a2440; border-color: #2a2440 transparent transparent; border-radius: 50% 50% 0 0; }
.b-1 { left: 30%; top: 30%; } .b-2 { left: 56%; top: 24%; scale: .7; }
.garland { position: absolute; left: 0; right: 0; top: calc(var(--bar-h) + 8px); z-index: 3; height: 140px; pointer-events: none; }
.garland svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pn { position: absolute; width: 34px; height: 44px; margin-left: -17px; padding: 0; border: 0; background: var(--c); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.pn::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: rgba(255, 255, 255, .45); }
.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: 16px; justify-items: start; cursor: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 18px rgba(29, 42, 107, .1); font-weight: 600; font-size: .86rem; color: var(--ink); }
.eyebrow .ico { color: var(--cpink); }
.hero-title { display: grid; justify-items: start; }
.ht-word { display: flex; align-items: center; font-family: var(--logo); font-weight: 700; font-size: clamp(3.6rem, 2rem + 5.6vw, 7rem); line-height: 1; white-space: nowrap; }
.ht-l { display: inline-block; color: var(--c); -webkit-text-stroke: 3px #fff; paint-order: stroke fill; text-shadow: 0 6px 0 rgba(29, 42, 107, .12); }
.ht-gap { display: inline-block; width: .26em; }
.ht-two { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; margin-left: .14em; border-radius: 50%; background: var(--goldgrad); color: #7a4d00; font-size: .8em; box-shadow: 0 0 0 5px #fff, 0 12px 24px rgba(168, 112, 12, .35); }
.ht-kicker { margin-top: 6px; padding: 4px 18px; border-radius: 8px; background: var(--navy); color: #fff; font-family: var(--display); font-size: clamp(1rem, .8rem + .6vw, 1.3rem); letter-spacing: .14em; }
.hero-tag { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.2; color: var(--navy); }
.hero-lead { max-width: 52ch; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .72); font-size: 1.04rem; color: var(--ink); }
.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: 600; font-size: .9rem; }
.hero-logo { position: relative; display: grid; place-items: center; cursor: auto; }
.logo-glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); }
.r2-logo { position: relative; width: min(100%, 500px); height: auto; overflow: visible; filter: drop-shadow(0 26px 40px rgba(29, 42, 107, .22)); -webkit-tap-highlight-color: transparent; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; pointer-events: none; }
.hills svg { width: 100%; height: clamp(90px, 12vw, 160px); }
.hill-back { fill: #9fdc8a; } .hill-front { fill: var(--meadow); }

/* ---------- ЛОГОТИП: части (assets/logo/royal2.svg) ---------- */
.r2-gate { cursor: pointer; }
.r2-door { transform-box: fill-box; transform-origin: 0 50%; transition: transform .8s cubic-bezier(.5, 0, .3, 1); }
.r2-logo.open .r2-door { transform: scaleX(.08); }
.r2-flag, .r2-tower, .r2-cloud, .r2-two, .rk-crown, .rk-l, .rk-ball, .rk-gem, .rk-glint, .r2-win { transform-box: fill-box; transform-origin: center; }
.r2-flag { transform-origin: 0 50%; }
.r2-tower { transform-origin: 50% 100%; cursor: pointer; }
.rk-l { transform-origin: 50% 100%; cursor: pointer; }
.rk-glint { opacity: 0; }

/* ---------- Сарай туралы: указ на пергаменте и знамёна-факты ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.decree { position: relative; filter: drop-shadow(0 24px 30px rgba(90, 60, 20, .18)); }
.decree-roll { display: block; height: 30px; margin: 0 -14px; border-radius: 15px; background: linear-gradient(180deg, #e9cf98, #fbefd2 40%, #caa15c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08); }
.decree-body { position: relative; display: grid; gap: 14px; justify-items: start; margin: -12px 0; padding: 40px clamp(24px, 4vw, 46px) 44px; background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .7), transparent 40%), linear-gradient(90deg, #f3e3bd, var(--parch) 8% 92%, #f3e3bd); }
.decree-head { font-family: var(--display); font-size: 1.15rem; color: var(--gold-d); }
.decree-text { color: var(--ink); text-wrap: pretty; }
.decree-text:first-of-type::first-letter { float: left; margin: 6px 10px 0 0; font-family: var(--display); font-size: 3.6rem; line-height: .8; color: var(--cred); }
.decree-sign { width: 100%; padding-top: 10px; border-top: 2px dashed rgba(168, 112, 12, .35); font-family: var(--display); font-style: italic; color: var(--muted); }
.place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .6); font-weight: 600; }
.place .ico { color: var(--cred); }
.place a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }
.wax { position: absolute; right: 26px; bottom: -6px; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 47% 53% 50% 48%; background: radial-gradient(circle at 35% 30%, #ff6b7f, #c4162f 55%, #8a0c1f); box-shadow: 0 8px 16px rgba(138, 12, 31, .35), inset 0 0 0 6px rgba(255, 255, 255, .12); rotate: -8deg; cursor: default; }
.wax-crown { width: 58px; filter: sepia(1) saturate(0) brightness(1.8) drop-shadow(0 1px 0 rgba(0, 0, 0, .3)); opacity: .9; }
.banners-wrap { position: relative; padding-top: 6px; }
.banners-title { margin-bottom: 18px; text-align: center; font-size: clamp(1.4rem, 1.1rem + .8vw, 1.9rem); color: var(--navy); }
.rod { position: relative; height: 14px; margin: 0 -10px; border-radius: 7px; background: linear-gradient(180deg, #d9a54a, #8a5a17); }
.rod::before, .rod::after { content: ""; position: absolute; top: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--goldgrad); }
.rod::before { left: -14px; } .rod::after { right: -14px; }
.banners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: -4px; }
.banners li { display: grid; }
.banner { position: relative; display: grid; align-content: start; justify-items: center; gap: 6px; min-height: 230px; padding: 26px 6px 54px; border: 0; background: var(--c); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); text-align: center; cursor: pointer; transform-origin: 50% 0; box-shadow: inset 0 8px 0 rgba(0, 0, 0, .14); -webkit-tap-highlight-color: transparent; }
.banner::before { content: ""; position: absolute; inset: 8px 8px 30px; border: 2px dashed rgba(255, 255, 255, .5); border-bottom: 0; }
.bn-big b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.3rem; line-height: 1; }
.bn-big .b-sm { font-size: 1.1rem; line-height: 1.2; overflow-wrap: anywhere; }
.bn-label { padding: 0 4px; font-size: .82rem; font-weight: 600; line-height: 1.3; opacity: .92; }
.bn-star { position: absolute; left: 50%; bottom: 36px; width: 18px; height: 18px; translate: -50% 0; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

/* ---------- Мұнаралар: башни растут с возрастом ---------- */
.towers { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 40px); }
.towers li { flex: 1 1 0; max-width: 320px; }
.tower { display: grid; justify-items: center; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; }
.tw-art { display: block; width: min(100%, 170px); height: var(--h); transition: transform .4s var(--ease-pop); }
.tower:hover .tw-art { transform: translateY(-6px); }
.tower-svg { width: 100%; height: 100%; overflow: visible; }
.tw-flag { transform: translateY(56px); transition: transform 1s cubic-bezier(.3, 1.3, .5, 1); }
.tower.raised .tw-flag { transform: none; }
.tw-win { transition: fill .4s; }
.tower.raised .tw-win { fill: #ffe066; }
.tw-plaque { position: relative; display: grid; gap: 4px; justify-items: center; width: 100%; margin-top: -2px; padding: 20px 16px 22px; border-radius: 0 0 22px 22px; background: #fff; box-shadow: inset 0 6px 0 var(--c), var(--shadow); }
.tw-age { padding: 3px 14px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 800; }
.tw-name { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--navy); }
.tw-text { font-size: .92rem; color: var(--muted); line-height: 1.45; }
.tw-pick { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 800; font-size: .9rem; color: var(--royal); }
.tower.raised .tw-plaque { box-shadow: inset 0 6px 0 var(--c), 0 0 0 3px var(--c), var(--shadow); }
.castle-wall { position: relative; z-index: 1; height: 46px; margin-top: -30px; background: repeating-linear-gradient(90deg, transparent 0 58px, rgba(0, 0, 0, .1) 58px 60px), repeating-linear-gradient(180deg, var(--stone) 0 21px, #c8bca6 21px 23px); border-radius: 6px; -webkit-mask: linear-gradient(#000 0 0) bottom / 100% 34px no-repeat, var(--merlons) 0 0 / 48px 100% repeat-x; mask: linear-gradient(#000 0 0) bottom / 100% 34px no-repeat, var(--merlons) 0 0 / 48px 100% repeat-x; }

/* ---------- Үйірмелер: гербы-щиты ---------- */
.clubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 22px; }
.club { position: relative; }
.club-open { display: grid; justify-items: center; gap: 12px; width: 100%; height: 100%; padding: 26px 18px 24px; border: 0; border-radius: 22px; background: #fff; box-shadow: var(--shadow); text-align: center; cursor: pointer; transition: transform .35s var(--ease-pop); -webkit-tap-highlight-color: transparent; }
.club-open:hover { transform: translateY(-8px); }
.club-media { position: relative; display: grid; place-items: center; width: 104px; height: 122px; background: linear-gradient(90deg, var(--c) 50%, var(--c2) 50%); clip-path: var(--shield); }
.club-media::before { content: ""; position: absolute; inset: 6px; background: linear-gradient(90deg, var(--c) 50%, var(--c2) 50%); clip-path: var(--shield); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6); filter: brightness(1.08); }
.club-media img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.club-ico { position: relative; display: grid; place-items: center; width: 56px; height: 56px; color: #fff; }
.club-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.club-body { display: grid; gap: 6px; justify-items: center; }
.club-title { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--navy); line-height: 1.2; }
.club-badge { padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-weight: 800; font-size: .78rem; }
.club-badge.is-paid { background: var(--gold-l); color: var(--gold-d); }
.club-meta { font-size: .84rem; font-weight: 600; 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: 800; color: var(--royal); }

/* ---------- Құрылтайшы: портрет в золотой раме ---------- */
.leaders { display: grid; gap: 30px; }
.leader { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 50px); align-items: center; max-width: 900px; margin: 0 auto; padding: 40px clamp(24px, 4vw, 46px); border-radius: 28px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.frame { position: relative; width: 230px; aspect-ratio: 4 / 5; margin: 34px auto 0; padding: 16px; border-radius: 50% 50% 18px 18px / 36% 36% 18px 18px; background: var(--goldgrad); box-shadow: 0 0 0 4px var(--gold-d), 0 20px 40px rgba(0, 0, 0, .35); }
.frame-in { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; background: #fff; box-shadow: inset 0 0 0 4px var(--gold-d); }
.frame-in img, .frame-in .avatar { width: 100%; height: 100%; object-fit: cover; }
.frame-in .avatar { padding: 20px 10px; }
.frame-crown { position: absolute; left: 50%; top: -52px; width: 110px; translate: -50% 0; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.leader-body { display: grid; gap: 8px; justify-items: start; }
.leader-role { font-weight: 800; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.leader-body h3 { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); color: #fff; }
.leader-edu span { display: block; font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.leader-shields { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.leader-shields li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.ls-svg { width: 28px; height: auto; flex: none; }
.leader-about { color: rgba(255, 255, 255, .86); }
.leader-years { display: inline-flex; align-items: baseline; gap: 8px; }
.leader-years strong { font-family: var(--display); font-size: 2.4rem; color: var(--gold); }
.care { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 30px auto 0; }
.care li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 20px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.care-ico { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 60px; background: var(--c); clip-path: var(--shield); 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-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--navy); }
.care span:last-child { font-size: .93rem; color: var(--muted); line-height: 1.5; }

/* ---------- Екі бақша: два замка и дорога с каретой ---------- */
.kingdom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px clamp(20px, 6vw, 90px); }
.keep { position: relative; display: grid; gap: 6px; justify-items: center; padding: 34px 24px 28px; border-radius: 26px 26px 18px 18px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.keep::before { content: ""; position: absolute; left: 18px; right: 18px; top: -16px; height: 18px; background: #fff; -webkit-mask: var(--merlons) 0 0 / 36px 100% repeat-x; mask: var(--merlons) 0 0 / 36px 100% repeat-x; }
.keep-me { box-shadow: inset 0 -6px 0 var(--royal), var(--shadow); }
.keep-sister { box-shadow: inset 0 -6px 0 var(--cpink), var(--shadow); }
.keep-tag { position: absolute; top: -46px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; background: var(--royal); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.keep-logo { display: block; width: 150px; margin-bottom: 6px; }
.keep-logo img { width: 100%; height: auto; transition: transform .5s var(--ease-pop); }
.keep:hover .keep-logo img { transform: translateY(-6px) scale(1.04); }
.keep h3 { font-family: var(--logo); font-weight: 700; font-size: 1.6rem; color: var(--navy); }
.keep-place { font-weight: 800; color: var(--cpink); }
.keep-line { color: var(--muted); font-size: .95rem; }
.keep-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.road { position: relative; grid-column: 1 / -1; height: 110px; }
.road-way { position: absolute; left: 0; right: 0; bottom: 8px; height: 34px; border-radius: 17px; background: linear-gradient(180deg, #e8d3a8, #d6b97f); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08); }
.road-way::after { content: ""; position: absolute; left: 20px; right: 20px; top: 15px; height: 4px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .8) 0 22px, transparent 22px 44px); }
.carriage-btn { position: absolute; left: 0; bottom: 18px; width: 130px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.carriage-flip { display: block; }
.carriage { width: 100%; height: auto; overflow: visible; }
.wheel { transform-box: fill-box; transform-origin: center; }
.road-hint { grid-column: 1 / -1; margin-top: -10px; text-align: center; font-size: .86rem; font-weight: 600; color: var(--muted); }

/* спрятанные щиты (пасхалка) */
.hid-shield { position: absolute; z-index: 4; width: 32px; margin: -19px 0 0 -16px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .75; rotate: 10deg; -webkit-tap-highlight-color: transparent; }
.hid-shield svg { width: 100%; height: auto; }
.hid-shield.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; }

/* ---------- Общие блоки: в палитре замка ---------- */
.tab { border: 2px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; }
.tab.is-on { background: var(--royal); color: #fff; border-color: var(--royal); }
.photo-btn { border-color: #fff; outline: 0; box-shadow: 0 24px 46px rgba(29, 42, 107, .18), 0 0 0 3px var(--gold); }
.hall-nav { background: var(--royal); color: #fff; border: 0; box-shadow: 0 10px 24px rgba(29, 42, 107, .25); }
.story, .doc-set, .jobs { border: 0; box-shadow: var(--shadow); }
.story-title { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.story-img { background: var(--sky); }
.jobs { background: linear-gradient(160deg, var(--royal), var(--navy-d)); }
.jobs h3 { color: var(--gold); }
.toast { border: 0; box-shadow: 0 18px 44px rgba(29, 42, 107, .3), inset 0 -5px 0 var(--cpink); color: var(--ink); }
.toast b { color: var(--royal); }
.toast .t-coin { width: 26px; height: 30px; border: 0; border-radius: 0; background: linear-gradient(90deg, var(--cpink) 50%, var(--cblue) 50%); clip-path: var(--shield); box-shadow: none; }
.news-dialog { border: 0; color: var(--ink); }
.nd-body time { color: var(--cpink); }
.nd-body h3 { font-family: var(--display); color: var(--navy); }
.nd-close { border: 0; background: var(--royal); color: #fff; }
.lb-close, .lb-nav { border: 0; }

/* ---------- Контакты: ночное небо и королевское письмо ---------- */
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; opacity: .7; }
.stars i:nth-child(3n) { width: 6px; height: 6px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.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-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); color: #fff !important; text-decoration: none; }
.contact-phone .ico { width: 48px; height: 56px; padding: 12px 12px 16px; background: var(--goldgrad); clip-path: var(--shield); color: var(--navy); }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.contact-list .ico { margin-top: 3px; color: var(--gold); }
.contact-list a { color: #fff !important; font-weight: 800; }
.social-label { margin-top: 6px; font-size: .76rem; font-weight: 800; 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: 800; text-decoration: none; transition: transform .25s var(--ease-pop); }
.socials a:hover { transform: translateY(-3px); }
.form { position: relative; padding: 70px 34px 32px; border-radius: 10px; background: linear-gradient(90deg, #f3e3bd, var(--parch) 6% 94%, #f3e3bd); color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.letter-flap { position: absolute; left: 0; right: 0; top: 0; height: 64px; background: linear-gradient(180deg, #e6cf9c, #f3e3bd); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.seal { position: absolute; left: 50%; top: 32px; z-index: 2; display: grid; place-items: center; width: 70px; height: 70px; translate: -50% 0; border-radius: 47% 53% 50% 48%; background: radial-gradient(circle at 35% 30%, #ff6b7f, #c4162f 55%, #8a0c1f); box-shadow: 0 6px 12px rgba(138, 12, 31, .4); }
.seal-crown { width: 44px; filter: sepia(1) saturate(0) brightness(1.8); opacity: .9; }
.form h3 { margin-top: 28px; text-align: center; font-size: 2rem; color: var(--navy); }
.form label { display: block; margin: 16px 0 6px; font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 12px 4px; border: 0; border-bottom: 2px solid rgba(90, 60, 20, .3); border-radius: 0; background: transparent; font: 600 1.05rem var(--body); color: var(--ink); transition: border-color .2s, background .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='%232a2440' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; background-size: 14px; padding-right: 30px; }
.form select.flash { animation: flash 1s ease; }
@keyframes flash { 30% { background-color: rgba(246, 196, 67, .4); } }
.form textarea { resize: vertical; min-height: 90px; background-image: repeating-linear-gradient(180deg, transparent 0 29px, rgba(90, 60, 20, .14) 29px 30px); line-height: 30px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--royal); background-color: rgba(255, 255, 255, .45); }
.consent { position: relative; display: flex !important; gap: 10px; align-items: flex-start; margin-top: 18px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .88rem !important; font-weight: 600 !important; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--royal); }
.form .btn { width: 100%; margin-top: 22px; }
.form-note { margin-top: 12px; font-weight: 800; 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: repeating-linear-gradient(90deg, transparent 0 62px, rgba(0, 0, 0, .18) 62px 64px), repeating-linear-gradient(180deg, #4a3f62 0 30px, #3a3150 30px 32px); color: #e9e4f5; }
.wall-top { position: absolute; left: 0; right: 0; top: -26px; height: 28px; background: #4a3f62; -webkit-mask: var(--merlons) 0 0 / 64px 100% repeat-x; mask: var(--merlons) 0 0 / 64px 100% repeat-x; }
.foot-in-top { display: grid; gap: 18px; justify-items: center; padding: 50px 0 10px; text-align: center; }
.foot-bye { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.foot-sister { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 14px; background: rgba(0, 0, 0, .25); color: #fff !important; font-weight: 800; text-decoration: none; transition: background .2s, transform .25s var(--ease-pop); }
.foot-sister:hover { background: rgba(0, 0, 0, .4); 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: 14px; background: rgba(0, 0, 0, .28); font-weight: 600; font-size: .88rem; }
.eggs-dots { display: inline-flex; gap: 6px; }
.eggs-dots i { display: block; width: 22px; opacity: .22; filter: grayscale(1); transition: opacity .4s, filter .4s, transform .5s var(--ease-pop); }
.eggs-dots i svg { width: 100%; height: auto; }
.eggs-dots i.on { opacity: 1; filter: none; 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, .12); background: rgba(0, 0, 0, .22); font-size: .9rem; }
.foot-in.wrap { width: 100%; }
.foot-in img { width: 46px; height: 46px; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold) !important; font-weight: 800; text-decoration: none; }

/* ---------- Летящее: флажки-конфетти, салют, дракон ---------- */
.sky-layer { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.flaglet { position: fixed; left: 0; top: 0; z-index: 74; width: 12px; height: 16px; clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none; }
.spark-dot { position: fixed; left: 0; top: 0; z-index: 74; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; }
.dragon { position: fixed; left: 0; top: 30%; z-index: 75; width: 220px; pointer-events: none; }
.dragon-svg { width: 100%; height: auto; overflow: visible; }
.dr-wing { transform-box: fill-box; transform-origin: 20% 100%; }

/* ---------- Движение (только если посетитель не просил его уменьшить) ---------- */
@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; }

  .cloud { animation: drift 46s linear infinite; }
  .cl-2 { animation-duration: 60s; animation-delay: -20s; } .cl-3 { animation-duration: 52s; animation-delay: -8s; } .cl-4 { animation-duration: 70s; animation-delay: -30s; }
  @keyframes drift { from { translate: -30vw 0; } to { translate: 110vw 0; } }
  .sun i { animation: rays 30s linear infinite; }
  @keyframes rays { to { transform: rotate(360deg); } }
  .bird { animation: fly 22s linear infinite; }
  .b-2 { animation-duration: 28s; animation-delay: -12s; }
  @keyframes fly { from { translate: -40vw 20px; } 50% { translate: 20vw -20px; } to { translate: 80vw 10px; } }
  .pn { animation: pn-sway 3s calc(var(--i) * -.23s) ease-in-out infinite alternate; }
  @keyframes pn-sway { from { rotate: -7deg; } to { rotate: 7deg; } }
  .pn.pulled { animation: pn-pull .9s var(--ease-pop); }
  @keyframes pn-pull { 30% { rotate: 40deg; scale: 1.2; } 60% { rotate: -25deg; } }
  .js .garland .pn { animation: pn-in .5s calc(var(--i) * 60ms + .3s) var(--ease-pop) both, pn-sway 3s calc(var(--i) * -.23s + 1.5s) ease-in-out infinite alternate; }
  @keyframes pn-in { from { transform: scaleY(0); } }

  .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.2s; } .js .hero-tag { animation-delay: 1.35s; } .js .hero-lead { animation-delay: 1.5s; } .js .hero-actions { animation-delay: 1.65s; } .js .hero-hint { animation-delay: 1.8s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  .js .ht-l { animation: brick-in .7s calc(var(--i) * .07s + .2s) var(--ease-pop) both; }
  @keyframes brick-in { from { opacity: 0; transform: translateY(70px) scaleY(.3); } }
  .js .ht-two { animation: two-in 1s 1s var(--ease-pop) both, two-spin 8s 4s ease-in-out infinite; }
  @keyframes two-in { from { opacity: 0; transform: scale(0) rotate(-200deg); } }
  @keyframes two-spin { 0%, 88%, 100% { transform: none; } 94% { transform: rotateY(180deg); } }

  /* логотип: вступление — кольцо дугами, облака, башни вырастают, ворота, корона, буквы */
  .js .is-intro .r2-arc { stroke-dasharray: 100; animation: draw .5s calc(var(--i) * .12s + .2s) cubic-bezier(.5, 0, .3, 1) both; }
  @keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
  .js .is-intro .r2-tower { animation: tower-up .8s var(--ease-pop) both; }
  .js .is-intro .r2-t1 { animation-delay: .8s; } .js .is-intro .r2-t3 { animation-delay: 1s; } .js .is-intro .r2-t2 { animation-delay: 1.2s; }
  @keyframes tower-up { from { transform: scaleY(0); } }
  .js .is-intro .r2-gate, .js .is-intro .r2-two { animation: pop-in .6s 1.5s var(--ease-pop) both; transform-box: fill-box; transform-origin: center; }
  .js .is-intro .rk-crown { animation: crown-drop .9s 1.7s cubic-bezier(.3, 1.4, .5, 1) both; }
  @keyframes crown-drop { from { opacity: 0; transform: translateY(-300px) rotate(-25deg); } }
  .js .is-intro .rk-l { animation: l-in .5s calc(var(--i) * 60ms + 2s) var(--ease-pop) both; }
  @keyframes l-in { from { opacity: 0; transform: translateY(50px) scale(.2); } }
  @keyframes pop-in { from { transform: scale(0); } }
  /* логотип: живые части */
  .r2-flag { animation: flag-wave 1.6s ease-in-out infinite alternate; }
  @keyframes flag-wave { from { transform: skewY(-6deg) scaleX(.92); } to { transform: skewY(6deg) scaleX(1.05); } }
  .r2-cloud { animation: logo-cloud 9s ease-in-out infinite alternate; }
  .r2-cloud2 { animation-duration: 12s; }
  @keyframes logo-cloud { to { transform: translateX(30px); } }
  .r2-win { animation: win-glow 5s ease-in-out infinite; }
  @keyframes win-glow { 0%, 70%, 100% { filter: none; } 80% { filter: brightness(1.25) drop-shadow(0 0 6px #ffe066); } }
  .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-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); } }
  .r2-tower.boing { animation: tower-boing .6s var(--ease-pop); }
  @keyframes tower-boing { 40% { transform: scaleY(1.12); } 70% { transform: scaleY(.95); } }
  .rk-l.hop { animation: l-hop .6s var(--ease-pop); }
  @keyframes l-hop { 40% { transform: translateY(-40px) rotate(-10deg) scale(1.15); } }
  .r2-two.spin { animation: two-flip .8s var(--ease-pop); }
  @keyframes two-flip { 50% { transform: scale(1.4) rotate(180deg); } 100% { transform: rotate(360deg); } }

  /* разделы */
  .banner { animation: banner-sway 4s calc(var(--i) * -.6s) ease-in-out infinite alternate; }
  @keyframes banner-sway { from { rotate: -1.6deg; } to { rotate: 1.6deg; } }
  .banner.wave { animation: banner-wave 1.2s ease-in-out; }
  @keyframes banner-wave { 20% { transform: rotate(8deg) skewX(-6deg); } 45% { transform: rotate(-7deg) skewX(5deg); } 70% { transform: rotate(4deg); } }
  .bn-star { animation: star-spin 6s linear infinite; }
  @keyframes star-spin { to { rotate: 360deg; } }
  .wax { animation: wax-pulse 4s ease-in-out infinite; }
  @keyframes wax-pulse { 50% { scale: 1.06; } }
  .tower.raised .tw-flag path { animation: tw-wave 1.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 50%; }
  @keyframes tw-wave { from { transform: skewY(-8deg) scaleX(.9); } to { transform: skewY(8deg) scaleX(1.05); } }
  .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); } }
  .frame-crown { animation: crown-hover 3.4s ease-in-out infinite alternate; }
  @keyframes crown-hover { to { transform: translateY(-10px) rotate(4deg); } }
  .carriage-btn { animation: drive 9s ease-in-out infinite alternate; }
  @keyframes drive { from { left: 0; } to { left: calc(100% - 130px); } }
  .carriage-flip { animation: face 18s steps(1) infinite; }
  @keyframes face { 0% { transform: none; } 50% { transform: scaleX(-1); } }
  .carriage { animation: bump .5s ease-in-out infinite alternate; }
  @keyframes bump { to { transform: translateY(-3px) rotate(1deg); } }
  .wheel { animation: wheel 1s linear infinite; }
  @keyframes wheel { to { transform: rotate(360deg); } }
  .carriage-btn.honk .carriage { animation: honk .6s var(--ease-pop); }
  @keyframes honk { 40% { transform: translateY(-24px) rotate(-6deg); } }
  .stars i { animation: twinkle 3s calc(var(--i) * .33s) ease-in-out infinite; }
  @keyframes twinkle { 50% { opacity: .15; transform: scale(.5); } }
  .hid-shield { animation: hs-bob 2.6s ease-in-out infinite alternate; }
  @keyframes hs-bob { to { transform: translateY(-6px) rotate(-16deg); } }
  .hid-shield.got { animation: hs-got .9s var(--ease-pop) forwards; }
  @keyframes hs-got { 40% { transform: translateY(-60px) scale(1.8) rotate(-20deg); opacity: 1; } 100% { transform: translateY(-120px) scale(.3) rotate(30deg); opacity: 0; } }
  .dr-wing { animation: flap .35s ease-in-out infinite alternate; }
  @keyframes flap { to { transform: scaleY(-.6); } }
  .dr-fire { animation: fire .3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 50%; }
  @keyframes fire { to { transform: scale(1.8); } }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1400px) { .menu a { padding: 8px 8px; font-size: .88rem; } .brand-text small { display: none; } .chip-sister span { display: none; } .chip-sister { width: 42px; padding: 0; justify-content: center; } }
@media (max-width: 1240px) {
  .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) + 14px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 4px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(29, 42, 107, .22); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 18px; font-size: 1.05rem; }
  .menu a::before { left: auto; right: 18px; top: 50%; transform: translateY(-50%) scaleY(0); }
  .menu a:hover::before, .menu a.is-active::before { transform: translateY(-50%) scaleY(1); }
}
@media (max-width: 1120px) {
  .hero { min-height: 0; padding-top: calc(var(--bar-h) + 120px); }
  .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; }
  .r2-logo { width: min(100%, 400px); }
  .hero-actions { justify-content: center; }
  .about-grid, .contact-grid, .docs-grid { grid-template-columns: 1fr; }
  .banners-wrap { max-width: 640px; margin-inline: auto; width: 100%; }
  .sun { right: 4%; top: 30%; width: 80px; height: 80px; }
}
@media (max-width: 760px) {
  .leader { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .leader-body { justify-items: center; }
  .leader-shields { justify-content: center; }
  .frame { width: 200px; }
  .care { grid-template-columns: 1fr; }
  .kingdom { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; row-gap: 48px; }
  .road { order: 1; grid-row: 2; height: 100px; }
  .road-hint { grid-row: 3; margin-top: -40px; }
  .keep-sister { grid-row: 4; }
  .towers { gap: 8px; }
  .tw-plaque { padding: 14px 8px 16px; }
  .tw-text { display: none; }
  .tw-name { font-size: 1.05rem; }
  .tw-age { font-size: .8rem; padding: 2px 8px; }
  .tw-pick { font-size: 0; gap: 0; } .tw-pick .ico { font-size: 1rem; }
  .towers li { --h: calc(var(--i) * 40px + 140px) !important; }
}
@media (max-width: 640px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .hero { padding-bottom: 110px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .ht-word { font-size: clamp(2.6rem, 1.2rem + 7.6vw, 3.8rem); }
  .garland { height: 100px; }
  .pn { width: 22px; height: 30px; margin-left: -11px; }
  .pn:nth-child(odd of .pn) { display: none; }
  .form { padding: 64px 20px 28px; }
  .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); }
  .banners { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 18px; }
  .banners li { width: calc((100% - 20px) / 3); }
  .banner { min-height: 190px; }
  .clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .club-open { padding: 22px 12px 20px; }
  .club-media { width: 86px; height: 100px; }
  .club-ico { width: 46px; height: 46px; }
  .club-title { font-size: 1.1rem; }
  .decree-body { padding: 32px 20px 56px; }
  .wax { width: 74px; height: 74px; right: 14px; }
  .wax-crown { width: 46px; }
  .cl-1, .cl-3 { scale: .6; }
  .carriage-btn { width: 100px; }
  @keyframes drive { from { left: 0; } to { left: calc(100% - 100px); } }
}
@media (max-width: 420px) {
  .top-in { gap: 6px; width: calc(100% - 20px); }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.2rem; }
  .chip { min-height: 38px; padding: 0 10px; }
  .chip-menu, .chip-call { width: 38px; padding: 0; }
  .chip-sister { display: none; }
}
