/*
 * Súbor: css/components/warranty-process.css
 * Obsah: Fotografické pozadie procesu na homepage a stránke havárií, vrstvy prezentácie, texty a jednotlivé kroky.
 * Použitie: index.html, sluzba-havarie.html.
 * Zapojenie: <link rel="stylesheet" href="css/components/warranty-process.css">; zachovaj pozíciu v hlavičke podľa css/README.md.
 * Závislosti: HTML triedy a selektory uvedené v pravidlách nižšie, css/general/base.css a farebné premenné témy stránky.
 */
/* Photos form the background; content stays above both image layers. */
.proof-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 48px;
  background: #252923;
  color: #fff;
}
.proof-slideshow { position: absolute; inset: 0; z-index: -2; margin: 0; }
.proof-slides { position: absolute; inset: 0; }
.proof-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.proof-slide.is-active { opacity: 1; }
.proof-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(16 21 18 / 18%), rgb(16 21 18 / 42%));
  pointer-events: none;
}
.proof-band-inner { display: grid; min-height: 680px; align-content: space-between; gap: 96px; }
.proof-band-copy {
  max-width: 760px;
  padding: 32px 36px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 16px;
  background: rgb(18 24 21 / 78%);
}
.proof-band .eyebrow { margin-top: 0; color: #e0cfb2; }
.proof-band h2 { margin: 0 0 18px; color: #fff; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.18; }
.proof-band-lead { margin: 0; color: #f0efeb; font-size: 17px; line-height: 1.65; }
.proof-band-lead + .proof-band-lead { margin-top: 24px; }
.proof-band-lead--secondary { color: #c2c5c1; font-size: 15px; }
.proof-points { --point-gap: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--point-gap); width: 100%; }
.proof-point {
  position: relative;
  justify-self: center;
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 12px;
  background: rgb(18 24 21 / 78%);
  text-align: center;
}
.proof-point:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: calc(66.6667% + var(--point-gap));
  height: 1px;
  background: rgb(255 255 255 / 50%);
  pointer-events: none;
}
.proof-icon { display: block; flex-shrink: 0; }
.proof-icon img { width: 36px; height: 36px; filter: brightness(0) invert(1); }
.proof-point h3 { max-width: 100%; margin: 0; color: #fff; font-size: clamp(12px, 1.3vw, 16px); line-height: 1.35; overflow-wrap: anywhere; }
@media (min-width: 768px) and (max-width: 1023px) {
  .proof-point { padding: 6px; gap: 6px; }
  .proof-icon img { width: 24px; height: 24px; }
  .proof-point h3 { font-size: 11px; line-height: 1.25; }
}
@media (max-width: 767px) {
  .proof-band { padding: 36px 0; }
  .proof-band-inner { min-height: 800px; gap: 64px; }
  .proof-band-copy { padding: 24px 20px; border-radius: 12px; }
  .proof-band-lead { font-size: 15px; }
  .proof-band-lead--secondary { font-size: 14px; }
  .proof-points { --point-gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-point { padding: 6px; gap: 6px; }
  .proof-point:nth-child(2)::after { top: 100%; left: 50%; width: 1px; height: var(--point-gap); }
  .proof-icon img { width: 24px; height: 24px; }
  .proof-point h3 { font-size: 11px; line-height: 1.25; }
}
@media (max-width: 380px) {
  .proof-point { padding: 4px; gap: 4px; }
  .proof-icon img { width: 18px; height: 18px; }
  .proof-point h3 { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .proof-slide { transition: none; }
}
