@import url('fonts/fonts.css');

/* ==========================================================================
   Design System & Tokens (CardGenius Studio Edition)
   ========================================================================== */
:root {
  --font-sans: 'Geologica', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Piazzolla', Georgia, serif;

  --bg-page: #0b0d10;
  --bg-surface: #12151a;
  --bg-card: #171b22;
  --bg-card-hover: #1e232d;
  --bg-glass: rgba(18, 21, 26, 0.78);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(212, 163, 89, 0.4);
  --border-accent: #d4a359;

  --text-main: #f3f5f8;
  --text-secondary: #9aa3b2;
  --text-muted: #667080;

  /* Warm Studio Amber / Gold Accent (Refined daylight tone) */
  --accent: #d4a359;
  --accent-light: #e8bf7d;
  --accent-glow: rgba(212, 163, 89, 0.22);
  --accent-rgb: 212, 163, 89;

  --cyan: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 35px rgba(212, 163, 89, 0.16);
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header Navigation (Single-Line on all screens)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(11, 13, 16, 0.94);
  border-bottom-color: var(--border-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

/* Logo: minimum 44px on desktop, minimum 32px on mobile */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
  flex-shrink: 0;
  min-height: 44px;
}

.site-logo:hover .logo-mark {
  transform: rotate(-3deg) scale(1.05);
}

.logo-mark {
  width: 44px;
  height: 44px;
  color: var(--text-main);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
}

.logo-brand {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1;
}

.logo-badge {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-header:hover {
  background: var(--accent);
  color: #0b0d10;
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

/* ==========================================================================
   Buttons & Core Components
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--accent);
  color: #0c0f13;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(var(--accent-rgb), 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section: Scroll-Driven Storytelling
   ========================================================================== */
.hero-story-container {
  position: relative;
  height: 250vh; /* Scroll track for scene disassembly/assembly */
  background: var(--bg-page);
}

.hero-sticky-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Layer 1: Daylight Studio Photo Backdrop */
.stage-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-parallax-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  filter: brightness(1.02) contrast(1.03);
}

/* Layer 2: Dark Veil Overlay (Strictly <= 25% opacity) */
.stage-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(11, 13, 16, 0.20); /* 20% opacity veil */
  pointer-events: none;
}

/* Subtle gradient bottom feathering into content */
.stage-feather {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg-page));
  z-index: 3;
  pointer-events: none;
}

/* Layer 3: Main Editorial Text Plane */
.stage-editorial {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1220px;
  padding: 0 1.5rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  pointer-events: none;
  box-sizing: border-box;
}

.stage-editorial * {
  pointer-events: auto;
}

.editorial-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Nadzagolovok: Plain text without capsule, pill or dot */
.hero-nadzagolovok {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.35rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: #e5e9f0;
  max-width: 580px;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(14, 17, 22, 0.65);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Layer 4: Interactive Disassembly & Assembly Stage */
.stage-interactive-layers {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-layer {
  position: absolute;
  width: 320px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}

/* Layer A: Raw camera capture frame */
.layer-raw {
  z-index: 10;
  padding: 0.85rem;
  background: rgba(23, 27, 34, 0.88);
  backdrop-filter: blur(10px);
}

.raw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.layer-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.layer-raw-thumb {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

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

.raw-footer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Layer B: Cutout & AI Processing */
.layer-cutout {
  z-index: 15;
  padding: 1rem;
  background: rgba(18, 22, 28, 0.92);
  border-color: var(--cyan);
  box-shadow: 0 10px 30px var(--cyan-glow);
}

.cutout-preview {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cutout-preview img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.6));
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scanVertical 2.5s ease-in-out infinite alternate;
}

@keyframes scanVertical {
  0% { top: 10%; opacity: 0.3; }
  100% { top: 90%; opacity: 0.9; }
}

.cutout-meta {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.meta-label { color: var(--text-muted); }
.meta-value { color: var(--cyan); font-weight: 600; font-family: monospace; }

/* Layer C: Semantic Keywords Matrix */
.layer-semantics {
  z-index: 20;
  padding: 1.15rem;
  background: rgba(24, 28, 36, 0.95);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.semantics-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.keywords-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.kw-chip {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  color: var(--text-secondary);
}

.kw-chip.highlight {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--accent-light);
}

/* Layer D: Final Assembled Marketplace Carousel Card */
.layer-assembled {
  z-index: 25;
  width: 340px;
  padding: 1rem;
  background: #15181f;
  border: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-glow);
}

.assembled-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.badge-platform {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-light);
}

.badge-status {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-slide-preview {
  position: relative;
  height: 240px;
  border-radius: var(--radius-sm);
  background: #1a1e26;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.slide-h1-sample {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-transform: uppercase;
}

.slide-strip {
  width: 36px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.4rem;
}

.slide-product-center {
  align-self: center;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

.slide-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.bento-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
}

.assembled-footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Layer Scrubber Controls */
.story-scrubber {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.4rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--border-medium);
}

.scrub-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  transition: var(--transition-smooth);
}

