:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f6f9ff;
  --text: #1d2b3f;
  --muted: #62738c;
  --border: #d9e3f0;
  --accent: #00a86b;
  --accent-2: #2d61d8;
  --shadow: 0 16px 42px rgba(21, 43, 79, 0.1);
  --radius: 14px;
  --radius-sm: 12px;
  --container: 1160px;
  --focus: 0 0 0 3px rgba(45, 97, 216, 0.24);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, Manrope, "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(0, 168, 107, 0.12), transparent 58%),
    radial-gradient(700px 420px at 95% 2%, rgba(45, 97, 216, 0.14), transparent 60%),
    var(--bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.top-strip {
  border-bottom: 1px solid rgba(98, 115, 140, 0.18);
  background: rgba(255, 255, 255, 0.85);
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  padding: 9px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(246, 250, 255, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  transition: 0.28s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(98, 115, 140, 0.22);
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  grid-column: 1;
}
.logo span { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}
.main-nav a:hover {
  color: var(--text);
  border-color: rgba(98, 115, 140, 0.3);
  background: rgba(226, 234, 246, 0.65);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 3;
  justify-self: end;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-height: 46px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible,
.icon-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
  border-color: rgba(0, 168, 107, 0.9);
  box-shadow: 0 10px 24px rgba(0, 168, 107, 0.25);
}
.btn-primary:hover {
  background: #06b875;
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text);
  background: rgba(241, 246, 253, 0.85);
  border-color: rgba(98, 115, 140, 0.28);
}
.btn-secondary:hover {
  background: rgba(232, 240, 251, 0.95);
  border-color: rgba(98, 115, 140, 0.4);
}

.btn-ghost {
  color: #244da9;
  background: rgba(45, 97, 216, 0.1);
  border-color: rgba(45, 97, 216, 0.32);
}
.btn-ghost:hover {
  background: rgba(45, 97, 216, 0.16);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(98, 115, 140, 0.28);
  background: rgba(245, 249, 255, 0.9);
  color: #294a7e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  transition: 0.18s ease;
}
.icon-btn:hover {
  border-color: rgba(0, 168, 107, 0.5);
  color: #00794d;
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.mobile-menu {
  display: none;
  position: relative;
}
.menu-toggle {
  user-select: none;
}
.mobile-menu summary {
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  border: 1px solid rgba(98, 115, 140, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 26px rgba(31, 52, 86, 0.18);
  padding: 8px;
  display: grid;
  gap: 4px;
  z-index: 80;
}
.mobile-menu:not([open]) .mobile-menu-panel {
  display: none;
}
.mobile-menu-panel a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: #23406b;
  font-size: 14px;
  font-weight: 600;
}
.mobile-menu-panel a:hover {
  background: rgba(45, 97, 216, 0.1);
}
.phone-btn {
  white-space: nowrap;
  font-weight: 700;
}

main {
  padding: 30px 0 96px;
  display: grid;
  gap: 18px;
}

.section {
  background: linear-gradient(180deg, rgba(45, 97, 216, 0.02), rgba(255, 255, 255, 0)), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(45, 97, 216, 0.05), transparent 35%);
}

.hero {
  padding: 36px;
  background:
    radial-gradient(500px 280px at 0% 0%, rgba(0, 168, 107, 0.1), transparent 72%),
    radial-gradient(560px 320px at 100% 0%, rgba(45, 97, 216, 0.12), transparent 74%),
    var(--surface);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 18px;
  align-items: stretch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6781a6;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: rgba(103, 129, 166, 0.65);
}

h1, h2, h3 {
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 800;
}
h2 {
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 760;
}
h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

p { margin: 0 0 12px; color: var(--muted); }
.lead {
  font-size: clamp(16px, 2vw, 21px);
  color: #51647f;
  max-width: 70ch;
}
.small { font-size: 13px; color: #72839b; }

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.badge {
  border-radius: 999px;
  font-size: 12px;
  color: #2c4c78;
  padding: 7px 10px;
  border: 1px solid rgba(98, 115, 140, 0.25);
  background: rgba(237, 243, 252, 0.9);
}
.brand-statement {
  margin-top: 14px;
  font-size: clamp(21px, 2.8vw, 34px);
  line-height: 1.2;
  font-weight: 780;
  color: #1f3554;
}

.system-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(98, 115, 140, 0.24);
  border-radius: 14px;
  background: rgba(245, 249, 255, 0.85);
  padding: 16px;
}
.system-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.metric {
  border: 1px solid rgba(98, 115, 140, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 108px;
}
.metric strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  color: #1d3558;
}
.metric span {
  font-size: 11px;
  line-height: 1.35;
  color: #6f84a4;
  max-width: 20ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-cta-center {
  justify-content: center;
}

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

.card {
  border: 1px solid rgba(98, 115, 140, 0.24);
  background: rgba(250, 252, 255, 0.92);
  border-radius: 13px;
  padding: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 115, 140, 0.38);
  box-shadow: 0 16px 26px rgba(31, 52, 86, 0.15);
}
.card p:last-child { margin-bottom: 0; }

.car-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(98, 115, 140, 0.2);
  background: #ffffff;
  margin-bottom: 12px;
}

