:root {
  --ink: #0d2b45;
  --ink-soft: #5b6b7c;
  --ink-faint: #8a97a4;
  --accent: #0b5fa5;
  --accent-dark: #084a80;
  --accent-bg: #e6f1fb;
  --line: #dfe4ea;
  --line-soft: #eef1f4;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --radius: 8px;
  --wrap: 1080px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 42px; line-height: 1.2; }
h2 { font-size: 28px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.4; }
p { margin: 0 0 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; display: block; }
.brand span { line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav .nav-phone { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Hero */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line-soft); }
.hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 620px; margin-top: 20px; }
.eyebrow {
  display: inline-block; font-size: 13px; color: var(--accent);
  background: var(--accent-bg); padding: 5px 12px; border-radius: 20px; margin-bottom: 20px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-faint); }

/* Sections */
section { padding: 64px 0; border-bottom: 1px solid var(--line-soft); }
section:last-of-type { border-bottom: 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); margin: 12px 0 0; }
.alt { background: var(--bg-alt); }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.card .code {
  display: inline-block; font-size: 12px; color: var(--accent);
  background: var(--accent-bg); padding: 2px 9px; border-radius: 4px; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

/* Service list */
.services { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.services li {
  border-bottom: 1px solid var(--line);
  padding: 18px 0 18px 34px; position: relative; font-size: 16px;
}
.services li::before {
  content: ""; position: absolute; left: 8px; top: 27px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { background: var(--bg); padding: 22px 20px; }
.facts .value { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.facts .label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* Requisites table */
.req { width: 100%; border-collapse: collapse; font-size: 15px; }
.req th, .req td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { color: var(--ink-soft); font-weight: 400; width: 38%; padding-right: 24px; }
.req tr:last-child th, .req tr:last-child td { border-bottom: 0; }

/* Contacts */
.contact-list { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { display: block; font-size: 13px; color: var(--ink-soft); }

.note { font-size: 14px; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }

/* Inner page */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line-soft); }
.breadcrumb { font-size: 14px; color: var(--ink-faint); margin-bottom: 16px; }
.toc { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }

.activity { list-style: none; padding: 0; margin: 0; }
.activity li { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-bottom: 16px; }
.activity .code {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-bg); padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.activity p { margin: 0; font-size: 15px; color: var(--ink-soft); }

@media (max-width: 720px) {
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .hero { padding: 48px 0 44px; }
  section { padding: 48px 0; }
  .nav { gap: 16px; font-size: 13px; }
  .nav a:not(.nav-phone) { display: none; }
  .req th { width: auto; display: block; padding-bottom: 2px; border-bottom: 0; }
  .req td { display: block; padding-top: 0; }
}
