﻿:root {
  --bg: #f7f9ff;
  --bg-soft: #eef3ff;
  --bg-warm: #fff3ea;
  --surface: #ffffff;
  --surface-soft: #fdfdff;
  --line: #d7e2ff;
  --line-strong: #bdd0ff;
  --text: #1c2240;
  --muted: #5e678b;
  --title: #121832;
  --primary: #2f6bff;
  --primary-2: #ff7a3d;
  --accent: #00b894;
  --danger: #ff5a68;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-lg: 0 24px 60px rgba(23, 43, 99, 0.12);
  --shadow-md: 0 14px 30px rgba(24, 41, 93, 0.1);
  --shadow-sm: 0 8px 18px rgba(20, 35, 76, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(820px 500px at -10% -10%, rgba(47, 107, 255, 0.22), transparent 60%),
    radial-gradient(680px 460px at 112% -8%, rgba(255, 122, 61, 0.22), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #f6f9ff 44%, #f5f7ff 100%);
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.page-glow {
  position: fixed;
  inset: -24%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(680px 350px at 24% 26%, rgba(47, 107, 255, 0.16), transparent 60%),
    radial-gradient(700px 380px at 82% 20%, rgba(255, 122, 61, 0.16), transparent 60%);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(186, 205, 255, 0.62);
  background: rgba(249, 252, 255, 0.88);
  backdrop-filter: blur(14px);
}

.legal-warning {
  border-top: 1px solid #ffd8bf;
  border-bottom: 1px solid #ffd8bf;
  background: linear-gradient(180deg, #fff2e8 0%, #ffe9d9 100%);
}

.legal-warning__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6e3f1f;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.legal-warning__inner strong {
  color: #b04b1a;
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  flex-shrink: 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
  color: var(--title);
  letter-spacing: 0.01em;
}

.brand-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.12);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--title);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 9px 13px;
  cursor: pointer;
  color: var(--title);
}

.nav-cta {
  margin-left: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, #3f7aff 46%, var(--primary-2) 100%);
  box-shadow: 0 12px 28px rgba(49, 102, 226, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 30px rgba(49, 102, 226, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
}

.hero {
  padding: 68px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 26px;
  align-items: start;
}

.kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  color: #ff7a3d;
}

.hero-copy h1,
.section-head h2,
.economy-card h2,
.integration-card h2,
.cta-wrap h2,
.pinpoint-card h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  color: var(--title);
  line-height: 1.18;
}

.hero-copy h1 {
  font-size: clamp(30px, 5.3vw, 54px);
  max-width: 14.5ch;
}

.hero-text {
  margin: 20px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.hero-points li {
  position: relative;
  padding-left: 28px;
  color: #414d79;
  font-weight: 600;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
}

.hero-visual {
  display: grid;
  gap: 14px;
}

.hero-panel,
.hero-dashboard,
.pinpoint-card,
.about-photo,
.about-badge,
.reviews-highlight,
.reviews-proof,
.trust-grid > div,
.benefit-card,
.economy-card,
.integration-card,
.analytics-card,
.demo-card,
.faq-list details,
.cta-wrap,
.footer-main,
.footer-links,
.popup-card {
  border: 1px solid rgba(180, 202, 255, 0.62);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 250, 255, 0.92));
  box-shadow: var(--shadow-sm);
}

.hero-panel,
.hero-dashboard {
  padding: 18px;
}

.hero-panel-head,
.hero-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #49537c;
  font-size: 13px;
  font-weight: 700;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2567f0;
  font-weight: 800;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(0, 184, 148, 0.18);
}

.quality-bars {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #4a547f;
  margin-bottom: 6px;
  font-weight: 700;
}

