/* ==========================================================================
   MusicDream Online — design system (светлая тема)
   Ритм, типографика и motion — в духе nikolaevcode.ru: белый холст, крупная
   типографика, тёмные скруглённые блоки-врезки, pill-кнопки со скользящей
   стрелкой, reveal-анимации, бегущие строки.
   Структура игрового проекта — в духе majestic-rp.ru.
   ========================================================================== */

/* ---------- 1. Шрифты (self-hosted, работают без VPN) --------------------- */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- 2. Токены ----------------------------------------------------- */

:root {
  --bg: #ffffff;
  --soft: #f5f5f2;
  --soft-2: #eceae4;
  --ink: #0a0a0c;
  --ink-2: #131318;

  --text: #0a0a0c;
  --muted: #6b6b73;
  --muted-strong: #38383f;
  --line: rgba(10, 10, 12, 0.12);
  --line-strong: rgba(10, 10, 12, 0.24);

  --accent: #ff2e88;
  --accent-soft: #ff5ba3;
  --accent-ink: #ffffff;
  --violet: #7b5cff;

  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;

  --max: 1320px;
  --gutter: clamp(18px, 5vw, 64px);

  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Unbounded', var(--font);

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

/* тёмная врезка внутри светлой страницы */
.on-dark {
  --bg: var(--ink);
  --soft: #17171d;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --muted-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);
  color: var(--text);
}

/* ---------- 3. База ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x: hidden;
  background: #fff;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-menu-open { overflow: hidden; }
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100vh;
  pointer-events: none;
  background:
    radial-gradient(560px circle at 3% 4%, rgba(255, 46, 136, 0.24), transparent 70%),
    radial-gradient(560px circle at 97% 2%, rgba(255, 46, 136, 0.24), transparent 70%),
    repeating-linear-gradient(0deg, rgba(10, 10, 12, 0.09) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(10, 10, 12, 0.09) 0 1px, transparent 1px 44px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
}

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- 4. Утилиты ---------------------------------------------------- */

.section-pad {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: clamp(40px, 5vw, 84px);
}
.pt-0 { padding-top: 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.h-xl {
  font-family: var(--display);
  font-size: clamp(34px, 4.3vw, 66px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h-lg {
  font-family: var(--display);
  font-size: clamp(26px, 2.9vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.h-md {
  font-family: var(--display);
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.5;
}
.lead b { color: var(--text); font-weight: 700; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 5. Шапка ------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: calc(100% - 16px);
  max-width: calc(100% - 16px);
  padding: 14px clamp(16px, 3vw, 30px);
  border-radius: 999px;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: max-width 0.85s var(--ease), padding 0.85s var(--ease),
              background-color 0.5s ease, box-shadow 0.5s ease, transform 0.55s var(--ease);
}
.site-header.is-scrolled {
  max-width: min(var(--max), calc(100% - var(--gutter) * 2));
  padding: 10px 12px 10px 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 50px rgba(10, 10, 12, 0.1), inset 0 0 0 1px var(--line);
}
.site-header.is-hidden { transform: translate(-50%, -170%); }

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  margin-left: clamp(10px, 1.4vw, 22px);
  white-space: nowrap;
}
.brand__logo { display: block; height: 34px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.1vw, 30px);
  font-size: 15px;
  font-weight: 600;
}
.nav-link {
  position: relative;
  padding-bottom: 6px;
  color: var(--muted-strong);
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 100%; height: 1.6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
  transition: opacity 0.2s ease, transform 0.42s var(--ease-soft);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.is-active::after { opacity: 1; transform: translateX(-50%) scaleX(1); }
.nav-link.is-active { color: var(--text); }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-strong);
  white-space: nowrap;
}
.status-chip i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #17b877;
  box-shadow: 0 0 0 3px rgba(23, 184, 119, 0.18);
  animation: pulse-dot 2.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 17px; height: 1.7px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(5.7px) rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-5.7px) rotate(-45deg); }

/* ---------- 6. Кнопки ----------------------------------------------------- */

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.26s var(--ease), background 0.5s var(--ease),
              color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.pill:hover { transform: translateY(-2px); }

.pill--accent {
  padding: 0 24px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(255, 46, 136, 0.24);
}
.pill--accent:hover { background: var(--accent-soft); box-shadow: 0 14px 40px rgba(255, 46, 136, 0.34); }

.pill--ghost {
  padding: 0 24px;
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.pill--ghost:hover { background: var(--soft); }
.on-dark .pill--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* фирменная кнопка: стрелка переезжает справа налево */
.pill--solid {
  overflow: hidden;
  padding: 0 64px 0 26px;
  background: var(--ink);
  color: #fff;
}
.on-dark .pill--solid { background: #fff; color: var(--ink); }
.pill--solid > span:first-child {
  position: relative;
  z-index: 1;
  transition: transform 0.72s var(--ease);
}
.pill--solid .pill-arrow {
  position: absolute;
  top: 0;
  left: calc(100% - 46px);
  z-index: 2;
  background: #fff;
  color: var(--ink);
}
.on-dark .pill--solid .pill-arrow { background: var(--ink); color: #fff; }
.pill--solid:hover { background: var(--accent); color: #fff; }
.pill--solid:hover > span:first-child { transform: translateX(42px); }
.pill--solid:hover .pill-arrow { left: 0; background: #fff; color: var(--accent); }

.pill-arrow {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 999px;
  transition: left 0.78s var(--ease), background 0.5s var(--ease),
              color 0.5s var(--ease), transform 0.6s var(--ease);
}
.pill-arrow svg, .text-link svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.6s var(--ease);
}
.pill:hover .pill-arrow svg { transform: rotate(45deg); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted-strong);
  transition: color 0.2s ease;
}
.text-link:hover { color: var(--text); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- 7. Герой: большой видеобаннер --------------------------------- */

.hero { padding-top: clamp(80px, 6.5vw, 108px); padding-bottom: clamp(10px, 1.4vw, 24px); }

/* Обёртка нужна, чтобы белый «вырез» лежал ПОВЕРХ медиа-блока, а не внутри
   него: внутри его обрезал бы overflow:hidden, и по дуге угла оставалась
   тонкая полоска видео. */
.hero-stage { position: relative; }

.hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: clamp(300px, 44vh, 540px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--bg);
  isolation: isolate;
}

/* Видео сознательно МЕНЬШЕ карточки, с белым отступом по краям (сама
   рамка) и своим, отдельным скруглением. Это не только визуальный приём —
   так внешний угол .hero-media гарантированно не содержит ни одного
   пикселя видео: встроенный YouTube-плеер — это отдельный iframe со своим
   слоем композитинга, и он может на 1-2px "протекать" за пределы скругления
   родителя независимо от того, насколько точно посчитан clip-path. Когда
   видео физически не доходит до внешнего угла, протекать там нечему. */
.hero-video {
  position: absolute;
  inset: clamp(12px, 1.6vw, 22px);
  overflow: hidden;
  border-radius: clamp(20px, 2.6vw, 30px);
  background: #0b0710;
}
.hero-video::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(6, 6, 10, 0.4) 0%, rgba(6, 6, 10, 0.08) 46%, transparent 66%),
              linear-gradient(0deg, rgba(6, 6, 10, 0.42), transparent 42%);
  pointer-events: none;
}
.hero-video iframe,
.hero-video img,
.hero-video__el {
  position: absolute;
  top: 50%; left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}
/* Доп. зум + сильный сдвиг кадра вправо, чтобы в кадре был персонаж
   (он ближе к правому краю исходного ролика). Запас зума (scale) должен
   быть больше сдвига (translateX сверх -50%), иначе с той стороны, куда
   сдвигаем, вылезет фон .hero-video__fallback. Подбирается на глаз —
   крутить оба значения вместе. */
.hero-video__el {
  transform: translate(-30%, -50%) scale(1.75);
}
.hero-video__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 46, 136, 0.55), transparent 58%),
    radial-gradient(circle at 18% 82%, rgba(123, 92, 255, 0.5), transparent 60%),
    #0b0710;
}

