:root {
  --ink: #202723;
  --ink-2: #4b524e;
  --muted: #626a65;
  --line: #e3e5e3;
  --soft: #f4f5f4;
  --bg: #ffffff;
  --accent: #202723;
  --ok: #2f6b45;
  --radius: 4px;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 "Montserrat", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.logo span { font-weight: 400; color: var(--ink-2); }
.logo.small { font-size: 17px; margin-bottom: 6px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav a { color: var(--ink-2); }
.nav a:hover, .nav a.on { color: var(--ink); }
.units { border: 1px solid #7d857f; background: #fff; border-radius: 20px; padding: 5px 12px; min-width: 44px; min-height: 44px; font: 500 12px "Montserrat", system-ui, sans-serif; cursor: pointer; color: var(--ink); flex-shrink: 0; }
.nav a { white-space: nowrap; }
@media (max-width: 640px) {
  .top-in { gap: 10px; }
  .logo { font-size: 17px; }
  .nav { gap: 12px; font-size: 13px; }
  .nav a[href="#/faq"], .nav a[href="#/free"] { display: none; }
  .units { padding: 4px 9px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font: 600 14px "Montserrat"; border: 1px solid var(--ink); cursor: pointer; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn[disabled] { background: var(--soft); color: var(--muted); border-color: var(--line); cursor: default; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero img { width: 100%; border-radius: var(--radius); background: var(--soft); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 32px; } }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* value strip */
.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0 56px; }
.values div { padding: 22px 20px; border-right: 1px solid var(--line); }
.values div:last-child { border-right: 0; }
.values b { display: block; font-weight: 600; margin-bottom: 4px; }
.values span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr 1fr; } .values div:nth-child(2) { border-right: 0; } .values div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* section */
.sec { margin: 0 0 64px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head a { font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; min-height: 130px; transition: border-color .15s; }
.cat:hover { border-color: var(--ink); }
.cat b { font-weight: 600; font-size: 17px; }
.cat span { font-size: 14px; color: var(--ink-2); }
.cat em { margin-top: auto; font-style: normal; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .15s; }
.card:hover { border-color: var(--ink); }
.card .thumb { aspect-ratio: 1; background: var(--soft); display: flex; align-items: center; justify-content: center; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb svg { width: 62%; height: 62%; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 8px; border-radius: 3px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.badge.ok { background: var(--ink); color: #fff; border-color: var(--ink); }
.card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .name { font-weight: 500; font-size: 14px; line-height: 1.35; }
.card .meta { font-size: 12px; color: var(--muted); }
.card .price { margin-top: auto; padding-top: 8px; font-weight: 600; }

/* catalog layout */
.cat-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding-top: 32px; }
.side a { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.side a.on, .side a:hover { color: var(--ink); font-weight: 600; }
.side small { color: var(--muted); font-weight: 400; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar input, .toolbar select { height: 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; font: 400 14px "Montserrat"; color: var(--ink); background: #fff; }
.toolbar input { flex: 1; min-width: 180px; }
@media (max-width: 860px) {
  .cat-layout { grid-template-columns: 1fr; gap: 16px; }
  .side { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .side a { border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; white-space: nowrap; gap: 6px; }
}

/* product page */
.crumbs { font-size: 13px; color: var(--muted); padding: 24px 0 16px; }
.crumbs a { color: var(--ink-2); }
.pp { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
@media (max-width: 860px) { .pp { grid-template-columns: 1fr; gap: 24px; } }
.gallery .main { aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .main svg { width: 60%; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 76px; height: 76px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); cursor: pointer; overflow: hidden; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pp .price-big { font-size: 28px; font-weight: 600; margin: 8px 0 18px; }
.spec { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.spec th, .spec td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; font-weight: 500; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 20px; }
.note { font-size: 13px; color: var(--ink-2); background: var(--soft); padding: 12px 14px; border-radius: var(--radius); }

/* bundles */
.bundles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .bundles { grid-template-columns: 1fr; } }
.bundle { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.bundle.full { border-color: var(--ink); }
.bundle b { font-size: 17px; font-weight: 600; }
.bundle .row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 10px; }
.bundle .p { font-size: 24px; font-weight: 600; }
.bundle .v { font-size: 13px; color: var(--muted); }
.bundle .save { font-size: 12px; font-weight: 600; color: var(--ok); }

/* faq / text pages */
.text { max-width: 760px; padding: 40px 0; }
.text h2 { margin-top: 32px; }
.qa { border-bottom: 1px solid var(--line); padding: 18px 0; }
.qa b { display: block; font-weight: 600; margin-bottom: 6px; }
.text p, .text li { line-height: 1.75; }
.text li { margin-bottom: 8px; }
.text a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.text .qa h2 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.text .qa p { margin: 0; }

.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 20px; color: var(--ink-2); }

/* site/01: product tools, filters and comparison */
button, input, select { font-family: "Montserrat", system-ui, sans-serif; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.small-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 6px 10px; font: 500 12px/1.4 "Montserrat", system-ui, sans-serif; color: var(--ink); background: #fff; border: 1px solid #7d857f; border-radius: var(--radius); cursor: pointer; }
.small-btn:hover { border-color: var(--ink); }
.small-btn[aria-pressed="true"] { background: var(--soft); border-color: var(--ink); }
.small-btn:disabled { color: var(--muted); cursor: default; }
.product-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cat-layout > *, .pp > * { min-width: 0; }
.toolbar { justify-content: flex-start; align-items: end; }
.toolbar > select { max-width: 100%; }
.price-filter { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); }
.toolbar .price-filter input { min-width: 0; width: 110px; flex: none; }
.result-count, .detail-copy, .file-list { font-size: 14px; }
.detail-heading { font-size: 19px; margin-top: 26px; }
.file-list { padding-left: 20px; margin-bottom: 22px; }
.file-list li { margin-bottom: 7px; }
.product-status .badge { position: static; display: inline-block; }
.gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; }
.gallery-controls .small-btn { min-width: 44px; min-height: 44px; }
.preview-note { font-size: 12px; margin: 12px 0; }
.media-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.media-tabs button { padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: #fff; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.media-tabs button[aria-selected="true"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.blueprint-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 12px; }
.blueprint-toolbar .small-btn { flex-shrink: 0; min-height: 44px; }
.blueprint-viewport { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; touch-action: pan-x pan-y pinch-zoom; overscroll-behavior: contain; }
.blueprint-sheet { display: block; width: 100%; padding: 0; border: 0; color: var(--ink); background: #fff; cursor: zoom-in; text-align: left; }
.blueprint-sheet img, .blueprint-svg { display: block; width: 100%; height: auto; }
.blueprint-sheet .note { margin: 20px; }
.blueprint-viewport.is-zoomed { height: min(65vh, 620px); min-height: 280px; }
.is-zoomed .blueprint-sheet { width: 1800px; cursor: zoom-out; }
.blueprint-svg { font-family: "Montserrat", system-ui, sans-serif; font-size: 12px; fill: var(--ink); }
.bp-outline { fill: none; stroke: #202723; stroke-width: 1.4; }
.bp-dimension { stroke: #626b65; stroke-width: .8; }
.bp-extension { stroke: #a4aaa6; stroke-width: .6; }
.thumbs button { flex: 0 0 66px; width: 66px; height: 66px; }
.compare-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 9; padding: 12px 16px; max-width: 650px; width: calc(100% - 32px); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; background: #fff; border: 1px solid var(--ink); border-radius: var(--radius); font-size: 13px; }
body.has-comparison { padding-bottom: 90px; }
.compare-scroll { overflow-x: auto; margin-bottom: 40px; }
.compare-table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.compare-table th, .compare-table td { text-align: left; padding: 16px; border: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.compare-table th { font-weight: 500; }
.compare-table th:first-child { width: 150px; background: var(--soft); }
.compare-table thead a:hover { text-decoration: underline; }
.compare-preview { display: flex; align-items: center; justify-content: center; height: 160px; background: var(--soft); }
.compare-preview img { height: 100%; width: 100%; object-fit: contain; }
.compare-preview svg { max-height: 140px; width: 80%; }
.nav span { font-size: 11px; color: var(--muted); }
@media (max-width: 1000px) { .top-in { gap: 16px; } .nav { gap: 14px; } }
@media (max-width: 960px) {
  .top-in { height: auto; min-height: 64px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; gap: 8px 16px; }
  .top-in .logo { flex: 1; order: 0; }
  .units { order: 1; }
  .nav { order: 2; flex-basis: 100%; margin: 0; gap: 10px 18px; flex-wrap: wrap; font-size: 12px; }
  .nav a[href="#/faq"], .nav a[href="#/free"] { display: none; }
}
@media (max-width: 720px) {
  .toolbar > input, .toolbar > select { width: 100%; min-width: 0; }
  .price-filter { flex: 1; }
  .toolbar .price-filter input { width: 100%; }
  .card .body { padding: 10px; }
  .card .name { font-size: 13px; }
  .badge { font-size: 10px; top: 6px; left: 6px; padding: 3px 6px; }
  .product-actions .small-btn { min-height: 44px; }
  .spec { font-size: 13px; }
  .bundle .row { flex-wrap: wrap; }
  .compare-bar { bottom: 8px; gap: 8px; font-size: 12px; }
}

/* Navigation, readable controls and narrow-screen spacing. */
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 20; padding: 12px 18px; background: var(--ink); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.nav a, .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.toolbar input, .toolbar select { min-height: 44px; border-color: #7d857f; }
.toolbar input::placeholder { color: var(--muted); opacity: 1; }
.toolbar .price-filter { min-width: 0; }
.product-actions .small-btn { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.pp > div > .product-actions { margin-bottom: 18px; }
.spec td { overflow-wrap: anywhere; }
.spec th { padding-right: 14px; }
.spec .chips { gap: 6px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; border-color: #7d857f; }
.bundle-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0 18px; }
.bundle-price .price-big { flex-shrink: 0; margin: 0; }
.bundle-price > .muted { flex: 1 1 220px; }
.side { padding: 4px; margin: -4px; }
.side a { min-height: 44px; align-items: center; }
.compare-scroll { padding: 4px; }
.image-fallback { padding: 18px; color: var(--ink-2); font-size: 13px; text-align: center; }
.gallery .main > .image-fallback { width: auto; height: auto; }
@media (max-width: 720px) {
  .nav { gap: 4px 16px; }
  .sec-head { flex-wrap: wrap; gap: 8px 16px; }
  .sec-head h2 { margin-bottom: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card .name, .card .meta { overflow-wrap: anywhere; }
  .product-actions { flex-direction: column; }
  .product-actions .small-btn { width: 100%; }
  .media-tabs button { min-height: 44px; }
  .values div { padding: 18px 14px; }
  .foot-links { gap: 4px 20px; }
  body.has-comparison { padding-bottom: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
