:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #eef2f6;
  --text: #16202c;
  --muted: #566476;
  --line: #d9e0e8;
  --accent: #1f5fae;
  --accent-ink: #ffffff;
  --accent-soft: #e3edf9;
  --brand-mark: #16202c;
  --pending: #8a5a00;
  --radius: 10px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161d;
    --surface: #17202a;
    --surface-alt: #141c25;
    --text: #e7ecf2;
    --muted: #9aa8b8;
    --line: #2a3644;
    --accent: #5b9ae6;
    --accent-ink: #0b1118;
    --accent-soft: #1b2a3c;
    --brand-mark: #e7ecf2;
    --pending: #e0b25a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "PT Sans", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }

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

/* шапка */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand svg { width: 30px; height: 30px; }
.brand svg rect { fill: var(--accent); }
.brand svg path { stroke: var(--accent-ink); }
.brand svg circle { fill: var(--accent-ink); }
.nav { display: flex; gap: 4px; margin-right: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; }
.nav a:hover { color: var(--text); background: var(--surface-alt); }
.nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

/* кнопки */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; padding: 11px 20px; border-radius: 8px;
  border: 1px solid var(--accent); white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 7px 14px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); filter: none; }

/* первый экран */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-in { padding: 64px 16px 56px; max-width: 900px; margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.eyebrow { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.hint { color: var(--muted); font-size: .92rem; }

/* секции */
.sec { padding: 56px 0; }
.sec-alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 48px 0 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { color: var(--muted); margin: 0; }
.card-flat p { color: inherit; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mt { margin-top: 28px; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.link-doc { font-weight: 600; }
.facts .unit { font-size: .88rem; }
.facts .price { font-weight: 700; font-size: 1.1rem; white-space: nowrap; text-align: right; }
@media (max-width: 860px) { .facts .price { text-align: left; } }

/* документы */
.docs { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.doc {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.doc-ico {
  width: 52px; height: 60px; border-radius: 6px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: .8rem; letter-spacing: .04em;
}
.doc h2 { font-size: 1.1rem; margin-bottom: .3em; }
.doc h2 a { color: var(--text); text-decoration: none; }
.doc h2 a:hover { color: var(--accent); text-decoration: underline; }
.doc p { color: var(--muted); margin: 0; }
.doc .fname { font-size: .85rem; margin-top: 4px; word-break: break-all; }
.doc-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.size { color: var(--muted); font-size: .85rem; }
.pending { color: var(--pending); font-size: .92rem; white-space: nowrap; }

/* подвал */
.foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; padding: 40px 0 24px; font-size: .95rem; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { margin: 0 0 .35em; }
.foot-h { font-weight: 700; margin-bottom: .6em !important; }
.foot-copy { color: var(--muted); font-size: .85rem; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .cols, .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .hero-in { padding: 44px 16px 40px; }
}
@media (max-width: 560px) {
  .top-in { gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; margin: 0 -10px; }
  .top .btn { margin-left: auto; }
  .doc { grid-template-columns: 1fr; gap: 10px; }
  .doc-ico { display: none; }
  .doc-act { align-items: flex-start; flex-direction: row; align-items: center; gap: 12px; }
}
