/* ==========================================================================
   PAK SERWIS — Industrial Packaging & Automation
   Pure CSS3 design system. No framework, no critical JS dependency.
   ========================================================================== */

:root {
  --navy-950: #070f1f;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --surface: #f8fafc;
  --white: #ffffff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: #fff7ed;
  --blue: #0284c7;
  --blue-soft: #f0f9ff;
  --green: #22c55e;
  --line: #e2e8f0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 80px -30px rgba(15, 23, 42, 0.32);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --header-height: 76px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--orange);
  color: var(--white);
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.13;
  letter-spacing: -0.025em;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-900);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  background: currentColor;
  content: "";
}

.eyebrow--light {
  color: #fdba74;
}

.section {
  padding: clamp(68px, 8vw, 112px) 0;
}

.section--white {
  background: var(--white);
}

.section--bordered {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
}

.section-head p {
  max-width: 60ch;
  margin-bottom: 4px;
  color: var(--slate-600);
  font-size: 1.04rem;
}

.section-head--wide h2 {
  max-width: 20ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--orange);
  color: var(--navy-950);
  box-shadow: 0 10px 24px -10px rgba(249, 115, 22, 0.75);
}

.btn--primary:hover {
  background: #fb923c;
  box-shadow: 0 14px 30px -10px rgba(249, 115, 22, 0.8);
}

.btn--dark {
  background: var(--navy-900);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--navy-800);
}

.btn--outline {
  border-color: var(--slate-300);
  background: transparent;
  color: var(--navy-900);
}

.btn--outline:hover {
  border-color: var(--navy-900);
  background: var(--white);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.btn--ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy-900);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--orange-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 15, 31, 0.96);
  color: var(--white);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.utility-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #050b16;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.utility-bar__inner {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.utility-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.utility-bar__item .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13);
}

.utility-bar a:hover {
  color: var(--white);
}

