/* NASCA Control Solutions — site styles.
   Design follows the original nascacs.co.za (ZipTech/Elementor) look:
   top bar in the logo wordmark's navy-to-blue gradient, white header, Roboto/Mulish type, blue product links, teal accents; no footer (the home page ends on a navy band under the call-back form). */

:root {
  --ink: #111318;
  --text: #3f4450;
  --muted: #6b7180;
  --line: #e3e5ec;
  --paper: #ffffff;
  --soft: #f0f1f7;
  --primary: #0d4aa7;
  --primary-dark: #0a3a85;
  --link: #1450b4;
  --logo-1: #001376; /* left and right ends of the NASCA wordmark in the logo */
  --logo-2: #009bfc;
  --dark-blue: #001376;
  --dark-btn: #50555c;
  --navy: #0e1424;
  --navy-2: #151c34;
  --teal: #21e0b2;
  --fire: #e8361f;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(17, 19, 40, .08);
  --shadow-lg: 0 18px 50px rgba(17, 19, 40, .16);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-alt: "Mulish", "Roboto", system-ui, sans-serif;
  --font-slab: "Roboto Slab", Georgia, serif;
  --wrap: 1200px;
  --header-h: 80px;
  --topbar-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: 400 16px/1.65 var(--font); color: var(--text); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--dark-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 26px; border-radius: 6px; border: 1.5px solid transparent; font-weight: 500; font-size: 15px; line-height: 1.2; text-align: center; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--dark-blue); color: var(--dark-blue); background: #fff; }
