/* ═══════════════════════════════════════════════════════════════
   IMPULSE 299 — Шлях до себе
   Mobile-first: 375 → 768 → 1280
   ═══════════════════════════════════════════════════════════════ */

/* ── Palette (critical vars are inlined in HTML for render speed) ── */
:root {
  --bg: #1A1A1A;
  --bg-alt: #111111;
  --white: #FFFFFF;
  --cream: #F5EFE6;
  --burgundy: #5B1A2E;
  --cta: #8B2242;
  --cta-hover: #A52E54;
  --cta-active: #6E1A35;
  --gold: #C9A961;
  --muted: rgba(245, 239, 230, 0.6);
  --muted-dim: rgba(245, 239, 230, 0.4);
  --card-bg: #222222;
  --card-border: rgba(245, 239, 230, 0.08);
  --strip-bg: rgba(91, 26, 46, 0.18);
  --strip-border: rgba(139, 34, 66, 0.35);
}

/* ── Base reset (minimal — critical reset inlined in <head>) ── */
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ── Typography base ── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  line-height: 1.15;
}


/* ════════════════════════════════════════════════════════════════
   TOP STRIP
   ════════════════════════════════════════════════════════════════ */
.top-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
}

.badge-drop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--cta);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 10px 4px;
  border-radius: 20px;
  text-transform: uppercase;
  pointer-events: auto;
  user-select: none;
}

.live-counter {
  font-size: 12px;
  color: var(--cream);
  opacity: 0.88;
  white-space: nowrap;
}
.live-counter strong {
  color: var(--gold);
  font-weight: 600;
}

@keyframes counterPulse {
  0%   { transform: scale(1.5); }
  60%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.counter-pulse {
  display: inline-block;
  animation: counterPulse 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}


/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
/* Background is in critical CSS inlined in <head> */

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 72px 20px 100px; /* top: clears top-strip; bottom: clears sticky CTA */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

/* ── H1 ── */
.hero__h1 {
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  max-width: 340px;
}
.price-display {
  color: var(--gold);
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

/* Price change animation */
@keyframes priceFlash {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  25%  { opacity: 0; transform: translateY(-6px) scale(0.85); }
  55%  { opacity: 1; transform: translateY(2px) scale(1.12); color: var(--white); }
  100% { opacity: 1; transform: translateY(0) scale(1); color: var(--gold); }
}
.price-changing .price-display {
  animation: priceFlash 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Sub text ── */
.hero__sub {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 280px;
}

/* ── Countdown ── */
.countdown-block {
  margin: 4px 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.countdown-digits {
  display: block;
  font-family: 'Space Grotesk', 'Inter', monospace;
  font-size: clamp(56px, 17vw, 80px);
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  /* prevent layout shift as digits change */
  min-width: 8ch;
  text-align: center;
}
.countdown-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

/* ── Primary CTA Button ── */
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  padding: 18px 24px;
  background: var(--cta);
  color: var(--white);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 5px;
  transition: background 0.18s ease;
  will-change: transform;
}
.btn-cta:hover   { background: var(--cta-hover); }
.btn-cta:active  { transform: scale(0.97); background: var(--cta-active); }
.btn-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.cta-price { font-variant-numeric: tabular-nums; }

/* ── Trust note ── */
.hero__trust {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-dim);
  text-align: center;
}


/* ════════════════════════════════════════════════════════════════
   SCREEN 2 — WHY SO CHEAP
   ════════════════════════════════════════════════════════════════ */
.why-section {
  padding: 52px 20px;
  background: var(--bg-alt);
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 32px;
}

/* Why list */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 420px;
  margin: 0 auto 32px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--strip-bg);
  border: 1px solid var(--strip-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-top: 2px;
}

.why-item__main {
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 3px;
  line-height: 1.4;
}
.why-item__sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Opus quote */
.opus-quote {
  max-width: 360px;
  margin: 0 auto;
  padding: 16px 16px 16px 20px;
  border-left: 2px solid var(--burgundy);
  font-size: 14px;
  font-style: italic;
  line-height: 1.75;
  color: var(--muted);
}


/* ════════════════════════════════════════════════════════════════
   SCREEN 3 — WHAT YOU GET
   ════════════════════════════════════════════════════════════════ */
.content-section {
  padding: 52px 20px 128px; /* bottom: sticky CTA height */
  background: var(--bg);
}
.content-section .section-eyebrow { margin-bottom: 24px; }

/* Day cards grid */
.days-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 32px;
}