.navbar {
  display: flex;
  width: min(100% - 40px, 1360px);
  height: var(--header-height);
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.brand__svg {
  width: 154px;
  height: 42px;
  overflow: visible;
}

.brand:hover .brand__accent {
  fill: #fb923c;
}

.brand__accent {
  transition: fill 0.2s ease;
}

.brand__tagline {
  display: block;
  margin-top: 1px;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.main-nav {
  margin-left: auto;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  padding: 9px 10px;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.language-switch a {
  display: inline-flex;
  min-width: 30px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: var(--slate-400);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switch a:hover {
  color: var(--white);
}

.language-switch a[aria-current="true"] {
  background: var(--white);
  color: var(--navy-900);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.header-phone svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

.header-cta {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--navy-950);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.header-cta:hover {
  background: #fb923c;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle svg {
  width: 21px;
  height: 21px;
  margin: auto;
}

.mobile-nav {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 94px) 0 0;
  background-color: var(--navy-900);
  background-image:
    radial-gradient(circle at 92% 15%, rgba(249, 115, 22, 0.16), transparent 27%),
    radial-gradient(circle at 4% 88%, rgba(2, 132, 199, 0.18), transparent 30%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: -100px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.hero__copy {
  padding-bottom: 54px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 11px;
  border: 1px solid rgba(253, 186, 116, 0.28);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  color: #fdba74;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
  content: "";
}

.hero h1 {
  max-width: 17ch;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 5.4vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero h1 .accent {
  color: #fdba74;
}

.hero__lead {
  max-width: 65ch;
  margin-bottom: 30px;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__micro {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  margin: 26px 0 0;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  line-height: 1.4;
  list-style: none;
}

.hero__micro li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__micro svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

/* Hero visual / technical panel */
.hero-visual {
  position: relative;
  padding-bottom: 54px;
}

.tech-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
  box-shadow: 0 38px 80px -30px rgba(0, 0, 0, 0.7);
}

.tech-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0 32%, rgba(255, 255, 255, 0.1) 32% 100%);
  content: "";
}

.tech-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-card__lights {
  display: flex;
  gap: 5px;
}

.tech-card__lights i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #334155;
}

.tech-card__lights i:first-child {
  background: var(--orange);
}

.tech-card__lights i:nth-child(2) {
  background: #eab308;
}

.tech-card__lights i:nth-child(3) {
  background: var(--green);
}

.tech-card__body {
  padding: 24px 20px 20px;
}

.tech-card__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.tech-card__heading strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.3;
}

.tech-card__heading span {
  display: block;
  margin-top: 4px;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #86efac;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  white-space: nowrap;
}

.signal::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.machine-graphic {
  position: relative;
  overflow: hidden;
  min-height: 218px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background-color: #0b1425;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.machine-graphic__label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(7, 15, 31, 0.82);
  color: #fdba74;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.machine-graphic__photo-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--slate-300);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  line-height: 1.45;
}

.conveyor {
  position: absolute;
  top: 48%;
  right: 13%;
  left: 13%;
  height: 38px;
  border: 2px solid #475569;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #1e293b 0 16px, #0f172a 16px 24px);
  transform: skewY(-4deg);
}

.conveyor::before,
.conveyor::after {
  position: absolute;
  top: -6px;
  width: 12px;
  height: 46px;
  border: 2px solid #64748b;
  border-radius: 50%;
  background: #1e293b;
  content: "";
}

.conveyor::before {
  left: -8px;
}

.conveyor::after {
  right: -8px;
}

.sensor-line {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 1px;
  height: 31%;
  background: linear-gradient(var(--orange), transparent);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.65);
}

.sensor-node {
  position: absolute;
  top: 12%;
  left: calc(50% - 5px);
  width: 11px;
  height: 11px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.18);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

.detail-box {
  position: absolute;
  top: 35%;
  left: 27%;
  width: 38px;
  height: 28px;
  border: 1px solid #94a3b8;
  border-radius: 2px;
  background: linear-gradient(145deg, #334155, #1e293b);
  box-shadow: 16px 7px 0 -6px #475569, 30px 12px 0 -8px #475569;
  transform: rotate(-4deg);
}

.tech-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.tech-card__metrics div {
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.tech-card__metrics dt {
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tech-card__metrics dd {
  margin: 3px 0 0;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.tech-card__badge {
  position: absolute;
  right: -16px;
  bottom: 80px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 190px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--orange);
  color: var(--navy-950);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.tech-card__badge svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

/* Trust strip */
.trust-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 15, 31, 0.42);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  gap: 15px;
  padding: 25px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.trust-item:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.trust-item__number {
  flex: 0 0 auto;
  color: #fdba74;
  font-family: var(--font-mono);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.2;
}

.trust-item p {
  margin: 0;
  color: var(--slate-400);
  font-size: 0.78rem;
  line-height: 1.5;
}

.trust-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--white);
  font-size: 0.81rem;
  font-weight: 650;
}

/* ---------- Cards & content blocks ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.card--lift {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card--lift:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.icon-box {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.icon-box svg {
  width: 21px;
  height: 21px;
}

.icon-box--blue {
  border-color: #bae6fd;
  background: var(--blue-soft);
  color: var(--blue);
}

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

.service-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.service-card h3 {
  margin: 20px 0 10px;
  font-size: 1.08rem;
  font-weight: 750;
}

.service-card p {
  color: var(--slate-600);
  font-size: 0.9rem;
  line-height: 1.7;
}

.service-card ul {
  padding: 18px 0 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 17px;
  margin-top: 9px;
  color: var(--slate-600);
  font-size: 0.82rem;
  line-height: 1.5;
}

.service-card li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.service-card--featured {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(180deg, var(--orange-soft), var(--white) 45%);
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 22px;
}

/* Photo placeholders */
.media-placeholder {
  position: relative;
  margin: 0;
  display: flex;
  min-height: 320px;
  overflow: hidden;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #e9eef5;
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.78)),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  box-shadow: var(--shadow-md);
}

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

.media-placeholder::before {
  top: 22px;
  right: 22px;
  width: 72px;
  height: 72px;
  border-top: 1px solid rgba(249, 115, 22, 0.7);
  border-right: 1px solid rgba(249, 115, 22, 0.7);
}

.media-placeholder::after {
  top: 50%;
  left: 50%;
  width: 46%;
  height: 46%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.media-placeholder__graphic {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 58%;
  height: 40%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.12) 0 12px, rgba(148, 163, 184, 0.03) 12px 24px);
  transform: translateX(-50%) skewY(-3deg);
}

