:root {
  --bg: #f4f6f9;
  --paper: #ffffff;
  --ink: #1c2430;
  --muted: #5b6675;
  --line: #dde3ea;
  --brand: #1f4e8c;
  --brand-dark: #163a68;
  --accent: #e8f0fa;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- верхняя полоса с контактами ---------- */
.topbar {
  background: var(--brand-dark);
  color: #dfe8f5;
  font-size: 15px;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #ffffff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .addr { color: #b9c8de; }

/* ---------- шапка и меню ---------- */
.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
}
.brand .brand-sub {
  display: block;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand .brand-name {
  display: block;
  font-size: 22px;
  font-weight: 700;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 9px 16px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { background: var(--accent); color: var(--brand-dark); }
.nav a.active { background: var(--brand); color: #fff; }

/* ---------- содержимое ---------- */
main { padding: 36px 0 48px; }

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 18px; }
h2 { font-size: 23px; margin: 36px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
p { margin: 0 0 14px; }

.lead { font-size: 19px; color: var(--muted); max-width: 760px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 20px;
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.grid .card { margin-bottom: 0; }

ul.plain { padding-left: 20px; margin: 0 0 14px; }
ul.plain li { margin-bottom: 6px; }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
ol.steps li {
  position: relative;
  padding: 0 0 14px 48px;
  margin: 0;
}
ol.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 32px;
  font-size: 15px;
}

/* ---------- таблица реквизитов ---------- */
table.req { border-collapse: collapse; width: 100%; }
table.req th, table.req td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
table.req th { width: 34%; font-weight: 600; color: var(--muted); }
table.req tr:last-child th, table.req tr:last-child td { border-bottom: 0; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 16px; }

/* ---------- список документов ---------- */
ul.docs { list-style: none; padding: 0; margin: 0; }
ul.docs li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
ul.docs li:last-child { border-bottom: 0; }
ul.docs .ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 34px;
}
ul.docs a { font-weight: 600; text-decoration: none; }
ul.docs a:hover { text-decoration: underline; }
ul.docs .note { display: block; font-size: 14px; color: var(--muted); }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand) !important; border: 1px solid var(--brand); }
.btn.ghost:hover { background: var(--accent); }

/* ---------- подвал ---------- */
.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 28px;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 26px; }
  .header .wrap { flex-direction: column; align-items: flex-start; }
  .nav a { padding: 8px 12px; }
  table.req th, table.req td { display: block; width: auto; padding: 4px 0; }
  table.req th { border-bottom: 0; padding-top: 10px; }
}
