*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: #040b18;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip;
  background: #040b18;
  color: #fdf6e9;
  font-family: var(--lis-font-sans, "Manrope", system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.lf-page {
  position: relative;
  width: 100%;
  overflow-x: clip;
}

/* ==========================================================================
   BLOCK 1: FULLSCREEN REAL ORIGINAL PRODUCT HOUSE + 2.5D SIMS REVEAL
   ========================================================================== */
.hero2d-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: var(--hero-h, 100dvh);
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: #030812;
}

.hero2d-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  display: block;
  pointer-events: none;
  filter: none;
}

/* Crisp static end-frame still locked over <video> after playback ends (prevents iOS Safari scroll-back poster reset) */
.hero2d-end-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hero2d-stage.is-video-ended .hero2d-end-still {
  opacity: 1;
}

.hero2d-stage.is-video-hero .hero2d-bottom-scrim {
  opacity: 1;
}

.hero2d-stage.is-video-hero .hero2d-overlay-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero2d-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 21%, rgba(255, 224, 152, 0.22) 0%, rgba(255, 210, 122, 0.08) 18%, transparent 38%),
    radial-gradient(ellipse 95% 58% at 50% 78%, rgba(245, 172, 82, 0.14) 0%, transparent 64%),
    linear-gradient(180deg, #040a1a 0%, #0b1834 48%, #152546 84%, #0a1428 100%);
}

.hero2d-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero2d-moon {
  position: absolute;
  top: clamp(78px, 13vh, 138px);
  left: 50%;
  width: clamp(90px, 10.2vw, 148px);
  height: auto;
  z-index: 1;
  opacity: 0.98;
  transform: translate3d(-50%, 0, 0);
  will-change: transform, opacity;
  filter: drop-shadow(0 0 34px rgba(255, 226, 152, 0.62));
  pointer-events: none;
}

/* FLOOR 2 (z=1): Aerial Panoramic Distant Winter City (revealed cleanly BETWEEN Cloud Deck 1 and Cloud Deck 2!) */
.hero2d-distant-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform-origin: center 54%;
  will-change: transform, opacity;
}

.hero2d-stage.is-engine-ready .hero2d-distant-stage {
  visibility: visible;
}

.hero2d-distant-img {
  position: absolute;
  left: -8%;
  width: 116%;
  bottom: 4%;
  height: 78%;
  object-fit: cover;
  object-position: center bottom;
  filter: brightness(0.76) saturate(0.68) contrast(1.04);
}

.hero2d-distant-mist {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 14, 34, 0.22) 0%,
    rgba(12, 26, 56, 0.16) 44%,
    rgba(16, 30, 62, 0.62) 76%,
    rgba(14, 26, 54, 0.96) 100%
  );
}

/* FLOOR 3 (z=2): Street-Level Multiplane World (HIDDEN in CSS until JS boots & Cloud Deck 2 wipes -> ZERO cold-load FOUC!) */
.hero2d-world {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
  transform-origin: center center;
}

.hero2d-stage.is-engine-ready .hero2d-world {
  visibility: visible;
}

/* 3a: Distant Winter City Horizon clearly readable in moonlight behind the 5-block square roofs! */
.hero2d-city-far {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 10%;
  height: 68%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2%;
  transform-origin: center center;
  will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 96%);
}

.hero2d-skyline-img {
  width: 100%;
  height: auto;
  min-height: 58%;
  object-fit: cover;
  object-position: center bottom;
  filter: brightness(0.84) saturate(0.76) contrast(1.04) blur(0.45px);
}

.hero2d-city-mist {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 20, 44, 0.04) 0%,
    rgba(13, 27, 56, 0.34) 64%,
    rgba(10, 20, 42, 0.86) 100%
  );
}

/* 3a-haze: Subtle Aerial Depth Mist separating distant cathedral from foreground square */
.hero2d-aerial-haze {
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(14, 28, 56, 0) 0%,
    rgba(16, 30, 62, 0.22) 48%,
    rgba(10, 20, 44, 0.56) 82%,
    rgba(8, 16, 34, 0.78) 100%
  );
}

/* 3b: Continuous Edge-to-Edge European Winter Square */
.hero2d-house-plane {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transform-origin: center bottom;
  will-change: transform;
}

/* Seamless repeat-x winter cobblestone plaza floor (ZERO mirrored Rorschach snowdrift butterflies, full 900% width for zoomed-out 6.4s-7.3s!) */
.hero2d-plaza-floor {
  position: absolute;
  left: -400%;
  width: 900%;
  bottom: 0;
  height: 8.95%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background-color: #232a3e;
  background-image: url("../assets/landing/hero-2d/plaza-cobble-seamless.webp?v=20261126f26");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
}

.hero2d-plaza-curb-ao {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 20%;
  background: linear-gradient(180deg, rgba(6, 12, 26, 0.38) 0%, rgba(6, 12, 26, 0) 100%);
}

/* Crisp unmasked house shell (ZERO faded/eaten red car bumper!) */
.hero2d-house-shell {
  position: relative;
  z-index: 3;
  width: min(640px, 88vw);
  container-type: inline-size;
  margin: 0 auto;
}

/* Feather ONLY the center cobble tile edges into the continuous plaza floor — red car stays 100% razor sharp! */
.hero2d-house-shell .syn-street--cobble {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 84%, transparent 100%);
}

/* Real Town-Square Sidewalk Lamppost Glows (anchored strictly to sidewalk lamp-heads!) */
.hero2d-square-lamps {
  position: absolute;
  left: -200%;
  width: 500%;
  bottom: 0;
  height: 36%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.h2d-sq-lamp {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 244, 196, 0.96) 0%,
    rgba(255, 202, 96, 0.48) 38%,
    rgba(255, 168, 56, 0) 72%
  );
  mix-blend-mode: screen;
}

.h2d-sq-lamp--l2 { left: 28.4%; bottom: 29%; }
.h2d-sq-lamp--l1 { left: 37.6%; bottom: 29%; }
.h2d-sq-lamp--dl { left: 48.2%; bottom: 35%; }
.h2d-sq-lamp--dr { left: 51.8%; bottom: 35%; }
.h2d-sq-lamp--r1 { left: 62.6%; bottom: 29%; }
.h2d-sq-lamp--r2 { left: 71.8%; bottom: 29%; }

/* 1:1 Scale-Matched Storybook European Townhouse Wings locked shoulder-to-shoulder (ZERO air gaps between walls!) */
.hero2d-house-flank {
  position: absolute;
  bottom: 6.4%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: brightness(0.92) saturate(0.96);
}

.hero2d-house-flank--left {
  width: 55%;
  right: calc(100% - 44px);
}

.hero2d-house-flank--right {
  width: 62%;
  left: calc(100% - 44px);
}

.hero2d-house-flank--far-left {
  width: 60%;
  right: calc(146% - 78px);
  z-index: 1;
  filter: brightness(0.80) saturate(0.88);
  transform: scaleX(-1);
}

.hero2d-house-flank--far-right {
  width: 56%;
  left: calc(150% - 78px);
  z-index: 1;
  filter: brightness(0.80) saturate(0.88);
  transform: scaleX(-1);
}