.media-placeholder__graphic::before,
.media-placeholder__graphic::after {
  position: absolute;
  top: -16px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: var(--navy-900);
  content: "";
}

.media-placeholder__graphic::before {
  left: 12%;
}

.media-placeholder__graphic::after {
  right: 12%;
}

.media-placeholder__label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 17px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 15, 31, 0.72);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  line-height: 1.55;
}

.media-placeholder__tag {
  display: block;
  margin-bottom: 4px;
  color: #fdba74;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.media-placeholder--wide {
  min-height: 390px;
}

/* Technical list */
.tech-specs {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.tech-specs li {
  display: grid;
  grid-template-columns: minmax(115px, 0.35fr) 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.tech-specs span:first-child {
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tech-specs span:last-child {
  color: var(--navy-800);
}

/* Production section */
.production {
  background:
    linear-gradient(180deg, rgba(241, 245, 249, 0.5), rgba(248, 250, 252, 0) 45%),
    var(--surface);
}

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

.production-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.production-card .media-placeholder {
  min-height: 190px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.production-card .media-placeholder__label {
  padding: 12px 15px;
  font-size: 0.61rem;
}

.production-card__body {
  padding: 23px;
}

.production-card__body h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.production-card__body p {
  color: var(--slate-600);
  font-size: 0.86rem;
  line-height: 1.7;
}

.production-card__body ul {
  padding: 15px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.production-card__body li {
  display: flex;
  gap: 8px;
  margin-top: 7px;
  color: var(--slate-600);
  font-size: 0.8rem;
  line-height: 1.45;
}

.production-card__body li::before {
  flex: 0 0 auto;
  color: var(--orange-dark);
  font-weight: 800;
  content: "→";
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.workflow__step {
  position: relative;
  padding: 19px 17px 19px 25px;
  border-right: 1px solid var(--line);
}

.workflow__step:last-child {
  border-right: 0;
}

.workflow__step span {
  display: block;
  margin-bottom: 6px;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.workflow__step strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
}

.workflow__step::after {
  position: absolute;
  top: 50%;
  right: -5px;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  background: var(--white);
  content: "";
  transform: rotate(45deg) translateY(-50%);
}

.workflow__step:last-child::after {
  display: none;
}

/* Automation section */
.automation {
  background: var(--white);
}

.automation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.automation-copy h2 {
  max-width: 18ch;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.automation-copy > p {
  max-width: 62ch;
  margin-bottom: 30px;
  color: var(--slate-600);
}

.automation-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.automation-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 23px;
  background: var(--white);
}

.automation-item__num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--navy-900);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.automation-item h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.automation-item p {
  color: var(--slate-600);
  font-size: 0.86rem;
  line-height: 1.66;
}

.automation-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.automation-panel__head {
  padding: 22px 23px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
}

.automation-panel__head span {
  color: #fdba74;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.automation-panel__head h3 {
  margin: 6px 0 0;
  font-size: 1.22rem;
}

.protocol-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.protocol-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 23px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.protocol-list li:last-child {
  border-bottom: 0;
}

.protocol-list span {
  color: var(--slate-400);
}

.protocol-list strong {
  color: #bae6fd;
  font-weight: 600;
}

.automation-panel__note {
  padding: 20px 23px;
  border-top: 1px solid var(--line-dark);
  background: rgba(249, 115, 22, 0.08);
  color: var(--slate-300);
  font-size: 0.78rem;
  line-height: 1.65;
}

.automation-panel__note strong {
  color: #fdba74;
}

/* OEM */
.oem {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-950);
  background-image:
    radial-gradient(circle at 92% 3%, rgba(249, 115, 22, 0.22), transparent 25%),
    radial-gradient(circle at 1% 98%, rgba(2, 132, 199, 0.18), transparent 25%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 52px 52px, 52px 52px;
  color: var(--white);
}

.oem::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--orange);
  content: "";
}

.oem__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 52px);
}

.oem h2 {
  max-width: 17ch;
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4.5vw, 3.8rem);
  font-weight: 800;
}

