/* ==========================================================================
   VAMing d.o.o. - dizalična tehnika
   Design system. No build step, no dependencies.
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Ink & steel */
  --ink:        #0f1319;
  --ink-2:      #161b23;
  --ink-3:      #1f2630;
  --steel-900:  #2b333f;
  --steel-700:  #48535f;
  --steel-500:  #6b7684;
  --steel-300:  #a6aeb9;
  --steel-100:  #dde1e6;
  --paper:      #f4f6f8;
  --white:      #ffffff;

  /* Wordmark colours, taken from the letterhead */
  --brand-blue: #17365d;
  --brand-red:  #880000;

  /* Signal red - carried over from the original site */
  --red:        #c8102e;
  --red-dark:   #a00d25;
  --red-soft:   rgba(200, 16, 46, 0.08);

  /* Type scale */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0:  clamp(1rem, 0.96rem + 0.19vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.38vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.72vw, 2rem);
  --step-3:  clamp(1.9rem, 1.62rem + 1.35vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.87rem + 2.6vw, 4.3rem);

  /* Space */
  --gap-xs: 0.5rem;
  --gap-s:  1rem;
  --gap-m:  1.75rem;
  --gap-l:  3rem;
  --gap-xl: 5rem;
  --gap-2xl: 8rem;

  --container: 1240px;
  --radius: 3px;
  --shadow-s: 0 1px 2px rgba(15, 19, 25, 0.06), 0 2px 8px rgba(15, 19, 25, 0.04);
  --shadow-m: 0 2px 6px rgba(15, 19, 25, 0.08), 0 12px 32px rgba(15, 19, 25, 0.10);
  --shadow-l: 0 8px 24px rgba(15, 19, 25, 0.12), 0 32px 64px rgba(15, 19, 25, 0.16);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base ----------------------------------------------------------------- */
body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--steel-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: var(--step-4); letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

a { color: var(--red); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--red-dark); }

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

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

/* --- Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3.5rem, 8vw, var(--gap-2xl)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--steel-300); }
.section--ink h2, .section--ink h3 { color: var(--white); }

.stack > * + * { margin-top: var(--gap-s); }
/* The hidden attribute must beat component display rules (.btn is inline-flex). */
[hidden] { display: none !important; }

.center { text-align: center; }
.measure { max-width: 68ch; }
.measure-narrow { max-width: 54ch; }
.mx-auto { margin-inline: auto; }

/* Eyebrow label - small caps with a red tick */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--gap-s);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}
.section--ink .eyebrow { color: #ff5a72; }
.section--ink .eyebrow::before { background: #ff5a72; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--steel-700);
}
.section--ink .lede { color: var(--steel-300); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-m);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--steel-100);
}
.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn--light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--light:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* --- Header --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--steel-100);
  transition: box-shadow 0.25s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-s); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-m);
  min-height: 76px;
}

/* Wordmark: VAM in brand blue, ing italic in brand red - as on the letterhead */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--brand-blue);
  flex-shrink: 0;
}
.logo:hover { color: var(--brand-blue); }
.logo__mark {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.logo__mark em { font-style: italic; color: var(--brand-red); }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--steel-700);
  border-radius: var(--radius);
  transition: all 0.16s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--paper); }
.nav__link.is-active { color: var(--ink); font-weight: 700; }
.nav__link.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--red);
  margin-top: 3px;
}

.header__cta { display: flex; align-items: center; gap: var(--gap-s); }
.header__phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}
.header__phone svg { color: var(--red); flex-shrink: 0; }
.header__phone:hover { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  padding: 0.55rem;
  cursor: pointer;
  color: var(--ink);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: grayscale(30%) contrast(1.05);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, var(--ink) 8%, rgba(15, 19, 25, 0.82) 42%, rgba(15, 19, 25, 0.35) 100%),
    linear-gradient(to top, var(--ink) 2%, transparent 40%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4.5rem, 13vw, 9.5rem);
  max-width: 44rem;
}
.hero h1 { color: var(--white); margin-bottom: var(--gap-m); }
.hero h1 em {
  font-style: normal;
  color: var(--red);
  /* keep the red word legible against photography */
  text-shadow: 0 1px 20px rgba(15, 19, 25, 0.6);
}
.hero__lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40rem;
  margin-bottom: var(--gap-l);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--gap-s); }

/* Stat strip riding the bottom of the hero */
.stats {
  position: relative;
  z-index: 2;
  background: var(--ink-3);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: var(--gap-m) var(--gap-s);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}
.stat:first-child { border-left: 0; }
.stat__num {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
}
.stat__num span { color: var(--red); }
.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-500);
  font-weight: 600;
}

