/* ==========================================================================
   Allied Devices - core stylesheet
   Barlow (headings) and Barlow Condensed (labels/numerals) · Inter (body)
   Deep navy + electric blue, squared-off industrial feel
   ========================================================================== */

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

:root {
  /* Brand */
  --navy:       #0a1628;
  --navy-mid:   #10243f;
  --navy-soft:  #1c3b61;
  --accent:      #4da3ff;   /* bright blue: text/fills on dark */
  --accent-lt:   #8cc4ff;
  --accent-dk:   #1d5fd1;   /* accent text on light backgrounds */
  --blue:       #0a53b2;   /* from the ADS wordmark */

  /* Neutrals */
  --paper:      #ffffff;
  --shell:      #f4f7fb;
  --shell-2:    #eceff4;
  --line:       #dde3ea;
  --line-soft:  #e8ecf1;
  --ink:        #15212f;
  --ink-mid:    #44586e;
  --ink-soft:   #6b7f94;

  /* Type */
  /* One family, Archivo, used at two widths: extended for display, normal for reading */
  --font-head:  'Archivo', system-ui, sans-serif;
  --font-cond:  'Archivo', system-ui, sans-serif;
  --font-body:  'Archivo', system-ui, sans-serif;

  /* Shape - deliberately tight. Industrial, not consumer-app. */
  --r-sm: 3px;
  --r:    5px;
  --r-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(10,22,40,.06), 0 2px 8px rgba(10,22,40,.04);
  --shadow:    0 2px 4px rgba(10,22,40,.06), 0 8px 24px rgba(10,22,40,.07);
  --shadow-lg: 0 8px 16px rgba(10,22,40,.08), 0 24px 56px rgba(10,22,40,.12);

  --nav-h: 72px;
  --ease:  cubic-bezier(.4, 0, .2, 1);
  --t:     .22s var(--ease);

  --wrap: 1180px;
}

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

::selection { background: var(--accent); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 2000;
  background: var(--accent); color: var(--navy);
  padding: 10px 18px; border-radius: var(--r);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  transition: top var(--t);
}
.skip-link:focus { top: 14px; }

/* The hidden attribute must beat component display rules */
[hidden] { display: none !important; }

/* ── Layout utilities ───────────────────────────────────────────── */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section   { padding: 92px 0; }
.section--sm  { padding: 60px 0; }
.section--tint{ background: var(--shell); }
.section--dark{ background: var(--navy); color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--navy);
  text-wrap: balance;
}
h1, h2 { font-stretch: 118%; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p  { color: var(--ink-mid); }

.lead { font-size: 1.1rem; line-height: 1.75; color: var(--ink-mid); }

/* Small uppercase label. Condensed face keeps it technical, not shouty. */
.overline {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--accent-dk);
  margin-bottom: 14px;
}
.section--dark .overline,
.page-head .overline { color: var(--accent); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head p  { font-size: 1.05rem; }
.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head p  { color: rgba(255,255,255,.66); }

/* Thin accent rule used under headings in dark sections */
.rule {
  width: 52px; height: 3px; background: var(--accent);
  margin-bottom: 22px; border-radius: 2px;
}
.section-head--center .rule { margin-inline: auto; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border-radius: var(--r);
  font-family: var(--font-head);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: background var(--t), border-color var(--t), color var(--t),
              transform var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; transition: transform var(--t); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--sm { padding: 9px 18px; font-size: .875rem; }

.btn--accent { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-lt); border-color: var(--accent-lt); box-shadow: 0 4px 16px rgba(77,163,255,.32); }

.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.26); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); background: var(--shell); }

/* ── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(10,22,40,.55);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10,22,40,.94);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 32px rgba(0,0,0,.28);
}

.nav__inner {
  max-width: var(--wrap); height: 100%; margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* The wordmark file is blue-on-black, so `screen` drops the black box
   and leaves just the lettering over the navy. */
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand__mark {
  height: 21px; width: auto;
  mix-blend-mode: screen;
  filter: brightness(1.7) saturate(.55);
}
.brand__sub {
  font-family: var(--font-cond);
  font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: rgba(255,255,255,.5);
}
.footer .brand__sub { color: rgba(255,255,255,.4); }

