:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #14202e;
  --muted: #5b6b7d;
  --line: #dde5ee;
  --brand: #0d6efd;
  --brand-dark: #0a58ca;
  --accent: #ff6b00;
  --ok: #128a54;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 32, 46, .08);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.topbar {
  background: var(--ink);
  color: #cdd8e6;
  font-size: 13px;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; align-items: center;
  padding-top: 7px; padding-bottom: 7px;
}
.topbar a { color: #fff; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px; max-width: var(--maxw); margin: 0 auto;
  flex-wrap: wrap;
}
.logo { font-weight: 800; font-size: 22px; color: var(--ink); white-space: nowrap; }
.logo span { color: var(--brand); }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .03em; }

.main-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }

.header-call { text-align: right; line-height: 1.2; }
.header-call a { font-weight: 800; font-size: 18px; color: var(--ink); white-space: nowrap; }
.header-call small { display: block; font-size: 11px; color: var(--muted); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 700; border: 0;
  cursor: pointer; font-size: 15px; text-align: center;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #e05f00; }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-ghost:hover { background: #eaf2ff; color: var(--brand-dark); }
.btn-block { display: block; width: 100%; }

/* Badge / notice */
.notice {
  background: #eaf2ff; border-left: 4px solid var(--brand);
  padding: 12px 16px; border-radius: 8px; font-size: 14px; color: #16324f;
}

/* Hero */
.hero { background: linear-gradient(160deg, #eef4ff 0%, #ffffff 55%); padding: 48px 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 16px; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-facts { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.hero-facts b { color: var(--ink); display: block; font-size: 20px; }

.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.hero-card h3 { margin: 0 0 4px; font-size: 18px; }
.form-lead { margin: 0 0 16px; font-size: 14px; color: var(--muted); }

/* Sections */
section.block { padding: 44px 0; }
.section-title { font-size: clamp(22px, 3vw, 32px); margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 26px; max-width: 720px; }

/* Cards grid */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card .vol { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1; }
.card .price { font-size: 20px; font-weight: 800; margin: 14px 0 4px; }
.card .price small { font-weight: 500; color: var(--muted); font-size: 13px; }
.card ul { margin: 10px 0 16px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.card .card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

/* Specs */
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.specs th { width: 45%; color: var(--muted); font-weight: 500; background: #f3f7fc; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step::before {
  counter-increment: s; content: counter(s);
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; border-radius: 50%; font-weight: 800; margin-bottom: 10px;
}

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); color: var(--brand); }
.faq-item .faq-body { padding: 16px 18px; color: var(--muted); }

/* Form */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 15px; font-family: inherit; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid #b9d4ff; border-color: var(--brand);
}

form.js-order {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.field-opt { font-weight: 500; color: var(--muted); }

form.js-order input:not([type="radio"]):not([name="hp"]) {
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 1.5px solid #d5deea;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
form.js-order input[type="tel"] {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .03em;
}
form.js-order input:not([type="radio"])::placeholder {
  color: #8ea0b3;
  font-weight: 500;
  letter-spacing: 0;
}
form.js-order input:not([type="radio"]):hover { border-color: #b7c6d8; }
form.js-order input:not([type="radio"]):focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .16);
}
form.js-order input.is-invalid {
  border-color: #d64545;
  background: #fff8f7;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, .14);
}
form.js-order input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--ink);
}

form.js-order .btn {
  margin: 0;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 16px;
}
form.js-order .btn:disabled { opacity: .7; cursor: wait; }

.form-status { margin: 0; font-size: 14px; line-height: 1.4; }
.form-status:empty { display: none; }
.form-status.ok,
.form-status.err { padding: 10px 12px; border-radius: 10px; }
.form-status.ok { color: var(--ok); background: #e8f7ef; }
.form-status.err { color: #b42318; background: #fdecea; }

/* Docs */
.doc-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px; margin-bottom: 12px;
}
.doc-ico { font-size: 26px; }
.doc-item h4 { margin: 0 0 4px; font-size: 16px; }
.doc-item p { margin: 0; font-size: 13px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #b9c7d8; padding: 40px 0 26px; margin-top: 50px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.site-footer a { color: #dbe6f2; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-bottom { border-top: 1px solid #2b3a4c; margin-top: 26px; padding-top: 18px; font-size: 12px; color: #8798ab; }
.footer-bottom .disclaimer { margin-bottom: 8px; color: #a9bacd; }

/* Breadcrumbs */
.breadcrumbs { font-size: 13px; color: var(--muted); padding: 14px 0; }
.breadcrumbs a { color: var(--muted); }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Mobile sticky order bar */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px; box-shadow: 0 -6px 20px rgba(20,32,46,.12);
}
.mobile-bar .btn { flex: 1; padding: 14px 10px; font-size: 16px; }
.mobile-bar .btn-call { background: var(--ink); flex: 0 0 auto; padding: 14px 18px; }

/* Chips выбора объёма с ценой */
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chip { position: relative; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip > span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 64px; text-align: left; padding: 10px 32px 10px 12px;
  border: 1.5px solid #d5deea; border-radius: 12px; cursor: pointer;
  background: #fbfcfe; line-height: 1.2; position: relative;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.chip:hover > span { border-color: #b7c6d8; }
.chip .chip-vol { display: block; font-weight: 800; font-size: 16px; color: var(--ink); }
.chip .chip-price { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.chip input:checked + span {
  border-color: var(--brand); background: #f3f8ff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}
.chip input:checked + span::after {
  content: "";
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2 6.4 11.1 12.5 4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.chip input:checked + span .chip-vol { color: var(--brand-dark); }
.chip input:checked + span .chip-price { color: var(--brand); }
.chip input:focus-visible + span { outline: 2px solid #b9d4ff; outline-offset: 1px; }

/* Итог в форме */
.order-total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f4f8fd; border: 1px solid #d7e5f6; border-radius: 12px;
  padding: 12px 14px; font-size: 14px; color: var(--muted); margin: 0;
}
.order-total b { font-size: 22px; font-weight: 800; color: var(--ink); white-space: nowrap; letter-spacing: -.02em; }
.order-total .ot-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.order-total .ot-note { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }

@media (max-width: 980px) {
  .hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .main-nav { order: 3; width: 100%; }
}

@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .header-call { margin-left: auto; }
  .topbar .container { font-size: 12px; }
  section.block { padding: 32px 0; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 74px; }
  .site-footer { margin-bottom: 0; }
  .hero { padding: 26px 0; }
  .hero p.lead { font-size: 16px; }
  .hero-facts { display: none; }
  .hero-grid { gap: 20px; }
  .main-nav { gap: 14px; font-size: 14px; }
  .main-nav a { font-size: 14px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 14px; }
  .specs th { width: 48%; }
  /* На карточке формы липкость отключаем на телефоне */
  .card[style*="sticky"] { position: static !important; }
}

.form-note { display: block; font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--ink); }

