/* ===== Щука AI V2 — Design Tokens ===== */

/* Self-hosted Onest (variable font, weights 100–900) */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/onest-latin.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: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand */
  --brand-cyan: #00E5FF;
  --brand-magenta: #FF3DCB;
  --brand-gradient: linear-gradient(135deg, #00E5FF 0%, #FF3DCB 100%);

  /* Surfaces */
  --bg-base: #050810;
  --bg-surface: #0A0F1F;
  --bg-surface-hover: #11172A;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text-primary: #E8EBF5;
  --text-secondary: #B0B6C8;
  /* --text-tertiary: bumped from #6B7287 (≈4.10:1 on --bg-base) to meet WCAG AA 4.5:1 */
  --text-tertiary: #8E95AB;

  /* Semantic */
  --cta-bg: #FFFFFF;
  --cta-text: #050810;

  /* Font */
  --font-sans: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 20px;
  --header-h: 56px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-card: 16px;
  --radius-block: 24px;

  /* Spacing */
  --section-gap: 80px;
  --section-gap-lg: 140px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
}

@media (min-width: 768px) {
  :root {
    --container-pad: 32px;
    --header-h: 64px;
  }
}

@media (max-width: 720px) {
  :root {
    --section-gap: 56px;
    --section-gap-lg: 96px;
  }
}


/* ===== Reset & Base ===== */

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

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

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

ul, ol {
  list-style: none;
}

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

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ===== Typography ===== */

h1, h2, h3 {
  color: #FFFFFF;
  font-weight: 500;
}

h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}


/* ===== Container ===== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}


/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 10px;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

.btn--primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: 14px 26px;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  padding: 13px 25px;
  border: 0.5px solid var(--border-strong);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 8px;
  min-height: 36px;
}

.btn .arr {
  opacity: 0.55;
}


/* ===== Top Bar ===== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid transparent;
  transition: border-color var(--duration) var(--ease);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--container-pad);
}

.topbar.scrolled {
  border-bottom-color: var(--border);
}

/* Logo lockup */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.logo:hover {
  opacity: 0.85;
}

.logo-chip {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo-dot {
  color: var(--brand-cyan);
  padding: 0 4px;
  font-weight: 400;
}

.logo-ai {
  color: var(--text-tertiary);
  font-weight: 400;
}

/* Desktop nav */
.topnav {
  display: none;
  gap: 28px;
}

.topnav a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--text-primary);
}

/* CTA button in topbar */
.topbar .tg-btn {
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  white-space: nowrap;
}

.topbar .tg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.2);
}

@media (min-width: 768px) {
  .topnav {
    display: flex;
  }
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .topbar .tg-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar .logo-text {
    display: none;
  }
}

@media (min-width: 768px) {
  .burger {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  z-index: 95;
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
  transform: translateY(-100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--container-pad);
  border-bottom: 0.5px solid var(--border);
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

.mobile-menu__close:hover {
  color: var(--text-primary);
}

.mobile-menu__links {
  flex: 1;
  padding: 8px 0;
}

.mobile-menu__links a {
  display: block;
  padding: 16px var(--container-pad);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 0.5px solid var(--border);
  transition: background var(--duration) var(--ease);
}

.mobile-menu__links a:hover {
  background: var(--bg-surface-hover);
}

.mobile-menu__links a.is-active {
  color: var(--brand-cyan);
}

.mobile-menu__cta {
  margin: 8px var(--container-pad) 0;
  width: calc(100% - var(--container-pad) * 2);
  text-align: center;
}

@media (min-width: 768px) {
  .mobile-menu,
  .mobile-menu-overlay {
    display: none;
  }
}


/* ===== Hero ===== */

.hero {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  overflow: hidden;
}

/* Background grid — 10 tiles (5×2 desktop), normal flow defines hero height */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
}

.hero-tile {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  border: 0.5px solid var(--border);
  overflow: hidden;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Inline <img> inside first-row tiles (t1-t5, delivered via srcset).
   Hero-fx-managed tiles (t6-t10) keep empty and use background-image. */
.hero-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Per-tile dim overlay — subtle darkening, lifts on hover */
.hero-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 8, 16, 0.11);
  pointer-events: none;
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero-tile::before {
    transition: opacity 0.4s ease;
  }
  .hero-tile:hover::before {
    opacity: 0;
  }
}

