:root {
  --bg: #07060d;
  --bg-2: #0e0b1a;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --text: #f4effe;
  --muted: #a59dbd;
  --red: #ff2d55;
  --pink: #ff3dcb;
  --violet: #7b3fff;
  --gold: #ffb547;
  --hot: #ff2d55;
  --grad: linear-gradient(120deg, var(--red), var(--pink) 50%, var(--violet));
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
h2 { font-size: clamp(28px, 6vw, 48px); }
h3 { font-size: 17px; letter-spacing: -.01em; }
em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p { margin: 0; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 32px); }

/* Фон: медленное северное сияние */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.aurora i {
  position: absolute;
  width: 70vmax; height: 70vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .32;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: var(--violet); top: -30vmax; left: -20vmax; }
.aurora i:nth-child(2) { background: var(--pink); top: 10vmax; right: -35vmax; opacity: .22; animation-duration: 32s; }
.aurora i:nth-child(3) { background: var(--red); bottom: -45vmax; left: 10vmax; opacity: .18; animation-duration: 38s; }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }

/* Параллакс-фон (картинка с ключом) */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.page-bg img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 120vw);
  height: max(100%, 120vh);
  object-fit: cover;
  object-position: 50% 48%;
  opacity: .68;
  filter: saturate(1.55) contrast(1.06) brightness(1.08);
  transform: translate3d(-50%, -50%, 0) scale(1.12);
  will-change: transform;
}
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 13, .18) 0%, rgba(7, 6, 13, .42) 48%, rgba(7, 6, 13, .72) 100%),
    linear-gradient(180deg, rgba(7, 6, 13, .12) 0%, rgba(7, 6, 13, .45) 62%, rgba(7, 6, 13, .9) 100%);
}

/* Кнопки */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 700 15px/1 var(--font);
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  color: #fff;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 10px 34px -10px rgba(255, 61, 203, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 14px 44px -10px rgba(123, 63, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--ghost { background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn small { font-weight: 600; opacity: .85; font-size: 13px; }
.btn .tg { width: 20px; height: 20px; fill: currentColor; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font: 600 12px/1 var(--font);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(7, 6, 13, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); }
.header__row { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--font-display); letter-spacing: -.02em; }
.wordmark { text-transform: uppercase; font-weight: 700; letter-spacing: .02em; }
.yo { position: relative; display: inline-block; }
.yo::before, .yo::after {
  content: '';
  position: absolute;
  top: -.4em;
  width: .36em; height: .36em;
  background: var(--grad);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.yo::before { left: -.05em; }
.yo::after { left: .26em; }
.nav { display: none; gap: 28px; margin-inline: auto; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--text); }
.header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; min-width: 40px; padding: 0 10px;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn[aria-pressed='true'] { color: var(--text); border-color: rgba(123, 63, 255, .5); }
.icon-btn__label { display: none; }
.header__cta { display: none; }

/* Первый экран */
.hero { padding: 20px 0 56px; }
.hero__grid {
  display: grid;
  gap: 20px;
  grid-template-areas:
    "showcase"
    "lead"
    "body";
}
.hero__lead { grid-area: lead; }
.hero__body { grid-area: body; display: grid; gap: 14px; }
.hero__showcase { grid-area: showcase; }
.hero__title { font-size: clamp(34px, 9.5vw, 72px); margin-bottom: 18px; font-weight: 700; }
.hero__sub { color: var(--muted); font-size: 17px; max-width: 540px; margin-bottom: 16px; }
.hero__actions { display: grid; gap: 10px; margin-bottom: 14px; }
.hero__brief {
  max-width: 540px;
  margin: 0 0 12px;
  padding: 12px 12px 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
}
.hero__brief ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero__brief li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.hero__brief li > span {
  display: grid; place-items: center;
  width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font: 700 11px/1 var(--font-display);
}
.hero__brief p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.hero__brief b { color: var(--text); }
.hero__lock {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.hero__lock p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; font-weight: 400; }
.hero__lock b { color: var(--text); font-weight: 700; }
.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 540px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.proof li {
  min-width: 0;
  padding: 10px 10px 11px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.proof b { display: block; margin-bottom: 4px; font: 600 13px/1.25 var(--font-display); }
.proof span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.3; }
.stats { display: flex; gap: 28px; margin-top: 28px; }
.stats b { display: block; font: 600 26px/1 var(--font-display); }
.stats span { color: var(--muted); font-size: 13px; }

