:root {
  --bg:          #EEF1FB;
  --surface:     #FFFFFF;
  --surface-2:   #F6F8FD;
  --ink:         #1A1A1A;
  --ink-2:       #2C2C2C;
  --muted:       #6E7480;
  --muted-2:     #9AA0AC;
  --line:        #E1E5F2;
  --line-2:      #DDE3F0;
  --accent:      #1A57EA;
  --accent-soft: #DCE5FB;
  --accent-bg:   #E8EFFC;
  --accent-hi:   #1546C7;

  --success:      #14B85A;
  --success-soft: #DDF5E6;
  --warning:      #F59E0B;
  --warning-soft: #FEF3C7;
  --danger:       #E5484D;
  --danger-soft:  #FDE7E9;

  --font-display: 'Onest', system-ui, -apple-system, sans-serif;
  --font-text:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'PT Mono', ui-monospace, 'Courier New', monospace;

  --container: 1440px;
  --pad: clamp(20px, 3vw, 40px);
  --radius-card: 20px;
  --radius-btn: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.body-text, .body-text p, p.body-text {
  font-family: var(--font-text);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.body-text strong { color: var(--ink); font-weight: 600; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.005em;
}

/* ========== ХЕДЕР ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}
.header-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-nav-inline {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.header-nav-inline .nav-item { position: relative; }
.header-nav-inline .nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); border-radius: 8px;
  transition: all .15s ease; white-space: nowrap;
}
.header-nav-inline .nav-link:hover { background: rgba(26, 87, 234, 0.06); color: var(--accent); }
.header-nav-inline .nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.header-nav-inline .nav-link .chevron { width: 13px; height: 13px; opacity: 0.6; transition: transform .2s ease; }
.header-nav-inline .nav-item:hover .chevron { transform: rotate(180deg); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon {
  width: 28px; height: 28px;
  background: var(--accent); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
}
.brand-icon svg { width: 16px; height: 16px; color: #fff; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}

.header-utils { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.util-phone {
  font-size: 14px; font-weight: 600;
  color: var(--ink); padding: 8px 4px;
  white-space: nowrap;
}
.util-email {
  font-family: var(--font-text);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  white-space: nowrap;
  transition: color .15s ease;
}
.util-email:hover { color: var(--accent); }

.util-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  color: #fff; background: var(--accent); border-radius: 10px;
  transition: all .2s ease; margin-left: 8px; white-space: nowrap;
}
.util-cta:hover { background: var(--accent-hi); transform: translateY(-1px); }
.util-cta svg { width: 14px; height: 14px; }

.header-nav-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad) 14px;
  display: flex; align-items: center; gap: 4px;
}
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; font-size: 15px; font-weight: 500;
  color: var(--ink-2); border-radius: 10px;
  transition: all .15s ease; white-space: nowrap;
}
.nav-link:hover { background: rgba(26, 87, 234, 0.06); color: var(--accent); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-link .chevron { width: 14px; height: 14px; opacity: 0.6; transition: transform .2s ease; }
.nav-item:hover .chevron { transform: rotate(180deg); }
.nav-search {
  margin-left: auto;
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26, 87, 234, 0.06); color: var(--accent);
  transition: all .15s ease;
}
.nav-search:hover { background: var(--accent-soft); }
.nav-search svg { width: 17px; height: 17px; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 320px; background: #fff; border-radius: 14px; padding: 10px;
  box-shadow: 0 12px 40px rgba(20, 30, 60, 0.10), 0 0 0 1px rgba(20, 30, 60, 0.04);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s ease; pointer-events: none; z-index: 80;
}
.dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.dropdown-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); border-radius: 8px; transition: all .12s ease;
}
.dropdown-link:hover { background: var(--bg); color: var(--accent); }

.burger {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(26, 87, 234, 0.06); color: var(--accent);
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.burger span { width: 18px; height: 2px; background: currentColor; border-radius: 1px; transition: all .25s ease; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: #fff;
  z-index: 999;
  padding: 80px 24px 32px;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(10, 20, 40, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.4);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
  transition: all .15s ease;
}
.mobile-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mobile-nav-divider {
  height: 1px; background: var(--line);
  margin: 16px 16px;
}
.mobile-nav-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 16px;
  margin-bottom: 8px;
}
.mobile-nav-sub a {
  padding: 10px 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.mobile-nav-contacts {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-contacts a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
}
.mobile-nav-contacts .phone-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 17px;
}

/* ========== ХЛЕБНЫЕ КРОШКИ ========== */
.breadcrumbs {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--pad) 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--muted);
  transition: color .15s ease;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep {
  color: var(--muted-2);
  opacity: 0.6;
}
.breadcrumbs .current {
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 720px) {
  .breadcrumbs { padding: 10px var(--pad) 6px; font-size: 12px; }
}

/* ========== HERO ========== */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad) 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.hero-left {
  background: linear-gradient(180deg, var(--accent) 0%, #1A4FCC 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.hero-left::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 60%; height: 100%;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.10), transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.14);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  color: #fff;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #fff;
}
.hero-sub {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin-bottom: 8px;
  max-width: 52ch;
  letter-spacing: -0.005em;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-cta-main {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: #fff;
  color: var(--accent);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: all .2s ease;
}
.hero-cta-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.hero-cta-main svg { width: 16px; height: 16px; }
.hero-cta-phone {
  display: flex; flex-direction: column;
  line-height: 1.25;
  transition: color .2s ease;
}
.hero-cta-phone-label {
  font-family: var(--font-text);
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.hero-cta-phone-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.hero-cta-phone:hover .hero-cta-phone-num { color: #DBEAFE; }

.hero-form {
  background: #fff;
  border-radius: var(--radius-card);
  padding: clamp(28px, 3vw, 36px);
  display: flex;
  flex-direction: column;
}
.hero-form .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.hero-form .price-row .from {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-form .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-form .price .unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
.hero-form h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 6px;
  color: var(--ink);
}
.hero-form .form-sub {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}
.field {
  display: flex; flex-direction: column;
  margin-bottom: 12px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 80px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  transition: all .2s ease;
  width: 100%;
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; }

.form-policy {
  font-family: var(--font-text);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 12px;
  letter-spacing: -0.005em;
}
.form-policy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ========== ЧЕКБОКС СОГЛАСИЯ ========== */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
}
.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}
.consent-row input[type="checkbox"]:hover { border-color: var(--accent); }
.consent-row input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.consent-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-row .consent-text {
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.consent-row .consent-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-row .consent-text a:hover { text-decoration: none; }

/* ========== ПОЛОСА МЕТРИК ========== */
.metrics-strip {
  max-width: var(--container);
  margin: 0 auto 60px;
  padding: 0 var(--pad);
}
.metrics-wrap {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.metric {
  display: flex; flex-direction: column; gap: 10px;
}
.metric-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.metric-icon {
  width: 64px; height: 64px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.metric-icon img { width: 100%; height: 100%; object-fit: contain; }
.metric-num {
  display: flex; align-items: baseline; gap: 6px;
}
.metric-num .num-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.metric-num .num-plus,
.metric-num .num-unit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.metric-num .num-unit { color: var(--muted); font-weight: 500; }
.metric-label {
  font-family: var(--font-text);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.metric-divider {
  width: 1px;
  height: 50px;
  background: var(--line);
}

/* ========== СЕКЦИИ ========== */
section.block {
  max-width: var(--container);
  margin: 0 auto;
  padding: 70px var(--pad);
}
.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.block-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}
.block-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
}
.block-sub {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

/* ========== КАК МЫ РАБОТАЕМ ========== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.how-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.how-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.how-step .num {
  width: 26px; height: 26px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.how-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.how-card .body-text {
  font-size: 13.5px;
  line-height: 1.6;
}
.how-icon {
  width: 140px; height: 140px;
  margin-top: auto;
  margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
}
.how-icon img { width: 100%; height: 100%; object-fit: contain; }

/* ========== ПРЕИМУЩЕСТВА ========== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.adv-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: all .25s ease;
}
.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(20, 30, 60, 0.08);
}
.adv-icon {
  width: 140px; height: 140px;
  margin-bottom: 8px;
  margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
}
.adv-icon img { width: 100%; height: 100%; object-fit: contain; }
.adv-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.adv-card .body-text {
  font-size: 13.5px;
  line-height: 1.65;
}

/* ========== КАЛЬКУЛЯТОР-КВИЗ ========== */
.quiz-section {
  background: var(--accent);
  padding: 70px var(--pad);
}
.quiz-wrap { max-width: var(--container); margin: 0 auto; }
.quiz-section .block-eyebrow { color: rgba(255,255,255,0.7); }
.quiz-section .block-title { color: #fff; }
.quiz-section .block-sub { color: rgba(255,255,255,0.75); }

.quiz {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.quiz-progress-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.quiz-progress-row .step-label {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.quiz-progress {
  flex: 1; height: 4px; background: var(--line);
  border-radius: 2px; overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; background: var(--accent);
  width: 20%;
  transition: width .3s ease;
}
.quiz h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--ink);
}
.quiz .quiz-hint {
  font-family: var(--font-text);
  font-size: 14px; font-weight: 400; color: var(--muted);
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 500; font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s ease;
  text-align: left;
}
.quiz-opt:hover { border-color: var(--accent); background: #fff; }
.quiz-opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.quiz-opt-check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quiz-opt.selected .quiz-opt-check { border-color: var(--accent); background: var(--accent); }
.quiz-opt.selected .quiz-opt-check::after {
  content: ""; width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
}
.quiz-controls { display: flex; gap: 10px; margin-top: 24px; }
.quiz-back, .quiz-next {
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  transition: all .15s ease;
}
.quiz-back { background: var(--surface-2); color: var(--ink-2); }
.quiz-back:hover { background: var(--line); }
.quiz-back:disabled { opacity: 0.4; cursor: not-allowed; }
.quiz-next {
  background: var(--accent);
  color: #fff;
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.quiz-next:hover:not(:disabled) { background: var(--accent-hi); }
.quiz-next:disabled { opacity: 0.5; cursor: not-allowed; }
.quiz-next svg { width: 14px; height: 14px; }

.quiz-aside {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 28px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.quiz-aside h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--ink);
}
.quiz-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex: 1;
}
.quiz-sum-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 13px;
}
.quiz-sum-row .key { color: var(--muted); }
.quiz-sum-row .val { color: var(--ink); font-weight: 700; text-align: right; }
.quiz-sum-row .val.empty { color: var(--muted-2); font-weight: 400; }
.quiz-aside .total {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--line-2);
  margin-top: auto;
}
.quiz-aside .total-label {
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 4px;
}
.quiz-aside .total-value {
  font-family: var(--font-display);
  font-weight: 700; font-size: 28px;
  letter-spacing: -0.02em; color: var(--ink);
}
.quiz-aside .total-value .unit { font-size: 14px; font-weight: 500; color: var(--muted); }

/* ========== ПРАЙС ========== */
.price-table-wrap {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: left;
  padding: 18px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background .12s ease;
}
.price-table tbody tr:hover { background: var(--surface-2); }
.price-table tbody tr:last-child { border-bottom: none; }
.price-table td {
  padding: 18px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  vertical-align: middle;
}
.price-table td.position {
  font-weight: 600;
  display: flex; align-items: center; gap: 14px;
}
.price-icon {
  width: 110px; height: 110px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.price-icon img { width: 100%; height: 100%; object-fit: contain; }
.price-table td.tasks {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.price-table td.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}
.price-table td.price .unit { font-size: 13px; font-weight: 500; color: var(--muted); }
.price-table td.action a,
.price-table td.action button {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s ease;
}
.price-table td.action a:hover,
.price-table td.action button:hover { background: var(--accent); color: #fff; }
.price-note {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* ========== FAQ ========== */
.faq-list {
  display: flex; flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-align: left;
  transition: all .15s ease;
}
.faq-q:hover { background: var(--surface-2); }
.faq-q .plus {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  transition: all .2s ease;
  flex-shrink: 0;
}
.faq-item.open .plus { background: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 24px 22px;
  font-family: var(--font-text);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: -0.005em;
}

/* ========== ОТЗЫВЫ ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.review-stars { display: flex; gap: 3px; color: var(--warning); }
.review-stars svg { width: 16px; height: 16px; fill: currentColor; }
.review-text {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  flex: 1;
}
.review-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
}
.review-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.review-company {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ========== SEO ========== */
.seo-block {
  background: #fff;
  border-radius: var(--radius-card);
  padding: clamp(36px, 5vw, 56px);
}
.seo-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}
.seo-block h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--ink);
}
.seo-block .body-text { margin-bottom: 14px; }

/* ========== БОЛЬШАЯ ФОРМА ========== */
.contact-section {
  background: var(--ink);
  padding: 70px var(--pad);
  color: #fff;
}
.contact-wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-wrap .block-eyebrow { color: rgba(255,255,255,0.6); }
.contact-wrap h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #fff;
}
.contact-wrap .body-text {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-row { display: flex; align-items: center; gap: 14px; }
.contact-row .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  width: 90px;
}
.contact-row .value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
.contact-form {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px;
  color: var(--ink);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  margin-bottom: 6px;
}
.contact-form .form-sub {
  font-family: var(--font-text);
  font-size: 14px; font-weight: 400; color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: -0.005em;
}

/* ========== ДРУГИЕ УСЛУГИ ========== */
.other-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.other-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all .2s ease;
}
.other-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
}
.other-icon {
  width: 130px; height: 130px;
  margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
}
.other-icon img { width: 100%; height: 100%; object-fit: contain; }
.other-card .ttl {
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.other-card .arrow {
  margin-top: auto;
  color: var(--accent);
  font-size: 18px;
}

/* ========== ФУТЕР ========== */
.site-footer {
  background: var(--bg);
  padding: 60px var(--pad) 30px;
  border-top: 1px solid var(--line);
}
.footer-wrap { max-width: var(--container); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand .body-text {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.footer-bottom a { color: var(--muted); transition: color .15s ease; }
.footer-bottom a:hover { color: var(--accent); }

/* ========== АДАПТИВ ========== */
@media (max-width: 1280px) {
  .util-email { display: none; }
  .header-nav-inline .nav-link { padding: 8px 10px; font-size: 13.5px; }
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .metrics-wrap { grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px; }
  .metric-divider { display: none; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .other-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .quiz { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .header-nav-inline { display: none; }
  .burger { display: flex; }
}
@media (max-width: 900px) {
  .util-cta span { display: none; }
  .util-cta::after { content: "КП"; }
  /* Телефон ОСТАЁТСЯ — не скрываем */
}
@media (max-width: 720px) {
  section.block { padding: 50px var(--pad); }
  .hero { padding-bottom: 40px; }
  .metrics-wrap { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .metric-divider { display: none; }
  .metric-icon { width: 52px; height: 52px; }
  .quiz { padding: 24px; grid-template-columns: 1fr; gap: 24px; }
  .quiz-options { grid-template-columns: 1fr 1fr; gap: 8px; }
  .quiz-opt { padding: 12px 12px; font-size: 13px; }
  .quiz h3 { font-size: 20px; }
  .quiz-aside { padding: 20px; }
  .quiz-aside h4 { font-size: 15px; margin-bottom: 12px; }
  .quiz-sum-row { padding: 8px 0; font-size: 12px; }
  .quiz-aside .total-value { font-size: 24px; }
  .quiz-section { padding: 50px var(--pad); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .block-head { flex-direction: column; align-items: flex-start; }

  /* 2 колонки на планшете/мобилке для этих блоков */
  .how-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .adv-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .other-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Уплотняем карточки в 2 колонки */
  .how-card { padding: 22px 18px; gap: 10px; }
  .how-card h3 { font-size: 16px; }
  .how-icon { width: 110px; height: 110px; }
  .adv-card { padding: 26px 20px; gap: 10px; }
  .adv-card h3 { font-size: 16px; }
  .adv-icon { width: 110px; height: 110px; margin-left: -8px; }
  .other-card { padding: 20px 16px; gap: 10px; }
  .other-card .ttl { font-size: 14px; }
  .other-icon { width: 90px; height: 90px; }

  /* Прайс-таблица — карточный вид на мобиле */
  .price-table thead { display: none; }
  .price-table, .price-table tbody { display: block; width: 100%; }
  .price-table tr {
    display: block;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  .price-table tr:last-child { border-bottom: none; }
  .price-table td { display: block; padding: 0; }
  .price-table td.position {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.25;
  }
  .price-table td.position .price-icon {
    width: 64px; height: 64px;
    flex-shrink: 0;
  }
  .price-table td.tasks {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .price-table td.price {
    font-size: 17px;
    margin-bottom: 12px;
  }
  .price-table td.action a,
  .price-table td.action button {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
  }

  /* На мобиле уменьшаем лого, но оставляем телефон */
  .brand-name { display: none; }
  .header-top { gap: 12px; padding: 12px var(--pad); }
  .util-phone { font-size: 13.5px; padding: 8px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .util-cta { padding: 9px 14px; font-size: 13px; }
  .util-phone { font-size: 13px; }

  /* На самых узких экранах все 2-колоночные сетки уплотняются ещё */
  .how-grid, .adv-grid, .other-grid { gap: 8px; }
  .how-card, .adv-card { padding: 20px 16px; }
  .other-card { padding: 16px 14px; }
  .how-card h3, .adv-card h3 { font-size: 15px; }
  .how-icon, .adv-icon { width: 90px; height: 90px; }
  .other-icon { width: 72px; height: 72px; }
  .other-card .ttl { font-size: 13px; }

  /* На совсем узких экранах квиз в одну колонку — иначе кнопки нечитаемые */
  .quiz-options { grid-template-columns: 1fr; }
  .quiz { padding: 20px; }
  .price-table tr { padding: 14px; }
}
@media (max-width: 400px) {
  .util-phone { font-size: 12.5px; }
  .util-cta svg { display: none; }
  .util-cta { padding: 9px 12px; }
}

/* ========== МОДАЛКА ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.modal-window {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform .25s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.modal-backdrop.open .modal-window {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: all .15s ease;
}
.modal-close:hover {
  background: var(--ink);
  color: #fff;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-window h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  padding-right: 40px;
  color: var(--ink);
}
.modal-window .form-sub {
  font-family: var(--font-text);
  font-size: 14px; font-weight: 400; color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: -0.005em;
}
@media (max-width: 520px) {
  .modal-window { padding: 28px 22px; }
}

.brand-logo{display:block;width:206px;height:auto;max-width:min(206px,55vw);}
@media (max-width:768px){.brand-logo{width:160px;max-width:min(160px,50vw);}}
