/* =====================================================================
   Hikvision Quote — a TechCo ICT service. Design system (dependency-free).
   Graphite + signal red, generous whitespace, product-grid first.
   ===================================================================== */
:root {
  --ink: #14181d; --ink-2: #2a3139; --muted: #5f6b78; --muted-2: #8b95a1; --line: #e3e7ec; --line-2: #ced5dd;
  --surface: #fff; --soft: #f5f7f9; --soft-2: #eef1f4;
  --graphite: #1b2026; --graphite-2: #262d35; --graphite-3: #323a44;
  --red: #e4002b; --red-dark: #bf0024; --red-soft: #fff0f2;
  --green: #1a9e5a; --green-soft: #e8f7ee; --green-ink: #0e7a42;
  --amber: #c77700; --amber-soft: #fff5e6; --blue: #1f6fd6; --blue-soft: #eaf2fd;
  --shadow: 0 18px 50px rgba(20, 24, 29, .10); --shadow-sm: 0 6px 18px rgba(20, 24, 29, .07);
  --r: 16px; --r-md: 12px; --r-sm: 8px; --container: 1240px;
  --font: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; }
h4 { font-size: 15px; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .92em; background: var(--soft-2); padding: 1px 6px; border-radius: 6px; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.hidden { display: none !important; }
.hide-sm { }
.ico { display: inline-flex; width: 1.1em; height: 1.1em; vertical-align: -.18em; }
.ico svg { width: 100%; height: 100%; }
.ico-product { width: 100%; height: 100%; color: var(--muted-2); padding: 18%; }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: var(--r-sm); min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; cursor: pointer; transition: .15s ease; white-space: nowrap; font-size: 15px; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(228, 0, 43, .22); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: var(--graphite-2); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-light:hover { background: var(--soft); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--soft); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn .ico { width: 1.05em; height: 1.05em; }

/* ---------- badges & pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; line-height: 1.3; white-space: nowrap; }
.badge .ico { width: 1em; height: 1em; }
.badge-green { background: var(--green-soft); color: var(--green-ink); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red-dark); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-grey { background: var(--soft-2); color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--soft-2); border-radius: 6px; padding: 2px 8px; margin: 0 6px 6px 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--graphite); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand search actions" "nav nav nav"; align-items: center; gap: 10px 20px; padding: 10px 0 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; grid-area: brand; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--red); display: grid; place-items: center; color: #fff; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 17px; letter-spacing: -.01em; }
.brand-text small { font-size: 11.5px; color: #b6c0cb; }
.brand-text small strong { color: #fff; font-weight: 700; }
.header-search { grid-area: search; display: flex; max-width: 520px; width: 100%; margin: 0 auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; overflow: hidden; }
.header-search input { flex: 1; background: transparent; border: 0; color: #fff; padding: 9px 14px; min-width: 0; outline: none; }
.header-search input::placeholder { color: #9aa6b2; }
.header-search button { background: transparent; border: 0; color: #fff; padding: 0 12px; cursor: pointer; display: grid; place-items: center; }
.header-search button svg { width: 18px; height: 18px; }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: 8px; justify-self: end; }
.header-actions .btn-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
.quote-count { background: #fff; color: var(--red-dark); border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 2px; }
.main-nav { grid-area: nav; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 0; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 10px 12px; font-size: 14px; font-weight: 600; color: #d5dce3; border-bottom: 3px solid transparent; white-space: nowrap; }
.main-nav a:hover, .main-nav a.on { color: #fff; border-bottom-color: var(--red); }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; width: 40px; height: 40px; padding: 9px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; background: var(--graphite-2); padding: 8px 16px 14px; }
.mobile-nav a { padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 600; color: #e8edf2; }
.mobile-nav.open { display: flex; }
@media (max-width: 900px) {
  .header-row { grid-template-columns: auto 1fr auto; grid-template-areas: "brand brand actions" "search search search"; padding-bottom: 10px; }
  .main-nav, .hide-sm { display: none; }
  .nav-toggle { display: flex; }
  .brand-text small { display: none; }
}

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(228,0,43,.22), transparent 60%), linear-gradient(180deg, var(--graphite) 0%, var(--graphite-2) 100%); color: #fff; padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #ffb3c0; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: #ff5c78; }
.hero-lead { font-size: 18px; color: #c9d2db; max-width: 620px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #d8dee5; font-size: 14px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row .ico { color: #7be3a6; }
.hero-panel { background: #fff; color: var(--ink); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.hero-panel h2 { font-size: 20px; margin-bottom: 4px; }
.hero-panel p.lead-sm { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.seg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-btn { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; background: var(--soft); display: flex; flex-direction: column; gap: 4px; transition: .15s; cursor: pointer; }
.seg-btn:hover { border-color: var(--red); background: #fff; box-shadow: var(--shadow-sm); }
.seg-btn b { font-size: 15px; }
.seg-btn span { font-size: 12.5px; color: var(--muted); }
.hero-panel .fine { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 40px 0 36px; } }

/* page hero (content pages) */
.page-hero { background: var(--graphite); color: #fff; padding: 44px 0 36px; }
.page-hero h1 { margin: 8px 0 10px; }
.page-hero h1 em { font-style: normal; color: #ff5c78; }
.page-hero .lead { max-width: 760px; font-size: 17px; color: #c9d2db; margin-bottom: 18px; }
.page-hero .crumbs { color: #9fb0c2; }
.page-hero .crumbs a { color: #d2dbe4; }
.page-hero .hero-actions { margin-bottom: 0; }
.page-hero .stat-row { display: flex; gap: 22px; flex-wrap: wrap; color: #c9d2db; font-size: 14px; margin-top: 16px; }
.page-hero .stat-row b { color: #fff; font-size: 18px; display: block; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }
.crumb-sep { color: var(--muted-2); }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-head .kicker { font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; display: block; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.section-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-row h2 { margin: 0; }
.link-more { color: var(--red-dark); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: .15s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-media { aspect-ratio: 4 / 3; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.card-top { display: flex; gap: 6px; flex-wrap: wrap; min-height: 20px; }
.card-title { font-size: 15.5px; line-height: 1.3; margin: 2px 0 0; }
.card-title a:hover { color: var(--red-dark); }
.card-model { margin: 0; }
.card-model code { font-size: 12px; }
.card-spec { font-size: 13.5px; color: var(--muted); margin: 0; }
.card-pills { min-height: 20px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.product-card.compact .card-media { aspect-ratio: 16 / 9; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: .15s; }
.tile:hover { box-shadow: var(--shadow-sm); border-color: var(--red); }
.tile .ico { width: 36px; height: 36px; color: var(--red); }
.tile h3 { margin: 4px 0 0; font-size: 17px; }
.tile p { color: var(--muted); font-size: 14px; margin: 0; }
.tile .tile-meta { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: auto; }
.tile-dark { background: var(--graphite); color: #fff; border-color: transparent; }
.tile-dark p { color: #c9d2db; }
.tile-dark .ico { color: #ff5c78; }

/* ---------- price ---------- */
.price { display: inline-flex; align-items: baseline; gap: 5px; font-weight: 800; }
.price-main { font-size: 18px; letter-spacing: -.01em; }
.price-lg .price-main { font-size: 32px; }
.price-vat { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.price-from { font-size: 12px; color: var(--muted); font-weight: 600; }
.price-poa { color: var(--muted); font-weight: 700; font-size: 14px; }
.price-alt { display: block; width: 100%; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.price { flex-wrap: wrap; }
.vat-toggle-wrap { margin-left: 10px; }
.vat-toggle { background: transparent; border: 1px solid var(--line-2); color: var(--muted); padding: 2px 8px; font-size: 12px; cursor: pointer; }
.vat-toggle:first-of-type { border-radius: 6px 0 0 6px; }
.vat-toggle:last-of-type { border-radius: 0 6px 6px 0; border-left: 0; }
.vat-toggle.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.table-compact td, .table-compact th { padding: 7px 10px; font-size: 13.5px; }

/* ---------- content / prose ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } }
.prose { max-width: 780px; font-size: 16.5px; line-height: 1.72; color: var(--ink-2); }
.prose h2 { font-size: 26px; margin: 40px 0 12px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--red-dark); text-decoration: underline; text-decoration-color: rgba(191,0,36,.3); }
.prose strong { color: var(--ink); }
.prose .note, .note { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--r-sm); padding: 12px 16px; margin: 18px 0; font-size: 15px; }
.note-green { border-left-color: var(--green); }
.note-amber { border-left-color: var(--amber); }
.prose table { font-size: 14.5px; }
.prose figure { margin: 20px 0; }
.prose .kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 15px; }
.side-card { position: sticky; top: 96px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.side-card h3 { font-size: 17px; margin: 0; }
.side-card p { font-size: 14px; color: var(--muted); margin: 0; }
.side-links { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; font-size: 14px; }
.side-links a { color: var(--ink-2); }
.side-links a:hover { color: var(--red-dark); }
.side-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-top: 8px; }
.toc { font-size: 14px; }
.toc a { display: block; padding: 4px 0; color: var(--ink-2); border-left: 2px solid var(--line); padding-left: 10px; }
.toc a:hover { border-left-color: var(--red); color: var(--red-dark); }

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 18px 16px; color: var(--ink-2); font-size: 15.5px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--graphite); color: #fff; border-radius: var(--r); padding: 30px 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 40px 0 10px; }
.cta-band h2 { margin: 0 0 4px; font-size: 24px; }
.cta-band p { margin: 0; color: #c9d2db; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-light { background: #fff; color: var(--ink); }

/* ---------- product page ---------- */
.product-hero { padding: 28px 0 36px; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product-media { background: var(--soft); border-radius: var(--r); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
.product-media .ico-product { width: 60%; height: 60%; color: var(--line-2); }
.product-title h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.product-title .model-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.product-title .model-line code { font-size: 14px; }
.product-summary { font-size: 16px; color: var(--ink-2); }
.buy-box { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.buy-box .price-row { display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap; }
.buy-box .price-sub { font-size: 13px; color: var(--muted); }
.buy-box .qty-row { display: flex; gap: 10px; align-items: center; }
.qty-input { width: 72px; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 10px; text-align: center; }
.buy-box .fine { font-size: 12.5px; color: var(--muted); margin: 0; }
.buy-box .install-hint { background: var(--soft); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; }
.buy-box .install-hint b { color: var(--ink); }
.key-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.key-spec { background: var(--soft); border-radius: var(--r-sm); padding: 10px 12px; }
.key-spec small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.key-spec b { font-size: 15px; }
.variant-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.variant-row a, .variant-row span { border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; }
.variant-row .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.spec-groups { columns: 2; column-gap: 28px; }
@media (max-width: 760px) { .spec-groups { columns: 1; } }
.spec-group { break-inside: avoid; margin-bottom: 18px; }
.spec-group h3 { font-size: 15px; margin: 0 0 6px; color: var(--red-dark); text-transform: uppercase; letter-spacing: .04em; }
.spec-group dl { margin: 0; display: grid; grid-template-columns: 42% 58%; font-size: 14px; }
.spec-group dt { color: var(--muted); padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line); }
.spec-group dd { margin: 0; padding: 5px 0; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 34px 0 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.usecase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
.usecase { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; }
.usecase b { display: block; margin-bottom: 4px; }
.usecase.fit-good { border-color: #bfe8cf; background: var(--green-soft); }
.usecase.fit-ok { background: var(--soft); }
.usecase.fit-no { opacity: .6; }

/* ---------- filters / listing ---------- */
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: start; }
@media (max-width: 960px) { .listing { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 92px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.filters h3 { font-size: 14px; margin: 0; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.filters label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.filters .f-group { display: flex; flex-direction: column; gap: 2px; }
.filters .f-group b { font-size: 13px; margin-bottom: 2px; }
.sort-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.sort-row select { border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; background: #fff; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; background: #fff; }
.chip:hover, .chip.on { border-color: var(--red); color: var(--red-dark); background: var(--red-soft); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--r); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; }
.field input, .field select, .field textarea { border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 12px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(228,0,43,.25); border-color: var(--red); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.checks label { display: inline-flex; gap: 7px; align-items: center; }
.form-ok { background: var(--green-soft); border: 1px solid #bfe8cf; color: var(--green-ink); border-radius: var(--r-md); padding: 16px; }
.form-err { background: var(--red-soft); border: 1px solid #ffc5cf; color: var(--red-dark); border-radius: var(--r-md); padding: 12px 16px; }

/* ---------- quote page ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } }
.quote-lines { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.quote-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) 96px 110px 32px; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.quote-line:last-child { border-bottom: 0; }
.quote-line .thumb { width: 56px; height: 44px; background: var(--soft); border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.quote-line .thumb img { object-fit: contain; width: 100%; height: 100%; padding: 4px; mix-blend-mode: multiply; }
.quote-line .thumb .ico { width: 28px; height: 28px; color: var(--muted-2); }
.quote-line .ql-name { font-weight: 700; }
.quote-line .ql-model { font-size: 12px; color: var(--muted); }
.quote-line .ql-remove { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
.quote-line .ql-total { text-align: right; font-weight: 700; }
@media (max-width: 600px) { .quote-line { grid-template-columns: 48px minmax(0, 1fr) 80px; } .quote-line .ql-total { grid-column: 2 / -1; } }
.summary-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 10px; }
.summary-card .sum-row { display: flex; justify-content: space-between; font-size: 14.5px; }
.summary-card .sum-row.total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 4px; }
.summary-card .sum-row.est { color: var(--ink-2); }
.summary-card .est-range { font-weight: 700; }
.summary-card .fine { font-size: 12.5px; color: var(--muted); margin: 0; }
.install-opts { display: grid; gap: 8px; }
.install-opt { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; background: #fff; font-size: 14px; }
.install-opt input { margin-top: 3px; }
.install-opt.on { border-color: var(--red); background: var(--red-soft); }
.install-opt small { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- designer wizard ---------- */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
@media (max-width: 960px) { .wizard { grid-template-columns: 1fr; } }
.wiz-steps { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.wiz-steps li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--soft); }
.wiz-steps li.active { background: var(--ink); color: #fff; }
.wiz-steps li.done { color: var(--green-ink); background: var(--green-soft); }
.wiz-steps { padding: 0; }
.wiz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.wiz-card h2 { font-size: 22px; margin-bottom: 6px; }
.wiz-card .lead-sm { color: var(--muted); margin-bottom: 18px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 600px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; background: #fff; transition: .12s; }
.choice:hover { border-color: var(--red); }
.choice.on { border-color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
.choice b { font-size: 15px; }
.choice span { font-size: 13px; color: var(--muted); }
.zone-list { display: grid; gap: 10px; }
.zone { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.zone b { display: block; font-size: 15px; }
.zone small { color: var(--muted); font-size: 13px; }
.stepper { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.stepper button { width: 38px; height: 38px; border: 0; background: var(--soft); cursor: pointer; font-size: 18px; }
.stepper input { width: 56px; border: 0; text-align: center; }
.wiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 10px; }
.design-summary { background: var(--graphite); color: #fff; border-radius: var(--r); padding: 20px; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 10px; }
.design-summary h3 { margin: 0; font-size: 16px; color: #ffb3c0; text-transform: uppercase; letter-spacing: .05em; }
.design-summary .ds-row { display: flex; justify-content: space-between; font-size: 14px; gap: 10px; color: #d5dce3; }
.design-summary .ds-row b { color: #fff; }
.design-summary .ds-total { font-size: 24px; font-weight: 800; border-top: 1px solid rgba(255,255,255,.14); padding-top: 10px; margin-top: 4px; }
.design-summary .fine { font-size: 12px; color: #9fb0c2; margin: 0; }
.bom { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.bom-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px 120px; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.bom-row:last-child { border-bottom: 0; }
.bom-row b { display: block; }
.bom-row small { color: var(--muted); display: block; font-size: 12.5px; }
.bom-row .num { text-align: right; }
.bom-head { background: var(--soft); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bom-group { background: var(--soft-2); font-weight: 700; padding: 8px 14px; font-size: 13px; }

/* ---------- calculators ---------- */
.calc { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.calc-out { background: #fff; border-radius: var(--r-md); padding: 18px; border: 1px solid var(--line); }
.calc-out .big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.calc-out .big small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.calc-out ul { padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.range { width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: #c9d2db; padding: 48px 0 28px; margin-top: 60px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h4 { color: #fff; margin-bottom: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.foot-col a { display: block; padding: 3px 0; color: #c9d2db; }
.foot-col a:hover { color: #fff; }
.foot-brand .brand-text small { color: #9fb0c2; }
.foot-brand p { margin: 12px 0; }
.foot-contact a { color: #fff; font-weight: 600; }
.foot-badges .badge { background: rgba(255,255,255,.08); color: #d5dce3; margin-right: 6px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: 12.5px; color: #9fb0c2; }
.foot-bottom p { margin: 0 0 6px; }
.foot-bottom .vat-toggle { color: #c9d2db; border-color: rgba(255,255,255,.25); }
.foot-bottom .vat-toggle.on { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transition: .2s; z-index: 100; font-size: 14px; display: flex; gap: 14px; align-items: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: #ffb3c0; font-weight: 700; }
.err { white-space: pre-wrap; font-size: 12px; color: var(--muted); }
.steps-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 860px) { .steps-flow { grid-template-columns: repeat(2, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; margin-bottom: 10px; }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }
.logo-strip { display: flex; gap: 10px 26px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.logo-strip b { color: var(--ink); }
.compare-table td:first-child { font-weight: 600; }
.yes { color: var(--green-ink); font-weight: 700; }
.no { color: var(--muted-2); }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.guide-card { padding: 18px 20px; }
.guide-card .kicker { font-size: 12px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.guide-card h3 { font-size: 17px; margin: 6px 0; }
.guide-card p { font-size: 14px; color: var(--muted); margin: 0; }
.kit-card .kit-items { font-size: 13.5px; color: var(--ink-2); margin: 4px 0 8px; padding-left: 18px; }
.kit-card .kit-price { display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap; }
.sticky-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 0; z-index: 30; }
@media print { .site-header, .site-footer, .sticky-bar, .btn { display: none !important; } }