.btn-outline:hover { background: var(--dark-blue); color: #fff; }
.btn-dark { background: var(--dark-btn); color: #fff; border-radius: 2px; }
.btn-dark:hover { background: var(--primary); color: #fff; }
.btn-glass { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(13, 74, 167, .35); backdrop-filter: blur(4px); }
.btn-glass:hover { background: #fff; color: var(--primary); }
.btn-sm { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); font-weight: 500; text-decoration: underline; }

/* ---------- top bar & header */
.topbar { background: linear-gradient(90deg, var(--logo-1), var(--logo-2)); color: #fff; font-size: 13px; }
.topbar a, .topbar span { color: #fff; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--topbar-h); }
.topbar-l, .topbar-r { display: flex; align-items: center; gap: 22px; }
.topbar-l > *, .topbar-r > a { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ico { width: 15px; height: 15px; }
.topbar .soc { opacity: .9; }
.topbar .soc:hover { opacity: 1; }

.header { position: sticky; top: 0; z-index: 90; background: #fff; transition: box-shadow .2s; }
.header.is-stuck { box-shadow: 0 6px 24px rgba(17, 19, 40, .08); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo img { width: 180px; height: auto; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { display: block; padding: 28px 14px; color: var(--ink); font-size: 15px; }
.nav-list > li > a:hover, .nav-list > li > a[aria-current="page"] { color: var(--primary); }
.drop-btn { display: inline-flex; align-items: center; background: none; border: 0; padding: 4px; margin-left: -10px; margin-right: 4px; color: var(--ink); }
.drop-btn .ico { width: 14px; height: 14px; }
.drop { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px); background: #fff; border-top: 3px solid var(--primary); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 95; }
.has-drop:hover > .drop, .has-drop:focus-within > .drop, .has-drop.is-open > .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 22px; padding: 26px 28px; width: min(1100px, 92vw); }
.mega-head { display: block; font-family: var(--font-alt); font-weight: 800; color: var(--primary); font-size: 14px; letter-spacing: .02em; margin-bottom: 8px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 4px 0; color: var(--text); font-size: 14px; }
.mega li a:hover { color: var(--primary); }
.mega-empty { font-size: 13px; color: var(--muted); margin: 0; }
.brands-drop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; width: 420px; }
.brand-pill { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 8px; color: var(--ink); font-family: var(--font-alt); font-weight: 700; font-size: 12px; }
.brand-pill img { width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: #fff; }
.brand-pill:hover { background: var(--soft); }
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: var(--dark-blue); border-radius: 50%; }
.icon-btn:hover { background: var(--soft); }
.icon-btn .ico { width: 22px; height: 22px; stroke-width: 1.7; }
.badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--fire); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.header-sep { width: 1px; height: 34px; background: var(--line); margin: 0 8px; }
.header-cta { min-width: 140px; }
.menu-btn { display: none; color: var(--ink); }

/* ---------- sections */
.section { padding: 70px 0; }
.section-tight { padding: 20px 0; }
.section-top { padding-top: 30px; }
.section-soft { background: var(--soft); }
.section-title { text-align: center; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 40px; }
.section-title-alt { font-family: var(--font-alt); font-weight: 800; }
.section-sub { text-align: center; margin: -26px auto 40px; max-width: 640px; color: var(--ink); }
.section-more { text-align: center; margin: 36px 0 0; }
.kicker { text-align: center; color: var(--primary); font-family: var(--font-alt); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin-bottom: 8px; }
.h-sub { font-size: 24px; margin: 0 0 18px; }
.h3 { font-size: 18px; }

/* ---------- hero: full-width, square corners, flush below the header */
.hero { position: relative; margin: 0; border-radius: 0; background: #111; color: #fff; overflow: hidden; isolation: isolate; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; min-height: clamp(420px, calc(100vh - var(--topbar-h) - var(--header-h) - 60px), 880px); display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide picture, .slide picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.slide-in { position: relative; z-index: 1; text-align: center; max-width: 900px; padding-top: 40px; padding-bottom: 60px; }
.slide-title { color: #fff; font-size: clamp(32px, 4.4vw, 56px); margin-bottom: 18px; }
.slide-text { font-family: var(--font-slab); font-size: clamp(15px, 1.4vw, 18px); max-width: 780px; margin: 0 auto 28px; color: #f2f2f2; }
.slide-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.slide.is-active .slide-title, .slide.is-active .slide-text, .slide.is-active .slide-btns { animation: rise .8s both; }
.slide.is-active .slide-text { animation-delay: .12s; }
.slide.is-active .slide-btns { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); }
.dot.is-active { background: #fff; }

/* ---------- brands */
.brand-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; }
.brand-card { display: flex; flex-direction: column; gap: 14px; color: var(--primary); }
.brand-logo { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0, 0, 0, .1); background: #fff; transition: transform .25s, box-shadow .25s; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-card:hover .brand-logo { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.brand-name { font-family: var(--font-alt); font-weight: 800; font-size: 17px; color: #1a46a8; }
/* ---------- stats band (main.js counts the numbers up), then a photo band that stays put while the page scrolls (desktop) */
.stats { padding: 80px 0; background: var(--primary); color: #fff; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 120px; }
.stat-badge { display: block; width: 135px; height: auto; margin: 0 auto 20px; }
.stat-badge-shadow { fill: #000; opacity: .22; }
.stat-badge-glyph { fill: #fff; }
.stat-badge-cut { fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stat-num { margin: 0 0 8px; font: 800 40px/1.1 var(--font-alt); color: #fff; font-variant-numeric: tabular-nums; }
.stat-label { margin: 0; font-size: 17px; color: #fff; }
.photo-band { position: relative; display: grid; place-items: center; padding: 40px 16px; min-height: 500px; background: var(--navy) url(/assets/img/scenes/warehouse.webp) center / cover no-repeat fixed; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: rgba(14, 20, 36, .45); }
.photo-band-title { position: relative; margin: 0; color: #fff; font-size: clamp(36px, 5vw, 60px); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
@media (hover: none) { .photo-band { background-attachment: scroll; } }

/* ---------- categories (horizontal scroller; arrows sit on the middle of the images) */
.cat-rail { --per: 6; --gap: 26px; position: relative; container-type: inline-size; }
/* overflow-y: hidden, or the rising tiles make the rail scroll a few px vertically and catch the page scroll */
.cat-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: none; padding: 4px; margin: -4px; }
.cat-track::-webkit-scrollbar { display: none; }
.rail-btn { position: absolute; z-index: 1; top: 35%; top: calc((100cqw - (var(--per) - 1) * var(--gap)) / var(--per) / 2); transform: translate(-50%, -50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--primary); box-shadow: var(--shadow-lg); transition: opacity .2s, background .2s, color .2s; }
.rail-btn.prev { left: 0; }
.rail-btn.next { left: 100%; }
.rail-btn:hover { background: var(--primary); color: #fff; }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.rail-btn[hidden] { display: none; }
.rail-btn .ico { width: 20px; height: 20px; }
.cat-tile { text-align: center; color: var(--ink); scroll-snap-align: start; }
/* A thin frame shows the rounded corners on white product photos; translateZ keeps Safari clipping them while the photo zooms. */
.cat-img { display: block; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transform: translateZ(0); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover .cat-img img { transform: scale(1.06); }
.cat-name { display: block; margin-top: 12px; font-family: var(--font-alt); font-weight: 600; font-size: 17px; line-height: 1.3; }
.cat-tile:hover .cat-name { color: var(--primary); }

/* ---------- product cards */
.product-grid { display: grid; gap: 30px 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.card[hidden] { display: none; }
.card-img { display: block; width: 100%; aspect-ratio: 1; background: #fff; margin-bottom: 18px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-title { font-size: 15px; font-weight: 500; margin: 0 0 4px; line-height: 1.35; }
.card-title a { color: var(--link); }
.card-cat { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.4; }
.card .btn { margin-top: auto; }

/* ---------- why / testimonials */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { background: #fff; border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow); text-align: center; }
.why-ico { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-dark), #3d8cf0); color: #fff; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 16px; display: block; }
.why-item h3 { font-family: var(--font-alt); font-weight: 800; font-size: 19px; }
.why-item p { margin: 0; font-size: 15px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi { margin: 0; background: #fff; padding: 30px 30px 0; text-align: center; }
.testi blockquote { margin: 0 0 18px; font-style: italic; color: var(--muted); }
.testi figcaption { padding-bottom: 26px; border-bottom: 3px solid #c9c5f7; }
.testi strong { display: block; font-family: var(--font-alt); color: var(--ink); font-size: 17px; }

/* ---------- news */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { position: relative; padding-bottom: 10px; }
.news-img { display: block; aspect-ratio: 290 / 290; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-body { position: relative; margin: -34px 7px 0; background: #1a50ab; color: #fff; padding: 22px 20px 24px; box-shadow: 0 10px 20px rgba(0, 0, 0, .2); }
.news-body h2, .news-body h3 { color: #fff; font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.news-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; margin-bottom: 12px; }
.news-meta .ico { width: 13px; height: 13px; }
.news-excerpt { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.news-excerpt p { margin: 0 0 10px; }
.news-excerpt p:last-child { margin-bottom: 0; }

/* ---------- forms */
.form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row > .field:only-child { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.callback .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; border: 1px solid transparent; background: var(--soft); border-radius: 3px; padding: 12px 15px; min-height: 48px; font-size: 15px; transition: border-color .2s, background .2s; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dark-blue); background: #fff; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--fire); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.btn-submit { justify-self: start; min-width: 130px; }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
.consent { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-size: 14px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #0e7a4f; }
.form-status.is-error { color: #b42318; }
.form-status a { text-decoration: underline; }

/* ---------- call back */
.callback-section { padding-bottom: 0; }
.callback { display: grid; grid-template-columns: 5fr 7fr; background: #fff; border-radius: 0; box-shadow: var(--shadow-lg); position: relative; z-index: 2; margin-bottom: -70px; overflow: hidden; }
/* square corners throughout the call-back form (client preference) */
.callback input, .callback select, .callback textarea, .callback .btn { border-radius: 0; }
.callback-img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.callback-form { padding: 60px 70px 50px; }
.callback-form h2 { font-family: var(--font-alt); font-weight: 800; font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }
.callback-form > p { margin-bottom: 26px; }

/* ---------- navy band that ends the home, about and contact pages (the site has no footer); the last block overlaps its top */
.end-band { height: 130px; background: var(--navy); }
.section-end { padding-bottom: 0; }
.end-overlap { position: relative; z-index: 2; margin-bottom: -70px; }
.end-panel { padding: 50px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); }

/* ---------- page banner & breadcrumbs */
.page-banner { position: relative; color: #fff; background: #111; overflow: hidden; }
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.banner-in { position: relative; z-index: 1; text-align: center; padding-top: 80px; padding-bottom: 70px; }
.banner-in h1 { color: #fff; font-size: clamp(32px, 4vw, 52px); margin-bottom: 12px; }
.banner-sub { font-family: var(--font-slab); max-width: 760px; margin: 0 auto 18px; color: #eee; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.banner-in .crumbs ol { justify-content: center; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.banner-in .crumbs a { color: #fff; opacity: .85; }
.banner-in .crumbs a:hover { opacity: 1; }
.banner-in .crumbs li[aria-current] { color: #fff; font-weight: 500; }
.crumbs-bar { padding-top: 22px; }
.crumbs-bar .crumbs a { color: var(--muted); }
.crumbs-bar .crumbs a:hover { color: var(--primary); }
.crumbs-bar .crumbs li[aria-current] { color: var(--ink); }

/* ---------- shop */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }
.side-h { font-family: var(--font-alt); font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.side-list, .side-list ul { list-style: none; margin: 0; padding: 0; }
.side-list > li { border-bottom: 1px solid var(--line); padding: 6px 0; }
.side-list ul { padding: 2px 0 6px 12px; }
.side-list a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; color: var(--text); font-size: 14px; }
.side-list a span { color: var(--muted); font-size: 12px; }
.side-brand { font-weight: 700; color: var(--ink) !important; font-size: 15px !important; }
.side-list a:hover, .side-list a[aria-current] { color: var(--primary) !important; }
.side-list a[aria-current] { font-weight: 700; }
.side-cta { background: linear-gradient(135deg, var(--logo-1), var(--logo-2)); color: #fff; border-radius: var(--radius); padding: 24px; }
.side-cta h2 { color: #fff; font-size: 19px; font-family: var(--font-alt); font-weight: 800; }
.side-cta .btn { background: #fff; color: var(--dark-blue); }
.shop-tools { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.search-field { position: relative; }
.search-field .ico { position: absolute; left: 14px; top: 15px; color: var(--muted); }
.search-field input { padding-left: 42px; }
.shop-count { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.no-results, .empty-range { text-align: center; padding: 60px 20px; background: var(--soft); border-radius: var(--radius); }
.empty-ico { width: 60px; height: 60px; color: var(--primary); margin: 0 auto 16px; display: block; stroke-width: 1.5; }
.brand-head { display: flex; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; }
.brand-head img { width: 90px; height: 90px; border-radius: 8px; object-fit: cover; flex: none; }
.brand-head p { margin: 0; color: var(--ink); }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 40px; }
.sub-tile { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.sub-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.sub-tile img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; background: #fff; }
.sub-tile strong { display: block; font-size: 15px; line-height: 1.3; }
.sub-tile em { font-style: normal; font-size: 13px; color: var(--muted); }

/* ---------- product page */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-media { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px); }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-alt); font-weight: 800; font-size: 14px; color: var(--primary); margin-bottom: 14px; }
.product-brand img { width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--line); object-fit: cover; }
.product-info h1 { font-size: clamp(28px, 3vw, 38px); }
.product-cat { font-size: 14px; color: var(--muted); }
.product-summary { font-size: 16px; }
.quote-box { display: grid; gap: 16px; padding: 24px; background: var(--soft); border-radius: var(--radius); margin: 26px 0 20px; }
.quote-box select, .quote-box input { background: #fff; }
.qty-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.qty { display: flex; align-items: stretch; border-radius: 4px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.qty button { width: 44px; border: 0; background: #fff; display: grid; place-items: center; color: var(--ink); }
.qty button:hover { background: var(--soft); }
.qty input { width: 80px; text-align: center; border: 0; border-radius: 0; padding: 10px 4px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-add { flex: 1; min-width: 210px; min-height: 50px; }
.quote-note { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; }
.product-help { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.product-help li { display: flex; gap: 10px; align-items: center; }
.product-help .ico { color: var(--primary); }
.product-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 50px; }
.product-details > *, .product-layout > *, .shop-layout > * { min-width: 0; }
.prose { color: var(--text); }
.prose h2 { font-size: 24px; margin-top: 1.4em; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose strong { color: var(--ink); }
.prose table { border-collapse: collapse; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.spec-table th { background: var(--primary); color: #fff; text-align: left; font-weight: 500; padding: 12px 14px; position: sticky; top: 0; }
.spec-table td { padding: 10px 14px; border-top: 1px solid var(--line); }
.spec-table tbody tr:nth-child(even) { background: #fafbfd; }
.spec-table tbody tr:hover { background: #eef3fc; }
.row-add { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--primary); color: var(--primary); background: #fff; border-radius: 4px; padding: 4px 10px; font-size: 13px; font-weight: 500; }
.row-add .ico { width: 14px; height: 14px; }
.row-add:hover { background: var(--primary); color: #fff; }
.row-add.is-added { background: #0e7a4f; border-color: #0e7a4f; color: #fff; }

/* ---------- about / contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img img { border-radius: 12px; box-shadow: var(--shadow-lg); width: 100%; }
.split-text .kicker { text-align: left; }
.split-text h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { padding: 34px 28px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; background: #fff; }
.info-card h2 { font-size: 20px; font-family: var(--font-alt); font-weight: 800; margin-bottom: 10px; }
.info-ico { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--soft); color: var(--dark-blue); stroke-width: 1.8; margin: 0 auto 16px; display: block; }
.contact-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 30px; align-items: stretch; }
.contact-form-card { padding: 44px; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #fff; }
.contact-form-card .kicker { text-align: left; }
.contact-form-card h2 { font-family: var(--font-alt); font-weight: 800; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.map-card { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--soft); }
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.quote-in-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fafbfd; }
.qf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.qf-head h3 { font-size: 16px; margin: 0; }
.qf-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.qf-items li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); padding-top: 6px; }
.qf-items li:first-child { border-top: 0; padding-top: 0; }
.qf-items small { display: block; color: var(--muted); }
.qf-items strong { white-space: nowrap; }

/* ---------- news article */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 50px; align-items: start; }
.article .news-meta { color: var(--muted); opacity: 1; }
.article p { font-size: 17px; }
.article-side { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-posts a { font-weight: 500; }

/* ---------- status pages */
.status-page { text-align: center; padding: 100px 0; }
.status-ico { width: 70px; height: 70px; padding: 16px; border-radius: 50%; background: #e3f6ee; color: #0e7a4f; margin: 0 auto 20px; display: block; }
.status-code { font-size: 90px; font-weight: 700; line-height: 1; color: var(--primary); margin-bottom: 10px; }
.status-page .btn { margin: 6px; }

/* ---------- overlays: search, quote drawer, toast */
.overlay { position: fixed; inset: 0; z-index: 150; background: rgba(10, 12, 24, .55); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.search-panel { position: fixed; z-index: 160; top: 0; left: 0; right: 0; background: #fff; padding: 26px 0 30px; transform: translateY(calc(-100% - 80px)); visibility: hidden; transition: transform .25s, visibility 0s .25s; max-height: 90vh; overflow: auto; }
.search-panel.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform .25s; }
.search-row { display: flex; gap: 10px; align-items: center; }
.search-row input { font-size: 20px; min-height: 58px; }
.search-results { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--soft); }
.search-results img { width: 54px; height: 54px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; flex: none; }
.search-results small { display: block; color: var(--muted); font-size: 12px; }
.search-empty { color: var(--muted); margin: 16px 0 0; }
.search-all { margin: 14px 0 0; }

.drawer { position: fixed; z-index: 160; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(calc(100% + 80px)); visibility: hidden; transition: transform .28s, visibility 0s .28s; }
.drawer.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform .28s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; margin: 0; font-family: var(--font-alt); font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.drawer-empty .ico { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--line); stroke-width: 1.5; }
.q-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-item img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.q-name { font-weight: 500; color: var(--ink); font-size: 15px; line-height: 1.3; display: block; }
.q-var { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.q-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.q-controls .qty input { width: 56px; min-height: 34px; padding: 4px; font-size: 14px; }
.q-controls .qty button { width: 32px; }
.q-remove { border: 0; background: none; color: var(--muted); padding: 8px; border-radius: 6px; }
.q-remove:hover { color: var(--fire); background: #fdeeea; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot p { margin: 0; font-size: 13px; color: var(--muted); }
.drawer-foot .link-btn { justify-self: center; font-size: 13px; color: var(--muted); }

.toast { position: fixed; z-index: 170; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; background: var(--ink); color: #fff; padding: 12px 14px 12px 18px; border-radius: 8px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg); transition: transform .25s, visibility 0s .25s; max-width: calc(100% - 32px); width: max-content; font-size: 14px; }
.toast.is-open { transform: translate(-50%, 0); visibility: visible; transition: transform .25s; }
.toast button { background: #fff; color: var(--ink); border: 0; border-radius: 5px; padding: 6px 12px; font-weight: 500; font-size: 13px; white-space: nowrap; }
.to-top { position: fixed; z-index: 80; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top .ico { transform: rotate(-90deg); }
body.no-scroll { overflow: hidden; }

/* ---------- on-appear: headings and cards un-blur and rise as they scroll in (main.js adds .reveal, then .is-in) */
.reveal { transition: opacity .9s ease, filter .9s ease, transform .9s ease; }
.reveal:not(.is-in) { opacity: .25; filter: blur(10px); transform: translateY(16px); }

/* ---------- responsive */
@media (max-width: 1240px) {
  .nav-list > li > a { padding-left: 10px; padding-right: 10px; }
  .mega { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
  .header-cta { display: none; }
  .header-sep { display: none; }
}
@media (max-width: 1080px) {
  :root { --header-h: 70px; }
  .topbar-addr { display: none; }
  .menu-btn { display: inline-flex; }
  .logo img { width: 150px; }
  .header-in { justify-content: space-between; }
  .nav { position: fixed; z-index: 140; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); background: #fff; flex-direction: column; justify-content: flex-start; padding: 80px 0 30px; overflow-y: auto; transform: translateX(calc(-100% - 80px)); visibility: hidden; transition: transform .28s, visibility 0s .28s; }
  .nav.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform .28s; }
  body.menu-open .header { z-index: 152; }
  .menu-btn[aria-expanded="true"] { background: var(--soft); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: 14px 24px; font-size: 16px; }
  .drop-btn { margin: 0 14px 0 0; width: 44px; height: 44px; justify-content: center; }
  .has-drop.is-open .drop-btn .ico { transform: rotate(180deg); }
  .drop, .has-drop:hover > .drop, .has-drop:focus-within > .drop, .has-drop.is-open > .drop { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-radius: 0; width: 100%; display: none; }
  .has-drop.is-open > .drop { display: grid; }
  .mega { grid-template-columns: 1fr 1fr; padding: 6px 24px 18px; gap: 16px; }
  .brands-drop { grid-template-columns: repeat(3, 1fr); padding: 6px 18px 18px; }
  .nav-mobile-extra { display: grid; gap: 14px; padding: 24px; }
  .nav-mobile-extra a:not(.btn) { display: flex; align-items: center; gap: 10px; color: var(--ink); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .photo-band { background-attachment: scroll; }
  .stats-grid { gap: 40px; }
  .cat-rail { --per: 4; --gap: 20px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .shop-main { order: 1; }
  .shop-tools { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .product-layout, .split, .contact-layout, .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .product-media, .article-side { position: static; }
  .callback { grid-template-columns: 1fr; }
  .callback-img img { max-height: 300px; }
  .callback-form { padding: 40px 30px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  .section { padding: 50px 0; }
  .section-title { margin-bottom: 28px; }
  .wrap { padding: 0 16px; }
  .topbar-l a span { display: none; }
  .topbar-l a::after { content: "Email us"; }
  :root { --topbar-h: 40px; }
  .topbar-in { gap: 12px; }
  .topbar-l, .topbar-r { gap: 14px; }
  .icon-btn { width: 40px; height: 40px; }
  .header-actions { gap: 2px; }
  .slide { min-height: 640px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats { padding: 64px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 60px; }
  .stat-badge { width: 110px; }
  .photo-band { min-height: 360px; }
  .cat-rail { --per: 2.3; --gap: 14px; }
  .cat-track { margin: -4px -16px; padding: 4px 16px; scroll-padding-inline: 16px; }
  .rail-btn { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .card-title { font-size: 14px; }
  .why-grid, .testi-grid, .news-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .callback-form, .contact-form-card, .end-panel { padding: 30px 20px; }
  .shop-tools { grid-template-columns: 1fr; }
  .brand-head { flex-direction: column; text-align: center; }
  .btn-add { min-width: 0; width: 100%; }
  .qty-field { flex: 1; }
  .qty { width: 100%; }
  .qty input { flex: 1; }
  .banner-in { padding-top: 56px; padding-bottom: 50px; }
  .search-row input { font-size: 17px; }
}