.car-photo.compact {
  aspect-ratio: 16 / 8;
  margin-bottom: 10px;
}

.eqm5-scale {
  object-fit: contain;
  padding: 5%;
  background: #ffffff;
  border-color: transparent;
}

.card.highlight {
  background:
    linear-gradient(180deg, rgba(45, 97, 216, 0.08), rgba(45, 97, 216, 0.02)),
    rgba(250, 252, 255, 0.95);
  border-color: rgba(45, 97, 216, 0.32);
}

.card.strong {
  background:
    linear-gradient(180deg, rgba(0, 168, 107, 0.08), rgba(0, 168, 107, 0.02)),
    rgba(247, 253, 250, 0.95);
  border-color: rgba(0, 168, 107, 0.32);
}
.card.strong p,
.card.strong li { color: #4d6f60; }

.offer-banner {
  background:
    linear-gradient(95deg, rgba(45, 97, 216, 0.14), rgba(0, 168, 107, 0.12)),
    rgba(246, 250, 255, 0.98);
  border-color: rgba(45, 97, 216, 0.3);
}
.offer-banner h2 { max-width: 28ch; }
.offer-banner p { color: #526982; }

.steps { counter-reset: step; }
.steps .card h3::before {
  counter-increment: step;
  content: "0" counter(step) " · ";
  color: #3f6fd2;
  font-variant-numeric: tabular-nums;
}

ul.clean {
  margin: 0;
  padding-left: 18px;
  color: #60758f;
}
ul.clean li { margin: 7px 0; }
.price-emphasis {
  display: inline-block;
  font-weight: 800;
  color: #005a39;
  background: rgba(0, 168, 107, 0.14);
  border: 1px solid rgba(0, 168, 107, 0.28);
  border-radius: 8px;
  padding: 1px 7px;
}

.calc-box {
  border: 1px solid rgba(45, 97, 216, 0.28);
  border-radius: 13px;
  padding: 16px;
  background: rgba(245, 249, 255, 0.86);
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
label.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6d819e;
}

input, select, textarea {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(98, 115, 140, 0.32);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}
input::placeholder,
textarea::placeholder { color: #72849a; }
textarea {
  min-height: 110px;
  resize: vertical;
}

.result-box {
  margin-top: 12px;
  border-radius: 11px;
  border: 1px dashed rgba(45, 97, 216, 0.42);
  background: rgba(45, 97, 216, 0.06);
  padding: 12px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}
.result-row strong { color: #1f3f72; }

.faq details {
  border: 1px solid rgba(98, 115, 140, 0.24);
  border-radius: 12px;
  background: rgba(249, 252, 255, 0.94);
  padding: 12px;
}
.faq details + details { margin-top: 9px; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #29405f;
}
.faq .answer {
  margin-top: 9px;
  color: #6a7f9d;
}

.table-wrap { overflow-x: auto; }
.car-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.car-cell img {
  width: 92px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(98, 115, 140, 0.22);
  background: #ffffff;
}
.car-cell img.eqm5-scale {
  padding: 5%;
  border-color: transparent;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  border: 1px solid rgba(98, 115, 140, 0.22);
  padding: 11px 12px;
  text-align: left;
  font-size: 14px;
}
th {
  background: rgba(45, 97, 216, 0.14);
  color: #254579;
}
tr:nth-child(even) td { background: rgba(45, 97, 216, 0.02); }
tr:hover td { background: rgba(0, 168, 107, 0.06); }

.form-wrap {
  border: 1px solid rgba(98, 115, 140, 0.24);
  border-radius: 13px;
  padding: 16px;
  background: rgba(249, 252, 255, 0.95);
}
.bitrix-shell {
  border: 1px solid rgba(45, 97, 216, 0.26);
  border-radius: 16px;
  padding: 14px;
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(0, 168, 107, 0.1), transparent 70%),
    radial-gradient(420px 220px at 100% 0%, rgba(45, 97, 216, 0.12), transparent 72%),
    #f8fbff;
  box-shadow: 0 14px 30px rgba(31, 52, 86, 0.1);
}
.bitrix-shell-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 2px 4px;
}
.bitrix-kicker {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #2d61d8;
}
.bitrix-note {
  margin: 0;
  font-size: 14px;
  color: #5f728f;
}
.bitrix-form-wrap {
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(98, 115, 140, 0.22);
}
.bitrix-form-wrap iframe {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.form-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.agree {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  color: #657b97;
  font-size: 13px;
  line-height: 1.35;
}
.agree input[type="checkbox"] {
  margin: 1px 0 0;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.status {
  min-height: 22px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}
.status.error { color: #c63737; }
.status.ok { color: #1f8f5c; }
.thanks {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 168, 107, 0.32);
  background: rgba(0, 168, 107, 0.08);
  padding: 12px;
}
.hidden { display: none; }

.footer {
  padding: 22px 0 90px;
}
.footer p {
  margin: 0;
  color: #70849f;
  font-size: 13px;
}

.pricing-cards { display: none; }
.old-price {
  text-decoration: line-through;
  color: #7f94af;
  margin-right: 8px;
}
.rent-discount {
  border-color: rgba(0, 168, 107, 0.3);
  background:
    linear-gradient(160deg, rgba(0, 168, 107, 0.09), rgba(0, 168, 107, 0.03)),
    var(--surface);
}

.mobile-sticky {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 60;
  display: none;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid rgba(98, 115, 140, 0.26);
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}
.mobile-sticky .btn,
.mobile-sticky .icon-btn { flex: 1; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 0.48s ease, transform 0.48s ease, filter 0.48s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (max-width: 1024px) {
  .container { width: min(var(--container), calc(100% - 30px)); }
  .hero-grid, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-grid, .system-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .header-row {
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
  }
  .logo,
  .header-actions {
    grid-column: auto;
  }
  .header-actions {
    display: flex;
    justify-self: end;
    gap: 8px;
  }
  .header-actions > a.icon-btn {
    display: none;
  }
  .header-actions > a.icon-btn[data-channel="telegram"] {
    display: inline-flex;
  }
  .header-actions .phone-btn {
    display: none;
  }
  .header-actions .mobile-menu {
    display: block;
  }
  .header-actions .icon-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    flex: 0 0 40px;
  }
  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .main-nav a { white-space: nowrap; }
  .header-actions { justify-content: space-between; }

  main { padding-top: 20px; gap: 14px; }
  .hero, .section { padding: 18px; }
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid,
  .calc-grid,
  .system-metrics { grid-template-columns: 1fr; }
  .pricing-table-wrap { display: none; }
  .pricing-cards { display: grid; }
  .mobile-sticky { display: none; }
  .bitrix-shell {
    padding: 10px;
    border-radius: 14px;
  }
  .bitrix-shell-head {
    margin-bottom: 8px;
  }
  .bitrix-note {
    font-size: 13px;
  }
  .bitrix-form-wrap {
    padding: 8px;
  }
}

@media (max-width: 430px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .btn { width: 100%; }
  .header-actions .btn-primary,
  .header-actions .btn-secondary,
  .header-actions .icon-btn { width: auto; }
  .header-actions .icon-btn {
    min-width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}
