/* ============================================================================================
   Public site — plain CSS. Look and feel follow the original ISRAR / PMM sites (white header, centred menu,
   full-width photo hero, big featured-product slider, flat square buttons) with modern spacing and motion.
   Brand colours come from the branch settings (set as CSS variables by layout.js), these are the defaults.
   ============================================================================================ */
:root {
  --brand: #204a88;
  --brand-dark: #173766;
  --brand-soft: #e9eff8;
  --accent: #ff8000;
  --ink: #202020;
  --ink-2: #484848;
  --muted: #717171;
  --line: #d6d6d6;
  --line-2: #eaeaea;
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --surface: #ffffff;
  --ok: #17803d;
  --bad: #c0392b;
  --radius: 4px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
  --shadow-2: 0 8px 30px rgba(0,0,0,.16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceff3; --ink-2: #c9d0d9; --muted: #98a3b0; --line: #34404d; --line-2: #26303a;
    --bg: #11171d; --bg-soft: #18212a; --surface: #18212a; --brand-soft: #172a45;
    --shadow-1: none; --shadow-2: 0 8px 30px rgba(0,0,0,.5);
  }
  img.on-light { background: #fff; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button { font: inherit; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---- buttons ------------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--brand); background: var(--brand); color: #fff; padding: 11px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost-light:hover { background: #fff; color: var(--brand-dark); }
.btn-sm { padding: 7px 14px; font-size: .78rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- header ------------------------------------------------------------------------------- */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line-2); font-size: .72rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 0; padding-top: 4px; padding-bottom: 4px; }
.topbar a { color: var(--brand); padding: 0 10px; border-left: 1px solid var(--line); line-height: 1.2; }
.topbar a:first-child { border-left: 0; }
.site-header { position: sticky; top: 0; z-index: 60; background: var(--bg); transition: box-shadow .25s var(--ease); }
.site-header.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,.12); }
/* The header never changes height: a sticky header that shrinks moves the page under the scroll position, which un-shrinks it,
   which moves the page again - the bar "shakes" when you scroll back up to the top. Only paint-level effects change on scroll. */
.bar { display: flex; align-items: center; height: var(--header-h); gap: 20px; }
@media (min-width: 961px) { :root { --header-h: 78px; } }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 54px; width: auto; transform-origin: left center; transition: transform .25s var(--ease); }
.site-header.scrolled .logo img { transform: scale(.82); }
.logo .logo-text { font-weight: 800; font-size: 1.4rem; color: var(--brand); letter-spacing: .02em; }
.main-nav { display: flex; justify-content: center; flex: 1; gap: 2px; }
.main-nav > a, .main-nav > .has-mega > a { position: relative; display: block; padding: 8px 18px; color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; }
.main-nav > a::after, .main-nav > .has-mega > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease); }
.main-nav > a:hover::after, .main-nav > a.on::after, .main-nav > .has-mega:hover > a::after, .main-nav > .has-mega > a.on::after { transform: scaleX(1); }
.main-nav a.on { color: var(--brand); }
.has-mega { position: relative; }
.mega { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); width: min(760px, 92vw); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
  padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 18px; opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; color: var(--ink); border-radius: 3px; font-size: .9rem; }
.mega a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.mega .n { color: var(--muted); font-size: .8rem; }
.tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--brand); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }

