:root {
    --bg: #fafaf8;
    --card: #fff;
    --surface: #f0efe8;
    --border: #e2e0d8;
    --text: #1a1a1a;
    --muted: #5c5c5c;
    --accent: #d45a1a;
    --accent-hover: #e86b2a;
    --accent-soft: rgba(212, 90, 26, .1);
    --green: #1a9a5a;
    --tg: #2aabee;
    --max-width: 1080px;
    --radius: 16px;
    --body: "DM Sans", Arial, sans-serif;
    --display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button, input { font: inherit; }
code {
    padding: 2px 6px;
    color: #8f3510;
    background: var(--accent-soft);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
    overflow-wrap: anywhere;
}
.container { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 250, 248, .92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}
.site-header__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.header-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.header-nav a { color: var(--muted); text-decoration: none; }
.header-nav a:hover { color: var(--text); }
.header-nav .header-cta {
    padding: 9px 15px;
    color: #fff;
    background: var(--accent);
    border-radius: 10px;
    font-weight: 700;
}
.breadcrumbs { padding: 26px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs span { padding: 0 8px; }
.hero { padding: 54px 0 62px; }
.eyebrow {
    display: inline-flex;
    padding: 5px 12px;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}
h1, h2, h3 { line-height: 1.15; }
h1 {
    max-width: 900px;
    margin: 22px 0 20px;
    font-family: var(--display);
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 400;
    letter-spacing: -.025em;
}
.lead { max-width: 790px; margin: 0; color: var(--muted); font-size: clamp(19px, 2.6vw, 23px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: var(--card);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.button:hover { color: var(--text); border-color: #c7c4ba; }
.button--primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button--primary:hover { color: #fff; background: var(--accent-hover); }
.button--max { color: var(--green); border-color: rgba(26, 154, 90, .35); }
.proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 38px;
}
.proof__item { padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.proof__item strong { display: block; margin-bottom: 4px; font-size: 16px; }
.proof__item span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 64px;
    align-items: start;
    padding-bottom: 80px;
}
.article { min-width: 0; }
.article section { padding: 8px 0 30px; scroll-margin-top: 92px; }
.article h2 { margin: 22px 0 14px; font-family: var(--display); font-size: clamp(30px, 4.5vw, 42px); font-weight: 400; }
.article h3 { margin: 24px 0 8px; font-size: 21px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 10px 0 20px; padding-left: 25px; }
.article li { margin: 7px 0; }
.note {
    margin: 22px 0;
    padding: 20px 22px;
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 12px 12px 0;
}
.steps { counter-reset: step; display: grid; gap: 12px; margin: 22px 0; }
.step {
    position: relative;
    padding: 20px 20px 20px 66px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}
.step strong { display: block; margin-bottom: 3px; }
.comparison { width: 100%; margin: 20px 0 28px; border-collapse: collapse; font-size: 15px; }
.comparison th, .comparison td { padding: 13px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.comparison th { background: var(--surface); }
.faq { border-top: 1px solid var(--border); }
.faq details { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.toc {
    position: sticky;
    top: 94px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.toc strong { display: block; margin-bottom: 10px; font-size: 14px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--accent); }
.conversion {
    margin: 20px 0 34px;
    padding: 28px;
    color: #fff;
    background: #1f1f1d;
    border-radius: 20px;
}
.conversion h2 { margin-top: 0; color: #fff; }
.conversion p { color: #d1d1ca; }
.related { padding: 58px 0 72px; background: var(--surface); }
.related h2 { margin: 0 0 24px; font-family: var(--display); font-size: 38px; font-weight: 400; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
    display: block;
    padding: 22px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
}
.related-card:hover { color: var(--text); border-color: #c7c4ba; transform: translateY(-2px); }
.related-card strong { display: block; margin-bottom: 7px; line-height: 1.3; }
.related-card span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.site-footer { padding: 32px 0; border-top: 1px solid var(--border); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 14px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 14px;
    color: #fff;
    background: var(--text);
    border-radius: 9px;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
    outline: 3px solid rgba(212, 90, 26, .35);
    outline-offset: 3px;
}
.kb-hero { padding-bottom: 44px; }
.kb-hero h1 { max-width: 780px; }
.kb-search {
    position: relative;
    max-width: 720px;
    margin-top: 30px;
}
.kb-search svg {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 22px;
    height: 22px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}
.kb-search input {
    width: 100%;
    min-height: 58px;
    padding: 14px 18px 14px 52px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(30, 29, 25, .05);
}
.kb-search input:focus { border-color: rgba(212, 90, 26, .55); }
.kb-start {
    margin-bottom: 52px;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #fff;
    background: #1f1f1d;
    border-radius: 20px;
}
.kb-start__copy strong { display: block; margin-bottom: 5px; font-size: 21px; }
.kb-start__copy span { color: #d1d1ca; font-size: 15px; }
.kb-start .button { flex: 0 0 auto; }
.kb-section { padding: 0 0 58px; }
.kb-section + .kb-section {
    padding-top: 54px;
    border-top: 1px solid var(--border);
}
.kb-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.kb-section__head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 400;
}
.kb-section__head p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}
.kb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.kb-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.kb-card:hover {
    color: var(--text);
    border-color: #c7c4ba;
    box-shadow: 0 12px 30px rgba(30, 29, 25, .06);
    transform: translateY(-2px);
}
.kb-card__meta {
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.kb-card strong { margin-bottom: 8px; font-size: 19px; line-height: 1.3; }
.kb-card span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.kb-card__arrow { margin-top: auto; padding-top: 20px; color: var(--accent); font-weight: 700; }
.kb-empty {
    display: none;
    margin: 0 0 58px;
    padding: 28px;
    text-align: center;
    background: var(--surface);
    border-radius: 16px;
}
.kb-empty strong { display: block; margin-bottom: 6px; }
.kb-empty p { margin: 0; color: var(--muted); }
.kb-support {
    margin: 10px 0 72px;
    padding: 34px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.kb-support h2 {
    margin: 0 0 10px;
    font-family: var(--display);
    font-size: 36px;
    font-weight: 400;
}
.kb-support p { max-width: 620px; margin: 0 auto 22px; color: var(--muted); }
.kb-article-hero { padding: 42px 0 48px; }
.kb-article-hero h1 { max-width: 850px; font-size: clamp(40px, 6vw, 62px); }
.article-summary {
    margin-bottom: 34px;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.article-summary strong { display: block; margin-bottom: 8px; font-size: 18px; }
.article-summary p:last-child { margin-bottom: 0; }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
}
.checklist {
    margin: 18px 0 26px;
    padding: 0;
    list-style: none;
}
.checklist li {
    position: relative;
    margin: 10px 0;
    padding-left: 30px;
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}
.warning {
    margin: 22px 0;
    padding: 20px 22px;
    border-left: 4px solid #d99516;
    background: rgba(217, 149, 22, .11);
    border-radius: 0 12px 12px 0;
}
.command-list {
    display: grid;
    gap: 10px;
    margin: 20px 0 28px;
}
.command-item {
    padding: 17px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.command-item code { display: inline-block; margin-bottom: 5px; }
.command-item span { display: block; color: var(--muted); font-size: 14px; }
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}
.article-nav a {
    padding: 18px 20px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
}
.article-nav small { display: block; margin-bottom: 4px; color: var(--muted); }
.toc__section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.toc__section a[aria-current="page"] { color: var(--accent); font-weight: 700; }

@media (max-width: 850px) {
    .header-nav a:not(.header-cta) { display: none; }
    .proof { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; gap: 0; }
    .toc { display: none; }
    .related__grid { grid-template-columns: 1fr; }
    .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .container { width: min(calc(100% - 28px), var(--max-width)); }
    .site-header__inner { min-height: 60px; }
    .hero { padding: 36px 0 46px; }
    h1 { font-size: 42px; }
    .actions .button { width: 100%; }
    .comparison { display: block; overflow-x: auto; }
    .site-footer__inner { flex-direction: column; }
    .kb-start { align-items: stretch; flex-direction: column; padding: 24px; }
    .kb-start .button { width: 100%; }
    .kb-section__head { align-items: start; flex-direction: column; gap: 8px; }
    .kb-grid { grid-template-columns: 1fr; }
    .kb-card { min-height: 0; }
    .kb-support { padding: 28px 20px; }
    .article-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .kb-card { transition: none; }
}