/* --- Section headings ----------------------------------------------------- */
.section-head { margin-bottom: var(--gap-l); }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-m);
  flex-wrap: wrap;
}
.section-head p { margin-top: var(--gap-s); }

/* --- Cards ---------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap-m); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  padding: var(--gap-m);
  transition: all 0.22s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--steel-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}
.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
  border-radius: var(--radius);
  margin-bottom: var(--gap-s);
  flex-shrink: 0;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.card p { color: var(--steel-700); font-size: 0.97rem; }
.card__link {
  margin-top: auto;
  padding-top: var(--gap-s);
  font-weight: 650;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Whole-card click target without nesting interactive elements */
.card--linked .card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* --- Product table -------------------------------------------------------- */
.prod-group { margin-bottom: var(--gap-xl); scroll-margin-top: 100px; }
.prod-group__head {
  display: flex;
  align-items: baseline;
  gap: var(--gap-s);
  padding-bottom: var(--gap-s);
  margin-bottom: var(--gap-m);
  border-bottom: 2px solid var(--ink);
}
.prod-group__head h3 { font-size: var(--step-2); }
.prod-group__count {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--steel-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prod {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gap-s) var(--gap-m);
  align-items: start;
  padding: var(--gap-s) 0;
  border-bottom: 1px solid var(--steel-100);
}
.prod:last-child { border-bottom: 0; }
.prod__name { font-weight: 650; color: var(--ink); font-size: 1.02rem; }
.prod__desc { color: var(--steel-700); font-size: 0.95rem; margin-top: 0.15rem; }
.prod__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.spec {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  background: var(--paper);
  border: 1px solid var(--steel-100);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel-900);
  white-space: nowrap;
}
.spec b { color: var(--red); font-weight: 700; }

/* --- Feature split -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
}
.split__body h2 { margin-bottom: var(--gap-s); }

.checklist { list-style: none; padding: 0; margin-top: var(--gap-m); }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
  color: var(--steel-700);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 11px;
  height: 11px;
  border: 2px solid var(--red);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translateY(-2px);
}
.section--ink .checklist li { color: var(--steel-300); }

/* --- Gallery -------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-s);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); opacity: 0.8; }
.gallery__cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(15, 19, 25, 0.92), transparent);
  color: var(--white);
  font-size: 0.87rem;
  font-weight: 550;
  line-height: 1.4;
  text-align: left;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 12, 16, 0.95);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
}
.lightbox__cap {
  color: var(--steel-300);
  text-align: center;
  margin-top: var(--gap-s);
  font-size: 0.95rem;
}
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background 0.18s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }

/* --- Reference list ------------------------------------------------------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--steel-100);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.ref {
  background: var(--white);
  padding: var(--gap-s) var(--gap-m);
  display: flex;
  align-items: center;
  min-height: 84px;
  font-weight: 600;
  color: var(--steel-900);
  font-size: 0.97rem;
  transition: background 0.18s var(--ease);
}
.ref:hover { background: var(--paper); }

/* --- Contact -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.detail-list { display: grid; gap: var(--gap-m); }
.detail {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: var(--gap-s);
  align-items: start;
}
.detail__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
  border-radius: var(--radius);
}
.detail__label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 0.2rem;
}
.detail__value { font-weight: 600; color: var(--ink); line-height: 1.5; }
.detail__value a { font-weight: 650; }
.detail__note { font-size: 0.9rem; color: var(--steel-500); font-weight: 400; }

/* Form */
.form {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-s);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-s); }
.field { margin-bottom: var(--gap-s); }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--steel-900);
  margin-bottom: 0.35rem;
}
.field label .req { color: var(--red); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  background: var(--white);
  border: 1.5px solid var(--steel-100);
  border-radius: var(--radius);
  font-size: 0.98rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.field__hint { font-size: 0.83rem; color: var(--steel-500); margin-top: 0.3rem; }

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-s);
  flex-wrap: wrap;
  margin-top: var(--gap-m);
}
.form__note { font-size: 0.85rem; color: var(--steel-500); }
.form__nav { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.form__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}
.form__skip {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.form__skip:hover { color: var(--red-dark); }

@media (max-width: 620px) {
  .form__aside { align-items: flex-start; text-align: left; }
}

/* Honeypot - hidden from humans, catches naive bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form__status {
  display: none;
  margin-top: var(--gap-s);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 600;
}
.form__status.is-ok { display: block; background: #e8f5ec; color: #1a6b34; }
.form__status.is-err { display: block; background: #fdeaed; color: var(--red-dark); }

/* --- Product category chips ----------------------------------------------- */
.prod-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--gap-l);
  padding-bottom: var(--gap-m);
  border-bottom: 1px solid var(--steel-100);
}
.prod-nav a {
  padding: 0.45rem 0.8rem;
  border: 1.5px solid var(--steel-100);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--steel-700);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background 0.16s var(--ease);
}
.prod-nav a:hover { border-color: var(--red); color: var(--ink); background: var(--red-soft); }

