:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --ink: #0e1320;
  --ink-2: #475065;
  --muted: #8b93a7;
  --line: #e7eaf2;
  --line-2: #eef0f6;
  --brand: #2e5bff;
  --brand-2: #6b8cff;
  --brand-soft: #eaf0ff;
  --accent: #ffb020;
  --success: #16a34a;
  --shadow-sm: 0 1px 2px rgba(20, 30, 60, 0.04), 0 2px 8px rgba(20, 30, 60, 0.04);
  --shadow-md: 0 6px 24px rgba(20, 30, 60, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 30, 60, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-grad {
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 90vh;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(46,91,255,0.12), transparent 60%),
    radial-gradient(50% 60% at 85% 10%, rgba(255,176,32,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}
.logo-dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px rgba(46,91,255,0.35);
  position: relative;
}
.logo-dot::after {
  content: "✓";
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.brand-sub {
  font-weight: 500;
  color: var(--muted);
}
.topbar-phone {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.topbar-phone:hover { color: var(--brand); }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

.hero {
  text-align: center;
  padding: 32px 0 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.15);
}
h1 {
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px auto 14px;
  max-width: 820px;
  font-weight: 800;
}
.accent {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.trust-item span {
  color: var(--success);
  font-weight: 800;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.quiz {
  margin: 36px auto 0;
  padding: 28px;
  max-width: 720px;
}
.quiz-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.progress {
  flex: 1;
  height: 8px;
  background: var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 14.28%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.progress-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  min-width: 44px;
  text-align: right;
}
.muted { color: var(--muted); font-weight: 500; }

#hpWebsite {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

fieldset.step {
  border: 0;
  padding: 0;
  margin: 0;
  display: none;
  animation: stepIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}
fieldset.step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
legend {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--ink);
}
.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.options.grid-2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
  .options.grid-2 { grid-template-columns: 1fr; }
}
.opt {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  user-select: none;
}
.opt:hover {
  border-color: var(--brand-2);
  background: #fbfcff;
  transform: translateY(-1px);
}
.opt input { display: none; }
.opt span { display: block; }
.opt input:checked + span { color: var(--brand); font-weight: 600; }
.opt:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 4px rgba(46,91,255,0.10);
}

.input-block { margin-bottom: 12px; }
.input-block input {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: all 0.15s ease;
}
.input-block input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(46,91,255,0.12);
}
.input-block input::placeholder { color: var(--muted); }
.legal {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 6px 2px 0;
}

.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.btn {
  appearance: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(46,91,255,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(46,91,255,0.45); }
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink); background: var(--line-2); }
.btn-ghost:disabled { opacity: 0.3; cursor: not-allowed; }

.success {
  text-align: center;
  padding: 30px 10px 10px;
  animation: stepIn 0.5s ease;
}
.success-icon {
  font-size: 56px;
  margin-bottom: 8px;
}
.success h2 {
  font-size: 26px;
  margin: 8px 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.success p { color: var(--ink-2); margin: 0; }

.why {
  margin-top: 64px;
  text-align: center;
}
.why h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
}
.why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.why-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.why-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.why-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-2);
}

@media (max-width: 600px) {
  .topbar { padding: 16px 20px; }
  .wrap { padding: 0 16px 60px; }
  .quiz { padding: 20px; border-radius: 20px; }
  .btn { padding: 13px 18px; font-size: 14px; }
}

/* ========== PAINS BLOCK (added v2) ========== */
.pains {
  margin: 28px 0 12px;
}
.pains h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 16px;
}
.pains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pain {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid #d4af37;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-2);
  font-style: italic;
}
@media (max-width: 720px) {
  .pains-grid { grid-template-columns: 1fr; }
}

