:root{color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:auto}
body{margin:0;background:#fff;color:#000;font:16px/1.5 Arial,Helvetica,sans-serif}
a{color:#000;text-decoration:underline;text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
button,input,textarea,select{font:inherit;color:#000;background:#fff;border:1px solid #000;border-radius:0}
button{cursor:pointer;padding:11px 17px}
button:hover,.button:hover{text-decoration:underline}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #000;outline-offset:3px}
.wrap{max-width:1100px;margin-inline:auto;padding-inline:24px}
header,footer{border-bottom:1px solid #000}
footer{border-top:1px solid #000;border-bottom:0;padding:24px 0;margin-top:60px}
.head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 0}
.brand{font-weight:700;text-decoration:none;line-height:1.3}
nav{display:flex;gap:14px 20px;flex-wrap:wrap;align-items:center}
nav form{margin:0}
main{padding-top:48px;min-height:calc(100vh - 200px)}
h1{font-size:clamp(32px,5vw,50px);line-height:1.15;letter-spacing:-.03em;margin:0 0 16px}
h2{font-size:26px;margin:0 0 20px;line-height:1.2}
h3{font-size:19px;margin:0 0 10px}
p{margin:0 0 16px}
.small{font-size:14px}
.muted{font-weight:400}
.lead{font-size:18px;max-width:720px}
.rule{border:0;border-top:1px solid #000;margin:30px 0}
.button{display:inline-block;border:1px solid #000;padding:11px 17px;text-decoration:none;cursor:pointer}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.card{border:1px solid #000;padding:21px;min-width:0}
.card p:last-child{margin-bottom:0}
.panel{border:1px solid #000;padding:25px;margin:20px 0}
.field{margin-bottom:18px}
.field label{display:block;font-weight:bold;margin-bottom:6px}
.field input,.field textarea,.field select{display:block;width:100%;padding:11px}
.field textarea{min-height:125px;resize:vertical}
.form{max-width:600px}
.hint{font-size:14px;margin-top:5px}
.notice{border:1px solid #000;padding:14px 16px;margin:20px 0}
.notice p:last-child{margin:0}
.layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:40px;align-items:start}
.sidebar{border-top:1px solid #000;display:block}
.sidebar a{display:block;padding:12px 0;border-bottom:1px solid #000;text-decoration:none}
.sidebar .current{font-weight:bold;text-decoration:underline}
.tablewrap{overflow-x:auto}
table{border-collapse:collapse;width:100%;margin:15px 0 24px;min-width:580px}
th,td{padding:12px 10px;border:1px solid #000;text-align:left;vertical-align:top}
.item{padding:19px 0;border-bottom:1px solid #000}
.item:first-child{border-top:1px solid #000}
.inline{display:inline}
.inline button{padding:5px 9px}
.code{font-family:monospace;overflow-wrap:anywhere}
.count{font-size:34px;font-weight:bold}
.back{margin:0 0 24px}
@media(max-width:760px){.head{align-items:flex-start;flex-direction:column}main{padding-top:30px}.layout{grid-template-columns:1fr;gap:24px}.sidebar{display:flex;flex-wrap:wrap;gap:0 20px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two{grid-template-columns:1fr}}
@media(max-width:480px){.wrap{padding-inline:14px}.grid{grid-template-columns:1fr}.actions>*{width:100%;text-align:center}.card{padding:16px}}


/* Unified header: the same layout on the homepage and in the cabinets. */
.site-header{border-bottom:1px solid #000}
.site-header .head{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:20px;align-items:center;padding-block:18px}
.site-header .brand{display:block;max-width:220px;overflow-wrap:anywhere}
.brand-subtitle{display:block;font-size:13px;font-weight:400;margin-top:3px}
.site-header nav{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px 18px;min-width:0}
.site-header nav a{white-space:nowrap}
.site-header nav .inline button{padding:4px 9px}
main.wrap{padding-top:40px}
.hero{padding:18px 0 56px}
.hero h1{max-width:850px}
.home-section{border-top:1px solid #000;padding:48px 0;scroll-margin-top:20px}
.section-note{max-width:750px;margin-bottom:24px}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.section-heading>a{white-space:nowrap;margin-top:8px}
.equipment-tile{display:flex;flex-direction:column;align-items:flex-start;border:1px solid #000;min-width:0;min-height:186px;padding:21px;text-decoration:none;color:#000}
.equipment-tile p{flex:1}
.equipment-tile h2,.equipment-tile h3{margin-bottom:13px}
.equipment-tile:hover,.equipment-tile:focus-visible{outline:1px solid #000;outline-offset:-5px}
.equipment-tile:hover .tile-link{text-decoration-thickness:2px}
.tile-link{text-decoration:underline;text-underline-offset:3px;margin-top:5px}
.equipment-directory{margin:32px 0}
.secondary-action{border-top:1px solid #000;margin-top:40px;padding-top:27px}
.secondary-action p{margin-bottom:12px}
.long-text{max-width:800px;font-size:18px;margin:22px 0 42px}
.detail-section{border-top:1px solid #000;padding-top:25px}
.detail-columns{margin-bottom:45px}
.detail-cta{padding-bottom:25px}
.clear-list{padding-left:20px;margin:0}
.clear-list li{margin-bottom:12px}
.line-list{border-top:1px solid #000}
.line-list article{border-bottom:1px solid #000;padding:17px 0}
.line-list p:last-child{margin-bottom:0}
.request-form{max-width:730px}
.checkline{display:flex;align-items:flex-start;gap:10px;margin-bottom:18px}
.checkline input{width:auto;margin-top:5px}
.checkline label{font-weight:400;margin:0}
#result{padding-top:15px;white-space:pre-wrap}
.footer-line{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
@media (max-width:960px){
  .site-header .head{grid-template-columns:1fr;gap:15px}
  .site-header nav{justify-content:flex-start}
}
@media (max-width:760px){
  .section-heading{display:block}
  .section-heading>a{display:inline-block;margin:0 0 24px}
  .home-section{padding:36px 0}
  .hero{padding-top:8px;padding-bottom:42px}
}
@media (max-width:480px){
  .equipment-tile{min-height:auto;padding:17px}
}
/* Case and document detail pages — monochrome, matching equipment pages. */
.section-sublink{margin-top:24px}
.document-fields{border-top:1px solid #000;margin:18px 0 30px}
.document-fields>div{display:grid;grid-template-columns:minmax(0,210px) minmax(0,1fr);gap:15px;border-bottom:1px solid #000;padding:14px 0}
.document-fields dt{font-weight:bold}
.document-fields dd{margin:0}
@media(max-width:600px){.document-fields>div{grid-template-columns:1fr;gap:5px}}
/* Catalog top level: exactly two directions, no decorative styling. */
.catalog-directions{grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px;margin-top:32px}
@media(max-width:600px){.catalog-directions{grid-template-columns:1fr}}

/* Six structural refinements: breadcrumbs and request/contact columns. */
.breadcrumbs{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:9px;row-gap:4px;margin:0 0 28px;font-size:15px;overflow-wrap:anywhere}
.breadcrumbs span[aria-current="page"]{font-weight:bold}
.request-contact-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(245px,1fr);column-gap:42px;align-items:start}
.request-column{min-width:0}
.request-column .request-form{max-width:none}
.contact-column{min-width:0;border-left:1px solid #000;padding-left:30px;scroll-margin-top:20px}
.contact-column h2{font-size:26px}
.contact-column p{overflow-wrap:anywhere}
@media (max-width:760px){
 .request-contact-layout{grid-template-columns:1fr;row-gap:36px}
 .contact-column{border-left:0;border-top:1px solid #000;padding:26px 0 0}
}

/* Photos: images are full colour on detail pages; grayscale only on catalog covers. */
.cover-img{display:block;width:100%;height:185px;object-fit:contain;margin:0 0 18px;background:#fff;filter:grayscale(100%)}
.equipment-tile .cover-img{height:175px}
.catalog-card .cover-img{height:210px}
.gallery{max-width:830px;margin:28px 0 45px}
.gallery-stage{border:1px solid #000;min-height:260px;display:grid;place-items:center}
.gallery-slide{margin:0;width:100%;padding:15px;text-align:center}
.gallery-slide img{display:block;margin:auto;width:100%;max-height:540px;object-fit:contain;filter:none}
.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0}
.gallery-thumbnails{display:flex;gap:9px;overflow-x:auto;padding:2px 2px 10px}
.gallery-thumbnails button{width:84px;height:72px;padding:4px;flex:none;display:flex;align-items:center;justify-content:center}
.gallery-thumbnails button[aria-pressed="true"]{outline:2px solid #000;outline-offset:1px}
.gallery-thumbnails img{width:100%;height:100%;object-fit:contain;filter:none}
.gallery-slide[hidden]{display:none!important}
.admin-photos{max-width:780px;margin:36px 0;border-top:1px solid #000;padding-top:24px}
.admin-photo-list{display:grid;gap:14px}
.admin-photo{border:1px solid #000;padding:13px;display:flex;gap:16px;align-items:flex-start}
.admin-photo>img{width:120px;height:105px;object-fit:contain;flex:none}
.admin-photo-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.admin-photo-actions form{margin:0}
.admin-photo-actions button{padding:5px 10px}
.admin-small-cover{width:70px;height:62px;object-fit:contain;filter:grayscale(100%)}
@media(max-width:480px){.admin-photo{display:block}.admin-photo>img{margin-bottom:12px}.gallery-stage{min-height:190px}}

.text-pre-wrap { white-space: pre-wrap; }
.checkbox-inline { width: auto; display: inline; }

.pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.5rem 0;flex-wrap:wrap;}
.pagination a{padding:.4rem .8rem;border:1px solid currentColor;}

/* Admin visibility toggle: checkbox must not inherit the full-width input rule. */
.field.checkbox-field > label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}
.field.checkbox-field input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 3px 0 0;
  padding: 0;
  flex: 0 0 auto;
}

/* Only the homepage uses viewport-height sections. The sticky menu counts
   toward the total visible height of each screen. Content is never clipped. */
.home-page .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
}
.home-page main.wrap {
  max-width: none;
  padding: 0;
  min-height: 0;
}
.home-page .hero,
.home-page .home-section {
  width: 100%;
  min-height: calc(100vh - var(--home-header-height, 90px));
  padding: 48px max(24px, calc((100% - 1100px) / 2));
  scroll-margin-top: var(--home-header-height, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-page .hero { padding-block: 42px; }
.home-page footer { margin-top: 0; }
@supports (height: 100svh) {
  .home-page .hero,
  .home-page .home-section {
    min-height: calc(100svh - var(--home-header-height, 90px));
  }
}
@media (max-width: 760px) {
  .home-page .hero,
  .home-page .home-section { padding: 38px 24px; }
}
@media (max-width: 480px) {
  .home-page .hero,
  .home-page .home-section { padding: 28px 14px; }
}

/* Editable project/production/certificate records. */
.client-line{display:flex;align-items:center;min-height:32px;margin:5px 0 12px}
.client-logo{display:block;max-width:185px;max-height:72px;object-fit:contain;filter:none}
.client-detail .client-logo{max-width:240px;max-height:95px}
.showcase-form{max-width:720px}
.showcase-asset{border-top:1px solid #000;margin-top:35px;padding-top:22px}
.showcase-asset .client-logo{margin-bottom:15px}
.admin-delete-inline{margin-top:10px}
.admin-delete-inline button{padding:5px 9px}

/* Homepage imagery is monochrome; detail galleries remain in original colour. */
.home-page img { filter: grayscale(100%) !important; }
.project-client-mark { display:flex; align-items:center; justify-content:center; min-height:105px;
  width:100%; margin-bottom:18px; padding:12px; border-bottom:1px solid #000;
  text-align:center; overflow-wrap:anywhere; }
.project-client-mark strong { font-size:clamp(19px,2.2vw,25px); line-height:1.25; }
.project-logo { width:100%; height:90px; object-fit:contain; filter:grayscale(100%); }
.client-search { max-width:640px; margin:18px 0 28px; }
.client-search label { display:block; font-weight:bold; margin-bottom:8px; }
.search-line { display:flex; gap:8px; }
.search-line input { min-width:0; flex:1; padding:11px; }
.quote-list { display:grid; gap:16px; }
.quote-item { overflow-wrap:anywhere; }
.quote-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:12px; }
.quote-heading h2 { margin:0 0 12px; }
.inline-status { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.inline-status select { padding:8px; }
.client-table td { overflow-wrap:anywhere; }

/* V7: the project calculation form fits a standard desktop screen while
   preserving natural vertical flow on small and zoomed displays. */
.home-page #request { padding-block: 24px; }
.home-page #request h2 { font-size:clamp(22px,2.3vw,28px); margin-bottom:8px; }
.home-page #request .section-note { margin-bottom:14px; font-size:14px; line-height:1.35; }
.home-page #request .request-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:14px;
  row-gap:10px;
  align-items:start;
}
.home-page #request .field { min-width:0; margin:0; }
.home-page #request .field label { font-size:14px; line-height:1.3; margin-bottom:4px; }
.home-page #request .field input,
.home-page #request .field select,
.home-page #request .field textarea { padding:8px 9px; width:100%; }
.home-page #request .field textarea { min-height:76px; }
.home-page #request .hint { font-size:12px; line-height:1.25; margin:3px 0 0; }
.home-page #request .request-wide { grid-column:1/-1; }
.home-page #request .checkline { margin:2px 0 0; }
.home-page #request .checkline label { font-size:13px; line-height:1.35; }
.home-page #request .request-submit { grid-column:1/-1; justify-self:start; padding:9px 16px; }
.home-page #request .contact-column h2 { font-size:23px; }
@media (max-width:840px) {
  .home-page #request .request-contact-layout { grid-template-columns:1fr; row-gap:22px; }
  .home-page #request .contact-column { border-left:0; border-top:1px solid #000; padding:16px 0 0; }
}
@media (max-width:560px) {
  .home-page #request .request-form { grid-template-columns:1fr; }
  .home-page #request .request-wide,
  .home-page #request .request-submit { grid-column:1; }
}
@media (max-height:740px) and (min-width:961px) {
  .home-page #request { padding-block:15px; }
  .home-page #request .request-form { row-gap:7px; }
  .home-page #request .field textarea { min-height:64px; }
}

/* Published certificates share /production, below the production cards. */
.production-certificates { border-top:1px solid #000; margin-top:48px; padding-top:32px; scroll-margin-top:110px; }
.production-certificates .equipment-directory { margin-top:20px; }

/* Product documents are distinct from product photographs. */
.upload-group { border:1px solid #000; padding:15px; margin:12px 0 20px; min-width:0; }
.upload-group legend { padding:0 6px; font-weight:bold; }
.upload-group .field { margin:0; }
.product-documents { border-top:1px solid #000; margin:34px 0 50px; padding-top:25px; }
.document-list { padding-left:22px; overflow-wrap:anywhere; }
.document-list li { margin:8px 0; }
.document-file-list { border-top:1px solid #000; }
.document-file-item { border-bottom:1px solid #000; display:flex; gap:16px; align-items:center; justify-content:space-between; padding:12px 0; overflow-wrap:anywhere; }
.document-file-item form { margin:0; }
.document-file-item button { padding:5px 9px; }
.small-action { padding:5px 9px; }

/* Interaction consistency: no underlines, preserve visible focus indicators. */
a, a:hover, a:focus, a:visited, .tile-link, .sidebar .current {
  text-decoration:none !important;
}
.catalog-card-link{display:block;color:inherit;text-decoration:none}
.catalog-card-link:hover,.catalog-card-link:focus-visible{outline:2px solid #000;outline-offset:2px}
.button-feedback{display:inline-block;margin-left:12px;font-size:14px;font-weight:bold}
.form-inline-error{border-left:3px solid #000;padding:8px 12px;margin:10px 0}
.reset-link-output{width:100%;resize:vertical;border:1px solid #000;padding:10px;overflow-wrap:anywhere}

/* Admin product search: compact controls without horizontal overflow. */
.product-search { margin: 1rem 0; }
.product-search-controls { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: .45rem; }
.product-search-controls input[type="search"] { flex: 2 1 190px; min-width: 0; }
.product-search-controls select { flex: 1 1 170px; min-width: 0; }
.product-search-controls button { flex: 0 0 auto; }

/* V10 — breathing room and a deliberately restrained tonal hierarchy. */
:root { --ink:#090909; --secondary:#525252; --quiet:#818181; --faint:#a0a0a0; --hairline:#e5e5e5; }
.wrap { max-width:1320px; }
.home-page .hero,.home-page .home-section { padding-inline:max(24px,calc((100% - 1320px)/2)); }
@media(max-width:760px) { .home-page .hero,.home-page .home-section { padding-inline:24px; } }
@media(max-width:480px) { .home-page .hero,.home-page .home-section { padding-inline:14px; } }

/* Inner pages display original colours, including their list covers. */
body:not(.home-page) img, body:not(.home-page) .cover-img,
body:not(.home-page) .admin-small-cover,body:not(.home-page) .project-logo { filter:none; }
.home-page img { filter:grayscale(100%) !important; }

/* Keep component boundaries where needed, remove ornamental section rules. */
header,footer,.site-header,.home-section,.secondary-action,.detail-section,
.production-certificates,.sidebar,.sidebar a,.item,.item:first-child,
.line-list,.line-list article,.document-fields,.document-fields>div,
.admin-photos,.showcase-asset,.product-documents,.document-file-list,
.document-file-item,.project-client-mark { border:0; }
.rule { display:none; }
footer { margin-top:44px; }
.home-page footer { margin-top:0; }
.secondary-action,.production-certificates,.admin-photos,.showcase-asset,.product-documents { padding-top:16px; }
.contact-column { border:0; }
@media(max-width:840px) { .home-page #request .contact-column { border:0; padding-top:0; } }
@media(max-width:760px) { .contact-column { border:0; padding-top:0; } }
.item { padding:22px 0; }
.tablewrap th,.tablewrap td { border:0; }
.tablewrap th { color:var(--secondary); background:#f4f4f4; font-size:14px; }
.tablewrap tbody tr:nth-child(even) { background:#fafafa; }
.card,.equipment-tile { border:1px solid var(--hairline); }
.panel,.upload-group,.notice { border-color:var(--hairline); }

/* Emphasis follows information priority, not ornamental dividers. */
h1,h2,h3,.count,.brand,.section-heading h2 { color:var(--ink); }
body { color:var(--ink); }
p, li,dd { color:var(--secondary); }
.lead,.equipment-tile h2,.equipment-tile h3,.card h3 { color:var(--ink); }
.small,.muted,.section-note,.section-heading>a,.pagination,.breadcrumbs,.back { color:var(--quiet); }
.hint,.brand-subtitle { color:var(--quiet); }
input::placeholder,textarea::placeholder { color:var(--faint); }
.site-header nav a, .footer-line a, .sidebar a { color:var(--secondary); }
.site-header nav a:hover,.sidebar a:hover { color:var(--ink); }
a { color:var(--secondary); }
a:visited { color:var(--secondary); }
a:hover { color:var(--ink); }
.equipment-tile,.catalog-card-link { color:var(--ink); }
.equipment-tile p,.catalog-card-link p { color:var(--secondary); }
.button,button[type="submit"],.request-submit { background:var(--ink);color:white;border:1px solid var(--ink); }
.button:visited { color:white; }
.button:hover,button[type="submit"]:hover,.request-submit:hover { background:#333;color:white; }
button[type="button"] { background:#fff; color:var(--ink); }

/* Hover uses transform (no document reflow); respect reduced-motion settings. */
a,button,.button,.equipment-tile,.catalog-card-link { transition:transform .17s ease, color .17s ease, background-color .17s ease; }
a:not(.equipment-tile):not(.catalog-card-link):not(.button):not(.brand-lockup) { display:inline-block; }
a:hover,button:hover,.button:hover,.equipment-tile:hover,.catalog-card-link:hover { transform:scale(1.025); }
.equipment-tile:hover,.equipment-tile:focus-visible { outline:1px solid var(--secondary); outline-offset:0; }
.catalog-card-link:hover,.catalog-card-link:focus-visible { outline:1px solid var(--secondary);outline-offset:0; }
@media(prefers-reduced-motion:reduce) {
  a,button,.button,.equipment-tile,.catalog-card-link { transition:none; }
  a:hover,button:hover,.button:hover,.equipment-tile:hover,.catalog-card-link:hover { transform:none; }
}

/* Sidebar links must remain full-width even when link hover scaling is active. */
.sidebar a { display:block !important; transform-origin:left center; }
.equipment-tile:hover,.catalog-card-link:hover { transform:scale(1.012); }
.equipment-tile:hover,.catalog-card-link:hover { position:relative; z-index:1; }
@media(prefers-reduced-motion:reduce) {
  .equipment-tile:hover,.catalog-card-link:hover { transform:none; }
}

/* V11 visual refinement */
:root{
  --content-width:1320px;
  --text-main:#111;
  --text-soft:#5f5f5f;
  --text-faint:#9a9a9a;
  --line-soft:#dddddd;
}
body{color:var(--text-main)}
.wrap{max-width:var(--content-width)}
main{padding-top:36px}
a{color:var(--text-main);text-decoration:none;transition:transform .16s ease,color .16s ease,opacity .16s ease}
a:hover{color:#000}
button,.button,.site-header nav a,.equipment-tile,.card,.pagination a,.sidebar a{transition:transform .16s ease,background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease}
button:hover,.button:hover,.site-header nav a:hover,.equipment-tile:hover,.card:hover,.pagination a:hover,.sidebar a:hover{transform:scale(1.02);text-decoration:none}
button:active,.button:active,.site-header nav a:active,.equipment-tile:active,.card:active{transform:scale(0.995)}
button:hover,.button:hover{background:#111;color:#fff}
.wrap .muted,.hint,.small,.footer-muted,.section-note,.hero-meta,.small a{color:var(--text-soft)}
.small,.hint,.footer-muted{font-size:14px}
h1,h2,h3,.brand-title,.button{color:#000}
p,li,dd,.document-list a,.tablewrap,td,th{color:var(--text-main)}
.notice,.card,.panel,.equipment-tile,button,input,textarea,select,.gallery-stage,.admin-photo,.pagination a,th,td{border-color:var(--line-soft)}
header,footer,.site-header,.sidebar,.line-list,.document-fields,.document-fields>div,.contact-column,.admin-photos,.showcase-asset,.secondary-action,.rule{border-color:var(--line-soft)}
.rule{display:none}
footer{border-top:0;margin-top:48px;padding:28px 0 34px}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:18px;align-items:start}
.footer-brand{font-weight:700;margin-bottom:4px}
.footer-top{text-align:right}
.site-header{border-bottom:0;background:#fff}
.site-header .head{grid-template-columns:minmax(240px,300px) minmax(0,1fr);padding-block:14px}
.brand-lockup{display:flex;align-items:center;gap:14px;max-width:none}
.brand-logo{display:block;width:58px;height:58px;object-fit:contain;image-rendering:auto;flex:0 0 auto}
.brand-copy{display:flex;flex-direction:column;line-height:1.1}
.brand-title{font-size:20px;font-weight:700}
.brand-subtitle{margin-top:4px;color:var(--text-soft);font-size:13px}
.site-header nav{gap:10px 20px}
.site-header nav a,.site-header nav button{font-size:15px}
.grid{align-items:stretch}
.grid > *{height:100%}
.equipment-tile,.catalog-card,.card{height:100%}
.card,.panel,.equipment-tile,.gallery-stage,.notice,.pagination a{box-shadow:none}
.home-section{border-top:0;padding-top:44px;padding-bottom:44px}
.home-page .hero,.home-page .home-section{padding-inline:max(24px, calc((100% - var(--content-width)) / 2))}
.hero h1{max-width:900px}
.hero .lead{max-width:560px;margin-bottom:10px}
.hero-meta{margin-bottom:20px}
.section-heading{margin-bottom:18px}
.section-heading > div h2{margin-bottom:0}
.section-heading > a{color:var(--text-soft)}
.section-note{margin-bottom:0;max-width:650px}
.equipment-tile{padding:24px;gap:0;border-width:1px;border-style:solid}
.equipment-tile p:last-child{margin-bottom:0}
.equipment-tile h2,.equipment-tile h3{margin-bottom:12px}
.project-client-mark{border-bottom:0;min-height:92px;margin-bottom:10px;padding:0}
.project-logo{height:86px}
.cover-img{background:#fff;border-radius:0;margin-bottom:14px;filter:none}
.home-page .cover-img,.home-page .project-logo,.home-page .brand-logo,.home-page .gallery-thumbnails img,.home-page .gallery-slide img,.home-page img{filter:grayscale(100%) !important}
.request-contact-layout{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);column-gap:52px}
.contact-column{border-left:0;padding-left:0}
.request-form .field,.request-form .checkline{margin-bottom:14px}
.request-form input,.request-form select,.request-form textarea{padding:10px 12px}
.request-form .hint{margin-top:4px}
.breadcrumbs a{color:var(--text-soft)}
.breadcrumbs [aria-current='page']{color:#000}
.pagination span{color:var(--text-soft)}
.tablewrap table a{color:#000}
.back a,.secondary-action a{color:var(--text-soft)}
.home-page .actions .button{min-width:148px;text-align:center}
.contact-column a{color:#000}
.contact-column p{margin-bottom:10px}
.product-documents a,.document-file-item a{color:#000}
@media(max-width:960px){
  .footer-grid{grid-template-columns:1fr 1fr;}
  .footer-top{text-align:left}
  .home-page .hero,.home-page .home-section{padding-inline:24px}
}
@media(max-width:760px){
  .site-header .head{grid-template-columns:1fr;gap:12px}
  .brand-logo{width:50px;height:50px}
  .request-contact-layout{grid-template-columns:1fr;row-gap:26px}
  .contact-column{padding-top:0;border-top:0}
  .home-section{padding-top:36px;padding-bottom:36px}
  .footer-grid{grid-template-columns:1fr;gap:12px}
}
@media(max-width:480px){
  main{padding-top:26px}
  .home-page .hero,.home-page .home-section{padding-inline:14px}
}


/* V12 — minimal interaction refinements */
/* Preserve shape/spacing; use a darker edge rather than a heavier font that causes layout shift. */
.admin-overview-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  color:var(--ink,#111);
  text-decoration:none;
  min-height:160px;
  cursor:pointer;
  transform-origin:center;
}
.admin-overview-card:visited { color:var(--ink,#111); }
.admin-overview-card h3 { margin-top:auto; margin-bottom:0; }
.admin-overview-card:hover,
.admin-overview-card:focus-visible,
.equipment-tile:hover,
.catalog-card-link:hover {
  border-color:#252525;
  box-shadow:inset 0 0 0 1px #252525;
}
.site-header nav a:hover,
.sidebar a:hover,
.section-heading > a:hover,
.breadcrumbs a:hover,
.footer-grid a:hover {
  text-shadow:.3px 0 currentColor;
}
.request-identity {
  margin:4px 0 10px;
  min-width:0;
}
.request-identity summary {
  display:list-item;
  width:fit-content;
  cursor:pointer;
  font-size:14px;
  color:#555;
  padding-block:7px;
  user-select:none;
  transition:color .15s ease;
}
.request-identity summary:hover,
.request-identity summary:focus-visible { color:#000; text-shadow:.3px 0 currentColor; }
.request-identity-fields {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:16px;
  padding:12px 0 0;
}
.request-identity-fields .field {min-width:0;}
.request-identity-fields input {width:100%;}
@media (max-width:600px) {
  .request-identity-fields {grid-template-columns:1fr;}
}
@media (prefers-reduced-motion:reduce) {
  .request-identity summary {transition:none;}
}

/* Three catalog lenses and the PostgreSQL-backed basket. */
.site-header .lens-switch{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:6px;
  padding-top:0;
  padding-bottom:12px;
  font-size:13px;
  flex-wrap:wrap;
}
.lens-caption{color:var(--text-faint);margin-right:8px}
.lens-option{border:1px solid transparent;padding:5px 10px;color:var(--text-soft)}
.lens-option.lens-active{border-color:#111;color:#111;font-weight:700}
.lens-option:hover{color:#000;border-color:#888;transform:scale(1.025)}
.hero-catalog-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  border:1px solid #d6d6d6;padding:clamp(28px,6vw,72px);min-height:55vh;width:100%;
  color:#111;background:white;transition:transform .16s ease,border-color .16s ease}
.hero-catalog-tile:hover,.hero-catalog-tile:focus-visible{border-color:#111;transform:scale(1.01)}
.hero-catalog-tile h1{margin-bottom:12px;font-size:clamp(44px,7vw,92px)}
.hero-catalog-tile p{font-size:18px;color:#555}
.hero-catalog-tile span{margin-top:20px;font-weight:700}
.home-page.lens-neutral .hero{padding-block:26px}
.cart-content{width:100%;max-width:1040px}
.cart-item-list{display:grid;gap:12px}
.cart-item{border:1px solid #dedede;padding:14px;display:grid;
  grid-template-columns:minmax(200px,1fr) auto auto auto;
  gap:16px;align-items:center;min-width:0}
.cart-product{display:flex;align-items:center;gap:15px;min-width:0}
.cart-product-title{font-weight:700;overflow-wrap:anywhere}
.cart-cover{width:75px;height:75px;object-fit:contain;flex:0 0 auto}
.cart-product p{margin:4px 0 0}
.cart-qty-form{display:flex;align-items:center;gap:8px}
.cart-qty-form input{width:70px;padding:8px}
.cart-qty-form button,.cart-remove{padding:8px 10px}
.cart-price{white-space:nowrap}
.cart-warning{color:#9a2424!important}
.cart-summary{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin:16px 0 24px}
.cart-summary p{margin:0}
.cart-summary form{margin:0}
.cart-checkout{max-width:770px;border:1px solid #dedede;padding:22px}
.cart-checkout h3{margin-bottom:12px}
.cart-checkout .field{margin-bottom:12px}
.cart-checkout .request-identity{width:100%}
.cart-checkout .request-identity-fields{padding-top:10px}
.cart-checkout textarea{min-height:80px}
.cart-checkout .hint{margin:8px 0 0}
.cart-checkout .button{background:#111;color:#fff}
.cart-checkout .button:hover{background:#333;color:#fff}
.tile-cart-form{display:flex;gap:10px;align-items:center;margin-top:auto;position:relative;z-index:2}
.tile-cart-form input{width:67px;padding:10px}
.tile-cart-form button{flex:1;padding:10px 12px;white-space:nowrap}
.catalog-product-tile{display:flex;flex-direction:column;min-width:0}
.catalog-product-main{display:flex;flex-direction:column;flex:1;min-width:0;color:#111}
.catalog-product-main p{margin-bottom:12px}
.catalog-product-main p:last-child{margin-top:auto}
.catalog-product-main:hover{color:#000}
.catalog-product-tile:hover{border-color:#111}
.catalog-product-tile:hover .catalog-product-main{transform:scale(1.008)}
.product-cart-form{max-width:310px;margin-bottom:15px}
.product-cart-form input{width:110px}
.product-cart-form button{width:100%}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.order-items-table{min-width:500px}
@media (max-width:1050px){
  .cart-item{grid-template-columns:minmax(180px,1fr) auto auto}
  .cart-item>form:last-child{grid-column:3;justify-self:end}
}
@media (max-width:760px){
  .site-header .lens-switch{justify-content:flex-start}
  .cart-item{grid-template-columns:1fr auto}
  .cart-product{grid-column:1/-1}
  .cart-item>form:last-child{grid-column:2}
  .cart-price{grid-column:1}
  .cart-checkout{padding:16px}
}
@media (max-width:460px){
  .lens-caption{display:none}
  .lens-option{padding:5px 8px;font-size:12px}
  .cart-qty-form{flex-wrap:wrap}
  .cart-price{white-space:normal}
  .hero-catalog-tile{min-height:45vh}
}

/* V14: single-row lens navigation; three in-place presentation modes. */
.site-header .head{grid-template-columns:minmax(190px,260px) minmax(0,1fr);gap:18px}
.site-header nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px 14px}
.site-header .lens-switch{display:inline-flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;
  gap:2px;padding:0;margin-left:4px;border:1px solid #d7d7d7;font-size:12px;white-space:nowrap}
.site-header .lens-option{font-size:12px;line-height:1.3;border:0;padding:8px 10px;color:#5a5a5a;
  display:inline-flex;justify-content:center;align-items:center;min-height:34px}
.site-header .lens-option.lens-active{background:#111;color:#fff;font-weight:700}
.site-header .lens-option:hover:not(.lens-active){background:#eee;color:#111}
.site-header .lens-switch .lens-caption{display:none}
.site-header .nav-logout{margin:0;margin-right:auto}
.site-header .nav-logout button{background:#fff;color:#666;border:0;padding:8px 5px;font-size:13px}
.site-header .nav-logout button:hover{color:#000;background:#f4f4f4}
.nav-priority{display:none!important}
.lens-equipment .nav-priority-equipment{display:inline-flex!important}
.lens-goods .nav-priority-goods{display:inline-flex!important}
.lens-neutral .nav-priority-neutral{display:inline-flex!important}

/* Keep the company introduction first in every lens, including neutral. */
.home-page main.wrap{display:flex;flex-direction:column;align-items:stretch}
.home-page .hero-about{order:0}
.home-page .home-catalog-section,.home-page .home-equipment-section,
.home-page .home-goods-section,
.home-page .home-production-section,.home-page .home-calculation-section,
.home-page .home-cart-section{display:none}
.lens-neutral .home-catalog-section{display:flex;order:1}
.lens-neutral .home-production-section{display:flex;order:2}
.lens-neutral .home-calculation-section{display:flex;order:3}
.lens-neutral .home-cart-section{display:flex;order:4}
.lens-equipment .home-equipment-section{display:flex;order:1}
.lens-equipment .home-production-section{display:flex;order:2}
.lens-equipment .home-calculation-section{display:flex;order:3}
.lens-goods .home-goods-section{display:flex;order:1}
.lens-goods .home-equipment-section{display:flex;order:2}
.lens-goods .home-production-section{display:flex;order:2}
.lens-goods .home-cart-section{display:flex;order:3}
.lens-goods .home-calculation-section{display:flex;order:6}
.hero-about .hero-kicker{font-size:13px;color:#6b6b6b;letter-spacing:.04em;margin-bottom:12px}
.hero-about h1{max-width:850px}
.hero-about .lead{max-width:650px}
.hero-catalog-tile{min-height:60vh}
.lens-neutral .catalog-directions>a[href$="/equipment"],
.lens-equipment .catalog-directions>a[href$="/equipment"]{order:-1}
.lens-goods .catalog-directions>a[href$="/goods"]{order:-1}
.goods-showcase-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-goods-tile{min-width:0;min-height:320px;display:flex;flex-direction:column}
.home-goods-tile .goods-price{font-weight:700;margin-top:auto}
.home-goods-tile .catalog-product-main{flex:1}
.home-goods-tile .tile-cart-form{margin-top:12px}
.home-goods-tile .cover-img{max-height:145px;object-fit:contain}
.calculation-content{max-width:1040px;width:100%}
.calculation-add-form{display:grid;grid-template-columns:minmax(210px,1fr) 90px auto;gap:12px;
  align-items:end;margin-bottom:20px}
.calculation-add-form .field{margin:0}
.calculation-add-form select,.calculation-add-form input{width:100%;padding:10px}
.calculation-add-form button{padding:10px 15px;white-space:nowrap}
.calculation-item{grid-template-columns:minmax(200px,1fr) auto auto}
.calculation-item>form:last-child{justify-self:end}
.calculation-item-list{margin-bottom:14px}
.calculation-checkout{max-width:770px}
.calculation-checkout .checkline{margin-top:10px}
.category-calculation-add{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:20px 0 28px}
.category-calculation-add input{max-width:100px;padding:10px}
.category-calculation-add button{padding:10px 14px}
@media(max-width:1050px){
  .site-header .head{grid-template-columns:1fr}
  .site-header nav{justify-content:flex-start}
  .site-header .nav-logout{margin-right:0}
}
@media(max-width:760px){
  .goods-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .calculation-item{grid-template-columns:1fr auto}
  .calculation-item .cart-product{grid-column:1/-1}
  .calculation-item>form:last-child{grid-column:2}
}
@media(max-width:480px){
  .goods-showcase-grid{grid-template-columns:1fr}
  .calculation-add-form{grid-template-columns:1fr 90px}
  .calculation-add-form>.field:first-child{grid-column:1/-1}
  .calculation-add-form button{grid-column:1/-1}
  .site-header .lens-switch{margin-left:0}
}

/* Explicit contrast for actions (older rules accidentally made black text on black). */
a.button, a.button:link, a.button:visited,
button[type="submit"],.request-submit{
  color:#fff!important;
  background:#111;
  border-color:#111;
}
a.button:hover,button[type="submit"]:hover,.request-submit:hover{
  color:#fff!important;
  background:#333;
  border-color:#333;
}
a.button.button-outline, a.button.button-outline:visited{
  background:#fff;
  color:#111!important;
  border-color:#111;
}
a.button.button-outline:hover{background:#f3f3f3;color:#000!important}
button[type="submit"].muted-action{background:#fff;color:#555!important;border-color:#d5d5d5}
button[type="submit"].muted-action:hover{background:#f3f3f3;color:#111!important}

/* Dated former prices (public list and administration). */
.price-history,.price-history-admin{margin:32px 0;max-width:760px}
.price-history-list{display:grid;gap:0;max-width:760px}
.price-history-row{display:flex;align-items:center;gap:20px;justify-content:space-between;
  padding:12px 0;border-bottom:1px solid #e2e2e2;min-width:0}
.price-history-row time{color:#666;min-width:112px}
.price-history-row strong,.price-history-row span{font-variant-numeric:tabular-nums;color:#111}
.price-history-row form{margin:0;margin-left:auto}
.price-history-editor{border:1px solid #e0e0e0;padding:18px;margin:22px 0}
.price-history-editor legend{font-size:17px;font-weight:700;padding:0 8px}
.price-history-input-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;
  gap:10px;align-items:end;margin-bottom:10px}
.price-history-input-row .field{margin:0}
.price-history-input-row input{width:100%;min-width:0}
.price-history-remove{height:44px;padding:5px;font-size:22px;line-height:1;background:#fff;color:#111;border:1px solid #ddd}
.price-history-remove:hover{color:#fff;background:#111}
@media(max-width:520px){.price-history-input-row{grid-template-columns:1fr 1fr 36px;gap:6px}
  .price-history-editor{padding:12px}
  .price-history-row{gap:8px}}

/* V15: permanent navigation, visible current section, logout after the lens. */
.site-header nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px 13px}
.site-header nav .nav-link{display:inline-flex;align-items:center;position:relative;
  min-height:38px;padding:7px 4px;font-weight:500;color:#555;white-space:nowrap}
.site-header nav .nav-link.nav-current{color:#000;font-weight:700}
.site-header nav .nav-link.nav-current::after{content:"";position:absolute;left:4px;right:4px;bottom:1px;height:2px;background:#111}
.site-header nav .nav-link:hover{color:#000}
.site-header .lens-switch{margin:0;flex:none}
.site-header .nav-logout{margin:0!important;flex:none;order:10}
.site-header .nav-logout button{border:1px solid #ddd!important;padding:8px 12px!important;
  font-size:13px!important;white-space:nowrap;min-height:36px;
  background:#fff!important;color:#111!important}
.site-header .nav-logout button:hover{border-color:#111!important;background:#f6f6f6!important;color:#111!important}
@media(max-width:1050px){.site-header nav{justify-content:flex-start}}


/* V16 — interaction scope, three lenses and accessible text hierarchy. */
.site-header nav .nav-link.nav-current::after{content:none!important;display:none!important}
.site-header nav .nav-link.nav-current{font-weight:750;color:#000}
/* Only actual links/buttons scale. Panels, articles and forms never scale. */
.card:not(a):not(button),
.catalog-product-tile:not(a),.cart-checkout,.calculation-checkout,.cart-item,
.price-history-row,.product-cart-panel,.request-detail-card,
.form,.panel,.upload-group,fieldset,.request-contact-layout,
.admin-photos,.quote-item,.cart-content,.calculation-content{
  transform:none!important;
}
.card:not(a):not(button):hover,.catalog-product-tile:not(a):hover,
.cart-checkout:hover,.calculation-checkout:hover,.cart-item:hover,
.quote-item:hover,.form:hover,.panel:hover,fieldset:hover{
  transform:none!important;
}
/* Avoid nested scale on product link inside static form card. */
.catalog-product-tile:not(a):hover .catalog-product-main{transform:none!important}
/* Border emphasis only for directly clickable surfaces. */
a.equipment-tile:hover,a.catalog-card-link:hover,a.admin-overview-card:hover,
a.hero-catalog-tile:hover,a.goods-category-tile:hover{
  border-color:#111!important;
  box-shadow:0 0 0 1px #111;
  transform:scale(1.012);
}
button:hover,a.button:hover{font-weight:700}
@media(hover:none){a.equipment-tile:hover,a.catalog-card-link:hover,a.hero-catalog-tile:hover{transform:none}}
/* Don't allow long technical product/category names to overflow cards. */
.card-title-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
  overflow:hidden;overflow-wrap:anywhere;word-break:normal;line-height:1.3;max-width:100%}
.catalog-product-main h3,.goods-category-tile h3,.equipment-tile h2,.equipment-tile h3,
.catalog-card h3,.admin-overview-card h3{overflow-wrap:anywhere}
/* Empty-neutral lens offers a full-width, concise catalogue gateway. */
.lens-neutral .home-catalog-section{align-items:stretch}
.lens-neutral .hero-catalog-tile{display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:16px;min-height:min(68vh,600px);width:100%;
  border:1px solid #d6d6d6;padding:clamp(28px,5vw,80px);background:#fff;text-align:center}
.lens-neutral .hero-catalog-tile h2{font-size:clamp(38px,5vw,74px);letter-spacing:-.04em;margin:0}
.lens-neutral .hero-catalog-tile p{color:#777;font-size:clamp(15px,1.5vw,20px);margin:0}
.lens-neutral .hero-catalog-tile span{font-weight:700;margin-top:12px}
/* Goods lens excludes equipment and calculation from the homepage. */
.lens-goods .home-equipment-section,.lens-goods .home-calculation-section{display:none!important}
.lens-goods .home-goods-section{order:1}
.lens-goods .home-production-section{order:2}
.lens-goods .home-cart-section{order:3}
/* Inline errors remain near field; preserve input values on server validation failure. */
.field-error{display:block;color:#a11212;font-size:13px;line-height:1.35;margin-top:5px}
.field input[aria-invalid="true"],.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"]{border-color:#b00020;outline-color:#b00020}
.field-validation-message{margin-top:5px;color:#a11212;font-size:13px;line-height:1.35}
.button-feedback{display:inline-block;margin-left:10px;color:#555;font-size:14px}
.button-feedback:empty{display:none}
@media(prefers-reduced-motion:reduce){a,button,.button,.equipment-tile{transition:none!important;transform:none!important}}

/* V17 — stable header geometry and inline basket feedback. */
.site-header .head {
  display:grid;
  grid-template-columns: minmax(246px, 270px) minmax(0, 1fr);
  align-items:center;
  gap:18px;
}
.site-header .brand.brand-lockup {
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  gap:12px;
  max-width:none;
  width:max-content;
  text-align:left;
  white-space:nowrap;
}
.site-header .brand-lockup .brand-logo {
  display:block;
  flex:0 0 54px;
  width:54px;
  height:54px;
  object-fit:contain;
}
.site-header .brand-lockup .brand-copy {
  display:flex;
  flex-direction:column;
  min-width:0;
  text-align:left;
}
.site-header .brand-lockup .brand-title {white-space:nowrap;}
.site-header nav {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:10px;
  min-width:0;
}
.site-header nav .nav-link {flex:0 0 auto;}
.site-header .lens-switch {
  display:grid;
  grid-template-columns:54px 112px 109px;
  justify-content:initial;
  align-items:stretch;
  flex:0 0 auto;
  width:279px;
  gap:0;
  margin:0;
}
.site-header .lens-option,
.site-header .lens-option.lens-active {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  box-sizing:border-box;
  font-weight:700;
  font-size:12px;
  white-space:nowrap;
  transform:none;
  text-shadow:none;
}
.site-header .lens-option:not(.lens-active){font-weight:700;color:#666;}
.site-header .lens-option:hover {transform:none;background:#f1f1f1;}
.site-header .lens-option.lens-active:hover{background:#111;color:#fff;}
.site-header .nav-logout {margin-left:0!important;margin-right:0!important;order:10;}
.nav-draft-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d7d7d7;
  border-radius:50%;
  margin-left:4px;
  min-width:22px;
  height:22px;
  padding:0 4px;
  font-size:11px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.nav-draft-count[hidden]{display:none!important;}
/* Static product detail panels do not masquerade as clickable tiles. */
.product-detail-layout section.card,
.product-detail-layout section.card:hover,
.cart-checkout,.cart-checkout:hover,
.calculation-checkout,.calculation-checkout:hover,
.calculation-item,.calculation-item:hover {transform:none!important;}
.cart-added {background:#222!important;color:#fff!important;}
.cart-inline-feedback {color:#9b1b1b;font-size:13px;grid-column:1/-1;}
.privacy-consent-row {max-width:620px;align-items:flex-start;}
.privacy-consent-row input[type="checkbox"] {flex:0 0 auto;width:18px;height:18px;margin-top:3px;}
.privacy-consent-row a {text-decoration:underline;text-underline-offset:2px;}
@media(max-width:1320px) {
  .site-header .head {grid-template-columns:1fr;gap:12px;}
  .site-header nav {justify-content:flex-start;flex-wrap:wrap;}
}
@media(max-width:620px) {
  .site-header .brand-lockup .brand-logo {width:48px;height:48px;flex-basis:48px;}
  .site-header .brand-lockup .brand-title {font-size:18px;}
  .site-header .lens-switch {width:279px;}
  .site-header nav {gap:6px 10px;}
}
@media(prefers-reduced-motion:reduce){
  .site-header .lens-option,.site-header .lens-option:hover{transition:none;transform:none;}
}

/* Draft badges reserve their width even before the first refresh. */
.nav-draft-count[hidden]{display:inline-flex!important;visibility:hidden;}


/* V18 — single, aligned navigation; badges do not consume horizontal space. */
.site-header .head{
  display:grid;
  grid-template-columns: minmax(225px,235px) minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding-block:14px;
}
.site-header .brand.brand-lockup{
  display:inline-flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  width:auto;
  min-width:0;
  max-width:none;
  gap:12px;
  white-space:nowrap;
}
.site-header .brand-lockup .brand-logo{
  display:block;
  flex:0 0 54px;
  width:54px;
  height:54px;
  object-fit:contain;
}
.site-header .brand-lockup .brand-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:0;
  min-width:0;
  line-height:1.15;
  text-align:left;
}
.site-header .brand-lockup .brand-title,
.site-header .brand-lockup .brand-subtitle{
  display:block;
  margin:0;
  white-space:nowrap;
}
.site-header .brand-lockup .brand-subtitle{margin-top:5px;}
.site-header nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  column-gap:16px;
  row-gap:10px;
  min-width:0;
}
.site-header nav .nav-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:0;
  min-height:40px;
  padding:7px 2px;
  margin:0;
  font-size:14px;
  line-height:1.35;
  white-space:nowrap;
}
/* The counter is anchored to the action, not part of the spacing calculation. */
.site-header .nav-draft-count{
  position:absolute;
  top:-4px;
  right:-11px;
  display:inline-flex;
  min-width:20px;
  height:20px;
  padding:0 3px;
  margin:0;
  font-size:10px;
  line-height:1;
  background:#fff;
}
.site-header .nav-draft-count[hidden]{display:none!important;visibility:hidden!important;}
.site-header .lens-switch{
  display:grid;
  grid-template-columns:50px 110px 114px;
  align-items:stretch;
  justify-content:initial;
  gap:0;
  flex:0 0 274px;
  width:274px;
  min-width:274px;
  min-height:40px;
  padding:0;
  margin:0;
}
.site-header .lens-option,
.site-header .lens-option.lens-active{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 4px;
  margin:0;
  width:100%;
  line-height:1.2;
  font-size:12px;
  font-weight:600;
  letter-spacing:0;
  text-align:center;
  white-space:nowrap;
  transform:none!important;
}
.site-header .lens-option:not(.lens-active){font-weight:600;}
.site-header .nav-logout{
  display:flex;
  align-items:center;
  margin:0!important;
  order:10;
}
.site-header .nav-logout button{min-height:40px;}
/* Public production page: independent sections, ordered content, no empty placeholders. */
.production-group{margin-top:44px;scroll-margin-top:100px;}
.production-group:first-of-type{margin-top:20px;}
.production-group h2{margin-bottom:20px;}
.production-group .equipment-directory{margin-block:0 18px;}
.home-production-works{margin-top:38px;}
.home-production-works .section-heading{align-items:center;margin-bottom:16px;}
.home-production-works h3{font-size:23px;margin:0;}
.home-production-works .grid{width:100%;}
.home-calculation-section .calculation-content{max-width:1040px;width:100%;}
/* Home calculation no longer has a second contacts column. */
.home-calculation-section .request-contact-layout{display:block;}
@media(max-width:1250px){
  .site-header .head{grid-template-columns:1fr;gap:10px;}
  .site-header nav{justify-content:flex-start;flex-wrap:wrap;}
}
@media(max-width:620px){
  .site-header .brand-lockup .brand-logo{flex-basis:48px;width:48px;height:48px;}
  .site-header nav{column-gap:12px;row-gap:7px;}
  .site-header .lens-switch{grid-template-columns:44px 103px 107px;flex-basis:254px;width:254px;min-width:254px;}
  .site-header .lens-option,.site-header .lens-option.lens-active{font-size:11px;}
  .production-group{margin-top:30px;}
}
@media (prefers-reduced-motion:reduce){
  .site-header nav .nav-link,
  .site-header .lens-option{transition:none;}
}


/* V19 — contacts first, then logo; two vertically/horizontally centered lens options. */
.site-header .head{
  display:grid;
  grid-template-columns:minmax(165px,190px) minmax(215px,235px) minmax(0,1fr);
  gap:clamp(12px,1.4vw,22px);
  align-items:center;
}
.site-header .header-contacts{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  gap:4px;min-width:0;text-align:left;
}
.site-header .header-contacts a{
  display:block;font-size:13px;line-height:1.35;color:#555;
  font-weight:500;white-space:nowrap;text-decoration:none;
}
.site-header .header-contacts a:hover{color:#111;transform:none;}
.site-header .brand.brand-lockup{
  display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;
  gap:12px;min-width:0;max-width:none;
}
.site-header .brand-lockup .brand-logo{flex:0 0 54px;width:54px;height:54px;}
.site-header .brand-lockup .brand-copy{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;
}
.site-header .lens-switch{
  display:grid;grid-template-columns:1.18fr 1fr;
  align-items:stretch;justify-content:stretch;
  width:246px;min-width:246px;flex:0 0 246px;
  min-height:40px;padding:0;gap:0;margin:0;
}
.site-header .lens-option,.site-header .lens-option.lens-active{
  display:flex;align-items:center;justify-content:center;align-self:stretch;justify-self:stretch;
  width:100%;height:100%;min-height:40px;margin:0;padding:4px 5px;
  line-height:1.15;font-size:11.5px;text-align:center;
  white-space:normal;transform:none!important;
}
.hero-about .hero-year{display:inline-block;white-space:nowrap;}
.category-brief{color:#555;line-height:1.45;}
@media(max-width:1450px){
  .site-header .head{grid-template-columns:minmax(165px,190px) minmax(210px,1fr);gap:10px 20px;}
  .site-header nav{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap;}
}
@media(max-width:620px){
  .site-header .head{grid-template-columns:minmax(128px,0.85fr) minmax(0,1.15fr);gap:10px 12px;}
  .site-header .header-contacts a{font-size:clamp(10px,2.6vw,12px);}
  .site-header .brand.brand-lockup{gap:8px;}
  .site-header .brand-lockup .brand-logo{flex-basis:42px;width:42px;height:42px;}
  .site-header .brand-lockup .brand-title{font-size:clamp(13px,3.5vw,18px);}
  .site-header .brand-lockup .brand-subtitle{font-size:11px;}
  .site-header .lens-switch{grid-template-columns:1.18fr 1fr;width:228px;min-width:228px;flex-basis:228px;}
  .site-header .lens-option,.site-header .lens-option.lens-active{font-size:11px;line-height:1.15;text-align:center;}
}
@media(max-width:360px){
  .site-header .head{grid-template-columns:1fr;}
  .site-header nav{grid-column:1;}
  .site-header .header-contacts{flex-direction:row;flex-wrap:wrap;column-gap:8px;row-gap:0;}
}

/* V20: wider layout, edge-aligned contacts, stable navigation and controls. */
:root{--content-width:1520px;}
.site-header .head{
  max-width:none;
  width:100%;
  padding:10px clamp(8px,1vw,18px);
  display:grid;
  grid-template-columns:180px minmax(218px,238px) minmax(0,1fr);
  column-gap:clamp(12px,1.3vw,20px);
  align-items:center;
}
.site-header .header-contacts{
  grid-column:1;
  align-items:flex-start;
  justify-content:center;
  text-align:left;
  align-self:start;
  padding-top:1px;
  min-width:0;
}
.site-header .header-contacts a{font-size:13px;line-height:1.4;white-space:nowrap}
.site-header .brand.brand-lockup{
  grid-column:2;
  display:inline-flex;
  align-items:center;
  flex-direction:row;
  justify-self:start;
  gap:12px;
  margin:0;
  width:max-content;
  min-width:0;
}
.site-header .brand.brand-lockup .brand-logo{display:block;flex:0 0 54px;width:54px;height:54px;}
.site-header .brand-lockup .brand-copy{align-items:flex-start;justify-content:center;}
.site-header nav{grid-column:3;gap:clamp(10px,1vw,16px);justify-content:flex-end;align-items:center;}
.site-header .lens-switch{flex:0 0 246px;min-width:246px;width:246px;}
.site-header .lens-option,.site-header .lens-option.lens-active{
  display:flex!important;align-items:center!important;justify-content:center!important;
  align-self:stretch;justify-self:stretch;line-height:1.15;text-align:center;
  padding:0 5px;transform:none!important;vertical-align:middle;
}
/* No resizing on hover for narrow controls: widths and labels stay stable. */
button:hover,button:active,button:focus-visible,
a.button:hover,a.button:active,
.cart-item button:hover,.cart-item button:active,
.calculation-content button:hover,.calculation-content button:active,
.nav-logout button:hover,.nav-logout button:active {
  transform:none!important;
  font-weight:inherit!important;
}
.cart-qty-form button, .calculation-add-form button,
.cart-remove,.cart-summary button{
  box-sizing:border-box;flex:0 0 auto;
  white-space:nowrap;min-width:max-content;
  transform:none!important;
}
.cart-qty-form{min-width:0;justify-content:flex-start;}
.cart-item{overflow-anchor:none;}
#cart-items,#calculation-items{overflow-anchor:none;}
.draft-operation-status{font-size:13px;color:#555;grid-column:1/-1;}
.draft-operation-status.feedback-error{color:#a11212;}
/* Privacy links are text links, not scalable card buttons. */
.checkline a,.privacy-consent-row a,.checkline a:hover,
.privacy-consent-row a:hover,.footer-top a:hover{
  transform:none!important;
  transition:color .16s ease,text-shadow .16s ease;
  font-weight:inherit!important;
}
.checkline a:hover,.privacy-consent-row a:hover{
  color:#000!important;text-shadow:.3px 0 currentColor;
}
@media(max-width:1410px){
  .site-header .head{grid-template-columns:180px minmax(0,1fr);row-gap:9px;}
  .site-header .header-contacts{grid-column:1;}
  .site-header .brand.brand-lockup{grid-column:2;}
  .site-header nav{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap;}
}
@media(max-width:640px){
  .site-header .head{grid-template-columns:minmax(120px,.75fr) minmax(0,1.25fr);padding-inline:8px;gap:8px 10px;}
  .site-header .header-contacts{grid-column:1;}
  .site-header .header-contacts a{font-size:clamp(10px,2.5vw,12px);}
  .site-header .brand.brand-lockup{grid-column:2;gap:8px;}
  .site-header .brand.brand-lockup .brand-logo{flex-basis:42px;width:42px;height:42px;}
  .site-header nav{grid-column:1/-1;gap:7px 11px;}
  .site-header .lens-switch{width:228px;min-width:228px;flex-basis:228px;}
}
@media(max-width:360px){
  .site-header .head{grid-template-columns:1fr;}
  .site-header .header-contacts{grid-column:1;flex-direction:row;flex-wrap:wrap;column-gap:10px;}
  .site-header .brand.brand-lockup{grid-column:1;}
  .site-header nav{grid-column:1;}
}
@media(prefers-reduced-motion:reduce){
  .checkline a,.privacy-consent-row a{transition:none;}
}
/* Subtle privacy-link emphasis without line-height changes or layout reflow. */
.checkline a:hover,.privacy-consent-row a:hover{
  transform:scale(1.004)!important;
  transform-origin:center;
}
@media(prefers-reduced-motion:reduce){
  .checkline a:hover,.privacy-consent-row a:hover{transform:none!important;}
}

/* V21 — constant navigation geometry across routes and active sections.
   Bold current-item text and asynchronous counters must never redistribute
   neighbouring navigation controls. */
html {scrollbar-gutter: stable;}
.site-header .head {box-sizing:border-box;}
.site-header nav {align-content:center;}
.site-header nav .nav-link {
  box-sizing:border-box;
  flex-grow:0;
  flex-shrink:0;
  justify-content:center;
  text-align:center;
  padding-inline:2px;
  white-space:nowrap;
  transform:none!important;
}
.site-header nav a.nav-link[href="/catalog"] {flex-basis:76px;width:76px;}
.site-header nav a.nav-link[href="/calculation"] {flex-basis:132px;width:132px;}
.site-header nav a.nav-link[href="/cart"] {flex-basis:82px;width:82px;}
.site-header nav a.nav-link[href="/production"] {flex-basis:122px;width:122px;}
.site-header nav a.nav-link[href="/cabinet"] {flex-basis:168px;width:168px;}
.site-header .lens-switch {flex:0 0 246px;width:246px;min-width:246px;}
.site-header nav .nav-logout {flex:0 0 76px;width:76px;justify-content:center;}
.site-header nav .nav-logout button{width:76px;padding-inline:0!important;}
.site-header .nav-draft-count {pointer-events:none;}
@media(max-width:640px){
  .site-header nav a.nav-link[href="/catalog"] {flex-basis:69px;width:69px;}
  .site-header nav a.nav-link[href="/calculation"] {flex-basis:124px;width:124px;}
  .site-header nav a.nav-link[href="/cart"] {flex-basis:75px;width:75px;}
  .site-header nav a.nav-link[href="/production"] {flex-basis:117px;width:117px;}
  .site-header nav a.nav-link[href="/cabinet"] {flex-basis:162px;width:162px;}
  .site-header .lens-switch {flex-basis:228px;width:228px;min-width:228px;}
}
/* Keep the header in the same position while switching pages. */
.site-header {position:sticky;top:0;z-index:50;background:#fff;}
@media (min-width:641px) and (max-width:1540px){
  .site-header .head {
    grid-template-columns:180px minmax(0,1fr);
    row-gap:9px;
  }
  .site-header .header-contacts{grid-column:1;}
  .site-header .brand.brand-lockup{grid-column:2;}
  .site-header nav{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap;}
}
@media (max-width:640px){
  /* A fixed 200px header would obstruct phone-sized screens. */
  .site-header{position:relative;}
}

/* V22 — navigation typography: a small increase with unchanged consistent gaps.
   The fixed-width nav slots from V21 prevent active-state jitter. */
.site-header nav {column-gap:16px;row-gap:10px;}
.site-header nav .nav-link {font-size:15px;}
.site-header nav .nav-logout button {font-size:14px!important;}
.site-header .lens-option,.site-header .lens-option.lens-active {font-size:12.5px;}
@media(max-width:640px){
  .site-header nav {column-gap:11px;row-gap:7px;}
  .site-header nav .nav-link {font-size:14px;}
  .site-header .lens-option,.site-header .lens-option.lens-active {font-size:11.5px;}
}
/* Keep both lens labels inside their controls after the nav type adjustment. */
.site-header .lens-switch{flex-basis:270px;width:270px;min-width:270px;}
@media(max-width:640px){
  .site-header .lens-switch{flex-basis:260px;width:260px;min-width:260px;}
}

/* Equal visible gaps without shifting neighbours when the active label is bold.
   A hidden, bold label reserves exactly the longest font-weight width. */
.site-header nav a.nav-link,
.site-header nav a.nav-link[href="/catalog"],
.site-header nav a.nav-link[href="/calculation"],
.site-header nav a.nav-link[href="/cart"],
.site-header nav a.nav-link[href="/production"],
.site-header nav a.nav-link[href="/cabinet"] {
  display:inline-grid;
  grid-template-columns:max-content;
  grid-template-rows:1fr;
  flex:0 0 auto;
  flex-basis:auto;
  width:max-content;
  justify-items:center;
  align-items:center;
  padding-inline:2px;
}
.site-header nav a.nav-link::before{
  content:attr(data-label);
  grid-row:1;
  grid-column:1;
  font-weight:750;
  visibility:hidden;
  pointer-events:none;
  white-space:nowrap;
}
.site-header nav a.nav-link .nav-label{
  grid-row:1;
  grid-column:1;
  white-space:nowrap;
}
/* An older generic anchor selector forces display:inline-block; undo it for nav only. */
.site-header nav a.nav-link{display:inline-grid!important;}

/* V24: dependent category -> public product picker, identical in calculation/cart. */
.draft-add-form{
  width:100%;max-width:1040px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 86px auto;
  gap:12px;align-items:stretch;margin:0 0 22px;
}
.draft-add-form .field{margin:0;min-width:0;}
.draft-add-form .field select,.draft-add-form .field input{width:100%;min-width:0;padding:10px;}
.draft-add-form .field label{font-size:14px;line-height:1.3;min-height:38px;display:flex;align-items:flex-end;}
.draft-add-form button{padding:10px 15px;white-space:nowrap;min-width:max-content;align-self:end;}
.draft-add-form noscript,.draft-add-form .draft-operation-status{grid-column:1/-1;}
@media(max-width:670px){
  .draft-add-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 10px;}
  .draft-add-form>.field:nth-of-type(3){grid-column:1;}
  .draft-add-form>button{grid-column:2;width:100%;}
}
@media(max-width:410px){
  .draft-add-form{grid-template-columns:1fr;}
  .draft-add-form>.field:nth-of-type(3),.draft-add-form>button{grid-column:1;}
}

/* V25 — the single settings gear replaces the wide navigation lens control. */
.site-header nav .site-settings{
  position:relative;display:block;flex:0 0 42px;width:42px;min-width:42px;
  margin:0;z-index:70;
}
.site-header nav .settings-trigger{
  list-style:none;display:grid;place-items:center;width:42px;height:42px;
  padding:0;cursor:pointer;user-select:none;border:1px solid var(--line-soft);
  border-radius:7px;color:var(--text-main);background:transparent;
  transition:border-color .15s ease,background-color .15s ease;
}
.site-header nav .settings-trigger::-webkit-details-marker{display:none;}
.site-header nav .settings-trigger::marker{content:'';}
.site-header nav .settings-trigger:hover,.site-header nav .site-settings[open] .settings-trigger{
  border-color:currentColor;background:rgba(128,128,128,.08);
}
.site-header nav .settings-trigger:focus-visible{outline:2px solid currentColor;outline-offset:3px;}
.site-header nav .settings-trigger svg{display:block;transition:transform .2s ease;}
.site-header nav .site-settings[open] .settings-trigger svg{transform:rotate(35deg);}
.site-header nav .settings-panel{
  position:absolute;z-index:80;top:calc(100% + 10px);right:0;
  display:grid;gap:16px;width:min(340px,calc(100vw - 20px));
  padding:20px;border:1px solid #cecece;border-radius:9px;
  background:#fff;color:#111;box-shadow:0 12px 32px rgba(0,0,0,.15);
  white-space:normal;text-align:left;
}
.site-header nav .site-settings:not([open]) .settings-panel{display:none!important;}
.site-header nav .settings-group{min-width:0;margin:0;padding:0;border:0;}
.site-header nav .settings-group legend{
  padding:0;margin-bottom:9px;font-size:14px;font-weight:700;line-height:1.4;
}
.site-header nav .settings-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
.site-header nav .settings-options > a,
.site-header nav .settings-options > button{
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  width:100%;min-width:0;min-height:45px;margin:0;padding:9px 7px;
  border:1px solid #c9c9c9;border-radius:5px;
  background:#fff;color:#222;font:500 13px/1.3 Arial,Helvetica,sans-serif;
  text-align:center;text-decoration:none;white-space:normal;
  transform:none!important;box-shadow:none;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
.site-header nav .settings-options > :is(a,button):hover{
  border-color:#333;background:#eee;color:#111;transform:none!important;
}
.site-header nav .settings-options > :is(a,button)[aria-pressed="true"]{
  border-color:#111;background:#111;color:#fff;
  box-shadow:inset 0 0 0 1px #111;
}
.site-header nav .settings-options > :is(a,button):focus-visible{
  outline:2px solid currentColor;outline-offset:2px;
}
.site-header nav .settings-options > a.is-pending{cursor:wait;opacity:.65;pointer-events:none;}
.site-header nav .settings-hint{margin:9px 0 0;font-size:12px;line-height:1.35;color:#666;}
.site-header nav .settings-status{margin:0;color:#a11212;font-size:13px;line-height:1.4;}
.site-header nav .settings-status[hidden]{display:none;}
@media(max-width:640px){
  .site-header nav .site-settings{flex-basis:42px;}
  .site-header nav .settings-panel{position:fixed;top:var(--settings-panel-top,130px);left:10px;right:10px;width:auto;max-height:calc(100dvh - var(--settings-panel-top,130px) - 10px);overflow:auto;}
}

/* A 500-ms fog between lens states, without resizing content or blocking screen readers. */
body::after{
  content:'';position:fixed;inset:0;z-index:300;pointer-events:none;
  opacity:0;visibility:hidden;
  background:rgba(135,135,135,.22);
  -webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);
  transition:opacity .5s ease,visibility 0s linear .5s;
}
body.lens-transitioning::after{
  visibility:visible;transition:opacity .5s ease,visibility 0s linear 0s;
}
body.lens-transitioning.lens-faded::after{opacity:1;}
@media(prefers-reduced-motion:reduce){
  body::after,body.lens-transitioning::after{transition:none!important;display:none!important;}
  .site-header nav .settings-trigger svg{transition:none;}
}

/* Dark mode: black surfaces and light type, with visible form fields and borders.
   Theme is scoped to a root attribute, so default light site styling is untouched. */
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#f2f2f2;--secondary:#dddddd;--quiet:#bcbcbc;--faint:#a8a8a8;
  --hairline:#454545;--text-main:#f2f2f2;--text-soft:#cecece;
  --text-faint:#a8a8a8;--line-soft:#454545;
  background:#080808;
}
html[data-theme="dark"] :is(body,.site-header,footer,main,.panel,.card,.equipment-tile,.catalog-product-tile,.catalog-card,.cart-item,.cart-checkout,.calculation-checkout,.gallery-stage,.admin-photo,.notice,.upload-group,.price-history-editor,.document-fields,.showcase-asset,.hero-catalog-tile){
  background-color:#080808;color:#f2f2f2;border-color:#454545;
}
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6,p,li,dd,dt,strong,legend,label,th,td,small,time,.brand-title,.brand-subtitle,.count,.cart-product-title,.price-history-row strong,.price-history-row span,.category-brief,.request-identity summary,.draft-operation-status,.header-contacts a,.footer-muted){color:#f2f2f2;}
html[data-theme="dark"] :is(a,a:visited,a:hover,.brand,.brand-title,.breadcrumbs a,.breadcrumbs [aria-current="page"],.tablewrap table a,.contact-column a,.product-documents a,.document-file-item a,.catalog-product-main,.catalog-product-main:hover,.section-heading > a,.back a,.secondary-action a){color:#f2f2f2;}
html[data-theme="dark"] .site-header nav :is(.nav-link,.nav-link:hover,.nav-link.nav-current,.nav-logout button,.nav-logout button:hover){color:#f2f2f2!important;}
html[data-theme="dark"] .site-header nav .nav-logout button,
html[data-theme="dark"] .site-header nav .nav-logout button:hover{
  background:#080808!important;border-color:#666!important;
}
html[data-theme="dark"] :is(button,input,textarea,select,option,.reset-link-output,.price-history-remove,.gallery-thumbnails button){
  background-color:#101010;color:#f2f2f2;border-color:#777;
}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#c2c2c2;}
html[data-theme="dark"] :is(button[type="submit"],.button,.request-submit,.cart-checkout .button,a.button,a.button:link,a.button:visited){
  color:#080808!important;background-color:#f2f2f2;border-color:#f2f2f2;
}
html[data-theme="dark"] :is(button[type="submit"],.button,.request-submit,.cart-checkout .button,a.button):hover{
  color:#080808!important;background-color:#d5d5d5;border-color:#f2f2f2;
}
html[data-theme="dark"] :is(button[type="button"],button[type="reset"],.price-history-remove):hover{
  background:#222;color:#fff;border-color:#ddd;
}
html[data-theme="dark"] :is(a.button.button-outline,a.button.button-outline:visited,button[type="submit"].muted-action){
  background:#080808;color:#f2f2f2!important;border-color:#888;
}
html[data-theme="dark"] :is(a.button.button-outline,button[type="submit"].muted-action):hover{
  background:#292929;color:#fff!important;border-color:#ddd;
}
html[data-theme="dark"] :is(.tablewrap th,.tablewrap tbody tr:nth-child(even)){
  background:#171717;color:#f2f2f2;
}
html[data-theme="dark"] :is(.hero-catalog-tile,.lens-neutral .hero-catalog-tile){background:#080808;color:#f2f2f2;border-color:#777;}
html[data-theme="dark"] :is(.hero-catalog-tile p,.lens-neutral .hero-catalog-tile p,.equipment-tile p,.catalog-product-main p,.category-brief,.request-identity summary,.price-history-row time,.hero-meta,.hint,.small,.muted,.section-note,.settings-hint){color:#d5d5d5;}
html[data-theme="dark"] :is(.equipment-tile:hover,.catalog-card-link:hover,.admin-overview-card:hover,.hero-catalog-tile:hover,.goods-category-tile:hover){
  border-color:#ddd!important;box-shadow:inset 0 0 0 1px #ddd;
}
html[data-theme="dark"] :is(.equipment-tile,.catalog-card-link,.catalog-product-main,.goods-category-tile){color:#f2f2f2!important;}
html[data-theme="dark"] :is(.cover-img,.gallery-slide img,.gallery-thumbnails img,.cart-cover,.admin-photo > img,.project-logo){background:#fff;}
/* The black logo becomes white on black; product photography is NOT inverted. */
html[data-theme="dark"] .site-header .brand-logo{filter:invert(1)!important;}
html[data-theme="dark"] :is(.field-error,.field-validation-message,.cart-inline-feedback,.draft-operation-status.feedback-error,.cart-warning){color:#ff9a9a!important;}
html[data-theme="dark"] :is(a,button,input,select,textarea,.settings-trigger):focus-visible{outline-color:#fafafa;}
html[data-theme="dark"] .site-header nav .settings-trigger{background:#080808;color:#fff;border-color:#777;}
html[data-theme="dark"] .site-header nav .settings-trigger:hover{background:#202020;border-color:#eee;}
html[data-theme="dark"] .site-header nav .settings-panel{background:#101010;border-color:#666;color:#fff;box-shadow:0 14px 32px rgba(0,0,0,.7);}
html[data-theme="dark"] .site-header nav .settings-panel :is(legend,.settings-hint){color:#f2f2f2;}
html[data-theme="dark"] .site-header nav .settings-options > :is(a,button){background:#111;color:#eee;border-color:#777;}
html[data-theme="dark"] .site-header nav .settings-options > :is(a,button):hover{background:#282828;color:#fff;border-color:#eee;}
html[data-theme="dark"] .site-header nav .settings-options > :is(a,button)[aria-pressed="true"]{background:#f2f2f2;color:#111;border-color:#f2f2f2;box-shadow:none;}
html[data-theme="dark"] .site-header nav .settings-status{color:#ffaaaa;}
html[data-theme="dark"] .nav-draft-count{background:#111;color:#fff;border-color:#777;}
html[data-theme="dark"] .checkline a:hover,html[data-theme="dark"] .privacy-consent-row a:hover{color:#fff!important;}


/* V27 — native cross-document transitions, supported by Chrome and Safari 18.2+.
   Keep the site header in place; fade/defocus only page content including footer.
   Navigation, redirects, form security and browser history remain browser-native. */
/* Opt-in is injected only for Safari by navigation-init.js. Chrome/Yandex use managed transitions. */
.site-header { view-transition-name: ve-header; }
.site-page { view-transition-name: ve-content; }
::view-transition-old(root), ::view-transition-new(root),
::view-transition-old(ve-header), ::view-transition-new(ve-header) {
  animation-duration: 0s;
}
::view-transition-group(ve-header) { animation-duration: 0s; }
::view-transition-group(ve-content) { animation-duration: 0s; }
::view-transition-old(ve-content) {
  animation: ve-content-out .28s ease-in both;
}
::view-transition-new(ve-content) {
  animation: ve-content-in .36s ease-out .26s both;
}
@keyframes ve-content-out {
  from { opacity: 1; filter: blur(0); transform: scale(1); }
  to { opacity: 0; filter: blur(7px); transform: scale(.987); }
}
@keyframes ve-content-in {
  from { opacity: 0; filter: blur(7px); transform: scale(.987); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}


/* V28 Chromium / Yandex: explicit out/in page motion from the first click.
   This only affects .site-page. Site header never blurs or moves. */
html.ve-managed-nav .site-page {
  transition: opacity 245ms ease-in, filter 245ms ease-in, transform 245ms ease-in;
}
html.ve-managed-nav.ve-nav-leaving .site-page {
  opacity: 0;
  filter: blur(13px);
  transform: translateY(6px) scale(.99);
  pointer-events: none;
}
html.ve-managed-nav.ve-nav-arriving .site-page {
  animation: ve-managed-page-in 390ms cubic-bezier(.16,1,.3,1) 65ms both;
}
@keyframes ve-managed-page-in {
  from { opacity: 0; filter: blur(13px); transform: translateY(6px) scale(.99); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.ve-managed-nav .site-page { transition: none !important; }
  html.ve-managed-nav.ve-nav-arriving .site-page { animation: none !important; }
}


/* V29: a unified, fully clickable catalog gateway (neutral lens only). */
.lens-neutral .home-catalog-section{width:100%;}
.lens-neutral a.hero-catalog-tile{
  display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;
  gap:clamp(22px,3vw,42px);min-height:340px;width:100%;
  padding:clamp(24px,4.2vw,60px);text-align:left;
  background:linear-gradient(137deg,#fff 0%,#f7f7f7 66%,#ededed 100%);
  border:1px solid #d4d4d4;border-radius:16px;box-shadow:0 16px 48px rgba(0,0,0,.035);
  color:#151515;text-decoration:none;transform:none;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.lens-neutral a.hero-catalog-tile:is(:hover,:focus-visible){
  transform:none;border-color:#777!important;box-shadow:0 18px 48px rgba(0,0,0,.09)!important;
}
.catalog-gateway-top{display:flex;gap:24px;justify-content:space-between;align-items:flex-start;min-width:0;}
.catalog-gateway-eyebrow{display:block;margin-bottom:12px;color:#626262;font-size:12px;font-weight:700;
  text-transform:uppercase;letter-spacing:.12em;}
.lens-neutral .hero-catalog-tile .catalog-gateway-top h2{font-size:clamp(40px,5vw,72px);line-height:1.05;letter-spacing:-.045em;margin:0 0 12px;}
.lens-neutral .hero-catalog-tile .catalog-gateway-top p{font-size:clamp(15px,1.3vw,18px);
  line-height:1.5;color:#555;margin:0;max-width:540px;}
.lens-neutral .hero-catalog-tile .catalog-gateway-arrow{
  flex:0 0 auto;display:grid;place-items:center;align-self:flex-start;
  width:54px;height:54px;margin:0;border:1px solid #c7c7c7;border-radius:50%;
  color:#161616;font-size:28px;font-weight:400;transition:transform .2s ease,background .2s ease;
}
.lens-neutral .hero-catalog-tile:is(:hover,:focus-visible) .catalog-gateway-arrow{transform:translate(3px,-3px);background:#eaeaea;}
.catalog-gateway-directions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0;}
.catalog-gateway-direction{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;
  padding:clamp(16px,2vw,28px);border:1px solid #ddd;border-radius:10px;background:#fff;}
.catalog-gateway-direction .catalog-gateway-index{font-weight:700;font-size:10px;letter-spacing:.13em;color:#777;margin:0;}
.catalog-gateway-direction strong{font-size:clamp(17px,1.7vw,23px);line-height:1.2;overflow-wrap:anywhere;color:#191919;}
.catalog-gateway-direction .catalog-gateway-description{font-size:13px;color:#606060;line-height:1.5;margin:0;}
html[data-theme="dark"] .lens-neutral a.hero-catalog-tile{
  background:linear-gradient(137deg,#111 0%,#0b0b0b 100%);border-color:#525252;color:#f2f2f2;}
html[data-theme="dark"] .catalog-gateway-direction{background:#131313;border-color:#414141;}
html[data-theme="dark"] .catalog-gateway-direction :is(strong,.catalog-gateway-description,.catalog-gateway-index),
html[data-theme="dark"] .catalog-gateway-eyebrow{color:#e4e4e4;}
html[data-theme="dark"] .lens-neutral .hero-catalog-tile .catalog-gateway-arrow{color:#eee;border-color:#666;}
html[data-theme="dark"] .lens-neutral .hero-catalog-tile:is(:hover,:focus-visible) .catalog-gateway-arrow{background:#292929;}
@media(max-width:640px){
  .catalog-gateway-directions{grid-template-columns:1fr;}
  .lens-neutral .hero-catalog-tile .catalog-gateway-arrow{width:44px;height:44px;font-size:24px;}
  .catalog-gateway-direction{padding:17px;}
}
/* Admin reorder arrows use fixed-size targets and never change metrics on hover. */
.admin-order-controls{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;margin-right:10px;}
.admin-order-controls form{display:inline-flex;margin:0;}
.admin-order-controls button{
  display:inline-grid;place-items:center;min-width:36px;min-height:34px;padding:4px 8px;
  border:1px solid #bbb;border-radius:6px;font-size:17px;font-weight:500;line-height:1;
  transition:background-color .12s ease,border-color .12s ease;transform:none;
}
.admin-order-controls button:hover{transform:none!important;font-weight:500;background:#eaeaea;border-color:#666;}
html[data-theme="dark"] .admin-order-controls button:hover{background:#292929;color:#fff;}

/* Override old neutral-tile span spacing; sublabels must remain compact. */
.lens-neutral .hero-catalog-tile :is(.catalog-gateway-eyebrow,.catalog-gateway-index,.catalog-gateway-description){
  margin-top:0;font-weight:inherit;
}
.lens-neutral .hero-catalog-tile .catalog-gateway-eyebrow,
.lens-neutral .hero-catalog-tile .catalog-gateway-index{font-weight:700;}


/* V30 — restrained, uniform rounding for interactive controls.
   Cards and data-entry fields retain their established visual hierarchy. */
button,
a.button,
.button,
input[type="submit"],input[type="button"],input[type="reset"],
.pagination a,.admin-order-controls button,
.site-header nav .settings-options > :is(a,button) {
  border-radius:8px;
}
.inline button,.small-action,.admin-order-controls button,.price-history-remove {
  border-radius:6px;
}

/* V30 — mobile-only layout. Desktop rules above are unchanged. */
@media (max-width:760px) {
  html,body {max-width:100%;}
  .wrap,main.wrap {min-width:0;padding-inline:18px;}
  main.wrap {padding-top:23px;}
  h1 {font-size:clamp(27px,5vw,35px);line-height:1.15;margin-bottom:14px;}
  h2 {font-size:clamp(20px,3.6vw,24px);margin-bottom:13px;}
  h3 {font-size:17px;}
  .lead {font-size:16px;}
  .breadcrumbs {font-size:13px;gap:5px 7px;margin-bottom:16px;}
  .back {margin-bottom:17px;}
  .panel {padding:16px;margin-block:14px;}
  .card {padding:15px;}
  .grid,.two {gap:12px;}
  .equipment-tile {padding:16px;min-height:0;}
  .cover-img,.catalog-card .cover-img,.equipment-tile .cover-img {height:142px;}
  .gallery-stage {min-height:190px;}
  .gallery-slide {padding:10px;}
  .gallery-slide img {max-height:350px;}
  .field {margin-bottom:13px;min-width:0;}
  .field label {font-size:14px;margin-bottom:5px;}
  .field :is(input,textarea,select) {max-width:100%;}
  .field textarea {min-height:90px;}
  .form,.cart-checkout {width:100%;max-width:100%;}
  button,a.button,.button {min-height:40px;padding:9px 13px;}
  .inline button,.small-action {padding:7px 10px;min-height:36px;}
  .product-search-controls {gap:8px;}
  .product-search-controls :is(input,select) {min-height:40px;}
  .product-search-controls button {min-height:40px;}
  .product-search-controls > a {padding:7px 5px;}
  .tablewrap {max-width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;}
  .tablewrap table {font-size:13px;}
  .tablewrap th,.tablewrap td {padding:9px 8px;}
  .layout {gap:17px;}
  .sidebar {gap:4px 13px;align-items:center;}
  .sidebar a {padding:7px 0;font-size:14px;}
  .footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
  footer {padding:22px 0;margin-top:26px;}
  .footer-grid > * {min-width:0;overflow-wrap:anywhere;}
  .document-fields > div {padding:9px 0;}
  .document-file-item {gap:9px;flex-wrap:wrap;}
  .request-contact-layout {row-gap:18px;}
  .home-page .hero,.home-page .home-section {
    min-height:0!important;
    padding:32px 18px;
    justify-content:flex-start;
  }
  .home-page .hero {padding-block:38px 28px;}
  .home-page .hero h1 {font-size:clamp(30px,5.7vw,43px);}
  .home-page .hero .lead {font-size:16px;}
  .home-page .hero-about .actions > .button {width:auto;min-width:132px;}
  .home-page .home-section .section-heading {margin-bottom:12px;}
  .home-page .home-section .section-note {font-size:14px;}
  .home-page .home-section .section-heading > a {margin:8px 0 0;}
  .home-page .goods-showcase-grid {gap:12px;}
  .home-page .home-goods-tile {min-height:0;}
  .home-page #request .request-form {row-gap:8px;}
  .home-page #request .contact-column {padding-top:10px;}
  .lens-neutral a.hero-catalog-tile {
    min-height:0;
    gap:18px;
    padding:24px;
    border-radius:13px;
  }
  .lens-neutral .hero-catalog-tile .catalog-gateway-top h2 {font-size:clamp(32px,6vw,44px);margin-bottom:8px;}
  .catalog-gateway-direction {gap:5px;padding:15px;}
  .catalog-gateway-directions {gap:10px;}
  .catalog-gateway-eyebrow {font-size:10px;letter-spacing:.07em;margin-bottom:7px;}
  .cart-item {gap:10px;padding:12px;}
  .cart-cover {width:55px;height:55px;}
  .cart-product {gap:10px;min-width:0;}
  .cart-product > div {min-width:0;}
  .cart-product-title {font-size:14px;line-height:1.3;}
  .cart-product p {font-size:12px;margin:3px 0 0;}
  .cart-qty-form {gap:6px;}
  .cart-qty-form input {width:59px;padding:7px 5px;min-height:38px;}
  .cart-qty-form button,.cart-remove {padding:7px 9px;min-height:38px;font-size:13px;}
  .cart-qty-form label {font-size:13px;}
  .cart-summary {gap:10px 16px;margin:12px 0 17px;}
  .cart-checkout {padding:16px;}
  .draft-add-form {gap:10px;margin-bottom:17px;}
  .draft-add-form .field label {min-height:0;font-size:13px;line-height:1.3;align-items:flex-start;}
  .draft-add-form .field select,.draft-add-form .field input {padding:8px;min-height:40px;}
  .draft-add-form > button {min-height:40px;align-self:end;}
  .price-history-editor {padding:12px;}
  .admin-photo > img {width:85px;height:85px;}
  .admin-photo {gap:10px;padding:10px;}
  .admin-photo-actions {gap:6px;}
}

@media (max-width:640px) {
  .site-header .head {
    grid-template-columns:minmax(112px,.85fr) minmax(0,1.15fr);
    gap:7px 9px;
    padding:8px 10px 10px;
  }
  .site-header .header-contacts {grid-column:1;min-width:0;padding-top:0;}
  .site-header .header-contacts a {font-size:clamp(10px,2.6vw,12px);line-height:1.4;white-space:nowrap;}
  .site-header .brand.brand-lockup {grid-column:2;gap:7px;min-width:0;width:100%;}
  .site-header .brand.brand-lockup .brand-logo {width:38px;height:38px;flex:0 0 38px;}
  .site-header .brand-lockup .brand-copy {min-width:0;}
  .site-header .brand-lockup .brand-title {font-size:clamp(13px,3.4vw,17px);line-height:1.1;}
  .site-header .brand-lockup .brand-subtitle {font-size:11px;margin-top:3px;}
  .site-header nav {grid-column:1/-1;gap:3px 10px;justify-content:flex-start;flex-wrap:wrap;}
  .site-header nav a.nav-link,.site-header nav a.nav-link[href] {
    font-size:13px;min-height:31px;padding:5px 1px;
  }
  .site-header nav .site-settings {flex:0 0 36px;width:36px;min-width:36px;}
  .site-header nav .settings-trigger {width:36px;height:36px;}
  .site-header nav .settings-trigger svg {width:21px;height:21px;}
  .site-header nav .nav-logout {flex:0 0 auto;width:auto;}
  .site-header nav .nav-logout button {width:auto;min-height:34px;padding:6px 11px!important;font-size:12px!important;}
  .site-header nav .settings-panel {padding:14px;gap:12px;}
  .site-header nav .settings-options > :is(a,button) {min-height:41px;padding:7px 5px;font-size:12px;}
  .site-header nav .settings-group legend {margin-bottom:6px;}
  .wrap,main.wrap {padding-inline:14px;}
  main.wrap {padding-top:18px;}
  .home-page .hero,.home-page .home-section {padding:27px 14px;}
  .lens-neutral a.hero-catalog-tile {padding:18px;gap:15px;}
  .lens-neutral .hero-catalog-tile .catalog-gateway-arrow {width:37px;height:37px;font-size:20px;}
  .lens-neutral .hero-catalog-tile .catalog-gateway-top h2 {font-size:34px;}
  .catalog-gateway-direction {padding:13px;}
  .catalog-gateway-direction strong {font-size:17px;}
  .catalog-gateway-description {font-size:12px;}
  .draft-add-form,
  .calculation-add-form,
  .cart-add-form {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .draft-add-form > .field:nth-of-type(1) {grid-column:1;}
  .draft-add-form > .field:nth-of-type(2) {grid-column:2;}
  .draft-add-form > .field:nth-of-type(3) {grid-column:1;}
  .draft-add-form > button {grid-column:2;width:100%;}
  .draft-add-form .field select {font-size:13px;}
  .draft-add-form .field label {font-size:12px;}
  .tablewrap {position:relative;}
  .mobile-admin-cards {overflow:visible;}
  .mobile-admin-cards table,
  .mobile-admin-cards tbody,
  .mobile-admin-cards tr,
  .mobile-admin-cards td {display:block;min-width:0;width:100%;}
  .mobile-admin-cards table {margin:12px 0;border-collapse:separate;}
  .mobile-admin-cards thead {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%);border:0;}
  .mobile-admin-cards tbody {display:grid;gap:12px;}
  .mobile-admin-cards tbody tr {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;padding:13px;border:1px solid var(--line-soft);
    border-radius:11px;background:#fff;
  }
  .mobile-admin-cards tbody td {padding:0;border:0;min-width:0;overflow-wrap:anywhere;}
  .mobile-admin-cards tbody td::before {
    content:attr(data-label);display:block;
    color:var(--text-soft);font-size:11px;font-weight:600;
    line-height:1.3;margin-bottom:4px;
  }
  .mobile-admin-cards tbody td[colspan]::before {content:none;}
  .mobile-admin-cards tbody td:nth-child(2) {grid-column:1/-1;grid-row:1;font-weight:700;font-size:15px;}
  .mobile-admin-cards tbody td:nth-child(1) {grid-column:1;grid-row:2;}
  .mobile-admin-cards tbody td:last-child {grid-column:1/-1;}
  .mobile-admin-cards .admin-small-cover {width:48px;height:44px;vertical-align:middle;}
  .mobile-admin-cards tbody td:last-child > a {display:inline-block;margin:8px 10px 8px 0;}
  .mobile-admin-cards tbody td:last-child > form {display:inline-block;margin:0;}
  .mobile-admin-cards .admin-order-controls {margin-right:7px;}
  .mobile-admin-cards .admin-order-controls button {min-height:36px;min-width:36px;}
  .mobile-admin-cards tbody tr > td[colspan] {grid-column:1/-1;grid-row:1;}
  html[data-theme="dark"] .mobile-admin-cards tbody tr {background:#0b0b0b;border-color:#454545;}
  /* The product search has two filters: keep both controls aligned, with
     Find/Reset sharing the following row instead of orphaning Reset. */
  .product-search-products .product-search-controls {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  }
  .product-search-products .product-search-controls input[type="search"] {grid-column:1/-1;width:100%;}
  .product-search-products .product-search-controls select {width:100%;min-width:0;}
  .product-search-products .product-search-controls button {grid-column:1;width:100%;}
  .product-search-products .product-search-controls > a {
    grid-column:2;display:grid;place-items:center;min-height:40px;
    padding:6px 10px;border:1px solid var(--line-soft);border-radius:8px;
    text-align:center;
  }
  .product-search-controls input[type="search"] {flex:1 1 100%;}
  .product-search-controls select {flex:1 1 120px;}
  .product-search-controls button {flex:1 1 auto;}
  .product-search-controls > a {flex:0 0 auto;align-self:center;}
}

@media (max-width:380px) {
  .site-header .head {grid-template-columns:minmax(106px,.8fr) minmax(0,1.2fr);padding-inline:8px;gap:6px;}
  .site-header .header-contacts a {font-size:10px;}
  .site-header .brand.brand-lockup .brand-logo {flex-basis:34px;width:34px;height:34px;}
  .site-header .brand-lockup .brand-title {font-size:13px;}
  .site-header nav {column-gap:8px;row-gap:2px;}
  .site-header nav a.nav-link,.site-header nav a.nav-link[href] {font-size:12px;}
  .wrap,main.wrap {padding-inline:11px;}
  .home-page .hero,.home-page .home-section {padding-inline:11px;}
  .cart-item {padding:10px;gap:8px;}
  .cart-qty-form {gap:4px;}
  .cart-qty-form button,.cart-remove {padding:7px;}
  .catalog-gateway-top {gap:10px;}
  .lens-neutral .hero-catalog-tile .catalog-gateway-arrow {width:32px;height:32px;}
  .mobile-admin-cards tbody tr {padding:11px;gap:9px;}
  .footer-grid {grid-template-columns:1fr;gap:11px;}
}

@media (max-width:760px) and (hover:none) {
  a:hover,button:hover,.button:hover,.equipment-tile:hover,.catalog-card-link:hover,
  a.hero-catalog-tile:hover,.catalog-product-main:hover {
    transform:none!important;
  }
}


/* V31 — unified photo frames and two-column catalog detail pages.
   All galleries retain the existing navigation and upload behavior. */
.catalog-detail-layout,
.showcase-detail-layout,
.product-detail-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:start;
  gap:24px 28px;
  margin:22px 0 42px;
  min-width:0;
}
.catalog-detail-layout > *,
.showcase-detail-layout > *,
.product-detail-layout > * {min-width:0;}
.catalog-detail-layout .detail-description,
.showcase-detail-layout .detail-description {grid-column:1;grid-row:1;}
.catalog-detail-layout .detail-photographs,
.showcase-detail-layout .detail-photographs {grid-column:2;grid-row:1;}
.detail-without-photos {grid-template-columns:minmax(0,1fr);}
.detail-without-photos .detail-description {grid-column:1;}
.detail-description .lead {max-width:none;}
.detail-description .long-description {margin:0;white-space:pre-line;overflow-wrap:anywhere;}
.detail-description .text-pre-wrap {overflow-wrap:anywhere;}

.product-detail-description {grid-column:1;grid-row:1;}
.product-detail-layout .detail-photographs {grid-column:2;grid-row:1;}
.product-detail-files {grid-column:1;grid-row:2;}
.product-detail-purchase {grid-column:2;grid-row:2;align-self:start;}
.product-detail-layout.detail-without-photos .product-detail-purchase {grid-column:1;grid-row:3;}
.product-detail-layout.detail-without-photos .product-detail-files {grid-column:1;grid-row:2;}
.product-detail-layout .product-documents {
  margin:0;
  padding:20px 0 0;
  border-top:1px solid var(--line-soft,#ddd);
}
.product-detail-purchase h2 {margin-bottom:14px;}
.product-detail-purchase .product-cart-form {max-width:100%;}
.product-detail-purchase .product-cart-form button {max-width:100%;}

/* A fixed image frame independent of the uploaded image's pixel dimensions
   or aspect ratio. No cropping: keep technical labels and complete products visible. */
.detail-photographs {width:100%;min-width:0;}
.gallery {width:100%;max-width:none;margin:0;min-width:0;}
.gallery h2 {margin-bottom:14px;}
.gallery-stage {
  width:100%;height:340px;min-height:0;
  display:block;overflow:hidden;
  background:#fff;
}
.gallery-slide {
  width:100%;height:100%;min-height:0;
  padding:16px;margin:0;
  display:flex;align-items:center;justify-content:center;
}
.gallery-slide img {
  display:block;max-width:100%;max-height:100%;
  width:100%;height:100%;object-fit:contain;object-position:center;
}
.gallery-thumbnails button {width:78px;height:68px;min-height:0;overflow:hidden;}
.gallery-thumbnails img {display:block;width:100%;height:100%;object-fit:contain;}
/* Consistent cover size on all card grids, including goods and equipment. */
.cover-img,
.equipment-tile .cover-img,
.catalog-card .cover-img,
.catalog-product-tile .cover-img,
.home-goods-tile .cover-img {
  display:block;width:100%;height:185px;min-height:185px;max-height:185px;
  object-fit:contain;object-position:center;flex:0 0 auto;
}

@media(max-width:800px) {
  .catalog-detail-layout,
  .showcase-detail-layout,
  .product-detail-layout {
    grid-template-columns:minmax(0,1fr);
    gap:20px;
  }
  .catalog-detail-layout .detail-description,
  .showcase-detail-layout .detail-description,
  .product-detail-description {grid-column:1;grid-row:1;}
  .catalog-detail-layout .detail-photographs,
  .showcase-detail-layout .detail-photographs,
  .product-detail-layout .detail-photographs {grid-column:1;grid-row:2;}
  .product-detail-files,
  .product-detail-layout.detail-without-photos .product-detail-files {grid-column:1;grid-row:3;}
  .product-detail-purchase,
  .product-detail-layout.detail-without-photos .product-detail-purchase {grid-column:1;grid-row:4;}
  .gallery-stage {height:300px;}
}
@media(max-width:480px) {
  .catalog-detail-layout,.showcase-detail-layout,.product-detail-layout {gap:16px;margin:16px 0 30px;}
  .gallery-stage {height:240px;min-height:0;}
  .gallery-slide {padding:10px;}
  .gallery-thumbnails button {width:65px;height:60px;}
  .cover-img,
  .equipment-tile .cover-img,
  .catalog-card .cover-img,
  .catalog-product-tile .cover-img,
  .home-goods-tile .cover-img {height:150px;min-height:150px;max-height:150px;}
}

/* Keep the purchase panel opposite the document list even if no photo was uploaded. */
@media(min-width:801px) {
  .product-detail-layout.detail-without-photos {grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .product-detail-layout.detail-without-photos .product-detail-files {grid-column:1;grid-row:2;}
  .product-detail-layout.detail-without-photos .product-detail-purchase {grid-column:2;grid-row:2;}
  .product-detail-layout.detail-without-photos.detail-without-files .product-detail-purchase {grid-row:1;}
}
@media(max-width:800px) {
  .product-detail-layout.detail-without-photos .product-detail-files {grid-row:2;}
  .product-detail-layout.detail-without-photos .product-detail-purchase {grid-row:3;}
  .product-detail-layout.detail-without-files:not(.detail-without-photos) .product-detail-purchase {grid-row:3;}
  .product-detail-layout.detail-without-photos.detail-without-files .product-detail-purchase {grid-row:2;}
}

/* V32 — category heading and compact purchase controls; forms and routes unchanged. */
.catalog-detail-layout .detail-description > h2 {margin-bottom:14px;}
.product-detail-purchase .product-cart-form {max-width:none;margin-bottom:12px;}
.product-purchase-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(94px,.8fr);
  align-items:start;
  gap:12px;
  min-width:0;
  margin-bottom:16px;
}
.product-purchase-row > * {min-width:0;}
.product-detail-purchase .product-purchase-row h2 {margin:0;font-size:clamp(18px,2vw,24px);line-height:1.25;overflow-wrap:anywhere;}
.product-detail-purchase .product-purchase-price {margin:0;}
.product-purchase-caption,
.product-detail-purchase .product-purchase-quantity label {
  display:block;
  font-weight:700;
  font-size:14px;
  line-height:1.3;
  margin-bottom:8px;
}
.product-detail-purchase .product-purchase-price strong {display:block;font-size:16px;overflow-wrap:anywhere;}
.product-detail-purchase .product-purchase-quantity {margin:0;}
.product-detail-purchase .product-purchase-quantity input {display:block;width:100%;min-width:0;padding:8px;}
.product-detail-purchase .product-cart-form > button {display:block;width:100%;}
@media(max-width:480px) {
  .product-purchase-row {grid-template-columns:minmax(0,.9fr) minmax(0,1fr) minmax(76px,.75fr);gap:7px;}
  .product-detail-purchase .product-purchase-row h2 {font-size:18px;}
  .product-purchase-caption,.product-detail-purchase .product-purchase-quantity label {font-size:12px;}
  .product-detail-purchase .product-purchase-price strong {font-size:14px;}
  .product-detail-purchase .product-purchase-quantity input {padding:8px 5px;}
}


/* V35: accessible CAPTCHA, full-width admin analytics and requests. */
.captcha-panel{padding:16px 18px;border:1px solid var(--hairline,#bbb);margin:16px 0;display:flex;flex-direction:column;gap:9px;max-width:420px;background:var(--surface,#fff)}
.captcha-label{font-weight:600;font-size:14px}
.captcha-image-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.captcha-image-row img{display:block;width:250px;height:94px;max-width:100%;object-fit:contain;border:1px solid var(--hairline,#bbb);background:#fff}
.captcha-panel input[data-captcha-answer]{width:180px;max-width:100%;text-transform:uppercase;letter-spacing:.16em;font-size:18px}
.captcha-refresh{font-size:13px;padding:10px 12px;flex-shrink:0}
.captcha-panel .hint{margin:0;font-size:12px}
.admin-dashboard-analytics-grid{margin-top:24px}
.admin-dashboard-analytics-grid>.admin-analytics-card{grid-column:1/-1;min-width:0}
.admin-analytics-title{text-align:center;margin-bottom:22px}
.admin-analytics-title h2{margin:0 0 5px;font-size:24px}
.admin-analytics-title .hint{margin:0}
.admin-metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.admin-metric{border:1px solid var(--hairline,#ddd);padding:16px;min-width:0;display:flex;flex-direction:column;gap:5px}
.admin-metric>span{font-size:13px;color:var(--text-soft,#555)}
.admin-metric strong{font-size:clamp(24px,3vw,34px);line-height:1.1;font-variant-numeric:tabular-nums}
.admin-metric small{font-size:11px;line-height:1.4;color:var(--text-soft,#555)}
.admin-analytics-lower{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:28px}
.admin-analytics-lower h3{font-size:17px;margin:0 0 14px}
.admin-status-list{display:grid;gap:0}
.admin-status-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--hairline,#ddd)}
.admin-status-list strong{font-variant-numeric:tabular-nums}
.admin-category-stat-list{display:grid;gap:13px}
.admin-category-stat-caption{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:13px}
.admin-category-stat-caption small{color:var(--text-soft,#555)}
.admin-category-stat-caption>span{min-width:0;overflow-wrap:anywhere}
.admin-category-stat-caption strong{white-space:nowrap;flex-shrink:0}
.admin-category-bar{display:block;width:100%;height:5px;margin-top:7px;border:0;appearance:none;background:var(--hairline,#ddd)}
.admin-category-bar::-webkit-progress-bar{background:var(--hairline,#ddd)}
.admin-category-bar::-webkit-progress-value{background:var(--ink,#222)}
.admin-category-bar::-moz-progress-bar{background:var(--ink,#222)}
.admin-dashboard-request-grid{margin-top:24px !important}
.admin-dashboard-request-grid>a.admin-new-requests-card{grid-column:1/-1}
@media(max-width:1050px){.admin-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.admin-analytics-lower{grid-template-columns:1fr}.admin-analytics-title h2{font-size:20px}}
@media(max-width:460px){.admin-metrics-grid{grid-template-columns:1fr 1fr;gap:8px}.admin-metric{padding:11px}.admin-metric strong{font-size:23px}.captcha-panel{padding:12px}.captcha-image-row{gap:8px}}

html[data-theme="dark"] .captcha-panel,
html[data-theme="dark"] .admin-metric{background:#0c0c0c;border-color:#515151;color:#f2f2f2}
html[data-theme="dark"] .captcha-panel .captcha-label,
html[data-theme="dark"] .admin-metric strong{color:#f2f2f2}
html[data-theme="dark"] .admin-metric :is(span,small),
html[data-theme="dark"] .admin-analytics-title .hint{color:#c8c8c8}
html[data-theme="dark"] .admin-category-bar{background:#484848}
html[data-theme="dark"] .admin-category-bar::-webkit-progress-bar{background:#484848}
html[data-theme="dark"] .admin-category-bar::-webkit-progress-value{background:#e8e8e8}
html[data-theme="dark"] .admin-category-bar::-moz-progress-bar{background:#e8e8e8}

/* V34: Homepage category previews and administrator's new-request dashboard. */
/* The existing section-to-section spacing is deliberately unchanged. */
.home-page .home-equipment-section .equipment-grid,
.home-page .home-goods-section .goods-showcase-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.home-page :is(.home-equipment-section,.home-goods-section) .equipment-tile {
  padding-block:28px;
  min-height:245px;
}
/* One wide link, not a set of individual request buttons. */
.admin-dashboard-request-grid {margin-top:0;}
a.admin-new-requests-card {
  grid-column:1 / -1;
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  text-align:left;
  text-decoration:none;
  color:var(--ink,#111);
  cursor:pointer;
}
a.admin-new-requests-card:visited {color:var(--ink,#111);}
a.admin-new-requests-card:hover,
a.admin-new-requests-card:focus-visible {
  border-color:var(--ink,#111);
  box-shadow:inset 0 0 0 1px var(--ink,#111);
}
.admin-new-requests-heading {text-align:center;}
.admin-new-requests-heading h3 {margin:0 0 4px;}
.admin-new-requests-heading > span {font-size:14px;color:var(--text-soft,#555);}
.admin-new-requests-list {list-style:none;width:100%;padding:0;margin:18px 0 0;}
.admin-new-requests-list li {
  display:flex;align-items:start;justify-content:space-between;
  gap:16px;padding:12px 0;
  border-top:1px solid var(--line-soft,#ddd);
}
.admin-new-request-info {display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere;}
.admin-new-request-info > span {font-size:14px;color:var(--text-soft,#555);}
.admin-new-requests-list time {font-size:13px;color:var(--text-soft,#555);flex-shrink:0;white-space:nowrap;}
.admin-new-requests-empty {text-align:center;margin:20px 0 0;color:var(--text-soft,#555);}
@media(max-width:760px) {
  .home-page .home-equipment-section .equipment-grid,
  .home-page .home-goods-section .goods-showcase-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  a.admin-new-requests-card {grid-column:1 / -1;}
}
@media(max-width:480px) {
  .home-page .home-equipment-section .equipment-grid,
  .home-page .home-goods-section .goods-showcase-grid {grid-template-columns:minmax(0,1fr);}
  .home-page :is(.home-equipment-section,.home-goods-section) .equipment-tile {padding-block:21px;min-height:0;}
  .admin-new-requests-list li {flex-direction:column;gap:5px;}
  .admin-new-requests-list time {white-space:normal;}
}


/* V36: clickable daily overview, separate analytics and configurable filters. */
a.admin-analytics-link {display:block;text-decoration:none;color:var(--ink,#111);cursor:pointer;}
a.admin-analytics-link:visited {color:var(--ink,#111);}
a.admin-analytics-link:hover,a.admin-analytics-link:focus-visible {border-color:var(--ink,#111);box-shadow:inset 0 0 0 1px var(--ink,#111);}
a.admin-analytics-link .admin-metrics-grid {margin-bottom:0;}
.admin-analytics-detail {max-width:none;}
.admin-analytics-detail>h2 {font-size:22px;margin:5px 0 18px;}
.admin-analytics-detail .admin-analytics-lower {margin-top:12px;}
.analytics-trend {display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:5px;align-items:end;margin-top:15px;overflow-x:auto;}
.analytics-trend-day {display:flex;flex-direction:column;gap:5px;align-items:center;min-width:24px;text-align:center;}
.analytics-trend-day strong {font-size:11px;font-variant-numeric:tabular-nums;}
.analytics-trend-day small {font-size:10px;white-space:nowrap;writing-mode:vertical-rl;transform:rotate(180deg);}
.analytics-trend-progress {display:block;appearance:none;width:100%;height:84px;border:1px solid var(--hairline,#bbb);background:var(--hairline,#eee);writing-mode:vertical-rl;transform:rotate(180deg);}
.analytics-trend-progress::-webkit-progress-bar {background:var(--hairline,#ddd);}
.analytics-trend-progress::-webkit-progress-value {background:var(--ink,#222);}
.analytics-trend-progress::-moz-progress-bar {background:var(--ink,#222);}
.category-characteristics,.product-characteristics {border:1px solid var(--hairline,#bbb);padding:16px;margin:14px 0;min-width:0;}
.category-characteristics legend,.product-characteristics legend {font-weight:700;padding:0 8px;}
.characteristic-editor-list,.product-characteristic-list {display:grid;gap:10px;margin:14px 0;}
.characteristic-editor-row {display:flex;align-items:center;gap:10px;}
.characteristic-editor-row input[type="text"] {min-width:0;flex:1;}
.characteristic-editor-row button {flex:none;}
.catalog-filters {margin:20px 0 26px;padding:20px;border:1px solid var(--hairline,#bbb);background:var(--surface,#fff);}
.catalog-filters-heading {display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.catalog-filters-heading h2 {margin:0 0 15px;font-size:20px;}
.catalog-filter-form {display:block;}
.catalog-filter-groups {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px;}
.catalog-filter-field {min-width:0;padding:12px;border:1px solid var(--hairline,#ddd);}
.catalog-filter-field legend {font-weight:600;padding:0 5px;font-size:14px;}
.catalog-filter-options {max-height:185px;overflow:auto;display:grid;gap:8px;padding:5px 0;}
.catalog-filter-options label {display:flex;gap:9px;align-items:start;font-size:14px;cursor:pointer;min-width:0;overflow-wrap:anywhere;}
.catalog-filter-options input[type=checkbox] {flex-shrink:0;margin-top:3px;}
.product-specifications {margin:14px 0;display:grid;gap:0;}
.product-specifications div {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;border-bottom:1px solid var(--hairline,#ddd);padding:8px 0;}
.product-specifications dt {font-weight:600;overflow-wrap:anywhere;}
.product-specifications dd {margin:0;overflow-wrap:anywhere;}
@media(max-width:850px){.catalog-filter-groups {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){.catalog-filter-groups{grid-template-columns:1fr}.catalog-filters{padding:13px}.admin-analytics-detail{padding:14px}.characteristic-editor-row {flex-wrap:wrap;}.characteristic-editor-row input[type=text]{width:100%;flex-basis:100%;}}
html[data-theme="dark"] .catalog-filters {background:#0c0c0c;border-color:#515151;}
html[data-theme="dark"] .category-characteristics,html[data-theme="dark"] .product-characteristics,html[data-theme="dark"] .catalog-filter-field {border-color:#515151;}

/* V37 — compact, accessible multi-select filters (goods and equipment). */
.catalog-filters {
  position:relative;margin:24px 0 32px;padding:clamp(18px,2.3vw,28px);
  border:1px solid #dcdcdc;border-radius:16px;
  background:linear-gradient(145deg,#fafafa,#fff 65%);
  box-shadow:0 10px 30px rgba(0,0,0,.035);
}
.catalog-filters-heading {align-items:flex-start;margin-bottom:22px;}
.catalog-filters-heading h2 {font-size:clamp(23px,2.5vw,30px);margin:3px 0 6px;letter-spacing:-.025em;}
.catalog-filter-eyebrow {display:block;color:#707070;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;}
.catalog-filter-intro {font-size:14px;color:#626262;margin:0;line-height:1.5;}
.catalog-filter-reset {font-size:13px;text-decoration:none;border:1px solid #d7d7d7;border-radius:8px;padding:8px 12px;white-space:nowrap;}
.catalog-filter-reset:hover {border-color:#555;}
.catalog-filter-groups {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px;}
.catalog-filter-group {position:relative;min-width:0;}
.catalog-filter-dropdown {position:relative;}
.catalog-filter-trigger {
  list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;
  min-height:69px;padding:13px 14px;border:1px solid #dedede;border-radius:10px;
  background:#fff;cursor:pointer;transition:border-color .16s,box-shadow .16s;
}
.catalog-filter-trigger::-webkit-details-marker {display:none;}
.catalog-filter-trigger::marker {content:'';}
.catalog-filter-trigger:hover,.catalog-filter-dropdown[open]>.catalog-filter-trigger {
  border-color:#888;box-shadow:0 0 0 2px rgba(0,0,0,.035);
}
.catalog-filter-group.has-selection .catalog-filter-trigger {border-color:#777;}
.catalog-filter-trigger-copy {display:grid;gap:3px;min-width:0;}
.catalog-filter-name {font-size:14px;font-weight:750;color:#1c1c1c;overflow-wrap:anywhere;}
.catalog-filter-subtitle {font-size:12px;color:#777;}
.catalog-filter-chevron {width:10px;height:10px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(45deg);transition:transform .15s;flex:none;margin-right:5px;margin-top:-4px;}
.catalog-filter-dropdown[open] .catalog-filter-chevron {transform:rotate(225deg);margin-top:4px;}
.catalog-filter-panel {
  position:absolute;left:0;top:calc(100% + 6px);z-index:20;width:min(355px,max(100%,250px));
  border:1px solid #d8d8d8;border-radius:12px;background:#fff;
  box-shadow:0 15px 34px rgba(0,0,0,.14);padding:9px;
}
.catalog-filter-options {display:grid;gap:2px;max-height:265px;overflow-y:auto;overscroll-behavior:contain;padding:0;}
.catalog-filter-option {
  display:flex;align-items:center;gap:10px;cursor:pointer;min-width:0;padding:10px 8px;
  border-radius:7px;font-size:13px;line-height:1.35;
}
.catalog-filter-option:hover {background:#f2f2f2;}
.catalog-filter-option:has(input:checked) {background:#f1f1f1;}
.catalog-filter-option input[type=checkbox] {margin:0;flex:none;accent-color:#191919;width:16px;height:16px;}
.catalog-filter-option-label {min-width:0;flex:1;overflow-wrap:anywhere;}
.catalog-filter-option-count {margin-left:auto;min-width:24px;text-align:right;color:#7a7a7a;font-variant-numeric:tabular-nums;font-size:11px;}
.catalog-filter-clear {width:100%;margin-top:8px;border:0;border-top:1px solid #eee!important;border-radius:0!important;background:transparent!important;color:#333!important;font-weight:600;font-size:12px;text-align:left;padding:11px 8px!important;min-height:0!important;}
.catalog-filter-clear:disabled {opacity:.42;cursor:default;}
.catalog-active-filters[hidden] {display:none;}
.catalog-active-filters {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:16px 0 10px;}
.catalog-active-filters>strong {font-size:12px;color:#686868;}
.catalog-active-chips {display:flex;flex-wrap:wrap;gap:7px;min-width:0;}
.catalog-filter-chip {display:inline-flex;align-items:center;min-width:0;max-width:100%;overflow-wrap:anywhere;border:1px solid #cbcbcb;border-radius:30px;padding:6px 10px;color:#333;background:#fff;font-size:12px;line-height:1.35;}
button.catalog-filter-chip-button {min-height:0;padding:6px 10px!important;background:#fff!important;color:#252525!important;text-align:left;font-weight:500;white-space:normal;}
button.catalog-filter-chip-button:hover {border-color:#444;text-decoration:none;background:#eee!important;}
.catalog-filter-actions {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding-top:17px;border-top:1px solid #e5e5e5;}
.catalog-filter-status {flex:1;min-width:155px;font-size:12px;color:#777;}
.catalog-filter-apply {padding:11px 20px!important;border-radius:9px!important;min-height:44px;white-space:normal;text-align:center;}
@media(max-width:850px){.catalog-filter-groups{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:570px){
  .catalog-filters{padding:16px;border-radius:12px;}
  .catalog-filter-groups{grid-template-columns:1fr;gap:9px;}
  .catalog-filter-panel{position:static;width:100%;margin-top:5px;box-shadow:none;border-color:#ddd;}
  .catalog-filter-trigger{min-height:61px;}
  .catalog-filter-actions{align-items:stretch;}
  .catalog-filter-apply{width:100%;}
}
html[data-theme="dark"] .catalog-filters{background:linear-gradient(140deg,#131313,#0b0b0b);border-color:#4d4d4d;box-shadow:none;}
html[data-theme="dark"] .catalog-filter-trigger,
html[data-theme="dark"] .catalog-filter-panel,
html[data-theme="dark"] .catalog-filter-chip{background:#171717;color:#f3f3f3;border-color:#505050;}
html[data-theme="dark"] .catalog-filter-option:hover,
html[data-theme="dark"] .catalog-filter-option:has(input:checked){background:#303030;}
html[data-theme="dark"] .catalog-filter-name{color:#f5f5f5;}
html[data-theme="dark"] .catalog-filter-subtitle,
html[data-theme="dark"] .catalog-filter-option-count,
html[data-theme="dark"] .catalog-filter-intro,
html[data-theme="dark"] .catalog-filter-status,
html[data-theme="dark"] .catalog-filter-eyebrow{color:#c8c8c8;}
html[data-theme="dark"] .catalog-filter-clear{color:#f2f2f2!important;border-color:#505050!important;}
html[data-theme="dark"] .catalog-filter-reset{border-color:#666;}
html[data-theme="dark"] button.catalog-filter-chip-button{background:#252525!important;color:#fafafa!important;border-color:#777;}
html[data-theme="dark"] button.catalog-filter-chip-button:hover{background:#383838!important;}
html[data-theme="dark"] .catalog-filter-actions{border-color:#444;}

/* V37 — reduce the gap above "Производство" for every homepage lens,
   without altering other sections or causing overlap on compact screens. */
@media(min-width:761px){
  .home-page .home-production-section{
    min-height:calc((100vh - var(--home-header-height,90px)) * .65);
  }
  @supports(height:100svh){
    .home-page .home-production-section{
      min-height:calc((100svh - var(--home-header-height,90px)) * .65);
    }
  }
}

/* V39 — clean white backdrop for contain-fitted photos in both themes.
   Frame remains a uniform size without stretching or cropping the uploaded photo. */
:root { --photo-mat:#fff; }
.cover-img,
.catalog-card .cover-img,
.equipment-tile .cover-img,
.catalog-product-tile .cover-img,
.home-goods-tile .cover-img,
.gallery-stage,
.gallery-slide,
.gallery-slide img,
.gallery-thumbnails button,
.gallery-thumbnails img,
.admin-photo > img,
.admin-small-cover,
.cart-cover {
  background-color:var(--photo-mat);
}
html[data-theme="dark"] :is(.cover-img,.gallery-stage,.gallery-slide,.gallery-slide img,
  .gallery-thumbnails button,.gallery-thumbnails img,.cart-cover,.admin-photo > img,.admin-small-cover) {
  background-color:var(--photo-mat);
}
.gallery-stage {border-radius:16px;}
.gallery-slide {border-radius:13px;}
.gallery-slide img {border-radius:12px;}
.gallery-thumbnails button {border-radius:12px;}
.gallery-thumbnails img {border-radius:8px;}
:is(.cover-img,.equipment-tile .cover-img,.catalog-card .cover-img,
  .catalog-product-tile .cover-img,.home-goods-tile .cover-img,
  .admin-photo > img,.admin-small-cover,.cart-cover) {border-radius:12px;}

/* V38 — a consistent softer surface for category, product, production and
   project tiles without changing their click targets or grid dimensions. */
a.equipment-tile,
a.catalog-card-link,
a.goods-category-tile,
a.hero-catalog-tile,
.catalog-product-tile,
.home-goods-tile,
.catalog-card {
  border-radius:18px;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}
@media (hover:hover) and (pointer:fine) {
  .card.catalog-product-tile:not(a):not(button):hover {
    transform:translateY(-3px) scale(1.012)!important;
    border-color:#292929!important;
    box-shadow:0 0 0 1.5px #292929,0 12px 27px rgba(0,0,0,.10);
    position:relative;
    z-index:2;
  }
  a.equipment-tile:hover,
  a.catalog-card-link:hover,
  a.goods-category-tile:hover,
  a.hero-catalog-tile:hover {
    transform:translateY(-3px) scale(1.012)!important;
    border-color:#292929!important;
    box-shadow:0 0 0 1.5px #292929,0 12px 27px rgba(0,0,0,.10)!important;
    position:relative;
    z-index:2;
  }
}
.catalog-product-tile:not(a):focus-within,
a.equipment-tile:focus-visible,
a.catalog-card-link:focus-visible,
a.goods-category-tile:focus-visible {
  border-color:var(--ink,#111);
  box-shadow:0 0 0 2px var(--ink,#111);
}
/* The card itself moves; its nested product link must not scale twice. */
.catalog-product-tile .catalog-product-main,
.catalog-product-tile:hover .catalog-product-main {transform:none!important;}
html[data-theme="dark"] .card.catalog-product-tile:not(a):not(button):hover,
html[data-theme="dark"] a.equipment-tile:hover {
  border-color:#c9c9c9!important;
  box-shadow:0 0 0 1.5px #c9c9c9,0 12px 27px rgba(0,0,0,.4)!important;
}
@media (hover:none), (prefers-reduced-motion:reduce) {
  .catalog-product-tile:not(a):hover,
  a.equipment-tile:hover,
  a.catalog-card-link:hover,
  a.goods-category-tile:hover,
  a.hero-catalog-tile:hover {transform:none!important;}
}

/* V38 — flexible, inclusive price range on all goods/equipment categories. */
.catalog-price-range {
  padding:17px 18px 18px;
  margin:0 0 16px;
  border:1px solid #dedede;
  border-radius:13px;
  background:rgba(255,255,255,.75);
}
.catalog-price-heading {
  display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:13px;
}
.catalog-price-heading strong {font-size:15px;}
.catalog-price-heading p {margin:3px 0 0;color:#777;font-size:12px;line-height:1.4;}
.catalog-price-clear {
  min-height:34px!important;padding:5px 12px!important;border:1px solid #d4d4d4!important;
  background:transparent!important;color:#4c4c4c!important;border-radius:8px!important;
  font-size:12px!important;font-weight:600;
}
.catalog-price-clear:disabled {opacity:.45;cursor:default;}
.catalog-price-fields {display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:12px;align-items:end;max-width:675px;}
.catalog-price-fields label {display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;font-weight:650;color:#303030;}
.catalog-price-fields input {
  box-sizing:border-box;display:block;width:100%;min-width:0;min-height:46px;
  padding:10px 13px;border:1px solid #c9c9c9;border-radius:10px;
  background:#fff;color:#1b1b1b;font-size:16px;font-variant-numeric:tabular-nums;
}
.catalog-price-fields input:focus-visible {outline:2px solid #444;outline-offset:2px;border-color:#444;}
.catalog-price-separator {align-self:end;display:grid;place-items:center;height:46px;color:#777;}
.catalog-price-error {font-size:13px;color:#aa1c1c;margin:8px 0 0;}
.catalog-price-error[hidden] {display:none;}
html[data-theme="dark"] .catalog-price-range {background:#1b1b1b;border-color:#555;}
html[data-theme="dark"] .catalog-price-heading p {color:#bdbdbd;}
html[data-theme="dark"] .catalog-price-fields label {color:#eee;}
html[data-theme="dark"] .catalog-price-fields input {background:#111;color:#fff;border-color:#777;}
html[data-theme="dark"] .catalog-price-clear {color:#eee!important;border-color:#777!important;}
html[data-theme="dark"] .catalog-price-error {color:#ff9a9a;}
@media(max-width:480px) {
  .catalog-price-range {padding:14px 12px;}
  .catalog-price-fields {gap:7px;grid-template-columns:minmax(0,1fr) 13px minmax(0,1fr);}
  .catalog-price-fields input {padding:10px 7px;font-size:16px;}
}

/* Preserve the exact scrolled viewport during the outgoing cross-page fade.
   Freezing the page prevents layout height / scroll anchoring from snapping
   back to y=0 while the old page is still visible. */
html.ve-managed-nav.ve-nav-leaving .site-page {
  position:fixed;
  top:var(--ve-leaving-top,0px);
  left:0;right:0;width:100%;
  opacity:0;filter:blur(12px);pointer-events:none;
  transform:none!important;
}
html.ve-managed-nav .site-page {
  transition:opacity 245ms ease-in,filter 245ms ease-in;
}
html.ve-managed-nav.ve-nav-arriving .site-page {
  animation:ve-managed-page-in-v38 360ms cubic-bezier(.16,1,.3,1) 50ms both;
}
@keyframes ve-managed-page-in-v38 {
  from {opacity:0;filter:blur(12px)}
  to {opacity:1;filter:blur(0)}
}
html.ve-managed-nav {overflow-anchor:none;}
.project-object-label {font-weight:700;margin-right:10px;}
@media(prefers-reduced-motion:reduce){
  html.ve-managed-nav .site-page {transition:none!important;}
  html.ve-managed-nav.ve-nav-arriving .site-page {animation:none!important;}
}


/* V39 — admin-only rounded controls: align admin pages with rounded catalog tiles.
   Keep ordinary text links (e.g., product names) unboxed and accessible. */
body.admin-area :is(.admin-overview-card, .admin-analytics-link, .admin-new-requests-card) {
  border-radius:18px;
}
body.admin-area .admin-metric {border-radius:12px;}
body.admin-area .sidebar {border-top:0;}
body.admin-area .sidebar a {
  display:block;
  border:1px solid transparent;
  border-radius:11px;
  margin:3px 0;
  padding:10px 12px;
  text-decoration:none;
  transition:background-color .17s ease,border-color .17s ease,transform .17s ease;
}
body.admin-area .sidebar a:hover,
body.admin-area .sidebar a:focus-visible {
  border-color:var(--line-soft,#ddd);
  background-color:#f3f3f3;
}
body.admin-area .sidebar a.current {
  border-color:var(--line-soft,#ddd);
  background-color:#f2f2f2;
  font-weight:700;
  text-decoration:none;
}
body.admin-area :is(button, a.button, .button, .small-action, .pagination a) {
  border-radius:10px;
}
body.admin-area .admin-order-controls button {border-radius:9px;}
/* List actions and return links read as tappable controls, not square text boxes. */
body.admin-area :is(.tablewrap td:last-child > a:not(.button), .back > a) {
  display:inline-block;
  border:1px solid var(--line-soft,#ddd);
  border-radius:10px;
  padding:7px 11px;
  text-decoration:none;
  transition:background-color .17s ease,border-color .17s ease;
}
body.admin-area :is(.tablewrap td:last-child > a:not(.button), .back > a):hover,
body.admin-area :is(.tablewrap td:last-child > a:not(.button), .back > a):focus-visible {
  border-color:var(--ink,#111);
  background-color:#f3f3f3;
}
html[data-theme="dark"] body.admin-area .sidebar a:hover,
html[data-theme="dark"] body.admin-area .sidebar a:focus-visible,
html[data-theme="dark"] body.admin-area .sidebar a.current,
html[data-theme="dark"] body.admin-area :is(.tablewrap td:last-child > a:not(.button), .back > a):hover,
html[data-theme="dark"] body.admin-area :is(.tablewrap td:last-child > a:not(.button), .back > a):focus-visible {
  background-color:#242424;
  color:#fff;
  border-color:#777;
}
@media (prefers-reduced-motion:reduce) {
  body.admin-area .sidebar a {transition:none;}
}


/* V40 — one image viewport for Production, Projects and Certificates.
   Previously project logos were limited to 86px, while the other cards used
   185px.  Use the same *outer* frame height; contain images without cropping. */
:is(.home-production-section, .production-group) .equipment-tile > :is(.cover-img, .project-client-mark) {
  box-sizing:border-box;
  display:block;
  width:100%;
  height:185px;
  min-height:185px;
  max-height:185px;
  flex:0 0 185px;
  margin:0 0 14px;
  border:0;
  border-radius:12px;
  overflow:hidden;
  background-color:#fff;
}
:is(.home-production-section, .production-group) .equipment-tile > .cover-img {
  object-fit:contain;
  object-position:center;
  padding:0;
}
:is(.home-production-section, .production-group) .equipment-tile > .project-client-mark {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
}
:is(.home-production-section, .production-group) .equipment-tile .project-logo {
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  border-radius:8px;
  background:transparent;
}
/* Text fallback must remain readable against the white logo mat in dark mode. */
:is(.home-production-section, .production-group) .project-client-mark strong {
  color:#1b1b1b;
  overflow-wrap:anywhere;
}
html[data-theme="dark"] :is(.home-production-section, .production-group) .project-client-mark strong {
  color:#1b1b1b!important;
}
/* Showcase detail galleries already have a set height (340/300/240px).
   Explicitly keep cover photos and PDF scan pages inside their white frame. */
.showcase-detail-layout .gallery-stage {
  overflow:hidden;
  background-color:#fff;
  border-radius:16px;
}
.showcase-detail-layout .gallery-slide img {
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
}
@media (max-width:480px) {
  :is(.home-production-section, .production-group) .equipment-tile > :is(.cover-img, .project-client-mark) {
    height:150px;
    min-height:150px;
    max-height:150px;
    flex-basis:150px;
  }
}


/* V41 — choose an admin product category before showing its cards. */
.admin-product-picker-intro {max-width:800px;margin:0 0 27px;}
.admin-product-picker-section {margin:30px 0 38px;}
.admin-product-picker-section h2 {margin:0 0 17px;}
.admin-product-picker-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
body.admin-area a.admin-product-picker-tile {
  min-width:0;display:flex!important;flex-direction:column;gap:0;
  height:100%;overflow:hidden;border:1px solid var(--hairline,#d3d3d3);
  border-radius:18px;text-decoration:none;color:var(--ink,#171717);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.admin-product-picker-image {
  box-sizing:border-box;display:block;width:100%;height:170px;min-height:170px;
  object-fit:contain;object-position:center;padding:11px;
  background:#fff;border-radius:14px;margin:0;
}
.admin-product-picker-placeholder {display:grid;place-items:center;font-size:36px;font-weight:700;color:#aaa;}
.admin-product-picker-info {display:flex;flex:1;flex-direction:column;gap:7px;padding:16px 18px 18px;min-width:0;}
.admin-product-picker-info strong {font-size:19px;line-height:1.25;overflow-wrap:anywhere;}
.admin-product-picker-description {font-size:13px;line-height:1.5;color:var(--secondary,#686868);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
.admin-product-picker-count {margin-top:auto;padding-top:5px;font-size:13px;font-weight:700;}
.admin-picker-footer {margin-top:6px;}
.admin-product-list-actions {margin:18px 0 22px;}
body.admin-area a.admin-product-picker-tile:focus-visible {outline:2px solid var(--ink,#222);outline-offset:3px;}
@media (hover:hover) and (pointer:fine) {
  body.admin-area a.admin-product-picker-tile:hover {
    transform:translateY(-3px) scale(1.01)!important;
    border-color:var(--ink,#222);box-shadow:0 0 0 1px var(--ink,#222),0 9px 20px rgba(0,0,0,.09);
  }
}
html[data-theme="dark"] body.admin-area a.admin-product-picker-tile {color:#f1f1f1;border-color:#555;}
html[data-theme="dark"] .admin-product-picker-description {color:#bdbdbd;}
html[data-theme="dark"] body.admin-area a.admin-product-picker-tile:hover {border-color:#ccc;box-shadow:0 0 0 1px #ccc,0 10px 25px rgba(0,0,0,.35);}
@media (max-width:860px) {.admin-product-picker-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:580px) {.admin-product-picker-grid {grid-template-columns:minmax(0,1fr);gap:13px;}.admin-product-picker-image{height:150px;min-height:150px;}.admin-product-picker-info{padding:13px 15px;}}
@media (prefers-reduced-motion:reduce), (hover:none) {body.admin-area a.admin-product-picker-tile:hover {transform:none!important;}}

/* V42: category characteristic order controls and long admin specifications. */
.characteristic-order-buttons {display:flex;align-items:center;gap:5px;flex:none;}
.characteristic-order-buttons button {min-width:34px;min-height:34px;padding:5px 9px;}
.characteristic-order-buttons button:disabled {opacity:.32;cursor:default;transform:none;}
.admin-product-spec-summary {max-width:320px;min-width:140px;overflow-wrap:anywhere;line-height:1.55;}
@media(max-width:560px){.characteristic-editor-row input[type=text]{flex:1 1 100%;}}