.hero2d-house-shell .hm-stage.is-synthesis {
  width: 100%;
  overflow: visible !important;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Hide internal clipped sky clouds & moon inside narrow house stage (ZERO rectangular scissor-cut clouds!) */
.hero2d-house-shell .syn-sky-bg,
.hero2d-house-shell .syn-sky-bg--v5 {
  background: transparent !important;
}

.hero2d-house-shell .syn-sky-stars-canvas,
.hero2d-house-shell .syn-sky-layer--moon,
.hero2d-house-shell .syn-sky-layer--cloud,
.hero2d-house-shell [class*="syn-cloud-drift"] {
  display: none !important;
}

.hero2d-house-shell .hm-win-slot {
  cursor: pointer;
  transition: filter 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero2d-house-shell .hm-win-slot.is-pre-lit {
  filter: brightness(0.14) saturate(0.18) contrast(1.06);
}

.hero2d-house-shell .hm-win-slot.is-just-lit {
  filter: brightness(1.08) saturate(1.1) drop-shadow(0 0 20px rgba(255, 206, 108, 0.72));
}

/* 3c: Mid-Ground 1-Point Perspective Cobblestone Avenue (extra 24% top headroom for pure vertical rooftop crane-down -> ZERO flat cut edges!) */
.hero2d-corridor-mid {
  position: absolute;
  left: 0;
  right: 0;
  top: -24%;
  height: 124%;
  z-index: 3;
  pointer-events: none;
  transform-origin: 50% 65%;
  will-change: transform, opacity;
}

.hero2d-corridor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
  display: block;
}

/* 3d: Near Foreground Cozy Perspective Alleyway Walls (extra 24% top headroom for pure vertical rooftop crane-down!) */
.hero2d-corridor-near {
  position: absolute;
  top: -24%;
  height: 124%;
  width: 50%;
  z-index: 4;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero2d-corridor-near--left {
  left: 0;
  transform-origin: left center;
}

.hero2d-corridor-near--right {
  right: 0;
  transform-origin: right center;
}

.hero2d-corridor-near img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero2d-corridor-near--left img {
  object-position: right center;
}

.hero2d-corridor-near--right img {
  object-position: left center;
}

/* Pure GPU-Composited Sleeping Moonlit Blue Night Blend Layers (opacity-only -> locked 60fps!) */
.hero2d-night-desat {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: #1b3164;
  mix-blend-mode: color;
  opacity: 0.78;
  will-change: opacity;
}

.hero2d-night-veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(
    ellipse 92% 84% at 50% 52%,
    rgba(18, 38, 84, 0.44) 0%,
    rgba(8, 18, 46, 0.72) 100%
  );
  mix-blend-mode: multiply;
  opacity: 0.74;
  will-change: opacity;
}

/* Streetlamp Pre-Ignition Warm Amber Halos (flicker ON right before the main golden flash!) */
.hero2d-lamp-halos {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
}

.h2d-lamp-orb {
  position: absolute;
  width: clamp(56px, 7vw, 110px);
  height: clamp(56px, 7vw, 110px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 240, 180, 0.95) 0%,
    rgba(255, 198, 92, 0.52) 34%,
    rgba(255, 162, 54, 0) 72%
  );
  mix-blend-mode: screen;
}

.h2d-lamp-orb--l1 { left: 15%; top: 53%; }
.h2d-lamp-orb--l2 { left: 26%; top: 56%; transform: translate(-50%, -50%) scale(0.76); }
.h2d-lamp-orb--l3 { left: 32%; top: 59%; transform: translate(-50%, -50%) scale(0.54); }
.h2d-lamp-orb--r1 { left: 85%; top: 53%; }
.h2d-lamp-orb--r2 { left: 74%; top: 56%; transform: translate(-50%, -50%) scale(0.76); }
.h2d-lamp-orb--r3 { left: 68%; top: 59%; transform: translate(-50%, -50%) scale(0.54); }

/* Focused Noble Warm-Gold House/Plaza Awakening Bloom (keeps night sky deep indigo -> ZERO muddy brown sky wash!) */
.hero2d-magic-wave {
  position: absolute;
  left: 50%;
  top: 66%;
  width: min(56vw, 620px);
  height: min(44vw, 480px);
  margin-left: calc(min(56vw, 620px) * -0.5);
  margin-top: calc(min(44vw, 480px) * -0.5);
  border-radius: 50%;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 240, 186, 0.72) 0%,
    rgba(255, 198, 86, 0.34) 34%,
    rgba(255, 162, 52, 0.08) 54%,
    rgba(255, 150, 40, 0) 68%
  );
  will-change: transform, opacity;
}

/* Z2a: True Optical Radial Depth-of-Field Blur around the 1:1 matched close-up door! */
.hero2d-radial-dof {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse 34% 52% at 50% 45%,
    rgba(255, 214, 132, 0.04) 0%,
    rgba(8, 14, 28, 0.16) 56%,
    rgba(4, 9, 20, 0.62) 100%
  );
  backdrop-filter: blur(11px) saturate(1.04) brightness(0.84);
  -webkit-backdrop-filter: blur(11px) saturate(1.04) brightness(0.84);
  -webkit-mask-image: radial-gradient(
    ellipse 24% 48% at 50% 45%,
    transparent 0%,
    transparent 56%,
    rgba(0, 0, 0, 0.45) 76%,
    #000 100%
  );
  mask-image: radial-gradient(
    ellipse 24% 48% at 50% 45%,
    transparent 0%,
    transparent 56%,
    rgba(0, 0, 0, 0.45) 76%,
    #000 100%
  );
  will-change: opacity;
}

/* Z2b: Razor-Sharp 1:1 Pixel-Locked Close-Up 3D Arched Door Portal (ZERO sticker halo!) */
.hero2d-door-closeup {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: clamp(104px, 13vh, 142px);
  padding-top: clamp(36px, 5vh, 54px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.hero2d-stage.is-landed .hero2d-door-closeup {
  pointer-events: auto;
}

.hero2d-door-backdrop-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 46% 62% at 50% 45%,
    rgba(255, 212, 128, 0.08) 0%,
    rgba(7, 13, 26, 0.14) 64%,
    rgba(4, 9, 20, 0.56) 100%
  );
}

.hero2d-door-rig {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  position: relative;
  height: min(74svh, 640px);
  aspect-ratio: 432 / 777;
  cursor: pointer;
  transform-origin: center 54%;
  filter: none;
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.hero2d-door-rig:hover {
  filter: drop-shadow(0 0 38px rgba(255, 216, 128, 0.44));
}

.hero2d-door-interior {
  position: absolute;
  left: 19.8%;
  top: 29.5%;
  width: 60.4%;
  height: 61.5%;
  overflow: hidden;
  border-radius: 90px 90px 2px 2px;
  background: #2b180c;
  z-index: 1;
}

.hero2d-door-foyer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.12);
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero2d-door-interior-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 54%,
    rgba(255, 226, 146, 0.52) 0%,
    rgba(255, 178, 72, 0.16) 56%,
    rgba(30, 14, 4, 0.32) 100%
  );
  mix-blend-mode: screen;
}

.hero2d-door-leaves-box {
  position: absolute;
  left: 20.833%;
  top: 32.561%;
  width: 58.334%;
  height: 57.529%;
  z-index: 2;
  perspective: 1100px;
  display: flex;
}

