/* Conversion funnel layer: shared by the light and dark versions. */
.nav a[href="#reviews"],
.mobile-menu a[href="#reviews"],
#reviews {
  display: none !important;
}

.nav a[href="#recognize"],
.nav a[href="#process"] {
  display: none;
}

/* Кнопка и две плашки — три яруса в столбик, выровненные по центру друг друга.
   Плашки те же (.credential), что под портретом. */
.hero .hero-actions {
  align-items: center;
  flex-direction: column;
  gap: 10px;
  order: 1;
  width: fit-content;
}

.hero .hero-actions .credential {
  margin-top: 0;
}

/* В тёмной теме .credential набран моноширинным — он уместен для коротких регалий
   под портретом, но не для разговорной фразы. Здесь берём основной шрифт темы. */
.theme-night .hero .hero-actions .credential {
  font-family: var(--font-body);
}

.hero .hero-content {
  display: flex;
  flex-direction: column;
}

.hero .hero-content h1 {
  font-size: clamp(42px, 4.6vw, 58px);
}

.hero .hero-copy { order: 3; }


/* Базовый стиль подзаголовка (не трогаем — используется тёмной темой,
   где разметка hero не менялась). */
.hero-subtitle {
  color: var(--muted);
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
}

/* Только светлая тема: подзаголовок переехал внутрь .hero-actions — короткое
   пояснение под плашками "бесплатно / онлайн", а не строка под заголовком. */
