/* ==========================================================================
   Los—IT · main.css
   Дизайн-система: бетонный серый + чернила + фирменный зелёный + кислотный лайм.
   Шрифты: Unbounded (заголовки), Onest (текст), JetBrains Mono (метки).
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; 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+20BD, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD, U+2192, U+2190, U+2197; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; 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+20BD, U+2122, U+2190-2193, U+2197, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+20BD; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+20BD; }

/* ---------- Tokens ---------- */
:root {
  --bg: #e5e5e0;
  --bg-2: #d8d8d2;
  --paper: #f6f6f1;
  --ink: #0d0d10;
  --ink-2: #18181c;
  --muted: #6d6d68;
  --muted-dark: #9d9d97;
  --line: rgba(13, 13, 16, .12);

  --green: #069d7c;
  --lime: #c8ff2e;
  --coral: #ff5c39;
  --lilac: #a99bff;
  --sky: #8fd3ff;
  --sun: #ffe14d;

  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r-s: 14px;
  --r-m: 24px;
  --r-l: 32px;
  --r-xl: 44px;

  --pad: clamp(16px, 3.2vw, 44px);
  --max: 1440px;
  --sec: clamp(80px, 11vw, 170px);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Плёночное зерно поверх всего */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: calc(var(--sec) * .6); }
.section--flush-top { padding-top: 0; }
.section--flush { padding-block: 0; }
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: var(--muted-dark); }

/* ==========================================================================
   Типографика.
   Правило против обрезания: заголовки переносятся по слогам (hyphens + &shy;),
   крупные цифры внутри карточек масштабируются от ширины карточки (cqi).
   ========================================================================== */
.display, .h1, .h2, .h3 {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: .95;
  text-transform: uppercase; overflow-wrap: break-word; hyphens: manual;
}
.display { font-size: clamp(34px, 10.4vw, 150px); }
.h1 { font-size: clamp(32px, 8.6vw, 112px); }
.h2 { font-size: clamp(28px, 7.6vw, 88px); }
.h3 { font-size: clamp(20px, 2.4vw, 34px); letter-spacing: -.02em; line-height: 1.02; }
@media (min-width: 761px) {
  .display { font-size: clamp(46px, 7.6vw, 150px); }
  .h1 { font-size: clamp(40px, 6.4vw, 112px); }
  .h2 { font-size: clamp(34px, 5.4vw, 88px); }
}
.lead { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; max-width: 46ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.accent { color: var(--green); }
.text-lime { color: var(--lime); }

.eyebrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  font: 600 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 99px; border: 1px solid currentColor;
}
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(6, 157, 124, .18); animation: pulse 2s infinite; }
.dark .eyebrow::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 46, .2); }
.eyebrow--gap { margin-bottom: 24px; }
@keyframes pulse { 50% { transform: scale(.6); } }

.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34ch); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 6vw, 84px); }
.sec-head .eyebrow { grid-column: 1 / -1; justify-self: start; }
.sec-head p { max-width: 40ch; }
@media (max-width: 860px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--paper); --b-fill: var(--lime); --b-fill-fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 12px 28px; border-radius: 99px; max-width: 100%;
  background: var(--b-bg); color: var(--b-fg);
  font: 700 15px/1.15 var(--f-display); letter-spacing: .01em; text-transform: uppercase; text-align: center;
  transition: color .45s var(--ease), transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--b-fill); transform: translateX(-102%) skewX(-18deg); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: translateX(0) skewX(0); }
.btn:hover { color: var(--b-fill-fg); }
.btn:active { transform: scale(.97); }
.btn .arr { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: currentColor; transition: transform .45s var(--ease); }
.btn .arr svg { width: 14px; height: 14px; stroke: var(--b-bg); transition: stroke .45s; }
.btn:hover .arr { transform: rotate(-45deg); }
.btn:hover .arr svg { stroke: var(--b-fill); }
.btn--lime { --b-bg: var(--lime); --b-fg: var(--ink); --b-fill: var(--ink); --b-fill-fg: var(--lime); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-fill: var(--ink); --b-fill-fg: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.dark .btn--ghost { --b-fg: var(--paper); --b-fill: var(--paper); --b-fill-fg: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.btn--sm { min-height: 46px; padding: 8px 20px; font-size: 12px; }
.btn--block { width: 100%; }
@media (max-width: 420px) { .btn { font-size: 13px; padding-inline: 20px; gap: 10px; } }

.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.link-u:hover { background-size: 100% 2px; }

/* ---------- Chips & badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 99px; background: var(--paper); font: 600 14px/1.1 var(--f-text); }
.chip--ink { background: var(--ink); color: var(--paper); }
.badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 14px; border-radius: 99px; font: 600 12px/1.1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.badge--both { background: rgba(13,13,16,.88); color: var(--lime); }
.badge--offline { background: var(--ink); color: var(--paper); }
.badge--online { background: var(--lime); color: var(--ink); }

/* ==========================================================================
   Курсор — «липкий» шлейф (gooey)
   ========================================================================== */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 9999; pointer-events: none; filter: url("#goo"); mix-blend-mode: difference; }
.cursor span { position: absolute; left: 0; top: 0; display: block; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--lime); will-change: transform; }
.cursor-label {
  position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none;
  padding: 8px 12px; border-radius: 99px; background: var(--ink); color: var(--lime);
  font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  opacity: 0; transform: translate(18px, 18px) scale(.6); transition: opacity .25s, transform .3s var(--ease);
}
.cursor-label.is-on { opacity: 1; transform: translate(18px, 18px) scale(1); }
@media (hover: none), (pointer: coarse), (max-width: 760px) { .cursor, .cursor-label, .goo-svg { display: none !important; } }

/* ==========================================================================
   Header
   ========================================================================== */
.header { position: fixed; inset: 14px 0 auto; z-index: 900; pointer-events: none; transition: transform .5s var(--ease); }
.header.is-hidden { transform: translateY(-140%); }
.header__bar {
  pointer-events: auto; display: flex; align-items: center; gap: 14px;
  width: calc(100% - 2 * var(--pad)); max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 auto;
  padding: 8px 8px 8px 18px; border-radius: 99px;
  background: rgba(246, 246, 241, .8); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 40px -18px rgba(0,0,0,.35);
}
.header__logo { flex: none; }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 12px 14px; border-radius: 99px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .25s, color .25s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.header__phone { font: 600 15px/1 var(--f-text); white-space: nowrap; padding: 0 6px; }
.header__cta { flex: none; white-space: nowrap; }
.burger { display: none; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.burger span { position: absolute; left: 15px; right: 15px; height: 2px; background: var(--paper); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 20px; } .burger span:nth-child(2) { top: 28px; }
.menu-open .burger span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 24px; transform: rotate(-45deg); }
@media (max-width: 1380px) { .header__phone { display: none; } }
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; margin-left: auto; }
}
@media (max-width: 520px) { .header__logo img { height: 34px; } }

