/* =========================================================
   SOTY INSPIRED — editorial motion, asymetria, premium B2B
   ========================================================= */
:root {
  --stage: #f7f7f5;
  --hair: rgba(52, 58, 64, 0.18);
}

body {
  background:
    linear-gradient(90deg, rgba(52, 58, 64, 0.045) 1px, transparent 1px) 0 0 / min(9vw, 116px) min(9vw, 116px),
    var(--stage);
}

.site-header {
  padding: 0;
  background: rgba(247, 247, 245, 0.94);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 74px; }
.brand-logo { height: 50px; }
.nav { gap: 0; align-self: stretch; }
.nav a {
  display: grid;
  place-items: center;
  padding-inline: clamp(0.75rem, 1.2vw, 1.25rem);
  border-left: 1px solid var(--hair);
}
.nav a:last-child { border-right: 1px solid var(--hair); }
.nav a::after { bottom: 0; }
.header-actions .btn { min-height: 48px; }

/* Nagłówek na całą szerokość ekranu (container-fluid): logo, nawigacja
   i przycisk „Katalog online" w jednym rzędzie, rozłożone na pełną
   szerokość. Dzięki temu dłuższe etykiety (inne języki) się mieszczą
   i nic nie przechodzi do drugiej linii. */
.site-header > .header-inner,
.topbar > .topbar-inner {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}
@media (min-width: 861px) {
  .header-inner { flex-wrap: nowrap; }
  .nav { flex: 0 1 auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }

  /* Topbar: 3 kolumny — telefony (lewo), godziny+FB (środek), języki (prawo).
     Boczne kolumny 1fr sprawiają, że środkowa grupa jest zawsze na środku. */
  .topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .topbar-inner > .topbar-group:first-child { justify-self: start; }
  .topbar-inner > .topbar-group:nth-child(2) { justify-self: center; }
  .topbar-inner > .lang-switch { justify-self: end; }
}

.hero {
  min-height: min(860px, calc(100svh - 74px));
  background: var(--ink);
  isolation: isolate;
}
.hero .img-slot--hero {
  left: 42%;
  width: 58%;
  opacity: 1;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.hero .img-slot--hero > img {
  filter: grayscale(10%) contrast(1.18) saturate(1.05);
  transform: scale(1.03);
}
.hero-overlay {
  background:
    linear-gradient(90deg, var(--ink) 0 50%, rgba(52, 58, 64, 0.72) 64%, rgba(52, 58, 64, 0.18) 100%);
}
.hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 92px 92px;
}
.hero-meta {
  background: transparent;
  border-left: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
}
.hero-meta::before {
  content: "";
  width: clamp(40px, 7vw, 90px);
  height: 1px;
  background: var(--red);
}
.hero h1 {
  max-width: none;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 0.95;
}
.hero h1::after {
  width: clamp(80px, 13vw, 190px);
  height: 2px;
}
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.42fr);
  align-items: end;
}
.hero .lead {
  max-width: 58ch;
  background: transparent;
  border-left: 1px solid var(--red);
  padding-block: 0.2rem;
}
.hero-actions {
  justify-content: flex-end;
}
.hero-stats {
  background: var(--ink);
}
.hero-stats-grid {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-stat {
  padding: clamp(1.2rem, 2vw, 1.8rem);
}

.ticker {
  transform: none;
  margin-block: 0;
  position: relative;
  z-index: 4;
}

.section {
  padding: clamp(5rem, 9vw, 9rem) 0;
}
.section::after {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  top: clamp(1.6rem, 4vw, 3.4rem);
  font-family: var(--mono);
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 1;
  color: rgba(52, 58, 64, 0.055);
  pointer-events: none;
}
#o-nas::after { content: "01"; }
#oferta::after { content: "02"; }
#jak-to-dziala::after { content: "03"; }
#live::after { content: "04"; }
#oddzialy::after { content: "05"; }
#zasieg::after { content: "06"; }
#dostawcy::after { content: "07"; color: rgba(255, 255, 255, 0.08); }
#faq::after { content: "08"; }
#kontakt::after { content: "09"; }

.sec-head-row {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.58fr);
}
.sec-head h2 {
  font-size: clamp(2.5rem, 6.1vw, 5.6rem);
  line-height: 0.9;
}
.sec-intro {
  border-left: 1px solid var(--red);
  background: rgba(255, 255, 255, 0.42);
}
.section--dark .sec-intro { background: rgba(255, 255, 255, 0.04); }

.about-grid {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
}
.about-copy {
  align-self: end;
  background: rgba(255, 255, 255, 0.82);
}
.about-media {
  min-height: 620px;
  align-items: center;
}
.about-photo-main {
  grid-column: 4 / 13;
}
.about-photo-side {
  grid-column: 1 / 8;
  transform: translateY(5.5rem);
}
.about-photo-main img,
.about-photo-side img,
.branch img {
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}
.about-photo-main:hover img,
.about-photo-side:hover img,
.branch:hover img {
  transform: scale(1.045);
  filter: contrast(1.08) saturate(1.05);
}