/* search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10,16,24,.72); backdrop-filter: blur(3px); display: none; padding: 12vh 16px 16px; }
.search-overlay.open { display: block; animation: fade .2s var(--ease); }
.search-box { max-width: 680px; margin: 0 auto; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow-2); overflow: hidden; }
.search-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); padding: 18px 20px; font: inherit; font-size: 1.15rem; background: transparent; color: var(--ink); outline: none; }
.search-results { max-height: 52vh; overflow: auto; }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 10px 16px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.search-results a:hover, .search-results a:focus { background: var(--brand-soft); text-decoration: none; }
.search-results img { width: 52px; height: 40px; object-fit: contain; flex: none; }
.search-results .t { font-weight: 600; font-size: .95rem; }
.search-results .s { color: var(--muted); font-size: .8rem; }
.search-hint { padding: 16px 20px; color: var(--muted); font-size: .9rem; }

/* mobile drawer */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--surface); z-index: 95; transform: translateX(100%); transition: transform .3s var(--ease); padding: 18px; overflow: auto; box-shadow: var(--shadow-2); }
.drawer.open { transform: none; }
.drawer a { display: block; padding: 12px 6px; color: var(--ink); border-bottom: 1px solid var(--line-2); font-weight: 500; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 94; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* ---- hero --------------------------------------------------------------------------------- */
.hero { position: relative; min-height: clamp(320px, 52vh, 520px); display: flex; align-items: center; color: #fff; overflow: hidden; background: #0c1520; }
.hero-bg { position: absolute; inset: -4%; background-size: cover; background-position: center; animation: kenburns 28s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,14,22,.78) 0%, rgba(8,14,22,.38) 55%, rgba(8,14,22,.15) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: .01em; margin-bottom: .25em; text-transform: uppercase; }
.hero p.lead { font-size: clamp(1rem, 2.2vw, 1.3rem); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; max-width: 34ch; margin-bottom: 1.4em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .rise { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero .rise:nth-child(2) { animation-delay: .15s; } .hero .rise:nth-child(3) { animation-delay: .3s; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.page-hero { background: var(--brand); color: #fff; padding: 38px 0 34px; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .4em 0 0; opacity: .9; max-width: 60ch; }

/* ---- sections ----------------------------------------------------------------------------- */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section.soft { background: var(--bg-soft); }
.sec-title { text-align: center; margin-bottom: clamp(24px, 4vw, 44px); }
.sec-title h2 { display: inline-block; position: relative; padding-bottom: 14px; margin: 0; }
.sec-title h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 3px; background: var(--accent); transform: translateX(-50%); }
.sec-title p { color: var(--muted); margin: 14px auto 0; max-width: 60ch; }
.crumbs { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 7px; opacity: .6; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---- featured slider ---------------------------------------------------------------------- */
.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 70px); align-items: center; padding: 10px clamp(40px, 8vw, 110px); min-height: 360px; }
.slide .pic { display: grid; place-items: center; }
.slide .pic img { max-height: 340px; width: auto; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.18)); transition: transform .6s var(--ease); }
.slide:hover .pic img { transform: scale(1.04); }
.slide h3 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--brand); margin-bottom: .4em; }
.slide p { color: var(--ink-2); max-width: 46ch; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--brand); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; z-index: 2; }
.slider-btn:hover { background: var(--brand); color: #fff; }
.slider-btn.prev { left: 0; } .slider-btn.next { right: 0; }
.slider-btn svg { width: 20px; height: 20px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.dots button[aria-current="true"] { background: var(--brand); transform: scale(1.3); }

/* ---- cards & grids ------------------------------------------------------------------------ */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; transition: transform .5s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-img.empty { background: linear-gradient(135deg, var(--brand-soft), var(--bg-soft)); color: var(--brand); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1rem; }
.card h3 a { color: var(--ink); } .card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--brand); text-decoration: none; }
.card p { margin: 0; font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { margin-top: auto; font-weight: 700; padding-top: 6px; }
.tag { align-self: flex-start; display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--brand-soft); color: var(--brand); padding: 2px 9px; border-radius: 99px; }
.card.cat .card-img { aspect-ratio: 16 / 10; }
.card.cat .card-body { text-align: center; align-items: center; }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; }

