:root {
  --page-max: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-height: 76px;
  --bg: #050806;
  --bg-2: #080d0a;
  --graphite: #101412;
  --graphite-soft: #171d19;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.105);
  --ink: #f2f8f1;
  --ink-soft: #d7ded6;
  --muted: #aeb9ad;
  --muted-2: #7f8b80;
  --line: rgba(229, 255, 232, 0.14);
  --line-strong: rgba(229, 255, 232, 0.24);
  --accent: #00c92f;
  --accent-bright: #42ff69;
  --accent-soft: rgba(0, 201, 47, 0.18);
  --accent-line: rgba(66, 255, 105, 0.42);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 20px 62px rgba(0, 0, 0, 0.34);
  --radius-xs: 14px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --pill: 999px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --focus: 0 0 0 4px rgba(66, 255, 105, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(900px 520px at 8% -4%, rgba(0, 201, 47, 0.2), transparent 66%),
    radial-gradient(740px 500px at 94% 24%, rgba(66, 255, 105, 0.08), transparent 68%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 46%, var(--bg));
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

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

button,
input,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  min-width: 0;
  margin: 0;
}

h1,
h2,
h3 {
  color: #fff;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(27px, 4vw, 42px);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(20px, 2.3vw, 27px);
  letter-spacing: -0.018em;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.site-shell {
  width: min(100%, calc(var(--page-max) + (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 12px var(--gutter) 40px;
}

.site-header {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 50;
  overflow: hidden;
  margin: 0 auto 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.118), rgba(255, 255, 255, 0.042)),
    rgba(5, 8, 6, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(200px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo,
.footer-logo {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 201, 47, 0.1), 0 16px 32px rgba(0, 201, 47, 0.18);
}

.brand-logo img,
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-name {
  overflow: hidden;
  color: #fff;
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 760;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-caption {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  min-width: 0;
  overflow: hidden;
}

.site-nav-scroll {
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav-scroll::-webkit-scrollbar {
  display: none;
}

.site-nav a,
.header-contact {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--pill);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: rgba(0, 201, 47, 0.38);
  background: rgba(0, 201, 47, 0.13);
  color: #fff;
  transform: translateY(-1px);
}

.header-contact {
  border-color: rgba(0, 201, 47, 0.5);
  background: var(--accent);
  color: #061009;
  font-weight: 780;
}

.header-contact:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

main {
  display: grid;
  gap: clamp(52px, 7vw, 88px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--accent-bright);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--muted-2);
}

.catalog-hero {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: grid;
  align-items: end;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 68px);
  background:
    linear-gradient(118deg, rgba(5, 8, 6, 0.92) 0%, rgba(5, 8, 6, 0.62) 62%, rgba(5, 8, 6, 0.78) 100%),
    var(--hero-image, linear-gradient(145deg, #152219, #07100a)) center / cover;
  box-shadow: var(--shadow);
}

.catalog-hero::before,
.catalog-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.catalog-hero::before {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
}

.catalog-hero::after {
  width: 360px;
  height: 360px;
  top: -190px;
  right: -70px;
  border-radius: 50%;
  background: rgba(66, 255, 105, 0.15);
  filter: blur(2px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-description {
  max-width: 680px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2.2vw, 21px);
}

.catalog-panel,
.content-panel,
.description-panel,
.video-panel,
.documents-panel,
.detail-summary,
.commercial-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(9, 14, 11, 0.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

.catalog-panel {
  padding: clamp(20px, 3.5vw, 34px);
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.filter-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.filter-field label,
.search-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.filter-field select,
.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.filter-field select {
  color-scheme: dark;
}

.filter-field select:hover,
.filter-field select:focus,
.search-field input:hover,
.search-field input:focus {
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.09);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.search-field {
  display: grid;
  gap: 7px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input-wrap input {
  padding-left: 44px;
}

.button,
.reset-button,
.page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  padding: 11px 17px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.1;
  text-align: center;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.button:hover,
.reset-button:hover,
.page-button:hover:not(:disabled) {
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.button-primary {
  border-color: rgba(0, 201, 47, 0.54);
  background: var(--accent);
  box-shadow: 0 18px 42px rgba(0, 201, 47, 0.22);
  color: #061009;
}

.button-primary:hover {
  background: var(--accent-bright);
}

.catalog-results {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.results-count {
  color: var(--muted);
  font-size: 14px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.equipment-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(8, 13, 10, 0.88);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: card-enter 0.55s var(--ease) both;
}

.equipment-card:hover,
.equipment-card:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.4), 0 12px 42px rgba(0, 201, 47, 0.1);
  transform: translateY(-5px);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--graphite);
  touch-action: pan-y;
}

.card-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgba(5, 8, 6, 0.72), transparent);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease), opacity 0.16s ease;
}

.card-media img.is-gallery-changing {
  opacity: 0.72;
}

.card-media img[hidden],
.gallery-main img[hidden],
.gallery-lightbox-image[hidden] {
  display: none;
}

.image-unavailable-message {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 201, 47, 0.08), transparent 46%),
    var(--graphite);
}

.card-media > .image-unavailable-message {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.gallery-main > .image-unavailable-message,
.gallery-lightbox-media > .image-unavailable-message {
  align-self: stretch;
  justify-self: stretch;
}

.card-gallery-indicator {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 8px;
  left: 10px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.card-gallery-step {
  flex: 1 1 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: background-color 0.16s ease, opacity 0.16s ease;
}

.card-gallery-step.is-active {
  background: var(--accent-bright);
}

.card-gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.equipment-card:hover .card-media img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.04);
}

.equipment-grid .card-content {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.equipment-grid .equipment-card h3 {
  min-height: 3.36em;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.12;
}

.equipment-grid .equipment-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.equipment-grid .equipment-card h3 a::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  touch-action: pan-y;
}

.card-sku,
.detail-sku {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.detail-sku {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
}

.detail-sku strong {
  color: #fff;
}

.detail-region {
  display: grid;
  gap: 2px;
  margin-top: 20px;
  color: var(--ink-soft);
}

.detail-region span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.detail-region strong {
  color: #fff;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.card-price,
.detail-price {
  color: var(--accent-bright);
  font-weight: 820;
  letter-spacing: -0.025em;
}

.equipment-grid .card-price {
  min-width: 0;
  font-size: clamp(16px, 1.3vw, 20px);
  text-align: right;
  white-space: nowrap;
}

.card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.card-meta .card-sku {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.card-fact {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.card-fact dt {
  color: var(--muted-2);
  font-size: 11px;
}

.card-fact dd {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 20px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.page-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.page-indicator {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

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

.category-link {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  background:
    linear-gradient(to top, rgba(5, 8, 6, 0.96), rgba(5, 8, 6, 0.18)),
    var(--category-image) center / cover;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.category-link:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.category-link strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.gallery {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}

.gallery-main,
.gallery-thumb {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--graphite);
}

.gallery-main {
  position: relative;
  width: 100%;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  padding: clamp(8px, 1.2vw, 14px);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.075), transparent 62%),
    #080b09;
  box-shadow: var(--shadow-soft);
}

.gallery-main-image,
.gallery-main-video {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.gallery-main-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}

.gallery-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-main-image img {
  transition: opacity 0.24s var(--ease), transform 0.65s var(--ease);
}

.gallery-main-image:hover img {
  transform: scale(1.015);
}

.gallery-main:has(.gallery-main-image:focus-visible) {
  border-color: var(--accent-line);
  box-shadow: var(--focus), var(--shadow-soft);
}

.gallery-main-video {
  position: relative;
  display: grid;
  place-items: center;
}

.gallery-main-video[hidden],
.gallery-main-image[hidden],
.gallery-lightbox-image[hidden],
.gallery-lightbox-video[hidden],
.gallery-video-play[hidden] {
  display: none;
}

.gallery-main-video video {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-md) - 6px);
  background: #000;
  object-fit: contain;
}

.gallery-video-play,
.gallery-thumb-play {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(5, 8, 6, 0.78);
  color: #fff;
  line-height: 1;
}

.gallery-video-play {
  position: absolute;
  z-index: 2;
  width: 58px;
  height: 58px;
  padding: 0 0 0 4px;
  font-size: 23px;
  cursor: pointer;
}

.gallery-video-play:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

.gallery-thumbs {
  min-width: 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 8px;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline proximity;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
  touch-action: pan-x;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  border-radius: var(--pill);
  background: var(--line-strong);
}

.gallery-thumb {
  position: relative;
  flex: 0 0 clamp(94px, 11vw, 126px);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  padding: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 34px;
  height: 34px;
  padding-left: 2px;
  font-size: 13px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.gallery-thumb:hover,
.gallery-thumb[aria-current="true"] {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 2px rgba(66, 255, 105, 0.18);
  transform: translateY(-2px);
}

html.gallery-lightbox-open,
body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gallery-lightbox-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 48px;
}

.gallery-lightbox-counter {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 720;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(20, 24, 21, 0.82);
  color: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  border-color: var(--accent-line);
  background: rgba(37, 50, 40, 0.94);
}

.gallery-lightbox-close {
  width: 46px;
  height: 46px;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.gallery-lightbox-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 10px 74px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-lightbox-media {
  display: contents;
}

.gallery-lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 22px 60px rgba(0, 0, 0, 0.48));
}

.gallery-lightbox-video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: #000;
  object-fit: contain;
  filter: drop-shadow(0 22px 60px rgba(0, 0, 0, 0.48));
}

.gallery-lightbox-nav {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 52px;
  height: 52px;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-lightbox-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.gallery-lightbox-prev {
  left: 8px;
}

.gallery-lightbox-next {
  right: 8px;
}

.gallery-lightbox-thumbs {
  min-width: 0;
  display: flex;
  justify-content: safe center;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 12px 2px 2px;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline proximity;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
  touch-action: pan-x;
}

.gallery-lightbox-thumb {
  position: relative;
  flex: 0 0 82px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0;
  background: #101412;
  opacity: 0.68;
  scroll-snap-align: center;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.gallery-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-lightbox-thumb:hover,
.gallery-lightbox-thumb[aria-current="true"] {
  border-color: var(--accent-bright);
  opacity: 1;
  transform: translateY(-2px);
}

@media (min-width: 681px) {
  .gallery-lightbox {
    grid-template-rows: var(--gallery-lightbox-rail-size, auto) minmax(0, 1fr) var(--gallery-lightbox-rail-size, auto);
  }

  .gallery-lightbox-stage {
    overflow: hidden;
  }

  .gallery-lightbox-media {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
  }

  .gallery-lightbox-image {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
  }

  .gallery-lightbox-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: auto;
  }
}

.detail-aside {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(25px, 4vw, 42px);
}

.detail-summary h1 {
  font-size: clamp(32px, 4vw, 50px);
}

.detail-price {
  margin-top: 10px;
  font-size: clamp(28px, 3.8vw, 42px);
}

.detail-summary .button {
  align-self: flex-start;
}

.detail-body {
  min-width: 0;
  display: block;
}

.description-panel,
.video-panel,
.documents-panel,
.commercial-panel {
  padding: clamp(24px, 4vw, 42px);
}

.description-copy {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 17px;
}

.video-panel {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
}

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

.equipment-video {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
}

.equipment-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020403;
  object-fit: contain;
}

.equipment-video p {
  overflow: hidden;
  padding: 11px 13px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-video-error {
  padding: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

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

.documents-panel {
  display: grid;
  gap: 24px;
}

.equipment-document-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.equipment-document {
  min-width: 0;
}

.equipment-document a {
  min-width: 0;
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.equipment-document a:hover,
.equipment-document a:focus-visible {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.equipment-document span {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 720;
}

.equipment-document small {
  color: var(--muted);
}

.commercial-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-color: rgba(66, 255, 105, 0.26);
  background:
    radial-gradient(520px 220px at 100% 50%, rgba(0, 201, 47, 0.2), transparent 72%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(9, 14, 11, 0.9);
}

.commercial-panel p {
  max-width: 660px;
  margin-top: 10px;
  color: var(--muted);
}

.commercial-panel .button {
  min-height: 58px;
  padding-inline: 24px;
  font-size: 16px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 28px;
  align-items: center;
  margin-top: clamp(62px, 8vw, 96px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.footer-copy {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
}

.footer-link:hover {
  color: var(--accent-bright);
}

[hidden] {
  display: none !important;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1279px) {
  .equipment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 1000px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-summary {
    min-height: 0;
  }
}

@media (max-width: 899px) {
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-nav-scroll {
    justify-content: flex-start;
  }

  .category-links {
    grid-template-columns: 1fr;
  }

  .category-link {
    min-height: 190px;
  }

  .commercial-panel {
    grid-template-columns: 1fr;
  }

  .commercial-panel .button {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 66px;
  }

  .equipment-video-grid {
    grid-template-columns: 1fr;
  }

  .site-shell {
    padding-inline: 14px;
  }

  .site-header {
    border-radius: 20px;
  }

  .brand-caption,
  .header-contact {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .site-nav {
    grid-column: auto;
    grid-row: auto;
  }

  .site-nav a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .catalog-hero {
    min-height: 330px;
    border-radius: 24px;
  }

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

  .filters {
    grid-template-columns: 1fr;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .reset-button {
    justify-self: start;
  }

  .results-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-main {
    padding: 6px;
  }

  .gallery-thumbs {
    gap: 8px;
    padding-bottom: 6px;
  }

  .gallery-thumb {
    flex-basis: 84px;
  }

  .detail-aside {
    gap: 14px;
  }

  .detail-summary {
    min-height: 0;
  }

  .detail-summary,
  .description-panel {
    padding: 22px;
  }

  .detail-summary .button {
    width: 100%;
  }

  .gallery-lightbox {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .gallery-lightbox-toolbar {
    min-height: 44px;
  }

  .gallery-lightbox-close {
    width: 42px;
    height: 42px;
  }

  .gallery-lightbox-stage {
    padding: 6px 48px;
  }

  .gallery-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .gallery-lightbox-prev {
    left: 0;
  }

  .gallery-lightbox-next {
    right: 0;
  }

  .gallery-lightbox-thumbs {
    justify-content: flex-start;
    gap: 8px;
    padding-top: 8px;
  }

  .gallery-lightbox-thumb {
    flex-basis: 70px;
  }

  .commercial-panel .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    justify-items: start;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 599px) {
  .catalog-panel[data-catalog] {
    padding: 12px;
    border-radius: var(--radius-sm);
  }

  .equipment-grid {
    gap: 10px;
  }

  .equipment-grid .equipment-card {
    border-radius: var(--radius-xs);
  }

  .equipment-grid .card-media {
    aspect-ratio: 4 / 3;
  }

  .equipment-grid .card-gallery-indicator {
    right: 6px;
    bottom: 6px;
    left: 6px;
    gap: 3px;
  }

  .equipment-grid .card-gallery-step {
    height: 2px;
  }

  .equipment-grid .card-content {
    gap: 8px;
    padding: 10px;
  }

  .equipment-grid .equipment-card h3 {
    min-height: 3.48em;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.16;
  }

  .equipment-grid .card-sku {
    font-size: clamp(8px, 2.6vw, 10px);
    letter-spacing: 0;
    line-height: 1.25;
  }

  .equipment-grid .card-price {
    font-size: clamp(10px, 3.2vw, 15px);
    letter-spacing: -0.05em;
    line-height: 1.15;
    white-space: nowrap;
  }

  .equipment-grid .card-meta {
    gap: 4px;
    padding-top: 6px;
  }

  .equipment-grid .card-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .equipment-grid .card-fact {
    padding-top: 6px;
  }

  .equipment-grid .card-fact dt {
    font-size: 9px;
    line-height: 1.25;
  }

  .equipment-grid .card-fact dd {
    display: -webkit-box;
    overflow: hidden;
    height: 2.6em;
    margin-top: 1px;
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