/* --- Media row (grouped photography) -------------------------------------- */
.media-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-s); }
.media-row figure { margin: 0; }
.media-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--steel-100);
}
.media-row figcaption {
  margin-top: 0.6rem;
  font-size: 0.87rem;
  color: var(--steel-500);
}
@media (max-width: 760px) {
  .media-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .media-row { grid-template-columns: 1fr; }
}

/* --- Standard badge -------------------------------------------------------- */
.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* --- Reference list -------------------------------------------------------- */
.card__meta {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--red);
}

.reflist__year { margin-bottom: var(--gap-l); }
.reflist__year h3 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.3rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.4rem;
  border-bottom: 2px solid var(--ink);
}
.reflist__count {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.reflist__items { list-style: none; padding: 0; margin: 0; }
.reflist__items li {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: var(--gap-s);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--steel-100);
}
.reflist__client { font-weight: 650; color: var(--ink); font-size: 0.95rem; }
.reflist__desc { color: var(--steel-700); font-size: 0.94rem; }

.reflist__more { margin-top: var(--gap-m); }
.reflist__more > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid var(--steel-100);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--steel-700);
  cursor: pointer;
  list-style: none;
  margin-bottom: var(--gap-l);
}
.reflist__more > summary::-webkit-details-marker { display: none; }
.reflist__more > summary::after { content: "\25BE"; font-size: 0.8em; }
.reflist__more[open] > summary::after { content: "\25B4"; }
.reflist__more > summary:hover { border-color: var(--red); color: var(--ink); }

@media (max-width: 700px) {
  .reflist__items li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* --- Document list --------------------------------------------------------- */
.doclist { list-style: none; padding: 0; margin-top: 1rem; }
.doclist li { border-top: 1px solid var(--steel-100); }
.doclist li:first-child { border-top: 0; }
.doclist a {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--steel-700);
}
.doclist a:hover { color: var(--red); }

/* --- Certification callout ------------------------------------------------- */
.cert {
  display: flex;
  gap: var(--gap-s);
  margin-top: var(--gap-m);
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
}
.cert__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
}

/* --- Upitnik (multi-step quote form) --------------------------------------
   Steps are a JS enhancement. Without JS every fieldset stays visible and the
   form submits as one long page, which is the whole point of the paper
   questionnaire it mirrors. */
.upitnik { max-width: 980px; margin-inline: auto; }

.form__row--tight { gap: 0.6rem; }
.rule { border: 0; border-top: 1px solid var(--steel-100); margin: var(--gap-m) 0; }

.label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--steel-900);
  margin-bottom: 0.5rem;
}

.steps { display: none; }
.upitnik.is-stepped .steps {
  display: flex;
  list-style: none;
  padding: 0 0 var(--gap-m);
  margin: 0 0 var(--gap-m);
  gap: 0.4rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--steel-100);
  scrollbar-width: thin;
}
.steps__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.5rem 0.85rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: none;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 650;
  color: var(--steel-500);
  cursor: pointer;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.steps__btn:hover { color: var(--ink); background: var(--paper); }
.steps__num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--steel-100);
  color: var(--steel-700);
  font-size: 0.78rem;
  font-weight: 700;
}
.steps__btn.is-current { color: var(--ink); border-color: var(--steel-100); background: var(--white); }
.steps__btn.is-current .steps__num { background: var(--red); color: var(--white); }
.steps__btn.is-done .steps__num { background: var(--ink); color: var(--white); }

.step { border: 0; padding: 0; margin: 0 0 var(--gap-l); min-width: 0; }
.upitnik.is-stepped .step { margin-bottom: 0; }
.upitnik.is-stepped .step:not(.is-current) { display: none; }
.step__legend {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
  padding: 0;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.step__hint { font-size: 0.9rem; color: var(--steel-500); margin-bottom: var(--gap-m); }
.step__hint .req { color: var(--red); }

/* Radio / checkbox chips */
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--steel-100);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.93rem;
  font-weight: 550;
  color: var(--steel-700);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.choice:hover { border-color: var(--steel-300); }
.choice input { accent-color: var(--red); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--red); color: var(--ink); background: var(--red-soft); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--red-soft); }
.choice--block { display: flex; }