.meter {
  height: 11px;
  border-radius: 999px;
  background: #e5edff;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.meter.good span {
  background: linear-gradient(90deg, #27b56f, #00d487);
}

.meter.warn span {
  background: linear-gradient(90deg, #ffac35, #ffc04c);
}

.meter.bad span {
  background: linear-gradient(90deg, #ff5f73, #ff7b89);
}

.hero-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-cards article {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(170, 195, 255, 0.6);
  background: linear-gradient(160deg, #ffffff 0%, #f3f7ff 100%);
}

.hero-cards strong {
  display: block;
  font-size: 26px;
  font-family: "Unbounded", sans-serif;
  color: #184fca;
}

.hero-cards span {
  margin-top: 4px;
  display: block;
  color: #566187;
  font-size: 13px;
  font-weight: 600;
}

.hero-dashboard-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-dashboard-grid article {
  border-radius: 12px;
  padding: 10px;
  background: #f6f9ff;
  border: 1px solid rgba(177, 201, 255, 0.56);
}

.hero-dashboard-grid span {
  display: block;
  font-size: 12px;
  color: #6272a3;
  font-weight: 700;
}

.hero-dashboard-grid b {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #1b4db8;
  font-family: "Unbounded", sans-serif;
}

.hero-dashboard-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.hero-dashboard-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f8f3ff;
  border: 1px solid #e4d6ff;
  font-size: 13px;
  color: #5c4d88;
  font-weight: 700;
}

.hero-dashboard-list b {
  color: #3b56d2;
}

.hero-dashboard-legend {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

.hero-dashboard-legend p {
  margin: 0;
  font-size: 13px;
  color: #516087;
  line-height: 1.45;
}

.hero-dashboard-legend strong {
  color: #23356f;
}

section {
  padding: 86px 0;
}

.pinpoint {
  padding-top: 44px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

.pinpoint-card {
  padding: 26px;
}

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

.pinpoint-card p strong {
  color: #1c2e68;
}

.pinpoint-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pinpoint-list li {
  position: relative;
  padding-left: 26px;
  color: #485682;
  font-weight: 600;
  line-height: 1.55;
}

.pinpoint-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #20d7a0);
}

.pinpoint-card .btn {
  margin-top: 18px;
}

.reviews-highlight {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 169, 84, 0.54);
  background: linear-gradient(135deg, rgba(255, 199, 126, 0.22), rgba(255, 255, 255, 0.95));
}

.reviews-highlight strong {
  display: block;
  color: #6a3700;
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
  line-height: 1.3;
}

.reviews-highlight p {
  margin: 8px 0 0;
  color: #6e4b24;
  font-weight: 700;
  line-height: 1.5;
}

.reviews-highlight a {
  margin-top: 10px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  color: #1f52bf;
}

.about-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.about-side--stats {
  grid-template-rows: auto;
  align-content: start;
}

.reviews-proof {
  padding: 16px;
  display: grid;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 171, 92, 0.58);
  background: linear-gradient(130deg, rgba(255, 192, 120, 0.2), rgba(255, 255, 255, 0.96));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reviews-proof:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.reviews-proof-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8e5a12;
  font-weight: 800;
}

.reviews-proof strong {
  display: block;
  color: #6a3700;
  font-family: "Unbounded", sans-serif;
  font-size: 20px;
  line-height: 1.3;
}

.reviews-proof span {
  color: #6d4c24;
  line-height: 1.45;
  font-weight: 700;
  font-size: 14px;
}

.reviews-proof-link {
  color: #1f52bf !important;
  font-weight: 800 !important;
}

.hero-about-side .about-photo img {
  min-height: 320px;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.about-photo figcaption {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  color: #3e4d79;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-top: 1px solid rgba(180, 202, 255, 0.6);
}

.about-badge {
  padding: 16px;
  color: #23356f;
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.12), rgba(255, 122, 61, 0.14));
}

.trust {
  padding-top: 12px;
  padding-bottom: 44px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-grid > div {
  padding: 16px;
}

.trust-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2d63db;
  font-weight: 800;
}

.trust-grid p {
  margin: 8px 0 0;
  color: #4d597f;
  line-height: 1.5;
}

.benefits {
  padding-top: 40px;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 20ch;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.benefit-card {
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefit-card h3 {
  margin: 0;
  font-size: 18px;
  color: #172552;
}

.benefit-card p {
  margin: 10px 0 0;
  color: #5b678f;
  line-height: 1.55;
}

.economy {
  padding-top: 52px;
}

.economy-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
  align-items: start;
}

.economy-card,
.integration-card {
  padding: 22px;
}

.economy-card p,
.integration-card p {
  margin: 12px 0 0;
  color: #5b678f;
  line-height: 1.58;
}

.economy-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.economy-form label {
  display: grid;
  gap: 6px;
  color: #3f4d79;
  font-size: 14px;
  font-weight: 700;
}

.economy-form input,
.economy-form select,
.quiz-lead input,
.popup-form input,
.popup-form textarea,
.popup-form select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 11px 12px;
  color: var(--text);
}

.economy-form input:focus,
.economy-form select:focus,
.quiz-lead input:focus,
.popup-form input:focus,
.popup-form textarea:focus,
.popup-form select:focus {
  outline: 2px solid rgba(47, 107, 255, 0.34);
  outline-offset: 1px;
}

.economy-result,
.check-result,
.popup-result {
  margin-top: 14px;
  border: 1px dashed #c6d8ff;
  border-radius: 12px;
  background: #f6faff;
  padding: 12px;
  color: #3c4e7a;
  font-size: 14px;
  line-height: 1.5;
}

.integration-shot {
  margin: 10px 0 0;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #d8e5ff;
  position: relative;
  overflow: hidden;
}

.integration-shot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}