.hero2d-door-leaf {
  position: relative;
  width: 50%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.hero2d-door-leaf img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.hero2d-door-leaf--left {
  transform-origin: left center;
}

.hero2d-door-leaf--right {
  transform-origin: right center;
}

.hero2d-door-arch-img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Act 5b: 3D Inward Door Swing & Golden Foyer Entry (MP4 #17 -> #18!) */
.hero2d-stage.is-door-opening .hero2d-door-leaf--left {
  transform: rotateY(-108deg);
  filter: brightness(0.75);
}

.hero2d-stage.is-door-opening .hero2d-door-leaf--right {
  transform: rotateY(108deg);
  filter: brightness(0.75);
}

.hero2d-stage.is-door-opening .hero2d-door-rig {
  transform: scale(1.72);
}

.hero2d-stage.is-door-opening .hero2d-door-foyer-img {
  transform: scale(1.24);
}

.hero2d-stage.is-door-opening .hero2d-overlay-bar,
.hero2d-stage.is-door-opening .hero2d-bottom-scrim {
  opacity: 0 !important;
  pointer-events: none;
}

/* Brief Golden Light-Flare Match-Cut Bridge (hides 2D-to-3D door swap with ZERO ghost double-exposure!) */
.hero2d-door-flare {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(64vw, 560px);
  height: min(64vw, 560px);
  margin-left: calc(min(64vw, 560px) * -0.5);
  margin-top: calc(min(64vw, 560px) * -0.5);
  border-radius: 50%;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle,
    rgba(255, 248, 214, 0.96) 0%,
    rgba(255, 212, 108, 0.56) 34%,
    rgba(255, 176, 62, 0.14) 64%,
    rgba(255, 160, 40, 0) 100%
  );
  will-change: transform, opacity;
}

.hero2d-snow-canvas,
.hero2d-trail-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero2d-snow-canvas {
  z-index: 5;
}
.hero2d-trail-canvas { z-index: 9; }

/* Dreamy Moonlit Cloud-Dive Atmospheric Mist Bridge (clean cloud-pass wipe, ZERO muddy ink outlines!) */
.hero2d-cloud-mist-wipe {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse 110% 95% at 50% 52%,
    rgba(196, 218, 248, 0.42) 0%,
    rgba(128, 160, 212, 0.36) 52%,
    rgba(44, 68, 114, 0.28) 100%
  );
  will-change: opacity;
}

/* Z4a + Z4b: TWO PURE FLUFFY CUMULUS CLOUD DECKS (ONLY v5-cloud-1/3/4 — ZERO FOUC AT 0ms!) */
.hero2d-clouds-deck {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform, opacity;
}

.hero2d-clouds-deck--lower {
  z-index: 6;
  opacity: 0;
  visibility: hidden;
}

.hero2d-stage.is-engine-ready .hero2d-clouds-deck--lower {
  visibility: visible;
}

.hero2d-clouds-deck--upper {
  z-index: 8;
}

.hero2d-cloud-veil {
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -150%;
  will-change: transform, opacity;
}

.hero2d-cloud-veil--upper {
  top: 52%;
  background: linear-gradient(
    180deg,
    rgba(24, 40, 74, 0) 0%,
    rgba(42, 62, 104, 0.94) 14%,
    rgba(52, 74, 116, 0.99) 40%,
    rgba(26, 44, 78, 0.94) 76%,
    rgba(16, 30, 58, 0) 100%
  );
}

.hero2d-cloud-veil--lower {
  top: 44%;
  background: linear-gradient(
    180deg,
    rgba(14, 26, 54, 0) 0%,
    rgba(24, 42, 76, 0.94) 16%,
    rgba(32, 52, 90, 0.99) 46%,
    rgba(18, 34, 66, 0.92) 78%,
    rgba(10, 20, 44, 0) 100%
  );
}

.h2d-cloud-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(440px, 56vw, 840px);
  height: auto;
  will-change: transform, opacity;
  filter: drop-shadow(0 16px 32px rgba(6, 14, 34, 0.48));
}

.h2d-cloud-layer--d2 {
  filter: brightness(0.84) saturate(0.92) drop-shadow(0 18px 34px rgba(4, 10, 26, 0.56));
}

/* Pure CSS 0ms DreamWorks Shot Initial Placement for Cloud Deck 1 (ZERO FOUC before JS loads!) */
.h2d-d1-init-1 { transform: translate3d(-14vw, 48vh, 0) scale(1.24); opacity: 0.98; }
.h2d-d1-init-2 { transform: translate3d(44vw, 42vh, 0) scale(1.26); opacity: 0.98; }
.h2d-d1-init-3 { transform: translate3d(18vw, 52vh, 0) scale(1.32); opacity: 0.99; }
.h2d-d1-init-4 { transform: translate3d(38vw, 62vh, 0) scale(1.34) scaleX(-1); opacity: 0.99; }
.h2d-d1-init-5 { transform: translate3d(-4vw, 64vh, 0) scale(1.36); opacity: 0.99; }

/* Subtle top progress bar during flight */
.hero2d-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  z-index: 14;
  background: rgba(255, 242, 212, 0.12);
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero2d-stage.is-landed .hero2d-progress {
  opacity: 0;
}

.hero2d-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffe298 0%, #f5b952 100%);
  box-shadow: 0 0 10px rgba(255, 224, 140, 0.85);
}

/* Flying Hero Golden Snowflake (high-contrast warm amber rim shadow -> readable even over bright ochre walls!) */
.hero2d-snowflake {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(56px, 6.4vw, 90px);
  height: auto;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  filter:
    drop-shadow(0 2px 6px rgba(48, 18, 4, 0.80))
    drop-shadow(0 0 10px rgba(255, 250, 224, 1))
    drop-shadow(0 0 24px rgba(255, 202, 86, 0.94))
    drop-shadow(0 0 46px rgba(255, 166, 48, 0.62));
}

/* Top Bar */
.hero2d-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) clamp(14px, 3vw, 32px) 14px;
  flex-wrap: wrap;
}

.hero2d-chips,
.hero2d-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.h2d-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 15, 32, 0.56);
  border: 1px solid rgba(245, 205, 130, 0.26);
  backdrop-filter: blur(10px);
  font-size: 0.74rem;
  font-weight: 600;
  color: #fce7bc;
}

.h2d-btn-pill {
  appearance: none;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 205, 130, 0.36);
  background: rgba(8, 16, 34, 0.64);
  backdrop-filter: blur(10px);
  color: #fff3d6;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
}

.h2d-btn-pill:hover {
  background: rgba(245, 205, 130, 0.18);
  border-color: rgba(255, 232, 174, 0.72);
  transform: translateY(-1px);
}

.h2d-btn-pill--subtle {
  opacity: 0.86;
}

/* Smooth Atmospheric Twilight Scrim so typography reads effortlessly over lit golden ground-floor windows */
.hero2d-bottom-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54%;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: linear-gradient(
    180deg,
    rgba(6, 8, 18, 0) 0%,
    rgba(6, 8, 18, 0.24) 26%,
    rgba(6, 8, 18, 0.56) 54%,
    rgba(5, 7, 16, 0.8) 78%,
    rgba(3, 6, 14, 0.96) 95%,
    rgba(3, 6, 14, 1) 100%
  );
}

.hero2d-stage.is-landed .hero2d-bottom-scrim {
  opacity: 1;
}

.hero2d-overlay-bar {
  position: relative;
  z-index: 10;
  width: min(820px, calc(100vw - 24px));
  margin-bottom: clamp(84px, 10.5vh, 128px);
  padding: 6px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero2d-bar-text {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Invisible-edge soft radial twilight backing directly behind the headline & subtitle for effortless 7:1 contrast */
.hero2d-bar-text::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(720px, 118%);
  height: 155%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 62% 58% at 50% 50%,
    rgba(8, 7, 16, 0.18) 0%,
    rgba(8, 7, 16, 0.08) 50%,
    rgba(8, 7, 16, 0) 80%
  );
}

.hero2d-stage.is-landed .hero2d-overlay-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Instant 0ms hide on flight start/replay -> ZERO ghost headline over opening moon & clouds! */
.hero2d-stage.is-descending .hero2d-overlay-bar,
.hero2d-stage.is-descending .hero2d-bottom-scrim {
  opacity: 0;
  transition: none !important;
}

.hero2d-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-family: var(--lis-font-sc);
  font-size: clamp(0.86rem, 1.35vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff6df;
  text-shadow:
    0 1px 0 rgba(8, 5, 12, 0.45),
    0 2px 10px rgba(4, 6, 16, 0.4),
    0 0 16px rgba(4, 6, 16, 0.28);
  filter: none;
}