/* Crossfade overlay for tile swap */
.hero-tile__incoming {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-tile__incoming.is-visible {
  opacity: 1;
}

/* Progressive tile visibility — always 2 rows */
.hero-tile:nth-child(n+5) { display: none; }

@media (min-width: 480px) {
  .hero-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-tile:nth-child(n+5) { display: block; }
  .hero-tile:nth-child(n+7) { display: none; }
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-tile:nth-child(n+7) { display: block; }
  .hero-tile:nth-child(n+9) { display: none; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(5, 1fr); }
  .hero-tile:nth-child(n+9) { display: block; }
}

/* Hero tile images — assigned dynamically by hero-fx.js from a pool of 20 */

/* Fade overlay */
.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 8, 16, 0.35) 0%,
    rgba(5, 8, 16, 0.10) 25%,
    rgba(5, 8, 16, 0.10) 75%,
    rgba(5, 8, 16, 0.85) 100%);
}

/* Hero text — absolute centered over the tile grid */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  padding: 32px 24px;
  width: calc(100% - var(--container-pad) * 2);
  max-width: 560px;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  border: 0.5px solid var(--border);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(0, 229, 255, 0.08);
  overflow: hidden;
}

/* Glow sweep — subtle light passing across the card */
.hero-text::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(0, 181, 216, 0.07) 48%,
    rgba(0, 229, 255, 0.10) 50%,
    rgba(0, 181, 216, 0.07) 52%,
    transparent 60%);
  transform: translateX(-150%);
  pointer-events: none;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text.glow-sweep::after {
    animation: glowSweep 1.5s ease forwards;
  }
}

@keyframes glowSweep {
  0%   { opacity: 1; transform: translateX(-150%); }
  100% { opacity: 1; transform: translateX(150%); }
}

@media (min-width: 768px) {
  .hero-text {
    padding: 44px 48px;
  }
}

.hero-text h1 {
  font-size: clamp(24px, 4.5vw, 40px);
  margin: 0 0 20px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.hero-meta-check {
  color: #2BD968;
  flex-shrink: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.25);
}

.hero-cta .arr {
  opacity: 0.55;
}

@media (max-width: 767px) {
  .hero-cta {
    justify-content: center;
  }
}


/* ===== Section spacing ===== */

main {
  padding-bottom: var(--section-gap);
}

main > section + section {
  margin-top: var(--section-gap);
}

main > section.section-group-break {
  margin-top: var(--section-gap-lg);
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 48px;
  }
}

.section-header p {
  margin-top: 12px;
  font-size: 16px;
}


/* ===== Features (bento grid) ===== */

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  /* Main card: 4 col × 2 rows */
  .bn-card--main {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
  }

  /* Top-right cards: 2 col × 1 row each */
  .bn-card:nth-child(2) {
    grid-column: 5 / 7;
    grid-row: 1;
  }

  .bn-card:nth-child(3) {
    grid-column: 5 / 7;
    grid-row: 2;
  }

  /* Bottom cards: 3 col × 1 row each */
  .bn-card:nth-child(4) {
    grid-column: 1 / 4;
    grid-row: 3;
  }

  .bn-card:nth-child(5) {
    grid-column: 4 / 7;
    grid-row: 3;
  }
}

.bn-card {
  position: relative;
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .bn-card--main {
    aspect-ratio: auto;
  }
}

.bn-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bn-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover-reveal overlay on visual area only */
.bn-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.11);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bn-card:hover .bn-visual::before {
    opacity: 0;
  }
}

/* Frosted plate — synced with .hero-text values */
.bn-plate {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  z-index: 2;
}

