/* ===========================================================
   Phantom Industries — Design System
   =========================================================== */

:root {
  --red: #d20000;
  --red-dark: #a30000;
  --red-light: #ff2f2f;
  --ink: #15161a;
  --ink-soft: #33353c;
  --gray-900: #1a1a1a;
  --gray-700: #4a4d55;
  --gray-500: #7a7d85;
  --gray-300: #d7d9de;
  --gray-200: #e8e9ed;
  --gray-100: #f4f5f7;
  --white: #ffffff;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(20, 20, 25, 0.08), 0 1px 2px rgba(20, 20, 25, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 20, 25, 0.10), 0 2px 6px rgba(20, 20, 25, 0.06);
  --shadow-lg: 0 20px 48px rgba(20, 20, 25, 0.16), 0 6px 16px rgba(20, 20, 25, 0.08);

  --container: 1280px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--gray-700); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--gray-500);
  max-width: 640px;
  margin-bottom: 40px;
  font-size: 16px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .15s; }
.topbar-social a:hover { background: var(--red); }

.navwrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.main-nav > li > a:hover, .main-nav > li.active > a { color: var(--red); background: rgba(210,0,0,.06); }
.main-nav .chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .55; }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 640px; max-width: 90vw;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 22px; display: none; grid-template-columns: repeat(2, 1fr); gap: 6px 24px;
}
.main-nav > li:hover .mega { display: grid; }
.mega a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); }
.mega a:hover { background: var(--gray-100); color: var(--red); }
.mega-cat-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 800; padding: 8px 10px 4px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--gray-100);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--red); color: var(--white); }
.icon-btn svg { width: 19px; height: 19px; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--white);
}
.icon-btn:hover .badge { border-color: var(--red); }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 8px; background: var(--gray-100); border: 0; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero / Slider ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero-slides { position: relative; height: min(72vh, 640px); min-height: 420px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.1s cubic-bezier(.45,0,.2,1), visibility 0s linear 1.1s;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background-image: inherit; background-size: cover; background-position: center;
  transform: scale(1.06); transition: transform 7s cubic-bezier(.16,.6,.4,1);
  background-image: var(--bg);
}
.hero-slide.active {
  opacity: 1; visibility: visible; transition: opacity 1.1s cubic-bezier(.45,0,.2,1);
}
.hero-slide.active::before { transform: scale(1.14); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,12,.82) 0%, rgba(10,10,12,.4) 55%, rgba(10,10,12,.08) 100%);
}
.hero-slide-content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center;
  max-width: 620px;
  padding: 0 24px;
  margin: 0 auto; max-width: var(--container);
}
.hero-slide-content .inner { max-width: 560px; }
.hero-slide-content .inner > * {
  opacity: 0; transform: translateY(24px); filter: blur(2px);
}
.hero-slide.active .inner > * {
  animation: heroTextIn .8s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-slide.active .inner .hero-meta { animation-delay: .05s; }
.hero-slide.active .inner .hero-tag { animation-delay: .15s; }
.hero-slide.active .inner .hero-title { animation-delay: .3s; }
.hero-slide.active .inner .hero-desc { animation-delay: .48s; }
.hero-slide.active .inner .hero-actions { animation-delay: .62s; }
@keyframes heroTextIn { to { opacity: 1; transform: none; filter: blur(0); } }

.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hero-meta span {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.75); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-light); flex-shrink: 0; }

