/* ==========================================================================
   Dynasty Creo — лендинг v2
   Визуальный язык взят из Nexus (внутренний инструмент студии): тёплый графит,
   кольца-«топология» на фоне, стеклянные карточки с бликом по кромке,
   жирный наклонный вордмарк, подписи капсом с разрядкой, моно для данных.
   Палитра прежняя: тёмный фон + оранжевый.

   Схема «Как мы работаем» — отдельно: css/process-flow.css + js/process-flow.js.
   ========================================================================== */

/* ── Шрифты: свои файлы, без Google Fonts (лицензии OFL — в /fonts) ── */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic-wght-normal.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-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Акцидентный шрифт — как вордмарк NEXUS: Impact там, где он есть (Windows, macOS),
   иначе Oswald. Файл грузится только если Impact не нашёлся. */
@font-face {
  font-family: "Dynasty Display";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/fonts/oswald-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Dynasty Display";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/fonts/oswald-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Токены
   ========================================================================== */
:root {
  /* поверхности — шкала nx из Nexus */
  --bg: #0d0a08;
  --card: #1b1614;
  --raised: #262019;
  --chip: #2d2620;
  --line: #3d342c;
  --track: #0b0908;

  /* текст */
  --ink: #ffffff;
  --body: #b9b1aa;
  --muted: #857b73;

  /* акцент — прежний оранжевый */
  --orange: #ff6a1a;
  --orange-hi: #ff8a3d;
  --orange-soft: #ffb078;
  --grad: linear-gradient(155deg, #ff9148 0%, #ff6a1a 52%, #e8431c 100%);
  --grad-text: linear-gradient(100deg, #ffc49a 0%, #ff8a3d 38%, #ff6a1a 68%, #f0461c 100%);

  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: Impact, "Dynasty Display", "Arial Narrow Bold", sans-serif;

  --container: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* для css/process-flow.css */
  --section-bg: transparent;
}

/* ==========================================================================
   База
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  color: var(--ink);
  /* фон держит <html>: непрозрачный body перекрыл бы слой .backdrop (z-index: -1) */
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto; /* атрибуты width/height — только для пропорций, не для размера */
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--orange-hi);
  outline-offset: 3px;
  border-radius: 10px;
}

::selection {
  background: rgba(255, 106, 26, 0.38);
  color: #fff;
}

.i {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

/* ── Фон страницы: кольца-«топология» и тёплое свечение по углам (как в Nexus) ── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 50% at 90% 4%, rgba(255, 106, 26, 0.15) 0%, transparent 60%),
    radial-gradient(50% 45% at 4% 96%, rgba(214, 62, 28, 0.12) 0%, transparent 60%),
    repeating-radial-gradient(ellipse 60% 55% at 82% 16%, transparent 0 46px, rgba(255, 200, 160, 0.045) 46px 47px),
    repeating-radial-gradient(ellipse 55% 60% at 8% 88%, transparent 0 54px, rgba(255, 200, 160, 0.035) 54px 55px);
}

/* лёгкое зерно, чтобы градиенты не выглядели «цифровыми» */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px);
}

/* ==========================================================================
   Типографика
   ========================================================================== */

/* Наклонный вордмарк — как NEXUS в интерфейсе Nexus */
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "wght" 700; /* для Oswald; Impact не вариативный — не заметит */
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.92;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Подпись капсом — «CARD BALANCE», «IDENTITY» */
.label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
}

/* Статус-строка — «● NEXUS CORE ONLINE» */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-hi);
}

.status__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: dot-pulse 2.2s ease-in-out infinite;
}

.status--light {
  color: #ffe2cc;
}

.status--light .status__dot {
  background: #fff;
  box-shadow: 0 0 12px #fff;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}

/* Заголовок секции: номер, подпись, крупный заголовок, подзаголовок; справа — что угодно */
.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.head__main {
  max-width: 780px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker__num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--orange-hi);
}