/* Демо на первом экране — один слот, гиф/видео по клику */
.hero__showcase { position: relative; margin-inline: -16px; }
.hero-demo { display: grid; gap: 12px; padding: 0 16px; }
.hero-demo__hint {
  margin: 0;
  padding: 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.hero-demo__card { box-shadow: 0 28px 70px -28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .1); }
.hero-demo__frame { max-height: min(72svh, 560px); margin-inline: auto; width: 100%; }
.hero-demo__veil {
  position: absolute; inset: auto 0 0; top: 38%; z-index: 4;
  display: flex; align-items: flex-end; justify-content: center;
  border: 0;
  min-height: 62%;
  padding: 0 14px calc(20px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, transparent 0%, rgba(7, 6, 13, .15) 28%, rgba(7, 6, 13, .82) 100%);
  font: 700 clamp(17px, 5.2vw, 22px)/1.1 var(--font-display);
  letter-spacing: .14em;
  color: #fff5fb;
  text-transform: lowercase;
  text-shadow:
    0 0 18px rgba(255, 61, 203, .95),
    0 0 42px rgba(255, 45, 85, .65),
    0 2px 10px rgba(0, 0, 0, .9);
  animation: veil-glow 3.2s ease-in-out infinite alternate;
}
.hero-demo__veil::before {
  content: '';
  position: absolute;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0));
  width: min(220px, 72%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 109, 196, .85), transparent);
  opacity: .85;
  pointer-events: none;
}
@keyframes veil-glow {
  from { text-shadow: 0 0 14px rgba(255, 61, 203, .75), 0 0 32px rgba(255, 45, 85, .45), 0 2px 10px rgba(0, 0, 0, .9); }
  to { text-shadow: 0 0 26px rgba(255, 120, 220, 1), 0 0 52px rgba(255, 45, 85, .85), 0 2px 12px rgba(0, 0, 0, .92); }
}
.hero-demo__card[data-nsfw]:not(.is-revealed) .hero-demo__poster,
.hero-demo__card[data-nsfw]:not(.is-revealed) .hero-demo__player {
  filter: blur(14px) saturate(1.2) brightness(.78);
  transform: scale(1.08);
}
.hero-demo__card.is-revealed .hero-demo__poster.is-hidden { opacity: 0; pointer-events: none; }
.hero-demo__cta { margin-top: 4px; animation: rise .45s ease both; }
.hero-demo__player { z-index: 1; }

