/* ==========================================================================
   DOM-WOD — producent sprężyn kanalizacyjnych
   Palette: brand blue #0075B6 · deep navy #0E2483 · steel ink #14212F
            zinc #EEF2F6 · safety orange #E85D04
   Type:    Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (specs)
   ========================================================================== */

:root {
  --blue: #0075B6;
  --navy: #0E2483;
  --ink: #14212F;
  --text: #26333F;
  --muted: #5B6B7A;
  --zinc: #EEF2F6;
  --steel: #D4DCE4;
  --paper: #FFFFFF;
  --orange: #E85D04;
  --orange-dark: #C24A00;
  --radius: 6px;
  --wrap: 1140px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); }
a:hover { color: var(--navy); }

.mono { font-family: var(--font-mono); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost {
  border-color: var(--steel);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { background: var(--zinc); color: var(--navy); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-coil { width: 30px; height: 30px; color: var(--blue); flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.brand-dom { color: var(--blue); }
.brand-wod { color: var(--navy); }
.brand-dash { color: var(--muted); font-weight: 500; }

.site-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:not(.btn):hover { color: var(--blue); border-bottom-color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

.lang-switch {
  display: flex;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  overflow: hidden;
  flex: none;
}
.lang-switch button {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button + button { border-left: 1px solid var(--steel); }
.lang-switch button:hover { color: var(--ink); background: var(--zinc); }
.lang-switch button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--zinc) 100%);
  border-bottom: 1px solid var(--steel);
}
.hero-coil {
  position: absolute;
  inset: auto 0 8%;
  width: 100%;
  height: 220px;
  color: var(--blue);
  opacity: 0.16;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.04;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}
.hero-specs li {
  font-size: 0.875rem;
  color: var(--muted);
  border-left: 3px solid var(--blue);
  padding-left: 0.6rem;
}
.hero-photo img {
  mix-blend-mode: multiply; /* photos are shot on white — blend into the zinc gradient */
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--ink);
  color: #C6D2DE;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.trust-item h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0.4rem 0;
}
.trust-item p { font-size: 0.9rem; line-height: 1.55; }
.trust-num {
  font-size: 0.8125rem;
  color: var(--blue);
  border-bottom: 1px solid rgba(198, 210, 222, 0.25);
  display: block;
  padding-bottom: 0.5rem;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--zinc); }
.section-head { max-width: 46em; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-lead { color: var(--muted); font-size: 1.1rem; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.product-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 28px rgba(0, 117, 182, 0.12);
}
.product-card.is-featured { border-color: var(--blue); border-width: 2px; }
.card-badge {
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin: 0;
}
.product-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* True-to-scale diameter dots: 1 mm = 3.5 px */
.dia-visual {
  display: flex;
  align-items: flex-end;
  height: 64px;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--steel);
  padding-bottom: 0.75rem;
}
.dia-circle {
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #B9C6D2 0%, #7C8FA0 55%, var(--ink) 100%);
}
.dia-6  { width: 21px; height: 21px; }
.dia-8  { width: 28px; height: 28px; }
.dia-10 { width: 35px; height: 35px; }
.dia-16 { width: 56px; height: 56px; }
.dia-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 1.25rem;
}

.spec-list { margin: 0; }
.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--zinc);
  font-size: 0.9rem;
}
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; }

/* ---------- Length variants: proportional spring bars ---------- */
.variants { margin-top: clamp(2.5rem, 5vw, 4rem); }
.variants-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.variants-head h3 { margin: 0; }
.variants-note { color: var(--muted); font-size: 0.9rem; margin: 0; }

.dia-tabs {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  overflow: hidden;
}
.dia-tabs [role="tab"] {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  background: var(--paper);
  border: 0;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dia-tabs [role="tab"] + [role="tab"] { border-left: 1px solid var(--steel); }
.dia-tabs [role="tab"]:hover { color: var(--ink); background: var(--zinc); }
.dia-tabs [role="tab"][aria-selected="true"] {
  background: var(--blue);
  color: #fff;
}

.length-scale {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--paper);
}
.len-panel ul { list-style: none; margin: 0; padding: 0; }
.len-panel li {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
}
.len-panel li + li { border-top: 1px dashed var(--zinc); }
.len-panel .len {
  font-size: 0.875rem;
  color: var(--navy);
  text-align: right;
}
.len-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
/* Bar length = spring length (25 m = full width), bar height = wire diameter (--h).
   The keyframe replays each time a hidden panel is shown, so bars grow on tab switch. */