/* «вырез» под заголовок */
.hero-carve {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  padding: clamp(20px, 2.2vw, 34px) 0 0 clamp(28px, 3.4vw, 64px);
}
/* У самой подложки НЕТ border-radius в углу — специально. Скругление там
   даёт .hero-media своим overflow:hidden, и это ОДИН клип разом на видео
   и на подложку: рисовать скругление ещё раз здесь означало бы два
   независимых скругления на стыке, а именно там и просачивалось видео. */
.hero-carve__fill {
  position: absolute;
  top: 0; left: 0;
  z-index: -1;
  width: calc(100% + 170px);
  height: calc(100% + 170px);
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 74px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-line { display: block; }
.hero-title .hero-line + .hero-line { margin-top: 1px; }
.hero-title em { font-style: normal; color: var(--accent); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0 4px;
}

/* HUD со стрелками — «обыгранная» механика ритма */
.hero-hud {
  position: absolute;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: rgba(12, 10, 18, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
}
.keycaps { display: flex; gap: 7px; }
.keycap {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  font-size: 13px;
  line-height: 1;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
.keycap.is-hit {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 20px rgba(255, 46, 136, 0.7);
  transform: translateY(-3px);
}
.hero-hud__verdict {
  min-width: 74px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.hero-hud__verdict.is-on { opacity: 1; color: var(--accent-soft); }

/* ---------- 8. Бегущая строка --------------------------------------------- */

.ticker {
  position: relative;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  overflow: hidden;
  padding: 14px 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: ticker 34s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__track span::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 9. Интро ------------------------------------------------------ */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.6vw, 20px);
}
.intro-copy {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: left;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.intro-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(340px circle at 92% 115%, rgba(255, 46, 136, 0.14), transparent 70%),
    repeating-linear-gradient(0deg, rgba(10, 10, 12, 0.05) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(10, 10, 12, 0.05) 0 1px, transparent 1px 36px);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
}
.intro-copy > * { position: relative; }
.intro-copy > * + * { margin-top: clamp(14px, 1.8vw, 20px); }
.intro-copy h2.lead {
  max-width: 66ch;
  font-family: var(--display);
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
}
.intro-copy p.lead {
  max-width: 66ch;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
.intro-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; align-items: center; }
.intro > .photo-card { width: 100%; max-width: 720px; }

.pillars-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}
.pillar {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--soft);
  transition: background 0.4s ease, transform 0.4s var(--ease);
}
.pillar:hover { background: var(--soft-2); transform: translateY(-3px); }
.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(10, 10, 12, 0.05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(10, 10, 12, 0.05) 0 1px, transparent 1px 32px);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
}
.pillar:nth-child(1)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at 100% 0%, rgba(255, 46, 136, 0.16), transparent 70%);
}
.pillar:nth-child(2)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at 100% 100%, rgba(255, 46, 136, 0.16), transparent 70%);
}
.pillar:nth-child(3)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at 0% 100%, rgba(255, 46, 136, 0.16), transparent 70%);
}
.pillar > * { position: relative; }
.pillar__mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}
.pillar__mark svg { width: 17px; height: 17px; }
.pillar p { color: var(--muted); font-size: 15px; }

