@font-face { font-family: 'Onest'; font-weight: 400 700; font-display: swap; src: url(/fonts/Onest-400-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-weight: 400 700; font-display: swap; src: url(/fonts/Onest-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400 700; font-display: swap; src: url(/fonts/Onest-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-weight: 400 700; font-display: swap; src: url(/fonts/Onest-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #17191f;
  --muted: #5d6170;
  --line: #e4e2dc;
  --accent: #2b54d9;
  --pdf-bg: #16181d;
  --pdf-ink: #eceef2;
  --pdf-muted: #a3a9b8;
  --pdf-chip: #252a35;
  --stk-bg: linear-gradient(135deg, #ffe9df 0%, #efe8ff 55%, #dff4ec 100%);
  --stk-ink: #1d1b2c;
  --stk-muted: #565270;
  --stk-chip: rgba(255, 255, 255, .72);
  --radius: 24px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161b;
    --surface: #1c1f26;
    --ink: #eceef2;
    --muted: #a3a9b8;
    --line: #2a2e37;
    --accent: #86a0ff;
    --pdf-bg: #1f232c;
    --pdf-chip: #2c3240;
    --stk-bg: linear-gradient(135deg, #3a2c33 0%, #2e2a45 55%, #233832 100%);
    --stk-ink: #f1eefc;
    --stk-muted: #bdb7d6;
    --stk-chip: rgba(255, 255, 255, .09);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Onest, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 22px; letter-spacing: -.03em; }
.logo-mark { width: 32px; height: 32px; }
.langs { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 44px; max-width: 900px; margin-left: max(20px, (100% - 1120px) / 2); }
.kicker { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 680; text-wrap: balance; }
.lead { margin: 22px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.card-pdf { background: var(--pdf-bg); color: var(--pdf-ink); }
.card-stk { background: var(--stk-bg); color: var(--stk-ink); }
.card-art { height: 190px; display: grid; place-items: center; }
.card-art .art { width: 260px; height: 178px; transition: transform .35s ease; }
.card:hover .art { transform: translateY(-4px) scale(1.02); }
.card-body { padding: 4px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.count { margin: 0 0 6px; font-size: 13px; font-weight: 600; opacity: .7; }
.card h3 { font-size: 32px; font-weight: 680; }
.tag { margin: 8px 0 22px; font-size: 17px; }
.card-pdf .tag { color: var(--pdf-muted); }
.card-stk .tag { color: var(--stk-muted); }
.chips { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: inherit; transition: background .2s; }
.chips svg { width: 15px; height: 15px; flex: none; }
.card-pdf .chips a { background: var(--pdf-chip); }
.card-pdf .chips a:hover { background: #343b4b; }
.card-stk .chips a { background: var(--stk-chip); }
.card-stk .chips a:hover { background: rgba(255, 255, 255, .95); }
@media (prefers-color-scheme: dark) { .card-stk .chips a:hover { background: rgba(255, 255, 255, .16); } }
.cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s, box-shadow .2s; }
.cta:hover { transform: translateY(-1px); }
.cta span { transition: transform .2s; }
.cta:hover span { transform: translateX(3px); }
.card-pdf .cta { background: #86a0ff; color: #11131a; }
.card-stk .cta { background: #24213a; color: #fff; }
@media (prefers-color-scheme: dark) { .card-stk .cta { background: #c9c2ff; color: #1d1b2c; } }

/* ---------- Why ---------- */
.why { padding: 88px 0 0; }
.why h2, .about h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 680; }
.why ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.why-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 18px; }
.why-ic svg { width: 24px; height: 24px; }
.why h3 { font-size: 19px; font-weight: 650; }
.why p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- About ---------- */
.about { padding: 88px 0 24px; max-width: 760px; margin-left: max(20px, (100% - 1120px) / 2); }
.about p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.about h2 { margin-bottom: 4px; }

/* ---------- Text pages ---------- */
.doc { max-width: 720px; padding: 40px 0 24px; margin-left: max(20px, (100% - 1120px) / 2); }
.doc h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 680; margin-bottom: 20px; }
.doc p { color: var(--muted); font-size: 18px; }
.muted { opacity: .75; font-size: 15px !important; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.nf-links .cta { background: var(--ink); color: var(--bg); }

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .cards, .why ul { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 32px; }
  .card-body { padding: 0 24px 26px; }
  .card-art { height: 160px; }
  .why, .about { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