.hero2d-title {
  margin: 0;
  width: 100%;
  font-family: var(--lis-font-display);
  font-size: clamp(2.85rem, 11.4vw, 4.45rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.015em;
  color: #fffaf0;
  -webkit-text-stroke: 0.024em currentColor;
  paint-order: stroke fill;
  text-shadow:
    0 1px 2px rgba(8, 5, 12, 0.24),
    0 3px 14px rgba(4, 6, 16, 0.28);
}

.hero2d-title em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  font-size: 1em;
  letter-spacing: inherit;
  color: var(--lis-gold, #f5cd82);
}

.hero2d-logo-emblem {
  display: none;
}

.hero2d-title--emblem {
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero2d-title--emblem .hero2d-title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero2d-title--emblem .hero2d-logo-emblem {
  display: block;
  width: min(560px, 88vw);
  max-height: min(35vh, 310px);
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter:
    drop-shadow(0 12px 26px rgba(4, 8, 20, 0.82))
    drop-shadow(0 0 22px rgba(245, 190, 96, 0.2));
}

.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="v3"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="v3r"] {
  width: min(600px, 90vw);
  max-height: min(32vh, 290px);
}

.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="v3pro"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="v3pro2"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s1"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s2"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s3"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s3pro"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s3pro2"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s4"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s5"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s4a"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s4b"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s4c"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s4d"],
.hero2d-title--emblem .hero2d-logo-emblem[data-logo-variant="s4e"] {
  width: min(660px, 94vw);
  max-height: min(44vh, 390px);
}

.hero2d-kicker[hidden] {
  display: none !important;
}

.hero2d-ribbon-img {
  display: none;
}

.hero2d-kicker--ribbon {
  margin: 8px 0 0;
  line-height: 0;
}

.hero2d-kicker--ribbon .hero2d-kicker-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero2d-kicker--ribbon .hero2d-ribbon-img {
  display: block;
  width: min(440px, 86vw);
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter:
    drop-shadow(0 10px 22px rgba(4, 8, 20, 0.82))
    drop-shadow(0 0 18px rgba(245, 190, 96, 0.18));
}

.hero2d-kicker--ribbon .hero2d-ribbon-img[data-ribbon-variant="ribbon-short"] {
  width: min(300px, 68vw);
}

.hero2d-logo-switcher {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.82);
  border: 1px solid rgba(245, 205, 130, 0.36);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.hero2d-logo-switcher[hidden] {
  display: none !important;
}

.h2d-ls-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 240, 205, 0.72);
  padding: 0 4px 0 6px;
}

.h2d-ls-btn {
  appearance: none;
  border: 1px solid rgba(245, 205, 130, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #f6ead4;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.h2d-ls-btn:hover {
  background: rgba(245, 205, 130, 0.18);
  border-color: rgba(245, 205, 130, 0.55);
}

.h2d-ls-btn.is-active {
  background: linear-gradient(135deg, #f3cb78 0%, #c8943c 100%);
  color: #16100a;
  border-color: #ffe8b0;
  font-weight: 700;
}

.hero2d-cta-row {
  margin-top: clamp(24px, 3.4vh, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.h2d-cta-star {
  font-size: 1.44em;
  line-height: 0.9;
  display: inline-block;
  transform: translateY(-0.5px);
}

.h2d-cta-buy {
  appearance: none;
  text-decoration: none;
  border: 1px solid rgba(255, 232, 168, 0.76);
  border-radius: 999px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #982034 0%, #6d1221 100%);
  color: #fff6e6;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(114, 20, 36, 0.48), inset 0 1px 0 rgba(255, 244, 214, 0.35);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.h2d-cta-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(140, 24, 42, 0.62);
}

.h2d-cta-test {
  appearance: none;
  text-decoration: none;
  border: 1px solid rgba(255, 238, 186, 0.84);
  border-radius: 999px;
  padding: 13px 26px;
  background: linear-gradient(135deg, #ffe8ad 0%, #f0bc62 52%, #ca8630 100%);
  color: #281304;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(212, 148, 62, 0.38);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.h2d-cta-test:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(245, 205, 130, 0.54);
}

.h2d-cta-how {
  appearance: none;
  text-decoration: none;
  border: 1px solid rgba(255, 232, 178, 0.56);
  border-radius: 999px;
  padding: 13px 24px;
  background: rgba(6, 12, 26, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff4da;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(4, 10, 24, 0.44);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.h2d-cta-how:hover {
  background: rgba(255, 232, 178, 0.16);
  border-color: rgba(255, 238, 192, 0.88);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .hero2d-overlay-bar {
    width: calc(100vw - 16px);
    padding: 6px 4px;
    margin-bottom: max(22px, calc(3.2vh + env(safe-area-inset-bottom, 0px)));
  }
  .hero2d-kicker {
    padding: 0;
    font-size: clamp(0.74rem, 3.05vw, 0.88rem);
    letter-spacing: 0.13em;
    margin: 10px 0 0;
  }
  .hero2d-title {
    font-size: clamp(2.72rem, 11.4vw, 3.35rem);
    line-height: 1.02;
  }
  .hero2d-cta-row {
    width: 100%;
    max-width: 356px;
    margin-top: 20px;
    gap: 10px;
  }
  .h2d-cta-test,
  .h2d-cta-buy,
  .h2d-cta-how {
    padding: 12px 14px;
    font-size: 0.88rem;
    gap: 6px;
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }
}

/* Subtle non-button scroll cue beneath the two Hero CTAs */
@keyframes hero2dScrollBob {
  0%, 100% { transform: translateY(0); opacity: 0.72; }
  50% { transform: translateY(4px); opacity: 1; }
}

.hero2d-scroll-cue {
  margin-top: 14px;
  padding: 4px 10px;
  text-decoration: none;
  border: 0;
  background: transparent;
  color: rgba(255, 240, 206, 0.84);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-shadow: 0 2px 10px rgba(4, 10, 24, 0.82);
  transition: color 0.18s ease, opacity 0.18s ease;
}

.hero2d-scroll-cue:hover {
  color: #fff6dc;
}

.hero2d-scroll-chevron {
  animation: hero2dScrollBob 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero2d-scroll-chevron {
    animation: none;
  }
}

.hero2d-scroll-hint {
  margin-top: 2px;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 232, 186, 0.76);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero2d-scroll-hint:hover {
  color: #fff3d2;
}

/* ==========================================================================
   BLOCK 2: "ЗАЖИГАЕМ ОКНА · КАК БУДЕТ" — A/B PHONE DEMO
   ========================================================================== */
.phone-demo-section {
  position: relative;
  z-index: 4;
  padding: clamp(56px, 7vw, 96px) clamp(16px, 4vw, 40px);
  color: #36171a;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 244, 224, 0.96) 0%, transparent 70%),
    linear-gradient(180deg, #faf2e8 0%, #f3e6d8 100%);
  border-top: 1px solid rgba(255, 244, 222, 0.9);
}

.pd-container {
  max-width: 1160px;
  margin: 0 auto;
}

.pd-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 38px;
}

.pd-kicker {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lis-font-sc);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9e6638;
}

.pd-kicker i {
  width: 26px;
  height: 1px;
  background: rgba(158, 102, 56, 0.45);
}

.pd-title {
  margin: 0 0 10px;
  font-family: var(--lis-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.015em;
  color: #36171a;
  -webkit-text-stroke: 0.028em currentColor;
  paint-order: stroke fill;
}

.pd-title em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  font-size: 1em;
  color: #7c1828;
}

.pd-lead {
  margin: 0 0 22px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #674741;
}

/* Comparative A/B Toggle */
.pd-ab-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.94);
  border: 1px solid rgba(182, 134, 92, 0.42);
  box-shadow: 0 10px 28px rgba(74, 34, 22, 0.08);
  flex-wrap: wrap;
  justify-content: center;
}

.pd-ab-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: transparent;
  color: #5a3833;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: box-shadow 0.2s ease, transform 0.16s ease;
}

.pd-ab-tab span {
  font-size: 0.86rem;
  font-weight: 700;
}

.pd-ab-tab small {
  font-size: 0.7rem;
  opacity: 0.82;
}

.pd-ab-tab.is-active,
.pd-ab-tab.is-active:hover {
  background: linear-gradient(135deg, #831b2c 0%, #5e111e 100%);
  color: #fff6e6;
  box-shadow: 0 8px 20px rgba(114, 24, 38, 0.28);
}

/* 3-Column Sketch Grid */
.pd-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

@media (max-width: 1020px) {
  .pd-stage-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pd-side-col {
    max-width: 480px;
    width: 100%;
  }
}

.pd-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-callout-card,
.pd-scenario-flow {
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255, 251, 246, 0.88);
  border: 1px solid rgba(188, 146, 108, 0.36);
  box-shadow: 0 12px 32px rgba(74, 34, 22, 0.07);
}

.pd-callout-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 24, 40, 0.08);
  color: #7c1828;
  font-family: var(--lis-font-sc);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pd-callout-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: #36171a;
}

.pd-callout-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #5e3f3a;
}