.coil-bar {
  position: relative;
  display: block;
  width: var(--len);
  height: var(--h, 14px);
  border-radius: calc(var(--h, 14px) / 2);
  /* diagonal stripes read as coiled wire */
  background: repeating-linear-gradient(115deg, #8496A7 0 3px, #C3CFDA 3px 7px);
  box-shadow: inset 0 1px 2px rgba(20, 33, 47, 0.35);
  animation: coil-grow 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) backwards;
}
@keyframes coil-grow { from { width: 0; } }
.len-panel li:nth-child(2) .coil-bar { animation-delay: 0.05s; }
.len-panel li:nth-child(3) .coil-bar { animation-delay: 0.1s; }
.len-panel li:nth-child(4) .coil-bar { animation-delay: 0.15s; }
.len-panel li:nth-child(5) .coil-bar { animation-delay: 0.2s; }
.len-panel li:nth-child(6) .coil-bar { animation-delay: 0.25s; }
.len-panel li:nth-child(7) .coil-bar { animation-delay: 0.3s; }
.len-panel li:nth-child(8) .coil-bar { animation-delay: 0.35s; }
.coil-bar::before {
  /* red wooden handle, as in the product photos */
  content: "";
  position: absolute;
  left: -4px;
  top: calc(var(--h, 14px) / 2 - (var(--h, 14px) + 7px) / 2);
  width: calc(var(--h, 14px) + 7px);
  height: calc(var(--h, 14px) + 7px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #C2455C 0%, #8E2038 70%);
}
.coil-bar.is-custom {
  width: 100%;
  height: auto;
  min-height: calc(var(--h, 14px) + 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  background: none;
  box-shadow: none;
  border: 2px dashed var(--steel);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}
.coil-bar.is-custom::before { display: none; }
.coil-bar.is-custom { animation: none; }
/* hold the animation until the section scrolls into view; adding .is-visible starts it */
.reveal:not(.is-visible) .coil-bar { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .coil-bar { animation: none !important; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  display: block;
  background: #fff;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-item:hover { border-color: var(--blue); box-shadow: 0 10px 28px rgba(0, 117, 182, 0.14); }
.gallery-item:hover img { transform: scale(1.03); }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1000px);
}
.lightbox::backdrop { background: rgba(10, 18, 26, 0.85); }
.lightbox img { border-radius: var(--radius); max-height: 85vh; width: auto; margin-inline: auto; }
.lightbox-close {
  position: absolute;
  top: -0.25rem; right: 0.25rem;
  z-index: 1;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

/* ---------- Band ---------- */
.band {
  background: linear-gradient(115deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.band h2 { color: #fff; max-width: 22em; margin-inline: auto; }
.band p { color: rgba(255, 255, 255, 0.82); max-width: 38em; margin: 0 auto 1.75rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  background: var(--zinc);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Safety ---------- */
.safety {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--steel);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
}
.safety-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}
.safety-list li { margin-bottom: 0.5rem; }
.safety-warn {
  font-weight: 600;
  color: var(--orange-dark);
  background: rgba(232, 93, 4, 0.08);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0;
}

/* ---------- Certificate ---------- */
.cert {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 2rem;
  background: var(--zinc);
  border-radius: var(--radius);
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
}
.cert-icon { width: 44px; height: 44px; color: var(--blue); flex: none; }
.cert h3 { margin-bottom: 0.25rem; }

/* ---------- Contact ---------- */
.contact { background: var(--zinc); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-form {
  background: var(--paper);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.field label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 117, 182, 0.18);
}
.field textarea { resize: vertical; min-height: 7rem; }
.form-status { margin-top: 1rem; font-weight: 600; min-height: 1.5em; }
.form-status.is-ok { color: #1B7A3D; }
.form-status.is-err { color: var(--orange-dark); }

.contact-details {
  background: var(--ink);
  color: #C6D2DE;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.contact-details h3 { color: #fff; letter-spacing: 0.1em; }
.contact-details address { font-style: normal; }
.contact-details strong { color: #fff; }
.detail-label {
  display: inline-block;
  min-width: 3.5rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7E93A8;
}
.detail-link { color: #fff; text-decoration: none; font-weight: 600; }
.detail-link:hover { color: #fff; text-decoration: underline; }
.map-frame { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 240px; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #7E93A8;
  border-top: 1px solid rgba(198, 210, 222, 0.15);
  padding-block: 2.5rem;
}
.footer-inner { text-align: center; }
.site-footer .brand-name { font-size: 1.1rem; margin-bottom: 0.5rem; }
.site-footer .brand-dom { color: #4FA8D8; }
.site-footer .brand-wod { color: #8FA0E8; }
.site-footer p { margin-bottom: 0.35rem; font-size: 0.9rem; }
.footer-copy { font-size: 0.8125rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-item img, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 420px; margin-inline: auto; }
  .hero-coil { height: 140px; }

  .nav-toggle { display: flex; }
  .site-nav { position: static; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--steel);
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: 0 16px 30px rgba(20, 33, 47, 0.12);
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-top: 1px solid var(--zinc); }
  .nav-list li.nav-cta-item { border-top: 0; margin-top: 0.75rem; }
  .nav-list a:not(.btn) { display: block; padding: 0.85rem 0; border-bottom: 0; }
  .header-inner { position: relative; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