/* Карточка контента */
.media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); isolation: isolate; }
.media__frame { position: relative; aspect-ratio: var(--ratio, 4/5); overflow: hidden; }
.media__asset { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .5s ease, transform .6s ease; }
.media:hover .media__asset { transform: scale(1.03); }
.media__ph {
  background:
    radial-gradient(60% 50% at 30% 30%, hsl(var(--h) 90% 62% / .85), transparent 70%),
    radial-gradient(50% 60% at 75% 75%, hsl(calc(var(--h) + 60) 90% 58% / .7), transparent 70%),
    linear-gradient(160deg, hsl(calc(var(--h) - 30) 60% 18%), #0b0915);
}
.media__ph::after {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .35);
  color: rgba(255, 255, 255, .75);
  font: 600 11px/1.3 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  white-space: pre;
}
.media__shade { position: absolute; inset: auto 0 0; height: 60%; background: linear-gradient(transparent, rgba(7, 6, 13, .92)); pointer-events: none; z-index: 1; }
.media__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.badge {
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(7, 6, 13, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
  font: 700 11px/1 var(--font);
  letter-spacing: .02em;
}
.badge--hot { background: var(--hot); border-color: transparent; }
.badge--tok { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.badge--tok::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 6px rgba(255, 61, 203, .8); }
.media__cap { position: absolute; inset: auto 0 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px; }
.media__title { font: 600 15px/1.2 var(--font-display); letter-spacing: -.01em; }
.media__btn { --h: 38px; padding: 0 14px; font-size: 13px; flex-shrink: 0; }

/* Размытие 18+ до клика по карточке */
.media__veil {
  position: absolute; inset: 0; z-index: 3;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 0;
  background: radial-gradient(45% 30% at 50% 50%, rgba(7, 6, 13, .45), transparent 100%);
  font: 700 13px/1 var(--font);
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.media__veil svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.media[data-nsfw]:not(.is-revealed) .media__asset { filter: blur(11px) saturate(1.25) brightness(.8); transform: scale(1.06); }
.media[data-nsfw]:not(.is-revealed) .media__veil { display: flex; }
.media[data-nsfw]:not(.is-revealed) .media__cap { pointer-events: none; opacity: 0; }
.media[data-nsfw].is-revealed .media__cap { pointer-events: auto; opacity: 1; }
/* Контент без age-veil — всегда открыт */
.media:not([data-nsfw]) .media__veil { display: none !important; }
.hero-demo__card:not([data-nsfw]) .hero-demo__poster { filter: none; transform: none; }

/* Режим отладки слотов */
.show-slots .media::before {
  content: attr(data-slot);
  position: absolute; top: 46px; left: 12px; z-index: 5;
  padding: 4px 8px;
  border-radius: 6px;
  background: #ffe14d; color: #000;
  font: 700 12px/1 ui-monospace, monospace;
}

/* Секции */
.section { padding: 64px 0; position: relative; }
.section:not(.hero)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 6, 13, .55) 0%, rgba(7, 6, 13, .78) 100%);
  pointer-events: none;
}
.section--glow { position: relative; }
.section--glow::before {
  content: '';
  position: absolute; inset: 10% 0;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(123, 63, 255, .14), transparent 70%);
}
.section__head { margin-bottom: 32px; max-width: 680px; }
.section__head h2 { margin-bottom: 14px; }
.section__sub { color: var(--muted); font-size: 16px; }
.section__sub b { color: var(--text); }

/* Табы */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex-shrink: 0;
  height: 42px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700; font-size: 14px; color: var(--muted);
  transition: all .2s ease;
}
.tabs button[aria-selected='true'] { color: #fff; background: var(--surface-2); border-color: rgba(255, 61, 203, .55); box-shadow: 0 0 0 3px rgba(255, 61, 203, .12); }

.masonry { columns: 2; column-gap: 10px; }
.masonry > .media { break-inside: avoid; margin-bottom: 10px; animation: rise .5s ease both; }
.masonry .media__cap { flex-direction: column; align-items: stretch; padding: 10px; }
.masonry .media__btn { width: 100%; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Видео после hero (слот под ролик) */
.section--video { padding-top: 40px; }
.video-spot__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(7, 6, 13, .92));
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .85);
}
.video-spot__inner {
  min-height: min(52vw, 320px);
  display: grid;
  place-items: center;
  padding: 28px 20px;
  text-align: center;
}
.video-spot__ph-title { font: 600 18px/1.25 var(--font-display); margin-bottom: 10px; }
.video-spot__ph-note { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 42ch; margin-inline: auto; }
.video-spot__ph-note code { font: 600 11px/1.4 ui-monospace, monospace; color: var(--text); }
.video-spot__play {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font: 700 15px/1 var(--font);
  box-shadow: 0 12px 36px -12px rgba(255, 61, 203, .75);
}
.video-spot__play span { font-size: 14px; }
.video-spot__player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.video-spot__cap { margin: 0; padding: 12px 16px 14px; color: var(--muted); font-size: 13px; font-weight: 600; border-top: 1px solid var(--line); }

