:root {
  --bg: #f8f6fc;
  --text: #161321;
  --muted: #564d6c;
  --line: #e3dbf1;
  --soft: #f4f0fb;
  --accent: #7a1cff;
  --accent-hover: #6417d1;
  --tone: #eee5ff;
  --radius: 16px;
  --container: 1120px;
  --shadow-sm: 0 10px 26px rgba(37, 22, 70, 0.06);
  --shadow-md: 0 16px 38px rgba(54, 28, 102, 0.12);
  --shadow-lg: 0 18px 44px rgba(93, 42, 185, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.hero {
  padding: 96px 0 74px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(960px 380px at 10% -16%, #ebe0ff 0%, rgba(248, 246, 252, 0) 68%),
    radial-gradient(980px 420px at 86% -26%, #f0e7ff 0%, rgba(248, 246, 252, 0) 70%),
    var(--bg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.logo-text {
  letter-spacing: 0.08em;
}

.footer-mark {
  width: 20px;
  height: 20px;
  font-size: 13px;
  vertical-align: middle;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 900px;
}

.one-liner {
  max-width: 980px;
  margin-bottom: 16px;
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-core {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 650;
  color: #241b3f;
  text-wrap: balance;
}

.hero-copy {
  max-width: 800px;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 26px;
  max-width: 900px;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

h4 {
  margin: 16px 0 8px;
  font-size: 16px;
}

.example-review,
.example-response {
  border-radius: 12px;
  padding: 12px 14px;
}

.example-review {
  background: #ffffff;
  border: 1px solid #e6e0f3;
}

.example-response {
  margin-top: 10px;
  background: #f4efff;
  border: 1px solid #ddd0ff;
  border-left: 4px solid #7a1cff;
}

.example-review h3,
.example-response h4 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #665a87;
}

.example-review p,
.example-response p {
  margin: 0;
}

.subtitle {
  font-size: 19px;
  color: var(--muted);
  max-width: 760px;
  margin: 0;
  text-wrap: pretty;
}

.subtle {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-risk {
  border: 1px solid #dccdff;
  background: #f6f0ff;
  border-radius: 12px;
  padding: 10px 12px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid #d9cbff;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  color: #483b68;
  font-size: 14px;
  font-weight: 600;
}

.hl {
  color: #6c1ce3;
  font-weight: 800;
  background: linear-gradient(transparent 62%, var(--tone) 62%);
  padding: 0 2px;
  border-radius: 4px;
}

.section {
  padding: 74px 0;
}

.section-muted {
  background: var(--soft);
}

.section .container > h2 + .grid,
.section .container > h2 + .accordion {
  margin-top: 4px;
}

.section-cta {
  border-top: 1px solid var(--line);
}

.center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 16px;
}

.examples,
.steps,
.pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.persona-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.persona-card {
  position: relative;
}

.persona-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #7a1cff, #a069ff);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #efe7ff;
  color: #6d24d6;
  font-weight: 700;
  margin-bottom: 8px;
}

.price .amount {
  font-size: 30px;
  margin: 8px 0;
  font-weight: 800;
}

.plan-limit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #d9c8ff;
  background: linear-gradient(135deg, #f6f0ff 0%, #fbf8ff 100%);
}

.limit-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #7a1cff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.limit-value {
  font-size: 15px;
  font-weight: 700;
  color: #2c2050;
  letter-spacing: 0.01em;
}

.limit-extra {
  margin: 0 0 12px;
  color: #5f537e;
  font-size: 14px;
  font-weight: 600;
}

.value-scale {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 32px;
}

.value-scale-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #ece2ff;
  border: 1px solid #dbcaff;
  overflow: hidden;
}

.value-scale-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7a1cff 0%, #a069ff 100%);
}

.value-scale-300 .value-scale-fill {
  width: 20%;
}

.value-scale-900 .value-scale-fill {
  width: 60%;
}

.value-scale-1500 .value-scale-fill {
  width: 100%;
}

.value-scale-300 {
  --scale-point: 20%;
}

.value-scale-900 {
  --scale-point: 60%;
}

.value-scale-1500 {
  --scale-point: 100%;
}

.value-scale-current {
  position: absolute;
  top: 16px;
  left: var(--scale-point);
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 800;
  color: #5d32b6;
  background: #f4ecff;
  border: 1px solid #d8c4ff;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}


.pricing .card:nth-child(2) {
  border-color: #ceb9ff;
  box-shadow: var(--shadow-md);
  position: relative;
}

.pricing .card:nth-child(2)::before {
  content: "Оптимальный";
  position: absolute;
  top: -12px;
  left: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #7a1cff, #9b5cff);
}

.pricing .card:nth-child(2) .plan-limit {
  border-color: #c8b1ff;
  background: linear-gradient(135deg, #efe6ff 0%, #f8f3ff 100%);
}

.pricing .card:nth-child(2) .value-scale-track {
  border-color: #ccb4ff;
  background: #e9dcff;
}

.price .btn {
  margin-top: 10px;
}

.accordion {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(36, 20, 73, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] {
  border-color: #d4c4fb;
  box-shadow: 0 10px 22px rgba(85, 43, 160, 0.08);
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.risk-section {
  padding-top: 22px;
}

.risk-callout {
  border: 1px solid #dbcdfd;
  background: linear-gradient(180deg, #f5f0ff 0%, #fbf9ff 100%);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.risk-callout p {
  margin-top: 0;
  color: #5d5377;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.risk-item {
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e2d7ff;
  font-weight: 600;
}

.fit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fit-card h3 {
  margin-bottom: 10px;
}

.fit-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #4e4662;
}

.fit-yes {
  border-color: #d6c7ff;
  background: linear-gradient(180deg, #f9f5ff 0%, #ffffff 100%);
}

.fit-no {
  border-color: #e6def4;
  background: #fff;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7a1cff 0%, #8d41ff 100%);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6e19e5 0%, #8037ea 100%);
}

.btn-outline {
  color: #4e2f95;
  border-color: #d4c0ff;
  background: #f8f3ff;
}

.btn-outline:hover {
  border-color: #c5a9ff;
  background: #efe5ff;
}

.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.amo-form-embed {
  margin-top: 14px;
  width: 100%;
}

.amo-form-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  border: 1px solid #d3d7e2;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 16px;
  background: #fff;
}

input:focus,
select:focus {
  outline: none;
  border-color: #9f7eff;
  box-shadow: 0 0 0 3px rgba(122, 28, 255, 0.16);
}

.form-note,
#formStatus {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

#formStatus.ok {
  color: #136d34;
}

#formStatus.err {
  color: #8a1d1d;
}

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 24px 0 42px;
}

.footer p {
  margin: 4px 0;
  color: var(--muted);
}

.sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: linear-gradient(135deg, #7a1cff 0%, #8f49ff 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sticky-cta:hover {
  background: linear-gradient(135deg, #6f1be7 0%, #7d35e7 100%);
}

@media (min-width: 961px) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn:hover {
    transform: translateY(-1px);
  }
}

.sticky-cta.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

@media (max-width: 960px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .examples,
  .steps,
  .pricing,
  .risk-grid,
  .persona-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 42px;
  }

  .logo {
    margin-bottom: 10px;
  }

  .one-liner {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.04;
    margin-bottom: 12px;
  }

  .hero-core {
    font-size: clamp(18px, 5.6vw, 22px);
    line-height: 1.3;
  }

  .subtitle {
    font-size: 16px;
    line-height: 1.55;
  }

  .subtle {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-copy {
    gap: 10px;
    margin-bottom: 16px;
  }

  .hero-risk {
    padding: 10px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-badges {
    margin-top: 12px;
  }

  .badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 52px 0;
  }

  .card {
    padding: 17px;
  }

  .plan-limit {
    width: 100%;
    justify-content: flex-start;
    padding: 9px 10px;
  }

  .card p {
    font-size: 15px;
    line-height: 1.5;
  }

  h2 {
    margin-bottom: 16px;
  }

  summary {
    font-size: 17px;
    line-height: 1.35;
  }

  .risk-callout {
    padding: 20px;
  }

  .sticky-cta {
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    text-align: center;
  }
}