.oem__top p {
  margin-bottom: 4px;
  color: #cbd5e1;
  font-size: 1.02rem;
}

.oem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.oem-card {
  position: relative;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(4px);
}

.oem-card__num {
  display: block;
  margin-bottom: 15px;
  color: #fdba74;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.oem-card h3 {
  margin-bottom: 9px;
  font-size: 1.03rem;
}

.oem-card p {
  color: #cbd5e1;
  font-size: 0.87rem;
  line-height: 1.68;
}

.oem-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(249, 115, 22, 0.37);
  border-radius: var(--radius);
  background: rgba(249, 115, 22, 0.09);
}

.oem-cta p {
  max-width: 62ch;
  margin: 0;
  color: #e2e8f0;
  font-size: 0.88rem;
}

.oem-cta strong {
  color: #fdba74;
}

/* FAQ */
.faq-section {
  background: var(--surface);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.faq-intro h2 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
}

.faq-intro p {
  max-width: 44ch;
  color: var(--slate-600);
  font-size: 0.94rem;
}

.faq-intro__note {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  color: var(--slate-600);
  font-size: 0.82rem;
}

.faq-intro__note strong {
  color: var(--navy-900);
}

.faq-list {
  border-top: 1px solid var(--slate-300);
}

.faq-item {
  border-bottom: 1px solid var(--slate-300);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  color: var(--navy-900);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-300);
  border-radius: 50%;
  color: var(--orange-dark);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  content: "+";
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.faq-item[open] summary::after {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--navy-950);
  content: "−";
}

.faq-item summary:hover::after {
  border-color: var(--orange);
}

.faq-answer {
  max-width: 68ch;
  padding: 0 42px 22px 0;
  color: var(--slate-600);
  font-size: 0.88rem;
  line-height: 1.75;
}

.faq-answer p {
  margin: 0;
}

/* Contact */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: stretch;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(27px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(249, 115, 22, 0.19), transparent 35%),
    var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.contact-card h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
}

.contact-card__lead {
  margin-bottom: 30px;
  color: #cbd5e1;
  font-size: 0.94rem;
}

.contact-details {
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-details li {
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-details__label {
  display: block;
  margin-bottom: 5px;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-details a,
.contact-details address {
  color: var(--white);
  font-size: 0.93rem;
  font-style: normal;
  font-weight: 550;
  line-height: 1.55;
}

.contact-details a:hover {
  color: #fdba74;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-direct .btn {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.78rem;
}

.contact-card__coverage {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 27px;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.5;
}

.contact-card__coverage svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--orange);
}

.contact-form-wrap {
  padding: clamp(24px, 3.5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-form-wrap h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.contact-form-wrap > p {
  margin-bottom: 24px;
  color: var(--slate-600);
  font-size: 0.84rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--navy-800);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.form-field label .optional {
  color: var(--slate-500);
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy-900);
  font-size: 0.88rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.form-field textarea {
  min-height: 126px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #94a3b8;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(2, 132, 199, 0.14);
  outline-offset: 0;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 1px;
  color: var(--slate-600);
  font-size: 0.74rem;
  line-height: 1.55;
}

.form-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: var(--orange-dark);
}

.form-consent a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  grid-column: 1 / -1;
  margin-top: 4px;
}

.form-footer small {
  max-width: 32ch;
  color: var(--slate-500);
  font-size: 0.66rem;
  line-height: 1.5;
}

.form-alert {
  grid-column: 1 / -1;
  padding: 11px 13px;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-alert:empty {
  display: none;
}

.form-alert--success {
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}

.form-alert--error {
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  font-size: 0.8rem;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 0.9fr;
  gap: 34px;
  padding: 54px 0 42px;
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 17px;
  color: var(--slate-400);
  font-size: 0.8rem;
}

.footer-brand .brand {
  display: inline-flex;
}

.footer-heading {
  margin-bottom: 15px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.78rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fdba74;
}

.footer-contact address {
  margin-bottom: 12px;
  color: var(--slate-400);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.65;
}

.footer-contact a {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.73rem;
}

.footer-contact a:hover {
  color: #fdba74;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.5;
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.footer-bottom__links a:hover {
  color: var(--white);
}

.footer-lang {
  display: inline-flex;
  gap: 9px;
  color: var(--slate-400);
}

.footer-lang a:hover,
.footer-lang a[aria-current="true"] {
  color: #fdba74;
}

/* Modal / privacy page basics */
.legal-page {
  min-height: 100vh;
  background: var(--surface);
}

.legal-main {
  padding: 72px 0 100px;
}

.legal-main h1 {
  max-width: 16ch;
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.legal-main h2 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
}

.legal-main p,
.legal-main li {
  max-width: 78ch;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.legal-main ul {
  padding-left: 20px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .header-phone {
    display: none;
  }
}

@media (max-width: 1280px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
  }

  .mobile-nav {
    position: fixed;
    inset: calc(var(--header-height) + 1px) 0 0;
    z-index: 999;
    display: block;
    overflow-y: auto;
    padding: 22px 20px 34px;
    background: var(--navy-950);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav__list {
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line-dark);
    list-style: none;
  }

  .mobile-nav__list li {
    border-bottom: 1px solid var(--line-dark);
  }

  .mobile-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 3px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 650;
  }

  .mobile-nav__list a::after {
    color: var(--orange);
    content: "↗";
  }

  .mobile-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 25px;
  }

  .mobile-nav__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    align-items: center;
    margin-top: 24px;
    color: var(--slate-400);
    font-family: var(--font-mono);
    font-size: 0.72rem;
  }
}