body:not(.theme-night) .hero-subtitle {
  max-width: 320px;
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.lead-subtitle {
  color: var(--ink);
  font-weight: 600;
}

/* Telegram и WhatsApp в форме — одна колонка, без слипания. */
.lead-form .btn { width: 100%; }
.lead-form .btn + .btn { margin-top: 10px; }

.funnel-section {
  padding: 54px 0 70px;
}

.funnel-shell {
  background: linear-gradient(145deg, color-mix(in srgb, var(--card) 94%, var(--wine) 6%), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 38px;
  padding: 38px;
  overflow: hidden;
  position: relative;
}

.funnel-shell::after {
  content: "";
  width: 280px;
  height: 280px;
  border: 1px solid color-mix(in srgb, var(--wine) 24%, transparent);
  border-radius: 50%;
  position: absolute;
  right: -140px;
  top: -150px;
  pointer-events: none;
}

.funnel-intro {
  position: relative;
  z-index: 1;
}

.funnel-intro h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.06;
}

.funnel-intro > p {
  color: var(--muted);
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.7;
}

.funnel-benefits {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.funnel-benefits span {
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.funnel-benefits span::before {
  content: "✓";
  color: var(--wine);
  font-weight: 800;
}

.funnel-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 26px;
  min-height: 390px;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.funnel-progress {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}

.funnel-progress-bar {
  background: color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 999px;
  flex: 1;
  height: 6px;
  overflow: hidden;
}

.funnel-progress-fill {
  background: linear-gradient(90deg, var(--wine), var(--gold));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width .25s ease;
  width: 1%;
}

.theme-night .funnel-progress-bar {
  background: rgba(255, 255, 255, .14);
}

.theme-night .funnel-progress-fill {
  background: var(--gradient-primary);
}

.funnel-progress-text {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.funnel-step[hidden],
.funnel-result[hidden] {
  display: none !important;
}

.funnel-step h3,
.funnel-result h3 {
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  margin-bottom: 10px;
}

.funnel-hint,
.funnel-result p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.funnel-options {
  display: grid;
  gap: 10px;
}

.funnel-option {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  cursor: pointer;
  min-height: 54px;
  padding: 13px 16px;
  text-align: left;
  transition: border-color .18s, transform .18s, background .18s;
}

.funnel-option:hover,
.funnel-option:focus-visible {
  background: color-mix(in srgb, var(--wine-soft) 55%, var(--card));
  border-color: color-mix(in srgb, var(--wine) 55%, var(--line));
  outline: none;
  transform: translateY(-1px);
}

.funnel-result-badge {
  background: var(--wine-soft);
  border-radius: 999px;
  color: var(--wine-deep);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  margin-bottom: 16px;
  padding: 7px 12px;
  text-transform: uppercase;
}

.funnel-result-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink-2) !important;
  padding: 14px 16px;
}

.funnel-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.funnel-result-actions .btn {
  min-height: 50px;
}

.funnel-restart {
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.funnel-privacy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 16px;
}

.lead-form .messenger-prompt {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink-2);
  margin-bottom: 16px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
}

/* Keep every text element legible inside the featured burgundy offer card. */
.format-card.featured h3,
.format-card.featured .format-price {
  color: var(--paper-soft) !important;
}

.format-card.featured .format-duration,
.format-card.featured .format-desc {
  color: color-mix(in srgb, var(--paper-soft) 86%, transparent) !important;
}

@media (max-width: 1080px) {
  .funnel-shell { grid-template-columns: 1fr; }
  .funnel-intro { max-width: 720px; }
}

/* Открытая рамка портрета вместо арки-"амбразуры": простой мягкий прямоугольник,
   фото видно целиком, а не выглядывает узкой полосой. Тёмная тема (v2) уже
   использует прямоугольную рамку по умолчанию — трогаем только светлую. */
body:not(.theme-night) .portrait-frame {
  border-radius: var(--radius-xl);
}

body:not(.theme-night) .portrait {
  border-radius: calc(var(--radius-xl) - 10px);
  background-position: 50% 12%;
}

/* На мобильном hero становится одной колонкой: фото уходило вниз, под весь
   текст, и не попадало в первый экран. "Растворяем" hero-content и hero-visual
   (display: contents), чтобы их дети встали в единый порядок:
   заголовок → фото → регалии → кнопка с плашками → остальной текст. */
@media (max-width: 1080px) {
  body:not(.theme-night) .hero-content,
  body:not(.theme-night) .hero-visual {
    display: contents;
  }

  body:not(.theme-night) .hero-grid {
    gap: 20px;
  }

  body:not(.theme-night) .hero .eyebrow { order: 1; }
  body:not(.theme-night) .hero-content h1 { order: 2; }
  body:not(.theme-night) .hero-portrait-wrap { order: 3; margin: 0 auto; max-width: 460px; width: 100%; }
  body:not(.theme-night) .hero-visual .credentials-strip { order: 4; margin-top: 4px; }
  body:not(.theme-night) .hero .hero-actions { order: 5; margin: 0 auto; }
  body:not(.theme-night) .hero-copy { order: 6; }
}

@media (max-width: 720px) {
  body:not(.theme-night) .hero-portrait-wrap {
    max-width: 340px;
  }

  .portrait,
  body:not(.theme-night) .portrait {
    min-height: 380px;
  }

  .topbar-inner {
    gap: 8px;
  }

  .topbar-inner .brand {
    min-width: 0;
    margin-right: auto;
  }

  .topbar-inner .mode-toggle {
    width: 46px;
    height: 46px;
    min-height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    padding: 0;
    font-size: 0;
  }

  .topbar-inner .mode-toggle-icon {
    font-size: 19px;
    line-height: 1;
  }

  .theme-night .topbar-inner .mode-toggle {
    background: #303541;
    border-color: rgba(255, 255, 255, .42);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .1);
  }

  .theme-night .topbar-inner .mode-toggle:hover,
  .theme-night .topbar-inner .mode-toggle:focus-visible {
    background: #3a4050;
    border-color: rgba(255, 255, 255, .64);
  }

  .hero .hero-content h1 { font-size: 38px; }
  .hero .hero-actions { width: 100%; }
  .hero .hero-actions .credential { text-align: center; }
  .hero-subtitle { font-size: 16px; }
  .funnel-section { padding: 22px 0 54px; }
  .funnel-shell { gap: 24px; padding: 22px; }
  .funnel-card { min-height: 0; padding: 20px; }
  .funnel-result-actions { display: grid; }
  .funnel-result-actions .btn { width: 100%; }
}

/* Заметная плашка "Первая встреча — бесплатно" рядом с основным CTA. */
.credential.credential-free {
  background: var(--wine-soft);
  border-color: color-mix(in srgb, var(--wine) 45%, var(--line));
  color: var(--wine-deep);
  font-weight: 700;
}

.theme-night .credential.credential-free {
  background: var(--coral-soft);
  border-color: color-mix(in srgb, var(--coral) 45%, var(--border));
  color: var(--coral);
}

/* Метод — отдельный акцентный блок в "Почему со мной". */
.about-block.method-block {
  background: var(--wine-soft);
}

.about-block.method-block h3 {
  color: var(--wine-deep);
}

.theme-night .about-block.method-block {
  background: var(--indigo-soft);
}

.theme-night .about-block.method-block h3 {
  color: var(--text);
}

/* Временной ориентир под историями клиентов. */
.story-duration {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.theme-night .story-duration {
  border-top-color: var(--border);
}

@media (prefers-reduced-motion: reduce) {
  .funnel-option,
  .funnel-progress-fill { transition: none; }
}
