:root {
  --bg: #030303;
  --panel: #111111;
  --panel-2: #191919;
  --text: #f6f7f8;
  --muted: #c6c6c6;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #f00008;
  --accent-2: #ffe600;
  --premium-blue: #168dd7;
  --premium-ink: #070b12;
  --premium-soft: #f4f6f8;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(3, 3, 3, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 230px;
  min-width: 180px;
}

.brand img {
  display: block;
  width: 100%;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: #fff;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.header-action,
.button.primary {
  background: linear-gradient(135deg, #f00008, #b60006);
  border-color: rgba(240, 0, 8, 0.9);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.admin-content .button.secondary,
.admin-panel .button.secondary,
.password-panel .button.secondary {
  background: #fff;
  border-color: #cdd5dd;
  color: #071343;
}

.header-action:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.28)),
    linear-gradient(0deg, #030303, transparent 48%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6.8vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-content p:not(.eyebrow) {
  max-width: 650px;
  font-size: 19px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 780px;
  margin-top: 34px;
}

.hero-tracking-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero-tracking-link span {
  color: var(--accent-2);
  font-size: 18px;
  transition: transform 160ms ease;
}

.hero-tracking-link:hover span { transform: translateX(4px); }

.hero-metrics span {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d9dde3;
  backdrop-filter: blur(10px);
}

.hero-metrics strong {
  color: #fff;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.section,
.split-section,
.contact {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.service-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-grid article,
.process-grid article {
  position: relative;
  min-height: 250px;
  padding: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(229, 0, 10, 0.16), rgba(30, 11, 14, 0.94) 56%, rgba(9, 10, 15, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid rgba(240, 0, 8, 0.88);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.service-grid article::after {
  position: absolute;
  right: -34px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.service-grid article h3,
.service-grid article p {
  position: relative;
  z-index: 1;
}

.service-grid article span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.service-grid .service-gps {
  position: relative;
  order: -1;
  overflow: hidden;
  border-top-color: #e5000a;
  background: linear-gradient(135deg, rgba(229, 0, 10, 0.28), rgba(37, 5, 8, 0.95) 56%, rgba(9, 10, 15, 0.98));
}

.service-gps a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 14px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.service-gps a:hover { color: var(--accent-2); }

.gps-spotlight {
  width: min(var(--max), calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin: 20px auto 86px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  background: linear-gradient(135deg, #101117 0%, #050505 58%, #240204 100%);
  border: 1px solid rgba(255, 255, 255, .13);
  border-top: 3px solid var(--accent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.gps-spotlight h2 { max-width: 650px; }
.gps-spotlight p { max-width: 620px; }
.gps-spotlight ul { display: grid; gap: 9px; padding-left: 20px; color: #fff; font-weight: 700; }
.gps-spotlight img { width: 100%; max-height: 500px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
.gps-spotlight-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (max-width: 820px) {
  .gps-spotlight { grid-template-columns: 1fr; margin-bottom: 58px; }
  .gps-spotlight img { max-height: 420px; }
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-list {
  display: grid;
  gap: 12px;
}

.work-list div {
  display: grid;
  gap: 6px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(240, 0, 8, 0.12), transparent 45%),
    var(--panel-2);
  border-left: 4px solid var(--accent);
}

.work-list span {
  color: var(--muted);
}

.work-showcase {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-showcase-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.work-showcase-heading h2 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.work-showcase-heading p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.work-card-wide {
  grid-column: span 2;
}

.work-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-card::after {
  position: absolute;
  inset: 35% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.work-card div {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: grid;
  gap: 5px;
}

.work-card span {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-card strong {
  font-size: 18px;
  line-height: 1.2;
}

.work-card {
  cursor: zoom-in;
}

.metakit-showcase {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
  border-bottom: 1px solid var(--line);
}

.metakit-grid {
  display: flex;
  gap: 16px;
  padding: 2px 2px 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--accent) var(--panel-2);
}

.metakit-card {
  display: grid;
  grid-template-rows: 1fr auto;
  flex: 0 0 clamp(250px, 25vw, 330px);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: zoom-in;
  background: var(--panel-2);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.metakit-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.metakit-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #070707;
}

.metakit-card strong {
  padding: 16px;
  font-size: 17px;
  line-height: 1.15;
  text-align: center;
}

.metakit-cta {
  display: inline-flex;
  margin-top: 28px;
  padding: 13px 18px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  background: var(--accent);
}

.work-lightbox {
  width: min(1000px, calc(100vw - 28px));
  max-width: none;
  padding: 0;
  overflow: visible;
  color: var(--text);
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.work-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.work-lightbox figure {
  display: grid;
  margin: 0;
}

.work-lightbox img {
  width: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  background: #050505;
}

.work-lightbox figcaption {
  padding: 15px 58px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.work-lightbox-close,
.work-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.work-lightbox-close { top: 14px; right: 14px; }

.promo-popup {
  width: min(570px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.promo-popup::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.promo-popup img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #050505;
}

.promo-popup a {
  display: block;
  padding: 15px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
}

.promo-popup-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 28px;
}

.promo-popup-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
}

.promo-popup-nav.previous { left: 12px; }
.promo-popup-nav.next { right: 12px; }
.promo-popup-nav:hover { background: var(--accent); }
.work-lightbox-nav { top: 50%; transform: translateY(-50%); }
.work-lightbox-nav.previous { left: 14px; }
.work-lightbox-nav.next { right: 14px; }

@media (max-width: 560px) {
  .work-lightbox-nav { width: 38px; height: 38px; }
  .work-lightbox-nav.previous { left: 8px; }
  .work-lightbox-nav.next { right: 8px; }
  .work-lightbox figcaption { padding: 13px 48px; }
}

.process-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(240, 0, 8, 0.12), transparent 42%),
    #090909;
  border: 1px solid var(--line);
  padding: clamp(28px, 6vw, 58px);
  margin-bottom: 72px;
}

.contact-panel {
  display: grid;
  gap: 10px;
}

.contact-panel a {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-weight: 800;
}

.contact-panel a:hover {
  border-color: var(--accent-2);
}

.featured-installations {
  border-top: 1px solid var(--line);
}

.installation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.installation-grid a {
  display: grid;
  min-height: 230px;
  align-content: end;
  gap: 10px;
  padding: 26px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76)),
    linear-gradient(135deg, rgba(22, 141, 215, 0.24), rgba(240, 0, 8, 0.18)),
    #12151a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.installation-grid a:hover {
  border-color: rgba(255, 230, 0, 0.6);
  transform: translateY(-2px);
}

.installation-grid strong {
  font-size: 24px;
}

.installation-grid span {
  color: #d7dce2;
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 48px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

.footer a:hover {
  color: #fff;
}

.catalog-page,
.admin-page {
  min-height: 100vh;
  padding: 0;
  background: #edf1f5;
}

.catalog-page {
  padding: 96px 0 74px;
  background:
    radial-gradient(circle at 16% 0%, rgba(240, 0, 8, 0.1), transparent 32%),
    linear-gradient(180deg, #070b12 0 640px, #f4f6f8 640px 100%);
  color: #071343;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 12%, rgba(240, 0, 8, 0.22), transparent 30%),
    linear-gradient(135deg, #030303 0%, #0c0c0c 48%, #150000 100%);
}

.catalog-hero,
.empty-catalog,
.catalog-grid,
.admin-shell {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.catalog-hero {
  padding: 44px 0 42px;
  text-align: center;
}

.catalog-hero h1,
.admin-shell h1 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.catalog-hero h1 {
  margin: 0 auto 8px;
  color: #fff;
  font-size: clamp(34px, 5vw, 64px);
  max-width: 900px;
}

.catalog-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: #cdd3dc;
  font-size: 17px;
}

.catalog-category-showcase,
.catalog-products-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.catalog-category-showcase {
  padding: 0 0 56px;
}

.catalog-section-title {
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  text-align: center;
}

.catalog-section-title h2 {
  position: relative;
  margin: 0;
  color: #071343;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.catalog-category-showcase .catalog-section-title h2 {
  color: #fff;
}

.catalog-category-showcase .catalog-section-title p {
  color: #cdd3dc;
}

.catalog-section-title h2::after {
  display: block;
  width: 48px;
  height: 3px;
  margin: 9px auto 0;
  background: linear-gradient(90deg, #f00008, #168dd7);
  content: "";
}

.catalog-section-title p {
  max-width: 520px;
  margin: 12px auto 0;
  color: #64707d;
  font-size: 14px;
  line-height: 1.6;
}

.category-tile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
}

.category-tile {
  position: relative;
  display: grid;
  min-height: 132px;
  place-items: center;
  overflow: hidden;
  padding: 16px;
  background: #101722;
  color: #fff;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 20px 42px rgba(7, 19, 67, 0.16);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    outline-color 160ms ease;
}

.category-tile::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72)),
    rgba(0, 0, 0, 0.18);
  content: "";
}

.category-tile.active {
  outline: 3px solid #f00008;
  outline-offset: 2px;
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(7, 19, 67, 0.22);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.category-tile span {
  font-size: 14px;
}

.category-tile small {
  font-size: 9px;
  opacity: 0.92;
}

.empty-catalog {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 20px;
}

.catalog-filters a {
  padding: 9px 12px;
  background: #151515;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.catalog-filters a.active,
.catalog-filters a:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e9ee;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(7, 19, 67, 0.08);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(7, 19, 67, 0.14);
  outline: 0;
}

.product-image {
  position: relative;
  display: grid;
  height: 236px;
  place-items: center;
  background: linear-gradient(180deg, #fff, #f6f7f9);
  border-bottom: 0;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.product-image span {
  color: #071343;
  font-weight: 800;
}

.product-body {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 20px;
  background: #fff;
}

.product-body h2 {
  margin: 0;
  color: #050505;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.35;
  text-transform: uppercase;
}

.product-body small {
  color: #c40008;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #5d6975;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-body strong {
  color: #071343;
  font-size: 21px;
  font-weight: 800;
}

.product-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.product-price-line del,
.admin-price del {
  color: #8b949e;
  font-weight: 700;
}

.discount-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 999px;
  background: #071343;
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
}

.stock-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid #e1e6ec;
  border-radius: 999px;
  background: #f7f9fb;
  color: #52606b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.stock-badge.in_stock {
  color: #167a38;
}

.stock-badge.out_of_stock {
  color: #b00020;
}

.stock-badge.preorder {
  color: #9a6a00;
}

.product-body button {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
}

.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 10, 14, 0.58);
  backdrop-filter: blur(4px);
}

.purchase-modal[aria-hidden="false"] {
  display: flex;
}

.purchase-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  color: #071343;
  box-shadow: 0 24px 70px rgba(7, 19, 67, 0.28);
}

.purchase-dialog .eyebrow {
  margin-bottom: 8px;
  color: #c40008;
  font-size: 12px;
}

.purchase-dialog h2 {
  margin-bottom: 16px;
  color: #071343;
  font-size: 30px;
  line-height: 1.1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid #d7dde4;
  border-radius: 999px;
  background: #f7f9fb;
  color: #243238;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #eef2f5;
  color: #c40008;
}

.selected-product {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #f7f9fb;
  border: 1px solid #dfe5eb;
  border-left: 4px solid #c40008;
  color: #243238;
  font-weight: 700;
  line-height: 1.5;
}

.purchase-dialog form {
  display: grid;
  gap: 13px;
}

.purchase-dialog label {
  display: grid;
  gap: 8px;
  color: #243238;
  font-size: 14px;
  font-weight: 700;
}

.purchase-dialog input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  color: #071343;
  font: inherit;
}

.purchase-dialog input:focus {
  outline: 3px solid rgba(22, 141, 215, 0.18);
  border-color: #168dd7;
}

.purchase-dialog .button.primary {
  min-height: 48px;
  margin-top: 4px;
  border-radius: 6px;
  background: #c40008;
  border-color: #c40008;
  color: #fff;
  font-size: 15px;
}

.admin-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background: #edf1f5;
  border: 0;
}

.login-shell {
  width: min(430px, 100%);
  padding: 30px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 230, 0, 0.2);
  border-top: 4px solid var(--accent);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.admin-logo {
  display: block;
  width: min(210px, 72vw);
  margin-bottom: 20px;
}

.login-shell .admin-logo {
  width: min(270px, 86vw);
  margin: 0 auto 24px;
}

.login-shell h1 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(28px, 6vw, 42px);
}

.login-form {
  margin: 0;
}

.login-form input {
  background: #111;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 255px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 100vh;
  padding: 18px 24px;
  background: #243238;
  color: #d9e0e4;
}

.admin-sidebar-logo {
  width: 180px;
  margin: 0 0 22px;
}

.admin-sidebar a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9e0e4;
  font-weight: 800;
}

.admin-sidebar a:hover {
  color: #fff;
}

.admin-content {
  padding: 20px 24px 44px;
  color: #071343;
}

.inventory-top {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 2px solid #d8dde3;
  padding-bottom: 8px;
}

.inventory-top h1 {
  margin: 0;
  color: #071343;
  font-size: clamp(28px, 4vw, 32px);
}

.admin-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  background: #0b84f3;
  color: #fff;
  font-weight: 800;
}

.inventory-top input {
  justify-self: end;
  width: min(260px, 100%);
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c9dced;
  color: #071343;
  font: inherit;
}

.inventory-table {
  display: grid;
  background: #fff;
  border: 1px solid #e1e5e9;
}

.inventory-row {
  display: grid;
  grid-template-columns: 70px minmax(320px, 1fr) 220px 150px 120px;
  align-items: center;
  min-height: 118px;
  border-bottom: 1px solid #e7eaee;
}

.inventory-row > * {
  padding: 0 24px;
}

.inventory-head {
  min-height: 54px;
  background: #737d84;
  color: #fff;
}

.inventory-empty {
  padding: 24px;
  color: #52606b;
}

.inventory-check {
  justify-self: center;
  width: 20px;
  height: 20px;
  border: 1px solid #c9cfd5;
  padding: 0;
}

.inventory-product {
  display: flex;
  align-items: center;
  gap: 20px;
}

.inventory-product img,
.inventory-product .admin-product-placeholder {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  object-fit: contain;
  background: #fff;
  color: #52606b;
}

.inventory-product h2 {
  margin: 0 0 8px;
  color: #071343;
  font-size: 15px;
  line-height: 1.3;
  text-transform: uppercase;
}

.inventory-product small,
.inventory-row span {
  color: #52606b;
}

.inventory-row strong {
  color: #071343;
}

.admin-price {
  display: grid;
  gap: 3px;
}

.inventory-actions {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.inventory-actions a,
.inventory-actions button,
.category-list button {
  border: 0;
  background: transparent;
  color: #435066;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.inventory-actions a:hover,
.inventory-actions button:hover,
.category-list button:hover {
  color: #0b84f3;
}

.inventory-actions form {
  margin: 0;
}

.admin-panel {
  margin-top: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e1e5e9;
  color: #071343;
}

.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.editor-heading a,
.editor-card a {
  color: #0b84f3;
  font-weight: 800;
}

.product-editor {
  display: block;
  max-width: none;
  margin: 12px 0 0;
}

.admin-form.product-editor {
  max-width: none;
  width: 100%;
}

.editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 18px;
  border-bottom: 1px solid #d7dde4;
}

.editor-tabs a {
  position: relative;
  padding: 13px 16px;
  color: #40505f;
  font-weight: 700;
}

.editor-tabs a.active {
  color: #071343;
}

.editor-tabs a.active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: #0b84f3;
  content: "";
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.editor-left {
  display: grid;
  gap: 22px;
}

.editor-section:not(.active) {
  display: none;
}

.editor-card {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe5eb;
  color: #071343;
}

.editor-card h3,
.editor-card summary {
  margin: 0;
  padding: 18px 14px;
  background: #fbfbfc;
  border-bottom: 1px solid #dfe5eb;
  color: #071343;
  font-size: 16px;
  line-height: 1.2;
}

.editor-card > label,
.editor-card > small,
.field-grid,
.price-row,
.media-card > .upload-hint,
.media-card > .upload-error,
.media-grid,
.upload-preview {
  margin-right: 14px;
  margin-left: 14px;
}

.editor-card > label,
.field-grid {
  margin-top: 16px;
}

.editor-card > small {
  display: block;
  margin-top: 8px;
  margin-bottom: 16px;
  color: #52606b;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 0.32fr);
  gap: 20px;
}

.product-editor label span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-editor b {
  color: #f00008;
}

.product-editor input,
.product-editor textarea,
.product-editor select {
  border-color: #b9d8f5;
  color: #071343;
}

.product-editor textarea {
  min-height: 96px;
  resize: vertical;
}

.toggle-line {
  display: inline-flex !important;
  grid-auto-flow: column;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  justify-content: start !important;
  gap: 12px !important;
  margin-bottom: 0;
  color: #243238;
  cursor: pointer;
  font-weight: 600 !important;
}

.toggle-line input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-line > span {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d6dce1;
  transition: background 160ms ease;
}

.toggle-line > span::before {
  display: block;
  width: 22px;
  height: 22px;
  margin: 1px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(7, 19, 67, 0.24);
  transition: transform 160ms ease;
  content: "";
}

.toggle-line input:checked + span {
  background: #00b947;
}

.toggle-line input:checked + span::before {
  transform: translateX(20px);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(180px, 320px) 1fr;
  gap: 22px;
  align-items: end;
  padding: 22px 0;
}

.module-row {
  display: grid;
  gap: 16px;
  padding: 20px 14px;
}

.module-row p {
  max-width: 680px;
  margin: 0;
  color: #52606b;
  font-size: 14px;
}

.module-row.divided {
  border-top: 1px solid #dfe5eb;
}

.radio-list {
  display: grid;
  gap: 20px;
  padding: 20px 14px;
}

.radio-list label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #243238;
  cursor: pointer;
  font-weight: 600;
}

.admin-form .radio-list input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  padding: 0;
  accent-color: #0b84f3;
}

.compact-details {
  margin: 0;
  border-top: 1px solid #dfe5eb;
}

.compact-details summary {
  background: #fff;
  cursor: pointer;
}

.compact-details p,
.compact-details label {
  margin: 14px;
}

.money-input {
  display: grid;
  grid-template-columns: 1fr 32px;
}

.money-input input {
  border-right: 0;
}

.money-input > span {
  display: grid;
  place-items: center;
  border: 1px solid #b9d8f5;
  background: #edf1f5;
  color: #52606b;
  font-weight: 800;
}

.sale-toggle {
  margin: 0 !important;
}

.additional-card {
  margin-bottom: 68px;
}

.additional-card summary {
  cursor: pointer;
  font-weight: 800;
}

.additional-card label {
  margin-bottom: 16px;
}

.media-card {
  position: sticky;
  top: 16px;
}

.select-media {
  display: inline-flex !important;
  width: auto !important;
  margin-top: 14px;
  padding: 10px 14px;
  background: #9b9b9b;
  color: #fff !important;
  cursor: pointer;
  font-weight: 800 !important;
}

.select-media input {
  display: none;
}

.media-grid,
.upload-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.media-thumb {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  border: 1px solid #ccd7e1;
  background: #f7f9fb;
}

.media-thumb img {
  display: block;
  width: 100%;
  height: 86px;
  object-fit: contain;
  background: #fff;
}

.media-thumb.pending {
  display: grid;
  place-items: center;
  gap: 4px;
}

.media-thumb.pending small {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 5px;
  background: #0b84f3;
  color: #fff;
  font-weight: 800;
}

.media-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(36, 50, 56, 0.82);
}

.media-actions button {
  min-height: 24px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.save-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px -22px -22px;
  padding: 10px 22px;
  background: #edf1f5;
  border-top: 1px solid #d7dde4;
}

.save-bar .button {
  width: auto;
  min-width: 104px;
  min-height: 38px;
  background: #00b947;
  border-color: #00b947;
}

.save-bar a {
  color: #0b84f3;
  font-weight: 800;
}

.hidden-action-form {
  display: none;
}

.admin-panel h2,
.admin-panel h3 {
  color: #071343;
}

.admin-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.15;
}

.admin-form select {
  width: 100%;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #d7dde4;
  color: #071343;
  font: inherit;
}

.inline-form {
  grid-template-columns: 1fr 1fr auto;
  max-width: none;
  align-items: end;
}

.category-list {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.category-list form {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f7f9fb;
  border: 1px solid #e1e5e9;
  color: #071343;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-preview img {
  width: 96px;
  height: 76px;
  object-fit: cover;
  border: 1px solid #d7dde4;
  background: #fff;
}

.upload-hint {
  margin: -4px 0 0;
  color: #52606b;
  font-size: 13px;
}

.upload-error[hidden] {
  display: none;
}

.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 18px 0 26px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: #071343;
  font-weight: 700;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #d7dde4;
  color: #071343;
  font: inherit;
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: 2px solid rgba(255, 230, 0, 0.36);
  border-color: var(--accent-2);
}

.form-error,
.form-notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
}