.offer-panels {
  margin-top: clamp(3rem, 6vw, 5rem);
}
.offer-panel {
  min-height: clamp(320px, 34vw, 460px);
  justify-content: flex-end;
}
.offer-panel h3 {
  font-size: clamp(1.7rem, 3.8vw, 3.4rem);
  line-height: 0.95;
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step {
  min-height: clamp(240px, 28vw, 360px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.step h3 {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.branch-grid {
  gap: 1px;
  background: var(--hair);
}
.branch {
  border-color: transparent;
}
.branch .img-slot--wide {
  aspect-ratio: 16 / 9;
}
.branch-body h3 {
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

.brands-grid {
  max-width: 1040px;
  margin-inline: auto;
}
.brands-grid li {
  min-height: clamp(138px, 14vw, 178px);
}
.brands-grid img {
  max-width: min(72%, 210px);
  max-height: 70px;
}

.faq-list {
  max-width: 980px;
  margin-inline: auto;
}
.faq-q {
  min-height: 92px;
  font-size: clamp(1.2rem, 2.3vw, 2rem);
}

.contact-grid {
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
}
.contact-specs,
.contact-form {
  background: rgba(255, 255, 255, 0.86);
}
.contact-specs {
  background: var(--ink);
  position: sticky;
  top: 100px;
}

.cta-band {
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(3rem, 8vw, 7rem);
}

@media (max-width: 1020px) {
  .hero-row,
  .sec-head-row,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions { justify-content: flex-start; }
  .about-media { min-height: 520px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { min-height: 250px; }
}

@media (max-width: 860px) {
  .nav a {
    display: block;
    border-left: 0;
  }
  .nav a:last-child { border-right: 0; }
  .hero .img-slot--hero {
    left: 0;
    width: 100%;
    clip-path: none;
    opacity: 0.35;
  }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(52, 58, 64, 0.98), rgba(52, 58, 64, 0.86));
  }
  .brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-specs { position: static; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: clamp(3.2rem, 18vw, 5.4rem); }
  .hero-row { gap: 1.5rem; }
  .ticker { transform: none; margin-block: 0; }
  .about-media { min-height: 430px; }
  .about-photo-main { grid-column: 2 / 13; }
  .about-photo-side { grid-column: 1 / 9; transform: translateY(3rem); }
  .steps { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: 1fr; }
  .section::after { display: none; }
}

/* =========================================================
   WARSTWA INTERAKCJI — custom kursor, magnetyczne przyciski,
   ziarno, pasek postępu, kinetyczne nagłówki, kaskadowy reveal.
   ========================================================= */

/* Pasek postępu scrolla */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--red);
  z-index: 999;
  pointer-events: none;
}

/* Kaskadowy reveal list powtarzalnych (kategorie, kroki, oddziały, marki, FAQ) */
.stagger-item { transition-delay: calc(var(--i, 0) * 70ms); }

/* =========================================================
   WARSTWA SPRZEDAŻOWA — status otwarcia, sticky CTA,
   potwierdzenie formularza, kopiowanie danych kontaktowych.
   ========================================================= */

/* Status otwarcia (na żywo) */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a8f96;
  flex: none;
  transition: background 200ms, box-shadow 200ms;
}
.status-line.is-open .status-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22); }
.status-line.is-closed .status-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(251, 43, 20, 0.18); }

.hero-cta-block { display: flex; flex-direction: column; align-items: flex-end; gap: 0.9rem; }
.hero-status {
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

/* Pasek szybkiego kontaktu (sticky) */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.7rem 0;
  background: rgba(24, 27, 30, 0.96);
  backdrop-filter: blur(14px);
  border-top: 2px solid var(--red);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 320ms var(--ease), visibility 0s linear 320ms;
}
.sticky-cta.visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 320ms var(--ease), visibility 0s linear 0s;
}
body.nav-open .sticky-cta.visible { transform: translateY(110%); }
.sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sticky-status { color: rgba(255, 255, 255, 0.85); }
.sticky-cta-actions { display: flex; gap: 0.6rem; }

/* Potwierdzenie formularza */
.form-success {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--ink);
  color: #fff;
}
.form-success-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0.8rem;
}
.form-success-text { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.4rem; }
.form-success-contact { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.5rem; }

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 180ms, border-color 180ms;
}
.copy-chip:hover { border-color: var(--red); }
.copy-chip.copied { background: rgba(34, 197, 94, 0.16); border-color: rgba(34, 197, 94, 0.5); }
.copy-chip-action { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; }
.copy-chip.copied .copy-chip-action { color: #22c55e; }

.form-success-reset {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--sans);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-success-reset:hover { color: #fff; }

@media (max-width: 620px) {
  .sticky-status .status-text { display: none; }
  .sticky-cta-actions .btn span { display: none; }
  .sticky-cta-actions .btn { flex: 1; }
  .sticky-cta-inner { gap: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

