/* Conversion funnel — в стиле главной (тёмная тема) */
:root {
  --funnel-bg: var(--bg);
  --funnel-surface: var(--surface);
  --funnel-text: var(--text);
  --funnel-muted: var(--text-secondary);
  --funnel-border: var(--line);
  --funnel-accent: var(--accent);
  --funnel-accent-dark: #e85a1a;
  --funnel-dark: var(--bg-2);
}

body.has-sticky[data-page="funnel"] .funnel-hero {
  padding-top: calc(var(--topbar-h) + var(--header-h) + 24px);
}

.funnel-scarcity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 44, 0.12);
  color: var(--funnel-accent);
  font-size: 13px;
  font-weight: 600;
}

.funnel-hero {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--funnel-border);
}

.funnel-hero h1 {
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 16px 0;
  max-width: 820px;
}

.funnel-hero__lead {
  font-size: 1.125rem;
  color: var(--funnel-muted);
  max-width: 640px;
  line-height: 1.6;
}

.funnel-hero__pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.funnel-hero__pains li {
  list-style: none;
  padding: 12px 14px;
  background: var(--funnel-surface);
  border-radius: 10px;
  font-size: 14px;
  border-left: 3px solid var(--funnel-accent);
}

.funnel-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.funnel-section {
  padding: 64px 0;
}

.funnel-section--alt {
  background: var(--funnel-surface);
}

.funnel-section__title {
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.funnel-section__lead {
  color: var(--funnel-muted);
  max-width: 640px;
  margin-bottom: 32px;
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.funnel-card {
  background: var(--funnel-surface);
  border: 1px solid var(--funnel-border);
  border-radius: 14px;
  padding: 22px;
}

.funnel-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.funnel-card p {
  margin: 0;
  font-size: 14px;
  color: var(--funnel-muted);
  line-height: 1.5;
}

.funnel-card--accent {
  border-color: rgba(255, 107, 44, 0.35);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 107, 44, 0.08) 100%);
}

.funnel-ba {
  display: grid;
  gap: 12px;
}

.funnel-ba__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--funnel-surface);
  border: 1px solid var(--funnel-border);
  border-radius: 12px;
  font-size: 14px;
}

.funnel-ba__before {
  color: #ff8a8a;
}

.funnel-ba__after {
  color: var(--call);
  font-weight: 600;
}

.funnel-ba__arrow {
  color: var(--funnel-muted);
  font-weight: 700;
}

.funnel-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  counter-reset: funnel-step;
}

.funnel-step {
  padding: 18px;
  background: var(--funnel-surface);
  border: 1px solid var(--funnel-border);
  border-radius: 12px;
  counter-increment: funnel-step;
}

.funnel-step::before {
  content: counter(funnel-step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--funnel-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.funnel-step h3 {
  font-size: 14px;
  margin: 0;
}

.funnel-cta-band {
  padding: 48px 0;
  background: var(--funnel-dark);
  color: #fff;
  text-align: center;
}

.funnel-cta-band--photo {
  position: relative;
  overflow: hidden;
}

.funnel-cta-band--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/home/cta-band.jpg") center/cover no-repeat;
  opacity: 0.32;
}

.funnel-cta-band--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.55) 0%, rgba(12, 14, 18, 0.88) 100%);
}

.funnel-cta-band--photo .container {
  position: relative;
  z-index: 1;
}

.funnel-cta-band h2 {
  font-family: Oswald, Inter, sans-serif;
  margin: 0 0 12px;
}

.funnel-cta-band p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 24px;
}

.funnel-cta-band .btn--primary {
  margin: 0 6px;
}

/* Quiz page */
.funnel-quiz {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.funnel-quiz__progress {
  height: 4px;
  background: var(--funnel-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 32px;
}

.funnel-quiz__bar {
  height: 100%;
  width: 25%;
  background: var(--funnel-accent);
  transition: width 0.25s ease;
}

.funnel-quiz__step {
  display: none;
}

.funnel-quiz__step.is-active {
  display: block;
}

.funnel-quiz__step h2 {
  font-family: Oswald, Inter, sans-serif;
  margin: 0 0 20px;
}

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

.funnel-quiz__opt {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--funnel-border);
  border-radius: 12px;
  background: var(--funnel-surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.funnel-quiz__opt:hover {
  border-color: var(--funnel-accent);
  background: rgba(255, 107, 44, 0.08);
}

.funnel-quiz__result {
  padding: 28px;
  background: var(--funnel-surface);
  border: 2px solid var(--funnel-accent);
  border-radius: 16px;
  margin-bottom: 24px;
}

.funnel-quiz__result-num {
  font-family: Oswald, Inter, sans-serif;
  font-size: 2.5rem;
  color: var(--funnel-accent);
  margin: 8px 0;
}

.funnel-quiz__form {
  display: grid;
  gap: 12px;
}

.funnel-quiz__form input[type="text"],
.funnel-quiz__form input[type="tel"],
.funnel-quiz__form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--funnel-border);
  border-radius: 10px;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
}

.funnel-quiz__success {
  text-align: center;
  padding: 40px 20px;
}

.funnel-seg {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.funnel-seg--hot {
  background: rgba(220, 60, 60, 0.12);
  color: #c62828;
}

.funnel-seg--warm {
  background: rgba(230, 160, 40, 0.15);
  color: #b8860b;
}

.funnel-seg--cold {
  background: rgba(74, 158, 255, 0.12);
  color: #2a6cb8;
}

.funnel-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.funnel-offer {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--funnel-border, rgba(255, 255, 255, 0.1));
  background: var(--funnel-surface, rgba(255, 255, 255, 0.04));
}

.funnel-offer__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-bottom: 8px;
}

.funnel-offer h3 {
  font-size: 1rem;
  margin: 0 0 12px;
  line-height: 1.35;
}

.funnel-quiz__check {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #1a7a4a;
  color: #fff;
  font-size: 32px;
  line-height: 64px;
}

.funnel-expert {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--funnel-surface);
  border: 1px solid var(--funnel-border);
  border-radius: 14px;
}

.funnel-expert__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--funnel-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

/* Dark home funnel blocks */
.funnel-home {
  padding: 64px 0;
}

.funnel-home .funnel-grid .funnel-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.funnel-home .funnel-card p {
  color: var(--muted, #aaa);
}

.funnel-home .funnel-ba__row {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.funnel-home .funnel-step {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .funnel-ba__row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .funnel-ba__arrow {
    transform: rotate(90deg);
  }
}