/* Карусель видео после hero */
.video-carousel-wrap { display: grid; gap: 12px; max-width: 760px; margin-inline: auto; }
.video-carousel { position: relative; width: 100%; }
.video-carousel__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0812;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .85);
}
.video-carousel__slide {
  position: absolute;
  inset: 0;
}
.video-carousel__slide.is-active { z-index: 1; }
.video-carousel__frame { position: relative; width: 100%; height: 100%; }
.video-carousel__poster,
.video-carousel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0a0812;
}
.video-carousel__play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(7, 6, 13, .05), rgba(7, 6, 13, .28));
  color: #fff;
  cursor: pointer;
}
.video-carousel__slide.is-playing .video-carousel__play { display: none; }
.video-carousel__play span {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--grad);
  font-size: 26px;
  box-shadow: 0 16px 40px -12px rgba(255, 61, 203, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.video-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  height: 44px; width: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 6, 13, .72);
  backdrop-filter: blur(8px);
  font: 700 28px/1 var(--font-display);
  color: var(--text);
}
.video-carousel__nav--prev { left: 10px; }
.video-carousel__nav--next { right: 10px; }
.video-carousel__nav:active { transform: translateY(-50%) scale(.96); }
.video-carousel__hint {
  display: none;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* Блок «Аниме» */
.anime-spot {
  display: grid;
  gap: 22px;
  align-items: center;
}
.anime-spot__copy .section__sub { margin-bottom: 0; }
.anime-spot__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.anime-spot__visual { margin: 0; border-radius: var(--radius); box-shadow: 0 28px 70px -30px rgba(255, 61, 203, .45); overflow: visible; }
.anime-spot__frame { --ratio: 16 / 9; background: #0a0812; }
.anime-spot__frame .media__asset { object-fit: contain; object-position: center; }
.section--anime::before { background: linear-gradient(135deg, rgba(123, 63, 255, .22), rgba(7, 6, 13, .88)); }
.section--anime .wrap { overflow: visible; }

/* Форматы в блоке шаблонов */
.format-ladder {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.format-ladder__item {
  padding: 16px 16px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.format-ladder__item h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.format-ladder__item p { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0; }
.format-ladder__price { font: 600 14px/1 var(--font-display); margin: 0; }
.format-ladder__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--hot);
  font: 700 10px/1 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.format-ladder__item--hit {
  border-color: rgba(255, 61, 203, .45);
  background: linear-gradient(135deg, rgba(123, 63, 255, .12), rgba(255, 61, 203, .06));
}
.format-ladder__item .btn { justify-self: start; }

/* Форматы (legacy carousel — больше не используется на странице) */
.formats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  margin-inline: -16px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.formats::-webkit-scrollbar { display: none; }
.formats > .format { scroll-snap-align: center; }
.format { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.format .media { border-radius: 0; }
.format .media__frame { --ratio: 4/5; }
.format__body { padding: 18px; display: grid; gap: 6px; }
.format__body h3 { font-size: 19px; }
.format__body p { color: var(--muted); font-size: 14px; }
.format__price { font: 600 15px/1 var(--font-display); margin-top: 6px; }
.format--hit { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.format--hit::after { content: 'Хит'; position: absolute; top: 12px; right: 12px; z-index: 4; padding: 6px 10px; border-radius: 999px; background: var(--hot); font: 700 11px/1 var(--font); text-transform: uppercase; letter-spacing: .08em; }

/* Можно / нельзя */
.rules { display: grid; gap: 12px; }
.rules__col, .rules__guarantee { padding: 24px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rules__col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 19px; }
.rules__col h3::before { content: ''; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 15px/28px var(--font); text-align: center; }
.rules__col--yes h3::before { content: '✓'; background: rgba(107, 255, 184, .14); color: #6bffb8; }
.rules__col--no h3::before { content: '✕'; background: rgba(255, 45, 85, .16); color: var(--red); }
.rules ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rules li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15px; }
.rules li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; }
.rules__col--yes li::before { background: #6bffb8; }
.rules__col--no li::before { background: var(--red); }
.rules__note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.rules__guarantee {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, rgba(255, 181, 71, .14), rgba(255, 45, 85, .06)) padding-box, linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(120deg, var(--gold), var(--red)) border-box;
}
.rules__guarantee h3 { font-size: 19px; margin-bottom: 8px; }
.rules__guarantee p { color: var(--muted); font-size: 15px; }
.rules__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 181, 71, .14); color: var(--gold); }
.rules__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Как работает */
.how { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.how li { padding: 24px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.how__n { display: block; margin-bottom: 18px; font: 700 34px/1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.how h3 { font-size: 19px; margin-bottom: 8px; }
.how p { color: var(--muted); }
.how b { color: var(--text); }

/* Ключевой визуал в тарифах */
.keyhero { display: grid; gap: 22px; margin-bottom: 32px; }
.keyhero .section__head { margin-bottom: 0; }
.keyvisual {
  position: relative;
  order: -1;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: 0 30px 80px -30px rgba(255, 45, 85, .55), 0 0 0 1px rgba(255, 61, 203, .25);
}
.keyvisual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.12); }
.keyvisual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 6, 13, .7)); pointer-events: none; }
.keyvisual figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(7, 6, 13, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 181, 71, .45);
  font-weight: 600; font-size: 14px;
}
.keyvisual figcaption b { color: var(--gold); font-family: var(--font-display); }