.hero-tag { color: var(--red-light); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.hero-title { color: #fff; font-size: clamp(32px, 5vw, 58px); margin-bottom: 16px; }
.hero-desc { color: rgba(255,255,255,.78); font-size: 17px; margin-bottom: 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-controls {
  position: absolute; z-index: 3; bottom: 26px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.hero-count { color: rgba(255,255,255,.55); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.hero-count b { color: #fff; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  position: relative; width: 30px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.25); border: 0; padding: 0;
  overflow: hidden; cursor: pointer;
}
.hero-dots button::after {
  content: ""; position: absolute; inset: 0; background: var(--red); border-radius: 3px; transform-origin: left;
  transform: scaleX(0);
}
.hero-dots button.active::after { transform: scaleX(1); transition: transform 6s linear; }
.hero-dots button.done::after { transform: scaleX(1); transition: none; }
.hero-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s, transform .2s;
}
.hero-arrow:hover { background: var(--red); border-color: var(--red); transform: translateY(-50%) scale(1.08); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-arrow svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide::before { transition: none; transform: none !important; }
  .hero-slide.active .inner > * { animation: none; opacity: 1; transform: none; filter: none; }
  .hero-dots button.active::after { transition: none; transform: scaleX(1); }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--gray-900); color: #fff; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; padding: 22px 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: rgba(255,255,255,.85); }
.trust-item svg { width: 26px; height: 26px; color: var(--red-light); flex-shrink: 0; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.trust-item:hover svg { transform: scale(1.15) rotate(-6deg); }
.trust-item b { color: #fff; display: block; font-size: 14px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.cat-grid .reveal:nth-child(1) { transition-delay: .05s; }
.cat-grid .reveal:nth-child(2) { transition-delay: .13s; }
.cat-grid .reveal:nth-child(3) { transition-delay: .21s; }
.cat-grid .reveal:nth-child(4) { transition-delay: .29s; }
.value-grid .reveal:nth-child(1) { transition-delay: .05s; }
.value-grid .reveal:nth-child(2) { transition-delay: .13s; }
.value-grid .reveal:nth-child(3) { transition-delay: .21s; }
.value-grid .reveal:nth-child(4) { transition-delay: .29s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .trust-item:hover svg { transform: none; }
}

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5;
  background: var(--ink); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,10,12,0) 35%, rgba(10,10,12,.88) 100%); }
.cat-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px; }
.cat-card-body .count { color: var(--red-light); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.cat-card-body h3 { color: #fff; font-size: 19px; margin: 0; }

/* ---------- Product cards ---------- */
.prd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prd-card {
  border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; background: #fff;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; display: flex; flex-direction: column;
}
.prd-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.prd-thumb { position: relative; aspect-ratio: 1/1; background: var(--gray-100); overflow: hidden; }
.prd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s ease; }
.prd-card:hover .prd-thumb img { transform: scale(1.06); }
.prd-thumb .cat-pill {
  position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); color: var(--ink-soft);
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 999px;
}
.prd-quick {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(6px); transition: .18s;
}
.prd-card:hover .prd-quick { opacity: 1; transform: none; }
.prd-quick svg { width: 15px; height: 15px; }
.prd-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prd-body h4 { font-size: 14.5px; margin: 0; font-weight: 700; }
.prd-art { font-size: 12px; color: var(--gray-500); }
.prd-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }
.prd-add {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--ink); font-weight: 700; font-size: 12.5px;
  background: #fff; transition: .15s;
}
.prd-add:hover { background: var(--ink); color: #fff; }
.prd-add.added { background: var(--red); border-color: var(--red); color: #fff; }
.prd-add svg { width: 14px; height: 14px; }

/* ---------- About split ---------- */
.about-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-media img { width: 100%; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.stat { padding: 18px 0; border-top: 2px solid var(--gray-200); }
.stat b { display: block; font-size: 30px; color: var(--ink); }
.stat span { font-size: 13px; color: var(--gray-500); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--ink) 0%, #26070a 60%, var(--red-dark) 130%);
  color: #fff; border-radius: var(--radius-lg); padding: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 8px; font-size: 30px; }
.cta p { color: rgba(255,255,255,.75); margin: 0; }

/* ---------- Downloads ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dl-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 3/4; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.dl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.dl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dl-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.85) 100%); }
.dl-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; color: #fff; }
.dl-card-body h4 { color: #fff; margin: 0 0 4px; }
.dl-card-body span { font-size: 12.5px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,.7); }
.footer-top { padding: 64px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 14px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: .15s; }
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }
.footer-col h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; font-size: 14px; }
.footer-col a:hover { color: var(--red-light); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--red-light); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-bottom a:hover { color: var(--red-light); }

/* ---------- Breadcrumb / page header ---------- */
.page-hero { background: var(--gray-900); padding: 46px 0; }
.page-hero h1 { color: #fff; margin-bottom: 8px; font-size: clamp(26px, 3vw, 36px); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--red-light); }
.breadcrumb .sep { opacity: .5; }

/* ---------- Catalog layout ---------- */
.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.catalog-sidebar {
  position: sticky; top: calc(var(--header-h) + 16px);
  border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden;
}
.sidebar-search { padding: 14px; border-bottom: 1px solid var(--gray-200); }
.sidebar-search input {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-300); font-size: 13.5px;
}
.sidebar-search input:focus { outline: none; border-color: var(--red); }
.cat-tree { max-height: 62vh; overflow-y: auto; padding: 8px; }
.cat-tree-top > li { margin-bottom: 2px; }
.cat-tree-top > li > a {
  display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 8px;
  font-weight: 700; font-size: 13.5px; color: var(--ink);
}
.cat-tree-top > li > a:hover, .cat-tree-top > li.open > a { background: var(--gray-100); }
.cat-tree-top .arrow { width: 7px; height: 7px; border-right: 2px solid var(--gray-500); border-bottom: 2px solid var(--gray-500); transform: rotate(45deg); transition: transform .15s; }
.cat-tree-top > li.open .arrow { transform: rotate(-135deg); }
.cat-sub { display: none; padding-left: 14px; border-left: 2px solid var(--gray-100); margin: 2px 0 8px 14px; }
.cat-tree-top > li.open .cat-sub { display: block; }
.cat-sub li a { display: block; padding: 7px 10px; border-radius: 7px; font-size: 13px; color: var(--gray-700); }
.cat-sub li a:hover, .cat-sub li a.active { color: var(--red); background: rgba(210,0,0,.06); }
.cat-tree-top > li > a.active { color: var(--red); }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.result-count { font-size: 14px; color: var(--gray-500); }
.result-count b { color: var(--ink); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--gray-100); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600;
}
.chip button { background: none; border: 0; padding: 0; display: flex; color: var(--gray-500); }
.chip button:hover { color: var(--red); }

.empty-state { padding: 80px 20px; text-align: center; color: var(--gray-500); }
.empty-state svg { width: 54px; height: 54px; color: var(--gray-300); margin-bottom: 14px; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pager button {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--gray-300); background: #fff; font-weight: 700; font-size: 13.5px;
}
.pager button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:disabled { opacity: .4; }

/* ---------- Product modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10,10,12,.55); backdrop-filter: blur(2px);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 780px; width: 100%; max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr;
}
.modal-media { background: var(--gray-100); display: flex; align-items: center; justify-content: center; padding: 30px; }
.modal-media img { max-height: 420px; object-fit: contain; }
.modal-body { padding: 34px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--gray-200); }
.modal-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 800; margin-bottom: 8px; }
.modal-body h3 { font-size: 24px; margin-bottom: 6px; }
.modal-art { color: var(--gray-500); font-size: 14px; margin-bottom: 20px; }

/* ---------- Basket drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,10,12,.5); z-index: 1100; display: none; }
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; background: #fff; z-index: 1101;
  box-shadow: -12px 0 40px rgba(0,0,0,.2); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--gray-200); }
.drawer-head h3 { margin: 0; font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.drawer-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.drawer-item img { width: 62px; height: 62px; object-fit: contain; background: var(--gray-100); border-radius: 8px; padding: 6px; }
.drawer-item-body { flex: 1; }
.drawer-item-body h5 { font-size: 13.5px; margin: 0 0 3px; }
.drawer-item-body span { font-size: 12px; color: var(--gray-500); }
.drawer-item-remove { color: var(--gray-500); font-size: 12px; font-weight: 700; margin-top: 6px; display: inline-block; }
.drawer-item-remove:hover { color: var(--red); }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--gray-200); }
.drawer-empty { padding: 60px 10px; text-align: center; color: var(--gray-500); }
.drawer-empty svg { width: 46px; height: 46px; color: var(--gray-300); margin-bottom: 12px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.form-field input, .form-field textarea, .form-field select {
  padding: 12px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--red); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--gray-500); margin-top: 8px; }
.form-status { font-size: 14px; font-weight: 600; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e9f8ee; color: #1c7a3b; }
.form-status.err { background: #fdecec; color: #b3261e; }

.contact-info-card { background: var(--gray-100); border-radius: var(--radius-lg); padding: 32px; }
.contact-info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.contact-info-row:last-child { border-bottom: 0; }
.contact-info-row svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }
.contact-info-row b { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-info-row span, .contact-info-row a { font-size: 13.5px; color: var(--gray-700); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; margin-top: 22px; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- About page extras ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { padding: 26px 22px; border: 1px solid var(--gray-200); border-radius: var(--radius-md); transition: .2s; }
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.value-card svg { width: 30px; height: 30px; color: var(--red); margin-bottom: 14px; }
.value-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.value-card p { font-size: 13.5px; margin: 0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prd-grid { grid-template-columns: repeat(3, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
}
@media (max-width: 880px) {
  .main-nav, .topbar-social, .mega { display: none; }
  .nav-toggle { display: flex; }
  .about-split { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .prd-grid { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; padding: 44px 0 24px; }
  .stat-row { grid-template-columns: 1fr; }
  .cta { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .modal { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
  .hero-desc { max-width: none; }
  .section { padding: 48px 0; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 1200; background: #fff; display: none; flex-direction: column;
  transform: translateX(-100%); transition: transform .25s ease;
}
.mobile-nav.open { display: flex; transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--gray-200); }
.mobile-nav-body { padding: 10px 12px; overflow-y: auto; }
.mobile-nav-body > li > a { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--gray-100); }
.mobile-sub { display: none; padding-left: 12px; }
.mobile-nav-body > li.open .mobile-sub { display: block; }
.mobile-sub li a { display: block; padding: 10px 12px; font-size: 14.5px; color: var(--gray-700); }