.integration-shot figcaption {
  margin: 0;
  padding: 12px 12px 12px 16px;
  color: #4a5784;
  line-height: 1.5;
}

.integration-shot figcaption strong {
  color: #1f387a;
}

.analytics {
  padding-top: 18px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analytics-card {
  padding: 18px;
}

.analytics-card h3 {
  margin: 0;
  color: #1a2a5d;
  font-size: 20px;
}

.analytics-card p {
  margin: 10px 0 0;
  color: #5b678f;
  line-height: 1.55;
}

.demo {
  padding-top: 44px;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.demo-card {
  padding: 22px;
}

.demo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}

.demo-card-head h3 {
  margin: 0;
  color: #1a2a5d;
  font-size: 25px;
}

.demo-card-head p {
  margin: 0;
  color: #5c6891;
  font-weight: 700;
}

.quiz-progress {
  height: 10px;
  border-radius: 999px;
  background: #e3ecff;
  overflow: hidden;
}

.quiz-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 0.22s ease;
}

.quiz-stage {
  display: none;
  margin-top: 16px;
}

.quiz-stage.active {
  display: block;
}

.quiz-stage h4 {
  margin: 0;
  color: #1d2d63;
  font-size: 22px;
}

.quiz-options {
  margin-top: 13px;
  display: grid;
  gap: 10px;
}