.pd-flow-steps {
  list-style: none;
  margin: 4px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-flow-steps li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px 6px 12px;
  border-radius: 0 10px 10px 0;
  border-left: 2px solid rgba(158, 102, 56, 0.34);
  transition: background 0.28s ease, border-color 0.28s ease;
}

.pd-flow-steps li.is-step-active {
  background: rgba(245, 205, 130, 0.22);
  border-left-color: #8b1e30;
}

.pd-flow-steps strong {
  font-size: 0.88rem;
  color: #36171a;
}

.pd-flow-steps span {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #63443e;
}

.pd-try-full-btn {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(124, 24, 40, 0.32);
  border-radius: 999px;
  padding: 11px 16px;
  background: #fff8ef;
  color: #7c1828;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.16s ease;
}

.pd-try-full-btn:hover {
  background: #7c1828;
  color: #fff6e6;
  transform: translateY(-1px);
}

/* Smartphone Mockup */
.pd-phone-column {
  display: flex;
  justify-content: center;
}

.pd-phone-frame {
  position: relative;
  width: min(326px, calc(100vw - 32px));
  height: 604px;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(155deg, #27222b 0%, #121017 100%);
  box-shadow:
    0 28px 66px rgba(42, 18, 16, 0.28),
    0 0 0 2px rgba(212, 168, 104, 0.42),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.pd-phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 16px;
  border-radius: 999px;
  background: #0a090e;
  z-index: 20;
  display: grid;
  place-items: center;
}

.pd-phone-notch span {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.pd-phone-home {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 244, 224, 0.35);
  z-index: 20;
  pointer-events: none;
}

.pd-screen {
  position: relative;
  flex: 1;
  width: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: #091326;
  color: #fdf6e9;
  display: flex;
  flex-direction: column;
}

/* Variant A: Auto-Demo Inside Phone */
.pd-auto-bar,
.pd-int-topbar {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 28px 14px 8px;
  background: linear-gradient(180deg, rgba(6, 12, 26, 0.88) 0%, rgba(6, 12, 26, 0) 100%);
  font-size: 0.72rem;
  font-weight: 600;
  color: #f9e2b4;
}

.pd-auto-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd978;
  box-shadow: 0 0 8px #ffd978;
}

.pd-auto-toggle,
.pd-expand-btn {
  appearance: none;
  border: 1px solid rgba(245, 205, 130, 0.34);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(12, 20, 38, 0.72);
  color: #fff2d6;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.pd-auto-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
  display: flex;
  flex-direction: column;
}

.pd-auto-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease, visibility 0s linear 0s;
}

/* Real Storybook Window Scene (Step 1 Dark Unlit -> Step 4 Warmly Lit with Living Story Inside!) */
.pd-window-scene {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 58px 20px 58px;
  background-color: #131c31;
  background-image:
    radial-gradient(circle at 50% 44%, rgba(16, 26, 48, 0.52) 0%, rgba(8, 14, 28, 0.92) 86%),
    url("../assets/v5-storybook/v5-wall-lemon.webp");
  background-size: cover, 220px 220px;
  overflow: hidden;
}

.pd-window-scene--dark {
  background-image:
    radial-gradient(circle at 50% 44%, rgba(16, 26, 52, 0.68) 0%, rgba(7, 13, 28, 0.92) 86%),
    url("../assets/v5-storybook/v5-wall-lemon.webp");
}

.pd-window-scene--lit {
  background-image:
    radial-gradient(circle at 50% 42%, rgba(255, 204, 108, 0.24) 0%, rgba(30, 20, 18, 0.68) 64%, rgba(10, 14, 26, 0.92) 100%),
    url("../assets/v5-storybook/v5-wall-lemon.webp");
}

.pd-real-win-halo {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 310px;
  height: 360px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 214, 118, 0.52) 0%,
    rgba(255, 174, 68, 0.22) 48%,
    rgba(255, 160, 48, 0) 76%
  );
  pointer-events: none;
  opacity: 0;
}

.pd-auto-slide.is-active .pd-real-win-halo {
  animation: pdHaloIgnite 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pdHaloIgnite {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.76); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

.pd-real-win {
  position: relative;
  width: 224px;
  aspect-ratio: 310 / 428;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  z-index: 2;
}

.pd-real-win--dark {
  cursor: pointer;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.62));
  transition: transform 0.2s ease;
}

.pd-auto-slide.is-active .pd-real-win--dark {
  animation: pdDarkWinTap 3.4s ease-in-out infinite;
}

@keyframes pdDarkWinTap {
  0%, 34%, 56%, 100% { transform: scale(1); }
  44% { transform: scale(0.96); }
}

.pd-real-win--lit {
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(255, 202, 102, 0.46));
}

.pd-real-win--frameless {
  width: 218px;
}

.pd-real-win--frameless .pd-real-win-glass--lit {
  left: 4%;
  right: 4%;
  top: 4%;
  bottom: 6%;
  border-radius: 50% 50% 18px 18px / 32% 32% 18px 18px;
  border: 1.5px solid rgba(255, 226, 158, 0.68);
  box-shadow:
    0 0 30px rgba(255, 206, 112, 0.48),
    inset 0 0 24px rgba(255, 224, 148, 0.28);
}

.pd-real-win--frameless .pd-real-win-medal--lit {
  bottom: 2%;
}

.pd-real-win-glass {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 12%;
  bottom: 11%;
  border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px;
  overflow: hidden;
  z-index: 1;
}

.pd-real-win-glass--dark {
  background: linear-gradient(180deg, #0c172e 0%, #070e1f 62%, #050a16 100%);
  box-shadow: inset 0 6px 20px rgba(0, 0, 0, 0.85);
}

.pd-real-win-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    132deg,
    rgba(160, 194, 245, 0.14) 0%,
    rgba(160, 194, 245, 0.04) 36%,
    transparent 52%,
    rgba(120, 160, 224, 0.06) 100%
  );
}

.pd-real-win-glass--lit {
  background: #2b180b;
}

.pd-auto-slide.is-active .pd-real-win-glass--lit {
  animation: pdGlassIgnite 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pdGlassIgnite {
  0% { filter: brightness(0.18) saturate(0.35); }
  55% { filter: brightness(1.16) saturate(1.12); }
  100% { filter: brightness(1.04) saturate(1.08); }
}

.pd-real-win-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
}

.pd-real-win-hero {
  position: absolute;
  left: 50%;
  bottom: -2%;
  transform: translateX(-50%);
  height: 66%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(24, 10, 4, 0.55));
}