@media (min-width: 768px) {
  .bn-card--main .bn-plate {
    padding: 18px 20px;
  }
}

.bn-plate-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bn-plate-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}


/* ===== Models block ===== */

.models-block {
  position: relative;
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-block);
  padding: 20px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .models-block {
    padding: 40px 48px;
  }
}

/* Decorative glow */
.models-block__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.models-block__glow--cyan {
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 60%);
}

.models-block__glow--magenta {
  bottom: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 61, 203, 0.15), transparent 60%);
}

@media (max-width: 720px) {
  .models-block__glow {
    width: 200px;
    height: 200px;
    opacity: 0.5;
  }
}

.models-block__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .models-block__inner {
    flex-direction: row;
    gap: 48px;
    align-items: center;
  }
}

.models-block__text {
  flex: 1 1 0;
}

.models-block__text h3 {
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.models-block__text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.models-block__list {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-base);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (min-width: 768px) {
  .model-row {
    padding: 14px 16px;
  }
}

.model-row:last-child {
  margin-bottom: 0;
}

.model-row__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 0;
}

.model-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  flex-shrink: 0;
}

/* Per-model dot colors (data-model avoids inline style= to keep CSP style-src strict).
   Set on .model-row so --dot cascades to both .model-dot (background) and
   .model-row:hover (border-color, box-shadow). */
.model-row[data-model="seedream"]    { --dot: #2BD968; }
.model-row[data-model="flux-pro"]    { --dot: #00E5FF; }
.model-row[data-model="gpt-image"]   { --dot: #B14EFF; }
.model-row[data-model="nano-banana"] { --dot: #FFB23D; }

.model-row__tag {
  font-size: 13px;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

.model-row--soon {
  background: transparent;
  border: 1px dashed var(--border-strong);
}

.model-row--soon .model-row__name {
  color: var(--text-tertiary);
  font-weight: 400;
}

@media (hover: hover) {
  .model-row:not(.model-row--soon):hover {
    border-color: var(--dot);
    box-shadow: 0 0 12px color-mix(in srgb, var(--dot) 25%, transparent);
  }

  .model-row--soon:hover {
    border-style: solid;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
  }
}


/* ===== Pricing ===== */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
  }
}

.pricing-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-block);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.pricing-card.pro {
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.04) 0%, var(--bg-surface) 60%);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-magenta));
  color: var(--bg-base);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pricing-tier {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 4px;
}

.pricing-price {
  color: #FFFFFF;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-price-unit {
  color: var(--text-tertiary);
  font-size: 13px;
}

.pricing-credits {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 22px;
}

.pricing-divider {
  height: 0.5px;
  background: var(--border);
  margin: 0 0 16px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-feat {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.pricing-feat-check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #2BD968;
  margin-top: 2px;
}

.pricing-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}

.pricing-cta:hover {
  transform: translateY(-1px);
}

.pricing-cta-outline {
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
}

.pricing-cta-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.pricing-cta-grad {
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-magenta));
  border: none;
  color: var(--bg-base);
}

.pricing-cta-solid {
  background: #FFFFFF;
  border: none;
  color: var(--bg-base);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
  }

  .pricing-card.pro:hover {
    border-color: rgba(0, 229, 255, 0.7);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.15);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.08) 0%, var(--bg-surface) 60%);
  }

  .pricing-card.max:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
  }
}


/* ===== FAQ ===== */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.faq-item:first-child,
.faq-grid > .faq-item:nth-child(2) {
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

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

.faq-q {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  padding-right: 16px;
  transition: color 0.2s;
}

.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.25s, color 0.2s;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--brand-cyan);
}

@media (hover: hover) {
  .faq-item:hover .faq-q {
    color: #ffffff;
  }
}

.faq-a {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  padding: 0 4px 18px;
  margin: 0;
  max-width: 95%;
}

@media (max-width: 720px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .faq-grid > .faq-item:nth-child(2) {
    border-top: none;
  }
}


/* ===== Final CTA (split layout) ===== */

.final-cta {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-block);
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 320px;
}

