@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #16243a;
  --muted: #5b6676;
  --bg: #faf8f4;
  --surface: #ffffff;
  --line: #e4ded3;
  --navy: #0d3b66;
  --green: #2e7d32;
  --green-ink: #1b5e20;
  --humus: #6d4c33;
  --sand: #efe8dc;
  --radius: 10px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ecf2; --muted: #a3acb9; --bg: #12161c; --surface: #1a2029; --line: #2c3440;
    --navy: #8fb8e8; --green: #6cc070; --green-ink: #9ad89d; --humus: #d0a982; --sand: #232a33;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--navy); }
a:hover { color: var(--green-ink); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* шапка */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top__row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo b { display: block; font-size: 17px; }
.logo small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.logo__mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(180deg, var(--green) 0 40%, var(--humus) 40% 72%, var(--navy) 72%); flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; flex: 1; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--green); }
.menu-btn { display: none; margin-left: auto; font: inherit; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--ink); }

/* кнопки */
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; border: 0; }
.btn:hover { background: var(--green-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--surface); }
.btn--small { padding: 8px 16px; font-size: 15px; }
.btn--block { display: block; text-align: center; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #0b140c; } }

/* блоки */
.section { padding: 56px 0; }
.section--sand { background: var(--sand); }
.hero { padding: 64px 0 48px; }
.hero__lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 760px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--green); }
a.card h3 { color: var(--navy); }
.card p:last-child { margin-bottom: 0; }
.card__foot { margin-top: auto; padding-top: 12px; }
.tag { display: inline-block; font-size: 13px; color: var(--green-ink); background: color-mix(in srgb, var(--green) 12%, transparent); border-radius: 999px; padding: 2px 10px; margin: 0 6px 6px 0; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat b { display: block; font-size: 36px; color: var(--navy); line-height: 1.1; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--surface); font-weight: 700; margin-bottom: 8px; display: grid; }
.dl dt { font-weight: 600; margin-top: 10px; }
.dl dd { margin: 0; color: var(--muted); }
.note { border-left: 4px solid var(--humus); background: var(--surface); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.prose { max-width: 780px; }
.prose li { margin: 4px 0; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

/* каталог приборов */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--surface); border-color: var(--navy); }
.search { font: inherit; width: 100%; max-width: 420px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); margin-bottom: 16px; }
.device ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--muted); }
.device__id { font-size: 12px; color: var(--muted); }
.direction { margin-top: 32px; }
[hidden] { display: none !important; }

/* подвал */
.foot { background: var(--navy); color: #e8eef6; padding: 40px 0 96px; margin-top: 40px; font-size: 15px; }
.foot a { color: #fff; }
.foot .muted { color: #b9c6d6; }
.foot__grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.foot__support { font-size: 14px; }
@media (prefers-color-scheme: dark) { .foot { background: #0c1118; } }

.sticky-cta { display: none; }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: 12px; }
  .nav.is-open { display: flex; }
  .top__cta { display: none; }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 6; }
  .section { padding: 40px 0; }
  body { padding-bottom: 72px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .filters button { flex: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
