:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #121a2e;
  --muted: #5b6680;
  --line: #e2e7f0;
  --primary: #2f5bff;
  --primary-dark: #2148e0;
  --primary-soft: #eaf0ff;
  --dark: #0e1630;
  --dark-2: #172247;
  --success: #12a36b;
  --danger: #d93b3b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 26, 46, .06), 0 8px 24px rgba(18, 26, 46, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
img { display: block; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 14px 22px;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(47, 91, 255, .25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--primary-soft); }
.btn-ghost { background: var(--primary-soft); color: var(--primary); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid rgba(47, 91, 255, .45); outline-offset: 2px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 22, 48, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 20px; }
.logo b { color: #8ea8ff; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: #c9d2ea; text-decoration: none; font-size: 15px; }
.nav a:hover { color: #fff; }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; position: relative; margin: 0 auto; content: "";
}
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }

/* Hero */
.hero {
  background: radial-gradient(900px 500px at 85% 10%, rgba(47, 91, 255, .35), transparent 60%), linear-gradient(180deg, var(--dark), var(--dark-2));
  color: #fff; padding: 72px 0 88px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: #8ea8ff; }
.hero .lead { font-size: 19px; color: #c9d2ea; max-width: 560px; }
.hero-search {
  display: flex; gap: 8px; margin: 28px 0 32px; max-width: 560px;
  background: #fff; padding: 6px; border-radius: 14px;
}
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 12px; font: inherit; color: var(--text); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-stats { display: flex; gap: 36px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 28px; }
.hero-stats span { color: #9fabc9; font-size: 14px; }

.hero-card {
  background: #fff; color: var(--text); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(1.5deg);
}
.hc-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f1f4fa; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #d3d9e6; }
.hc-file { margin-left: 8px; font-size: 13px; color: var(--muted); }
.hc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hc-table th, .hc-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hc-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.hc-table td:first-child { font-variant-numeric: tabular-nums; }
.hc-foot { padding: 12px 16px; font-size: 13px; color: var(--success); font-weight: 600; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 640px; }

/* Catalog */
.toolbar { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 240px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: var(--muted); }
.search input {
  width: 100%; padding: 13px 14px 13px 44px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: var(--surface);
}
.sort { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.sort select, .field select {
  appearance: none; font: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 38px 12px 14px; background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235b6680' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center / 20px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(18, 26, 46, .06), 0 16px 32px rgba(18, 26, 46, .1); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card h3 { margin: 0; }
.badge { background: #fff2e0; color: #b25e00; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.region { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.count { font-size: 15px; color: var(--muted); }
.count b { display: block; font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 18px; }
.tags li { font-size: 12px; background: var(--primary-soft); color: var(--primary); padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-size: 22px; font-weight: 700; white-space: nowrap; }
.card .btn { padding: 11px 18px; }
.card-custom { border-style: dashed; background: transparent; box-shadow: none; justify-content: center; text-align: center; }
.card-custom p { color: var(--muted); font-size: 15px; }

.empty {
  text-align: center; background: var(--surface); border: 1px dashed #c7d0e2; border-radius: var(--radius);
  padding: 48px 24px; max-width: 720px; margin: 0 auto;
}
.empty-icon { font-size: 40px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }

/* Custom order */
.custom-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.custom-text p { color: var(--muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: #e3f7ee; color: var(--success); font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.card-form { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px; position: relative; }

/* Forms */
.lead-form { display: grid; gap: 14px; }
.lead-form h3 { margin-bottom: 4px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 600; color: #34405c; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus, .search input:focus, .sort select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 91, 255, .15);
}
.field .invalid, .field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
.base-summary { font-size: 14px; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--primary); }
.consent.invalid { color: var(--danger); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; color: var(--danger); font-size: 14px; font-weight: 600; }

.form-success { text-align: center; padding: 16px 0; }
.form-success p { color: var(--muted); }
.lead-form.sent > :not(.form-success) { display: none; }
.lead-form.sent .form-success { display: block !important; }
.ok-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e3f7ee; color: var(--success);
  font-size: 32px; font-weight: 700; display: grid; place-items: center;
}

.pills { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 12px; flex-wrap: wrap; }
.pills label { flex: 1; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: block; text-align: center; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pills input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(18, 26, 46, .12); }
.pills input:focus-visible + span { outline: 3px solid rgba(47, 91, 255, .45); }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; margin-bottom: 14px;
}
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

/* FAQ */
details { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--primary); }
details[open] summary::after { content: "−"; }
details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* CTA + footer */
.cta { background: linear-gradient(120deg, var(--primary), #5b3bff); color: #fff; text-align: center; }
.cta p { color: #dfe5ff; font-size: 18px; margin-bottom: 28px; }
.footer { background: var(--dark); color: #9fabc9; padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: #c9d2ea; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9, 14, 30, .6); backdrop-filter: blur(3px); }
.modal-dialog {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: var(--bg); font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted);
}
body.modal-open { overflow: hidden; }

/* Legal page */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal li { color: #34405c; }

@media (max-width: 960px) {
  .hero-inner, .custom-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 520px; transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .header-cta { display: none; }
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--dark); padding: 8px 20px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; }
  .hero { padding: 48px 0 64px; }
  .hero-search { flex-direction: column; }
  .hero-search input { padding: 12px; }
  .hero-stats { gap: 22px; }
  .section { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .card-form, .modal-dialog { padding: 22px 18px; }
  .hc-table th:last-child, .hc-table td:last-child { display: none; }
}
