/* Nodivo — фирменный стиль
   Шрифты: IBM Plex Sans / IBM Plex Mono — полная кириллица, техничный характер.
   Акцент: глубокий сине-зелёный. Сигнальный зелёный только для индикаторов состояния. */

:root {
  --bg:          #FAFBFB;
  --surface:     #FFFFFF;
  --surface-alt: #F2F5F5;
  --ink:         #0E1418;
  --muted:       #59676F;
  --rule:        #DDE3E5;
  --rule-soft:   #EAEFF0;
  --accent:      #0E6B57;
  --accent-ink:  #0B5344;
  --accent-soft: #E6F2EE;
  --signal:      #17A673;

  --f-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --wrap: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0C1114; --surface:#131A1E; --surface-alt:#161F24;
    --ink:#E6EDEF; --muted:#93A4AC; --rule:#232E33; --rule-soft:#1B242A;
    --accent:#4FBF9B; --accent-ink:#6FD3B2; --accent-soft:#162924; --signal:#35C98F;
  }
}
:root[data-theme="dark"] {
  --bg:#0C1114; --surface:#131A1E; --surface-alt:#161F24;
  --ink:#E6EDEF; --muted:#93A4AC; --rule:#232E33; --rule-soft:#1B242A;
  --accent:#4FBF9B; --accent-ink:#6FD3B2; --accent-soft:#162924; --signal:#35C98F;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

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

/* ---------- шапка ---------- */
.topbar { border-bottom: 1px solid var(--rule); background: var(--surface); }
.topbar .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.25rem; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo svg { display: block; }
.logo .word {
  font-weight: 600; font-size: 1.22rem; letter-spacing: -.025em;
}
.nav { display: flex; gap: 1.4rem; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .58rem 1.15rem; border-radius: 6px;
  background: var(--accent); color: #fff !important;
  font-weight: 500; font-size: .93rem; text-decoration: none;
  border: 1px solid var(--accent); transition: background .15s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent) !important; }
.btn.ghost:hover { background: var(--accent-soft); }

/* ---------- типографика ---------- */
h1, h2, h3 { letter-spacing: -.022em; text-wrap: balance; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.2; }
h3 { font-size: 1.06rem; line-height: 1.35; }
p { margin: 0; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 44rem; }
.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

section.band { padding: 4rem 0; border-top: 1px solid var(--rule-soft); }
section.band:first-of-type { border-top: 0; }
.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.stack-lg { display: flex; flex-direction: column; gap: 2.2rem; }

/* ---------- герой ---------- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero .stack { gap: 1.4rem; max-width: 46rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .4rem; }
.hero-specs {
  display: flex; flex-wrap: wrap; gap: .55rem 2rem;
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--rule);
  font-size: .92rem; color: var(--muted);
}
.hero-specs b { color: var(--ink); font-weight: 600; }
.dot {
  display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--signal); margin-right: .45rem; vertical-align: .04em;
}

/* ---------- тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.plan {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 8px; padding: 1.4rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.plan.featured { border-color: var(--accent); }
.plan-name { font-family: var(--f-mono); font-size: .84rem; font-weight: 500; color: var(--accent); letter-spacing: .04em; }
.plan-price { display: flex; align-items: baseline; gap: .3rem; }
.plan-price .num { font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--muted); font-size: .9rem; }
.plan-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .92rem; }
.plan-specs li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--rule); padding-bottom: .35rem; }
.plan-specs li:last-child { border-bottom: 0; }
.plan-specs .v { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: auto; }

/* ---------- сетка карточек ---------- */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.6rem 2rem; }
.feat { display: flex; flex-direction: column; gap: .45rem; }
.feat h3 { font-size: 1rem; }
.feat p { color: var(--muted); font-size: .94rem; }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.6rem 2rem; counter-reset: s; }
.step { display: flex; flex-direction: column; gap: .4rem; }
.step .n {
  font-family: var(--f-mono); font-size: .8rem; color: var(--accent);
  border-top: 2px solid var(--accent); padding-top: .5rem; width: 100%;
}
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- юридические страницы ---------- */
.doc { padding: 3rem 0 5rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(1.65rem, 4vw, 2.2rem); margin-bottom: .6rem; }
.doc .updated { color: var(--muted); font-size: .9rem; font-family: var(--f-mono); }
.doc h2 { font-size: 1.18rem; margin: 2.4rem 0 .8rem; padding-bottom: .45rem; border-bottom: 1px solid var(--rule); }
.doc h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; }
.doc p, .doc li { font-size: .97rem; }
.doc p + p { margin-top: .7rem; }
.doc ol, .doc ul { margin: .7rem 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: .45rem; }
.doc ol { counter-reset: none; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .93rem; }
.doc th, .doc td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.doc th { font-weight: 600; border-bottom-color: var(--rule); }
.scroll-x { overflow-x: auto; }

.callout {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: .95rem;
}

/* ---------- реквизиты ---------- */
.req { border: 1px solid var(--rule); background: var(--surface); border-radius: 8px; }
.req dl { margin: 0; display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; }
.req dl > div { padding: .65rem 1.1rem; border-bottom: 1px solid var(--rule-soft); }
.req dl > div:nth-last-child(-n+2) { border-bottom: 0; }
.req dt { font-size: .85rem; color: var(--muted); border-right: 1px solid var(--rule-soft); margin: 0; }
.req dd { margin: 0; font-size: .95rem; }

/* ---------- подвал ---------- */
footer.site {
  border-top: 1px solid var(--rule); background: var(--surface-alt);
  padding: 2.5rem 0 3rem; margin-top: 3rem;
}
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; }
footer.site h4 {
  margin: 0 0 .7rem; font-size: .76rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
footer.site a { color: var(--ink); text-decoration: none; font-size: .93rem; }
footer.site a:hover { color: var(--accent); text-decoration: underline; }
.legal {
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: .86rem; line-height: 1.6;
}
.legal .mono { font-size: .85rem; }

@media (max-width: 720px) {
  .req dl { grid-template-columns: 1fr; }
  .req dt { border-right: 0; padding-bottom: 0; border-bottom: 0; }
  .req dl > div:nth-child(odd) { border-bottom: 0; padding-bottom: .1rem; }
  .nav { gap: 1rem; width: 100%; margin-left: 0; }
}