.final-cta-left {
  padding: 48px 40px;
}

.final-cta-h {
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.final-cta-sub {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 28px;
}

.final-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-magenta));
  color: var(--bg-base);
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.final-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.25);
}

.final-cta-meta {
  color: var(--text-tertiary);
  font-size: 12px;
  margin: 16px 0 0;
}

.final-cta-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  height: 100%;
  min-height: 320px;
}

.final-cta-tile {
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-surface-hover);
  position: relative;
  overflow: hidden;
}

.final-cta-tile.is-loaded {
  background-image: var(--bg-url-fallback); /* webp — for Safari <17 */
  background-image: var(--bg-url); /* image-set(avif, webp) — overrides when supported */
}

.final-cta-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.11);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .final-cta-tile:hover::before { opacity: 0; }
}

.final-cta--text-only {
  grid-template-columns: 1fr;
  text-align: center;
}

.final-cta--text-only .final-cta-left {
  padding: 48px 40px;
}

@media (max-width: 720px) {
  .final-cta { grid-template-columns: 1fr; }
  .final-cta-right { display: none; }
  .final-cta-left { padding: 36px 24px; }
  .final-cta-h { font-size: 26px; }
}


/* ===== Partner promo block ===== */

.partner {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-block);
  padding: 40px 24px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 768px) {
  .partner {
    padding: 56px 40px;
  }
}

.partner::before,
.partner::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  pointer-events: none;
}

.partner::before {
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.16), transparent 60%);
}

.partner::after {
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 61, 203, 0.14), transparent 60%);
}

@media (max-width: 720px) {
  .partner::before,
  .partner::after {
    display: none;
  }
}

.partner-pretitle {
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 22px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.partner-num-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.partner-num-prefix {
  color: var(--text-secondary);
  font-size: 24px;
  font-weight: 400;
}

@media (min-width: 768px) {
  .partner-num-prefix {
    font-size: 36px;
  }
}

.partner-num {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

@media (min-width: 768px) {
  .partner-num {
    font-size: 96px;
  }
}

.partner-num-unit {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .partner-num-unit {
    font-size: 28px;
  }
}

.partner-h {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .partner-h {
    font-size: 22px;
  }
}

.partner-sub {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 540px;
  position: relative;
  z-index: 1;
}

.partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #ffffff;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

@media (hover: hover) {
  .partner-cta:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
  }
}

.partner-legal {
  color: var(--text-tertiary);
  font-size: 12px;
  margin: 16px 0 0;
  position: relative;
  z-index: 1;
}

.partner-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.partner-legal a:hover {
  color: var(--text-primary);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}


/* ===== Footer ===== */

.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 0 0 36px;
}

@media (min-width: 481px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.footer-logo:hover {
  opacity: 0.85;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 14px;
  line-height: 1.5;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-magenta));
  color: var(--bg-base);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}

@media (hover: hover) {
  .footer-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.25);
  }
}

.footer-cta-arrow {
  font-weight: 400;
  opacity: 0.85;
}

.footer-col-h {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.footer-col-h--link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.footer-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-link--icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link--icon svg {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.footer-bottom {
  padding: 20px 0 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copyright {
  color: var(--text-tertiary);
  font-size: 12px;
}

.footer-disclaimer {
  /* was rgba(255,255,255,0.25) ≈ 3.2:1 on --bg-base; bumped to --text-tertiary for WCAG AA */
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.5;
  max-width: 520px;
}


/* ===== Partners page — Hero ===== */

.partners-hero {
  text-align: center;
  padding: 80px 24px 0;
  position: relative;
  overflow: hidden;
}

.partners-hero::before,
.partners-hero::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  pointer-events: none;
  z-index: -1;
}

.partners-hero::before {
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 60%);
}

.partners-hero::after {
  top: -100px;
  left: -150px;
  background: radial-gradient(circle, rgba(255, 61, 203, 0.16), transparent 60%);
}

@media (max-width: 720px) {
  .partners-hero::before,
  .partners-hero::after {
    width: 280px;
    height: 280px;
    opacity: 0.5;
  }
}

.partners-hero-num-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 18px;
  flex-wrap: wrap;
}

