/* =====================================================================
   WINDER v3 — каталог обладнання
   Extends winder-v3.css: same tokens, type and motion. Nothing here
   depends on JavaScript to become visible.
   ===================================================================== */

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cat { padding-top: var(--header-h); }
.cat em { font-style: normal; }

/* ------------------------------------------------ page top */
.cat-top { position: relative; z-index: 3; padding: clamp(20px, 3.5vh, 34px) 0 clamp(30px, 5vh, 52px); border-bottom: 1px solid var(--line); }
.cat-top__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cat-top > .container { position: relative; }
.cat-top__blob {
  position: absolute; width: 620px; height: 620px; right: -160px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,134,203,0.22), rgba(0,134,203,0) 70%); filter: blur(56px); pointer-events: none;
}
.cat-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: clamp(24px, 4.5vh, 44px);
  min-height: 63px;
}
.crumbs { min-width: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); overflow-wrap: anywhere;
}
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand-blue); }

.cat-title {
  font-size: clamp(32px, 4.4vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em;
  text-wrap: balance; max-width: 24ch; overflow-wrap: anywhere;
}
.cat-title--xl { font-size: clamp(40px, 6.2vw, 88px); line-height: 0.99; letter-spacing: -0.035em; max-width: 16ch; }
.cat-title--xl em { color: var(--brand-blue); }
.cat-title--long { font-size: clamp(26px, 3vw, 40px); line-height: 1.12; max-width: 34ch; }
.cat-lead { margin-top: 20px; max-width: 62ch; }
.cat-meta { margin-top: 20px; color: var(--ink-2); text-transform: none; letter-spacing: 0.02em; font-size: 13px; }
.cat-top--hub { padding-bottom: clamp(40px, 7vh, 72px); }
.cat-top--list { padding-bottom: clamp(22px, 3.5vh, 34px); }
.cat-top--list .cat-bar { margin-bottom: clamp(18px, 3vh, 30px); }
.cat-top--list .cat-title { font-size: clamp(30px, 3.6vw, 48px); }
.cat-top--list .cat-lead { margin-top: 14px; font-size: 16.5px; max-width: 78ch; }
.cat-top--list .cat-meta { margin-top: 12px; }
.cat-title + .csearch, .cat-lead + .csearch { margin-top: clamp(24px, 4vh, 38px); }
.cat-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.cat-try .mono { margin-right: 6px; }
.cat-note { margin-top: 28px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); max-width: 78ch; }

