/* =========================================================
   HP LaserJet Pro M1132 MFP — design tokens
   Тема: "бумага + тонер" — светлый холодный фон, чернильный текст,
   синий акцент (тонер/печать), янтарный — предупреждения,
   тёмная бирюза — всё, что касается сканера.
========================================================= */
:root{
  --paper: #EEF0F2;
  --paper-2: #E4E8EC;
  --surface: #FFFFFF;
  --ink: #1B2430;
  --ink-soft: #4B5563;
  --line: #D8DCE1;
  --accent: #2657C4;
  --accent-dark: #1B3E8F;
  --accent-soft: #E8EEFC;
  --warn: #C97A17;
  --warn-soft: #FBEDD9;
  --teal: #1F8A70;
  --teal-soft: #E4F3EF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(27,36,48,.04), 0 8px 24px -12px rgba(27,36,48,.15);
  --font-display: "Space Grotesk", "Manrope", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1120px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color: var(--accent-dark); text-decoration: none; }
a:hover{ text-decoration: underline; }
:focus-visible{ outline: 2.5px solid var(--accent); outline-offset: 2px; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1{ font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.7rem); }
h2{ font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-top: 0; }
h3{ font-size: 1.2rem; }
p{ margin: 0 0 1em; color: var(--ink); }
.lede{ color: var(--ink-soft); font-size: 1.08rem; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.skip-link{
  position:absolute; left:-9999px; top:auto; background:var(--ink); color:#fff;
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 999;
}
.skip-link:focus{ left: 16px; top: 16px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(238,240,242,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height: 68px; padding: 12px 0; gap: 16px; flex-wrap: wrap;
}
.logo{ display:flex; align-items:center; gap:10px; color:var(--ink); font-family: var(--font-display); font-weight:600; }
.logo:hover{ text-decoration:none; }
.logo__mark{
  font-family: var(--font-mono); font-size:.72rem; font-weight:500;
  background: var(--ink); color:#fff; padding: 5px 8px; border-radius: 6px;
  letter-spacing: .02em;
}
.logo--footer{ margin-bottom: 10px; }
.site-nav{ display:flex; gap: 18px; flex-wrap: wrap; row-gap: 6px; justify-content: flex-end; }
.site-nav a{ color: var(--ink-soft); font-weight:600; font-size:.92rem; white-space: nowrap; }
.site-nav a:hover{ color: var(--accent-dark); text-decoration:none; }
.nav-toggle{ display:none; background:none; border:0; width:36px; height:32px; padding:0; cursor:pointer; flex-direction:column; justify-content:space-between; }
.nav-toggle span{ display:block; height:2px; background:var(--ink); border-radius:2px; }

.breadcrumbs{ padding: 14px 24px 0; font-size:.86rem; color: var(--ink-soft); }
.breadcrumbs a{ color: var(--ink-soft); }
.breadcrumbs__sep{ margin: 0 6px; opacity:.5; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background: var(--accent); color:#fff; font-weight:700; font-size:1rem;
  padding: 14px 24px; border-radius: 999px; border:0; cursor:pointer;
  box-shadow: 0 6px 20px -8px rgba(38,87,196,.6);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ background: var(--accent-dark); text-decoration:none; transform: translateY(-1px); }
.btn--ghost{ background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow:none; }
.btn--ghost:hover{ background: var(--surface); border-color: var(--ink); }
.btn--small{ padding: 9px 16px; font-size:.88rem; box-shadow:none; }
.btn--lg{ padding: 18px 32px; font-size:1.1rem; border-radius: 14px; }
.btn--block{ width:100%; }
.btn__meta{ font-family: var(--font-mono); font-weight:400; font-size:.78rem; opacity:.85; }

/* ---------- Download CTA (prominent top + closing bottom) ---------- */
.download-cta{
  display:flex; align-items:center; gap:20px; border-radius: 20px; margin: 22px 0 32px;
  flex-wrap: wrap;
}
.download-cta__icon{
  flex-shrink:0; width:52px; height:52px; border-radius:14px; display:grid; place-items:center;
  font-size:1.5rem; font-weight:700;
}
.download-cta__body{ flex:1 1 260px; min-width:0; }
.download-cta__title{ font-family: var(--font-display); font-weight:700; font-size:1.2rem; margin-bottom:4px; }
.download-cta__text{ margin:0; font-size:.92rem; }

.download-cta--hero{
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color:#fff; padding: 26px 28px; box-shadow: 0 14px 34px -14px rgba(27,62,143,.55);
}
.download-cta--hero .download-cta__icon{ background: rgba(255,255,255,.18); color:#fff; }
.download-cta--hero .download-cta__text{ color: rgba(255,255,255,.85); }
.download-cta--hero .btn--lg{
  background:#fff; color: var(--accent-dark); box-shadow: 0 8px 20px -8px rgba(0,0,0,.25);
}
.download-cta--hero .btn--lg:hover{ background:#fff; color: var(--accent-dark); transform: translateY(-2px); }

.download-cta--footer{
  background: var(--surface); border: 1.5px solid var(--line); padding: 22px 24px;
}
.download-cta--footer .download-cta__icon{ background: var(--accent-soft); color: var(--accent-dark); }
.download-cta--footer .download-cta__text{ color: var(--ink-soft); }

@media (max-width: 560px){
  .download-cta{ flex-direction:column; align-items:flex-start; text-align:left; }
  .download-cta .btn--lg{ width:100%; text-align:center; justify-content:center; }
}

/* ---------- Hero ---------- */
.hero{ padding: 56px 0 40px; }
.hero__inner{ display:grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family: var(--font-mono);
  font-size:.8rem; color: var(--accent-dark); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; font-weight:500;
}
.eyebrow__dot{ width:7px; height:7px; border-radius:50%; background: var(--teal); }
.hero__ctas{ display:flex; gap:14px; margin-top: 24px; flex-wrap:wrap; }
.hero__trust{ display:flex; gap:22px; margin-top: 28px; flex-wrap:wrap; }
.hero__trust div{ display:flex; align-items:center; gap:8px; font-size:.88rem; color: var(--ink-soft); font-weight:600; }

/* OS selector — signature widget */
.os-select{
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.os-select__label{ font-family: var(--font-mono); font-size:.78rem; color: var(--ink-soft); margin-bottom: 12px; text-transform: uppercase; letter-spacing:.06em; }
.os-select__pills{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 18px; }
.os-pill{
  font-family: var(--font-mono); font-size:.85rem; font-weight:500;
  padding: 8px 14px; border-radius: 999px; border:1.5px solid var(--line);
  background: var(--paper); color: var(--ink-soft); cursor:pointer;
}
.os-pill[aria-pressed="true"]{ background: var(--ink); border-color: var(--ink); color:#fff; }
.os-select__result{
  background: var(--paper); border:1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.os-select__result-text{ font-size:.92rem; }
.os-select__result-text b{ display:block; font-family: var(--font-display); font-size:1.05rem; }

/* ---------- Sections / layout ---------- */
.section{ padding: 44px 0; }
.section--card{ background: var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section__head{ max-width: 680px; margin-bottom: 28px; }
.page-grid{ display:grid; grid-template-columns: 1fr 300px; gap: 40px; align-items:start; }
.page-grid .content{ min-width:0; }

/* content typography inside articles */
.content h2{ margin-top: 2em; padding-top:.2em; scroll-margin-top: 90px; }
.content h2:first-child{ margin-top:0; }
.content h3{ scroll-margin-top: 90px; }
.content ul, .content ol{ padding-left: 1.3em; }
.content li{ margin-bottom:.4em; }

/* Numbered steps — only used for genuinely sequential install steps */
.steps{ display:grid; gap:16px; margin: 20px 0; }
.step{
  display:grid; grid-template-columns: 40px 1fr; gap:16px; align-items: start;
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.step__num{
  width:40px; height:40px; border-radius: 10px; flex-shrink:0;
  font-family: var(--font-mono); font-weight:600; color:#fff; background: var(--accent);
  display:flex; align-items:center; justify-content:center;
}
.step__body{ min-width:0; }
.step__body h4{ margin: 2px 0 6px; font-family: var(--font-display); font-size:1.05rem; }
.step__body p{ margin:0; color: var(--ink-soft); }
/* Совместимость со старой разметкой шагов (если где-то ещё используется) */
.step h4{ margin: 2px 0 6px; font-family: var(--font-display); font-size:1.05rem; }
.step p{ margin:0; color: var(--ink-soft); }

/* Callouts */
.callout{ border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; border:1px solid var(--line); }
.callout--warn{ background: var(--warn-soft); border-color: #EED3A5; }
.callout--teal{ background: var(--teal-soft); border-color: #BFE3D8; }
.callout--info{ background: var(--accent-soft); border-color: #C9D7F6; }
.callout__title{ font-weight:700; margin-bottom:4px; display:flex; align-items:center; gap:8px; }

/* Spec table */
.spec-table{ width:100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); }
.spec-table th, .spec-table td{ text-align:left; padding: 12px 16px; border-bottom:1px solid var(--line); font-size:.94rem; }
.spec-table th{ width: 40%; color: var(--ink-soft); font-weight:600; background: var(--paper); }
.spec-table tr:last-child td, .spec-table tr:last-child th{ border-bottom:0; }

/* Cards grid (models, features) */
.cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:18px; margin-top: 20px; }
.card{ background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3{ margin-bottom:8px; }
.card--muted{ color: var(--ink-soft); }

/* Comparison table */
.compare-scroll{ overflow-x:auto; border-radius: var(--radius); border:1px solid var(--line); }
.compare-table{ width:100%; border-collapse:collapse; background:var(--surface); min-width: 640px; }
.compare-table th, .compare-table td{ padding: 12px 16px; border-bottom:1px solid var(--line); font-size:.92rem; text-align:left; }
.compare-table thead th{ background: var(--ink); color:#fff; font-family: var(--font-display); font-weight:600; position:sticky; top:0; }
.compare-table tbody tr:nth-child(odd){ background: var(--paper); }
.compare-table td.current{ font-weight:700; color: var(--accent-dark); }

/* FAQ accordion */
.faq{ display:grid; gap:10px; margin-top:18px; }
.faq-item{ background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-sm); overflow:hidden; }
.faq-item__q{
  width:100%; text-align:left; padding: 16px 18px; background:none; border:0; cursor:pointer;
  font-weight:700; font-size:1rem; display:flex; justify-content:space-between; gap:12px; align-items:center; color: var(--ink);
  font-family: var(--font-body);
}
.faq-item__q::after{ content:"+"; font-family: var(--font-mono); font-size:1.3rem; color: var(--accent); flex-shrink:0; }
.faq-item[open] .faq-item__q::after{ content:"–"; }
.faq-item__a{ padding: 0 18px 16px; color: var(--ink-soft); }

/* Sidebar */
.sidebar{ display:grid; gap:16px; position:sticky; top:90px; align-self:start; }
.sidebar__card{ background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding:18px; }
.sidebar__card--accent{ background: var(--accent-soft); border-color:#C9D7F6; }
.sidebar__title{ font-family: var(--font-display); font-weight:600; font-size:.95rem; margin-bottom:10px; }
.sidebar__list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.sidebar__list a{ font-size:.92rem; color: var(--ink-soft); font-weight:600; }
.sidebar__list a:hover{ color: var(--accent-dark); }

/* Footer */
.site-footer{ background: var(--ink); color: #C9CFDA; margin-top: 40px; }
.site-footer__inner{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 44px 24px 28px; }
.site-footer p{ color: #98A2B3; font-size:.88rem; }
.site-footer__title{ color:#fff; font-family: var(--font-display); font-weight:600; margin-bottom:12px; font-size:.92rem; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.site-footer a{ color:#B7BFCC; font-size:.9rem; }
.site-footer a:hover{ color:#fff; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1); padding: 16px 24px; display:flex; justify-content:space-between;
  gap: 12px; flex-wrap:wrap; font-size:.8rem; color:#7C8797;
}

.scrolltop{
  position:fixed; right:20px; bottom:20px; width:44px; height:44px; border-radius:50%;
  background: var(--ink); color:#fff; border:0; cursor:pointer; display:none; place-items:center;
  box-shadow: var(--shadow); z-index: 40;
}
.scrolltop::before{ content:"↑"; font-size:1.2rem; }
.scrolltop.is-visible{ display:grid; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero__inner{ grid-template-columns: 1fr; }
  .page-grid{ grid-template-columns: 1fr; }
  .sidebar{ position:static; grid-template-columns: 1fr 1fr; }
  .site-footer__inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .site-nav{
    position:absolute; top:68px; left:0; right:0; background: var(--paper);
    flex-direction:column; padding: 16px 24px; border-bottom:1px solid var(--line);
    display:none;
  }
  .site-nav.is-open{ display:flex; }
  .nav-toggle{ display:flex; }
  .sidebar{ grid-template-columns: 1fr; }
  .site-footer__inner{ grid-template-columns: 1fr; }
  .hero{ padding: 32px 0 24px; }
}