@media (max-width: 1180px) {
  .utility-bar__inner {
    font-size: 0.61rem;
  }

  .navbar {
    gap: 10px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-actions .language-switch a {
    min-width: 33px;
    min-height: 30px;
  }

  .nav-link {
    padding-inline: 7px;
    font-size: 0.7rem;
  }

  .header-phone {
    display: none;
  }

  .header-cta {
    font-size: 0.69rem;
  }
}

@media (max-width: 1020px) {
  :root {
    --header-height: 68px;
  }

  .utility-bar {
    display: none;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
  }

  .mobile-nav {
    position: fixed;
    inset: calc(var(--header-height) + 1px) 0 0;
    z-index: 999;
    display: block;
    overflow-y: auto;
    padding: 22px 20px 34px;
    background: var(--navy-950);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav__list {
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line-dark);
    list-style: none;
  }

  .mobile-nav__list li {
    border-bottom: 1px solid var(--line-dark);
  }

  .mobile-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 3px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 650;
  }

  .mobile-nav__list a::after {
    color: var(--orange);
    content: "↗";
  }

  .mobile-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 25px;
  }

  .mobile-nav__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    align-items: center;
    margin-top: 24px;
    color: var(--slate-400);
    font-family: var(--font-mono);
    font-size: 0.72rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero__copy {
    padding-bottom: 26px;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero-visual {
    max-width: 650px;
    padding-bottom: 48px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .section-head,
  .oem__top,
  .automation-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    max-width: 20ch;
  }

  .service-grid,
  .production-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .production-card:last-child {
    grid-column: 1 / -1;
  }

  .production-card:last-child .media-placeholder {
    min-height: 240px;
  }

  .automation-panel {
    position: static;
  }

  .faq-intro h2 {
    max-width: 20ch;
  }

  .faq-intro__note {
    max-width: 600px;
  }

  .contact-card {
    min-height: 0;
  }

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

  .footer-contact {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 30px, var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 42px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__micro {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tech-card__badge {
    right: 10px;
    bottom: 68px;
  }

  .service-grid,
  .production-grid,
  .oem-grid {
    grid-template-columns: 1fr;
  }

  .production-card:last-child {
    grid-column: auto;
  }

  .split-feature {
    grid-template-columns: 1fr;
  }

  .media-placeholder--wide {
    min-height: 300px;
  }

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

  .workflow__step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow__step:last-child {
    border-bottom: 0;
  }

  .workflow__step::after {
    top: auto;
    right: 22px;
    bottom: -5px;
    transform: rotate(135deg);
  }

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

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .btn {
    width: 100%;
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    gap: 0;
  }

  .brand__tagline {
    display: none;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 1px solid rgba(255, 255, 255, 0.09);
  }

  .trust-item + .trust-item {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .hero h1 {
    font-size: clamp(2.08rem, 10vw, 3rem);
  }

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

  .tech-card__metrics {
    grid-template-columns: 1fr;
  }

  .tech-card__metrics div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .tech-card__metrics dd {
    margin-top: 0;
  }

  .tech-card__badge {
    position: static;
    max-width: none;
    margin: 12px;
  }

  .tech-card__body {
    padding-bottom: 12px;
  }

  .brand__svg {
    width: 134px;
    height: 38px;
  }

  .faq-answer {
    padding-right: 0;
  }

  .contact-card {
    padding: 25px 20px;
  }

  .contact-form-wrap {
    padding: 22px 16px;
  }
}

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

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

@media print {
  .site-header,
  .mobile-nav,
  .hero__actions,
  .contact-form-wrap,
  .oem-cta,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .oem,
  .contact-card,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1,
  .hero__lead,
  .oem h2,
  .oem__top p,
  .oem-card p,
  .contact-card h2,
  .contact-card__lead,
  .contact-details a,
  .contact-details address,
  .site-footer,
  .footer-links a,
  .footer-contact a {
    color: #000 !important;
  }
}

/* Reveal enhancement — content is visible by default when JS is unavailable. */
.reveal-ready {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}

/* Real media support inside the existing photo-frame component */
.media-placeholder--photo {
  background: #0b1425;
}

.media-placeholder--photo::before,
.media-placeholder--photo::after,
.media-placeholder--photo .media-placeholder__graphic {
  display: none;
}

.media-placeholder--photo picture,
.media-placeholder--photo .media-placeholder__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-placeholder--photo .media-placeholder__image {
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.media-placeholder--photo:hover .media-placeholder__image {
  transform: scale(1.015);
}

.media-placeholder--photo .media-placeholder__label {
  padding-top: 38px;
  border-top: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 15, 31, 0.86) 44%, rgba(7, 15, 31, 0.96) 100%);
}

.media-placeholder--photo .media-placeholder__tag {
  color: #fdba74;
}

/* ---------- Service photo gallery ---------- */
.gallery-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(241, 245, 249, 0.7), rgba(248, 250, 252, 0) 40%),
    var(--surface);
}

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

