:root {
  /* Brand from datagrow.pro */
  --brand: #2c7ef4;
  --brand-deep: #0054f1;
  --brand-light: #0e9dff;
  --coral: #ff8562;
  --yellow: #ffde59;

  --ink: #111111;
  --ink-soft: #222222;
  --foam: #fcfbfe;
  --muted: #54595f;
  --line: rgba(17, 17, 17, 0.1);
  --mint: var(--brand);
  --mint-deep: var(--brand-deep);
  --lime: var(--yellow);
  --sand: #e8f1fe;
  --warn: var(--coral);
  --ok: var(--brand-deep);
  --font: "Montserrat", system-ui, sans-serif;
  --display: "Montserrat", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 84, 241, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(44, 126, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 126, 244, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 75%);
}

.bg-glow {
  position: fixed;
  inset: -20% auto auto -10%;
  width: 70vw;
  height: 70vw;
  z-index: -1;
  background: radial-gradient(circle, rgba(44, 126, 244, 0.2), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(12%, 8%) scale(1.08); }
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(252, 251, 254, 0.88);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-data {
  color: var(--brand-light);
}

.brand-grow {
  color: var(--brand-deep);
}

.top-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--brand);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  box-shadow: 0 10px 28px rgba(44, 126, 244, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.92rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-block {
  width: 100%;
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-deep);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(90deg, transparent, rgba(44, 126, 244, 0.18), transparent);
  background-size: 100% 0.35em;
  background-repeat: no-repeat;
  background-position: 0 88%;
}