.photo-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 32vw, 460px);
  border-radius: clamp(24px, 3.4vw, 44px);
  background: var(--soft);
  box-shadow: 0 30px 80px rgba(10, 10, 12, 0.14);
}
.photo-card img {
  width: 100%; height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.photo-card:hover img { transform: scale(1.05); }
.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(6, 6, 10, 0.6));
  pointer-events: none;
}
.photo-card figcaption {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- 10. Цифры ----------------------------------------------------- */

/* ---------- 11. Тёмная врезка «Режимы» ------------------------------------ */

.modes {
  width: calc(100% - 8px);
  margin-inline: auto;
  border-radius: var(--radius-xl);
  background: var(--ink);
}
.modes__inner {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: clamp(60px, 7.4vw, 116px) 0 clamp(54px, 6.6vw, 96px);
}
.modes__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: end;
  margin-bottom: clamp(44px, 5.6vw, 80px);
}
.modes__top h2 { max-width: 15ch; }
.modes__top p { color: var(--muted); }

.mode-list { border-top: 1px solid var(--line); }
.mode-list:hover .mode-row { opacity: 0.34; }
.mode-list:hover .mode-row:hover { opacity: 1; }

.mode-row {
  --pv: clamp(104px, 9vw, 148px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.56fr) 40px;
  gap: 28px;
  align-items: center;
  min-height: clamp(112px, 9.2vw, 158px);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: opacity 0.28s ease;
}
.mode-row__preview {
  position: absolute;
  top: 50%; left: 0;
  z-index: 1;
  width: 0;
  height: calc(var(--pv) * 0.62);
  overflow: hidden;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(-50%);
  transition: width 0.62s var(--ease-soft), opacity 0.3s ease;
}
.mode-row__preview img {
  width: var(--pv);
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.16);
  transition: transform 0.7s var(--ease-soft);
}
.mode-row__title {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-size: clamp(24px, 3.2vw, 50px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
  transition: transform 0.62s var(--ease-soft);
}
.mode-row__desc {
  position: relative;
  z-index: 2;
  max-width: 42ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  transition: opacity 0.28s ease, transform 0.5s var(--ease-soft);
}
.mode-row__arrow {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mode-row:hover .mode-row__preview { width: var(--pv); opacity: 1; }
.mode-row:hover .mode-row__preview img { transform: scale(1); }
.mode-row:hover .mode-row__title { transform: translateX(calc(var(--pv) + 26px)); }
.mode-row:hover .mode-row__desc { opacity: 0; transform: translateX(18px); }
.mode-row:hover .mode-row__arrow { opacity: 1; transform: translate(4px, -4px); }

/* ---------- 12. Галерея --------------------------------------------------- */

.head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(26px, 3.2vw, 46px);
}
.head-row h2 { margin-top: 16px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 18px);
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.shot--wide { grid-column: span 4; aspect-ratio: 16 / 8.4; }
.shot--tall { grid-column: span 2; align-self: stretch; }   /* тянется на высоту ряда */
.shot--third { grid-column: span 2; aspect-ratio: 16 / 10; }
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-soft);
}
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(5, 5, 9, 0.7));
  pointer-events: none;
}