.scrub-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.scrub-btn.active {
  color: #0c0f13;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ==========================================================================
   Section 2: Как это работает (3 Steps)
   ========================================================================== */
.section-padding {
  padding: 6.5rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Centered Flexible Cards Container (Rule: Incomplete last row centers) */
.steps-flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

.step-card {
  flex: 0 1 calc(33.333% - 1.25rem);
  min-width: 290px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Section 3: Что приходит в ответ (4 Cards)
   ========================================================================== */
.features-flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

.feature-card {
  flex: 0 1 calc(50% - 1rem);
  min-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.feature-interactive-box {
  background: rgba(11, 13, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

/* Interactive Category Style Tabs */
.style-selector-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.style-tab-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.style-tab-btn:hover {
  color: var(--text-main);
}

.style-tab-btn.active {
  background: var(--accent);
  color: #0b0d10;
  border-color: var(--accent);
}

.style-sample-card {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: #1a1e26;
  border-left: 3px solid var(--accent);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: all 0.3s ease;
}

/* Mini Carousel in Card 3 */
.mini-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mini-nav-btns {
  display: flex;
  gap: 0.35rem;
}

.mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: background 0.2s;
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mini-slide-content {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-slide-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.mini-slide-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 4: Тарифы (Exact three cards centered)
   ========================================================================== */
.pricing-flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

.pricing-card {
  flex: 0 1 calc(33.333% - 1.25rem);
  min-width: 290px;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.plan-header {
  margin-bottom: 1.5rem;
}

.plan-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.plan-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
}

.plan-period {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-features-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.plan-features-list svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
}

.plan-btn:hover {
  background: var(--accent);
  color: #0b0d10;
  border-color: var(--accent);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.pricing-disclaimer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 5: Для кого (3 Scenarios)
   ========================================================================== */
.audience-flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

.audience-card {
  flex: 0 1 calc(33.333% - 1.25rem);
  min-width: 290px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  transition: var(--transition-smooth);
}

.audience-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.audience-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.audience-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.audience-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Section 6: Частые вопросы (FAQ Accordion)
   ========================================================================== */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.6rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.35rem;
}

.faq-answer-inner {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.referral-note-box {
  margin-top: 2rem;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   Section 7: Final CTA & Footer
   ========================================================================== */
.final-cta-section {
  padding: 7rem 0 5rem;
  background: radial-gradient(circle at center top, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
}

.final-cta-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.final-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.final-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.final-cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  background: #090a0d;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bot-link {
  color: var(--accent-light);
  font-weight: 600;
}

.footer-bot-link:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   Back to Top Button (Scroll progress ring & magnetic hover)
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.progress-ring-circle {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: transparent;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.1s linear;
}

/* ==========================================================================
   Responsive & Accessibility
   ========================================================================== */
@media (max-width: 1024px) {
  .stage-editorial {
    display: flex;
    flex-direction: column;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding: 5.5rem 1.5rem 2.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  .editorial-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .stage-interactive-layers {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 380px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .feature-card {
    flex: 0 1 100%;
  }
  .pricing-card {
    flex: 0 1 calc(50% - 1rem);
  }
  .step-card,
  .audience-card {
    flex: 0 1 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none; /* Keep header strictly 1 line */
  }
  .site-header {
    height: 64px;
  }
  .header-inner {
    height: 64px;
  }
  .site-logo {
    min-height: 34px;
  }
  .logo-mark {
    width: 34px;
    height: 34px;
  }
  .logo-brand {
    font-size: 1.35rem;
  }
  .btn-header {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }
  .hero-story-container {
    height: auto;
    max-width: 100vw;
    overflow: hidden;
  }
  .hero-sticky-stage {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: 5.5rem 0 3rem;
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .stage-editorial {
    display: flex;
    flex-direction: column;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 1rem;
    margin: 0 auto;
    gap: 1.75rem;
    box-sizing: border-box;
    overflow: hidden;
  }
  .editorial-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-nadzagolovok {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .hero-title {
    font-size: clamp(1.65rem, 6.2vw, 2.1rem);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-bottom: 1.5rem;
  }
  .hero-actions {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-sizing: border-box;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }
  .hero-scroll-hint {
    margin-top: 0.5rem;
    font-size: 0.78rem;
  }
  .stage-interactive-layers {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 330px;
    margin-top: 1rem;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .story-layer {
    width: 280px;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
  }
  .layer-assembled {
    width: 290px;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
  }
  .story-scrubber {
    position: static;
    transform: none;
    margin: 1.5rem auto 0;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
  }
  .scrub-btn {
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }
  .step-card,
  .audience-card,
  .pricing-card {
    flex: 0 1 100%;
    max-width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .stage-editorial {
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .editorial-copy {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .story-layer {
    width: 270px;
    max-width: calc(100% - 16px);
  }
  .layer-assembled {
    width: 280px;
    max-width: calc(100% - 16px);
  }
}

@media (max-width: 360px) {
  .header-inner {
    gap: 0.5rem;
  }
  .logo-brand {
    font-size: 1.15rem;
  }
  .logo-mark {
    width: 30px;
    height: 30px;
  }
  .btn-header {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-story-container {
    height: auto !important;
  }
  .hero-sticky-stage {
    position: relative !important;
    height: auto !important;
  }
  .story-layer {
    transition: none !important;
  }
}