/* ========== REVIEWS BLOCK (added v2) ========== */
.reviews {
  margin: 32px 0 24px;
}
.reviews h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 16px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.reviews-grid img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 30px rgba(20, 14, 0, 0.18);
  border: 1px solid #efe6cf;
}
@media (max-width: 880px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* logo image in topbar */
.brand img { border-radius: 8px; }

/* ============================================================
   v4 — KOSTYA FEEDBACK ITERATION
   Hero CTA · Audience · ЧЗ · Prices · Expert · Guarantee
   ============================================================ */

/* ---------- HERO CTA + DEADLINE ---------- */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-ghost-light {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex; align-items: center;
}
.btn-ghost-light:hover { border-color: var(--brand); color: var(--brand); }
.hero-deadline {
  margin: 22px auto 0;
  max-width: 620px;
  padding: 12px 18px;
  background: #fff8e1;
  border: 1px dashed #e6c34a;
  border-radius: 12px;
  font-size: 13px;
  color: #6a4a10;
  line-height: 1.5;
}

/* ---------- AUDIENCE ---------- */
.audience {
  margin: 48px 0 8px;
  text-align: center;
}
.audience h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 22px;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .audience-grid { grid-template-columns: 1fr; }
}
.aud-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}
.aud-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.aud-icon { font-size: 28px; margin-bottom: 8px; }
.aud-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.aud-text { font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* ---------- ЧЗ BLOCK ---------- */
.chz {
  margin: 56px 0 0;
  background: linear-gradient(135deg, #fff8e1 0%, #fff 60%);
  border: 1px solid #f0e8d3;
  border-radius: 24px;
  padding: 32px 32px 30px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { .chz { padding: 22px; border-radius: 18px; } }
.chz-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.chz-icon {
  font-size: 38px;
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: #fff;
  border-radius: 14px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0e8d3;
}
.chz h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -.02em;
}
.chz-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.chz-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 880px) { .chz-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .chz-steps { grid-template-columns: 1fr; } }
.chz-step {
  background: #fff;
  border: 1px solid #f0e8d3;
  border-radius: 14px;
  padding: 16px;
}
.chz-num {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  background: #d4af37;
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.chz-step-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.chz-step-text { font-size: 12px; color: var(--ink-2); line-height: 1.5; }

/* ---------- PRICES ---------- */
.prices {
  margin: 56px 0 0;
  text-align: center;
}
.prices h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.prices-sub {
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 14px;
}
.prices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .prices-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .prices-grid { grid-template-columns: 1fr; } }
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}
.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-2);
}
.price-card.highlight {
  border: 1.5px solid #d4af37;
  background: linear-gradient(180deg, #fffbe8 0%, #fff 100%);
}
.price-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.price-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.price-card.highlight .price-value { color: #b8901a; }
.price-text { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.prices-cta {
  margin-top: 22px;
}
.prices-cta .btn { display: inline-flex; }

/* ---------- EXPERT ---------- */
.expert {
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  align-items: center;
}
@media (max-width: 720px) {
  .expert { grid-template-columns: 1fr; padding: 22px; gap: 22px; text-align: center; }
}
.expert-photo img {
  width: 100%;
  border-radius: 18px;
  display: block;
  box-shadow: 0 20px 50px rgba(20, 30, 60, 0.18);
}
.expert-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.expert h3 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.expert h3 span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  display: inline-block;
  margin-top: 4px;
}
.expert p {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.expert-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
@media (max-width: 480px) { .expert-facts { grid-template-columns: 1fr; } }
.expert-facts li {
  font-size: 13px;
  color: var(--ink-2);
  position: relative;
  padding-left: 18px;
}
.expert-facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}
.expert-facts li b {
  color: var(--ink);
  font-weight: 800;
}
.expert .btn { display: inline-flex; align-items: center; }

/* ---------- GUARANTEE ---------- */
.guarantee {
  margin: 56px 0 0;
  text-align: center;
}
.guarantee-icon {
  font-size: 38px;
  margin-bottom: 6px;
}
.guarantee h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 22px;
}
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}
@media (max-width: 720px) { .guarantee-grid { grid-template-columns: 1fr; } }
.g-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--success);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.g-q {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}
.g-a {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