/* ---------- 13. Карточки-шаги --------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--soft);
  overflow: hidden;
  transition: background 0.4s ease, transform 0.4s var(--ease);
}
.step:hover { background: var(--soft-2); transform: translateY(-3px); }
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(10, 10, 12, 0.05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(10, 10, 12, 0.05) 0 1px, transparent 1px 32px);
  -webkit-mask-image: linear-gradient(20deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(20deg, #000 0%, transparent 55%);
}
.step:nth-child(1)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at 0% 0%, rgba(255, 46, 136, 0.16), transparent 70%);
}
.step:nth-child(2)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at 50% 100%, rgba(255, 46, 136, 0.16), transparent 70%);
}
.step:nth-child(3)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at 100% 0%, rgba(255, 46, 136, 0.16), transparent 70%);
}
.step > * { position: relative; }
.step__num {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.step__num u {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  text-decoration: none;
}
.step p { color: var(--muted); font-size: 15px; }
.step .pill { margin-top: auto; align-self: flex-start; }

/* ---------- 14. FAQ ------------------------------------------------------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.2fr);
  gap: clamp(26px, 4.6vw, 78px);
  align-items: start;
}
.faq__aside > * + * { margin-top: 20px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item__q {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: clamp(19px, 2.1vw, 27px) 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 400;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-item__q:hover { color: var(--accent); }
.faq-item__q i {
  position: relative;
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background 0.3s ease, color 0.3s ease, transform 0.4s var(--ease);
}
.faq-item__q i::before, .faq-item__q i::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.faq-item__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-item__q i { background: var(--accent); color: #fff; transform: rotate(180deg); }
.faq-item.is-open .faq-item__q i::after { opacity: 0; }

.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p {
  max-width: 66ch;
  padding-bottom: clamp(19px, 2.1vw, 27px);
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.faq-item__a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 15. Финальный CTA + маркиз ------------------------------------ */