.quiz-option {
  border: 1px solid #d0deff;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  min-height: 49px;
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
  color: #33406c;
  font-weight: 700;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-option:hover {
  border-color: #9db9ff;
  transform: translateY(-1px);
}

.quiz-option.active {
  border-color: #4879ff;
  background: linear-gradient(180deg, #eef4ff, #f4f8ff);
  color: #1d3e95;
  box-shadow: 0 8px 16px rgba(63, 111, 234, 0.15);
}

.quiz-lead {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.quiz-lead label,
.popup-form label {
  display: grid;
  gap: 6px;
  color: #3f4d79;
  font-size: 14px;
  font-weight: 700;
}

.lead-consent,
.popup-form .popup-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #4e5d88;
  font-size: 13px;
  line-height: 1.45;
}

.lead-consent input,
.popup-form .popup-consent input {
  margin-top: 2px;
  min-height: auto;
  padding: 0;
}

.lead-consent a,
.popup-form .popup-consent a {
  color: #1f59dd;
  text-decoration: underline;
}

.quiz-controls {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.quiz-controls .btn {
  min-width: 130px;
}

.faq {
  padding-top: 58px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 14px 16px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: #1f2e64;
  position: relative;
  padding-right: 26px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 20px;
  color: #3068f2;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 10px 0 0;
  color: #5b678f;
  line-height: 1.58;
}

.cta {
  padding-top: 42px;
}

.cta-wrap {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 16px;
  align-items: center;
  background:
    radial-gradient(360px 140px at 10% 16%, rgba(47, 107, 255, 0.14), transparent 65%),
    radial-gradient(400px 180px at 90% 20%, rgba(255, 122, 61, 0.16), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.cta-wrap h2 {
  font-size: clamp(26px, 4vw, 42px);
  max-width: 17ch;
}

.cta-wrap p {
  margin: 10px 0 0;
  color: #5b678f;
  line-height: 1.56;
}

.site-footer {
  margin-top: 66px;
  padding: 36px 0 52px;
  background:
    radial-gradient(780px 360px at 0% -10%, rgba(47, 107, 255, 0.14), transparent 60%),
    radial-gradient(760px 320px at 100% -10%, rgba(255, 122, 61, 0.14), transparent 60%),
    linear-gradient(180deg, #eef4ff 0%, #e8f0ff 100%);
  border-top: 1px solid #ccddff;
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
}

.footer-main,
.footer-links {
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.footer-main strong {
  font-family: "Unbounded", sans-serif;
  font-size: 20px;
  color: #182a62;
  line-height: 1.45;
}

.footer-main p {
  margin: 10px 0 0;
  color: #53618d;
  line-height: 1.56;
}

.footer-contacts {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid #ccdbff;
  background: #f7faff;
  color: #2a4fae;
  font-weight: 800;
}

.footer-note {
  margin: 12px 0 0;
  color: #60709f;
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  border: 1px solid #d2e0ff;
  border-radius: 12px;
  background: #ffffff;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #42548c;
  font-weight: 700;
  text-align: center;
  padding: 0 8px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  border-color: #8bb0ff;
  color: #2a4fae;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 52, 0.54);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 120;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-card {
  width: min(520px, 100%);
  padding: 20px;
  position: relative;
}

.popup-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: #f0f5ff;
  color: #3b4d82;
  border-radius: 10px;
  min-height: 34px;
  padding: 0 10px;
  font-weight: 700;
  cursor: pointer;
}

.popup-card h3 {
  margin: 0;
  color: #1b2d63;
  font-size: 28px;
  line-height: 1.2;
  font-family: "Unbounded", sans-serif;
}

.popup-text {
  margin: 10px 0 0;
  color: #57648f;
  line-height: 1.52;
}

.popup-legal {
  margin: 10px 0 0;
  border: 1px solid #ffd8bf;
  border-radius: 12px;
  background: #fff5ed;
  padding: 10px 12px;
  color: #6d4525;
  font-size: 12px;
  line-height: 1.5;
}

.popup-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.popup-result {
  margin-top: 12px;
}

.popup-thank {
  margin-top: 14px;
  border: 1px solid #b9d4ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #eff5ff);
  padding: 14px;
}

.popup-thank-title {
  margin: 0;
  color: #183a8b;
  font-size: 20px;
  font-weight: 800;
}

.popup-thank-text {
  margin: 8px 0 12px;
  color: #4f5f90;
}

.popup-card:not(.is-thank-mode) .popup-thank {
  display: none !important;
}

.popup-card.is-thank-mode .popup-form,
.popup-card.is-thank-mode .popup-result {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .economy-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .about-side--stats {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    min-height: 360px;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 84px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4e2ff;
    border-radius: 10px;
    background: #f7faff;
    color: #42548c;
    font-weight: 700;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .trust-grid,
  .analytics-grid,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .legal-warning__inner {
    min-height: 92px;
    align-items: flex-start;
    padding: 10px 0;
    flex-direction: column;
    gap: 6px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .cta-wrap {
    grid-template-columns: 1fr;
  }

  .cta-wrap .btn {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  section {
    padding: 68px 0;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }

  .hero-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .demo-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-controls {
    flex-direction: column;
  }

  .quiz-controls .btn {
    width: 100%;
  }

  .about-side {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    min-height: 300px;
  }

  .popup-card {
    padding: 16px;
  }

  .popup-card h3 {
    font-size: 24px;
  }
}