.day-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: border-color 0.2s;
}
.day-card:hover { border-color: rgba(201, 169, 97, 0.25); }

.day-card__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1a1a;
}
.day-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.day-card:hover .day-card__img img { transform: scale(1.04); }

.day-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.day-num {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.day-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.day-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cream);
}

.day-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* Telegram promo */
.tg-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--strip-bg);
  border: 1px solid var(--strip-border);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 0 auto 24px;
  max-width: 440px;
}
.tg-promo__icon {
  flex-shrink: 0;
  color: var(--gold);
}
.tg-promo__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 3px;
}
.tg-promo__sub {
  font-size: 12px;
  color: var(--muted);
}

/* Final CTA */
.btn-cta--final {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
}
.final-trust {
  text-align: center;
  font-size: 12px;
  color: var(--muted-dim);
  margin-top: 12px;
}


/* ════════════════════════════════════════════════════════════════
   STICKY BOTTOM CTA
   ════════════════════════════════════════════════════════════════ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(15, 7, 11, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--strip-border);
  padding: 12px 16px;
  /* Safe area for notch devices */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.sticky-cta__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sticky-price {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#sticky-price-val { font-variant-numeric: tabular-nums; }

.sticky-timer {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sticky-cta__btn {
  flex-shrink: 0;
  padding: 14px 22px;
  background: var(--cta);
  color: var(--white);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.18s ease;
  white-space: nowrap;
}
.sticky-cta__btn:hover  { background: var(--cta-hover); }
.sticky-cta__btn:active { background: var(--cta-active); }
.sticky-cta__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — ≥768px: PHONE-IN-FRAME
   Purpose-built impulse landing stays mobile-sized (~460px) and
   floats on an ambient backdrop — not a broken wide layout.
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* ── Ambient backdrop (full viewport) ── */
  .impulse-page {
    background-image: url('/assets/images/photoset-2026-05/1920/marina-lotus-meditation-burgundy-3543.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
  .impulse-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
      155deg,
      rgba(5, 2, 3, 0.83) 0%,
      rgba(18, 5, 10, 0.80) 50%,
      rgba(4, 2, 5, 0.85) 100%
    );
    z-index: 0;
    pointer-events: none;
  }

  /* ── All content above ambient overlay ── */
  .top-strip,
  main,
  .sticky-cta {
    position: relative;
    z-index: 1;
  }

  /* ── Phone column: constrain + center ── */
  main {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg);
    box-shadow:
      0 0 0 1px rgba(91, 26, 46, 0.18),
      0  4px 24px rgba(0, 0, 0, 0.32),
      0 24px 80px rgba(0, 0, 0, 0.55);
  }

  /* ── Top strip: align over phone frame ── */
  .top-strip {
    left: 50%;
    right: auto;
    width: 460px;
    transform: translateX(-50%);
  }

  /* ── Sticky CTA: full-width bar, inner constrained ── */
  .sticky-cta__inner { max-width: 460px; }

  /* ── Preserve mobile layout inside the phone ── */
  .hero__inner {
    padding: 72px 20px 100px;
    max-width: 100%;
    margin: 0;
    text-align: center;
    align-items: center;
  }
  .hero__h1        { font-size: clamp(26px, 6.5vw, 32px); max-width: 320px; }
  .countdown-digits { font-size: clamp(52px, 14vw, 68px); }
  .countdown-block  { align-items: center; }
  .btn-cta          { font-size: 15px; max-width: 320px; }
  .hero__trust      { text-align: center; }

  /* Why: keep stacked */
  .why-list         { flex-direction: column; max-width: 100%; }
  .why-item         { flex-direction: row; }

  /* Day cards: 2-column (phone feel preserved) */
  .days-grid        { grid-template-columns: repeat(2, 1fr); max-width: 100%; gap: 10px; }
  .tg-promo         { max-width: 100%; }
  .btn-cta--final   { max-width: 100%; }
  .sticky-price     { font-size: 20px; }
}


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — 1280px: wider screen, deeper ambient shadow
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {

  main {
    box-shadow:
      0 0 0 1px rgba(91, 26, 46, 0.22),
      0  8px 40px rgba(0, 0, 0, 0.35),
      0 40px 120px rgba(0, 0, 0, 0.65);
  }

  .sticky-cta__inner { max-width: 460px; }
}

/* ════════════════════════════════════════════════════════════════
   ACCESSIBILITY — reduced motion
   ════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ════════════════════════════════════════════════════════════════
   UTILITY
   ════════════════════════════════════════════════════════════════ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