.cta { text-align: center; }
.has-decor { position: relative; }
.has-decor::before {
  content: '';
  position: absolute;
  top: -10%; bottom: -10%;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(480px circle at 12% 30%, rgba(255, 46, 136, 0.16), transparent 70%),
    radial-gradient(480px circle at 88% 70%, rgba(255, 46, 136, 0.16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(10, 10, 12, 0.07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(10, 10, 12, 0.07) 0 1px, transparent 1px 44px);
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}
.cta h2 { width: min(900px, 100%); margin: 18px auto 30px; }
.cta .section-label { justify-content: center; }
.cta__actions { display: inline-flex; flex-wrap: wrap; gap: 18px; justify-content: center; }

.marquee { position: relative; overflow: hidden; padding: clamp(42px, 5.4vw, 84px) 0 clamp(46px, 6vw, 92px); }
.marquee__button {
  position: absolute;
  top: clamp(18px, 3.6vw, 50px);
  left: clamp(16px, 4vw, 56px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(70px, 6.8vw, 112px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 40px rgba(255, 46, 136, 0.3);
  transition: transform 0.24s ease, background 0.24s ease;
}
.marquee__button:hover { background: var(--accent-soft); transform: translateY(-3px) scale(1.03); }
.marquee__button svg {
  width: clamp(28px, 2.8vw, 44px); height: clamp(28px, 2.8vw, 44px);
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.marquee__row + .marquee__row { margin-top: clamp(16px, 2.2vw, 34px); }
.marquee__track { display: flex; width: max-content; gap: clamp(28px, 4vw, 64px); animation: marquee 36s linear infinite; }
.marquee__track--rev { animation: marquee-rev 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: block;
  font-family: var(--display);
  font-size: clamp(52px, 10.8vw, 162px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.marquee__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.4px var(--line-strong); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- 16. Подвал ---------------------------------------------------- */

.site-footer { width: calc(100% - 16px); margin: 0 auto 16px; }
.site-footer__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--ink);
  padding: clamp(36px, 4.6vw, 64px) clamp(22px, 3.6vw, 60px) clamp(22px, 2.8vw, 38px);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.6fr));
  gap: clamp(26px, 3.6vw, 56px);
  padding-bottom: clamp(34px, 4.6vw, 66px);
}
.footer-lead .brand__logo { height: 48px; }
.footer-lead p { max-width: 34ch; margin-top: 16px; color: var(--muted); font-size: 15px; }
.footer-lead .pill { margin-top: 24px; }

.footer-col h4 {
  margin-bottom: 15px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--muted); font-size: 15px; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }

.footer-word {
  font-family: var(--display);
  font-size: min(10.7vw, 152px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--line-strong);
  user-select: none;
  pointer-events: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(22px, 2.8vw, 38px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- 17. Внутренние страницы --------------------------------------- */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
  gap: clamp(30px, 5vw, 78px);
  align-items: center;
  padding-top: clamp(118px, 13vw, 186px);
}
.page-hero h1 { margin-top: 18px; }
.page-hero p.lead { margin-top: 22px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; }

.panel {
  border-radius: var(--radius-lg);
  background: var(--soft);
  padding: clamp(22px, 2.8vw, 38px);
}
.panel--dark { background: var(--ink); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 15px;
  vertical-align: top;
}
.spec-table th { width: 42%; color: var(--muted); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 24px); }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 20px); }

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}
.check-list li + li { margin-top: 13px; }
.check-list li::before {
  content: '';
  position: absolute;
  top: 3px; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255, 46, 136, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 46, 136, 0.4);
}
.check-list li::after {
  content: '';
  position: absolute;
  top: 9px; left: 6px;
  width: 8px; height: 4px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}
.check-list b { color: var(--text); font-weight: 700; }

.note-box {
  display: flex;
  gap: 14px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 46, 136, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 46, 136, 0.22);
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.5;
}
.note-box b { color: var(--text); }

/* --- блок режима (страница «Игра») --- */
.mode-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: center;
}
.mode-block + .mode-block { margin-top: clamp(48px, 6vw, 96px); }
.mode-block:nth-child(even) .mode-block__media { order: -1; }
.mode-block__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.mode-block__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-soft); }
.mode-block:hover .mode-block__media img { transform: scale(1.04); }
.mode-block__copy > * + * { margin-top: 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 600;
}

