/* Бақытты Шақ: день под небом. Страница идёт от утра (08:00) к вечеру (19:00),
   а карточки повторяют логотип: салатовая обводка и зелёная «толщина» снизу. */

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

:root {
  /* из логотипа */
  --blue: #0a8ef0;
  --blue-deep: #0b5fae;
  --orange: #ff7315;
  --amber: #ffbc05;
  --green: #0a9a4e;
  --green-deep: #07773c;
  --lime: #d4d000;
  --coral: #f58e5e;
  --leaf: #83c94b;
  --cream: #f6f0e4;
  /* текст */
  --ink: #12315c;
  --ink-soft: #46618a;
  --paper: #fffdf8;
  /* небо: меняется при прокрутке (js/main.js) */
  --sky-top: #bfe8ff;
  --sky-bottom: #fff6dc;
  --dusk: #1f2460;
  --dusk-deep: #141740;
  --display: "Rubik", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sticker: 0 0 0 4px var(--lime), 0 12px 0 4px var(--green);
  --dock-space: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--sky-bottom);
  font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--blue-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 800; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 900; text-wrap: balance; }
h3 { font-size: 1.3rem; }
.kicker { font-family: var(--display); font-weight: 800; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 8px; }
.lede { margin-top: 12px; font-size: 1.14rem; color: var(--ink-soft); max-width: 58ch; text-wrap: pretty; }
.head { margin-bottom: 36px; }
.head-center { text-align: center; }
.head-center .lede { margin-inline: auto; }

/* ---------- Небо ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); }
.sky-sun {
  position: absolute; left: 0; top: 0; width: clamp(76px, 10vw, 132px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff3b0 0 42%, var(--amber) 62%, #ffbc0500 72%);
  transform: translate(var(--sun-x, 8vw), var(--sun-y, 16vh));
}
.sky-cloud { position: absolute; opacity: .75; animation: drift 90s linear infinite; }
.sky-cloud-a { width: 240px; top: 14%; left: -260px; }
.sky-cloud-b { width: 150px; top: 42%; left: -260px; animation-duration: 130s; animation-delay: -60s; opacity: .55; }
.sky-cloud-c { width: 320px; top: 68%; left: -340px; animation-duration: 160s; animation-delay: -30s; opacity: .6; }
@keyframes drift { to { transform: translateX(calc(100vw + 400px)); } }

/* ---------- Уголок: телефон и язык ---------- */
.corner { position: absolute; top: 14px; right: 16px; z-index: 30; display: flex; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 0 rgba(18, 49, 92, .14);
}
.chip:hover { color: var(--blue-deep); }
.chip-lang { min-width: 44px; justify-content: center; padding: 0 10px; font-family: var(--display); }