.kicker__num::after {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.head__title {
  margin-top: 18px;
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.head__sub {
  margin-top: 16px;
  max-width: 580px;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}

/* ==========================================================================
   Стекло — как .nx-glass в Nexus
   ========================================================================== */
.glass,
.glass-inner {
  position: relative;
  isolation: isolate;
}

.glass {
  border-radius: var(--r-xl);
  background: linear-gradient(137deg, rgba(30, 24, 21, 0.92) 3%, rgba(27, 22, 20, 0.62) 98%);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.85);
}

.glass-inner {
  border-radius: var(--r-lg);
  background: linear-gradient(-22deg, rgba(27, 22, 20, 0.96) 23%, rgba(30, 24, 21, 0.72) 75%);
}

/* Кромка: не обводка по периметру, а блик — светлее сверху слева, сходит на нет */
.glass::before,
.glass-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0.015) 60%, rgba(255, 255, 255, 0.06) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-inner::before {
  padding: 1px;
  opacity: 0.75;
}

/* Блик под курсором (js/glass.js пишет --lg-x / --lg-y) */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--lg-x, 50%) var(--lg-y, -30%), rgba(255, 255, 255, 0.07), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.glass:hover::after {
  opacity: 1;
}

/* Акцентная карточка — «Card Balance» из Nexus: тёплый градиент и свечение из угла */
.glass--accent {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 47, 0.55) 0%, rgba(255, 95, 54, 0.18) 45%, transparent 70%),
    linear-gradient(120deg, #1c1310 0%, #3a1a10 60%, #6b2412 100%);
  box-shadow: 0 24px 70px -20px rgba(255, 95, 54, 0.28);
}

.glass--accent::before {
  background: linear-gradient(135deg, rgba(255, 210, 175, 0.32) 0%, rgba(255, 160, 110, 0.08) 40%, rgba(255, 255, 255, 0.02) 65%, rgba(255, 180, 130, 0.14) 100%);
}

/* «Уменьшить прозрачность» в системе (в Windows — выключенные эффекты прозрачности):
   стекло становится плотным, акцентные карточки остаются как есть */