/* Crane type + capacity rows */
.tiprow {
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
  gap: var(--gap-s);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--steel-100);
}
.tiprow__name { display: flex; align-items: center; gap: 0.6rem; font-size: 0.96rem; cursor: pointer; }
.tiprow__name input { accent-color: var(--red); }
.tiprow__val input {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid var(--steel-100);
  border-radius: var(--radius);
  font-size: 0.93rem;
}
.tiprow__val input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

/* Numbered hall diagram */
.dgm-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--gap-l); align-items: start; }
.dgm {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  padding: var(--gap-s);
}
.dgm svg { width: 100%; height: auto; display: block; }

.dgm__ground { stroke: var(--steel-900); stroke-width: 2.5; }
.dgm__hall { fill: none; stroke: var(--steel-900); stroke-width: 2.5; stroke-linejoin: round; }
.dgm__rail { stroke: var(--steel-700); stroke-width: 2; }
.dgm__fill { fill: var(--steel-100); }
.dgm__crane { fill: var(--steel-700); }
.dgm__line { fill: none; stroke: var(--steel-900); stroke-width: 2; }
.dgm__figure { fill: none; stroke: var(--steel-700); stroke-width: 2; stroke-linecap: round; }
.dgm__dim line { stroke: var(--steel-300); stroke-width: 1.5; stroke-dasharray: 4 4; }
.dgm__dim path { fill: none; stroke: var(--steel-300); stroke-width: 1.5; }

.dgm__pin { cursor: pointer; }
.dgm__pin circle {
  fill: var(--white);
  stroke: var(--steel-500);
  stroke-width: 2;
  transition: fill 0.16s var(--ease), stroke 0.16s var(--ease);
}
.dgm__pin text {
  text-anchor: middle;
  font-size: 15px;
  font-weight: 700;
  fill: var(--steel-700);
  pointer-events: none;
  transition: fill 0.16s var(--ease);
}
.dgm__pin:hover circle { stroke: var(--red); }
.dgm__pin.is-active circle { fill: var(--red); stroke: var(--red); }
.dgm__pin.is-active text { fill: var(--white); }

.dgm-fields .field { margin-bottom: 1.1rem; }
.fnum {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: -0.25em;
}
.dgm-fields .field.is-active .fnum { background: var(--red); }

/* Speed rows */
.speed {
  display: grid;
  grid-template-columns: 160px 130px auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--steel-100);
}
.speed__label label { margin: 0; }
.speed input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid var(--steel-100);
  border-radius: var(--radius);
  font-size: 0.93rem;
}
.speed input[type="text"]:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

@media (max-width: 900px) {
  .dgm-grid { grid-template-columns: 1fr; }
  .dgm { position: static; }
  .speed { grid-template-columns: 1fr 1fr; }
  .speed__label { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tiprow { grid-template-columns: 1fr; align-items: stretch; }
  .speed { grid-template-columns: 1fr; }
}

/* --- Footer --------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--steel-500);
  padding-block: var(--gap-xl) var(--gap-m);
  font-size: 0.94rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--gap-m);
  padding-bottom: var(--gap-l);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--gap-s);
}
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: var(--steel-300); }
.footer a:hover { color: var(--white); }
.footer .logo { color: var(--white); margin-bottom: var(--gap-s); }
.footer .logo__mark { color: var(--white); }
.footer .logo__mark em { color: var(--red); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-s);
  flex-wrap: wrap;
  padding-top: var(--gap-m);
  font-size: 0.87rem;
  color: var(--steel-700);
}

/* --- Page hero (interior pages) ------------------------------------------- */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -60%;
  width: 55%;
  height: 220%;
  background: radial-gradient(circle at center, rgba(200, 16, 46, 0.16), transparent 62%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); font-size: var(--step-3); }
.page-hero p { color: rgba(255, 255, 255, 0.72); margin-top: var(--gap-s); max-width: 56ch; }
.breadcrumb {
  font-size: 0.87rem;
  color: var(--steel-500);
  margin-bottom: var(--gap-s);
}
.breadcrumb a { color: var(--steel-300); }
.breadcrumb a:hover { color: var(--white); }

/* --- Scroll reveal -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: var(--gap-l) var(--gap-m); }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

@media (max-width: 820px) {
  .header__inner { min-height: 66px; }
  .nav {
    position: fixed;
    inset: 66px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--steel-100);
    padding: var(--gap-s);
    box-shadow: var(--shadow-m);
    transform: translateY(-120%);
    transition: transform 0.28s var(--ease);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav__link.is-active::after { display: none; }
  .nav-toggle { display: block; }
  .header__phone span { display: none; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .prod { grid-template-columns: 1fr; }
  .prod__specs { justify-content: flex-start; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

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

/* --- Print ---------------------------------------------------------------- */
@media print {
  .header, .footer, .nav-toggle, .hero__media, .btn { display: none; }
  body { color: #000; }
}