/* skeleton loading */
.skel { background: linear-gradient(90deg, var(--line-2) 25%, var(--bg-soft) 50%, var(--line-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.card.skeleton { pointer-events: none; }
.card.skeleton .card-img { background: none; } .card.skeleton .card-img > div { width: 100%; height: 100%; }
.card.skeleton .l { height: 14px; margin: 8px 0 0; } .card.skeleton .l.s { width: 60%; }

/* services / solutions tiles */
.tile { position: relative; display: block; min-height: 190px; padding: 24px; border-radius: var(--radius); color: #fff; background: var(--brand); overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; background: var(--bg-img, none) center/cover; opacity: .35; z-index: -1; transition: transform .6s var(--ease), opacity .3s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55)); z-index: -1; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); text-decoration: none; }
.tile:hover::before { transform: scale(1.08); opacity: .5; }
.tile h3 { color: #fff; margin: 0 0 .3em; font-size: 1.15rem; }
.tile p { margin: 0; opacity: .9; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .more { position: absolute; left: 24px; bottom: 18px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tile .more::after { content: " →"; transition: margin .2s; } .tile:hover .more::after { margin-left: 6px; }
.tile.dark { background: #16283f; }

/* ---- products page ------------------------------------------------------------------------ */
.shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; padding: 26px 0 60px; }
.side { position: sticky; top: calc(var(--header-h) + 14px); max-height: calc(100vh - var(--header-h) - 30px); overflow: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); padding: 8px; }
.side h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 10px 10px 6px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 14px; border-left: 1px solid var(--line-2); display: none; }
.tree li.open > ul { display: block; animation: fade .2s; }
.tree a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 3px; color: var(--ink); font-size: .92rem; }
.tree a:hover { background: var(--brand-soft); text-decoration: none; }
.tree a.on { background: var(--brand); color: #fff; font-weight: 600; }
.tree a.on .n { color: #fff; opacity: .8; }
.tree .n { color: var(--muted); font-size: .8rem; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar form { display: flex; flex: 1; min-width: 220px; }
.input, input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], textarea, select {
  width: 100%; padding: 11px 13px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); outline: none; }
.toolbar input { border-radius: var(--radius) 0 0 var(--radius); } .toolbar button { border-radius: 0 var(--radius) var(--radius) 0; }
.count { color: var(--muted); font-size: .9rem; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); cursor: pointer; font-weight: 600; transition: all .2s; }
.pager button:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.pager button[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button[disabled] { opacity: .4; cursor: default; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.filters-toggle { display: none; }

/* ---- detail page -------------------------------------------------------------------------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); padding: 22px 0 30px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 14px); }
.stage { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 16px; box-sizing: border-box; transition: opacity .25s; }
.stage.is-3d { cursor: default; }
.stage model-viewer { width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, #fff, #e6eaef); --poster-color: transparent; }
.stage .hint { position: absolute; left: 12px; bottom: 10px; font-size: .75rem; color: var(--muted); background: rgba(255,255,255,.85); padding: 3px 8px; border-radius: 99px; pointer-events: none; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 58px; border: 2px solid var(--line-2); background: #fff; border-radius: var(--radius); padding: 3px; cursor: pointer; transition: border-color .2s, transform .2s; }
.thumbs button:hover { transform: translateY(-2px); }
.thumbs button[aria-current="true"] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.thumbs .t3d { font-size: .72rem; font-weight: 800; color: var(--brand); letter-spacing: .04em; display: grid; place-items: center; width: 100%; height: 100%; }
.info h1 { margin: 6px 0 10px; }
.info .short { color: var(--ink-2); font-size: 1.05rem; }
.big-price { font-size: 2rem; font-weight: 800; margin: 14px 0 2px; color: var(--ink); }
.big-price small { font-size: .9rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 22px; }
.ticks li { position: relative; padding: 5px 0 5px 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.tabs { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-top: 18px; }
.tabs a { padding: 14px 20px; color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--brand); text-decoration: none; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.block { padding: 34px 0 6px; }
.block > h2 { margin-bottom: 18px; }
.prose { max-width: 80ch; } .prose img { height: auto; } .prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose ul { padding-left: 1.3em; } .prose li { margin-bottom: .35em; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); }
table.data th, table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; width: 32%; }
table.data tr.grp th { background: var(--brand); color: #fff; width: auto; letter-spacing: .04em; }
table.data.zebra tbody tr:nth-child(even) { background: var(--bg-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 4px 13px; font-size: .88rem; background: var(--surface); color: var(--ink); }
a.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.optgroup { margin-bottom: 18px; } .optgroup h3 { font-size: .95rem; margin-bottom: 8px; }
.dl { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dl a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.dl a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-1); text-decoration: none; }
.dl .ico { flex: none; width: 40px; height: 48px; background: var(--brand); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; border-radius: 3px; letter-spacing: .04em; }
.dl .nm { font-weight: 600; font-size: .92rem; } .dl .mt { font-size: .78rem; color: var(--muted); text-transform: capitalize; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 99; background: rgba(8,12,18,.92); display: none; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: grid; animation: fade .2s; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; background: #fff; border-radius: 4px; }

/* ---- forms / account ---------------------------------------------------------------------- */
.narrow { max-width: 480px; margin: 0 auto; padding: 44px 20px 70px; }
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-1); }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.field .err { color: var(--bad); font-size: .84rem; margin-top: 4px; min-height: 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { padding: 12px 15px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 16px; background: var(--surface); }
.alert.ok { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.alert.bad { border-color: var(--bad); color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--surface)); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.news-item { display: flex; gap: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); margin-bottom: 16px; }
.news-item img { width: 160px; height: 110px; object-fit: contain; flex: none; background: #fff; }
.news-item .date { color: var(--muted); font-size: .85rem; }

/* ---- footer ------------------------------------------------------------------------------- */
.site-footer { background: #151b22; color: #c3ccd6; margin-top: 40px; font-size: .92rem; }
.site-footer a { color: #c3ccd6; } .site-footer a:hover { color: #fff; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 48px 0 30px; }
.foot h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; } .foot li { margin-bottom: 8px; }
.foot .brand-line { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.legal { border-top: 1px solid #28323d; padding: 16px 0; font-size: .82rem; color: #8896a5; }

/* toast */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 8px; }
.toast { background: #1d2733; color: #fff; padding: 12px 16px; border-radius: 4px; box-shadow: var(--shadow-2); animation: rise .3s var(--ease); max-width: 340px; }
.toast.bad { background: var(--bad); }

/* ---- responsive --------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .main-nav, .tools .hide-m { display: none; }
  .burger { display: grid; }
  .shop { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; display: none; }
  .side.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .detail { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .slide { grid-template-columns: 1fr; text-align: center; padding: 10px 44px; }
  .slide p { margin-inline: auto; }
  .foot { grid-template-columns: 1fr 1fr; }
  .tabs { top: 0; }
}
@media (max-width: 600px) {
  .row2 { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; }
  .foot { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .slider-btn { display: none; }
  .slide { padding: 10px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { animation: none; }
}
@media print { .topbar, .site-header, .site-footer, .tabs, .actions, .search-overlay { display: none !important; } }

/* hero slides (several slides cross-fade; one slide just zooms slowly) */
.hero-bg { opacity: 0; transition: opacity 1.4s ease; }
.hero-bg.active { opacity: 1; }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; }
.hero-dots button[aria-current="true"] { background: #fff; }
/* ---- cart, checkout, order ---------------------------------------------------------------------- */
.cart-btn { position: relative; }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95); } }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
#cart.busy .cart-lines { opacity: .55; transition: opacity .2s; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 110px 34px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.cart-line.has-error { background: color-mix(in srgb, var(--bad) 6%, transparent); border-left: 3px solid var(--bad); padding-left: 12px; }
.cl-pic { width: 84px; height: 66px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; color: var(--brand); font-weight: 800; }
.cl-pic img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cl-name { font-weight: 700; color: var(--ink); }
.cl-opts { margin: 4px 0 0; padding-left: 1.1em; font-size: .84rem; color: var(--muted); }
.cl-err { color: var(--bad); font-size: .88rem; margin-top: 4px; font-weight: 600; }
.cl-price { text-align: right; }
.cl-remove, .link-btn { border: 0; background: none; cursor: pointer; color: var(--muted); font: inherit; padding: 6px; border-radius: 50%; }
.cl-remove:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.link-btn { border-radius: 0; padding: 0; text-decoration: underline; } .link-btn:hover { color: var(--brand); } .link-btn.danger:hover { color: var(--bad); }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stepper button { width: 34px; border: 0; background: var(--bg-soft); color: var(--ink); font-size: 1.1rem; cursor: pointer; } .stepper button:hover { background: var(--brand); color: #fff; }
.qty-input { width: 54px !important; border: 0 !important; border-radius: 0 !important; text-align: center; padding: 8px 2px !important; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-sum { position: sticky; top: calc(var(--header-h) + 16px); }
.cart-sum h2 { font-size: 1.1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--ink-2); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; margin-top: 6px; border-top: 2px solid var(--ink); font-size: 1.1rem; } .sum-total b { font-size: 1.5rem; }
.cart-sum .btn { width: 100%; justify-content: center; margin-top: 14px; }
.mini-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.ml-pic { position: relative; width: 56px; height: 46px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); display: grid; place-items: center; color: var(--brand); font-weight: 800; font-size: .8rem; }
.ml-pic img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ml-qty { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.ml-name { font-weight: 600; font-size: .92rem; } .ml-total { font-weight: 700; }
.co-form { display: grid; gap: 22px; }
.co-form .panel h2 { font-size: 1.15rem; margin-bottom: 14px; }
.addr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .addr .field.wide { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; cursor: pointer; margin: 6px 0; } .check input { width: auto; }
.methods { display: grid; gap: 10px; }
.method { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; margin: 0; transition: border-color .2s, background .2s; }
.method:hover { border-color: var(--brand); }
.method:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.method input { width: auto; margin-top: 4px; } .method span { display: grid; gap: 2px; }
.btn-lg { padding: 15px 34px; font-size: .95rem; }
.co-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .inline-form select { width: auto; min-width: 220px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; } .spin.dark { color: var(--brand); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); } .timeline li { position: relative; padding: 0 0 14px 14px; }
.timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.small { font-size: .86rem; }
/* purchase panel on product pages */
.purchase { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); display: grid; gap: 12px; }
.pp-row { border: 0; padding: 0; margin: 0; min-width: 0; } .pp-row label, .pp-row legend { font-weight: 700; font-size: .85rem; display: block; margin-bottom: 4px; padding: 0; }
.pp-checks { display: grid; gap: 4px; max-height: 190px; overflow: auto; padding: 4px 2px; }
.pp-check { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; font-size: .92rem !important; margin: 0 !important; cursor: pointer; } .pp-check input { width: auto; }
.pp-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.pp-sum { display: grid; line-height: 1.1; min-width: 96px; } .p-total { font-size: 1.5rem; font-weight: 800; }
.pp-ok { color: var(--ok); font-weight: 700; } .pp-status:empty { display: none; }
.pulse { animation: pulse .6s var(--ease); } @keyframes pulse { 40% { transform: scale(1.06); box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 25%, transparent); } }
@media (max-width: 860px) {
  .cart-grid { grid-template-columns: 1fr; } .cart-sum { position: static; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) 34px; } .cl-pic { width: 72px; height: 58px; } .cl-qty, .cl-price { grid-column: 2; text-align: left; } .cl-remove { grid-column: 3; grid-row: 1; }
  .addr { grid-template-columns: 1fr; }
}

.cta-band { background: var(--brand); color: #fff; padding: 46px 0; text-align: center; }
.cta-band h2 { color: #fff; } .cta-band p { opacity: .9; }

/* ---- discount code box ---- */
.code-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 14px 0 4px; }
.code-box input { flex: 1; min-width: 140px; text-transform: uppercase; letter-spacing: .04em; }
.code-box.applied { justify-content: space-between; background: var(--brand-soft, #eef3fb); border-radius: 8px; padding: 8px 12px; }
.code-box .code-err { flex-basis: 100%; color: #b3261e; font-size: .88rem; font-weight: 600; }

/* ---- contact page: form + offices + map ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 28px; }
.offices { display: grid; gap: 14px; }
.office { background: var(--surface, #fff); border: 1px solid var(--line, #e3e8ef); border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.office.current { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }
.office h2 { margin: 0 0 4px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.office .badge { font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 999px; }
.office .company { font-weight: 700; color: var(--muted, #5b6573); margin-bottom: 6px; font-size: .9rem; }
.office address { font-style: normal; line-height: 1.55; }
.office .mail { margin: 8px 0 0; font-weight: 600; }
.map { margin: 0; border: 1px solid var(--line, #e3e8ef); border-radius: 12px; overflow: hidden; background: var(--surface, #fff); }
.map iframe { display: block; border: 0; width: 100%; height: 320px; }
.map figcaption { padding: 8px 14px; font-size: .88rem; display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.field .req, .req { color: #b3261e; font-weight: 800; }
.field .opt { color: var(--muted, #5b6573); font-weight: 400; font-size: .85em; }

/* about page */
.about .prose { max-width: 80ch; }
.about .lead { font-size: 1.2rem; line-height: 1.6; color: var(--brand); font-weight: 600; margin-bottom: 1.4em; }
.about h2 { margin: 1.8em 0 .5em; }
.about .values { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.about .values li { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.about .values strong { display: block; color: var(--brand); margin-bottom: 4px; }