@media (prefers-reduced-transparency: reduce) {
  .glass:not(.glass--accent) { background: #1b1614; }
}

/* Плитка с иконкой: акцентная (градиент со свечением) или тихая */
.tile {
  --s: 44px;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: calc(var(--s) * 0.3);
  color: #fff;
  background: var(--grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 20px -4px rgba(255, 106, 26, 0.55);
}

.tile .i {
  width: 48%;
  height: 48%;
}

.tile--muted {
  color: var(--body);
  background: var(--raised);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Капсулы */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--body);
  background: rgba(45, 38, 32, 0.85);
}

.chip--accent {
  color: var(--orange-soft);
  background: rgba(255, 106, 26, 0.14);
}

.chip--glass {
  color: #fff;
  background: rgba(12, 10, 8, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.chip--light {
  color: #2a140a;
  background: #fff;
}

/* Гигантский блеклый номер в углу — как на плитках Nexus */
.bignum {
  position: absolute;
  right: 18px;
  bottom: -0.16em;
  z-index: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "wght" 700;
  font-size: clamp(110px, 12vw, 170px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    filter 0.2s ease,
    box-shadow 0.25s ease,
    background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn .i {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .i--arrow {
  transform: translateX(3px);
}

/* внешняя ссылка: стрелка уходит по диагонали */
.btn:hover .i--out {
  transform: translate(2px, -2px);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--primary {
  color: #fff;
  background: var(--grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 8px rgba(140, 36, 0, 0.25),
    0 12px 32px -10px rgba(255, 106, 26, 0.7);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 8px rgba(140, 36, 0, 0.2),
    0 16px 40px -10px rgba(255, 106, 26, 0.85);
}

.btn--glass {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(38, 32, 25, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.btn--glass:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(45, 38, 32, 0.7);
}

.btn--light {
  color: #1c1310;
  background: #fff;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
}

.btn--light:hover {
  transform: translateY(-2px);
  background: #fff4ec;
}

.btn--lg {
  height: 58px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 18px;
}

.btn--sm {
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 13px;
}

.btn--icon {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 14px;
}

.btn--block {
  width: 100%;
}

/* на узких экранах длинная подпись переносится, а не растягивает страницу */
@media (max-width: 420px) {
  .btn--lg {
    height: auto;
    min-height: 56px;
    padding: 14px 20px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
}

.btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

/* ==========================================================================
   Шапка
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 10, 8, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(61, 52, 44, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.topbar.is-scrolled::before,
.topbar.is-open::before {
  opacity: 1;
}

.topbar__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand .tile {
  --s: 36px;
}

.brand__word {
  display: inline-block;
  font-size: 25px;
  transform: scaleY(1.12);
  transform-origin: left bottom;
}

.brand__sub {
  align-self: flex-start;
  margin-top: 5px;
  margin-left: -4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange-hi);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(38, 32, 25, 0.7);
}

.nav a.is-active {
  color: var(--ink);
  background: var(--raised);
}

.nav__ext::after {
  content: "↗";
  margin-left: 4px;
  font-size: 12px;
  color: var(--muted);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: rgba(38, 32, 25, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.menu-btn .i {
  width: 20px;
  height: 20px;
}

.menu {
  position: absolute;
  top: calc(var(--header-h) - 4px);
  left: var(--pad);
  right: var(--pad);
  padding: 10px;
  border-radius: 22px;
  display: grid;
  gap: 2px;
}

.menu[hidden] {
  display: none;
}

.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
}

.menu a:hover,
.menu a:focus-visible {
  background: rgba(45, 38, 32, 0.8);
}

.menu a .i {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .topbar__actions { margin-left: auto; }
}

@media (max-width: 420px) {
  .topbar__tg span { display: none; }
  .topbar__tg { width: 44px; padding: 0; }
}

/* ==========================================================================
   Первый экран
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(44px, 6vw, 88px);
}

/* сетка как на экране Nexus, гаснет к краям */
.hero__grid {
  position: absolute;
  inset: calc(-1 * var(--header-h)) 0 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 65% at 68% 38%, #000 10%, transparent 72%);
  mask-image: radial-gradient(70% 65% at 68% 38%, #000 10%, transparent 72%);
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: min(calc(100svh - var(--header-h) - 48px), 660px);
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero__line {
  display: block;
}

.hero__line > span {
  display: inline-block;
  animation: word-in 0.9s var(--ease) backwards;
  animation-delay: calc(140ms + var(--i, 0) * 90ms);
}

.hero__line--accent > span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(0.4em) skewY(4deg);
  }
}

.hero__sub {
  margin-top: 26px;
  max-width: 520px;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.55;
  color: var(--body);
  animation: fade-up 0.9s var(--ease) 0.55s backwards;
}

.hero__sub b {
  color: var(--ink);
  font-weight: 700;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  animation: fade-up 0.9s var(--ease) 0.7s backwards;
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 40px;
  max-width: 560px;
  animation: fade-up 0.9s var(--ease) 0.85s backwards;
}

.proof {
  padding: 14px 16px 15px;
}

.proof__num {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.proof__num small {
  font-size: 0.6em;
  font-weight: 700;
  color: var(--orange-hi);
  margin-left: 3px;
}

.proof .label {
  display: block;
  margin-top: 6px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  line-height: 1.35;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Правая часть: маскот в «портале» из колец и плавающие карточки */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  justify-self: end;
  animation: fade-in 1.2s ease 0.2s backwards;
}

@keyframes fade-in {
  from { opacity: 0; }
}

/* колонка под маскота уже текста — даём фигуре выйти за неё в зазор и к краю контейнера
   (насколько позволяют поля: на узком десктопе меньше, иначе появится горизонтальный скролл) */
@media (min-width: 901px) {
  .hero__visual {
    width: 110%;
    max-width: 640px;
    margin-right: -3%;
  }
}

@media (min-width: 1440px) {
  .hero__visual {
    width: 116%;
    margin-right: -8%;
  }
}

@media (max-width: 1439px) {
  .float--2 { right: 0; }
}

.portal {
  position: absolute;
  inset: 2%;
  overflow: visible;
}

.portal__glow {
  fill: url(#portal-glow);
}

.portal__ring {
  fill: none;
  stroke: rgba(255, 180, 130, 0.14);
  stroke-width: 1;
  transform-origin: 50% 50%;
  transform-box: view-box;
}

.portal__ring--dash {
  stroke: rgba(255, 138, 61, 0.42);
  stroke-width: 1.5;
  stroke-dasharray: 2 10;
  animation: spin 60s linear infinite;
}

.portal__ring--arc {
  stroke: rgba(255, 106, 26, 0.75);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 120 900;
  animation: spin 16s linear infinite;
}

.portal__ring--slow {
  animation: spin 90s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__mascot {
  position: absolute;
  inset: 3% 4% 0 2%;
  width: 94%;
  height: 97%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
}

.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 11px;
  border-radius: 18px;
  animation: float 7s ease-in-out infinite;
}

.float .tile {
  --s: 36px;
}

.float__title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.float__sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.float__sub b {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--orange-soft);
}

.float--1 { left: -3%; top: 20%; }
.float--2 { right: -4%; top: 46%; animation-delay: -2.4s; }
.float--3 { left: 4%; bottom: 7%; animation-delay: -4.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* мини-столбики в плавающей карточке */
.minibars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  padding: 0 2px;
}

.minibars i {
  width: 5px;
  height: var(--h);
  border-radius: 3px;
  background: linear-gradient(to top, rgba(255, 106, 26, 0.35), var(--orange-hi));
}

@media (max-width: 900px) {
  .hero__in {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__visual {
    order: -1;
    justify-self: center;
    max-width: min(440px, 92%);
    margin-bottom: -8px;
  }

  .hero__title { margin-top: 16px; }
  .float--1 { left: -6%; top: 12%; }
  .float--2 { right: -6%; top: 52%; }
  .float--3 { display: none; }
}

@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; }
  .hero__proof { gap: 8px; }
  .proof { padding: 12px 12px 13px; }
  .float { padding: 8px 12px 8px 8px; border-radius: 15px; gap: 9px; }
  .float .tile { --s: 30px; }
  .float__title { font-size: 12px; }
  .float__sub { font-size: 11px; }
}

/* ==========================================================================
   Бегущая строка
   ========================================================================== */
.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(61, 52, 44, 0.55);
  background: rgba(15, 12, 10, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -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;
  animation: ticker 48s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 17px 0 17px 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--body);
}

.ticker__item::after {
  content: "";
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.ticker__item b {
  font-weight: 600;
  color: var(--ink);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Цифры
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.stat {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px 24px 26px;
  overflow: hidden;
}

.stat__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.stat__label {
  padding-top: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--body);
}

.stat__num {
  margin-top: auto;
  padding-top: 20px;
  font-size: clamp(48px, 5.2vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.stat__num small {
  margin-left: 4px;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--orange-hi);
}

.stat__note {
  margin-top: 12px;
  max-width: 340px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.stat--hero {
  grid-row: span 2;
  min-height: 460px;
}

.stat--hero .stat__label {
  color: rgba(255, 255, 255, 0.82);
}

.stat--hero .stat__num {
  font-size: clamp(96px, 12vw, 168px);
}

.stat--hero .stat__num small {
  color: #ffd2b0;
}

.stat--hero .stat__note {
  color: rgba(255, 255, 255, 0.72);
}

.stat--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: flex-end;
  gap: 24px;
  min-height: 0;
}

.stat--wide .stat__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat--wide .stat__num {
  padding-top: 0;
  margin-top: 16px;
}

/* столбики с дорожкой — «BAR_TRACK» из Nexus */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  margin-top: 26px;
}

.bars i {
  position: relative;
  flex: 1;
  height: 100%;
  border-radius: 8px;
  background: rgba(11, 9, 8, 0.45);
  overflow: hidden;
}

.bars i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--h);
  border-radius: 8px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.85));
  transform-origin: bottom;
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--k, 0) * 60ms);
}

.js .bars:not(.is-in) i::after {
  transform: scaleY(0);
}

/* стопка аватаров команды */
.faces {
  display: flex;
  margin-left: auto;
  flex: none;
}

.faces span {
  width: 54px;
  height: 54px;
  margin-left: -14px;
  border-radius: 50%;
  overflow: hidden;
  background: #f08a2c;
  box-shadow: 0 0 0 3px #1c1714;
}

.faces img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.78);
}

.faces .faces__more {
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--raised);
}

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat--hero { grid-column: span 2; grid-row: auto; min-height: 0; }
  .stat--hero .stat__num { font-size: clamp(88px, 22vw, 140px); }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat--hero,
  .stat--wide { grid-column: auto; }
  .stat { min-height: 0; }
  .stat--wide { flex-direction: column; align-items: flex-start; }
  .faces { margin-left: 14px; }
}

