/* ==========================================================================
   Atlantyda – strona „Typ hali”
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__lead { font: 400 clamp(18px, 1.5vw, 21px)/1.6 var(--font); max-width: 560px; text-wrap: pretty; }
.hero__uses { font: 400 16px var(--font); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; aspect-ratio: 5 / 4; min-height: 340px; }
/* Wybór typu hali (.type-picker) – style wspólne w atlantyda.css */

/* ---------- Szerokości ---------- */
.widths { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.width {
  height: 96px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line-2);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.width:hover { border-color: var(--accent); }
.width.is-active { border-color: var(--accent); background: var(--accent); color: var(--white); }
.width__v { font: 700 30px/1 var(--font); }
.width__u { font: 400 13px var(--font); }

/* ---------- Parametry techniczne ---------- */
.params__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.params__copy { display: flex; flex-direction: column; gap: 28px; }
.params__media { position: relative; aspect-ratio: 4 / 3; min-height: 320px; border-radius: var(--radius); background: var(--surface); }

/* ---------- Opcje i dodatki ---------- */
.options__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .options__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .options__grid { grid-template-columns: 1fr; } }
.option { display: flex; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.option__icon { flex: 0 0 48px; height: 48px; border-radius: var(--radius); background: var(--tint); display: flex; align-items: center; justify-content: center; }
.option__text { display: flex; flex-direction: column; gap: 6px; }
.option__text h3 { font: 700 17px var(--font); color: var(--ink); }
.option__text p { font: 400 15px/1.55 var(--font); }

/* ---------- Kolory RAL (slider: 6,5 koloru w rzędzie) ---------- */
.swatches__tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; }
/* Tor wychodzi poza kontener o szerokość marginesu strony (--fade) z obu stron.
   Pierwszy kafelek zaczyna się za strefą zanikania, więc na starcie jest w pełni
   widoczny; kafelki przewijane w lewo i ucięty z prawej miękko znikają w masce. */
.swatches {
  --per-view: 6.5;
  --gap: 16px;
  --fade: var(--gutter);
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--fade);
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--fade));
  padding: 4px var(--fade) 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}
.swatches::-webkit-scrollbar { display: none; }
.swatches:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.swatch {
  flex: 0 0 calc((100% - (var(--per-view) - .5) * var(--gap)) / var(--per-view));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 900px) { .swatches { --per-view: 4.5; } }
@media (max-width: 600px) { .swatches { --per-view: 3.5; } }
/* Kafelek koloru: kolor bazowy (--c) + symulacja blachy trapezowej.
   Żebro co 18px: ciemna krawędź, jasny grzbiet, płaskie dno, cień. */
.swatch__chip {
  aspect-ratio: 1;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .06);
  background-color: var(--c, #ccc);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .10) 100%),
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, .28) 0px,
      rgba(255, 255, 255, .38) 2px,
      rgba(255, 255, 255, .12) 6px,
      rgba(0, 0, 0, 0) 9px,
      rgba(0, 0, 0, 0) 12px,
      rgba(0, 0, 0, .16) 16px,
      rgba(0, 0, 0, .28) 18px);
}
.swatch__chip--zinc {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .12) 100%),
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, .30) 0px,
      rgba(255, 255, 255, .60) 2px,
      rgba(255, 255, 255, .22) 6px,
      rgba(0, 0, 0, 0) 9px,
      rgba(0, 0, 0, 0) 12px,
      rgba(0, 0, 0, .18) 16px,
      rgba(0, 0, 0, .30) 18px);
}
.swatch__name { font: 700 13px var(--font); color: var(--ink); }

/* ---------- Strefy obciążeń ---------- */
.loads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: clamp(28px, 4vw, 56px);
}
@media (max-width: 1000px) {
  .loads { grid-template-columns: repeat(2, 1fr); }
  .loads__copy { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .loads { grid-template-columns: 1fr; } }
.loads__copy { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.loads__copy h2 { font: 700 clamp(28px, 2.6vw, 38px)/1.15 var(--font); letter-spacing: -.02em; color: var(--ink); }
.loads__copy p { font: 400 16px/1.65 var(--font); }
.loads__map { position: relative; aspect-ratio: 1; background: var(--white); border-radius: var(--radius); }
