/* «Ермек» — «ермек» по-казахски значит забава, игра, радость. Сайт собран из игрушек: кубики с буквами, воздушные змеи, стикеры
   с жирным контуром и «твёрдой» тенью, как в детской аппликации. Палитра логотипа: коралловый, солнечно-жёлтый, бирюзовый, синий,
   фиолетовые горы Алатау и тёмно-синие чернила обводки. Шрифты свои (assets/fonts): Balsamiq Sans (заголовки, как надпись в логотипе)
   и Mulish (текст); казахские буквы есть в обоих. */

@font-face { font-family: "Balsamiq Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/balsamiq-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: "Balsamiq Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/balsamiq-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Balsamiq Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/balsamiq-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: "Balsamiq Sans"; font-weight: 700; font-display: swap; src: url("../assets/fonts/balsamiq-cyrillic-ext-700.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Balsamiq Sans"; font-weight: 700; font-display: swap; src: url("../assets/fonts/balsamiq-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Balsamiq Sans"; font-weight: 700; font-display: swap; src: url("../assets/fonts/balsamiq-latin-700.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: "Mulish"; font-weight: 400 900; font-display: swap; src: url("../assets/fonts/mulish-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: "Mulish"; font-weight: 400 900; font-display: swap; src: url("../assets/fonts/mulish-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Mulish"; font-weight: 400 900; font-display: swap; src: url("../assets/fonts/mulish-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #1f2554; --coral: #ff5b4a; --sun: #ffc22e; --teal: #14b8a6; --blue: #2f6df6; --sky: #4fb8ff; --violet: #8f6bff; --leaf: #2fbf8a; --orange: #ff8a3d;
  --paper: #fff6e4; --card: #ffffff; --text: #1f2554; --muted: #565c8a; --line: rgba(31, 37, 84, .16);
  /* имена для общих блоков (галерея, новости, документы, диалоги) */
  --gold: var(--sun); --gold-d: var(--ink); --amber: var(--coral); --cocoa: var(--ink); --brown: var(--ink); --head: var(--ink); --night: var(--ink);
  --display: "Balsamiq Sans", "Comic Sans MS", system-ui, sans-serif;
  --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 74px;
  --ease-pop: cubic-bezier(.3, 1.6, .5, 1);
  --shadow: 6px 6px 0 var(--ink);
  --dots: radial-gradient(rgba(31, 37, 84, .09) 1.4px, transparent 1.6px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 600 1.03rem/1.7 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); 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.2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 90; padding: 10px 16px; border: 3px solid var(--ink); 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: 700; font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.7rem); line-height: 1.12; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.hl { position: relative; z-index: 0; display: inline-block; }
.hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; z-index: -1; height: .34em; border-radius: 99px; background: var(--sun); transform: rotate(-1deg); }
.lede { max-width: 62ch; font-size: 1.07rem; color: var(--muted); text-wrap: pretty; }
.head { display: grid; gap: 12px; margin-bottom: 44px; }
.head-center { justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 10px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 3px 3px 0 var(--ink); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); rotate: -2deg; }
.kicker .ico { color: var(--coral); }
.hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; font-size: .92rem; font-weight: 700; color: var(--muted); }
.hint .ico, .hero-hint .ico { color: var(--coral); }

/* ---------- Разделы ---------- */
.section, .foot, .hero { overflow-x: clip; }
.section { position: relative; padding: clamp(72px, 8vw, 112px) 0; }
.sec-paper { background: var(--paper); background-image: var(--dots); background-size: 24px 24px; }
.sec-sky { background: linear-gradient(180deg, #bfe8ff 0%, #e8f7ff 100%); }
.sec-sun { background: var(--sun); background-image: radial-gradient(rgba(31, 37, 84, .12) 1.8px, transparent 2px); background-size: 26px 26px; border-block: 5px solid var(--ink); }
.sec-white { background: #fff; }
.sec-blue { background: var(--blue); background-image: radial-gradient(rgba(255, 255, 255, .16) 2px, transparent 2.4px); background-size: 28px 28px; color: #fff; border-top: 5px solid var(--ink); }
.sec-blue h2, .sec-blue .kicker { color: #fff; }
.sec-blue .kicker { background: var(--ink); border-color: #fff; box-shadow: 3px 3px 0 rgba(255, 255, 255, .5); }
.sec-blue .lede { color: rgba(255, 255, 255, .92); }
.sec-blue .hl::after { background: var(--coral); }
.cloud path { fill: #fff; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 3px solid var(--ink); border-radius: 999px; cursor: pointer; font-family: var(--body); font-weight: 900; font-size: 1rem; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform .2s var(--ease-pop), box-shadow .2s, background .2s; }
.btn:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-main { background: var(--coral); color: #fff; }
.btn-line { background: #fff; color: var(--ink); }
.btn-line .ico { color: var(--blue); }

/* ---------- Шапка ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 4px solid var(--ink); background: rgba(255, 246, 228, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: box-shadow .3s; }
.top.is-stuck { box-shadow: 0 6px 0 rgba(31, 37, 84, .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: 52px; height: 52px; border-radius: 50%; }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: .01em; }
.bl { display: inline-block; -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; }
.bl-1, .bl-5 { color: var(--coral); } .bl-2 { color: var(--blue); } .bl-3 { color: var(--teal); } .bl-4 { color: var(--sun); }
.brand-text small { margin-top: 2px; font-size: .64rem; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.menu { display: flex; gap: 2px; }
.menu a { padding: 8px 13px; border: 3px solid transparent; border-radius: 999px; color: var(--ink); font-weight: 800; font-size: .92rem; text-decoration: none; transition: background .2s, transform .2s var(--ease-pop); }
.menu a:hover { background: #fff; border-color: var(--ink); transform: translateY(-2px) rotate(-2deg); }
.menu a.is-active { background: var(--sun); border-color: var(--ink); }
.chips { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 900; font-size: .86rem; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .2s var(--ease-pop), box-shadow .2s; }
.chip:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); }
.chip-call { background: var(--sun); }
.chip-menu { display: none; width: 44px; padding: 0; justify-content: center; }
.kiteline { position: relative; height: 5px; background: rgba(31, 37, 84, .08); }
.kiteline i { display: block; width: var(--p, 0%); height: 100%; background: repeating-linear-gradient(90deg, var(--coral) 0 20px, var(--sun) 20px 40px, var(--teal) 40px 60px, var(--blue) 60px 80px); }
.kl-kite { position: absolute; top: 4px; left: var(--p, 0%); width: 30px; translate: -50% 0; pointer-events: none; }
.kl-kite svg { width: 100%; height: auto; transform-origin: 50% 20%; }

/* ---------- Первый экран ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: 100svh; padding: calc(var(--bar-h) + 40px) 0 0; background: linear-gradient(180deg, #4fb8ff 0%, #a7dcff 48%, #e5f5ff 82%, var(--paper) 100%); }
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; }
.cl-1 { top: 18%; left: 38%; width: 150px; } .cl-2 { top: 60%; left: 4%; width: 190px; } .cl-3 { top: 11%; right: 6%; width: 130px; }
.deco-kite { position: absolute; display: block; }
.deco-kite svg { width: 100%; height: auto; }
.dk-1 { top: 17%; left: 3%; width: 70px; } .dk-2 { top: 7%; left: 47%; width: 64px; } .dk-3 { top: 52%; right: 2%; width: 62px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-bottom: 150px; }
.hero-text { display: grid; gap: 20px; justify-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 3px 3px 0 var(--ink); font-weight: 800; font-size: .84rem; color: var(--ink); }
.eyebrow .ico { color: var(--coral); }
.hero-title { font-size: 0; line-height: 0; }
.blocks { display: flex; gap: clamp(6px, 1.2vw, 14px); padding-bottom: 12px; }
.blk { position: relative; display: grid; place-items: center; width: clamp(60px, 9.4vw, 112px); aspect-ratio: 1; padding: 0; border: 4px solid var(--ink); border-radius: 22%; background: var(--c); box-shadow: 0 8px 0 var(--ink); cursor: pointer; rotate: calc((var(--i) - 2) * 3.4deg); transition: transform .25s var(--ease-pop), box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.blk span { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 1.4rem + 4vw, 5.4rem); line-height: 1; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; translate: 0 -3%; }
.blk:nth-child(4) span { color: var(--ink); -webkit-text-stroke: 0; }
.blk::after { content: ""; position: absolute; top: 9%; left: 11%; width: 30%; height: 9%; border-radius: 99px; background: rgba(255, 255, 255, .55); }
.blk:hover { transform: translateY(-8px) rotate(-3deg); box-shadow: 0 14px 0 var(--ink); }
.blk:active, .blk.is-pressed { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.hero-tag { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.2; color: var(--ink); }
.hero-lead { max-width: 52ch; font-size: 1.1rem; color: #2c346e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-hint { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 3px dashed var(--ink); border-radius: 16px; background: rgba(255, 255, 255, .6); font-weight: 800; font-size: .9rem; color: var(--ink); }
.hero-logo { position: relative; display: grid; justify-items: center; }
.er-logo { width: min(100%, 540px); height: auto; overflow: visible; filter: drop-shadow(8px 10px 0 rgba(31, 37, 84, .9)); -webkit-tap-highlight-color: transparent; }
.kid-bubble { position: absolute; z-index: 3; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1rem; white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); translate: -50% -100%; opacity: 0; pointer-events: none; }
.kid-bubble.show { animation: bubble 1.5s var(--ease-pop) both; }
@keyframes bubble { 0% { opacity: 0; transform: scale(.4) translateY(10px); } 14%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
.hero-land { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.hero-land .mountains { display: block; width: 100%; height: clamp(110px, 16vw, 200px); }
.hero-land::after { content: ""; display: block; height: 34px; background: var(--leaf); border-top: 5px solid var(--ink); }

/* ---------- ЛОГОТИП: части (assets/logo/ermek.svg) ---------- */
.er-kite, .er-tl, .er-kid, .er-let, .er-sub, .er-sun, .er-rays, .er-dots, .er-cloud, .er-wave, .er-mt { transform-box: view-box; }
.er-dots, .er-wave, .er-let, .er-sub, .er-rays, .er-cloud, .er-kid { transform-box: fill-box; }
.er-dots { transform-origin: 50% 50%; }
.er-rays { transform-origin: 50% 50%; }
.er-let, .er-sub { transform-origin: 50% 100%; }
.er-kid { transform-origin: 50% 100%; cursor: pointer; }
.er-wave { transform-origin: 85% 90%; }
.er-kite { cursor: pointer; transform-origin: 0 0; }
.er-tl { transform-origin: 0 0; }
.er-string { stroke-dasharray: 100; }

/* ---------- О нас: словарная карточка и стикеры ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.dict { position: relative; padding: 34px 34px 30px; border: 4px solid var(--ink); border-radius: 30px; background: #fff; box-shadow: 9px 9px 0 var(--ink); rotate: -1.4deg; }
.dict::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; border-radius: 26px 26px 0 0; background: repeating-linear-gradient(90deg, var(--coral) 0 28px, var(--sun) 28px 56px, var(--teal) 56px 84px, var(--blue) 84px 112px); border-bottom: 4px solid var(--ink); }
.dict-kite { position: absolute; top: -70px; right: 18px; width: 72px; rotate: 12deg; }
.dict-kite svg { width: 100%; height: auto; }
.dict-word { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 2rem + 5vw, 5.6rem); line-height: 1.05; }
.dw-a { color: var(--coral); } .dw-b { color: var(--blue); } .dw-dot { color: var(--sun); display: inline-block; padding: 0 .06em; }
.dict-kind { font-size: .86rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); font-style: italic; }
.dict-defs { display: grid; gap: 10px; margin: 18px 0; counter-reset: d; }
.dict-defs li { position: relative; padding-left: 44px; counter-increment: d; font-weight: 800; color: var(--ink); }
.dict-defs li::before { content: counter(d); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 30px; height: 30px; border: 3px solid var(--ink); border-radius: 50%; background: var(--sun); font-family: var(--display); font-size: .95rem; }
.dict-defs li:nth-child(2)::before { background: var(--teal); color: #fff; } .dict-defs li:nth-child(3)::before { background: var(--coral); color: #fff; }
.dict-note { padding-top: 14px; border-top: 3px dashed var(--line); font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--blue); }
.about-text { display: grid; gap: 14px; justify-items: start; }
.about-text .lede { max-width: none; color: #2c346e; }
.place { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 18px; border: 3px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 4px 4px 0 var(--ink); font-weight: 800; }
.place .ico { color: var(--coral); }
.place a { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; text-decoration: none; }
.stickers-wrap { margin-top: 64px; text-align: center; }
.stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 26px; }
.stickers li:nth-child(odd) { rotate: -4deg; } .stickers li:nth-child(even) { rotate: 3deg; translate: 0 10px; }
.sticker { position: relative; display: block; width: 156px; height: 156px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .35s var(--ease-pop); -webkit-tap-highlight-color: transparent; }
.sticker:hover { transform: translateY(-8px) rotate(6deg) scale(1.06); }
.st-shape { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(5px 6px 0 var(--ink)); }
.st-text { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0; padding: 18px; color: var(--t); line-height: 1.05; }
.st-text b { font-family: var(--display); font-weight: 700; font-size: 2.7rem; }
.st-text b.b-sm { font-size: 1.3rem; white-space: nowrap; letter-spacing: -.02em; } .st-text b.b-xs { font-size: 1.25rem; line-height: 1.15; max-width: 100px; }
.st-text small { font-weight: 900; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; max-width: 100px; }

/* ---------- Группы: три змея ---------- */
.groups .cloud { opacity: .95; }
.gc-1 { top: 70px; left: 4%; width: 150px; } .gc-2 { top: 160px; right: 5%; width: 120px; }
.flock { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; }
.flock-li:nth-child(2) { margin-top: 56px; }
.kite-btn { display: grid; justify-items: center; width: 100%; padding: 0; border: 0; background: none; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kite-art { display: block; width: clamp(150px, 17vw, 190px); margin-bottom: -26px; transition: transform .8s var(--ease-pop); }
.kite-art svg { width: 100%; height: auto; overflow: visible; }
.k-string { fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 2 7; }
.kite-card { position: relative; display: grid; gap: 6px; justify-items: center; width: 100%; padding: 26px 22px 22px; border: 4px solid var(--ink); border-radius: 28px; background: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease-pop), box-shadow .3s; }
.kite-btn:hover .kite-card { transform: translate(-2px, -6px); box-shadow: 8px 12px 0 var(--ink); }
.kc-name { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.flock-li:nth-child(1) .kc-name { color: var(--coral); } .flock-li:nth-child(2) .kc-name { color: var(--teal); } .flock-li:nth-child(3) .kc-name { color: var(--blue); }
.kc-kind { padding: 2px 14px; border: 3px solid var(--ink); border-radius: 999px; background: var(--sun); font-weight: 900; font-size: .82rem; color: var(--ink); }
.kc-text { max-width: 28ch; color: var(--muted); font-weight: 700; }
.kc-pick { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 900; font-size: .9rem; color: var(--coral); }
.kite-btn.is-picked .kite-card { background: #fff8d6; }

/* ---------- Руководство ---------- */
.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; align-items: start; }
.leaders-1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.leader { position: relative; display: grid; gap: 22px; padding: 34px 30px 30px; border: 4px solid var(--ink); border-radius: 32px; background: #fff; box-shadow: 9px 9px 0 var(--c, var(--ink)), 9px 9px 0 4px var(--ink); }
.leader:nth-child(odd) { --c: var(--coral); } .leader:nth-child(even) { --c: var(--blue); }
.portrait { position: relative; display: grid; place-items: center; width: 210px; height: 210px; margin: 0 auto; }
.portrait-ring { position: absolute; inset: -14px; border: 5px dashed var(--c, var(--sun)); border-radius: 50%; }
.portrait-in { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border: 5px solid var(--ink); border-radius: 50%; background: var(--sun); }
.portrait-in img, .portrait-in .avatar { width: 100%; height: 100%; object-fit: cover; }
.portrait-kite { position: absolute; right: -34px; top: -26px; width: 66px; rotate: 14deg; }
.portrait-kite svg { width: 100%; height: auto; }
.leader-body { display: grid; gap: 10px; justify-items: start; }
.leader-role { padding: 3px 14px; border: 3px solid var(--ink); border-radius: 999px; background: var(--sun); font-weight: 900; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.leader-body h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--ink); }
.leader-edu span { display: block; font-weight: 900; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.leader-edu { font-weight: 800; }
.leader-since { display: flex; gap: 8px; align-items: flex-start; font-weight: 800; color: var(--blue); }
.leader-since .ico { margin-top: 4px; color: var(--sun); fill: var(--sun); stroke: var(--ink); }
.leader-about { color: var(--muted); }
.leader-quote { position: relative; padding: 14px 18px 14px 22px; border-left: 6px solid var(--coral); border-radius: 0 16px 16px 0; background: #fff3f0; font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.35; color: var(--ink); }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-row li { padding: 3px 13px; border: 3px solid var(--ink); border-radius: 999px; background: var(--c, var(--sun)); font-weight: 900; font-size: .82rem; color: #fff; }
.chips-row li:nth-child(1) { background: var(--teal); } .chips-row li:nth-child(2) { background: var(--blue); } .chips-row li:nth-child(3) { background: var(--coral); } .chips-row li:nth-child(4) { background: var(--violet); }
.awards { width: 100%; padding: 16px 18px; border: 3px solid var(--ink); border-radius: 20px; background: #fff3c4; }
.awards-t { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.awards-t .ico { color: var(--coral); }
.awards ul { display: grid; gap: 8px; }
.awards li { position: relative; padding-left: 26px; font-weight: 700; font-size: .95rem; color: var(--ink); }
.awards li::before { content: "★"; position: absolute; left: 0; top: 0; color: var(--coral); }
.leader-years { display: inline-flex; align-items: baseline; gap: 10px; }
.leader-years strong { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--blue); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.leader-years span { font-weight: 900; color: var(--muted); }
.courses { margin-top: 64px; text-align: center; }
.courses-t { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.courses-l { margin: 4px 0 24px; color: var(--muted); font-weight: 700; }
.course-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.course { display: flex; align-items: center; gap: 12px; max-width: 360px; padding: 10px 18px 10px 10px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 4px 4px 0 var(--ink); text-align: left; transition: transform .3s var(--ease-pop); }
.course:nth-child(odd) { rotate: -1.5deg; } .course:nth-child(even) { rotate: 1.5deg; }
.course:hover { transform: translateY(-5px) rotate(0); }
.course-h { display: grid; place-content: center; flex: none; width: 58px; height: 58px; border: 3px solid var(--ink); border-radius: 50%; background: var(--c); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1; text-align: center; }
.course-h small { font-family: var(--body); font-weight: 900; font-size: .52rem; letter-spacing: .06em; text-transform: uppercase; }
.course-ico .ico { width: 26px; height: 26px; margin: auto; }
.course-org { font-weight: 800; font-size: .92rem; line-height: 1.3; }

/* ---------- Кружки ---------- */
.clubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.clubs-1 { max-width: 480px; }
.club { position: relative; border: 4px solid var(--ink); border-radius: 30px; background: #fff; box-shadow: 8px 8px 0 var(--ink); transition: transform .3s var(--ease-pop), box-shadow .3s; }
.club:nth-child(odd) { rotate: -.8deg; } .club:nth-child(even) { rotate: .8deg; }
.club:hover { transform: translate(-2px, -6px); box-shadow: 10px 14px 0 var(--ink); }
.club-open { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; width: 100%; padding: 22px 24px; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.club-media { position: relative; display: grid; place-items: center; width: 108px; height: 108px; }
.club-media img { width: 100%; height: 100%; border: 4px solid var(--ink); border-radius: 50%; object-fit: cover; }
.club-ico { display: grid; place-items: center; width: 100%; height: 100%; border: 4px solid var(--ink); border-radius: 50%; background: var(--c); color: #fff; box-shadow: inset -6px -8px 0 rgba(0, 0, 0, .14); }
.club-ico .extra-ico { width: 58px; height: 58px; }
.club-body { display: grid; gap: 6px; }
.club-title { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--c); }
.club-meta { font-weight: 900; font-size: .8rem; color: var(--muted); }
.club-text { color: var(--muted); font-weight: 700; }
.story-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .9rem; color: var(--coral); }
.note-fly { position: fixed; z-index: 74; font-family: var(--display); font-size: 28px; font-weight: 700; pointer-events: none; -webkit-text-stroke: 1px var(--ink); }

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

/* ---------- Общие блоки в стиле «аппликации» (контур и твёрдая тень) ---------- */
.gallery { background: #fff; background-image: var(--dots); background-size: 24px 24px; }
.tab { border: 3px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.tab.is-on { background: var(--sun); color: var(--ink); }
.photo-btn { border: 6px solid #fff; border-bottom-width: 44px; border-radius: 10px; outline: 4px solid var(--ink); box-shadow: 8px 10px 0 var(--ink); }
.photo-btn figcaption { color: var(--ink); font-weight: 700; }
.hall-nav { border: 3px solid var(--ink); background: var(--sun); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.story { border: 4px solid var(--ink); border-radius: 28px; box-shadow: 7px 7px 0 var(--ink); background: #fff; }
.story-img { background: #fff3c4; border-bottom: 4px solid var(--ink); }
.story-body time { color: var(--coral); }
.story-title { font-family: var(--display); font-weight: 700; color: var(--ink); }
.doc-set, .jobs { border: 4px solid var(--ink); border-radius: 26px; box-shadow: 6px 6px 0 var(--ink); }
.jobs { background: var(--blue); color: #fff; }
.jobs h3 { color: #fff; }
.doc-set a .ico { color: var(--coral); }
.job a { color: var(--sun) !important; }
.sec-sky .news, .news.sec-sky { background: #e8f7ff; }
.toast { border: 3px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.toast b { color: var(--coral); }
.toast .t-coin { background: var(--sun); border: 3px solid var(--ink); border-radius: 8px; box-shadow: none; }
.news-dialog { border: 4px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.news-dialog::backdrop { background: rgba(31, 37, 84, .7); }
.nd-close { border: 3px solid var(--ink); background: var(--sun); color: var(--ink); }
.nd-body time { color: var(--coral); }
.nd-body h3 { color: var(--ink); font-family: var(--display); font-weight: 700; }
.lb-close, .lb-nav { border: 3px solid var(--ink); }
.lightbox { background: rgba(31, 37, 84, .94); }

/* ---------- Контакты ---------- */
.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; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); color: #fff !important; text-decoration: none; text-shadow: 3px 3px 0 var(--ink); }
.contact-phone .ico { width: 48px; height: 48px; padding: 11px; border: 3px solid var(--ink); border-radius: 50%; background: var(--sun); color: var(--ink); text-shadow: none; box-shadow: 3px 3px 0 var(--ink); }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 800; }
.contact-list .ico { margin-top: 3px; color: var(--sun); }
.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: .9; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink) !important; font-weight: 900; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform .25s var(--ease-pop); }
.socials a:hover { transform: translate(-2px, -3px) rotate(-2deg); }
.form { position: relative; padding: 48px 34px 32px; border: 4px solid var(--ink); border-radius: 32px; background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.seal { position: absolute; top: -34px; right: 26px; width: 76px; height: 76px; border: 4px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.seal img { width: 100%; height: 100%; border-radius: 50%; }
.form h3 { font-size: 2.3rem; color: var(--coral); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.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: 3px solid var(--ink); border-radius: 16px; background: #fff; font: 700 1rem var(--body); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: box-shadow .2s, transform .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='%231f2554' stroke-width='2.6' 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% { background-color: #fff3c4; box-shadow: 3px 3px 0 var(--ink), 0 0 0 6px rgba(255, 194, 46, .6); } }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--coral); }
.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: 22px; height: 22px; margin-top: 2px; accent-color: var(--coral); box-shadow: none !important; }
.form .btn { width: 100%; margin-top: 22px; }
.form-note { margin-top: 10px; font-weight: 900; color: #0f8a6c; opacity: 0; transition: opacity .3s; }
.form-note.show { opacity: 1; }
.form-note.error { color: #c0261b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Подвал: сад Нуры под горами Алатау ---------- */
.foot { position: relative; background: var(--ink); color: #dfe4ff; }
.scene { position: relative; padding-top: 74px; background: linear-gradient(180deg, #4fb8ff 0%, #bfe8ff 62%, #e8f7ff 100%); border-top: 5px solid var(--ink); overflow: hidden; }
.scene-sky { position: absolute; inset: 0; pointer-events: none; }
.fc-1 { top: 16%; left: 6%; width: 150px; } .fc-2 { top: 8%; right: 10%; width: 120px; }
.garden-head { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; }
.garden-head h3 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: var(--ink); text-shadow: 3px 3px 0 #fff; }
.garden-head p { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border: 3px dashed var(--ink); border-radius: 99px; background: rgba(255, 255, 255, .7); font-weight: 800; font-size: .9rem; }
.garden-head .ico { color: var(--coral); }
.scene-land { position: relative; margin-top: 18px; pointer-events: none; }
.scene-land .mountains { display: block; width: 100%; height: clamp(120px, 18vw, 230px); }
.orchard { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(0px, 2.6vw, 40px); margin-top: calc(clamp(60px, 8vw, 100px) * -1); padding: 0 12px 6px; min-height: 190px; }
.orchard::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: var(--leaf); border-top: 5px solid var(--ink); }
.tree-btn { position: relative; z-index: 1; width: calc(clamp(96px, 11vw, 140px) * var(--s)); padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent; }
.tree-btn svg { width: 100%; height: auto; overflow: visible; }
.tree-btn .ap.gone { opacity: 0; }
.apple { position: fixed; z-index: 74; width: 22px; height: 22px; border: 3px solid var(--ink); border-radius: 50%; background: var(--coral); pointer-events: none; }
.foot-ground { position: relative; display: grid; gap: 14px; justify-items: center; padding: 28px 0 30px; text-align: center; }
.foot-bye { padding: 0 16px; font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); color: #fff; }
.eggs { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 8px 18px; border: 3px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(255, 255, 255, .06); font-weight: 800; font-size: .88rem; }
.eggs-dots { display: inline-flex; gap: 7px; }
.eggs-dots i { width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, .3); border-radius: 6px; background: transparent; transition: background .4s, transform .5s var(--ease-pop), border-color .4s; }
.eggs-dots i.on { border-color: #fff; background: var(--c); transform: rotate(14deg) scale(1.2); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 10px; padding-top: 20px; border-top: 2px dashed rgba(255, 255, 255, .2); font-size: .9rem; }
.foot-in img { width: 46px; height: 46px; border-radius: 50%; }
.foot-in a { display: inline-flex; align-items: center; gap: 6px; color: var(--sun) !important; font-weight: 900; text-decoration: none; }

/* спрятанные игрушки (пасхалка) */
.toy { position: absolute; z-index: 4; width: 38px; height: 38px; margin: -19px 0 0 -19px; padding: 3px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.toy svg { width: 100%; height: 100%; }
.toy.got { pointer-events: none; }

/* ---------- Летящее: конфетти, змеи, игрушки ---------- */
.sky-layer { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.conf { position: fixed; left: 0; top: 0; z-index: 74; width: 12px; height: 12px; border: 2px solid var(--ink); pointer-events: none; }
.fx-kite { position: absolute; left: 0; top: 0; width: 84px; height: auto; overflow: visible; }
.fx-toy { position: absolute; left: 0; top: 0; width: 40px; height: 40px; }
.fx-toy svg { width: 100%; height: 100%; }

/* ---------- Движение (только если посетитель не просил его уменьшить) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(36px) rotate(-1deg); transition: opacity .6s ease, transform .8s var(--ease-pop); transition-delay: var(--delay, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .js .eyebrow, .js .hero-tag, .js .hero-lead, .js .hero-actions, .js .hero-hint { animation: rise .8s var(--ease-pop) both; }
  .js .eyebrow { animation-delay: .1s; } .js .hero-tag { animation-delay: 1.1s; } .js .hero-lead { animation-delay: 1.25s; } .js .hero-actions { animation-delay: 1.4s; } .js .hero-hint { animation-delay: 1.6s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  .js .blk { animation: blk-in .8s calc(var(--i) * .12s + .2s) var(--ease-pop) both; }
  @keyframes blk-in { from { opacity: 0; transform: translateY(-160px) rotate(-30deg); } }
  .blk.is-flip span { animation: blk-flip .7s var(--ease-pop); }
  @keyframes blk-flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg) scale(1.2); } 100% { transform: rotateY(360deg); } }
  .cloud { animation: drift 28s ease-in-out infinite alternate; }
  .cl-2, .gc-2, .fc-2 { animation-duration: 36s; animation-delay: -9s; } .cl-3 { animation-duration: 32s; animation-delay: -14s; }
  @keyframes drift { from { transform: translateX(-34px); } to { transform: translateX(44px); } }
  .deco-kite { animation: kite-fly 7s ease-in-out infinite alternate; }
  .dk-2 { animation-duration: 8.5s; animation-delay: -3s; } .dk-3 { animation-duration: 6.5s; animation-delay: -5s; }
  @keyframes kite-fly { from { transform: translate(-6px, 8px) rotate(-7deg); } to { transform: translate(12px, -14px) rotate(8deg); } }
  .kite-body, .kl-kite svg { animation: k-sway 4s ease-in-out infinite alternate; }
  .gk .kite-body { animation-duration: 4.6s; }
  .flock-li:nth-child(2) .gk .kite-body { animation-delay: -1.5s; } .flock-li:nth-child(3) .gk .kite-body { animation-delay: -3s; }
  @keyframes k-sway { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
  .kite-body { transform-origin: 0 0; }
  .er-tl { animation: tl-wave 2.2s calc(var(--i) * -.28s) ease-in-out infinite alternate; }
  @keyframes tl-wave { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
  .dict-kite { animation: kite-fly 5s ease-in-out infinite alternate; }
  .portrait-ring { animation: spin 40s linear infinite; }
  .portrait-kite { animation: kite-fly 6s ease-in-out infinite alternate; }
  @keyframes spin { to { rotate: 360deg; } }
  .sticker.is-spin .st-shape, .sticker.is-spin .st-text { animation: st-spin .9s var(--ease-pop); }
  @keyframes st-spin { to { transform: rotate(360deg); } }
  .club.is-playing .club-ico { animation: boing .6s var(--ease-pop) 2; }
  @keyframes boing { 40% { transform: scale(1.14) rotate(-8deg); } 70% { transform: scale(.95) rotate(4deg); } }
  .tree-btn { animation: tsway 5s calc(var(--i) * -.9s) ease-in-out infinite alternate; }
  @keyframes tsway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
  .tree-btn.shake { animation: tshake .7s ease-in-out; }
  @keyframes tshake { 15% { transform: rotate(-5deg); } 35% { transform: rotate(5deg); } 55% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
  .toy { animation: toy-bob 3s calc(var(--d, 0) * -1s) ease-in-out infinite; }
  @keyframes toy-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(10deg); } }
  .toy.got { animation: toy-got .9s var(--ease-pop) forwards; }
  @keyframes toy-got { 40% { transform: translateY(-46px) scale(1.5) rotate(180deg); opacity: 1; } 100% { transform: translateY(-100px) scale(.2) rotate(360deg); opacity: 0; } }
  .kite-art.up { animation: kite-up 1.7s cubic-bezier(.3, .7, .3, 1) both; }
  @keyframes kite-up { 0% { transform: none; } 40% { transform: translateY(-60px) rotate(-8deg) scale(1.1); } 100% { transform: none; } }
  .kl-kite svg { animation-duration: 2.6s; transform-origin: 50% 15%; }

  /* логотип: живые части */
  .er-kite { animation: k-sway 4.5s ease-in-out infinite alternate; }
  .er-sun { animation: bob 5s ease-in-out infinite alternate; }
  @keyframes bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
  .er-rays { animation: spin 24s linear infinite; }
  .er-dots { animation: spin 90s linear infinite; }
  .er-c1 { animation: drift 20s ease-in-out infinite alternate; } .er-c2 { animation: drift 26s -8s ease-in-out infinite alternate-reverse; } .er-c3 { animation: drift 18s -4s ease-in-out infinite alternate; }
  .er-let { animation: let-wave 4.2s calc(var(--i) * .13s + 3s) ease-in-out infinite; }
  @keyframes let-wave { 0%, 28%, 100% { transform: none; } 12% { transform: translateY(-9px) scale(1.04, .98); } 20% { transform: translateY(0) scale(.98, 1.04); } }
  .er-kid { animation: kid-bob 3.4s ease-in-out infinite alternate; }
  .er-girl { animation-delay: -1.7s; }
  @keyframes kid-bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
  .er-wave { animation: wave-arm 1.1s ease-in-out infinite alternate; }
  @keyframes wave-arm { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
  .er-kid.hop { animation: hop .75s cubic-bezier(.3, 1.4, .5, 1); }
  @keyframes hop { 40% { transform: translateY(-30px) rotate(-3deg); } 72% { transform: translateY(0); } 86% { transform: translateY(-5px); } }
  .er-logo.loop .er-kite { animation: kite-loop 1.7s cubic-bezier(.5, 0, .3, 1); }
  @keyframes kite-loop { 0% { transform: rotate(0) scale(1); } 45% { transform: rotate(210deg) scale(1.18); } 100% { transform: rotate(360deg) scale(1); } }
  .er-logo.gust .er-tl { animation-duration: .45s; }
  .er-logo.gust .er-kite { animation-duration: 1.2s; }

  /* вступление логотипа: значок вспыхивает, горы вырастают, дети выглядывают, змей взлетает, буквы падают на вывеску */
  .js .er-logo.is-intro { animation: badge-in .9s var(--ease-pop) both; }
  @keyframes badge-in { from { opacity: 0; transform: scale(.6) rotate(-14deg); } }
  .js .is-intro .er-mt { animation: mt-up .9s .25s var(--ease-pop) both; }
  @keyframes mt-up { from { transform: translateY(80px); } }
  .js .is-intro .er-sun { animation: sun-in .9s .5s var(--ease-pop) both, bob 5s 1.4s ease-in-out infinite alternate; }
  @keyframes sun-in { from { transform: scale(0) rotate(-90deg); } }
  .js .is-intro .er-kid { animation: kid-up .8s calc(.9s + var(--k, 0) * .15s) var(--ease-pop) both, kid-bob 3.4s 2s ease-in-out infinite alternate; }
  .js .is-intro .er-girl { --k: 1; }
  @keyframes kid-up { from { transform: translateY(110px); } }
  .js .is-intro .er-string { animation: draw 1s 1.3s ease-out both; }
  @keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
  .js .is-intro .er-kite { animation: kite-in 1.3s 1.2s cubic-bezier(.2, 1.3, .4, 1) both, k-sway 4.5s 2.6s ease-in-out infinite alternate; }
  @keyframes kite-in { from { transform: scale(0) rotate(-50deg); } }
  .js .is-intro .er-let { animation: let-in .8s calc(1.7s + var(--i) * .1s) var(--ease-pop) both, let-wave 4.2s calc(var(--i) * .13s + 4s) ease-in-out infinite; }
  @keyframes let-in { from { opacity: 0; transform: translateY(-150px) scale(.6) rotate(-14deg); } }
  .js .is-intro .er-sub { animation: sub-in .6s 2.4s ease-out both; }
  @keyframes sub-in { from { opacity: 0; transform: translateY(14px); } }
}

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

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) { .menu a { padding: 8px 9px; font-size: .86rem; } .brand-text small { display: none; } }
@media (max-width: 1100px) {
  .chip-menu { display: inline-flex; }
  .chip-call span { display: none; }
  .chip-call { width: 44px; padding: 0; justify-content: center; }
  .menu { position: absolute; top: calc(var(--bar-h) + 2px); left: 12px; right: 12px; display: none; flex-direction: column; gap: 4px; padding: 14px; border: 4px solid var(--ink); border-radius: 26px; background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 18px; font-size: 1.05rem; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-bottom: 130px; }
  .hero-text { justify-items: center; order: 2; }
  .blocks { justify-content: center; }
  .hero-logo { order: 1; }
  .er-logo { width: min(100%, 440px); }
  .hero-actions { justify-content: center; }
  .about-grid, .contact-grid, .docs-grid { grid-template-columns: 1fr; }
  .dict { max-width: 560px; margin-inline: auto; }
  .about-text { justify-items: center; text-align: center; }
  .leaders { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .flock { grid-template-columns: minmax(0, 1fr); max-width: 380px; margin-inline: auto; gap: 40px; }
  .flock-li:nth-child(2) { margin-top: 0; }
  .kite-art { width: 150px; }
  .dk-3 { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .brand-text strong { font-size: 1.6rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .form { padding: 48px 20px 28px; }
  .seal { width: 64px; height: 64px; top: -28px; right: 18px; }
  .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); }
  .sticker { width: 136px; height: 136px; }
  .st-text b { font-size: 2.2rem; } .st-text b.b-sm { font-size: 1.12rem; } .st-text b.b-xs { font-size: 1.1rem; max-width: 86px; } .st-text small { font-size: .66rem; max-width: 86px; }
  .club-open { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .club-body { justify-items: center; }
  .dict { padding: 30px 22px 24px; }
  .dict-kite { right: 8px; top: -60px; width: 58px; }
  .portrait { width: 180px; height: 180px; }
  .leader { padding: 30px 20px 26px; }
  .cl-1, .cl-2 { display: none; }
  .dk-1 { top: 11%; width: 54px; } .dk-2 { top: 6%; width: 50px; }
  .orchard { min-height: 150px; }
  .kl-kite { width: 22px; }
}
@media (max-width: 420px) {
  .top-in { gap: 6px; width: calc(100% - 20px); }
  .brand img { width: 42px; height: 42px; }
  .brand-text strong { font-size: 1.4rem; }
  .chip { min-height: 40px; padding: 0 12px; }
  .chip-menu, .chip-call { width: 40px; padding: 0; }
}