/* ==========================================================================
   Работы — витрина: плеер, карточка креатива, сетка превью
   (логика — initShowcase() в js/landing.js)
   ========================================================================== */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: 14px;
}

.showcase__stage {
  display: grid;
  place-items: center;
  padding: clamp(20px, 2.6vw, 36px);
  overflow: hidden;
}

/* тёплое свечение и кольца за «телефоном» — как портал на первом экране */
.showcase__rings {
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 106, 26, 0.28) 0%, rgba(255, 106, 26, 0.08) 30%, transparent 55%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 34px, rgba(255, 200, 160, 0.05) 34px 35px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 68%);
  pointer-events: none;
}

/* «Телефон»: рамка из теней — тёмный корпус и тонкий блик по краю */
.player {
  position: relative;
  width: min(100%, 350px);
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  overflow: hidden;
  background: var(--track);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 8px rgba(18, 14, 12, 0.85),
    0 0 0 9px rgba(255, 255, 255, 0.08),
    0 40px 80px -24px rgba(0, 0, 0, 0.9),
    0 0 90px -16px rgba(255, 106, 26, 0.4);
  touch-action: pan-y;
  cursor: pointer;
}

.player__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player.is-swapping .player__media {
  animation: player-in 0.55s var(--ease);
}

@keyframes player-in {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* затемнение снизу под кнопку и полосу прогресса */
.player::after {
  content: "";
  position: absolute;
  inset: 62% 0 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(8, 6, 5, 0.75), transparent);
  pointer-events: none;
}