/* --- клавиши-стрелки как обучающий блок --- */
.keys-demo {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  border-radius: var(--radius-xl);
  background: var(--ink);
  padding: clamp(30px, 4vw, 62px);
}
.keys-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(360px circle at 100% 0%, rgba(255, 46, 136, 0.22), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 36px);
  -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 60%);
  mask-image: linear-gradient(160deg, #000 0%, transparent 60%);
}
.keys-demo > * { position: relative; }
.keys-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(310px, 100%);
}
.keys-pad .key {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 20px;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.keys-pad .key:nth-child(1) { grid-area: 1 / 2; }
.keys-pad .key:nth-child(2) { grid-area: 2 / 1; }
.keys-pad .key:nth-child(3) { grid-area: 2 / 2; }
.keys-pad .key:nth-child(4) { grid-area: 2 / 3; }
.keys-pad .key--space {
  grid-area: 3 / 1 / auto / -1;
  aspect-ratio: auto;
  min-height: 52px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.keys-pad .key.is-hit {
  background: var(--accent);
  box-shadow: 0 0 26px rgba(255, 46, 136, 0.6);
  transform: translateY(-3px);
}

/* --- новости --- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 40px;
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
  padding: clamp(24px, 2.8vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.25s ease;
}
.news-list:hover .news-item { opacity: 0.42; }
.news-list:hover .news-item:hover { opacity: 1; }
.news-item__meta { display: flex; flex-direction: column; gap: 10px; }
.news-item__date { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.news-item__tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 46, 136, 0.1);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-item h3 { font-family: var(--display); font-size: clamp(20px, 2.1vw, 32px); font-weight: 400; letter-spacing: -0.03em; }
.news-item p { max-width: 68ch; margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.news-item__arrow {
  justify-self: end;
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.4;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.news-item:hover .news-item__arrow { opacity: 1; transform: translate(4px, -4px); }

/* ---------- 17b. Карусель дневника разработки ------------------------------ */

.dev-carousel { margin-top: clamp(28px, 3.2vw, 44px); }
.dev-carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.dev-carousel__track::-webkit-scrollbar { display: none; }
.dev-slide {
  position: relative;
  flex: none;
  width: min(100%, 560px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
  scroll-snap-align: start;
}
.dev-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.dev-slide:hover img { transform: scale(1.04); }
.dev-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 6, 10, 0.68));
  pointer-events: none;
}
.dev-slide__play {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.dev-slide__play svg { width: 24px; height: 24px; margin-left: 3px; }
.dev-slide:hover .dev-slide__play { transform: translate(-50%, -50%) scale(1.08); }
.dev-slide__caption {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 2;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- 18. Адаптив --------------------------------------------------- */

@media (max-width: 1080px) {
  .intro, .modes__top, .faq__grid, .page-hero, .mode-block, .keys-demo {
    grid-template-columns: minmax(0, 1fr);
  }
  .mode-block:nth-child(even) .mode-block__media { order: 0; }
  .modes__top { align-items: start; }
  .steps-grid, .three-col, .pillars-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shot--wide { grid-column: span 4; }
  .shot--tall { grid-column: span 2; align-self: auto; aspect-ratio: 16 / 10; }
  .shot--third { grid-column: span 2; aspect-ratio: 16 / 10; }
  .hero-media { min-height: clamp(460px, 62vh, 620px); }
}

@media (max-width: 900px) {
  .hero { padding-top: 132px; }
  .menu-toggle { display: block; }
  .site-header { grid-template-columns: auto 1fr; padding: 10px 12px 10px 20px; }
  .site-header .header-actions { grid-column: 2; }
  .main-nav {
    position: fixed;
    top: 74px; left: 8px; right: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px var(--line), 0 26px 70px rgba(10, 10, 12, 0.18);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.4s var(--ease), visibility 0.3s;
  }
  .site-header.is-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav .nav-link { padding: 13px 8px; font-size: 18px; }
  .main-nav .nav-link::after { display: none; }
  .status-chip { display: none; }

  .mode-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .mode-row__desc, .mode-row__preview { display: none; }
  .mode-row:hover .mode-row__title { transform: none; }
  .mode-list:hover .mode-row { opacity: 1; }

  .news-item { grid-template-columns: minmax(0, 1fr) 32px; }
  .news-item__meta { flex-direction: row; align-items: center; gap: 12px; grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .shot { grid-column: span 1 !important; aspect-ratio: 16 / 10; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-carve__fill { display: none; }
  .hero-media {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
  }
  .hero-video {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }
  .hero-video__el { transform: translate(-75%, -50%) scale(1.7); }
  .hero-carve {
    position: relative;
    order: 1;
    background: var(--bg);
    padding: clamp(24px, 6vw, 34px) clamp(20px, 5vw, 28px);
  }
  .hero-hud { left: clamp(16px, 2.4vw, 32px); right: auto; }
  .hero-hud__verdict { display: none; }
}

/* ---------- 19. Меньше движения ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