.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative;
  display: block; padding: 9px 15px;
  font-family: var(--font-head); font-size: .94rem; font-weight: 500;
  color: rgba(255,255,255,.74);
  border-radius: var(--r-sm);
  transition: color var(--t);
}
.nav__link::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; font-weight: 600; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 10px; margin-right: -10px;
}
.nav__toggle span {
  display: block; width: 23px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page head (inner pages) ────────────────────────────────────── */
.page-head {
  position: relative;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-mid) 70%, #0f3158 100%);
  color: #fff;
  padding: calc(var(--nav-h) + 78px) 0 72px;
  overflow: hidden;
}
.page-head::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: 16px; }
.page-head p  { color: rgba(255,255,255,.72); font-size: 1.08rem; max-width: 620px; }
.page-head a  { color: var(--accent); border-bottom: 1px solid rgba(77,163,255,.4); }
.page-head a:hover { color: var(--accent-lt); border-color: currentColor; }

/* Breadcrumb */
.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 20px;
}
.crumbs a { color: rgba(255,255,255,.72); border: 0; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .45; }

/* ── Cards (generic) ────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card:hover { border-color: #c9d3de; box-shadow: var(--shadow); transform: translateY(-3px); }

.icon-plate {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: rgba(77,163,255,.12);
  color: var(--accent-dk);
  transition: background var(--t), color var(--t);
}
.card:hover .icon-plate { background: var(--accent); color: var(--navy); }

/* ── Product grid ───────────────────────────────────────────────── */
.toolbar {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  margin-bottom: 22px;
}
.search-wrap { position: relative; }
.search-wrap > svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--ink-soft); pointer-events: none;
}
.search-input, .select-input {
  width: 100%; padding: 13px 16px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-size: .95rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.search-input { padding-left: 46px; }
.search-input:focus, .select-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77,163,255,.15);
}
.select-input { min-width: 230px; cursor: pointer; }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-family: var(--font-head); font-size: .875rem; font-weight: 500;
  color: var(--ink-mid);
  transition: all var(--t);
}
.chip:hover { border-color: var(--navy-soft); color: var(--navy); }
.chip.is-active {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.chip__n {
  font-family: var(--font-cond); font-weight: 700; font-size: .85rem;
  opacity: .55;
}

.result-line {
  font-size: .9rem; color: var(--ink-soft); margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.result-line b { color: var(--ink); font-weight: 600; }
.link-reset {
  color: var(--accent-dk); font-weight: 600; font-size: .875rem;
  border-bottom: 1px solid currentColor;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.prod-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.prod-card:hover {
  border-color: #c5d0dc;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* Photo slot: contain, so no crop whatever shape the photo is */
.prod-card__media {
  aspect-ratio: 4 / 3;
  background: var(--shell-2);
  border-bottom: 1px solid var(--line-soft);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.prod-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18px;
}

/* Placeholder plate shown until real photos arrive */
.prod-card__plate {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 9px,
      rgba(10,22,40,.022) 9px 18px
    ),
    var(--shell-2);
  color: var(--ink-soft);
}
.prod-card__plate svg { color: var(--navy-soft); opacity: .4; }
.prod-card__plate span {
  font-family: var(--font-cond);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-soft); opacity: .72;
}

.prod-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prod-card__cat {
  font-family: var(--font-cond);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .01em;
  color: var(--accent-dk); margin-bottom: 7px;
}
.prod-card__name {
  font-size: 1.08rem; font-weight: 700; color: var(--navy);
  margin-bottom: 9px; line-height: 1.28;
}
.prod-card__desc {
  font-size: .9rem; line-height: 1.62; color: var(--ink-mid);
  margin-bottom: 16px; flex: 1;
}
.prod-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--shell);
  border: 1px solid var(--line-soft);
  color: var(--ink-mid);
  font-size: .76rem;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--shell);
}
.empty h3 { margin-bottom: 8px; }
.empty p { margin-bottom: 18px; }