.service-gallery__card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-gallery__card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-gallery__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0b1425;
}

.service-gallery__media picture,
.service-gallery__media img {
  width: 100%;
  height: 100%;
}

.service-gallery__media img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.service-gallery__card:hover .service-gallery__media img {
  transform: scale(1.025);
}

.service-gallery__card figcaption {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 16px 18px 18px;
}

.service-gallery__label {
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.service-gallery__title {
  color: var(--navy-900);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.5;
}

.gallery-note {
  max-width: 86ch;
  margin: 20px 0 0;
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.6;
}

@media (max-width: 1020px) {
  .service-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .service-gallery {
    grid-template-columns: 1fr;
  }

  .service-gallery__media {
    aspect-ratio: 16 / 10;
  }

  .service-gallery__card figcaption {
    min-height: 0;
  }
}

/* Keep the main service photo in its native landscape proportions.
   The container adopts the image aspect ratio; object-fit never stretches the file. */
.media-placeholder--photo {
  aspect-ratio: 800 / 446;
  min-height: 0;
  height: auto;
}

.media-placeholder--photo .media-placeholder__image {
  object-fit: contain;
  object-position: center;
}

/* ==========================================================================
   Dynamic gallery + carousel (fed by /gallery-api.php)
   ========================================================================== */
section[id] {
  scroll-margin-top: 88px;
}

/* Header adjustments for the additional navigation item */
.navbar {
  width: min(100% - 40px, 1500px);
}

@media (max-width: 1500px) {
  .header-phone {
    display: none;
  }
}

@media (max-width: 1360px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
  }

  .mobile-nav {
    position: fixed;
    inset: calc(var(--header-height) + 1px) 0 0;
    z-index: 999;
    display: block;
    overflow-y: auto;
    padding: 22px 20px 34px;
    background: var(--navy-950);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav__list {
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--line-dark);
    list-style: none;
  }

  .mobile-nav__list li {
    border-bottom: 1px solid var(--line-dark);
  }

  .mobile-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 3px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 650;
  }

  .mobile-nav__list a::after {
    color: var(--orange);
    content: "↗";
  }

  .mobile-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 25px;
  }

  .mobile-nav__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    align-items: center;
    margin-top: 24px;
    color: var(--slate-400);
    font-family: var(--font-mono);
    font-size: 0.72rem;
  }
}

