/* epsonl3250.ru — стиль "техническая этикетка": печатный, точный, без лишних украшений */

:root {
    --ink: #1c2430;
    --ink-soft: #4b5567;
    --paper: #f8f7f3;
    --paper-raised: #ffffff;
    --line: #dcdad2;
    --brand: #22364d;
    --brand-dark: #16222f;
    --go: #1f8a5f;
    --go-dark: #146a48;
    --warn: #b8532f;
    --radius: 10px;
    --mono: "SF Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
    --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(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; }

/* ===== Header ===== */
.site-header {
    background: var(--brand);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.logo span { color: var(--go); }
.logo small { color: rgba(255,255,255,.55); font-weight: 500; font-size: .75rem; margin-left: 2px; }
.logo:hover { text-decoration: none; }

.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: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}
.main-nav > ul > li > a {
    color: rgba(255,255,255,.9);
    padding: 10px 12px;
    display: inline-block;
    font-size: .92rem;
    border-radius: 6px;
}
.main-nav > ul > li > a:hover {
    background: rgba(255,255,255,.1);
    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: 8px;
    box-shadow: 0 12px 24px rgba(0,0,0,.14);
    padding: 6px;
    min-width: 200px;
    list-style: none;
    margin: 6px 0 0;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li a {
    color: var(--ink);
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: .92rem;
}
.dropdown-menu li a:hover { background: var(--paper); text-decoration: none; }

/* ===== Layout ===== */
.main-content { padding: 36px 0 60px; min-height: 55vh; }

h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 4px 0 22px;
    color: var(--brand-dark);
}
h2 {
    font-size: 1.3rem;
    margin: 34px 0 12px;
    color: var(--brand-dark);
}
p { margin: 0 0 14px; }
.muted { color: var(--ink-soft); font-size: .92rem; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { margin: 0 0 10px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .85rem; color: var(--ink-soft); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.breadcrumbs .current { color: var(--ink); }

/* ===== "Этикетка" — spec table в духе печатной наклейки на картридже ===== */
.driver-specs {
    width: 100%;
    max-width: 460px;
    border-collapse: collapse;
    background: var(--paper-raised);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    font-family: var(--mono);
    font-size: .88rem;
    margin: 16px 0 20px;
}
.driver-specs th, .driver-specs td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.driver-specs tr:last-child th, .driver-specs tr:last-child td { border-bottom: none; }
.driver-specs th { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }

table:not(.driver-specs) {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: var(--paper-raised);
    border-radius: var(--radius);
    overflow: hidden;
}
table:not(.driver-specs) th, table:not(.driver-specs) td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table:not(.driver-specs) th { background: var(--brand); color: #fff; font-weight: 600; font-size: .9rem; }

/* ===== Buttons ===== */
.btn-download-large, .os-btn, .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
}
.btn-download-large {
    background: var(--go);
    color: #fff;
    padding: 16px 26px;
    font-size: 1.05rem;
    box-shadow: 0 6px 16px rgba(31,138,95,.28);
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn-download-large:hover { background: var(--go-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31,138,95,.34); }
.download-cta { margin: 18px 0 8px; }

.os-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.os-btn {
    padding: 12px 18px;
    background: var(--paper-raised);
    border: 1.5px solid var(--line);
    color: var(--ink);
    font-weight: 600;
}
.os-btn:hover { border-color: var(--brand); background: #fff; text-decoration: none; }

/* ===== Hero (главная) ===== */
.hero { padding-bottom: 8px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--go-dark);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 10px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go); display: inline-block; }
.hero h1 { margin-top: 0; }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 640px; }

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 14px; }
.btn-ghost {
    font-weight: 700;
    color: var(--brand);
    padding: 14px 4px;
}

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0 0 30px;
    padding: 0;
    font-size: .88rem;
    color: var(--ink-soft);
}

/* ===== Переключатель версии Windows ===== */
.os-select {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    max-width: 640px;
}
.os-select-label { font-weight: 700; margin: 0 0 12px; color: var(--brand-dark); }
.os-select-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.os-pill {
    border: 1.5px solid var(--line);
    background: var(--paper);
    color: var(--ink-soft);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}
.os-pill:hover { border-color: var(--brand); color: var(--ink); }
.os-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.os-select-result p { margin: 0; color: var(--ink-soft); }
.os-select-result a { font-weight: 700; white-space: nowrap; }

/* ===== Повторный CTA-блок со спек-таблицей ===== */
.download-cta-block { margin-top: 40px; }
.download-cta-block .driver-specs { max-width: 560px; }

/* ===== Шаги установки ===== */
ol.steps {
    list-style: none;
    counter-reset: step;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
ol.steps li {
    counter-increment: step;
    position: relative;
    padding: 16px 18px 16px 56px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
ol.steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--go);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
ol.steps li strong { display: block; color: var(--brand-dark); margin-bottom: 4px; }
ol.steps li p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* ===== Коллаут-плашка ===== */
.callout {
    border-radius: var(--radius);
    padding: 16px 18px;
    margin: 18px 0 0;
    border-left: 4px solid var(--brand);
    background: #eef2f6;
}
.callout-warn { border-left-color: var(--warn); background: #fbeee7; }
.callout-title { font-weight: 700; margin: 0 0 4px; color: var(--brand-dark); }
.callout p:last-child { margin-bottom: 0; }

/* ===== Карточки-тизеры "что дальше" ===== */
.next-cards { margin-top: 40px; }
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 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(--brand); text-decoration: none; transform: translateY(-1px); }
.card-title { display: block; font-weight: 700; color: var(--brand-dark); margin-bottom: 4px; }
.card-text { display: block; font-size: .88rem; color: var(--ink-soft); }

/* ===== Lists / sections ===== */
.popular ul, ul.models-grid { list-style: none; margin: 0; padding: 0; }
.popular ul { display: grid; gap: 8px; }
.popular ul li::before { content: "→ "; color: var(--go); font-weight: 700; }

ul.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 6px 14px;
}
ul.models-grid li a { font-size: .93rem; }

.series-group h2 .count { color: var(--ink-soft); font-weight: 500; font-size: 1rem; }

/* ===== Catalog search ===== */
.catalog-search { margin: 6px 0 24px; }
.catalog-search input {
    width: 100%;
    max-width: 420px;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: var(--paper-raised);
}
.catalog-search input:focus { border-color: var(--brand); }

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

/* ===== Footer ===== */
.site-footer {
    background: var(--brand-dark);
    color: rgba(255,255,255,.78);
    padding: 34px 0;
    margin-top: 40px;
    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,.45); 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(--brand-dark);
        padding: 8px 16px 16px;
    }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; }
    .dropdown-menu { display: block; position: static; box-shadow: none; border: none; background: rgba(255,255,255,.04); }
    .dropdown-menu li a { color: rgba(255,255,255,.85); }
    h1 { font-size: 1.5rem; }
}