/* ── Stats ──────────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 34px 26px; text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__v {
  display: block;
  font-family: var(--font-cond);
  font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.2rem);
  font-weight: 700; line-height: 1;
  color: var(--navy);
  letter-spacing: -.01em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat__l {
  font-family: var(--font-cond);
  font-size: .9rem; font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-soft);
}
.section--dark .stats { border-color: rgba(255,255,255,.12); }
.section--dark .stat  { border-color: rgba(255,255,255,.12); }
.section--dark .stat__v { color: var(--accent); }
.section--dark .stat__l { color: rgba(255,255,255,.55); }

/* ── Two-column feature block ───────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split--media-right > .split__media { order: 2; }
.split__media { position: relative; }
.split__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--r-lg);
}
.split__media::after {
  content: ''; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid rgba(77,163,255,.3);
  border-radius: var(--r-lg);
  z-index: -1;
}

.feat-list { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.feat-list li { display: flex; gap: 15px; align-items: flex-start; }
.feat-list__tick {
  width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(77,163,255,.16);
  color: var(--accent-dk);
}
.feat-list strong {
  display: block;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  color: var(--navy); margin-bottom: 2px;
}
.feat-list p { font-size: .92rem; margin: 0; }

/* ── Accordion (FAQ) ────────────────────────────────────────────── */
.acc { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 4px; text-align: left;
  font-family: var(--font-head); font-size: 1.04rem; font-weight: 600;
  color: var(--navy);
  transition: color var(--t);
}
.acc__btn:hover { color: var(--accent-dk); }
.acc__btn svg { flex-shrink: 0; color: var(--ink-soft); transition: transform var(--t); }
.acc__btn[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--accent-dk); }
.acc__panel {
  overflow: hidden;
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { padding: 0 4px 24px; font-size: .96rem; max-width: 70ch; }

/* ── Contact ────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }

.contact-list { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }
.contact-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row__ico {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: rgba(77,163,255,.12); color: var(--accent-dk);
}
.contact-row h3 {
  font-family: var(--font-cond);
  font-size: .88rem; font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink-soft); margin-bottom: 3px;
}
.contact-row p, .contact-row a { font-size: 1rem; color: var(--ink); }
.contact-row a:hover { color: var(--accent-dk); }

.note-box {
  background: var(--shell);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-top: 32px;
}
.note-box h3 { font-size: 1rem; margin-bottom: 12px; }
.note-box ul { display: flex; flex-direction: column; gap: 8px; }
.note-box li {
  display: flex; gap: 10px; font-size: .92rem; color: var(--ink-mid);
}
.note-box li::before { content: ''; width: 6px; height: 6px; margin-top: .6em; border-radius: 1px; background: var(--accent); flex-shrink: 0; }

.panel {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px;
}
.panel h2 { margin-bottom: 10px; }

/* Forms */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: .875rem; font-weight: 500;
  color: var(--ink); margin-bottom: 7px;
}
.field .req { color: var(--accent-dk); }
.input, .textarea {
  width: 100%; padding: 12px 15px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-size: .95rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.input:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77,163,255,.15);
}
.textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field__err { display: none; color: #c2302a; font-size: .82rem; margin-top: 6px; }
.field.has-error .input, .field.has-error .textarea { border-color: #c2302a; }
.field.has-error .field__err { display: block; }

.alert { padding: 15px 18px; border-radius: var(--r); font-size: .92rem; margin-bottom: 22px; }
.alert--ok   { background: #effaf2; border: 1px solid #a9ddb9; color: #1c6b36; }
.alert--err  { background: #fdf2f2; border: 1px solid #f0b4b1; color: #a52925; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.62); padding-top: 72px; }
.footer__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 0 24px 52px;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: 48px;
}
.footer__brand p { font-size: .9rem; color: rgba(255,255,255,.52); margin-top: 16px; line-height: 1.7; }
.footer__tagline {
  font-family: var(--font-cond);
  font-size: .9rem !important; font-weight: 600;
  letter-spacing: .01em;
  color: var(--accent) !important;
  margin-top: 14px !important;
}
.footer__col h3 {
  font-family: var(--font-cond);
  color: #fff; font-size: .92rem; font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a, .footer__col span { font-size: .91rem; color: rgba(255,255,255,.62); transition: color var(--t); }
.footer__col a:hover { color: var(--accent); }
.footer__contact li { display: flex; gap: 11px; align-items: flex-start; line-height: 1.5; }
.footer__contact svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); opacity: .8; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: var(--wrap); margin-inline: auto;
  padding: 22px 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255,255,255,.34);
}

/* ── Back to top ────────────────────────────────────────────────── */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--navy); border-color: var(--accent); }

/* ── Scroll reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .split { gap: 44px; }
}

@media (max-width: 860px) {
  .section { padding: 68px 0; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 12px 20px 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all var(--t);
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--accent); }
  .nav__cta { margin-top: 18px; width: 100%; }

  .split, .split--media-right > .split__media { grid-template-columns: 1fr; order: 0; }
  .split__media::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .toolbar { grid-template-columns: 1fr; }
  .select-input { width: 100%; }
  .panel { padding: 28px 22px; }
  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .field-row { grid-template-columns: 1fr; }
  .page-head { padding: calc(var(--nav-h) + 54px) 0 54px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .marquee::before, .marquee::after { width: 44px; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Print ──────────────────────────────────────────────────────── */
@media print {
  .nav, .to-top, .marquee, .lightbox, .footer__bottom { display: none !important; }
  body { color: #000; }
  .page-head { background: none; color: #000; padding-top: 0; }
  .page-head h1, .page-head p { color: #000; }
}