/* Section 01 — clean text-only service detail grid */
.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(26px, 5vw, 66px);
  align-items: start;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--white));
}

.service-detail-copy h3 {
  margin-bottom: 13px;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
}

.service-detail-copy p {
  margin-bottom: 21px;
  color: var(--slate-600);
  font-size: 0.94rem;
  line-height: 1.72;
}

.service-detail-copy .eyebrow {
  margin-bottom: 14px;
}

.service-detail-grid .tech-specs {
  border-top: 0;
}

.service-detail-grid .tech-specs li:first-child {
  padding-top: 0;
}

/* Section 02 — cards without image frames */
.production-card {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.production-card__body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(24px, 3vw, 30px);
}

.production-card__index {
  display: block;
  margin-bottom: 14px;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.production-card__body h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.production-card__body p {
  color: var(--slate-600);
  font-size: 0.88rem;
  line-height: 1.72;
}

.production-card__body ul {
  padding: 16px 0 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

/* Dark dynamic gallery */
.gallery-carousel-section {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 8vw, 112px) 0;
  background-color: var(--navy-900);
  background-image:
    radial-gradient(circle at 92% 4%, rgba(56, 189, 248, 0.17), transparent 28%),
    radial-gradient(circle at 2% 96%, rgba(249, 115, 22, 0.16), transparent 27%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 52px 52px, 52px 52px;
  color: var(--white);
}

.gallery-carousel-section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--orange), var(--blue));
  content: "";
}

.gallery-carousel__head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.gallery-carousel__head h2 {
  max-width: 17ch;
  color: var(--white);
}

.gallery-carousel__head p {
  color: #cbd5e1;
}

.gallery-shell {
  position: relative;
  min-height: 340px;
}

.gallery-loading {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.26);
  border-radius: var(--radius);
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.gallery-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(56, 189, 248, 0.25);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: gallery-spin 0.8s linear infinite;
}

@keyframes gallery-spin {
  to { transform: rotate(360deg); }
}

.gallery-empty {
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: var(--slate-300);
}

.gallery-empty__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
}

.gallery-empty__icon svg {
  width: 25px;
  height: 25px;
}

.gallery-empty strong,
.gallery-empty span {
  display: block;
}

.gallery-empty strong {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 0.92rem;
}

.gallery-empty span {
  color: var(--slate-400);
  font-size: 0.8rem;
  line-height: 1.55;
}

.gallery-noscript {
  margin: 18px 0 0;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.gallery-carousel {
  position: relative;
  outline: none;
}

.gallery-viewport {
  overflow: hidden;
  padding: 2px;
  margin: -2px;
  touch-action: pan-y;
}

.gallery-track {
  display: flex;
  gap: 18px;
  align-items: stretch;
  transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
}

.gallery-carousel[data-per-view="2"] .gallery-slide {
  flex-basis: calc((100% - 18px) / 2);
}

.gallery-carousel[data-per-view="1"] .gallery-slide {
  flex-basis: 100%;
}

.gallery-card {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--navy-800);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 24px 54px -22px rgba(0, 0, 0, 0.8);
  transform: translateY(-6px);
}

.gallery-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0b1425;
}

.gallery-card__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(7, 15, 31, 0.7));
  content: "";
  pointer-events: none;
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover .gallery-card__media img,
.gallery-card:focus-visible .gallery-card__media img {
  transform: scale(1.06);
}

.gallery-card__badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  padding: 6px 8px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 4px;
  background: rgba(7, 15, 31, 0.86);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gallery-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 19px 19px;
}