.player__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.player__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.player__sound {
  position: absolute;
  right: 14px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(12, 10, 8, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, transform 0.2s var(--ease);
}

.player__sound .i {
  width: 16px;
  height: 16px;
}

.player__sound:hover {
  transform: translateY(-1px);
  background: var(--orange);
}

/* прогресс автопросмотра */
.player__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 11px;
  z-index: 2;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.player__bar i {
  display: block;
  width: calc(var(--p, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.showcase.is-auto .player__bar {
  opacity: 1;
}

/* Правая часть: карточка выбранного креатива + сетка превью */
.showcase__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.sc-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
}

.sc-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sc-count {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.sc-count b {
  font-weight: 600;
  color: var(--ink);
}

.sc-nav {
  display: flex;
  gap: 8px;
}

.sc-nav .btn--icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.sc-title {
  margin-top: 22px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.sc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sc-meta span + span::before {
  content: "/";
  margin-right: 12px;
  color: var(--line);
}

.sc-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.sc-metrics[hidden] {
  display: none;
}

.sc-metric {
  padding: 14px 16px 16px;
}

.sc-metric dd {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.sc-metric dd small {
  font-size: 0.6em;
  color: var(--orange-hi);
}

.sc-desc {
  margin-top: 18px;
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body);
}

.sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.sc-card.is-swapping :is(.sc-title, .sc-meta, .sc-metrics, .sc-desc) {
  animation: fade-up 0.5s var(--ease) backwards;
}

.sc-card.is-swapping .sc-meta { animation-delay: 40ms; }
.sc-card.is-swapping .sc-metrics { animation-delay: 80ms; }
.sc-card.is-swapping .sc-desc { animation-delay: 120ms; }

/* Сетка превью всех работ */
.thumbs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: var(--track);
  opacity: 0.5;
  filter: saturate(0.6);
  transition:
    opacity 0.3s ease,
    filter 0.3s ease,
    transform 0.3s var(--ease),
    box-shadow 0.3s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb:hover,
.thumb:focus-visible {
  opacity: 0.9;
  filter: none;
  transform: translateY(-3px);
}

.thumb.is-active {
  opacity: 1;
  filter: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--orange),
    0 10px 26px -8px rgba(255, 106, 26, 0.7);
}

.thumb__bar {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumb__bar::after {
  content: "";
  display: block;
  width: calc(var(--p, 0) * 100%);
  height: 100%;
  background: #fff;
}

.showcase.is-auto .thumb.is-active .thumb__bar {
  opacity: 1;
}

@media (max-width: 900px) {
  .showcase {
    grid-template-columns: 1fr;
  }

  .player {
    width: min(100%, 330px);
  }
}

@media (max-width: 560px) {
  .thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sc-actions .btn {
    flex: 1 1 auto;
  }
}

/* ==========================================================================
   Почему мы
   ========================================================================== */
.why {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.why-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 28px;
  overflow: hidden;
}

.why-card:nth-child(1) { grid-column: span 7; }
.why-card:nth-child(2) { grid-column: span 5; }
.why-card:nth-child(3) { grid-column: span 5; }
.why-card:nth-child(4) { grid-column: span 7; }

/* кольца-топология в углу карточки */
.why-card__rings {
  position: absolute;
  top: -40%;
  right: -30%;
  width: 90%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, rgba(255, 200, 160, 0.05) 22px 23px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  pointer-events: none;
}

.why-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.why-card .tile {
  --s: 50px;
}

.why-card h3 {
  position: relative;
  margin-top: 26px;
  max-width: 440px;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.why-card p {
  position: relative;
  margin-top: 12px;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

.ticks {
  position: relative;
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 24px;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #ddd5ce;
}

.ticks .i {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 6px;
  color: var(--orange-hi);
  background: rgba(255, 106, 26, 0.14);
  stroke-width: 3;
}

@media (max-width: 900px) {
  .why-card:nth-child(n) { grid-column: span 12; }
  .why-card { min-height: 0; }
}

/* ==========================================================================
   Схема процесса — подгонка секции под новую сетку
   ========================================================================== */
.pf-section .head {
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

/* ==========================================================================
   Отзывы — карточка-цитата как в Nexus
   ========================================================================== */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
}

.review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review .tile {
  --s: 40px;
}

.stars {
  display: flex;
  gap: 3px;
}

.stars .i {
  width: 15px;
  height: 15px;
  fill: var(--orange);
  stroke: none;
}

.stars .i.is-dim {
  fill: var(--line);
}

.review__text {
  font-size: 15.5px;
  font-style: italic;
  line-height: 1.65;
  color: #e6dfd9;
}

.review__foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 24px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(61, 52, 44, 0.7);
}

.review__who {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.review__role {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-soft);
}

@media (max-width: 900px) {
  .reviews { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Партнёрство — Dynasty Creo × NICO Production (UGC-продакшн)
   Баннер держит свои 16:9 и задаёт высоту первого ряда — карточка «100–270»
   рядом с ним гибкая и тянется под него, поэтому баннер никогда не обрезается.
   ========================================================================== */
.partner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "banner banner banner banner banner banner banner hero  hero  hero  hero  hero"
    "intro  intro  intro  intro  intro  intro  geo    geo   geo   local local local"
    "wide   wide   wide   wide   wide   wide   wide   wide  wide  wide  wide  wide";
  gap: 14px;
}

.partner__banner {
  grid-area: banner;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 8px;
  overflow: hidden;
}

.partner__banner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 21px;
  transition: transform 0.8s var(--ease);
}

.partner__banner:hover img {
  transform: scale(1.015);
}

/* баннер-ссылка на сайт партнёра */
.partner__link {
  display: block;
  width: 100%;
  border-radius: 21px;
  overflow: hidden;
}

.partner__link img {
  display: block;
}

.partner__link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.partner__intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.6vw, 34px);
}

.partner__intro .chip {
  gap: 8px;
}

.partner__lockup {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body);
}

.partner__lockup span[aria-hidden] {
  margin: 0 6px;
  color: var(--orange);
}

.partner__title {
  margin-top: 12px;
  font-size: clamp(24px, 2.3vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.partner__text {
  margin-top: 12px;
  max-width: 520px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body);
}

/* Карточки преимуществ */
.ugc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  overflow: hidden;
}

.ugc-card--hero  { grid-area: hero; }
.ugc-card--geo   { grid-area: geo; }
.ugc-card--local { grid-area: local; }

.ugc-card--wide {
  grid-area: wide;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.ugc-card h3 {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ugc-card--wide h3 {
  margin-top: 0;
}

.ugc-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
}

.ugc-card--wide .tile {
  align-self: flex-start;
}

.ugc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ugc-card__cta {
  flex: none;
}

.ugc-card .ugc-card__label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

/* «одна смена → сотни вариаций»: ряд мини-кадров, которые загораются по очереди */
.variants {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.variants i {
  flex: none;
  width: 18px;
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  animation: variant-on 3.2s ease-in-out infinite;
  animation-delay: calc(var(--k, 0) * 110ms);
}

.variants i:first-child {
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
  animation: none;
}

@keyframes variant-on {
  0%, 55%, 100% { background: rgba(255, 255, 255, 0.12); }
  20%, 35%      { background: rgba(255, 224, 200, 0.55); }
}

.ugc-card .ugc-card__num {
  margin-top: auto;
  padding-top: 20px;
  font-size: clamp(56px, 6.2vw, 92px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.ugc-card .ugc-card__sub {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.ugc-card .ugc-card__note {
  color: rgba(255, 255, 255, 0.72);
}

.ugc-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.ugc-extra .label {
  margin-right: 4px;
}

.ugc-extra__note {
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .partner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "banner banner"
      "hero   intro"
      "geo    local"
      "wide   wide";
  }
}

@media (max-width: 760px) {
  .partner {
    grid-template-columns: 1fr;
    grid-template-areas: "banner" "hero" "intro" "geo" "local" "wide";
  }

  .ugc-card--wide {
    flex-direction: column;
    align-items: flex-start;
  }

  .ugc-card__cta {
    width: 100%;
  }
}

/* ==========================================================================
   Медиа — Dynasty Creo × TheTraffic (спонсорство)
   Баннер и карточка-интро — те же элементы, что в «Партнёрстве» (.partner__*)
   ========================================================================== */
.media {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "banner banner banner banner banner banner banner intro intro intro intro intro"
    "why    why    why    why    why    why    soon   soon  soon  soon  soon  soon";
  gap: 14px;
}

.media__verticals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.media__why,
.media__soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(24px, 2.6vw, 34px);
}

.media__why  { grid-area: why; }
.media__soon { grid-area: soon; }

.media__why h3,
.media__soon h3 {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.media__why p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

.media__quote {
  margin: 4px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--orange);
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
  color: #e6dfd9;
}

/* оглавление будущего материала */
.media__toc {
  display: grid;
  align-self: stretch;
}

.media__toc li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.media__toc li:last-child {
  border-bottom: 0;
}

.media__toc span {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #ffd2b0;
}

.media__follow {
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1080px) {
  .media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "banner banner"
      "intro  intro"
      "why    soon";
  }
}

@media (max-width: 760px) {
  .media {
    grid-template-columns: 1fr;
    grid-template-areas: "banner" "intro" "why" "soon";
  }
}

/* ==========================================================================
   Пакеты
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  overflow: hidden;
}

.plan__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plan__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan__desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.plan__list {
  position: relative;
  display: grid;
}

.plan__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px dashed rgba(61, 52, 44, 0.8);
}

.plan__list li:last-child {
  border-bottom: 0;
}

.plan__list .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: var(--orange-hi);
  background: rgba(255, 106, 26, 0.14);
}

.plan__list .ico .i {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

.plan__list .is-off {
  color: var(--muted);
}

.plan__list .is-off .ico {
  color: var(--muted);
  background: rgba(45, 38, 32, 0.85);
}

.plan__price {
  position: relative;
  margin-top: auto;
}

.plan__amount {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.plan__note {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

.plan__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.plan .btn {
  position: relative;
}

.plan--featured .plan__desc,
.plan--featured .plan__note {
  color: rgba(255, 255, 255, 0.72);
}

.plan--featured .plan__list li {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.plan--featured .plan__list .ico {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.plan--featured .bignum {
  color: rgba(255, 255, 255, 0.06);
}

@media (min-width: 901px) {
  .plan--featured {
    margin-block: -14px;
    padding-block: 42px;
  }
}

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }
}

/* ==========================================================================
   Команда
   ========================================================================== */
.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.member {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.member__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #f08a2c;
  box-shadow:
    0 0 0 2px rgba(13, 10, 8, 1),
    0 0 0 3.5px rgba(255, 106, 26, 0.7),
    0 0 26px -2px rgba(255, 106, 26, 0.55);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.78);
}

.member__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.member__role {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-soft);
}

.member__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

@media (max-width: 1080px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .team { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.faq__aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.faq__aside .head {
  margin-bottom: 28px;
}

.help {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.help__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--body);
}

.help__text b {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  color: var(--ink);
}

.qa + .qa {
  margin-top: 10px;
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 20px 24px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa .tile {
  --s: 34px;
  transition: rotate 0.3s var(--ease), background-color 0.3s ease, color 0.3s ease;
}

.qa[open] .tile {
  rotate: 45deg;
  color: #fff;
  background: var(--grad);
}

.qa__body {
  padding: 0 24px 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body);
}

.qa[open] {
  box-shadow: 0 20px 50px -30px rgba(255, 106, 26, 0.45);
}

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
}

/* ==========================================================================
   Nexus
   ========================================================================== */
.nexus {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4.5vw, 60px);
  overflow: hidden;
}

.nexus__word {
  margin-top: 22px;
  font-size: clamp(76px, 10vw, 140px);
  line-height: 0.82;
  transform: scaleY(1.12);
  transform-origin: left bottom;
}

.nexus__title {
  margin-top: 24px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.nexus__text {
  margin-top: 12px;
  max-width: 440px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.nexus .btn {
  margin-top: 28px;
}

.window {
  border-radius: 16px;
  overflow: hidden;
  background: #0f0c0a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -24px rgba(0, 0, 0, 0.85);
  transform: perspective(1600px) rotateY(-10deg) rotateX(4deg);
  transition: transform 0.8s var(--ease);
}

.nexus:hover .window {
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
}

.window__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #1b1614;
  border-bottom: 1px solid rgba(61, 52, 44, 0.8);
}

.window__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.window__bar i:first-child {
  background: var(--orange);
}

/* светлая тема Nexus на скриншоте — рамка окна тоже светлая */
.window--light {
  background: #fbfaf9;
}

.window--light .window__bar {
  background: #f1eeeb;
  border-bottom-color: #e3ded9;
}

.window--light .window__bar i {
  background: #d8d1ca;
}

.window--light .window__bar i:first-child {
  background: var(--orange);
}

@media (max-width: 900px) {
  .nexus { grid-template-columns: 1fr; }
  .window { transform: none; }
}

/* ==========================================================================
   Финальный призыв
   ========================================================================== */
.final {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
}

.final__title {
  position: relative;
  z-index: 1;
  max-width: 58%;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.final__sub {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.final .btn {
  position: relative;
  z-index: 1;
  margin-top: 32px;
}

.final__mascot {
  position: absolute;
  right: 0;
  bottom: -10%;
  width: min(40%, 460px);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

@media (max-width: 760px) {
  .final__title {
    max-width: none;
    font-size: clamp(28px, 7.6vw, 40px);
  }

  .final__mascot {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(78%, 360px);
    align-self: center;
    margin: 16px 0 calc(-1 * clamp(32px, 5vw, 72px));
  }
  .final .btn { width: 100%; }
}

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer {
  margin-top: clamp(24px, 4vw, 48px);
  border-top: 1px solid rgba(61, 52, 44, 0.55);
  background: rgba(13, 10, 8, 0.6);
}

.footer__in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.6fr));
  gap: 32px;
  padding-block: 48px 36px;
}

.footer__about {
  margin-top: 16px;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.footer__col .label {
  display: block;
  margin-bottom: 14px;
}

.footer__col a {
  display: block;
  padding: 5px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(61, 52, 44, 0.4);
  font-size: 12.5px;
  color: var(--muted);
}

.footer__bottom .mono {
  letter-spacing: 0.14em;
}

@media (max-width: 900px) {
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

/* ==========================================================================
   Липкая кнопка на мобиле
   ========================================================================== */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  padding: 6px;
  border-radius: 22px;
  transform: translateY(140%);
  transition: transform 0.45s var(--ease);
}

.sticky-cta.is-visible {
  transform: none;
}

.sticky-cta .btn {
  width: 100%;
}

@media (max-width: 760px) {
  .sticky-cta { display: block; }
  .footer { padding-bottom: 76px; }
}

/* ==========================================================================
   Лайтбокс
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 5, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.lightbox__frame {
  position: relative;
  max-width: min(92vw, 560px);
  max-height: 88vh;
  padding: 10px;
}

.lightbox__content video,
.lightbox__content img {
  max-width: 100%;
  max-height: calc(88vh - 20px);
  border-radius: 20px;
  background: #000;
}

.lightbox__content img {
  touch-action: none;
  transition: transform 0.1s linear;
}

/* широкие скриншоты (NEXUS) — рамка по ширине экрана */
.lightbox--wide .lightbox__frame {
  max-width: min(96vw, 1400px);
}

.lightbox--wide .lightbox__content img {
  border-radius: 14px;
  background: #0f0c0a;
}

.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lightbox__close .i {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Появление при прокрутке (класс .js ставится в <head>, без JS всё видно сразу)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