.hero-lead {
  margin: 1.25rem 0 1.5rem;
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.magnets-box {
  margin-top: 1.15rem;
  max-width: 28rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.magnets-box-title {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.magnets-box-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.magnets-box-list li + li {
  margin-top: 0.28rem;
}

.magnets-box-inline {
  margin-top: 1.5rem;
  max-width: 40rem;
}

.magnets-box-quiz {
  margin: 0 0 1.25rem;
  max-width: none;
  background: #fff;
}

.magnets-box-result {
  max-width: none;
  margin-top: 0;
}

.thanks-list {
  text-align: left;
  display: inline-block;
  margin: 0.75rem auto 1rem;
}

.strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.services-section {
  padding: 3.5rem 0 1rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service {
  border-radius: 22px;
  padding: 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
}

.service-n {
  font-family: var(--display);
  font-weight: 800;
  color: var(--mint);
  font-size: 0.95rem;
}

.service h3 {
  margin: 0.55rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.services-note {
  margin: 1.25rem 0 1rem;
  color: var(--muted);
  max-width: 40rem;
  font-size: 0.95rem;
}

.services-cta {
  margin-bottom: 0.5rem;
}

.hero-panel {
  background: linear-gradient(160deg, #0b1f4a, #061230);
  color: var(--foam);
  border-radius: 28px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  animation: rise 0.9s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.panel-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 247, 244, 0.55);
  margin-bottom: 1rem;
}

.panel-metric strong {
  display: block;
  margin: 0.35rem 0;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--lime);
}

.panel-metric small {
  color: rgba(243, 247, 244, 0.6);
  font-size: 0.86rem;
}

.panel-bars {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.85rem;
}

.bar label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: rgba(243, 247, 244, 0.55);
}

.bar span {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(243, 247, 244, 0.12);
  overflow: hidden;
}

.bar span::after {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--yellow));
  animation: fillBar 1.4s ease both;
}

@keyframes fillBar {
  from { width: 0; }
}

.strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-desc {
  margin: 0;
  color: var(--muted);
}

.quiz-section,
.magnets-section,
.paths-section,
.how-section {
  padding: 4.5rem 0;
}

.quiz {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.quiz-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--sand);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.quiz-progress-bar {
  height: 100%;
  width: 14%;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
  border-radius: inherit;
  transition: width 0.35s ease;
}

.quiz-step-label {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.quiz h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.quiz-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.messenger-grid {
  grid-template-columns: 1fr 1fr;
}

.result-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.result-compare > div {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
}

.result-compare span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.result-compare b {
  font-size: 0.98rem;
}

.result-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.deliver-list {
  margin: 0;
  padding: 0.9rem 1rem 0.9rem 1.4rem;
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.deliver-list li + li {
  margin-top: 0.35rem;
}

.opt-grid {
  display: grid;
  gap: 0.65rem;
}

.opt {
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--foam);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.opt:hover,
.opt.is-active {
  border-color: var(--brand);
  background: var(--sand);
  transform: translateY(-1px);
}

.opt small {
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  color: var(--muted);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: var(--foam);
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(44, 126, 244, 0.35);
  border-color: var(--brand);
}

.result {
  display: grid;
  gap: 1.25rem;
}

.result-hero {
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(160deg, #0b1f4a, #061230);
  color: var(--foam);
}

.result-hero .tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-ok { background: rgba(44, 126, 244, 0.25); color: #8ed1fc; }
.tag-mid { background: rgba(255, 133, 98, 0.22); color: #ffb089; }
.tag-low { background: rgba(255, 255, 255, 0.08); color: rgba(243, 247, 244, 0.7); }

.result-hero strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.result-hero p {
  margin: 0;
  color: rgba(243, 247, 244, 0.7);
  font-size: 0.95rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.result-stat {
  background: var(--foam);
  border-radius: 14px;
  padding: 0.85rem;
  border: 1px solid var(--line);
}

.result-stat span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.result-stat b {
  font-size: 1.05rem;
}

.magnet-pick {
  display: grid;
  gap: 0.5rem;
}

.magnet-pick .opt {
  font-size: 0.95rem;
}

.form-note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.magnet-grid,
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.paths {
  grid-template-columns: 1fr 1fr;
}

.magnet,
.path {
  border-radius: 22px;
  padding: 1.35rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
}

.magnet-n {
  font-family: var(--display);
  font-weight: 800;
  color: var(--mint);
  font-size: 0.95rem;
}

.magnet h3,
.path h3 {
  margin: 0.55rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.magnet p,
.path p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.path ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.path-alt {
  background: linear-gradient(160deg, #0b1f4a, #061230);
  color: var(--foam);
  border: 0;
}

.path-alt p,
.path-alt ul {
  color: rgba(243, 247, 244, 0.72);
}

.how-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.how-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.how-list strong {
  font-family: var(--display);
  font-size: 1.1rem;
}

.how-list span {
  color: var(--muted);
}

.how-note {
  margin: 1.25rem 0;
  color: var(--muted);
  max-width: 40rem;
}

.how-cta {
  margin-top: 0.5rem;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: #fff;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.foot p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-links {
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

.thanks {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.thanks h3 {
  margin-bottom: 0.5rem;
}

.thanks p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 1rem;
}

/* —— Tablet / mobile —— */
@media (max-width: 900px) {
  .wrap {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .top-inner {
    min-height: 56px;
    gap: 0.75rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .btn-sm {
    padding: 0.7rem 0.95rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .hero {
    padding: 1.75rem 0 2rem;
  }

  .hero-grid,
  .magnet-grid,
  .paths,
  .result-grid,
  .service-grid,
  .result-compare,
  .messenger-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 1.25rem;
    align-items: stretch;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8.2vw, 2.45rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .hero-lead {
    margin: 1rem 0 1.15rem;
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 52px;
    padding: 0.95rem 1.1rem;
    font-size: 0.95rem;
  }

  .magnets-box {
    max-width: none;
    padding: 1.1rem 1.15rem;
  }

  .magnets-box-title {
    font-size: 0.95rem;
  }

  .magnets-box-list {
    font-size: 0.98rem;
  }

  .magnets-box-list li + li {
    margin-top: 0.4rem;
  }

  .hero-panel {
    border-radius: 20px;
    padding: 1.25rem 1.15rem;
  }

  .panel-metric strong {
    font-size: 1.65rem;
  }

  .strip-inner {
    gap: 0.65rem 1.1rem;
    font-size: 0.82rem;
    padding: 0.85rem 0;
  }

  .services-section {
    padding: 2.25rem 0 0.5rem;
  }

  .quiz-section,
  .magnets-section,
  .paths-section,
  .how-section {
    padding: 2.5rem 0;
  }

  .section-head {
    margin-bottom: 1.25rem;
  }

  .section-head h2 {
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }

  .section-desc {
    font-size: 1rem;
  }

  .service {
    padding: 1.15rem 1.1rem;
  }

  .service h3 {
    font-size: 1.1rem;
  }

  .service p,
  .services-note {
    font-size: 0.98rem;
  }

  .services-cta .btn,
  .how-cta .btn {
    width: 100%;
    min-height: 52px;
  }

  .quiz {
    border-radius: 20px;
    padding: 1.15rem 1rem 1.35rem;
  }

  .quiz h3 {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .quiz-hint {
    font-size: 0.95rem;
  }

  .opt {
    min-height: 52px;
    padding: 1rem 1.05rem;
    font-size: 1rem;
    border-radius: 14px;
  }

  .opt small {
    font-size: 0.88rem;
    margin-top: 0.35rem;
  }

  .quiz-nav {
    flex-direction: column-reverse;
    gap: 0.55rem;
    margin-top: 1.1rem;
  }

  .quiz-nav .btn {
    width: 100%;
    min-height: 48px;
  }

  .field label,
  .field-label {
    font-size: 0.95rem;
  }

  .field input,
  .field select {
    min-height: 52px;
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  .result-hero strong {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .result-stat b {
    font-size: 1rem;
  }

  .result-compare b {
    font-size: 0.95rem;
  }

  .result-text {
    font-size: 1rem;
  }

  .how-list li {
    padding: 1rem 1.05rem;
  }

  .how-list strong {
    font-size: 1.05rem;
  }

  .how-list span {
    font-size: 0.95rem;
  }

  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .thanks {
    padding: 1rem 0.25rem;
  }

  .thanks-list {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 1.25rem);
  }

  .btn-sm {
    padding: 0.65rem 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  /* На узких экранах пример расчёта компактнее */
  .panel-bars {
    gap: 0.65rem;
  }

  .panel-metric strong {
    font-size: 1.45rem;
  }
}