.partners-hero-prefix {
  color: var(--text-secondary);
  font-size: 44px;
  font-weight: 400;
}

.partners-hero-num {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 128px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.partners-hero-unit {
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 500;
}

.partners-hero h1 {
  color: #FFFFFF;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.partners-hero-sub {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
  max-width: 580px;
  margin: 0 auto 32px;
}

.partners-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-magenta));
  color: var(--bg-base);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.partners-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.25);
}

.partners-hero-cta .arr {
  opacity: 0.55;
}

@media (max-width: 720px) {
  .partners-hero-num { font-size: 80px; }
  .partners-hero-prefix { font-size: 28px; }
  .partners-hero-unit { font-size: 22px; }
  .partners-hero h1 { font-size: 32px; }
}


/* ===== Partners page — How it works (bento cards) ===== */

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 36px;
}

@media (min-width: 768px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 0.5px solid var(--border);
  background: var(--bg-surface);
}

.how-visual {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.how-visual.is-loaded {
  background-image: var(--bg-url-fallback); /* webp — for Safari <17 */
  background-image: var(--bg-url); /* image-set(avif, webp) — overrides when supported */
}

.how-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.11);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .how-card:hover .how-visual::before {
    opacity: 0;
  }
}

.how-plate {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  z-index: 2;
}

.how-step {
  color: var(--brand-cyan);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin: 0 0 4px;
}

.how-card h3 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.how-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}


/* ===== Partners page — Hero extras ===== */

.partners-hero-breakdown {
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: -6px 0 18px;
}

@media (min-width: 768px) {
  .partners-hero-breakdown {
    font-size: 24px;
  }
}

.partners-hero-legal,
.final-cta-legal {
  color: var(--text-tertiary);
  font-size: 12px;
  margin: 16px 0 0;
  position: relative;
  z-index: 1;
}

.partners-hero-legal a,
.final-cta-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.partners-hero-legal a:hover,
.final-cta-legal a:hover {
  color: var(--text-primary);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}


/* ===== Partners page — Early adopter block ===== */

.early-content {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.early-text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.early-text:last-child {
  margin-bottom: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
}

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

.why-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.25s;
}

@media (hover: hover) {
  .why-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
  }
}

.why-accent {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.why-desc {
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}


/* ===== Partners page — Audience (who it's for) ===== */

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
}

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

.audience-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  transition: border-color 0.25s;
}

@media (hover: hover) {
  .audience-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
  }
}

.audience-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--brand-cyan);
  opacity: 0.7;
}

.audience-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}


/* ===== Partners page — Fair terms ===== */

.terms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .terms-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.terms-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.terms-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand-cyan);
  margin-top: 2px;
  opacity: 0.7;
}

.terms-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.3;
}

.terms-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.terms-link {
  display: block;
  text-align: center;
  margin: 36px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.15s;
}

.terms-link:hover {
  color: var(--brand-cyan);
}

.terms-link span {
  opacity: 0.55;
  margin-left: 4px;
}


/* ===== Partners page — Income calculator (compact) ===== */

.calc-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-block);
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 28px 32px;
}

.calc-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.calc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.calc-slider-col {
  flex: 1;
  min-width: 0;
}

.calc-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 16px;
}

.calc-label strong {
  color: var(--text-primary);
  font-weight: 600;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--brand-cyan) 0%,
    var(--brand-magenta) var(--fill-pct, 9%),
    rgba(255, 255, 255, 0.08) var(--fill-pct, 9%),
    rgba(255, 255, 255, 0.08) 100%
  );
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.calc-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  border: none;
}

.calc-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.calc-result {
  flex-shrink: 0;
  text-align: right;
  min-width: 250px;
}

.calc-total,
.calc-l1,
.calc-l2,
.calc-count {
  font-variant-numeric: tabular-nums;
}

.calc-total {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
}

