:root {
  --bg: #f4f6fa;          /* светлый фон страницы */
  --surface: #ffffff;      /* карточки */
  --surface-2: #eef2f8;    /* лёгкие плашки */
  --line: #e4eaf2;         /* границы */
  --text: #24344b;         /* основной текст */
  --muted: #5d6f86;        /* вторичный текст */
  --navy: #102a4c;         /* заголовки, тёмные блоки */
  --navy-2: #0c2140;       /* градиент тёмных блоков */
  --red: #e12d39;          /* акцент / CTA */
  --red-dark: #c21f2c;
  --blue: #2364d2;         /* ссылки, иконки, галочки */
  --blue-soft: #e9f0fb;    /* фон иконок */
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 8px 28px rgba(16, 42, 76, 0.08);
  --shadow-lg: 0 16px 48px rgba(16, 42, 76, 0.14);
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.3px;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }

.center { text-align: center; }
.mt { margin-top: 26px; }
.mb { margin-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: 0.87rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; box-shadow: 0 10px 26px rgba(225, 45, 57, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(225, 45, 57, 0.44); transform: translateY(-2px); }
.btn-ghost { border-color: #d3dce8; color: var(--navy); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.center-buttons { justify-content: center; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 70;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { color: var(--red); display: flex; }
.logo-text { font-size: 1.05rem; letter-spacing: 0.2px; white-space: nowrap; line-height: 1; color: var(--navy); }
.logo-text b { color: var(--red); font-weight: 800; }

.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { color: #47596f; font-size: 0.92rem; font-weight: 500; transition: color .15s ease; white-space: nowrap; }
.nav a:hover { color: var(--navy); }
.nav a.active { color: var(--red); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 16px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero (главная) ===== */
.hero {
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(35, 100, 210, 0.10), transparent 60%),
    linear-gradient(180deg, #eaf0f8 0%, var(--bg) 100%);
  padding: 64px 0 48px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.eyebrow {
  display: inline-block; color: var(--blue); background: var(--blue-soft);
  font-family: var(--font-head); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; font-size: 0.76rem;
  margin-bottom: 18px; padding: 7px 14px; border-radius: 100px;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); letter-spacing: -1.2px; }
.hero-lead { font-size: 1.13rem; color: var(--muted); margin: 18px 0 28px; max-width: 540px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }

.hero-media { position: relative; }
.hero-media img {
  display: block; width: 100%; height: 420px; object-fit: cover;
  border-radius: 22px; box-shadow: var(--shadow-lg);
}
.hero-media::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 5px;
  background: linear-gradient(90deg, #fff 0 33%, #2364d2 33% 66%, #e12d39 66% 100%);
  border-radius: 100px; opacity: .9;
}

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
}
.stat-num { display: block; font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.stat-label { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 6px; }
.disclaimer-mini { margin-top: 22px; color: #8d9cb0; font-size: 0.8rem; }

/* ===== Sections ===== */
.section { padding: 78px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-tag {
  display: inline-block; color: var(--red); font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px; font-size: 0.76rem; margin-bottom: 12px;
}
.section h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); letter-spacing: -0.7px; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }
.subhead { font-size: 1.28rem; margin: 44px 0 20px; color: var(--navy); }

/* ===== Grids ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.prose p { margin-bottom: 16px; color: #44566e; }
.prose b { color: var(--navy); }

.feature-list { list-style: none; display: grid; gap: 13px; }
.feature-list li { position: relative; padding-left: 32px; color: #3c4f68; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--blue-soft);
}
.feature-list li::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px;
  border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ===== Cards ===== */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.13rem; margin-bottom: 9px; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card.sm { padding: 22px; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 44px; padding: 0 12px; margin-bottom: 14px;
  background: var(--blue-soft); border-radius: 12px;
  font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: 1.05rem;
}
.doc-num { font-family: var(--font-head); color: var(--red); font-size: 1.3rem; font-weight: 800; display: block; margin-bottom: 6px; }

.spec { position: relative; }
.spec.featured { border-color: #f3c4c9; background: linear-gradient(180deg, #fff7f7, var(--surface) 55%); }
.spec-badge {
  position: absolute; top: -11px; left: 20px; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: .4px;
  padding: 4px 12px; border-radius: 100px; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(225,45,57,.3);
}

/* mini cards (цифры) */
.mini-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow);
}
.mini-card.highlight { border-color: #f3c4c9; background: linear-gradient(180deg, #fff7f7, var(--surface)); }
.mini-num { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.mini-card.highlight .mini-num { color: var(--red); }
.mini-card span:last-child { color: var(--muted); font-size: 0.9rem; }

/* ===== Таблица (если используется) ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.compare thead th { background: var(--surface-2); font-family: var(--font-head); color: var(--navy); }
.compare td:first-child { color: var(--muted); }
.compare td:not(:first-child) { text-align: center; }

/* ===== БПЛА ===== */
.bpla-roles .card { padding: 18px; }
.bpla-roles .card h3 { font-size: 1.02rem; }

/* ===== Картинки ===== */
.feature-img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.media-row { align-items: center; }
.media-row .feature-img { max-height: 400px; object-fit: cover; }
.spec-thumb {
  width: 100%; height: 160px; object-fit: cover; border-radius: 12px;
  margin-bottom: 14px;
}
.region-img {
  width: 100%; height: 190px; object-fit: cover; border-radius: 12px;
  margin-bottom: 20px;
}

/* ===== Шаги ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
}
.step-num {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; font-family: var(--font-head); font-size: 1.25rem; font-weight: 800;
  margin-bottom: 16px; box-shadow: 0 8px 20px rgba(225,45,57,.28);
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ===== Регионы ===== */
.regions { gap: 24px; }
.region-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.region-card .muted.small { margin-top: auto; padding-top: 10px; }
.region-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.region-head h3 { font-size: 1.45rem; }
.region-total { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--red); letter-spacing: -0.5px; }
.region-sub { color: var(--muted); margin: 4px 0 18px; }
.region-list { list-style: none; display: grid; gap: 0; margin-bottom: 16px; }
.region-list li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.region-list li:last-child { border-bottom: none; }
.region-list span { color: var(--muted); }
.region-list b { font-family: var(--font-head); color: var(--navy); white-space: nowrap; }

/* ===== Заявка (контакты) ===== */
.apply-box {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 0;
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.apply-text {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 46px 40px; color: #fff;
}
.apply-text h2 { font-size: 1.8rem; color: #fff; }
.apply-text p { color: rgba(255,255,255,.75); margin: 16px 0 26px; }
.apply-contacts { list-style: none; display: grid; gap: 14px; }
.messengers { display: flex; gap: 12px; }
.msg, .msg-link {
  border: 1.5px solid rgba(255,255,255,.3); padding: 9px 18px; border-radius: 10px;
  color: #fff; font-weight: 600; transition: .15s; font-size: .95rem;
}
.msg:hover, .msg-link:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.apply-form { background: var(--surface); padding: 40px 38px; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.87rem; color: var(--muted); font-weight: 600; }
.field input, .field select {
  background: #f7f9fc; border: 1.5px solid #dfe6ef; border-radius: var(--radius-sm);
  padding: 13px 14px; color: var(--text); font-size: 1rem; font-family: inherit; width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; }
.field input::placeholder { color: #9aa9bc; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.83rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--red); }
.form-msg { font-size: 0.92rem; min-height: 1em; }
.form-msg.ok { color: #1e9e56; }
.form-msg.err { color: var(--red); }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 19px 22px; font-family: var(--font-head);
  font-weight: 700; font-size: 1.02rem; color: var(--navy);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-size: 1.5rem; line-height: 1; transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--muted); }

/* ===== Тёмные блоки: финальный CTA ===== */
.final-cta {
  background:
    radial-gradient(800px 400px at 85% 120%, rgba(35,100,210,.25), transparent 60%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%);
}
.final-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.8vw, 2.4rem); }
.final-cta .section-sub { color: rgba(255,255,255,.72); }
.final-cta .hero-buttons { margin-top: 28px; }
.final-cta .btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.final-cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-2); padding: 42px 0 22px; color: rgba(255,255,255,.75); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr; gap: 32px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer-col h4 { font-size: 0.95rem; color: #fff; margin-bottom: 14px; letter-spacing: 0.6px; text-transform: uppercase; }
.footer-col a { display: block; color: rgba(255,255,255,.68); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.site-footer .logo-text { color: #fff; }
.site-footer .muted { color: rgba(255,255,255,.55); }
.logo-footer { margin-bottom: 14px; }
.footer-msgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; max-width: 280px; }
.footer-msgs .msg-link { padding: 9px 0; text-align: center; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 8px; }

/* ===== Верх внутренних страниц ===== */
.page-hero {
  position: relative; padding: 60px 0 54px; text-align: center;
  background:
    radial-gradient(700px 300px at 15% -20%, rgba(35,100,210,.3), transparent 60%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%);
}
.page-hero .eyebrow { background: rgba(255,255,255,.12); color: #cfe0f8; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2rem, 4.8vw, 3rem); color: #fff; letter-spacing: -1px; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 640px; margin: 16px auto 0; font-size: 1.03rem; }
.breadcrumbs { font-size: 0.84rem; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.breadcrumbs a { color: rgba(255,255,255,.55); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: rgba(255,255,255,.85); }

/* CTA под секциями */
.section-cta { text-align: center; margin-top: 38px; }

/* Ссылки-тизеры */
.teaser-link { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-family: var(--font-head); font-weight: 700; margin-top: 8px; }
.teaser-link:hover { color: var(--red-dark); }

/* ===== Модальное окно ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(12, 26, 47, .6); }
.modal-card {
  position: relative; width: 100%; max-width: 460px; background: var(--surface);
  border-radius: 20px; padding: 34px 30px;
  box-shadow: var(--shadow-lg); max-height: 92vh; overflow: auto; animation: modalPop .2s ease;
}
@keyframes modalPop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: #9aa9bc; font-size: 1.9rem; line-height: 1; cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--navy); }
.modal-card h2 { font-size: 1.45rem; }
.modal-sub { color: var(--muted); margin: 10px 0 20px; font-size: .95rem; }
.modal-form { background: none; padding: 0; }
body.modal-open { overflow: hidden; }

/* Мобильное меню (шторка справа) */
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(12, 26, 47, .45); z-index: 55;
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
  .nav {
    display: flex; position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(80vw, 300px); flex-direction: column; gap: 2px; align-items: stretch;
    background: #ffffff; border-left: 1px solid var(--line);
    padding: 80px 22px 24px; margin-left: 0; z-index: 60;
    transform: translateX(100%); transition: transform .28s ease;
    box-shadow: -16px 0 48px rgba(16, 42, 76, .18); overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--surface-2); font-size: 1.02rem; color: var(--navy); }
  .burger { display: flex; margin-left: auto; position: relative; z-index: 65; }
  .header-cta .btn { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-media img { height: 300px; }
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .apply-box { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 40px; }
  .cards-3, .cards-4, .cards-2, .steps, .regions, .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-num { font-size: 1.2rem; }
  .hero-media img { height: 220px; }
  .apply-text, .apply-form { padding: 30px 24px; }
  .region-card { padding: 24px 20px; }
  .logo-text { font-size: 0.98rem; }
}