.form-error {
  color: #7a0000;
  background: #ffe8e8;
  border-color: #ffb9b9;
}

.form-notice {
  color: #4d4100;
  background: #fff8c8;
  border-color: #f3df56;
}

.password-panel {
  max-width: 560px;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: #f7f9fb;
  border: 1px solid #e1e5e9;
  color: #071343;
}

.password-panel summary {
  cursor: pointer;
  color: #071343;
  font-weight: 800;
}

.login-shell .admin-form label {
  color: #f6f7f8;
}

.login-shell .form-error {
  color: #fff;
  background: rgba(240, 0, 8, 0.24);
  border-color: rgba(255, 255, 255, 0.14);
}

.password-form {
  margin-bottom: 0;
}

.admin-products {
  display: grid;
  gap: 12px;
}

.admin-products article {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.admin-products img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  background: #000;
}

.admin-product-placeholder {
  display: grid;
  width: 92px;
  height: 68px;
  place-items: center;
  background: #050505;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.admin-products h2 {
  margin-bottom: 6px;
  font-size: 17px;
}

.admin-products p {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.admin-products small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.admin-image-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 0 0 24px;
}

.admin-image-list form {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.admin-image-list img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #000;
}

.image-order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.image-order-actions button {
  min-height: 34px;
  border: 1px solid #cdd5dd;
  background: #fff;
  color: #071343;
  cursor: pointer;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-actions form {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .service-grid,
  .process-grid,
  .installation-grid,
  .work-gallery,
  .metakit-grid,
  .split-section,
  .contact,
  .admin-products article {
    grid-template-columns: 1fr;
  }

  .work-card-wide {
    grid-column: auto;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .category-tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .admin-top-actions {
    justify-content: flex-start;
  }

  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .admin-sidebar-logo {
    grid-column: 1 / -1;
  }

  .inventory-top {
    grid-template-columns: 1fr;
  }

  .inventory-top input {
    justify-self: stretch;
    width: 100%;
  }

  .inventory-table {
    background: transparent;
    border: 0;
    gap: 10px;
  }

  .inventory-head {
    display: none;
  }

  .inventory-row {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 14px;
    background: #fff;
    border: 1px solid #e1e5e9;
  }

  .inventory-row > * {
    padding: 6px 0;
  }

  .inventory-check {
    display: none;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .editor-layout,
  .field-grid,
  .price-row {
    grid-template-columns: 1fr;
  }

  .media-card {
    position: static;
  }

  .editor-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .editor-tabs a {
    white-space: nowrap;
  }

  .service-grid article,
  .process-grid article {
    min-height: auto;
  }

}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    width: 176px;
    min-width: 150px;
  }

  .brand img {
    height: 42px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 56px);
  }

  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }

  .catalog-page {
    padding-top: 82px;
  }

  .catalog-grid,
  .category-tile-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 220px;
  }

  .media-grid,
  .upload-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
