/* Северный Вектор — базовые стили статического сайта.
   Без внешних зависимостей и CDN: сайт должен открываться автономно. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-dark: #10161d;
  --text: #1a222c;
  --text-muted: #5b6875;
  --line: #dfe5ea;
  --accent: #0f6f6c;
  --accent-soft: #e3f2f1;
  --radius: 10px;
  --wrap: 1120px;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .95rem;
}
.nav a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* Hero */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1100px 380px at 15% -10%, #e8f3f2 0%, rgba(232, 243, 242, 0) 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero .lead { font-size: 1.1rem; color: var(--text-muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0c5a58; text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: #c6ced6; text-decoration: none; }

/* Sections */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 70ch; margin-bottom: 32px; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-weight: 700;
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { border-left: 3px solid var(--accent); padding-left: 16px; }
.stat b { display: block; font-size: 1.7rem; line-height: 1.1; }
.stat span { color: var(--text-muted); font-size: .9rem; }

.list { margin: 0; padding: 0; list-style: none; }
.list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--accent);
}

.muted { color: var(--text-muted); }
.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; background: var(--bg-soft); }

dl.contacts { margin: 0; }
dl.contacts div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.contacts dt { color: var(--text-muted); }
dl.contacts dd { margin: 0; }

.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }

/* CTA + footer */
.cta {
  background: var(--bg-dark);
  color: #eef2f5;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.cta h2 { margin: 0; color: #fff; }
.cta p { margin: 6px 0 0; color: #b9c4cd; }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--text-muted); font-size: .9rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer a { color: var(--text-muted); }
.site-footer .legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* 404 */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.error-page .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--accent-soft); line-height: 1; }

@media (max-width: 860px) {
  .grid-3, .grid-2, .stats { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  .nav { margin-left: 0; }
  section { padding: 48px 0; }
  .cta { padding: 28px; }
  dl.contacts div { grid-template-columns: 1fr; gap: 2px; }
}