.gallery-card__meta {
  display: block;
  margin-bottom: 7px;
  color: #fdba74;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.gallery-card__title {
  display: block;
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.5;
}

.gallery-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-card__action svg {
  width: 14px;
  height: 14px;
}

.gallery-progress {
  height: 3px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.gallery-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #38bdf8);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.46);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.gallery-dot:hover,
.gallery-dot:focus-visible {
  background: #7dd3fc;
}

.gallery-dot.is-active {
  width: 30px;
  background: #38bdf8;
}

.gallery-navigation {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.gallery-counter {
  min-width: 58px;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-align: right;
}

.gallery-arrow {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.gallery-arrow:hover:not(:disabled),
.gallery-arrow:focus-visible:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(56, 189, 248, 0.1);
}

.gallery-arrow--accent {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--navy-950);
}

.gallery-arrow--accent:hover:not(:disabled),
.gallery-arrow--accent:focus-visible:not(:disabled) {
  border-color: #fb923c;
  background: #fb923c;
}

.gallery-arrow:disabled {
  opacity: 0.34;
  cursor: default;
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
}

/* Fullscreen lightbox */
body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1040px, 94vw);
  height: min(90vh, 900px);
  max-height: 92vh;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__figure {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #0b1425;
  box-shadow: 0 34px 100px -24px rgba(0, 0, 0, 0.9);
}

.gallery-lightbox__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 0;
  object-fit: contain;
  object-position: center;
  background: #050b16;
  touch-action: pan-y;
}

.gallery-lightbox__figure figcaption {
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.gallery-lightbox__badge {
  display: inline-block;
  margin-bottom: 7px;
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-lightbox__figure h3 {
  margin-bottom: 5px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.gallery-lightbox__figure p {
  max-width: 78ch;
  margin-bottom: 0;
  color: var(--slate-300);
  font-size: 0.84rem;
  line-height: 1.6;
}

.gallery-lightbox__counter {
  display: block;
  margin-top: 9px;
  color: var(--slate-500);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.gallery-lightbox__close,
.gallery-lightbox__arrow {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.86);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__arrow:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__arrow:focus-visible {
  border-color: #38bdf8;
  background: rgba(2, 132, 199, 0.38);
}

.gallery-lightbox__close {
  top: 12px;
  right: 12px;
}

.gallery-lightbox__arrow--prev {
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}

.gallery-lightbox__arrow--next {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.gallery-lightbox__close svg,
.gallery-lightbox__arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1020px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-grid .tech-specs {
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }

  .service-detail-grid .tech-specs li:first-child {
    padding-top: 15px;
  }

  .gallery-slide {
    flex-basis: calc((100% - 18px) / 2);
  }

  .gallery-lightbox__arrow--prev {
    left: 6px;
  }

  .gallery-lightbox__arrow--next {
    right: 6px;
  }
}

@media (max-width: 720px) {
  .gallery-slide {
    flex-basis: 100%;
  }

  .gallery-controls {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .gallery-navigation {
    justify-content: space-between;
  }

  .gallery-counter {
    margin-right: auto;
    text-align: left;
  }

  .gallery-card__media {
    aspect-ratio: 16 / 11;
  }

  .gallery-lightbox {
    padding: 10px;
  }

  .gallery-lightbox__dialog {
    width: 100%;
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .gallery-lightbox__figure {
    height: 100%;
  }

  .gallery-lightbox__figure figcaption {
    padding: 15px 16px 17px;
  }

  .gallery-lightbox__close {
    top: 7px;
    right: 7px;
    width: 40px;
    height: 40px;
  }

  .gallery-lightbox__arrow {
    top: auto;
    bottom: 12px;
    width: 40px;
    height: 40px;
    transform: none;
  }

  .gallery-lightbox__arrow--prev {
    left: 12px;
  }

  .gallery-lightbox__arrow--next {
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track,
  .gallery-card,
  .gallery-card__media img {
    transition-duration: 0.01ms !important;
  }

  .gallery-spinner {
    animation-duration: 0.01ms !important;
  }
}

.gallery-card__media img {
  -webkit-user-drag: none;
  user-select: none;
}