.pd-real-win-warmth {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 224, 146, 0.24) 0%,
    rgba(255, 174, 72, 0.08) 62%,
    rgba(40, 16, 4, 0.24) 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.pd-real-win-frame {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.pd-real-win-medal {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  z-index: 5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #273452 0%, #141d34 100%);
  border: 2px solid rgba(214, 186, 138, 0.65);
  color: #f4dfba;
  font-family: var(--lis-font-sc);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.52);
}

.pd-real-win-medal--lit {
  background: linear-gradient(145deg, #9d2236 0%, #6b1120 100%);
  border-color: #ffe39c;
  color: #fff6dc;
  box-shadow: 0 0 18px rgba(255, 206, 102, 0.85), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.pd-lit-caption-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pd-window-frame-4 {
  position: relative;
  width: 214px;
  height: 296px;
  border-radius: 108px 108px 12px 12px;
  border: 7px solid #4c2d1c;
  box-shadow:
    0 0 0 3px #c69a5c,
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(255, 200, 102, 0.25);
  overflow: hidden;
  padding: 0;
  background: #1a2844;
}

.pd-window-frame-4--btn {
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.25s ease;
}

.pd-window-frame-4--btn:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 0 3px #ffe09e,
    0 18px 42px rgba(0, 0, 0, 0.6),
    0 0 44px rgba(255, 206, 106, 0.52);
}

.pd-window-inner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-window-frost-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(215, 232, 255, 0.56) 0%, rgba(120, 152, 198, 0.72) 100%);
  backdrop-filter: blur(5px);
  transition: opacity 0.9s ease;
}

.pd-auto-slide.is-active .pd-window-frost-veil {
  animation: frostMeltPulse 3s ease-in-out infinite;
}

@keyframes frostMeltPulse {
  0%, 18% { opacity: 0.92; }
  55%, 88% { opacity: 0.14; }
  100% { opacity: 0.92; }
}

.pd-window-mullion-v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  background: #4c2d1c;
  z-index: 3;
}

.pd-window-mullion-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 6px;
  transform: translateY(-50%);
  background: #4c2d1c;
  z-index: 3;
}

