:root {
  --bg: #ffffff;
  --bg-soft: #f3f7fb;
  --text: #0f1b2d;
  --muted: #5a6b80;
  --line: #dde5ef;
  --accent: #0a5fb4;
  --accent-dark: #084a8c;
  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Кнопки */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 14px 26px; border-radius: 10px; text-decoration: none; font-weight: 700; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Главный экран */
.hero { position: relative; color: #fff; background: #0b2340 url("/images/hero.jpg") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,24,48,.88) 0%, rgba(6,24,48,.55) 60%, rgba(6,24,48,.25) 100%); }
.hero .wrap { position: relative; padding: 120px 20px 110px; }
.hero p { font-size: 1.2rem; max-width: 620px; opacity: .92; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; opacity: .85; margin-bottom: 14px; }

/* Секции */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 760px; }
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); align-items: center; gap: 48px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; }
.card .body { padding: 20px 22px 24px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.stat { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.stat p { margin: 0; color: var(--muted); font-size: .97rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 20px 22px 20px 74px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps b { display: block; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--muted); }

.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Текстовые страницы */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 40px; }
.page-head p { color: var(--muted); margin: 0; max-width: 760px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 860px; }
.doc h2 { font-size: 1.45rem; margin-top: 1.8em; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.note { background: var(--bg-soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.4em 0; }
.table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .97rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { width: 38%; color: var(--muted); font-weight: 600; }
/* Подвал */
.footer { background: #0b1a2e; color: #b8c4d3; padding: 56px 0 28px; font-size: .95rem; }
.footer a { color: #e2e9f2; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #8494a8; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .hero .wrap { padding: 80px 20px 70px; }
  .section { padding: 60px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .table th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
  .table td { display: block; padding-top: 4px; }
}