/* ------------------------------------------------ search field */
.csearch {
  display: flex; align-items: center; gap: 12px; height: 66px; max-width: 760px;
  padding: 0 9px 0 24px; background: #FFFFFF; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  box-shadow: var(--shadow-md); transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.csearch:focus-within { border-color: var(--brand-blue); box-shadow: var(--focus-ring); }
.csearch__ic { display: inline-flex; color: var(--ink-3); flex: none; }
.csearch__in {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 17px; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.csearch__in::placeholder { color: var(--ink-3); }
.csearch__in:focus-visible { box-shadow: none; }
.csearch__btn { height: 48px; padding: 0 26px; flex: none; }
.csearch--sm { height: 46px; width: min(380px, 100%); padding: 0 5px 0 16px; gap: 10px; box-shadow: none; }
.csearch--sm .csearch__in { font-size: 15px; }
.csearch--sm .csearch__btn { height: 36px; padding: 0 16px; font-size: 14px; }
@media (max-width: 720px) {
  .csearch--sm { width: 100%; }
  .csearch { height: 58px; padding-left: 18px; }
  .csearch__btn { padding: 0 18px; height: 44px; }
}

/* ------------------------------------------------ tags and small chips */
.tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 11px; border-radius: 8px;
  background: var(--bg-soft); color: var(--ink); font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.01em; overflow-wrap: anywhere;
}
a.tag { transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
a.tag:hover { background: var(--brand-blue-tint); color: var(--brand-blue-900); }
.tag--link { background: var(--brand-blue-tint); color: var(--brand-blue-900); font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; }
a.tag--link:hover { background: var(--brand-blue); color: #FFFFFF; }
.tag--more { color: var(--ink-3); }
.chip--sm { height: 38px; padding: 0 15px; font-size: 14px; gap: 7px; }
.chip--more { border-style: dashed; color: var(--ink-2); }
a.chip.is-active:hover { color: #FFFFFF; }

/* ------------------------------------------------ hub */
.cat-sec { padding: clamp(48px, 7vw, 88px) 0; }
.cat-sec > .container > .sec-head__top { margin-bottom: 28px; }
.cat-sec .sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.cat-sec .sec-title { font-size: clamp(28px, 3.4vw, 46px); }
.cat-sec .link-arrow { font-size: 15px; }
.ctiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1140px) { .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ctiles { grid-template-columns: 1fr; } }
.ctile {
  position: relative; display: flex; flex-direction: column; min-height: 228px; padding: 24px 24px 22px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow .25s var(--ease-out);
}
.ctile:hover { border-color: var(--brand-blue); box-shadow: 0 4px 12px rgba(0,134,203,0.10); color: var(--ink); }
.ctile__ic {
  width: 52px; height: 52px; border-radius: var(--r-md); background: var(--brand-blue-tint); color: var(--brand-blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.ctile__go { position: absolute; top: 26px; right: 24px; color: var(--ink-3); transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.ctile:hover .ctile__go { color: var(--brand-blue); transform: translateX(4px); }
.ctile__name { margin-top: 22px; font-size: 21px; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
.ctile__blurb { margin: 8px 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ctile__n { margin-top: auto; text-transform: none; letter-spacing: 0.02em; color: var(--ink-2); }
.ctiles--home { margin-top: clamp(28px, 4vw, 44px); }
.ctiles--home .ctile { min-height: 196px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--3 .step__num { margin-bottom: 16px; }
.steps--3 .step p { max-width: 40ch; }
@media (max-width: 760px) { .steps--3 { grid-template-columns: 1fr; } }
.cat-cta { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.cat-cta.sec--soft { background: transparent; }

/* ------------------------------------------------ filters */
.cat-list { padding: clamp(24px, 3.5vw, 40px) 0 clamp(40px, 6vw, 72px); }
.fgroup { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 20px; align-items: baseline; }
.fgroup__name { padding-top: 4px; }
@media (max-width: 760px) { .fgroup { grid-template-columns: minmax(0, 1fr); } }
.cat-list > .container > .fgroup { margin-top: 36px; }

.flayout { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: clamp(28px, 3.4vw, 52px); align-items: start; }
.fmain { min-width: 0; }
.fpanel { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.fpanel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.fpanel__title { font-size: 18px; letter-spacing: -0.015em; }
.fpanel__reset { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.fpanel__reset:hover { color: var(--accent-hover); }
.fpanel__close, .fpanel__foot { display: none; }
.fg { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.fg__name { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.fg__more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.fopts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.fopts--scroll { max-height: 262px; overflow-y: auto; scrollbar-width: thin; margin-right: -6px; padding-right: 6px; }
.fopt {
  position: relative; display: flex; align-items: center; gap: 10px; margin: 0 -8px; padding: 6px 8px; border-radius: 8px;
  font-size: 14.5px; line-height: 1.3; color: var(--ink); cursor: pointer;
  transition: background var(--dur-fast) ease;
}
.fopt:hover { background: var(--bg-soft); color: var(--ink); }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt__box {
  flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 5px; background: #FFFFFF;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.fopt:hover .fopt__box { border-color: var(--brand-blue); }
.fopt.is-on .fopt__box, .fopt input:checked + .fopt__box {
  border-color: var(--brand-blue);
  background: var(--brand-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.fopt input:focus-visible + .fopt__box { box-shadow: var(--focus-ring); }
.fopt__t { min-width: 0; overflow-wrap: anywhere; }
.fopt em { margin-left: auto; padding-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fopt.is-zero { opacity: 0.42; }
.fg .input { height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; }
.fq { margin-bottom: 8px; -webkit-appearance: none; appearance: none; }
.frange { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; color: var(--ink-3); }
.fslider { position: relative; height: 26px; margin: 10px 2px 2px; }
.fslider::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 2px; background: var(--line); }
.fslider__fill { position: absolute; top: 11px; height: 4px; border-radius: 2px; background: var(--brand-blue); }
.fslider input {
  position: absolute; inset: 0; width: 100%; height: 26px; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.fslider input::-webkit-slider-runnable-track { height: 26px; background: none; }
.fslider input::-moz-range-track { height: 26px; background: none; }
.fslider input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: #FFFFFF; border: 2px solid var(--brand-blue); box-shadow: var(--shadow-sm); cursor: grab;
}
.fslider input::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: #FFFFFF; border: 2px solid var(--brand-blue); box-shadow: var(--shadow-sm); cursor: grab;
}
.fslider input:focus-visible { box-shadow: none; }
.fslider input:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus-ring); }
.fquick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fquick__b {
  height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: #FFFFFF;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.fquick__b:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.fquick__b.is-on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

.ftool { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 14px; min-height: 56px; min-width: 0; max-width: 100%; }
.ftool__count { font-size: 15px; color: var(--ink-2); min-width: 0; }
.ftool__count b { color: var(--ink); }
.ftool__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.fsort { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); min-width: 0; max-width: 100%; flex: 1 1 auto; }
.fsort__sel {
  height: 42px; padding: 0 36px 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background-color: #FFFFFF;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none;
  min-width: 0; max-width: 100%; width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235A6B81' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.fsort__sel:focus { outline: none; border-color: var(--brand-blue); box-shadow: var(--focus-ring); }
.fbtn {
  display: none; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--ink); background: var(--ink); color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  flex: 0 0 auto; max-width: 100%;
}
.fbtn i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); font-style: normal; font-size: 12px; line-height: 20px; text-align: center; }
.factive { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
.fchip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-pill);
  background: var(--brand-blue-tint); color: var(--brand-blue-900); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.fchip:hover { background: var(--brand-blue); color: #FFFFFF; }
.fchip--all, .fchip--all:hover { background: none; color: var(--accent); padding: 0 6px; }
.fmore { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 4px; }
.fempty { display: grid; gap: 8px; justify-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); }
.fempty b { font-size: 20px; letter-spacing: -0.015em; }
.fempty span { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.flayout.is-loading .fpanel__body { opacity: 0.6; transition: opacity .2s ease; }

@media (max-width: 1040px) {
  .flayout { grid-template-columns: minmax(0, 1fr); }
  .fpanel { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .fsort__l { display: none; }
  /* with JavaScript the filter column becomes a full-screen sheet opened by «Фільтри» */
  .js .fbtn { display: inline-flex; }
  .js .fpanel {
    position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: #FFFFFF;
    transform: translateY(102%); visibility: hidden; transition: transform .32s var(--ease-out), visibility .32s;
  }
  .js .f-open .fpanel { transform: none; visibility: visible; }
  .js .fpanel__head { align-items: center; padding: 16px var(--pad); border-bottom: 1px solid var(--line); }
  .js .fpanel__title { margin-right: auto; }
  .js .fpanel__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 12px; background: #FFFFFF; color: var(--ink); cursor: pointer; }
  .js .fpanel__body { flex: 1; overflow-y: auto; padding: 0 var(--pad) 12px; }
  .js .fpanel__body > .fg:first-child { border-top: 0; }
  .js .fpanel__foot { display: block; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
  .js .fpanel__foot .btn { width: 100%; }
  .f-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .ftool__right { width: 100%; }
  .fsort { flex: 1 1 170px; }
}

/* ------------------------------------------------ search suggestions */
.csearch { position: relative; }
.ta {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70; max-height: min(68vh, 540px); overflow-y: auto;
  padding: 8px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); text-align: left;
}
.csearch--sm .ta { left: auto; width: min(520px, calc(100vw - 2 * var(--pad))); }
.ta__h { padding: 10px 12px 6px; font-size: 10.5px; }
.ta__i { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 10px; color: var(--ink); }
.ta__i:hover, .ta__i.is-active, .ta__all.is-active { background: var(--bg-soft); color: var(--ink); }
.ta__t { display: grid; gap: 1px; min-width: 0; }
.ta__t b { font-size: 15px; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.ta__t span { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta__i em { flex: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); white-space: nowrap; }
.ta__all { display: block; margin-top: 6px; padding: 13px 12px 11px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font-weight: 700; font-size: 14.5px; color: var(--accent); }
.ta__all:hover { color: var(--accent-hover); }
.ta__none { padding: 14px 12px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 720px) { .ta__i em { display: none; } }
button.tag { border: 0; cursor: pointer; }
button.tag:hover { background: var(--brand-blue-tint); color: var(--brand-blue-900); }

/* ------------------------------------------------ product rows */
.plist {
  --cols: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr)) 160px;
  list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line);
}
.plist__head, .prow { display: grid; grid-template-columns: var(--cols); gap: 6px 18px; align-items: center; }
.plist__head { padding: 12px 0; border-bottom: 1px solid var(--line); }
.plist__head span { font: inherit; }
.prow { position: relative; isolation: isolate; padding: 17px 0 18px; border-bottom: 1px solid var(--line); }
.prow::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -16px; border-radius: var(--r-md); background: var(--bg-soft);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out); pointer-events: none;
}
.prow:hover::before, .prow:focus-within::before { opacity: 1; }
.prow > * { position: relative; }
.prow__main { display: grid; gap: 3px; min-width: 0; }
.prow__brand { font-size: 11px; color: var(--ink-2); }
.prow__name { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.prow__name::after { content: ""; position: absolute; inset: 0; }
.prow__main { position: static; }
.prow:hover .prow__name, .prow__name:focus-visible { color: var(--brand-blue-700); }
.prow__models { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow__status { display: inline-flex; align-items: center; width: fit-content; margin-top: 4px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--bg-cream); color: #A16207; font-size: 12px; font-weight: 600; line-height: 1.3; }
.prow__v { font-size: 14.5px; line-height: 1.35; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.prow__v.is-empty { color: var(--ink-3); }
.prow__n { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.prow__rq { z-index: 1; justify-self: end; height: 38px; padding: 0 14px; font-size: 13.5px; background: #FFFFFF; }
.prow__hits { grid-column: 1 / -1; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.prow__hits .mono { font-size: 10.5px; margin-right: 4px; }
.prow__hits .tag { min-height: 26px; font-size: 12px; background: var(--brand-blue-tint); }
.prow mark, .ta mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.plist--labels .prow__v::before, .plist--labels .prow__n::before {
  content: attr(data-l); display: block; margin-bottom: 3px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 980px) {
  .plist__head { display: none; }
  .prow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding: 18px 0 20px; align-items: start; }
  .prow__main { grid-column: 1 / -1; }
  .prow__v::before, .prow__n::before {
    content: attr(data-l); display: block; margin-bottom: 3px;
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
  }
  .prow__v.is-empty { display: none; }
  .prow__rq { grid-column: 1 / -1; justify-self: start; }
  .prow::before { inset: 0 -12px; }
}

/* ------------------------------------------------ pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px 18px; flex-wrap: wrap; margin-top: 40px; }
.pager__list { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pager__n, .pager__gap {
  min-width: 42px; height: 42px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 13px; color: var(--ink);
}
a.pager__n:hover { background: var(--bg-soft); color: var(--brand-blue); }
.pager__n.is-current { background: var(--ink); color: #FFFFFF; }
.pager__gap { color: var(--ink-3); min-width: 24px; }
.pager__step {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); font-weight: 700; font-size: 14px; color: var(--brand-blue-900);
}
.pager__step:hover { border-color: var(--brand-blue); }

/* ------------------------------------------------ product page */
.p-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px clamp(32px, 5vw, 72px); align-items: center; }
.p-hero__text { min-width: 0; }
@media (max-width: 860px) { .p-hero { grid-template-columns: minmax(0, 1fr); } .p-hero .dwg { justify-self: start; } }
.p-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-bottom: 14px; }
.p-eyebrow a { color: var(--brand-blue); }
.p-eyebrow a:hover { color: var(--brand-blue-700); }
.p-eyebrow span::before { content: "·"; margin: 0 10px; color: var(--line-strong); }
.p-eyebrow > span:first-child::before { content: none; }
.rq__sub + .rq__grid { margin-top: 18px; }
.p-eyebrow .p-flag { margin-left: 14px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg-cream); color: #A16207; }
.p-eyebrow .p-flag::before { content: none; }
.p-models { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.p-models .mono { margin-right: 6px; }
.p-key {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px 40px;
  margin: clamp(28px, 4.5vh, 44px) 0 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.p-key__i { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; min-width: 0; }
.p-key dt { font-size: 13.5px; color: var(--ink-2); }
.p-key dd {
  margin: 0; font-weight: 300; font-size: clamp(30px, 3.3vw, 46px); line-height: 1.02; letter-spacing: -0.03em;
  color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.p-key dd.is-text { font-size: clamp(20px, 2vw, 27px); line-height: 1.16; letter-spacing: -0.02em; padding-top: 0.3em; }
@media (max-width: 560px) { .p-key { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; } }

.p-body { padding: clamp(32px, 5.5vw, 60px) 0 clamp(48px, 7vw, 88px); }
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr) 388px; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 1040px) { .p-grid { grid-template-columns: minmax(0, 1fr); } }
.p-main { min-width: 0; }
.p-intro { display: grid; gap: 12px; max-width: 64ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.p-intro p:first-child { color: var(--ink); }
.p-h2 { margin: clamp(36px, 5vw, 56px) 0 18px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.p-empty { padding: 22px 24px; border-radius: var(--r-lg); background: var(--bg-soft); color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 70ch; }
.p-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.p-tags .mono { margin-right: 6px; }
.cat-sec--rel { padding: 0 0 clamp(36px, 5vw, 56px); }

/* to-scale outline drawing */
.dwg {
  margin: 0; padding: 22px 22px 16px; border-radius: var(--r-lg); max-width: 100%;
  background-color: var(--bg-blue-soft);
  background-image:
    linear-gradient(rgba(0,134,203,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,134,203,0.09) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
}
.dwg figcaption { margin-top: 12px; font-size: 10.5px; color: var(--brand-blue-700); }
.dw { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.dw-obj { fill: #FFFFFF; stroke: var(--ink); stroke-width: 1.5; }
.dw-grid { fill: none; stroke: var(--brand-blue); stroke-width: 0.6; opacity: 0.6; }
.dw-dim { fill: none; stroke: var(--brand-blue); stroke-width: 1; }
.dw-txt { font: 500 11px var(--font-mono); letter-spacing: 0.04em; fill: var(--brand-blue-900); }

/* model comparison */
.vt-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md);
  /* edge shadows that appear only while there is more table to scroll to */
  background:
    linear-gradient(to left, #FFFFFF 40%, rgba(255,255,255,0)) 100% 0 / 44px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, rgba(15,27,45,0.20), rgba(15,27,45,0)) 100% 0 / 16px 100% no-repeat scroll,
    #FFFFFF;
}
.vt-wrap:focus-visible { border-radius: var(--r-md); }
.vt { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.vt th, .vt td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vt tbody th, .vt tfoot th, .vt thead th:first-child {
  position: sticky; left: 0; z-index: 1; background: #FFFFFF; font-weight: 400; color: var(--ink-2);
  white-space: normal; min-width: 168px; max-width: 250px; box-shadow: 1px 0 0 var(--line);
}
.vt thead th { background: var(--bg-soft); font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.vt thead th:first-child { background: var(--bg-soft); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.vt td { color: var(--ink); }
.vt .vt__sec th { position: static; max-width: none; box-shadow: none; background: #FFFFFF; padding-top: 20px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-blue-700); }
.vt tbody tr:is(:hover, :focus-within) > :is(td, th) { background: var(--bg-blue-soft); }
.vt .vt__sec:hover th { background: #FFFFFF; }
.vt tfoot th, .vt tfoot td { border-bottom: 0; padding-top: 14px; padding-bottom: 14px; }
.vt thead th a { color: inherit; }
.vt th a:is(:hover, :focus-visible) { color: var(--brand-blue-700); text-decoration: underline; }
.vt--series tbody th { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.vt--series tbody th a { color: var(--brand-blue-900); font-weight: 700; }
.vt tbody tr.is-current th, .vt tbody tr.is-current td { background: var(--bg-blue-soft); font-weight: 700; }
.vt__rq { color: var(--accent); font-weight: 700; }
.vt__rq:hover { color: var(--accent-hover); }
@media (max-width: 620px) { .vt tbody th, .vt tfoot th, .vt thead th:first-child { min-width: 132px; max-width: 150px; } .vt th, .vt td { padding: 11px 14px; } }

/* shared specifications */
.spec + .spec { margin-top: 30px; }
.spec__h { padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); color: var(--brand-blue-700); font-size: 11.5px; }
.spec dl { margin: 0; }
.spec__r { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4px 28px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec__r dt { font-size: 15px; color: var(--ink-2); }
.spec__r dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 520px) { .spec__r { grid-template-columns: minmax(0, 1fr); padding: 11px 0; } }

/* ------------------------------------------------ price request */
.rq {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: 28px 28px 22px; scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (min-width: 1041px) and (min-height: 860px) { .rq { position: sticky; top: calc(var(--header-h) + 20px); } }
@media (max-width: 520px) { .rq { padding: 24px 20px 18px; } }
.rq__title { font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.rq__sub { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.rq__item { display: grid; gap: 2px; margin: 18px 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.rq__item .mono { font-size: 10.5px; }
.rq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.rq__grid > div { min-width: 0; }
.rq__wide { grid-column: 1 / -1; }
.rq .field-label { font-size: 13px; margin-bottom: 6px; }
.rq .input, .rq .select { height: 48px; font-size: 15.5px; padding-left: 14px; }
.rq .textarea { min-height: 72px; font-size: 15.5px; padding: 11px 14px; }
.rq__send { width: 100%; margin-top: 18px; height: 56px; }
.rq__done-ic { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--brand-blue-tint); color: var(--brand-blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.rq__done.is-failed .rq__done-ic { background: var(--bg-cream); color: #A16207; }
.rq__grid .form-hint { margin-top: -6px; }
.b-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.b-cats__label { font-size: 11.5px; color: var(--ink-3); margin-right: 4px; }
.sres__more { margin-top: 16px; }
.rq__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq__error { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--error); }
.rq__done .btn { margin: 4px 8px 0 0; }

.rq-bar {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  width: min(560px, calc(100% - 24px)); transform: translate(-50%, 140%);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 22px;
  border-radius: var(--r-pill); background: var(--bg-inverted); color: #FFFFFF; box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease-out); visibility: hidden;
}
.rq-bar.is-on { transform: translate(-50%, 0); visibility: visible; }
.rq-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink-on-dark-2); }
.rq-bar b { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: var(--r-pill); background: var(--accent); color: #FFFFFF; font-size: 15px; }
.rq-bar:hover { color: #FFFFFF; }
.rq-bar:hover b { background: var(--accent-hover); }

/* ------------------------------------------------ manufacturers */
.lnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.lnav__l {
  min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--ink);
}
.lnav__l:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.lnav__l.is-active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.bgroup { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 24px; padding: 22px 0 26px; border-top: 1px solid var(--line); }
.bgroup--flat { grid-template-columns: minmax(0, 1fr); border-top: 0; padding-top: 0; }
.bgroup__l { font-weight: 300; font-size: 46px; line-height: 1; letter-spacing: -0.03em; color: var(--brand-blue); }
.blist { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 56px; }
.brow { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.brow__name { font-weight: 700; font-size: 15.5px; overflow-wrap: anywhere; }
.brow__cats { font-size: 13.5px; color: var(--line-strong); }
.brow__cats a { color: var(--ink-2); }
.brow__cats a:hover { color: var(--brand-blue); }
.brow__cats em { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
@media (max-width: 860px) { .blist { columns: 1; } .bgroup { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ------------------------------------------------ search results */
.plist--search { --cols: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 0.8fr); }
.plist--search .prow__name { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0; }
.stabs { display: flex; flex-wrap: wrap; gap: 8px; }
.stabs .chip { font-family: inherit; }
.sres__h { margin: 28px 0 0; padding-bottom: 10px; color: var(--brand-blue-700); }
.plist--search .prow__cat { font-size: 14px; color: var(--ink-2); }
.plist--search .prow__models { white-space: normal; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 980px) { .plist--search .prow { grid-template-columns: minmax(0, 1fr); } }

@media print {
  .rq-bar, .csearch, .cat-cta { display: none !important; }
  .cat { padding-top: 0; }
}

.cat [hidden] { display: none !important; }