/* ---------- Первый экран ---------- */
.hero {
  min-height: 100svh; padding: 24px 20px calc(var(--dock-space) + 12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.hero-logo { width: min(100%, 680px, calc(52svh * 1.182)); }
h1 { margin-top: 14px; }
.hero-name { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(.98rem, .9rem + .4vw, 1.2rem); color: var(--blue-deep); }
.hero-title { display: block; margin-top: 4px; font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.7rem); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.hero-lead { margin-top: 10px; font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 20px; }
.hero-more { display: none; }
@media (min-height: 860px) {
  .hero-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--ink-soft); font-weight: 700; text-decoration: none; }
  .hero-more .ico { animation: nudge 1.8s ease-in-out infinite; }
}
@keyframes nudge { 50% { transform: translateY(5px); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 999px; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 1.04rem; text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.btn-main { background: var(--blue-deep); color: #fff; box-shadow: 0 6px 0 #083f75; }
.btn-soft { background: #fff; color: var(--ink); box-shadow: 0 6px 0 rgba(18, 49, 92, .22); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #083f75; }

/* ---------- Живой логотип ---------- */
.ll { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; --mx: 0; --my: 0; }
.ll-stage { position: relative; display: block; width: 100%; aspect-ratio: 922 / 780; }
.ll-float, .ll-front, .ll-word { position: absolute; inset: 0; display: block; }
.ll-part { position: absolute; display: block; }
.ll-part img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.ll-float { transform: translate(calc(var(--mx) * 5px), calc(var(--my) * 4px)); }
.ll-word { transform: translate(calc(var(--mx) * 4px), calc(var(--my) * 3px)); }
.ll-front { transform: translate(calc(var(--mx) * 16px), calc(var(--my) * 12px)); pointer-events: none; }

.ll-gloss {
  position: absolute; inset: 0; display: block;
  -webkit-mask: url("../assets/logo/parts/rainbow.webp") center / 100% 100% no-repeat;
  mask: url("../assets/logo/parts/rainbow.webp") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, #fff0 42%, #ffffffb8 50%, #fff0 58%) 130% 0 / 300% 100% no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  /* Сборка логотипа: облако надувается, радуга встаёт, буквы падают, звёзды разлетаются */
  .ll-cloud { animation: ll-puff .95s cubic-bezier(.3, 1.5, .5, 1) both; transform-origin: 50% 60%; }
  .ll-rainbow { animation: ll-rise 1.15s .45s cubic-bezier(.25, 1.25, .45, 1) both; }
  .ll-letter { animation: ll-drop .75s calc(.95s + var(--i) * 65ms) cubic-bezier(.3, 1.6, .5, 1) both; }
  .ll-star, .ll-drop { animation: ll-burst .85s calc(1.55s + var(--i) * 70ms) cubic-bezier(.2, 1.4, .4, 1) both; }

  /* Потом он живёт: плывёт, блестит, буквы волной подпрыгивают, звёзды мерцают */
  .ll-stage { animation: ll-bob 6.5s 2.6s ease-in-out infinite; }
  .ll-gloss { animation: ll-shine 6s 2.4s ease-in-out infinite; }
  .ll-letter img { animation: ll-wave 7s calc(3.4s + var(--i) * 95ms) ease-in-out infinite; transform-origin: 50% 90%; }
  .ll-star img { animation: ll-twinkle calc(2.6s + var(--i) * .45s) calc(2.6s + var(--i) * .3s) ease-in-out infinite alternate; }
  .ll-drop img { animation: ll-sway calc(3.2s + var(--i) * .5s) 2.6s ease-in-out infinite alternate; }
  .ll-drop1 img, .ll-drop3 img { transform-origin: 100% 60%; }
  .ll-drop2 img, .ll-drop4 img { transform-origin: 0 90%; }
  .ll.is-paused *, .ll.is-paused { animation-play-state: paused; }
}
@keyframes ll-puff { from { transform: scale(.1, .05); opacity: 0; } 55% { transform: scale(1.08, .94); opacity: 1; } 80% { transform: scale(.97, 1.03); } to { transform: none; opacity: 1; } }
@keyframes ll-rise { from { transform: translateY(58%) scale(.72); opacity: 0; } 25% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes ll-drop { from { transform: translateY(-420%) rotate(calc((var(--i) - 5) * 7deg)); opacity: 0; } 35% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes ll-burst { from { transform: translate(var(--fx), var(--fy)) scale(.1) rotate(-160deg); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes ll-bob { 50% { transform: translateY(-1.6%); } }
@keyframes ll-shine { 0%, 62% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes ll-wave { 0%, 11%, 100% { transform: none; } 4% { transform: translateY(-16%) scale(1.04, .98) rotate(-3deg); } 8% { transform: translateY(2%) scale(1.03, .96); } }
@keyframes ll-twinkle { from { transform: scale(.86) rotate(-10deg); opacity: .8; } to { transform: scale(1.1) rotate(12deg); opacity: 1; } }
@keyframes ll-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg) scale(1.05); } }
.ll-spark { position: fixed; z-index: 50; width: 34px; pointer-events: none; }

/* ---------- Облачные полосы (свои края из кружков) ---------- */
.band { position: relative; background: var(--paper); padding: 72px 0 84px; margin-block: 72px; }
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 50px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, var(--paper) 0 43px, #fff0 44px) 0 100% / 86px 44px repeat-x,
    radial-gradient(circle at 50% 100%, var(--paper) 0 49px, #fff0 50px) 37px 100% / 144px 50px repeat-x;
}
.band::before { bottom: calc(100% - 1px); }
.band::after { top: calc(100% - 1px); transform: scaleY(-1); }
.open { padding: 44px 0 40px; }
.open .kicker { color: var(--ink); }

/* ---------- Куәлік / паспорт ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.ticket { position: relative; background: #fff; border-radius: 30px; box-shadow: var(--sticker); overflow: hidden; }
.ticket-rainbow { height: 16px; background: linear-gradient(90deg, var(--orange) 0 25%, var(--amber) 25% 50%, var(--green) 50% 75%, var(--blue) 75%); }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px 18px; border-bottom: 3px dashed #d9e3ef; }
.ticket-label { font-family: var(--display); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); filter: brightness(.82); }
.ticket-name { margin-top: 2px; font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.2; }
.ticket-stamp { flex: none; width: 84px; height: 84px; transform: rotate(9deg); }
.ticket-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 8px 28px 22px; }
.ticket-list > div { padding: 13px 0; border-bottom: 1px solid #e8eef6; min-width: 0; }
.ticket-list > div.wide { grid-column: 1 / -1; }
.ticket-list > div:last-child { border-bottom: 0; }
.ticket-list dt { font-size: .84rem; font-weight: 800; color: var(--ink-soft); }
.ticket-list dd { font-weight: 800; font-size: 1.06rem; overflow-wrap: anywhere; }
.ticket-list a { text-decoration: none; }
.ticket-list a:hover { text-decoration: underline; }
.ticket-list a.inline { display: inline-block; margin-left: 6px; font-weight: 700; font-size: .92rem; text-decoration: underline; }

.about-side { display: grid; gap: 34px; }
.puffs { display: flex; gap: 18px; }
.puff { position: relative; flex: 1; display: grid; justify-items: center; align-content: center; aspect-ratio: 1.55; padding-top: 8%; text-align: center; color: #fff; }
.puff::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--puff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 110' preserveAspectRatio='none'%3E%3Cpath d='M52 110a42 42 0 0 1-8-83 52 52 0 0 1 98-14 38 38 0 0 1 58 30 34 34 0 0 1 2 67Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 110' preserveAspectRatio='none'%3E%3Cpath d='M52 110a42 42 0 0 1-8-83 52 52 0 0 1 98-14 38 38 0 0 1 58 30 34 34 0 0 1 2 67Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.puff strong { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.2rem); line-height: 1; }
.puff span { font-weight: 800; font-size: 1.02rem; }
.puff-a { --puff: var(--green-deep); filter: drop-shadow(0 7px 0 #055a2c); }
.puff-b { --puff: var(--blue-deep); filter: drop-shadow(0 7px 0 #083f75); }
.puffs { isolation: isolate; }

.boss { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px; background: var(--cream); border-radius: 28px; }
.boss-photo { aspect-ratio: 1; border-radius: 48% 52% 46% 54% / 54% 48% 52% 46%; overflow: hidden; background: #fff; }
.boss-photo img { width: 100%; height: 100%; object-fit: cover; }
.boss-blank { display: grid; place-items: center; height: 100%; color: var(--amber); }
.boss-blank .ico { width: 56px; height: 56px; fill: currentColor; stroke-width: 1; }
.boss .kicker { margin-bottom: 2px; }
.boss-role { color: var(--ink-soft); font-weight: 700; }
.boss-text p + p { margin-top: 6px; }

/* ---------- Группы: четыре дуги-ступени ---------- */
.tone-green { --tone: var(--green-deep); --tone-ink: #fff; --tone-edge: #055a2c; }
.tone-amber { --tone: var(--amber); --tone-ink: var(--ink); --tone-edge: #d39800; }
.tone-orange { --tone: var(--orange); --tone-ink: #1d1208; --tone-edge: #c9530a; }
.tone-blue { --tone: var(--blue-deep); --tone-ink: #fff; --tone-edge: #083f75; }
.tone-coral { --tone: var(--coral); --tone-ink: #2a140a; --tone-edge: #cb6a3d; }

.arches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.arch {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  min-height: calc(310px + var(--step) * 52px); padding: 92px 18px 24px;
  border-radius: 999px 999px 26px 26px; background: var(--tone); color: var(--tone-ink); box-shadow: 0 10px 0 var(--tone-edge);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1);
}
.arch::before { content: ""; position: absolute; inset: 14px 14px auto; aspect-ratio: 1; border-radius: 50%; border: 3px solid currentColor; opacity: .3; clip-path: inset(0 0 72% 0); }
.arch:hover { transform: translateY(-8px); }
.arch-num { font-family: var(--display); font-weight: 900; font-size: 3.2rem; line-height: 1; }
.arch h3 { margin-top: 8px; font-size: 1.28rem; }
.arch p { margin-top: 8px; font-weight: 700; font-size: .98rem; line-height: 1.35; }
.arch a { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: inherit; font-weight: 800; font-size: .94rem; text-underline-offset: 3px; }

.extras-block { margin-top: 84px; }
.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.extra { display: flex; flex-direction: column; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--sticker); margin: 4px; }
.extra-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tone); color: var(--tone-ink); }
.extra-cover img { width: 100%; height: 100%; object-fit: cover; }
.extra-belt { position: absolute; left: -10%; right: -10%; top: 58%; height: 30px; background: #fff; opacity: .9; transform: rotate(-5deg); box-shadow: 0 0 0 5px var(--tone-edge); }
.extra-word { position: absolute; left: 22px; top: 16px; font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; }
.extra-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.extra-body a { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-weight: 800; }
.extra-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-weight: 800; color: var(--ink-soft); }
.extras-solo { grid-template-columns: minmax(0, 760px); }
@media (min-width: 720px) {
  .extras-solo .extra { flex-direction: row; }
  .extras-solo .extra-cover { flex: 1.1; aspect-ratio: auto; min-height: 210px; }
  .extras-solo .extra-body { flex: 1; justify-content: center; }
  .extras-solo .extra-body a { margin-top: 6px; }
}

/* ---------- Фотоальбом ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { min-height: 44px; padding: 0 18px; border: 2px solid #cfdcec; border-radius: 999px; background: #fff; cursor: pointer; font-weight: 800; }
.tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.film-wrap { position: relative; }
.film { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x proximity; padding: 16px 6px 30px; scrollbar-width: thin; }
.film > .snap { flex: 0 0 clamp(230px, 28vw, 320px); scroll-snap-align: start; background: #fff; padding: 12px 12px 8px; border-radius: 8px; box-shadow: 0 10px 28px rgba(18, 49, 92, .16); transition: transform .25s; }
.film > .snap[hidden] { display: none; }
.film > .snap:nth-child(3n + 1) { transform: rotate(-2deg); }
.film > .snap:nth-child(3n + 2) { transform: rotate(1.4deg) translateY(8px); }
.film > .snap:nth-child(3n) { transform: rotate(-.6deg); }
.film > .snap:hover { transform: none; }
.snap figcaption { padding: 8px 2px 2px; text-align: center; font-weight: 800; font-size: .96rem; }
.photo-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-btn img, .snap-blank { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.snap-blank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; text-align: center; background: var(--cream); color: var(--ink-soft); font-size: .88rem; font-weight: 700; }
.snap-blank .ico { width: 42px; height: 42px; color: var(--blue); }
.film-nav { position: absolute; top: 42%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; }
.film-prev { left: -14px; }
.film-next { right: -14px; }
.film-empty-note { margin-top: 4px; }

/* ---------- Новости: разворот ---------- */
.paper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.story { background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--sticker); margin: 4px; }
.story:first-child:not(:only-child) { grid-column: 1 / -1; }
.story-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.story-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.story:hover .story-img img { transform: scale(1.04); }
.story-img-empty { display: grid; place-items: center; background: linear-gradient(180deg, var(--orange) 0 25%, var(--amber) 25% 50%, var(--leaf) 50% 75%, var(--blue) 75%); }
.story-img-empty span { padding: 6px 16px; border-radius: 999px; background: #fff; font-family: var(--display); font-weight: 800; }
.story-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(18, 49, 92, .82); color: #fff; font-weight: 800; font-size: .88rem; }
.story-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.story-body time { font-weight: 800; font-size: .88rem; color: var(--ink-soft); }
.story-title { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.story-excerpt { color: var(--ink-soft); }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-weight: 800; color: var(--blue-deep); }
@media (min-width: 860px) {
  .story:first-child:not(:only-child) .story-open { flex-direction: row; }
  .story:first-child:not(:only-child) .story-img { flex: 1.25; aspect-ratio: auto; min-height: 320px; }
  .story:first-child:not(:only-child) .story-body { flex: 1; justify-content: center; padding: 30px; }
  .story:first-child:not(:only-child) .story-title { font-size: 1.8rem; }
  .story:first-child:not(:only-child) .story-more { margin-top: 8px; }
}
.story:only-child { max-width: 560px; }
.note-cloud { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; border-radius: 999px; background: #fff; font-weight: 800; color: var(--ink-soft); }
.note-cloud .ico { color: var(--blue); width: 28px; height: 28px; }

.news-dialog { width: min(760px, calc(100% - 24px)); max-height: 90vh; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); overflow: auto; }
.news-dialog::backdrop { background: rgba(18, 49, 92, .6); }
.nd-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 3px 0 rgba(18, 49, 92, .2); }
.nd-stage { position: relative; background: #0f1e36; }
.nd-img { width: 100%; height: min(58vh, 460px); object-fit: contain; }
.nd-nav { position: absolute; top: 50%; transform: translateY(-50%); display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); cursor: pointer; }
.nd-prev { left: 12px; }
.nd-next { right: 12px; }
.nd-counter { position: absolute; left: 12px; bottom: 12px; display: none; padding: 3px 11px; border-radius: 999px; background: rgba(18, 49, 92, .82); color: #fff; font-weight: 800; font-size: .86rem; }
.has-many .nd-nav { display: grid; }
.has-many .nd-counter { display: block; }
.nd-thumbs { display: none; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--cream); }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 3px solid #fff0; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.nd-thumbs button.is-active { border-color: var(--blue-deep); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 24px 26px 32px; }
.nd-gallery[hidden] + .nd-body { padding-top: 56px; }
.nd-body time { font-weight: 800; color: var(--ink-soft); }
.nd-body h3 { font-size: 1.6rem; margin: .3em 0 .6em; }
#ndText { overflow-wrap: anywhere; }

/* ---------- Документы и вакансии ---------- */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.folders { display: grid; gap: 34px; padding-top: 18px; }
.folder { position: relative; padding: 22px 24px; background: var(--cream); border-radius: 0 22px 22px 22px; }
.folder::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 150px; height: 18px; background: var(--cream); border-radius: 14px 14px 0 0; }
.folder-attestation, .folder-attestation::before { background: #e3f2ff; }
.folder-other, .folder-other::before { background: #e8f7e4; }
.folder h3 { display: flex; align-items: center; gap: 10px; }
.folder p, .folder ul { margin-top: 10px; }
.folder li + li { margin-top: 10px; }
.folder li a { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 800; }
.folder li a .ico { margin-top: .2em; }
.folder small { display: block; margin-left: 2em; color: var(--ink-soft); }
.board { padding: 26px; background: #fff; border-radius: 26px; box-shadow: var(--sticker); margin: 4px 4px 14px; transform: rotate(.8deg); }
.job { border-top: 1px solid #e3eaf3; margin-top: 12px; padding-top: 12px; }
.job summary { cursor: pointer; font-weight: 800; }
.job time { display: block; font-weight: 700; font-size: .86rem; color: var(--ink-soft); }
.job p { margin-top: 8px; }
.board h3 + .muted { margin-top: 10px; }

/* ---------- Вечер: контакты ---------- */
.dusk { position: relative; padding: 64px 0 var(--dock-space); margin-top: 100px; background: linear-gradient(180deg, var(--dusk), var(--dusk-deep)); color: #fff; }
.dusk::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 50px;
  background:
    radial-gradient(circle at 50% 100%, var(--dusk) 0 43px, #fff0 44px) 0 100% / 86px 44px repeat-x,
    radial-gradient(circle at 50% 100%, var(--dusk) 0 49px, #fff0 50px) 37px 100% / 144px 50px repeat-x;
}
.dusk-sky {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, #fff0), radial-gradient(2px 2px at 26% 44%, #fff, #fff0),
    radial-gradient(1.5px 1.5px at 41% 12%, #fff, #fff0), radial-gradient(2px 2px at 58% 30%, #ffe9a0, #fff0),
    radial-gradient(1.5px 1.5px at 72% 8%, #fff, #fff0), radial-gradient(2px 2px at 86% 26%, #fff, #fff0),
    radial-gradient(1.5px 1.5px at 8% 70%, #fff, #fff0), radial-gradient(2px 2px at 48% 62%, #ffe9a0, #fff0),
    radial-gradient(1.5px 1.5px at 92% 66%, #fff, #fff0), radial-gradient(1.5px 1.5px at 34% 86%, #fff, #fff0);
}
.moon { position: absolute; left: 44%; top: 26px; width: 76px; height: 76px; border-radius: 50%; box-shadow: inset -20px -6px 0 0 #ffe9a0; transform: rotate(-16deg); }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.dusk .kicker { color: var(--amber); }
.dusk .lede { color: #cfd8f0; }
.contact-phone { display: inline-block; margin-top: 20px; font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); color: #fff; text-decoration: none; }
.contact-phone:hover { color: var(--amber); }
.contact-list { display: grid; gap: 12px; margin-top: 18px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.contact-list .ico { margin-top: .2em; color: var(--amber); }
.dusk a:not(.btn):not(.contact-phone) { color: #fff; }
.social-label { margin-top: 28px; font-weight: 800; color: #cfd8f0; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .13); font-weight: 800; text-decoration: none; }
.socials a:hover { background: rgba(255, 255, 255, .24); }

.form { padding: 26px; background: #fff; color: var(--ink); border-radius: 26px; box-shadow: 0 0 0 4px var(--lime), 0 12px 0 4px var(--green); }
.form label { display: block; margin: 14px 0 4px; font-size: .9rem; font-weight: 800; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 2px solid #cfdcec; border-radius: 14px; background: #fff; font: inherit; color: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue-deep); outline: 0; }
.form .btn { width: 100%; margin-top: 18px; }
.hp-field { position: absolute; left: -9999px; }
.form-note { display: none; margin-top: 14px; font-weight: 800; color: var(--green-deep); }
.form-note.show { display: block; }
.form-note.error { color: #b3261e; }
.consent { margin-top: 12px; font-size: .82rem; color: var(--ink-soft); }
.foot { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 52px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); color: #cfd8f0; font-size: .94rem; }
.foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }

/* ---------- Панель навигации снизу ---------- */
.dock {
  position: fixed; left: 50%; bottom: 14px; z-index: 30; transform: translateX(-50%);
  display: flex; align-items: stretch; gap: 2px; max-width: calc(100vw - 16px); padding: 6px;
  background: #fff; border-radius: 26px; box-shadow: 0 0 0 3px var(--lime), 0 7px 0 3px var(--green), 0 18px 34px rgba(18, 49, 92, .26);
}
.dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 76px; min-height: 52px; padding: 4px 8px;
  border-radius: 20px; color: var(--ink); font-weight: 800; font-size: .76rem; line-height: 1.15; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s;
}
.dock a .ico { width: 21px; height: 21px; }
.dock a:hover { background: #eaf4ff; }
.dock a.is-active { background: var(--blue-deep); color: #fff; }
.dock-clock { display: flex; align-items: center; gap: 8px; padding: 0 14px 0 10px; margin-right: 4px; border-right: 2px solid #e8eef6; }
.dock-clock i { width: 20px; height: 20px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px #ffbc0540; }
.dock-clock b { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }

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

/* ---------- Появление при прокрутке ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .6s ease, transform .6s cubic-bezier(.25, 1.3, .5, 1); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .board.reveal.is-in { transform: rotate(.8deg); }
  .js .arch.reveal.is-in { transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), opacity .6s; transition-delay: 0ms; }
  .js .arch.reveal.is-in:hover { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky-cloud, .hero-more .ico { animation: none; }
}

/* ---------- Планшет и телефон ---------- */
@media (max-width: 960px) {
  .about-grid, .docs-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .arches { grid-template-columns: 1fr 1fr; }
  .arch { min-height: 300px; }
  .dock-clock { display: none; }
}
@media (max-width: 640px) {
  :root { --dock-space: 92px; }
  .wrap { width: calc(100% - 32px); }
  .band { padding: 44px 0 56px; margin-block: 56px; }
  .band::before, .band::after { height: 34px; background-size: 58px 30px, 96px 34px; background-image: radial-gradient(circle at 50% 100%, var(--paper) 0 29px, #fff0 30px), radial-gradient(circle at 50% 100%, var(--paper) 0 33px, #fff0 34px); }
  .dusk::before { height: 34px; background-size: 58px 30px, 96px 34px; background-image: radial-gradient(circle at 50% 100%, var(--dusk) 0 29px, #fff0 30px), radial-gradient(circle at 50% 100%, var(--dusk) 0 33px, #fff0 34px); }
  .moon { left: auto; right: 20px; top: 8px; width: 58px; height: 58px; box-shadow: inset -15px -4px 0 0 #ffe9a0; }
  .hero { padding-top: 66px; }
  .hero-logo { width: min(100%, calc(40svh * 1.182)); }
  .hero-actions { flex-direction: column; align-self: stretch; }
  .btn { width: 100%; }
  .chip-phone span { display: none; }
  .chip-phone { width: 44px; padding: 0; justify-content: center; }
  .ticket-top { padding: 18px 20px 14px; }
  .ticket-stamp { width: 62px; height: 62px; }
  .ticket-list { grid-template-columns: minmax(0, 1fr); padding: 4px 20px 16px; }
  .arches { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .arch { min-height: 0; padding: 20px 22px 22px 88px; text-align: left; align-items: flex-start; border-radius: 26px 90px 90px 26px; }
  .arch::before { display: none; }
  .arch-num { position: absolute; left: 24px; top: 20px; }
  .arch h3 { margin-top: 0; }
  .extras { grid-template-columns: minmax(0, 1fr); }
  .paper { grid-template-columns: minmax(0, 1fr); }
  .film > .snap { flex-basis: 76vw; }
  .film-nav { display: none; }
  .boss { grid-template-columns: 88px minmax(0, 1fr); padding: 16px; gap: 14px; }
  .dock { left: 8px; right: 8px; bottom: 8px; max-width: none; transform: none; justify-content: space-between; padding: 4px; border-radius: 22px; }
  .dock a { flex: 1 1 0; min-width: 0; padding: 4px 1px; font-size: .62rem; letter-spacing: -.01em; }
  .dock a .ico { width: 20px; height: 20px; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox img { max-width: 72vw; }
}