/* Тарифы */
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pack {
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px 16px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.pack__badge { position: absolute; top: -10px; left: 14px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font: 700 11px/1 var(--font); backdrop-filter: blur(8px); }
.pack--featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, rgba(123, 63, 255, .24), rgba(255, 61, 203, .08)) padding-box,
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 20px 60px -24px rgba(255, 61, 203, .6);
}
.pack--featured .pack__badge { background: var(--hot); border-color: transparent; }
.pack__tokens { font: 700 30px/1 var(--font-display); }
.pack__tokens small { font: 600 13px/1 var(--font); color: var(--muted); margin-left: 4px; }
.pack__note { color: var(--muted); font-size: 13px; margin: 8px 0 16px; flex: 1; }
.pack__price { font: 600 18px/1 var(--font-display); margin-bottom: 14px; }
.pack .btn { --h: 44px; width: 100%; padding: 0 12px; }
.paylist { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.paylist li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }

/* Приватность */
.privacy { display: grid; gap: 12px; }
.privacy article { padding: 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.privacy__lead {
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(255, 45, 85, .1), transparent 72%),
    var(--surface);
}
.privacy__lead h3 { font-size: 22px; }
.privacy__lead h3::before { display: none; }
.privacy__lead p { max-width: 62ch; }
.privacy__points { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 68ch; }
.privacy__points li { color: var(--muted); font-size: 15px; line-height: 1.5; padding-left: 14px; border-left: 2px solid rgba(255, 61, 203, .35); }
.privacy__points b { color: var(--text); }
.privacy h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.privacy h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.privacy p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px;
  font-weight: 700; font-size: 16px;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 24px/1 var(--font); color: var(--muted); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* Финал */
.final { position: relative; padding: 24px 0 120px; text-align: center; overflow: hidden; }
.final__visual {
  --w: min(560px, 118%);
  width: var(--w);
  aspect-ratio: 1;
  margin: 0 calc((100% - var(--w)) / 2) -120px;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
}
.final__visual img { width: 100%; height: 100%; object-fit: cover; animation: float 7s ease-in-out infinite; }
.final__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; }
.final h2 { text-shadow: 0 4px 30px rgba(7, 6, 13, .9); }
.final h2 { font-size: clamp(32px, 8vw, 64px); }
.final p { color: var(--muted); font-size: 17px; margin-bottom: 8px; }
@keyframes float { 50% { transform: translateY(-10px); } }