/* Мобильное меню */
.mmenu {
  position: fixed; inset: 0; z-index: 899; background: var(--ink); color: var(--paper);
  padding: 100px var(--pad) 28px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 50px) 50px); transition: clip-path .8s var(--ease-out); visibility: hidden;
}
.menu-open .mmenu { clip-path: circle(150% at calc(100% - 50px) 50px); visibility: visible; }
.mmenu__nav { display: grid; gap: 4px; }
.mmenu__nav a {
  display: flex; align-items: baseline; gap: 12px;
  font: 800 clamp(22px, 6.6vw, 48px)/1.12 var(--f-display); text-transform: uppercase; letter-spacing: -.03em;
}
.mmenu__nav a small { flex: none; font: 400 12px var(--f-mono); color: var(--lime); letter-spacing: 0; }
.mmenu__foot { margin-top: auto; display: grid; gap: 16px; }
.mmenu__tel { font: 700 clamp(20px, 6vw, 28px)/1.1 var(--f-display); }

/* Цифры: крупное число + мелкая единица. Размер — от ширины карточки. */
.fact, .num-card, .p-stat, .price, .dir, .track__main, .contacts__card, .fmt, .cta__text, .footer .container { container-type: inline-size; }
.stat__val { display: flex; align-items: baseline; gap: .14em; white-space: nowrap; font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em; line-height: .9; }
.stat__unit { font-size: .4em; letter-spacing: -.01em; }

/* ==========================================================================
   Hero — минималистичный первый экран
   Слева текст и кнопка, справа фото с роботом и две карточки, ниже 4 факта.
   ========================================================================== */
.hero { padding: 104px 0 28px; }
.hero__card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px;
  border-radius: var(--r-xl); background: var(--paper); padding: clamp(28px, 4vw, 56px) clamp(28px, 4.4vw, 72px);
  overflow: hidden;
}
.hero__content { display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; container-type: inline-size; }

.hero__title {
  font: 800 clamp(34px, 10.6cqi, 96px)/.96 var(--f-text); letter-spacing: -.045em;
  overflow-wrap: break-word;
}
.hero__title-accent { display: block; color: var(--green); }
.hero__for { margin-top: 16px; font: 600 clamp(18px, 1.8vw, 28px)/1.25 var(--f-text); letter-spacing: -.02em; color: var(--muted); }
.hero__sub { margin-top: 22px; max-width: 44ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 40px; }
.hero__cta {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 72px; padding: 0 34px; border-radius: 24px; background: var(--ink); color: #fff;
  font: 700 19px/1 var(--f-text); transition: background .3s, color .3s, transform .3s var(--ease);
}
.hero__cta svg { transition: transform .3s var(--ease); }
.hero__cta:hover { background: var(--green); }
.hero__cta:hover svg { transform: translateX(4px); }
.hero__cta:active { transform: scale(.97); }
.hero__cta-tag {
  position: absolute; right: -14px; top: -14px; padding: 7px 12px; border-radius: 99px;
  background: var(--lime); color: var(--ink); font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .02em;
  transform: rotate(6deg); box-shadow: 0 6px 16px -6px rgba(0,0,0,.25);
}
.hero__link { font-weight: 600; font-size: 17px; }

/* Визуал: фото с прозрачным фоном прямо на карточке + плавающие карточки.
   Низ фото упирается в нижний край карточки, левый край мягко растворяется. */
.hero__visual { position: relative; align-self: end; padding-top: 24px; margin-bottom: calc(-1 * clamp(28px, 4vw, 56px)); }
.hero__stage { position: relative; }
.hero__kid img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%);
          mask-image: linear-gradient(to right, transparent 0, #000 9%);
}

.hero__badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; width: max-content; max-width: 300px;
  padding: 12px 18px 12px 12px; border-radius: 20px; background: #fff; box-shadow: 0 22px 44px -22px rgba(13, 13, 16, .45);
  font-size: 13px; line-height: 1.3; color: var(--muted);
  animation: badge-float 6s ease-in-out infinite;
}
.hero__badge b { display: block; color: var(--ink); font: 700 15px/1.2 var(--f-display); letter-spacing: -.02em; margin-bottom: 2px; white-space: nowrap; }
.hero__badge > span:last-child { max-width: 20ch; }
.hero__badge--robot { top: 10%; left: -4%; }
.hero__badge--code { top: 34%; right: -3%; animation-delay: -2s; }
.hero__badge--age { bottom: 9%; right: -3%; animation-delay: -4s; }
@keyframes badge-float { 50% { transform: translateY(-8px); } }
.hero__badge-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--lime); display: grid; place-items: center; font-size: 22px; }
.hero__badge-ico--code { background: var(--ink); color: var(--lime); font: 800 14px var(--f-mono); letter-spacing: -.04em; }
.hero__badge-num { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--coral); color: #fff; display: grid; place-items: center; font: 800 16px var(--f-display); }

/* Средние и малые экраны: карточки — компактные плашки без описания, чтобы не закрывать фото */
@media (max-width: 1200px) {
  .hero__badge { padding: 8px 14px 8px 8px; gap: 8px; border-radius: 16px; }
  .hero__badge b { font-size: 13px; margin: 0; }
  .hero__badge > span:last-child { font-size: 0; max-width: none; }
  .hero__badge-ico, .hero__badge-num { width: 36px; height: 36px; font-size: 16px; border-radius: 11px; }
  .hero__badge--code { top: 46%; }
}

/* Факты под карточкой */
.hero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.fact { border-radius: var(--r-l); background: var(--paper); padding: 20px 24px; display: grid; gap: 10px; align-content: space-between; min-height: 132px; }
.fact .stat__val { font-size: clamp(30px, 22cqi, 56px); }
.fact__label { font-size: 15px; line-height: 1.35; color: var(--muted); }
.fact--lime { background: var(--lime); }
.fact--lime .fact__label { color: var(--ink); }