.pd-window-day-badge {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 5;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(18, 12, 16, 0.78);
  border: 1px solid rgba(255, 224, 152, 0.58);
  color: #ffefc6;
  font-family: var(--lis-font-sc);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.pd-window-caption {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(252, 240, 222, 0.84);
}

/* Animated Ghost Tap Cursor */
.pd-ghost-cursor {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ffe49c;
  background: rgba(255, 228, 156, 0.34);
  box-shadow: 0 0 18px rgba(255, 212, 114, 0.9);
  z-index: 10;
  pointer-events: none;
  animation: ghostTap 2.2s ease-in-out infinite;
}

.pd-ghost-cursor--win { left: 50%; top: 44%; transform: translate(-50%, -50%); }
.pd-ghost-cursor--card { left: 52%; top: 52%; transform: translate(-50%, -50%); }

@keyframes ghostTap {
  0%, 100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.25; }
  40% { transform: translate(-50%, -50%) scale(0.75); opacity: 1; }
  65% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

/* Mini VN inside phone */
.pd-mini-vn,
.pd-int-vn-stage {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.pd-mini-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-mini-horse,
.pd-int-horse {
  position: absolute;
  left: 50%;
  bottom: 132px;
  transform: translateX(-50%);
  height: 345px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

.pd-mini-chatbox {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 48px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(28, 12, 16, 0.9);
  border: 1px solid rgba(245, 205, 130, 0.36);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-mini-chatbox--interactive {
  bottom: 24px;
}

.pd-mini-speaker {
  font-family: var(--lis-font-sc);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f5cd82;
}

.pd-mini-typed {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.42;
  color: #fdf6e9;
  min-height: 44px;
}

.pd-mini-pill {
  align-self: flex-end;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe49c 0%, #dfa348 100%);
  color: #291405;
  font-size: 0.7rem;
  font-weight: 700;
}

.pd-int-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.pd-int-back {
  appearance: none;
  border: 1px solid rgba(245, 205, 130, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffefc6;
  font-size: 0.74rem;
  cursor: pointer;
}

.pd-int-next {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  background: linear-gradient(135deg, #ffe49c 0%, #dfa348 100%);
  color: #281304;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

/* Mini Postcard Auto Sweep */
.pd-mini-postcard {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 56px 18px 56px;
  background: radial-gradient(circle at 50% 45%, #38141c 0%, #14080c 80%);
}

.pd-mini-card-inside {
  width: 244px;
  min-height: 356px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fbf5ea;
  color: #36171a;
  border: 2px solid #d4a662;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-align: center;
}

.pd-mini-card-kicker {
  font-family: var(--lis-font-sc);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9e6638;
}

.pd-mini-card-inside strong {
  font-size: 0.88rem;
  line-height: 1.38;
  color: #6b1523;
}

.pd-mini-card-note {
  padding: 10px;
  border-radius: 10px;
  background: #fffdf9;
  border: 1px solid rgba(176, 130, 86, 0.36);
  font-size: 0.74rem;
  line-height: 1.4;
  color: #4f312c;
}

.pd-mini-card-btn {
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #871c2d 0%, #63111f 100%);
  color: #fff6e6;
  font-size: 0.76rem;
  font-weight: 700;
}

.pd-mini-card-cover {
  position: absolute;
  width: 244px;
  height: 356px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
}

.pd-mini-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-auto-slide.is-active .pd-mini-card-cover {
  animation: autoCardBurnWipe 3.4s ease-in-out infinite;
}

@keyframes autoCardBurnWipe {
  0%, 16% { clip-path: inset(0 0 0 0); opacity: 1; }
  62%, 88% { clip-path: inset(0 0 100% 0); opacity: 0.12; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

.pd-mini-fire-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(255, 162, 54, 0.9), rgba(255, 236, 166, 0.95));
  filter: blur(4px);
}

/* Mini Window Lit Celebration */
.pd-mini-lit {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 46px 20px 56px;
  text-align: center;
  background: radial-gradient(circle at 50% 38%, #59261b 0%, #1d0c10 74%);
}

.pd-mini-lit-halo {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 148, 0.42) 0%, transparent 72%);
  pointer-events: none;
}

.pd-mini-lit-horse {
  position: relative;
  z-index: 2;
  height: 196px;
  width: auto;
  object-fit: contain;
}

.pd-mini-lit-badge {
  position: relative;
  z-index: 2;
  font-family: var(--lis-font-sc);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffd982;
}

.pd-mini-lit strong {
  position: relative;
  z-index: 2;
  font-family: var(--lis-font-display);
  font-size: 1.35rem;
  color: #fff8ec;
}

.pd-mini-lit p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(252, 240, 220, 0.84);
}

.pd-phone-buy-btn {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  padding: 10px 18px;
  font-size: 0.8rem;
}

.pd-phone-replay-link {
  position: relative;
  z-index: 2;
  appearance: none;
  border: 0;
  background: transparent;
  color: #f5cd82;
  font-family: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Bottom Auto Step Dots */
.pd-auto-dots {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 24px;
  z-index: 14;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.pd-dot {
  appearance: none;
  border: 1px solid rgba(245, 205, 130, 0.25);
  border-radius: 999px;
  padding: 4px 2px;
  background: rgba(10, 16, 30, 0.7);
  color: rgba(255, 238, 204, 0.72);
  font-family: inherit;
  font-size: 0.64rem;
  font-weight: 600;
  cursor: pointer;
}

.pd-dot.is-active {
  background: linear-gradient(135deg, #ffe298 0%, #df9d3e 100%);
  color: #291304;
  border-color: #ffe8ad;
}

/* Interactive Phone View Container */
.pd-int-view {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pd-int-top-btns {
  display: inline-flex;
  gap: 5px;
}

.pd-int-card-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 10px 12px 26px;
  background: radial-gradient(circle at 50% 45%, #38141c 0%, #14080c 80%);
}

.pd-phone-ember {
  --card-w: 246px;
  --card-h: 368px;
}

.pd-phone-paper {
  padding: 16px 14px !important;
  gap: 8px !important;
  justify-content: space-between;
}

.pd-phone-q {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.38;
  font-weight: 600;
  color: #6b1523;
  text-align: center;
}

.pd-phone-textarea {
  font-size: 0.76rem !important;
  min-height: 62px !important;
}

.pd-phone-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pd-phone-submit {
  padding: 9px 14px !important;
  font-size: 0.76rem !important;
}

/* ==========================================================================
   BLOCK 3 & 4: 6 SKETCH BENEFITS + ACCESS GUARANTEE BANNER
   ========================================================================== */
.lf-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

@media (max-width: 920px) {
  .lf-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .lf-benefits-grid {
    grid-template-columns: 1fr;
  }
}

.lf-benefit-card {
  padding: 20px 20px 22px;
  border-radius: 18px;
  background: rgba(255, 246, 232, 0.06);
  border: 1px solid rgba(245, 205, 130, 0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lf-benefit-card--bonus {
  background: linear-gradient(145deg, rgba(245, 205, 130, 0.15) 0%, rgba(124, 24, 40, 0.24) 100%);
  border-color: rgba(255, 224, 152, 0.48);
}

.lf-benefit-num {
  font-family: var(--lis-font-sc);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f5cd82;
}

.lf-benefit-card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff6e8;
}

.lf-benefit-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(252, 240, 224, 0.82);
}

.lf-showcase-spacer {
  margin-top: 12px;
}

.lf-access-banner {
  margin-top: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 236, 186, 0.14) 0%, rgba(255, 246, 232, 0.06) 100%);
  border: 1px solid rgba(255, 224, 152, 0.46);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lf-access-icon {
  color: #ffd982;
  font-size: 1.15rem;
  line-height: 1.2;
}

.lf-access-banner strong {
  display: block;
  font-size: 1.02rem;
  color: #ffefc6;
  margin-bottom: 4px;
}

.lf-access-banner p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(252, 240, 224, 0.86);
}

.lf-mid-cta {
  margin-top: 8px;
}

/* ==========================================================================
   BLOCK 5 ADD-ON: "КАК ПОЛУЧИТЬ?" + BLOCK 6 AUTHORS
   ========================================================================== */
.lf-how-to-get {
  max-width: 780px;
  margin: 24px auto 0;
  border-radius: 18px;
  background: rgba(255, 251, 246, 0.94);
  border: 1px solid rgba(154, 42, 58, 0.34);
  box-shadow: 0 12px 30px rgba(84, 32, 24, 0.08);
  overflow: hidden;
}

.lf-how-to-get summary {
  list-style: none;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lf-how-to-get summary::-webkit-details-marker {
  display: none;
}

.lf-how-pill {
  padding: 5px 14px;
  border-radius: 999px;
  background: #7c1828;
  color: #fff6e6;
  font-size: 0.82rem;
  font-weight: 700;
}

.lf-how-hint {
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b2930;
}

.lf-how-steps {
  padding: 0 20px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid rgba(182, 134, 92, 0.24);
  padding-top: 16px;
}

@media (max-width: 720px) {
  .lf-how-steps {
    grid-template-columns: 1fr;
  }
}

.lf-how-steps strong {
  display: block;
  font-size: 0.86rem;
  color: #36171a;
  margin-bottom: 4px;
}

.lf-how-steps p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.48;
  color: #5e403a;
}

/* Authors Block (2 Circles) */
.lf-authors-section {
  padding-top: 16px;
}

.lf-authors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 640px) {
  .lf-authors-grid {
    grid-template-columns: 1fr;
  }
}

.lf-author-card {
  padding: 24px 22px;
  border-radius: 22px;
  background: rgba(255, 251, 246, 0.9);
  border: 1px solid rgba(188, 146, 108, 0.34);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lf-author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #d4a662;
  box-shadow: 0 10px 24px rgba(74, 34, 22, 0.16);
  margin-bottom: 6px;
}

.lf-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lf-author-avatar--placeholder {
  background: linear-gradient(135deg, #6e1523 0%, #3d0a13 100%);
  color: #f5cd82;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.lf-author-card h3 {
  margin: 0;
  font-family: var(--lis-font-display);
  font-size: 1.45rem;
  color: #36171a;
}

.lf-author-role {
  font-family: var(--lis-font-sc);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9e6638;
}

.lf-author-card p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  line-height: 1.52;
  color: #5a3c37;
}

/* ==========================================================================
   3D-SWINGING WOODEN DOOR PORTAL + FULLSCREEN INSIDE STORY MODAL
   ========================================================================== */
.door-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #060b16;
  overflow: hidden;
}

.door-swing-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, #241916 0%, #070b16 74%);
  transition: opacity 0.55s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.door-modal[data-stage="story"] .door-swing-stage {
  opacity: 0;
  transform: scale(1.32);
  pointer-events: none;
}

.door-portal-box {
  position: relative;
  height: min(86vh, 760px);
  aspect-ratio: 432 / 777;
}

.door-inside-glow {
  position: absolute;
  left: 20.833%;
  top: 32.561%;
  width: 58.797%;
  height: 57.529%;
  overflow: hidden;
  border-radius: 4px;
  background: #2f1a0e;
}

.door-inside-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.12);
}

.door-inside-radiance {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 224, 152, 0.52) 0%, transparent 72%);
  opacity: 0.4;
  transition: opacity 0.8s ease;
}

.door-modal[data-stage="opening"] .door-inside-radiance {
  opacity: 1;
}

.door-leaves-3d {
  position: absolute;
  left: 20.833%;
  top: 32.561%;
  width: 58.797%;
  height: 57.529%;
  perspective: 1200px;
  z-index: 3;
}

.door-leaf {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  object-fit: fill;
  backface-visibility: hidden;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.door-leaf--left {
  left: 0;
  transform-origin: left center;
}

.door-leaf--right {
  right: 0;
  transform-origin: right center;
}

.door-modal[data-stage="opening"] .door-leaf--left,
.door-modal[data-stage="story"] .door-leaf--left {
  transform: rotateY(-112deg);
}

.door-modal[data-stage="opening"] .door-leaf--right,
.door-modal[data-stage="story"] .door-leaf--right {
  transform: rotateY(112deg);
}

.door-arch-overlay {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Fullscreen 3-Phase Inside Story inside Modal */
.full-story-shell {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.fs-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fs-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease, filter 0.5s ease;
}

.fs-bg-img.is-active {
  opacity: 1;
}

.full-story-shell[data-phase="postcard"] .fs-bg-img.is-active,
.full-story-shell[data-phase="celebrate"] .fs-bg-img.is-active {
  filter: blur(8px) brightness(0.45);
}

.fs-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, transparent 40%, rgba(12, 6, 8, 0.72) 100%);
}

.fs-topbar {
  position: relative;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px clamp(14px, 3vw, 28px);
}

.fs-phase-steps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(12, 8, 12, 0.72);
  border: 1px solid rgba(245, 205, 130, 0.28);
}

.fs-phase-steps i {
  width: 10px;
  height: 1px;
  background: rgba(245, 205, 130, 0.35);
}

.fs-step {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--lis-font-sc);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 238, 212, 0.5);
  cursor: pointer;
}

.fs-step.is-active {
  color: #ffefc6;
}

.fs-step.is-done {
  color: rgba(245, 205, 130, 0.82);
}

.fs-top-actions {
  display: inline-flex;
  gap: 8px;
}

.fs-phase {
  position: relative;
  z-index: 6;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 16px 24px;
}

