:root {
    --paper: #F3F2F0;
    --paper-raised: #FFFFFF;
    --ink: #1C1C1E;
    --ink-soft: #5A5D64;
    --graphite: #33373D;
    --graphite-deep: #202328;
    --amber: #E8A33D;
    --amber-dark: #C4841F;
    --go: #1F8A5F;
    --go-dark: #146A48;
    --line: #E0DEDA;
    --line-strong: #CBC8C2;
    --radius: 12px;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--graphite-deep); }
a:hover { color: var(--amber-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
img, picture { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.site-header { background: var(--graphite-deep); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.1rem; color: #fff; }
.logo:hover { color: #fff; text-decoration: none; }
.logo .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--amber); flex: none; }
.logo small { color: rgba(255,255,255,.55); font-weight: 500; font-size: .74rem; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; }

.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.main-nav > ul > li > a { color: rgba(255,255,255,.85); padding: 9px 12px; display: inline-block; font-size: .9rem; font-weight: 600; border-radius: 8px; }
.main-nav > ul > li > a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; left: 0; top: 100%; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 28px rgba(0,0,0,.2); padding: 6px; min-width: 200px; list-style: none; margin: 8px 0 0; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li a { color: var(--ink); display: block; padding: 9px 10px; border-radius: 6px; font-size: .91rem; }
.dropdown-menu li a:hover { background: var(--paper); text-decoration: none; }

/* ===== Layout ===== */
.main-content { padding: 36px 0 60px; min-height: 55vh; }
h1 { font-weight: 800; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.24; margin: 6px 0 20px; color: var(--graphite-deep); letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: 1.3rem; margin: 32px 0 14px; color: var(--graphite-deep); }
h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--ink); }
p { margin: 0 0 14px; }
.lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 660px; }
.muted { color: var(--ink-soft); font-size: .92rem; }
.article ul:not([class]), .article ol:not([class]) { padding-left: 22px; }
.article li { margin-bottom: 6px; }

.crumbs { margin: 0 0 8px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .84rem; color: var(--ink-soft); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink); }

/* ===== Download CTA — сигнатурный блок ===== */
.dl-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.btn-dl { flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; padding: 15px 20px; border-radius: 10px; text-decoration: none !important; }
.btn-dl span { font-weight: 800; font-size: 1.05rem; }
.btn-dl small { font-weight: 500; font-size: .8rem; opacity: .85; }
.btn-dl--primary { background: var(--go); color: #fff; box-shadow: 0 8px 18px rgba(31,138,95,.25); }
.btn-dl--primary:hover { background: var(--go-dark); color: #fff; }
.btn-dl--secondary { background: var(--paper-raised); color: var(--graphite-deep); border: 2px solid var(--graphite); }
.btn-dl--secondary:hover { background: var(--graphite-deep); color: #fff; }
.dl-cta--bottom { margin-top: 40px; padding-top: 26px; border-top: 1px dashed var(--line-strong); }

.os-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.os-chip { padding: 11px 18px; background: var(--paper-raised); border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--ink); }
.os-chip:hover { border-color: var(--amber-dark); color: var(--amber-dark); text-decoration: none; }

/* ===== Hero ===== */
.hero-banner { max-width: 640px; margin: 0 auto 24px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,.16); }

/* ===== Steps ===== */
ol.steps { counter-reset: step; list-style: none; display: grid; gap: 12px; padding-left: 0 !important; margin: 0; }
ol.steps li { counter-increment: step; position: relative; padding: 13px 16px 13px 48px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; }
ol.steps li::before { content: counter(step); position: absolute; left: 13px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 800; font-size: .78rem; display: flex; align-items: center; justify-content: center; }

/* ===== Spec table ===== */
.spec-table { width: 100%; max-width: 560px; border-collapse: collapse; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .93rem; margin: 16px 0 20px; }
.spec-table th, .spec-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { color: var(--ink-soft); font-weight: 600; white-space: nowrap; width: 42%; }

/* ===== Notices ===== */
.notice { border-radius: var(--radius); padding: 15px 18px; margin: 18px 0; border-left: 4px solid var(--graphite); background: #EDEDEC; }
.notice.warn { border-left-color: var(--amber-dark); background: #FBF1E1; }
.notice p:last-child { margin-bottom: 0; }

/* ===== FAQ ===== */
.faq details { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--graphite-deep); }
.faq details[open] summary { margin-bottom: 8px; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.card { display: block; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); }
.card:hover { border-color: var(--amber-dark); text-decoration: none; }
.card b { display: block; margin-bottom: 4px; }
.card span { display: block; font-size: .87rem; color: var(--ink-soft); }

/* ===== Sitemap list ===== */
.sitemap-list { padding-left: 4px; }
.sitemap-list li { font-weight: 700; margin-bottom: 8px; }

/* ===== Footer ===== */
.site-footer { background: var(--graphite-deep); color: rgba(255,255,255,.82); padding: 34px 0; margin-top: 44px; font-size: .9rem; }
.footer-inner { display: grid; gap: 14px; }
.site-footer a { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.copyright { color: rgba(255,255,255,.5); margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 780px) {
    .nav-toggle { display: flex; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--graphite-deep); padding: 8px 16px 16px; }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; }
    .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,.06); }
    .dropdown-menu li a { color: rgba(255,255,255,.85); }
    h1 { font-size: 1.5rem; }
    .btn-dl { flex: 1 1 100%; }
}