@media (max-width: 1000px) {
  .hero__card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__visual { width: min(100%, 560px); justify-self: center; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hero { padding-top: 92px; }
  .hero__card { padding: 26px 18px 18px; border-radius: 32px; gap: 20px; }
  .hero__title { font-size: clamp(30px, 11cqi, 48px); }
  .hero__visual { padding-top: 56px; margin-bottom: -18px; }
  .hero__actions { margin-top: 28px; }
  .hero__cta { min-height: 64px; padding: 0 26px; font-size: 17px; }
  .hero__badge-ico, .hero__badge-num { width: 36px; height: 36px; font-size: 16px; border-radius: 11px; }
  .hero__badge--robot { top: 4%; left: 0; }
  .hero__badge--code { top: auto; bottom: 22%; left: 0; right: auto; }
  .hero__badge--age { bottom: 6%; right: 0; }
  .fact { min-height: 0; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hero__badge { animation: none; } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquees { overflow: hidden; padding: 30px 0 40px; margin-top: -10px; }
.marquee { --dur: 38s; background: var(--ink); color: var(--lime); overflow: hidden; padding: 20px 0; transform: rotate(-2deg) scale(1.04); position: relative; z-index: 3; }
.marquee--lime { background: var(--lime); color: var(--ink); transform: rotate(1.6deg) scale(1.04); margin-top: -18px; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--dur) linear infinite; }
.marquee--lime .marquee__track { animation-direction: reverse; }
.marquee__item { display: flex; align-items: center; gap: 26px; padding-right: 26px; font: 800 clamp(20px, 3vw, 42px)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.marquee__item i { font-style: normal; font-size: .7em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   About: манифест + bento
   ========================================================================== */
.manifesto { font: 700 clamp(24px, 4.4vw, 70px)/1.1 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; overflow-wrap: break-word; }
.manifesto .w { opacity: .14; transition: opacity .25s linear; }
.manifesto .w.on { opacity: 1; }
.manifesto .tag { display: inline-block; vertical-align: middle; font: 600 14px/1 var(--f-mono); letter-spacing: 0; text-transform: none; padding: 10px 14px; border-radius: 99px; background: var(--lime); transform: rotate(-4deg); margin: 0 .2em; white-space: nowrap; }
.manifesto .tag--coral { background: var(--coral); color: #fff; transform: rotate(3deg); }
.manifesto .tag--green { background: var(--green); color: #fff; transform: rotate(-2deg); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 8vw, 110px); }
.tile { position: relative; border-radius: var(--r-l); padding: clamp(22px, 2.4vw, 34px); min-height: 340px; display: flex; flex-direction: column; overflow: hidden; transition: transform .5s var(--ease); }
.tile:hover { transform: translateY(-6px) rotate(-.4deg); }
.tile__num { font: 600 13px var(--f-mono); }
.tile h3 { margin-top: auto; padding-top: 24px; max-width: 16ch; }
.tile p { margin-top: 12px; max-width: 36ch; }
.tile__art { position: absolute; right: 18px; top: 18px; width: clamp(64px, 24%, 150px); transition: transform .8s var(--ease); }
.tile:hover .tile__art { transform: rotate(8deg) scale(1.06); }
.tile--lime { grid-column: span 5; background: var(--lime); }
.tile--ink { grid-column: span 7; background: var(--ink); color: var(--paper); }
.tile--ink .tile__num { color: var(--lime); }
.tile--ink h3 { margin-top: 28px; }
.tile--paper { grid-column: span 7; background: var(--paper); }
.tile--lilac { grid-column: span 5; background: var(--lilac); }
@media (max-width: 900px) { .tile--lime, .tile--ink, .tile--paper, .tile--lilac { grid-column: 1 / -1; min-height: 280px; } }

.typing { font: 14px/1.7 var(--f-mono); color: #cfcfc8; margin-top: 18px; min-height: 5.1em; overflow-wrap: anywhere; }
.typing .caret { display: inline-block; width: .6em; height: 1.1em; background: var(--lime); vertical-align: -.2em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Directions — горизонтальный скролл
   ========================================================================== */
.hscroll { position: relative; }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hscroll__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.hscroll__aside { display: grid; gap: 14px; justify-items: end; text-align: right; }
.hscroll__aside p { max-width: 28ch; }
.hscroll__progress { width: 200px; height: 4px; border-radius: 9px; background: rgba(255,255,255,.15); overflow: hidden; }
.hscroll__progress i { display: block; height: 100%; width: 0; background: var(--lime); }
.hscroll__track { display: flex; gap: 16px; padding-inline: var(--pad); will-change: transform; }
.dir { flex: none; width: min(78vw, 600px); height: min(64vh, 560px); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; color: var(--ink); }
.dir__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: auto; }
.dir__num { font: 800 clamp(56px, 24cqi, 160px)/.8 var(--f-display); letter-spacing: -.06em; }
.dir__art { width: clamp(72px, 28cqi, 200px); flex: none; }
.dir p { max-width: 38ch; font-size: 17px; }
.dir .chip { background: rgba(255,255,255,.55); }
.dir--lime { background: var(--lime); }
.dir--coral { background: var(--coral); color: #fff; }
.dir--coral .chip { background: rgba(0,0,0,.18); color: #fff; }
.dir--lilac { background: var(--lilac); }
.dir--sky { background: var(--sky); }
.dir--end { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); color: var(--paper); justify-content: center; align-items: flex-start; gap: 24px; }
@media (max-width: 760px) {
  .hscroll { height: auto !important; }
  .hscroll__sticky { position: static; height: auto; padding-block: var(--sec); }
  .hscroll__head { flex-direction: column; align-items: flex-start; }
  .hscroll__aside { justify-items: start; text-align: left; }
  .hscroll__track { flex-direction: column; transform: none !important; }
  .hscroll__progress { display: none; }
  .dir { width: 100%; height: auto; min-height: 400px; }
  .dir--end { min-height: 0; padding-block: 36px; }
}

/* ==========================================================================
   Tracks
   ========================================================================== */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 99px; background: var(--paper); margin-bottom: 20px; max-width: 100%; }
.tabs__tab { padding: 16px 24px; border-radius: 99px; font: 700 15px/1 var(--f-display); text-transform: uppercase; white-space: nowrap; transition: background .3s, color .3s; }
.tabs__tab[aria-selected="true"] { background: var(--ink); color: var(--lime); }
.tabs__tab:not([aria-selected="true"]):hover { background: var(--bg-2); }
@media (max-width: 420px) { .tabs__tab { padding: 14px 16px; font-size: 13px; } }
.track { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
.track[hidden] { display: none; }
.track.is-anim > * { animation: rise .7s var(--ease-out) both; }
.track.is-anim > *:nth-child(2) { animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.track__main { border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 48px); background: var(--green); color: #fff; display: flex; flex-direction: column; gap: 18px; min-height: 520px; }
.track__main .chip { background: rgba(255,255,255,.16); color: #fff; }
.track__main .lead { color: #fff; }
.track__age { font: 800 clamp(56px, 22cqi, 160px)/.82 var(--f-display); letter-spacing: -.06em; white-space: nowrap; }
.track__main .btn { margin-top: auto; align-self: flex-start; }
.track__side { border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 48px); background: var(--paper); }
.track__modules { display: grid; margin-top: 8px; }
.track__modules li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.track__modules li:last-child { border-bottom: 0; }
.track__n { font: 600 13px var(--f-mono); color: var(--muted); }
.track__count { font: 400 12px var(--f-mono); color: var(--muted); white-space: nowrap; }
.track__result { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-m); background: var(--lime); font-weight: 600; }
@media (max-width: 900px) { .track { grid-template-columns: minmax(0, 1fr); } .track__main { min-height: 0; } }

/* ==========================================================================
   Results
   ========================================================================== */
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.result { border-radius: var(--r-xl); background: var(--paper); padding: 14px; display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.result:hover { transform: translateY(-8px); }
.result__win { border-radius: calc(var(--r-xl) - 12px); aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--ink); }
.result__bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: rgba(255,255,255,.08); }
.result__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .result__bar i:nth-child(2) { background: #febc2e; } .result__bar i:nth-child(3) { background: #28c840; }
.result__bar span { margin-left: 10px; font: 11px var(--f-mono); color: var(--muted-dark); }
.result__body { padding: 22px 8px 8px; }
.result__body h3 { margin-bottom: 10px; }
.game { position: absolute; inset: 34px 0 0; background: linear-gradient(#1b1340, #3b1f6b 60%, #ff5c39 160%); overflow: hidden; }
.game__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: repeating-linear-gradient(90deg, #069d7c 0 24px, #04765d 24px 48px); animation: ground 1.2s linear infinite; }
@keyframes ground { to { background-position: -48px 0; } }
.game__hero { position: absolute; left: 22%; bottom: 22%; width: 34px; height: 34px; background: var(--lime); border-radius: 8px; box-shadow: inset -6px -6px 0 rgba(0,0,0,.18); animation: jump 1.2s var(--ease) infinite; }
.game__hero::after { content: ""; position: absolute; right: 6px; top: 8px; width: 6px; height: 6px; background: var(--ink); border-radius: 2px; }
@keyframes jump { 0%, 100% { transform: translateY(0) rotate(0); } 45%, 60% { transform: translateY(-70px) rotate(180deg); } }
.game__spike { position: absolute; bottom: 22%; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 26px solid var(--coral); animation: spike 1.2s linear infinite; }
@keyframes spike { from { left: 105%; } to { left: -10%; } }
.game__coin { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); top: 30%; animation: spike 2.4s linear infinite, coin .6s ease-in-out infinite alternate; }
@keyframes coin { to { transform: scaleX(.3); } }
.game__hud { position: absolute; left: 12px; top: 10px; font: 600 12px var(--f-mono); color: var(--lime); }
.site { position: absolute; inset: 34px 0 0; background: var(--paper); padding: 16px; display: grid; gap: 10px; grid-template-rows: auto 1fr auto; }
.site__nav { display: flex; gap: 8px; align-items: center; }
.site__nav b { width: 22px; height: 22px; border-radius: 6px; background: var(--coral); }
.site__nav i { height: 6px; width: 30px; border-radius: 9px; background: var(--bg-2); }
.site__nav i:last-child { margin-left: auto; width: 54px; height: 18px; background: var(--ink); }
.site__hero { border-radius: 12px; background: var(--lilac); padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; position: relative; overflow: hidden; }
.site__hero i { display: block; height: 10px; border-radius: 9px; background: var(--ink); width: 70%; }
.site__hero i + i { width: 45%; opacity: .5; height: 7px; }
.site__hero::after { content: ""; position: absolute; right: 14px; top: 14px; width: 60px; height: 60px; border-radius: 50%; background: var(--lime); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(10px) scale(.9); } }
.site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site__cards i { height: 36px; border-radius: 8px; background: var(--bg-2); }
.site__cards i:nth-child(2) { background: var(--sky); }
.term { position: absolute; inset: 34px 0 0; padding: 18px; font: 13px/1.75 var(--f-mono); color: #d6d6cf; }
.term .p { color: var(--lime); } .term .ok { color: #28c840; } .term .s { color: var(--sky); }
@media (max-width: 1000px) { .results { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* ==========================================================================
   Formats: офлайн / онлайн
   ========================================================================== */
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fmt { border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 22px; min-height: 560px; position: relative; overflow: hidden; transition: transform .5s var(--ease); }
.fmt:hover { transform: translateY(-6px); }
.fmt--offline { background: var(--paper); }
.fmt--online { background: var(--green); color: #fff; }
.fmt--online .mono { color: rgba(255,255,255,.75); }
.fmt__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fmt__title { font: 800 clamp(24px, 8.4cqi, 68px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: -.04em; overflow-wrap: break-word; }
.fmt__list { display: grid; gap: 12px; font-size: 17px; }
.fmt__list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.fmt__list li::before { content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; }
.fmt--online .fmt__list li::before { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fmt__list li.fmt__no { opacity: .85; }
.fmt__list li.fmt__no::before { background: rgba(0,0,0,.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100%; }
.fmt__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; font-weight: 600; }
@media (max-width: 900px) { .formats { grid-template-columns: minmax(0, 1fr); } .fmt { min-height: 0; } }

/* ==========================================================================
   Platform (LosPlatform)
   ========================================================================== */
.platform__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.platform__intro { container-type: inline-size; }
.platform__title { font-size: clamp(30px, 13cqi, 88px); }
.platform__lead { margin-top: 22px; color: #cfcfc8; }
.platform__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.platform__note { margin-top: 28px; font: 600 13px var(--f-mono); color: var(--muted-dark); }

.app { border-radius: var(--r-l); background: #f6f6f1; color: var(--ink); overflow: hidden; box-shadow: 0 50px 100px -40px rgba(200,255,46,.35), 0 0 0 1px rgba(255,255,255,.1); transform: rotate(-1.5deg); }
.app__bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #e3e3dd; }
.app__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .app__bar i:nth-child(2) { background: #febc2e; } .app__bar i:nth-child(3) { background: #28c840; }
.app__bar span { margin-left: 10px; font: 11px var(--f-mono); color: var(--muted); }
.app__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 380px; }
.app__side { background: var(--ink); color: #b9b9b2; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.app__logo { width: 40px; margin-bottom: 12px; }
.app__nav { padding: 9px 12px; border-radius: 10px; }
.app__nav.is-on { background: var(--lime); color: var(--ink); }
.app__main { padding: 20px; display: grid; gap: 14px; align-content: start; }
.app__hello { font: 800 20px/1.1 var(--f-display); }
.app__progress { border-radius: 16px; background: #fff; padding: 14px 16px; }
.app__row { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14px; }
.app__row b { font-family: var(--f-display); }
.app__bar-line { height: 10px; border-radius: 9px; background: var(--bg-2); margin-top: 10px; overflow: hidden; }
.app__bar-line i { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--lime)); animation: fill 2.4s var(--ease-out) both; }
@keyframes fill { from { width: 8%; } }
.app__lessons { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.app__lessons li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; }
.app__lessons li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--bg-2); flex: none; }
.app__lessons li.done::before { background: var(--green); box-shadow: none; }
.app__lessons li.now { background: var(--ink); color: var(--lime); }
.app__lessons li.now::before { box-shadow: inset 0 0 0 2px var(--lime); animation: pulse 1.4s infinite; }
.app__lessons em { margin-left: auto; font: 400 11px var(--f-mono); font-style: normal; opacity: .7; }
.app__cards { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; }
.app__hw, .app__chat { border-radius: 14px; padding: 12px; font-size: 13px; line-height: 1.35; display: grid; gap: 4px; }
.app__hw { background: var(--lime); }
.app__hw b { font: 800 15px var(--f-display); }
.app__hw em { font-style: normal; font-weight: 700; color: var(--green); }
.app__chat { background: var(--lilac); }
.app .mono { font-size: 10px; color: rgba(0,0,0,.55); }
@media (max-width: 1000px) { .platform__grid { grid-template-columns: minmax(0, 1fr); } .app { transform: none; } }
@media (max-width: 520px) {
  .app__body { grid-template-columns: minmax(0, 1fr); }
  .app__side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px; }
  .app__logo { width: 28px; margin: 0 6px 0 0; }
  .app__nav { padding: 6px 10px; font-size: 13px; }
  .app__cards { grid-template-columns: minmax(0, 1fr); }
}

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 6vw, 80px); }
.feature { border-radius: var(--r-l); background: var(--ink-2); padding: 26px; display: grid; gap: 12px; align-content: start; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: background .3s, transform .5s var(--ease); }
.feature:hover { background: #222228; transform: translateY(-6px); }
.feature__n { font: 600 13px var(--f-mono); color: var(--lime); }
.feature__title { font: 800 clamp(18px, 1.6vw, 22px)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; }
.feature p { color: #b9b9b2; font-size: 16px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Cyber
   ========================================================================== */
.cyber { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cyber__list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); font: 700 clamp(16px, 1.8vw, 26px)/1.15 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; transition: padding .4s var(--ease), color .3s; }
.cyber__list li::after { content: "→"; opacity: 0; transform: translateX(-10px); transition: .4s var(--ease); color: var(--lime); }
.cyber__list li:hover { padding-left: 14px; color: var(--lime); }
.cyber__list li:hover::after { opacity: 1; transform: none; }
.cyber__list li span { font: 600 13px var(--f-mono); color: #8c8c86; }
.pwd { border-radius: var(--r-xl); background: var(--ink-2); padding: clamp(22px, 3vw, 42px); display: flex; flex-direction: column; gap: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pwd__field { position: relative; }
.pwd input { width: 100%; height: 68px; border-radius: 20px; border: 0; background: var(--ink); color: var(--lime); padding: 0 60px 0 20px; font: 600 20px var(--f-mono); letter-spacing: .04em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1); transition: box-shadow .3s; }
.pwd input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--lime); }
.pwd__eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--muted-dark); }
.pwd__meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pwd__meter i { height: 10px; border-radius: 9px; background: rgba(255,255,255,.1); transition: background .3s; }
.pwd__verdict { font: 800 clamp(20px, 2.2vw, 32px)/1.08 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; min-height: 2.2em; overflow-wrap: break-word; }
.pwd__verdict.is-empty { font: 500 17px/1.4 var(--f-text); text-transform: none; letter-spacing: 0; color: var(--muted-dark); min-height: 0; }
.pwd__tips { display: grid; gap: 8px; font-size: 15px; }
.pwd__tips li { display: flex; gap: 10px; align-items: center; color: var(--muted-dark); transition: color .3s; }
.pwd__tips li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 2px currentColor; flex: none; }
.pwd__tips li.ok { color: var(--lime); }
.pwd__tips li.ok::before { background: var(--lime); box-shadow: none; }
.pwd__note { font: 12px var(--f-mono); color: #77776f; }
@media (max-width: 900px) { .cyber { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Numbers (как проходят занятия)
   ========================================================================== */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.num-card { border-radius: var(--r-l); padding: 26px; background: var(--paper); min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.num-card .stat__val { font-size: clamp(48px, 30cqi, 128px); }
.num-card .stat__unit { font-size: .34em; }
.num-card p { font-weight: 600; font-size: 18px; line-height: 1.3; }
.num-card--ink { background: var(--ink); color: var(--lime); }
.num-card--ink p { color: var(--paper); }
.num-card--green { background: var(--green); color: #fff; }
.num-card__dots { display: flex; gap: 6px; margin-bottom: 14px; }
.num-card__dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); }
.num-card__dots i.off { background: rgba(255,255,255,.15); }
@media (max-width: 1000px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .numbers { grid-template-columns: minmax(0, 1fr); } .num-card { min-height: 200px; } }

.place { margin-top: 12px; border-radius: var(--r-l); background: var(--paper); padding: 20px 24px; display: flex; gap: 14px 28px; align-items: center; flex-wrap: wrap; }
.place b { font: 800 clamp(16px, 1.6vw, 20px)/1.2 var(--f-display); text-transform: uppercase; }
.place__btn { margin-left: auto; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gal-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 12px; }
.gal-strip > :first-child { grid-row: span 2; }
.media { position: relative; border-radius: var(--r-l); overflow: hidden; background: linear-gradient(135deg, var(--bg-2), #c9c9c2); display: block; color: transparent; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.media:hover img { transform: scale(1.06); }
.media__play { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; transition: transform .4s var(--ease); }
.media__play svg { width: 26px; margin-left: 4px; }
.media:hover .media__play { transform: scale(1.12); }
.media__cap { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 99px; background: rgba(13,13,16,.7); color: #fff; font: 600 12px var(--f-mono); backdrop-filter: blur(6px); }
.media--more { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 24px; background: var(--ink); color: var(--paper); }
.media--more { container-type: inline-size; }
.media--more b { font: 800 clamp(18px, 12cqi, 40px)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; }
.media__arrow { align-self: flex-end; width: 70px; height: 70px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease); }
.media__arrow svg { width: 30px; height: 30px; }
.media--more:hover .media__arrow { transform: rotate(-45deg) scale(1.1); }
@media (max-width: 900px) { .gal-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px 220px; } .gal-strip > :first-child { grid-column: span 2; grid-row: auto; } }

/* Видео-отзывы */
.reviews { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; }
.review { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 9 / 14; background: #1d1d22; }
.review video { width: 100%; height: 100%; object-fit: cover; }
.review__meta { position: absolute; left: 16px; right: 16px; bottom: 16px; pointer-events: none; }
.review__name { display: inline-grid; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 12px 16px; }
.review__name b { font: 800 18px var(--f-display); text-transform: uppercase; }
.review__name span { font: 12px var(--f-mono); color: var(--muted); }
.review.is-playing .media__play, .review.is-playing .review__meta { opacity: 0; pointer-events: none; transition: opacity .3s; }
.review__cta { border-radius: var(--r-xl); background: var(--lime); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.review__cta p { font: 800 clamp(22px, 2.4vw, 36px)/1.05 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; }
@media (max-width: 1000px) { .reviews { grid-template-columns: 1fr 1fr; } .review__cta { grid-column: 1 / -1; order: -1; } }
@media (max-width: 520px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Pricing
   ========================================================================== */
.prices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.price { border-radius: var(--r-xl); padding: clamp(22px, 2.8vw, 38px); background: var(--paper); display: flex; flex-direction: column; gap: 18px; position: relative; transition: transform .5s var(--ease); }
.price:hover { transform: translateY(-8px); }
.price__name { font: 700 14px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
/* Число и ₽ — одна неразрывная строка, размер от ширины карточки */
.price__val { display: flex; align-items: baseline; flex-wrap: nowrap; gap: .12em; white-space: nowrap; font: 800 clamp(30px, 15cqi, 76px)/.9 var(--f-display); letter-spacing: -.05em; }
.price__cur { display: inline-flex; align-items: baseline; gap: .1em; }
.price__cur small { font-size: .3em; letter-spacing: 0; font-weight: 600; }
.price__per { display: inline-block; align-self: flex-start; padding: 8px 12px; border-radius: 99px; background: var(--bg); font: 600 13px var(--f-mono); }
.price__list { display: grid; gap: 10px; margin-bottom: 8px; }
.price__list li { display: flex; gap: 12px; align-items: flex-start; }
.price__list li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; }
.price .btn { margin-top: auto; }
.price--free { background: var(--lime); }
.price--free .price__per { background: rgba(0,0,0,.08); }
.price--hot { background: var(--ink); color: var(--paper); transform: translateY(-14px); }
.price--hot:hover { transform: translateY(-22px); }
.price--hot .price__name { color: var(--lime); }
.price--hot .price__per { background: rgba(255,255,255,.1); color: var(--lime); }
.price--hot .price__list li::before { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.price__badge { position: absolute; top: -16px; right: 26px; padding: 10px 16px; border-radius: 99px; background: var(--coral); color: #fff; font: 700 12px var(--f-mono); text-transform: uppercase; transform: rotate(4deg); }
@media (max-width: 1000px) { .prices { grid-template-columns: minmax(0, 1fr); max-width: 560px; } .price--hot, .price--hot:hover { transform: none; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 10px; max-width: 1100px; }
.faq__item { border-radius: var(--r-l); background: var(--paper); overflow: hidden; transition: background .3s; }
.faq__item[open] { background: var(--ink); color: var(--paper); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font: 700 clamp(17px, 1.6vw, 22px)/1.25 var(--f-text); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); flex: none; position: relative; transition: transform .5s var(--ease), background .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: var(--paper); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon, .module[open] .faq__icon { transform: rotate(135deg); background: var(--lime); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after, .module[open] .faq__icon::before, .module[open] .faq__icon::after { background: var(--ink); }
.faq__body { padding: 0 24px 24px; max-width: 72ch; color: #c9c9c2; font-size: 17px; }

/* ==========================================================================
   CTA + форма
   ========================================================================== */
.cta { border-radius: var(--r-xl); background: var(--green); color: #fff; padding: clamp(24px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; position: relative; overflow: hidden; }
.cta__deco { position: absolute; left: -60px; bottom: -80px; width: 340px; opacity: .18; transform: rotate(-12deg); pointer-events: none; }
.cta__text { position: relative; z-index: 1; }
.cta__text .h1 { font-size: clamp(32px, 12cqi, 112px); }
.cta__text .h1 span { color: var(--lime); }
.cta__text .lead { margin-top: 22px; }
@media (max-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr); } }

.form { position: relative; z-index: 1; display: grid; gap: 12px; align-content: start; }
.field { position: relative; }
.field input, .field select {
  width: 100%; height: 64px; border-radius: 20px; border: 0; padding: 22px 20px 0; background: rgba(255,255,255,.96); color: var(--ink);
  font-size: 17px; font-weight: 600; appearance: none; -webkit-appearance: none; transition: box-shadow .25s;
}
.field select { padding: 20px 48px 0 20px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230d0d10' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 20px; }
.field label { position: absolute; left: 20px; top: 21px; font-size: 16px; color: var(--muted); pointer-events: none; transition: .25s var(--ease); white-space: nowrap; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field select + label { top: 10px; font-size: 11px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.field input:focus, .field select:focus { outline: none; box-shadow: 0 0 0 3px var(--lime); }
.field.is-error input { box-shadow: 0 0 0 3px var(--coral); }

/* Переключатель офлайн / онлайн */
.switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 20px; background: rgba(0,0,0,.18); }
.switch__legend { float: left; width: 100%; padding: 6px 12px 6px; font: 600 11px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.switch__opt { position: relative; cursor: pointer; }
.switch__opt input { position: absolute; opacity: 0; pointer-events: none; }
.switch__opt span { display: grid; place-items: center; min-height: 50px; padding: 8px 10px; border-radius: 16px; font: 700 14px/1.15 var(--f-display); text-transform: uppercase; text-align: center; transition: background .3s, color .3s; }
.switch__opt input:checked + span { background: #fff; color: var(--ink); }
.switch__opt input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.switch__legend + .switch__opt { grid-column: 1; }
.form__hint { font-size: 14px; line-height: 1.4; opacity: .9; padding: 0 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none; border-radius: 7px; box-shadow: inset 0 0 0 2px currentColor; margin: 0; cursor: pointer; transition: .2s; }
.check input:checked { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3L15 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100%; box-shadow: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form__ok { display: none; border-radius: var(--r-m); background: var(--lime); color: var(--ink); padding: 24px; }
.form__ok b { font: 800 22px/1.1 var(--f-display); text-transform: uppercase; display: block; margin-bottom: 8px; }
.form.is-sent > :not(.form__ok) { display: none; }
.form.is-sent .form__ok { display: block; animation: rise .6s var(--ease-out); }
.form__err { color: var(--sun); font-size: 14px; min-height: 1em; }

/* ==========================================================================
   Contacts
   ========================================================================== */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; margin-top: 12px; }
.contacts__card { border-radius: var(--r-xl); background: var(--paper); padding: clamp(22px, 3vw, 40px); display: grid; gap: 20px; align-content: start; }
.contacts__row { display: grid; gap: 4px; justify-items: start; }
.contacts__big { font: 800 clamp(22px, 8.6cqi, 44px)/1.05 var(--f-display); letter-spacing: -.03em; white-space: nowrap; }
.contacts__mail { font-weight: 700; font-size: 20px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 700; white-space: nowrap; transition: background .3s, color .3s, transform .3s var(--ease); }
.dark .social, .mmenu .social { background: rgba(255,255,255,.1); }
.social:hover { background: var(--lime); color: var(--ink); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; flex: none; }
.map { border-radius: var(--r-xl); overflow: hidden; min-height: 420px; position: relative; background: var(--bg-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.map:hover iframe { filter: none; }
.map__pin { position: absolute; left: 16px; top: 16px; z-index: 1; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px; pointer-events: none; }
@media (max-width: 900px) { .contacts { grid-template-columns: minmax(0, 1fr); } .map { min-height: 320px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: var(--paper); padding: clamp(60px, 8vw, 120px) 0 28px; margin-top: var(--sec); border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; }
/* Размер от ширины контейнера: «СУПЕРСИЛА» всегда помещается с запасом */
.footer__big { font: 800 10.4cqi/.98 var(--f-display); letter-spacing: -.05em; text-transform: uppercase; }
.footer__line { display: block; }
.footer__line--lime { color: var(--lime); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; margin: clamp(44px, 6vw, 90px) 0 44px; }
.footer__logo { display: inline-block; background: var(--paper); border-radius: 18px; padding: 10px 16px; }
.footer__logo img { height: 40px; width: auto; }
.footer__about { margin-top: 18px; max-width: 36ch; color: var(--muted-dark); }
.footer h4 { font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: #8c8c86; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--lime); }
.footer .muted { color: var(--muted-dark); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #8c8c86; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Modal / Lightbox / Cookie
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 12px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__bg { position: absolute; inset: 0; background: rgba(13,13,16,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.modal.is-open .modal__bg { opacity: 1; }
.modal__box { position: relative; width: min(560px, 100%); max-height: calc(100svh - 24px); overflow: auto; overscroll-behavior: contain; border-radius: var(--r-xl); background: var(--green); color: #fff; padding: clamp(22px, 4vw, 44px); transform: translateY(40px) scale(.96); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s; }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.modal__close:hover { transform: rotate(90deg); background: var(--lime); color: var(--ink); }
.modal__title { font: 800 clamp(24px, 6vw, 42px)/.98 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; margin: 0 52px 14px 0; }
.modal__title span { color: var(--lime); }
.modal__sub { margin-bottom: 22px; opacity: .9; }

.lightbox { position: fixed; inset: 0; z-index: 960; background: rgba(13,13,16,.94); display: grid; place-items: center; padding: 64px 16px; visibility: hidden; opacity: 0; transition: opacity .35s; }
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__stage { max-width: min(1200px, 100%); max-height: 100%; }
.lightbox__stage img, .lightbox__stage video { max-height: calc(100svh - 128px); width: auto; margin: auto; border-radius: var(--r-m); }
.lightbox__btn { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font: 800 20px var(--f-display); transition: background .3s; }
.lightbox__btn:hover { background: var(--lime); }
.lightbox__close { right: 16px; top: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -27px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -27px; }

.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 940; width: min(420px, calc(100% - 32px)); border-radius: var(--r-m); background: var(--ink); color: var(--paper); padding: 18px; display: flex; gap: 14px; align-items: center; font-size: 14px; line-height: 1.4; transform: translateY(160%); transition: transform .7s var(--ease-out); box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); }
.cookie.is-on { transform: none; }
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie .btn { flex: none; }

/* ==========================================================================
   Кнопка звонка — справа внизу
   Заметная, но спокойная: мягкая «волна» раз в несколько секунд.
   ========================================================================== */
.call-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 930;
  display: flex; align-items: center; height: 60px; min-width: 60px; padding: 0 18px;
  border-radius: 99px; background: var(--green); color: #fff;
  box-shadow: 0 14px 34px -12px rgba(6, 157, 124, .7);
  transition: background .3s, transform .3s var(--ease), opacity .3s, padding .45s var(--ease);
}
.call-btn__icon { width: 24px; height: 24px; flex: none; animation: call-wiggle 6s ease-in-out infinite; }
.call-btn__label {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font: 700 15px/1 var(--f-display); letter-spacing: -.01em;
  transition: max-width .45s var(--ease), opacity .3s, margin .45s var(--ease);
}
.call-btn__ring {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(6, 157, 124, .55);
  animation: call-ring 3.2s ease-out infinite;
}
.call-btn:hover { background: var(--ink); color: var(--lime); }
.call-btn:hover .call-btn__label { max-width: 220px; opacity: 1; margin-left: 12px; }
.call-btn:active { transform: scale(.94); }
@keyframes call-ring {
  0% { box-shadow: 0 0 0 0 rgba(6, 157, 124, .5); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(6, 157, 124, 0); }
}
@keyframes call-wiggle {
  0%, 86%, 100% { transform: rotate(0); }
  88% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); }
  92% { transform: rotate(-10deg); } 94% { transform: rotate(6deg); }
}
/* прячем, когда открыто меню или модалка */
.menu-open .call-btn, body:has(.modal.is-open) .call-btn, body:has(.lightbox.is-open) .call-btn { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .call-btn { right: 16px; bottom: 16px; height: 56px; min-width: 56px; padding: 0 16px; }
  .call-btn__label { display: none; }
  /* пока видна плашка cookie, кнопка поднимается над ней */
  .cookie.is-on ~ .call-btn { transform: translateY(-112px); }
}

/* ==========================================================================
   Внутренние страницы
   ========================================================================== */
.page-hero { padding: 150px 0 56px; }
.page-hero--doc { padding-bottom: 40px; }
.page-hero__title { margin-top: 24px; }
.page-hero--doc .page-hero__title { max-width: 20ch; font-size: clamp(24px, 6.4vw, 80px); }
.page-hero__text { margin-top: 24px; }
@media (max-width: 760px) { .page-hero { padding-top: 120px; } }

/* Программа */
.p-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); gap: 10px; margin-top: 36px; }
.p-stat { border-radius: var(--r-l); background: var(--paper); padding: 18px 22px; display: grid; gap: 6px; }
.p-stat .stat__val { font-size: clamp(34px, 26cqi, 72px); }
.p-stat--lime { background: var(--lime); }
.p-stat--ink { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .p-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.p-tabs { position: sticky; top: 92px; z-index: 50; display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(246,246,241,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 36px; box-shadow: 0 10px 40px -20px rgba(0,0,0,.3); scrollbar-width: none; }
.p-tabs::-webkit-scrollbar { display: none; }
.p-tabs a { flex: none; padding: 14px 20px; border-radius: 99px; font: 700 13px/1 var(--f-display); text-transform: uppercase; white-space: nowrap; transition: background .3s, color .3s; }
.p-tabs a.is-active { background: var(--ink); color: var(--lime); }
.p-track { padding-block: 32px 72px; scroll-margin-top: 170px; }
.p-track__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 40px; align-items: end; margin-bottom: 36px; }
.p-track__age { font: 800 clamp(64px, 10.5vw, 190px)/.8 var(--f-display); letter-spacing: -.07em; color: var(--green); white-space: nowrap; }
.p-track__title { margin: 10px 0 14px; }
.p-track__head .chips { margin-top: 18px; }
.p-track__result { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r-m); background: var(--lime); font-weight: 600; }
@media (max-width: 760px) { .p-track__head { grid-template-columns: minmax(0, 1fr); } .p-track__age { font-size: clamp(56px, 20vw, 120px); } }

.modules { display: grid; gap: 10px; }
.module { border-radius: var(--r-l); background: var(--paper); overflow: hidden; transition: background .3s; }
.module summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 100px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 20px 24px; }
.module summary::-webkit-details-marker { display: none; }
.module__n { font: 800 clamp(36px, 4vw, 60px)/.8 var(--f-display); letter-spacing: -.06em; color: var(--muted); transition: color .3s; }
.module__t { font: 800 clamp(15px, 2vw, 26px)/1.08 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; overflow-wrap: break-word; }
.module__s { display: block; font: 400 15px/1.35 var(--f-text); text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.module__count { font: 600 12px var(--f-mono); padding: 8px 12px; border-radius: 99px; background: var(--bg); white-space: nowrap; }
.module[open] { background: var(--ink); color: var(--paper); }
.module[open] .module__n { color: var(--lime); }
.module[open] .module__s { color: var(--muted-dark); }
.module[open] .module__count { background: rgba(255,255,255,.1); }
.lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 24px 24px; }
.lesson { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 18px; border-radius: 18px; background: rgba(255,255,255,.06); font-weight: 600; }
.lesson__n, .lesson em { font: 600 12px var(--f-mono); font-style: normal; color: #8c8c86; white-space: nowrap; }
.lesson--cyber { background: rgba(200,255,46,.12); color: var(--lime); }
.lesson--final { background: var(--lime); color: var(--ink); }
.lesson--final .lesson__n, .lesson--final em { color: rgba(0,0,0,.55); }
@media (max-width: 760px) {
  .module summary { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 16px; }
  .module__count { display: none; }
  .lessons { grid-template-columns: minmax(0, 1fr); padding: 0 12px 12px; }
}

/* Галерея */
.filters { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 99px; background: var(--paper); margin-bottom: 28px; }
.filters button { padding: 14px 20px; border-radius: 99px; font: 700 14px/1 var(--f-display); text-transform: uppercase; transition: background .3s, color .3s; }
.filters button.is-active { background: var(--ink); color: var(--lime); }
.masonry { columns: 3 300px; column-gap: 12px; }
.masonry .media { break-inside: avoid; margin-bottom: 12px; }
.masonry .media img { height: auto; min-height: 220px; }
.masonry .media.is-hidden { display: none; }

/* Документы */
.doc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.doc__toc { position: sticky; top: 110px; border-radius: var(--r-l); background: var(--paper); padding: 20px; display: grid; gap: 4px; max-height: calc(100vh - 140px); overflow: auto; }
.doc__toc b { font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.doc__toc a { padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.3; transition: background .2s; }
.doc__toc a:hover, .doc__toc a.is-active { background: var(--bg); }
.doc__body { border-radius: var(--r-xl); background: var(--paper); padding: clamp(22px, 4vw, 64px); max-width: 880px; overflow-wrap: break-word; }
.doc__body h2 { font: 800 clamp(18px, 2vw, 26px)/1.18 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; margin: 42px 0 16px; scroll-margin-top: 110px; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { font: 700 19px/1.3 var(--f-text); margin: 24px 0 10px; }
.doc__body p { margin: 0 0 14px; }
.doc__body ul { margin: 0 0 16px; display: grid; gap: 8px; }
.doc__body ul li { padding-left: 24px; position: relative; }
.doc__body ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.doc__body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.doc__body dl { display: grid; grid-template-columns: minmax(140px, 260px) minmax(0, 1fr); gap: 10px 20px; margin: 0 0 16px; }
.doc__body dt { font-weight: 700; }
.doc__body dd { margin: 0; }
.doc__table { background: var(--bg); border-radius: var(--r-m); padding: 20px; margin-bottom: 16px; }
.doc__table dl { margin: 0; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc__toc { position: static; max-height: none; } .doc__body dl { grid-template-columns: minmax(0, 1fr); gap: 4px; } .doc__body dd { margin-bottom: 8px; } }

/* 404 */
.e404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--pad) 60px; }
.e404__code { font: 800 clamp(110px, 30vw, 420px)/.8 var(--f-display); letter-spacing: -.08em; display: block; }
.e404__code span { color: var(--green); }
.e404__title { margin: 28px 0 12px; }
.e404__text { margin-bottom: 30px; }

/* ==========================================================================
   Анимации появления
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* max-width: 100% — длинное слово может переноситься внутри (по &shy;), а не обрезаться */
[data-split] .wd { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; padding-right: .02em; }
[data-split] .wd > span { display: inline-block; max-width: 100%; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
[data-split].is-in .wd > span { transform: none; }
.no-js [data-reveal], .no-js [data-split] .wd > span { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-split] .wd > span { opacity: 1; transform: none; }
  .manifesto .w { opacity: 1; }
}