.fs-phase--postcard,
.fs-phase--celebrate {
  justify-content: center;
  gap: 14px;
}

.fs-actor-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.fs-actor-sprite {
  height: min(74vh, 660px);
  width: auto;
  margin-bottom: 118px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
}

.fs-dialogue-card {
  position: relative;
  z-index: 10;
  width: min(640px, 100%);
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(28, 12, 16, 0.9);
  border: 1px solid rgba(245, 205, 130, 0.38);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fs-speaker-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--lis-font-sc);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f5cd82;
}

.fs-line {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #fff8ec;
}

.fs-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.fs-postcard-title {
  margin: 0;
  font-family: var(--lis-font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 400;
  color: #fff6e6;
  text-align: center;
}

/* Shared Ember Postcard Core Styles (for both Phone Interactive & Fullscreen Modal) */
.ember-gatefold-stage {
  --card-w: min(336px, calc(100vw - 36px));
  --card-h: min(504px, calc(100dvh - 180px));
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
}

.gatefold-envelope {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1400px;
}

.gatefold-center-panel {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fbf5ea;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.52);
}

.gatefold-paper-emboss {
  position: absolute;
  inset: 0;
  background: url("../assets/compare/card-ivory.webp") center center / cover no-repeat;
  opacity: 0.28;
}

.gatefold-paper-clean-center {
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  background: rgba(252, 247, 238, 0.9);
}

.gatefold-paper-border {
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(196, 150, 74, 0.42);
  pointer-events: none;
}

.gatefold-center-paper {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  color: #36171a;
}

.card-inside-kicker {
  display: block;
  text-align: center;
  font-family: var(--lis-font-sc);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9e6638;
}

.card-section-label {
  display: block;
  font-family: var(--lis-font-sc);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f5630;
  margin-bottom: 4px;
}

.gatefold-question-hero {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(124, 24, 40, 0.06);
  border: 1px solid rgba(168, 116, 76, 0.34);
  text-align: center;
}

.gatefold-question-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: #6b1523;
}

.card-response-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-fill-sample {
  appearance: none;
  border: 0;
  background: transparent;
  color: #7c1828;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.card-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(168, 116, 76, 0.42);
  background: #fffdf9;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.82rem;
  color: #36171a;
  resize: none;
}

.gatefold-practice-clean {
  padding-left: 10px;
  border-left: 2px solid rgba(196, 150, 74, 0.72);
}

.gatefold-practice-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.44;
  color: #4f2f2b;
}

.gatefold-actions-row {
  display: flex;
  justify-content: center;
}

.ds-btn-burgundy {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #8b1c2e 0%, #5f101d 100%);
  color: #fff6e6;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(102, 16, 30, 0.36);
}

.gatefold-shutter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 4;
}

.gatefold-shutter-left { left: 0; transform-origin: left center; }
.gatefold-shutter-right { right: 0; transform-origin: right center; }

.ember-gatefold-stage[data-ember-stage="opened"] .gatefold-shutter-left {
  transform: rotateY(-150deg);
  opacity: 0;
  pointer-events: none;
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease 0.82s;
}
.ember-gatefold-stage[data-ember-stage="opened"] .gatefold-shutter-right {
  transform: rotateY(150deg);
  opacity: 0;
  pointer-events: none;
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, opacity 0.45s ease 0.92s;
}

.shutter-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
}

.shutter-front--restrained {
  background: linear-gradient(155deg, #6e1524 0%, #440a14 100%);
}

.shutter-back {
  transform: rotateY(180deg);
  background: #f5ebdc;
  border: 1px solid rgba(196, 150, 74, 0.35);
}

.ember-sleeve-stage {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
}

.ember-gatefold-stage[data-ember-stage="burning"] .ember-sleeve-stage,
.ember-gatefold-stage[data-ember-stage="pause"] .ember-sleeve-stage,
.ember-gatefold-stage[data-ember-stage="opened"] .ember-sleeve-stage {
  pointer-events: none;
}

.ember-gatefold-stage[data-ember-stage="pause"] .ember-sleeve-stage,
.ember-gatefold-stage[data-ember-stage="opened"] .ember-sleeve-stage {
  opacity: 0;
}

.ember-sleeve-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ember-sleeve-prompt {
  position: relative;
  z-index: 2;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #871c2d 0%, #5c101d 100%);
  border: 1px solid rgba(255, 226, 162, 0.72);
  color: #fff6e6;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.ember-burn-canvas {
  position: absolute;
  inset: -76px;
  width: calc(100% + 152px);
  height: calc(100% + 152px);
  z-index: 8;
  pointer-events: none;
}

/* Fullscreen Modal Celebrate Card */
.fs-celebrate-card {
  width: min(400px, calc(100vw - 28px));
  padding: 24px 22px;
  border-radius: 24px;
  background: #fbf5ea;
  color: #36171a;
  border: 2px solid #d4a662;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fs-celebrate-horse {
  height: 170px;
  width: auto;
  object-fit: contain;
}

.fs-celebrate-badge {
  font-family: var(--lis-font-sc);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9e6638;
}

.fs-celebrate-card h3 {
  margin: 0;
  font-family: var(--lis-font-display);
  font-size: 1.85rem;
  font-weight: 700;
  -webkit-text-stroke: 0.028em currentColor;
  paint-order: stroke fill;
}

.fs-celebrate-card h3 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  font-size: 1em;
  color: #7c1828;
}

.fs-celebrate-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #54332f;
}

@media (prefers-reduced-motion: reduce) {
  .h2d-cloud,
  .hero2d-moon,
  .pd-ghost-cursor {
    animation: none !important;
  }
}

/* Block 3 trial demo CTA button (/dom?demo=1) */
.lf-page .ip-actions {
  margin-top: 24px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.lf-page .ip-cta-btn {
  text-decoration: none;
}

@media (max-width: 860px) {
  .lf-page .ip-actions {
    margin-top: 16px;
    padding-left: 0;
    align-items: center;
    text-align: center;
  }
  .lf-page .ip-cta-btn {
    width: min(336px, 100%);
    justify-content: center;
  }
}

/* Hero CTAs on phones: crisp side-by-side pair ("Попробовать" + "Купить · 790 ₽") + subtle scroll cue below */
@media (max-width: 560px) {
  .hero2d-cta-row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 356px;
    margin-top: 18px;
    gap: 10px;
  }
  .h2d-cta-test,
  .h2d-cta-buy {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
    padding: 13px 12px;
    font-size: 0.88rem;
    gap: 6px;
  }
  .hero2d-scroll-cue {
    margin-top: 12px;
    font-size: 0.74rem;
  }
}

/* In-app browser (Instagram/Threads/Telegram) SBP warning + VPN hint */
.lf-page .lf-inapp-pay-notice {
  margin: 0 auto 14px;
  max-width: 560px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff4df;
  border: 1.5px solid #d49c48;
  color: #3a1a16;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.4;
}

.lf-page .lf-inapp-pay-notice[hidden] {
  display: none !important;
}

.lf-page .lf-inapp-pay-copy {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lf-page .lf-inapp-pay-copy strong {
  color: #7c1828;
  font-weight: 800;
}

.lf-page .lf-inapp-copy-btn {
  appearance: none;
  border: 1px solid #7c1828;
  border-radius: 999px;
  padding: 8px 14px;
  background: #7c1828;
  color: #fff8ee;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.lf-page .lf-vpn-sbp-hint {
  margin: 8px 0 0;
  font-size: 0.76rem;
  line-height: 1.38;
  color: #6e4e44;
  text-align: center;
}

/* Positioning only — visual styling comes 100% from DS .lis-btn--night-glass.lis-btn--sm */
.hero2d-login-pos {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 14px));
  right: max(14px, env(safe-area-inset-right, 14px));
  z-index: 24;
  font-size: 0.76rem;
}