.footer { padding: 28px 0 calc(110px + var(--safe-b)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer__row { display: grid; gap: 16px; }
.footer b { color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; margin-right: 6px; }
.footer nav { display: flex; gap: 18px; }
.footer nav a:hover { color: var(--text); }

/* Липкая кнопка */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(transparent, rgba(7, 6, 13, .92) 40%);
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.sticky.is-on { transform: none; }
.sticky .btn { --h: 56px; }

/* Мобильные: креатив крупнее, текст компактнее */
@media (max-width: 639px) {
  .hero { padding: 6px 0 44px; }
  .hero__showcase { margin-inline: -4px; }
  .hero-demo { padding: 0 4px; gap: 8px; }
  .hero-demo__frame { max-height: min(68svh, 500px); border-radius: 20px; }
  .hero-demo__card { border-radius: 20px; }
  .hero-demo__hint { font-size: 12px; padding: 0 8px; }
  .hero__title { font-size: clamp(28px, 8.2vw, 36px); margin-bottom: 10px; }
  .hero__sub { font-size: 15px; line-height: 1.45; margin-bottom: 0; max-width: none; }
  .hero__body { gap: 12px; }
  .hero__brief { margin-bottom: 8px; padding: 10px; border-radius: 18px; }
  .proof { grid-template-columns: 1fr; gap: 6px; max-width: none; }
  .proof li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; }
  .proof b { margin: 0; flex: none; }
  .proof span { flex: 1; }
  .section { padding: 48px 0; }
  .section:not(.hero)::before { background: rgba(7, 6, 13, .82); }
  .tabs { margin-bottom: 16px; }
  .masonry { columns: 2; column-gap: 8px; }
  .format-ladder { margin-bottom: 18px; }
  .video-spot__inner { min-height: 220px; padding: 22px 16px; }
  .video-carousel-wrap { max-width: none; margin-inline: -4px; }
  .video-carousel__nav { display: none; }
  .video-carousel__hint { display: block; }
  .masonry { columns: 1; column-gap: 0; }
  .masonry > .media { margin-bottom: 12px; }
  .video-carousel__play span { width: 64px; height: 64px; font-size: 22px; }
  .anime-spot__actions { flex-direction: column; }
  .anime-spot__actions .btn { width: 100%; }
  .section--video { padding-top: 28px; }
  .page-bg img {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: cover;
    object-position: 50% 36%;
    opacity: .52;
    filter: saturate(1.35) contrast(1.04) brightness(1.02);
    transform: translate3d(-50%, -50%, 0) scale(1) !important;
  }
  .page-bg::after {
    background:
      linear-gradient(180deg, rgba(7, 6, 13, .55) 0%, rgba(7, 6, 13, .78) 55%, rgba(7, 6, 13, .94) 100%);
  }
}

/* Планшеты */
@media (min-width: 640px) {
  .hero__actions { display: flex; flex-wrap: wrap; }
  .hero-demo { padding: 0; max-width: 420px; margin-inline: auto; }
  .hero-demo__hint { padding: 0; }
  .format-ladder { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .anime-spot { grid-template-columns: 1fr 1fr; gap: 36px; }
  .video-spot__inner { min-height: 280px; }
  .masonry { columns: 3; column-gap: 14px; }
  .masonry > .media { margin-bottom: 14px; }
  .masonry .media__cap { flex-direction: row; align-items: flex-end; padding: 14px; }
  .masonry .media__btn { width: auto; }
  .formats { grid-auto-flow: row; grid-auto-columns: auto; margin-inline: 0; padding: 0; overflow: visible; }
  .formats, .how { grid-template-columns: repeat(3, 1fr); }
  .privacy { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: 1fr 1fr; }
  .rules__guarantee { grid-column: 1 / -1; }
  .icon-btn__label { display: inline; }
  .header__cta { display: inline-flex; }
}

/* ПК */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .nav { display: flex; }
  .header__tools { margin-left: 0; }
  .hero { padding: 28px 0 90px; }
  .hero__grid {
    grid-template-columns: 1.05fr .95fr;
    grid-template-areas:
      "lead showcase"
      "body showcase";
    align-items: start;
    column-gap: 48px;
    row-gap: 28px;
  }
  .hero__showcase { margin: 0; align-self: start; }
  .hero-demo { width: min(380px, 100%); margin-inline: auto; }
  .hero-demo__card { border-radius: 34px; outline: 1px solid rgba(255, 255, 255, .14); outline-offset: -1px; }

  .section { padding: 110px 0; }
  .section__head { margin-bottom: 48px; }
  .masonry { columns: 4; }
  .keyhero { grid-template-columns: 1fr 440px; align-items: center; gap: 56px; margin-bottom: 48px; }
  .keyvisual { order: 0; aspect-ratio: 1; }
  .keyvisual img { transform: none; }
  .final__visual { --w: 680px; margin-bottom: -170px; }
  .packs { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .pack { padding: 28px 22px 22px; }
  .privacy { grid-template-columns: repeat(3, 1fr); }
  .privacy__lead { grid-column: 1 / -1; }
  .footer { padding-bottom: 40px; }
  .footer__row { grid-template-columns: 1fr auto; align-items: center; }
  .sticky { display: none; }
}

@media (hover: hover) {
  .media__btn { opacity: .92; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-demo__veil { animation: none; }
}