.calc-total-label {
  color: var(--text-tertiary);
  font-size: 12px;
  margin: 4px 0 0;
}

.calc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.calc-breakdown {
  color: var(--text-tertiary);
  font-size: 12px;
  display: flex;
  gap: 20px;
}

.calc-breakdown strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.calc-disclaimer {
  /* was rgba(255,255,255,0.2) ≈ 2.7:1 — bumped to --text-tertiary for WCAG AA */
  color: var(--text-tertiary);
  font-size: 11px;
  max-width: 420px;
  text-align: right;
}

@media (max-width: 720px) {
  .calc-card {
    padding: 22px 20px;
  }

  .calc-top {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .calc-result {
    text-align: left;
    min-width: 0;
  }

  .calc-total {
    font-size: 32px;
  }

  .calc-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .calc-breakdown {
    flex-wrap: wrap;
    gap: 6px 20px;
  }

  .calc-disclaimer {
    text-align: left;
    max-width: none;
  }
}


/* ===== Breadcrumbs ===== */

.breadcrumbs {
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 13px;
}

.breadcrumbs ol {
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
}

.breadcrumbs li + li::before {
  content: '/';
  color: var(--text-tertiary);
  opacity: 0.4;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

.breadcrumbs a:hover {
  color: var(--text-primary);
}

.breadcrumbs__current {
  color: var(--text-tertiary);
}


/* ===== Video frames (placeholder) ===== */

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-frame {
  aspect-ratio: 9 / 16;
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame__label {
  color: var(--text-tertiary);
  font-size: 14px;
}

.video-caption {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}


/* ===== 404 Page ===== */

.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.page-404 h1 {
  font-size: 120px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 p {
  font-size: 18px;
  margin-bottom: 32px;
}


/* ===== Docs hub ===== */

.docs-hub {
  padding: 40px 24px 80px;
}

.docs-hub h1 {
  color: var(--text-primary);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.1;
}

.docs-hub__lead {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  max-width: 540px;
  margin: 0 0 40px;
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.doc-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

@media (hover: hover) {
  .doc-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: var(--bg-surface-hover);
  }
  .doc-card:hover .doc-arrow {
    color: var(--brand-cyan);
    transform: translateX(2px);
  }
}

.doc-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
}

.doc-title {
  flex: 1;
  min-width: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.doc-arrow {
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}


/* ===== Docs pages ===== */

.docs-page {
  padding: 40px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

.docs-page h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 32px;
}

.docs-page p,
.docs-page li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.docs-page h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.docs-page ol,
.docs-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.docs-page ol {
  list-style: decimal;
}

.docs-page ul {
  list-style: disc;
}

.docs-page dl {
  margin-bottom: 16px;
}

.docs-page dt {
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 16px;
}

.docs-page dd {
  color: var(--text-secondary);
  margin-left: 0;
}

.docs-page a {
  color: var(--brand-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-page a:hover {
  color: #FFFFFF;
}

.docs-page strong {
  color: var(--text-primary);
  font-weight: 500;
}

.docs-page__meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}


/* ===== Requisites page ===== */

.requisites-page {
  padding: 40px 0 80px;
}

.requisites-page h1 {
  color: var(--text-primary);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.1;
}

.requisites-lead {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  max-width: 540px;
  margin: 0 0 36px;
}

.requisites-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  align-items: start;
}

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

.req-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.req-card-header {
  padding: 20px 24px 14px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.req-card-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
}

.req-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  min-height: 28px;
}

.req-row:last-child { border-bottom: none; }

@media (max-width: 720px) {
  .req-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
  }
  .req-key { grid-row: 1; grid-column: 1; }
  .req-val { grid-row: 2; grid-column: 1; }
  .req-copy { grid-row: 1 / 3; grid-column: 2; align-self: center; }
  .req-row-spacer { display: none; }
}

.req-key {
  color: var(--text-tertiary);
  font-size: 13px;
}

.req-val {
  color: var(--text-primary);
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  word-break: break-all;
}

.req-val-text {
  font-family: var(--font-sans);
  word-break: normal;
}

.req-row-spacer { display: block; width: 28px; }

.req-copy {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.req-copy:hover {
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--brand-cyan);
}

.req-copy-check { display: none; }

.req-copy.copied {
  border-color: rgba(43, 217, 104, 0.5);
  color: #2BD968;
}

.req-copy.copied .req-copy-icon { display: none; }
.req-copy.copied .req-copy-check { display: block; }

.req-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s;
}

.req-contact:last-child { border-bottom: none; }
.req-contact:hover { background: var(--bg-surface-hover); }

.req-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.req-contact-text { flex: 1; min-width: 0; }

.req-contact-label {
  color: var(--text-tertiary);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 2px;
}

.req-contact-value {
  color: var(--text-primary);
  font-size: 13px;
  margin: 0;
}

.req-note {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.6;
  margin: 24px 0 0;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}


/* ===== Back to top ===== */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 50;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ===== Utility: config loading ===== */

/* Hide all content until partials + config are loaded */
body:not(.config-ready) main,
body:not(.config-ready) .topbar,
body:not(.config-ready) .site-footer {
  opacity: 0;
}

body.config-ready main,
body.config-ready .topbar,
body.config-ready .site-footer {
  opacity: 1;
  transition: opacity 0.15s var(--ease);
}


/* ===== Blog — Listing Page ===== */

.blog-page {
  padding: 40px 24px 80px;
  max-width: 760px;
  margin: 0 auto;
}

.blog-page h1 {
  color: var(--text-primary);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.blog-lead {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
  max-width: 580px;
  margin: 0 0 56px;
}

.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-item {
  display: block;
  padding: 24px 16px;
  margin: 0 -16px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.blog-item:first-child {
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

@media (hover: hover) {
  .blog-item:hover {
    background: rgba(255, 255, 255, 0.02);
  }
  .blog-item:hover .blog-item-title {
    color: #FFFFFF;
  }
}

.blog-item-title {
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 8px;
  transition: color 0.15s;
}

.blog-item-lead {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.blog-item-meta {
  color: var(--text-tertiary);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-item-meta-sep {
  opacity: 0.5;
}


/* ===== Blog — Article Page ===== */

.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.article-page h1 {
  color: var(--text-primary);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.article-meta {
  color: var(--text-tertiary);
  font-size: 13px;
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.article-meta-sep {
  opacity: 0.5;
  margin: 0 8px;
}


/* --- Article Prose --- */

.article-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-content p {
  margin: 0 0 20px;
}

.article-content h2 {
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 48px 0 16px;
}

.article-content h3 {
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  margin: 32px 0 12px;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 500;
}

.article-content a {
  color: var(--brand-cyan);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(0, 229, 255, 0.35);
  transition: border-color 0.15s;
}

.article-content a:hover {
  border-color: var(--brand-cyan);
}

/* Inline code */
.article-content code {
  background: rgba(0, 229, 255, 0.08);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  border: 0.5px solid rgba(0, 229, 255, 0.15);
}

/* Code blocks */
.article-content pre {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  overflow-x: auto;
}

.article-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* Blockquotes */
.article-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--brand-cyan);
  color: var(--text-primary);
  font-style: normal;
  font-size: 17px;
  line-height: 1.6;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}


/* --- Inline CTA --- */

.article-inline-cta {
  background: var(--bg-surface);
  border: 0.5px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 36px 0;
  position: relative;
  overflow: hidden;
}

.article-inline-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.article-inline-cta-text {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.article-inline-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-magenta));
  color: var(--bg-base) !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none !important;
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
}

.article-inline-cta-btn:hover {
  transform: translateY(-1px);
}


/* --- Related Posts --- */

.article-related {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.article-related-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.article-related .blog-item {
  border-top: none;
}

.article-related .blog-item:first-child {
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}


/* --- Article FAQ (reuses .faq-grid component) --- */

.faq-grid--single {
  grid-template-columns: 1fr;
}

.faq-grid--single > .faq-item:nth-child(2) {
  border-top: none;
}

.article-content .faq-grid {
  margin: 24px 0;
}


/* --- Blog Mobile --- */

@media (max-width: 720px) {
  .blog-page h1,
  .article-page h1 {
    font-size: 32px;
  }

  .article-content h2 {
    font-size: 22px;
  }

  .article-content h3 {
    font-size: 17px;
  }

  .article-inline-cta {
    padding: 20px;
  }
}


/* =============================================
   Cookie Banner
   ============================================= */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(10, 15, 31, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 700px;
  width: calc(100% - 48px);
  animation: cookie-fade-in 0.4s ease-out;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner.hiding {
  animation: cookie-fade-out 0.3s ease-in forwards;
}

@keyframes cookie-fade-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes cookie-fade-out {
  from { opacity: 1; transform: translate(-50%, 0); }
  to   { opacity: 0; transform: translate(-50%, 10px); }
}

.cookie-banner-text {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cookie-banner-text a {
  color: var(--brand-cyan);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(0, 229, 255, 0.35);
  transition: border-color 0.15s;
}

.cookie-banner-text a:hover {
  border-color: var(--brand-cyan);
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.cookie-banner-accept {
  background: #FFFFFF;
  color: var(--bg-base);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.cookie-banner-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.15);
}

.cookie-banner-decline {
  background: transparent;
  color: var(--text-tertiary);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
  font-family: inherit;
}

.cookie-banner-decline:hover {
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .cookie-banner {
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-banner-actions {
    justify-content: space-between;
  }

  .cookie-banner-accept,
  .cookie-banner-decline {
    flex: 1;
    padding: 10px 14px;
  }
}


/* ===== Shimmer placeholders =====
   Цель: не показывать чёрные квадраты на местах ещё-не-загруженных картинок.
   Решение:
     * fallback background-color (чуть светлее --bg-base)
     * shimmer ::after, GPU-accelerated через transform (не background-position)
     * играет только на элементах без .is-loaded — этот класс ставят:
       - main.js:initShimmerImages   для .bn-visual с <img>
       - hero-fx.js                  для .hero-tile после preload/crossfade
       - main.js:initLazyBackgrounds для .final-cta-tile / .how-visual
     * content:none на .is-loaded полностью удаляет ::after из box-tree,
       анимация останавливается, GPU-layer освобождается.

   Hero t1-t5 (LCP-кандидаты) НЕ shimmer'ятся: у них preload+fetchpriority
   и при прогретом кеше они отрисовываются first paint'ом. Shimmer там
   только ухудшил бы LCP. */

.hero-tile,
.bn-visual,
.final-cta-tile,
.how-visual {
  background-color: #0A0F1F;
}

/* shimmer viewport: плавающая полоска через transform.
   content-visibility: auto не добавляем — hero t6-t10 всегда в viewport; для
   bento/cta/how — они в нижней части страницы, но 15 паузированных анимаций
   стоят дёшево, а introducing content-visibility может ломать layout shift. */
.hero-tile:nth-child(n+6):not(.is-loaded)::after,
.bn-visual:not(.is-loaded)::after,
.final-cta-tile:not(.is-loaded)::after,
.how-visual:not(.is-loaded)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0; /* под ::before (hover overlay z:1) и frosted-plate (z:2) */
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: shimmer 1.8s linear infinite;
  pointer-events: none;
  border-radius: inherit;
  will-change: transform;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

/* prefers-reduced-motion: убираем движение, оставляем статичный highlight
   чтобы тайл не выглядел совсем пустым (то же намерение, без анимации) */
@media (prefers-reduced-motion: reduce) {
  .hero-tile:nth-child(n+6):not(.is-loaded)::after,
  .bn-visual:not(.is-loaded)::after,
  .final-cta-tile:not(.is-loaded)::after,
  .how-visual:not(.is-loaded)::after {
    animation: none;
    transform: none;
    background: rgba(255, 255, 255, 0.03);
  }
}
