/* ============================================================
   MAIN.CSS — hurt.dobrecieplo.eu
   Reset · Typography · Layout · Topbar · Nawigacja
   Mobile-first | Custom properties only — zero hardcoded values
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   DODATKOWE ZMIENNE (uzupełnienie variables.css)
   ───────────────────────────────────────────────────────────── */
:root {
  --topbar-height: 40px;
  --nav-height: 64px;
  --header-total: calc(var(--topbar-height) + var(--nav-height));
  --transition-slow: 320ms ease;
  --drawer-width: min(320px, 100vw);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --fs-topbar-sm: 0.65rem;
}

/* ─────────────────────────────────────────────────────────────
   RESET
   ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

/* ─────────────────────────────────────────────────────────────
   BASE
   ───────────────────────────────────────────────────────────── */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--line-height);
  color: var(--text-primary);
  background: var(--bg-light);
  overflow-x: hidden;
}

/* Blokada scrolla przy otwartym drawerze lub offcanvas */
body.drawer-open,
body.offcanvas-open {
  overflow: hidden;
}

/* Overlay tła przy otwartym drawerze (mobile nav) */
body.drawer-open::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--overlay-bg);
  z-index: 109;
}

/* Overlay tła przy otwartym offcanvas */
body.offcanvas-open::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--overlay-bg);
  z-index: 249;
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────
   TYPOGRAFIA
   ───────────────────────────────────────────────────────────── */
h1 {
  font-size: var(--fs-hero);
  font-weight: var(--fw-semibold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

p {
  font-size: var(--fs-body);
  line-height: var(--line-height);
  color: var(--text-body);
}

strong {
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT — CONTAINER
   ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: var(--container-padding);
}

/* ─────────────────────────────────────────────────────────────
   SEKCJE — WSPÓLNE WZORCE
   ───────────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.section-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Sekcje na ciemnym tle — odwrócone kolory nagłówków */
.section-lead-magnet .section-title,
.section-kontakt .section-title {
  color: var(--text-on-dark);
}

.section-lead-magnet .section-desc,
.section-kontakt .section-desc {
  color: var(--text-on-dark-muted);
}

.section-lead-magnet .section-label,
.section-kontakt .section-label {
  color: var(--text-gold);
}

/* ─────────────────────────────────────────────────────────────
   TŁA SEKCJI — system alternujący biały ↔ szary ↔ ciemny
   ───────────────────────────────────────────────────────────── */
/* Kolejność w HTML: hero → trust-bar → dlaczego → proces → produkty → porownanie → mapa → lead-magnet → opinie → wspolpraca → o-nas → video → faq → kontakt */
/* hero: biały — wyżej w .section-hero */
/* ── v2 SEKCJE ───────────────────────────────── */
.section-product {
  background: var(--bg-white);
}
.section-benefits {
  background: var(--bg-white);
}
.section-video-split {
  /* tło i padding w components.css */
}
.section-reviews {
  background: var(--bg-white);
}
.section-comparison {
  background: var(--bg-dark);
} /* czarny */
.section-about {
  background: var(--bg-dark);
} /* czarny — złote liczby */
.section-mapa {
  background: var(--bg-white);
}
.section-psb {
  background: var(--bg-white);
}
.section-process {
  background: var(--bg-white);
}
/* sekcja-produkty: biały — deklaracja niżej */

/* ── v1 SEKCJE (legacy) ─────────────────────── */
.section-dlaczego {
  background: var(--bg-white);
}
.section-proces {
  background: var(--bg-white);
}
.section-produkty {
  background: var(--bg-white);
}
.section-porownanie {
  background: var(--bg-dark);
} /* czarny */
.section-lead-magnet {
  background: var(--bg-dark);
} /* czarny */
.section-opinie {
  background: var(--bg-white);
}
.section-gwarancje {
  background: var(--bg-white);
}
.section-wspolpraca {
  background: var(--bg-white);
}
.section-kalkulator {
  background: var(--bg-white);
}
.section-dla-sklepow {
  background: var(--bg-dark);
} /* czarny */
.section-o-nas {
  background: var(--bg-white);
}
.section-faq {
  background: var(--bg-white);
}
.section-kontakt {
  background: var(--bg-dark);
} /* czarny */ /* ciemny */

/* Subtelny separator między ciepłymi sekcjami o zbliżonych barwach */
.section-gwarancje {
  border-top: 1px solid var(--border-faint);
}

/* ─────────────────────────────────────────────────────────────
   ANIMACJE WEJŚCIA sekcji — sekcje są widoczne od razu,
   animacja działa na poziomie [data-animate] / .anim-item.
   Wyjątek: .section-mapa ma własny animation w map.css.
   ───────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────
   PRZYCISKI — globalne
   Zasada: ZERO translateY, ZERO box-shadow na hover.
   Hover = zmiana fill ↔ outline + animacja strzałki/linii.
   ───────────────────────────────────────────────────────────── */

/* ── Strzałka wewnątrz przycisków ─────────────────────────── */
.btn-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@supports not selector(:focus-visible) {
  .btn-primary:focus .btn-arrow {
    transform: translateX(5px);
  }
}
.btn-primary:hover .btn-arrow,
.btn-primary:focus-visible .btn-arrow {
  transform: translateX(5px);
}

/* ── BAZA WSPÓLNA — wszystkie przyciski ───────────────────── */
.btn-primary,
.btn-secondary,
.btn-ghost,
.nav__enquiry-btn,
.dc-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--letter-spacing-btn);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

/* ── PRIMARY ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 32px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition:
    background 0.4s ease,
    color 0.4s ease,
    transform var(--transition);
}

/* Border-loader: złota kreska rysuje się dookoła na hover */
.btn-primary::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  border: 2px solid var(--color-accent);
  border-radius: inherit;
  /* WYJŚCIE: cofa się od prawej do lewej */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

@supports not selector(:focus-visible) {
  .btn-primary:focus {
    background: transparent;
    color: var(--color-accent);
    outline: none;
  }
  .btn-primary:focus::before {
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: transparent;
  color: var(--color-accent);
  outline: none;
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  /* WEJŚCIE: rysuje się od lewej do prawej */
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── SECONDARY ────────────────────────────────────────────── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 4px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.35s ease, transform var(--transition);
}

.btn-secondary::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@supports not selector(:focus-visible) {
  .btn-secondary:focus {
    color: var(--color-accent);
    outline: none;
  }
  .btn-secondary:focus::after {
    opacity: 0.6;
    transform: scaleX(1);
  }
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--color-accent);
  outline: none;
}

.btn-secondary:hover::after,
.btn-secondary:focus-visible::after {
  opacity: 0.6;
  transform: scaleX(1);
}

/* ── GHOST (Typ C — ciemne tło / hero overlay) ────────────── */
.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost::before {
  display: none; /* brak border-loader — ghost ma własny hover */
}

@supports not selector(:focus-visible) {
  .btn-ghost:focus {
    background: var(--surface-on-dark-medium);
    border-color: rgba(255, 255, 255, 0.75);
    color: var(--color-white);
    transform: none;
    outline: none;
  }
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--surface-on-dark-medium);
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--color-white);
  transform: none;
  outline: none;
}

/* Przycisk ChatGPT */
.btn-chatgpt {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-md);
  padding: var(--gap-md) var(--gap-lg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  transition:
    border-color var(--transition),
    color var(--transition);
  line-height: var(--line-height);
}

.btn-chatgpt:hover {
  border-color: var(--color-accent);
  color: var(--text-primary);
}

.btn-chatgpt strong {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

.btn-chatgpt svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

/* Sticky button — koperta, otwiera off-canvas */
.btn-sticky {
  position: fixed;
  bottom: calc(2rem + 48px + 0.75rem);
  right: 2rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    background var(--transition),
    transform 0.4s var(--anim-ease),
    opacity 0.4s var(--anim-ease);
}

.btn-sticky.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-sticky:hover {
  background: var(--color-accent-hover);
}

@supports not selector(:focus-visible) {
  .btn-sticky:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
  }
}
.btn-sticky:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-sticky svg {
  color: var(--color-white);
}

@media (max-width: 768px) {
  .btn-sticky {
    bottom: calc(1.25rem + 44px + 0.625rem);
    width: 44px;
    height: 44px;
  }
}

/* ─────────────────────────────────────────────────────────────
   SITE HEADER — sticky, dynamiczny efekt scroll
   ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--bg-white);
  border-bottom: none;
  box-shadow: none;
  transition:
    box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.3s ease;
}

/* Gradient-linia u dołu — rośnie od środka do boków */
.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-accent) 20%,
    var(--border-light) 50%,
    var(--border-accent) 80%,
    transparent 100%
  );
  transform-origin: center;
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

/* Stan po scroll — .is-scrolled dodawane przez JS */
.site-header.is-scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 0 var(--color-accent-subtle),
    0 2px 12px -2px rgba(0, 0, 0, 0.06),
    0 8px 24px -8px var(--border-faint);
}

.site-header.is-scrolled::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.site-header.is-scrolled .nav {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.site-header.is-scrolled .dc-logo__icon {
  height: 30px;
}

.site-header.is-scrolled .dc-logo__text {
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────────
   NAW IGACJA — layout
   ───────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  transition: padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Logo — sygnet + tekst ── */
.dc-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.dc-logo__icon {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dc-logo__text {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  line-height: 1;
  white-space: nowrap;
  transition: font-size 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dc-logo--footer {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.dc-logo--footer .dc-logo__icon {
  height: 48px;
}

.dc-logo--footer .dc-logo__text {
  color: var(--color-white);
  text-align: center;
  line-height: 1.2;
  font-size: 0.7rem;
}

/* Linki — desktop (domyślnie ukryte na mobile) */
.nav__links {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 40px;
}

.nav__link {
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  letter-spacing: var(--letter-spacing-nav);
  text-transform: uppercase;
  color: var(--color-grey-600);
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease;
  white-space: nowrap;
}

@supports not selector(:focus-visible) {
  .nav__link:focus {
    color: var(--color-accent);
    outline: none;
  }
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-accent);
  outline: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Prawa strona nawigacji ─────────────────────────────────── */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  margin-left: auto;
  flex-shrink: 0;
}

/* Telefon (ukryty na mobile, widoczny na desktop) */
.nav__phone {
  display: none;
  align-items: center;
  gap: var(--gap-sm);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__phone:hover {
  color: var(--color-accent);
}

.nav__phone svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.nav__phone-number {
  display: none;
}

/* Separator pionowy */
.nav__sep {
  display: none;
  width: 1px;
  height: 20px;
  background: var(--border-light);
  flex-shrink: 0;
}

/* ── Przycisk "Zapytaj o wycenę" ───────────────────────────── */
.nav__enquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    color 0.4s ease,
    border-color 0.4s ease;
}

/* Border-loader: złota kreska rysuje się dookoła na hover */
.nav__enquiry-btn::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  border: 2px solid var(--color-accent);
  border-radius: inherit;
  opacity: 0;
  /* WYJŚCIE: cofa się od prawej do lewej */
  clip-path: inset(0 100% 0 0);
  transition:
    clip-path 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s ease;
  pointer-events: none;
}

.nav__enquiry-btn:hover {
  color: var(--color-accent);
  border-color: transparent;
}

.nav__enquiry-btn:hover::before {
  opacity: 1;
  /* WEJŚCIE: rysuje się od lewej do prawej */
  clip-path: inset(0 0 0 0);
  transition:
    clip-path 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.15s ease;
}

@supports not selector(:focus-visible) {
  .nav__enquiry-btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }
}
.nav__enquiry-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav__enquiry-btn svg {
  stroke-width: 1.5;
  flex-shrink: 0;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.nav__enquiry-btn:hover svg {
  color: var(--color-accent);
}

/* Tekst w przycisku ukryty na małym ekranie */
.nav__enquiry-text {
  display: none;
}

/* Hamburger — widoczny tylko na mobile */
.nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  flex-shrink: 0;
}

.nav__hamburger:hover {
  color: var(--color-accent);
}

@supports not selector(:focus-visible) {
  .nav__hamburger:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }
}
.nav__hamburger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Animacja hamburger → X */
.nav__hamburger svg line {
  transition:
    transform var(--transition-slow),
    opacity var(--transition-slow);
  transform-box: fill-box;
  transform-origin: center;
}

.nav__hamburger[aria-expanded="true"] svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] svg line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger[aria-expanded="true"] svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────
   MOBILE DRAWER
   ───────────────────────────────────────────────────────────── */
.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--drawer-width);
  background: var(--bg-card);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  padding: var(--gap-xl) var(--gap-lg) var(--gap-lg);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  border-left: 1px solid var(--border-light);
}

.nav__drawer.is-open {
  transform: translateX(0);
}

.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-light);
  margin-top: calc(var(--nav-height) - var(--gap-xl) + var(--gap-md));
}

.nav__drawer-links .nav__link {
  display: block;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  padding: var(--gap-md) 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.nav__drawer-links .nav__link:hover {
  color: var(--color-accent);
}

.nav__phone--drawer {
  display: flex;
  align-items: center;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  gap: var(--gap-sm);
  padding-top: var(--gap-sm);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — tablet 768px+
   ───────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav__actions {
    gap: var(--gap-lg);
  }

  .nav__enquiry-btn {
    padding: 0.5rem 1.125rem;
  }

  .nav__enquiry-text {
    display: inline;
  }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — desktop 1024px+
   ───────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .nav__actions {
    margin-left: 0;
  }

  .nav__links {
    display: flex;
  }

  .nav__phone {
    display: flex;
  }

  .nav__phone-number {
    display: inline;
  }

  .nav__sep {
    display: block;
  }

  .nav__hamburger {
    display: none;
  }

  /* Drawer nie jest potrzebny na desktop */
  .nav__drawer {
    display: none;
  }
}

/* ═════════════════════════════════════════════════════════════
   SEKCJA HERO — PREMIUM LAYOUT
   100vh · 60/40 split · staggered animations
   ═════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   DODATKOWE ZMIENNE HERO
   ───────────────────────────────────────────────────────────── */
:root {
  --hero-stagger: 0.13s;
  --hero-base-delay: 0.1s;
  --hero-duration: 0.7s;
  --hero-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────────────────────────
   KEYFRAMES
   ───────────────────────────────────────────────────────────── */
@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroSlideRight {
  from {
    opacity: 0;
    transform: translateX(40px) scale(1.03);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes heroCta {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT SEKCJI
   ───────────────────────────────────────────────────────────── */
.section-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   LEWA KOLUMNA
   ───────────────────────────────────────────────────────────── */
.hero__left {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--gap-xl) clamp(1rem, 4vw, 2rem);
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-xl);
}

.hero__content {
  width: 100%;
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

/* ─────────────────────────────────────────────────────────────
   LABEL nad H1
   ───────────────────────────────────────────────────────────── */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  /* Złota linia dekoracyjna po lewej */
  padding-left: calc(var(--gap-md) + 3px);
  position: relative;
  opacity: 0;
}

.hero__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1.2em;
  background: var(--color-accent);
  border-radius: 2px;
}

.hero__label::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
  margin-left: 4px;
}

/* ─────────────────────────────────────────────────────────────
   H1 — linie z animacją
   ───────────────────────────────────────────────────────────── */
.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  font-size: var(--fs-hero);
  font-weight: var(--fw-semibold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  /* Ukrycie overflow żeby linie wjeżdżają czysto */
  overflow: hidden;
}

.hero__line {
  display: block;
  opacity: 0;
  /* Clip — linia nie wyjeżdża poza tytuł */
  clip-path: inset(0 0 -10px 0);
}

.hero__line--last {
  color: var(--text-primary);
}

/* Podkreślenie ostatniej linii złotem */
.hero__line--last::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: var(--gap-sm);
}

/* ─────────────────────────────────────────────────────────────
   PODTYTUŁ
   ───────────────────────────────────────────────────────────── */
.hero__subtitle {
  font-size: var(--fs-body);
  line-height: var(--line-height);
  color: var(--text-body);
  max-width: 58ch;
  opacity: 0;
}

/* ─────────────────────────────────────────────────────────────
   USP LISTA
   ───────────────────────────────────────────────────────────── */
.hero__usps {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.hero__usp {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  opacity: 0;
}

.hero__usp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--color-gold-border);
  border-radius: 50%;
  color: var(--color-accent);
  margin-top: 1px;
}

.hero__usp-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__usp-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.hero__usp-body strong {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  line-height: var(--line-height-tight);
}

.hero__usp-body span {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--line-height);
}

/* ─────────────────────────────────────────────────────────────
   CTA
   ───────────────────────────────────────────────────────────── */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  align-items: center;
  opacity: 0;
  padding-top: var(--gap-sm);
}

/* ─────────────────────────────────────────────────────────────
   ZŁOTA LINIA PIONOWA (separator)
   ───────────────────────────────────────────────────────────── */
.hero__divider {
  display: none; /* tylko desktop */
  width: 1px;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.hero__divider-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-gold-warm) 15%,
    var(--color-gold-warm) 85%,
    transparent 100%
  );
  transition: height 1.4s var(--hero-ease) 0.4s;
}

/* ─────────────────────────────────────────────────────────────
   PRAWA KOLUMNA — zdjęcie
   ───────────────────────────────────────────────────────────── */
.hero__right {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  opacity: 0;
}
@supports not (aspect-ratio: 1 / 1) {
  .hero__right {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
  }
  .hero__right .hero__img {
    position: absolute;
    top: 0;
    left: 0;
  }
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* Dodatkowe 15% wysokości dla efektu parallax */
  transform: scale(1.15) translateY(0);
  transform-origin: center top;
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────────
   ANIMACJE — aktywowane przez .hero--ready (JS)
   ───────────────────────────────────────────────────────────── */
.hero--ready .hero__label {
  animation: heroSlideLeft var(--hero-duration) var(--hero-ease) both;
  animation-delay: calc(
    var(--hero-base-delay) + var(--i, 0) * var(--hero-stagger)
  );
}

.hero--ready .hero__line {
  animation: heroSlideUp var(--hero-duration) var(--hero-ease) both;
  animation-delay: calc(
    var(--hero-base-delay) + var(--i, 0) * var(--hero-stagger)
  );
}

.hero--ready .hero__subtitle {
  animation: heroSlideUp var(--hero-duration) var(--hero-ease) both;
  animation-delay: calc(
    var(--hero-base-delay) + var(--i, 0) * var(--hero-stagger)
  );
}

.hero--ready .hero__usp {
  animation: heroSlideUp var(--hero-duration) var(--hero-ease) both;
  animation-delay: calc(
    var(--hero-base-delay) + var(--i, 0) * var(--hero-stagger)
  );
}

.hero--ready .hero__cta {
  animation: heroCta var(--hero-duration) var(--hero-ease) both;
  animation-delay: calc(
    var(--hero-base-delay) + var(--i, 0) * var(--hero-stagger)
  );
}

.hero--ready .hero__right {
  animation: heroSlideRight 0.9s var(--hero-ease) 0.3s both;
}

.hero--ready .hero__divider-line {
  height: 100%;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — tablet 768px+
   ───────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .hero__right {
    aspect-ratio: 3 / 2;
  }
}
@supports not (aspect-ratio: 1 / 1) {
  @media (min-width: 768px) {
    .hero__right {
      padding-bottom: 66.6667%;
    }
  }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — desktop 1024px+
   Dwukolumnowy split 60/40
   ───────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .section-hero {
    flex-direction: row;
    align-items: stretch;
    min-height: calc(100vh - var(--nav-height));
  }

  .hero__left {
    flex: 0 0 60%;
    padding-top: var(--gap-xl);
    padding-bottom: var(--gap-xl);
    /* Wyrównanie tekstu do kontenera */
    padding-left: max(
      clamp(1rem, 4vw, 2rem),
      calc((100vw - var(--container-width)) / 2 + clamp(1rem, 4vw, 2rem))
    );
    padding-right: var(--gap-xl);
  }

  .hero__divider {
    display: block;
  }

  .hero__right {
    flex: 0 0 40%;
    aspect-ratio: unset;
    height: auto;
  }
  /* Reset fallbacku padding-bottom na desktopie */
  @supports not (aspect-ratio: 1 / 1) {
    .hero__right {
      padding-bottom: 0;
    }
    .hero__right .hero__img {
      position: static;
    }
  }

  .hero__img {
    /* Lekki parallax — wartość ustawiana przez JS */
    transform: scale(1.15) translateY(var(--parallax-y, 0px));
  }
}

/* ─────────────────────────────────────────────────────────────
   REDUCED MOTION — wyłącz wszystkie animacje
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__label,
  .hero__line,
  .hero__subtitle,
  .hero__usp,
  .hero__cta,
  .hero__right {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .hero__divider-line {
    height: 100% !important;
    transition: none !important;
  }

  .hero__img {
    transform: scale(1) !important;
    transition: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   COAL DECORATION — bryły węgla podróżujące przez całą stronę
   Wrapper: position fixed, pełny viewport, pointer-events: none
   JS steruje translateY każdej bryły
   ───────────────────────────────────────────────────────────── */
.coal-parallax-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.coal-decoration {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.coal-decoration--large {
  width: 130px;
  height: 117px;
  right: 4vw;
  opacity: 0.32;
}

.coal-decoration--small {
  width: 72px;
  height: 65px;
  left: 3vw;
  opacity: 0.2;
}

@media (max-width: 1024px) {
  .coal-parallax-wrapper {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   KEYFRAMES — scroll animations
   ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(var(--anim-offset, 30px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─────────────────────────────────────────────────────────────
   SCROLL ANIMATIONS — [data-animate] + .anim-item
   ───────────────────────────────────────────────────────────── */
[data-animate] .anim-item {
  opacity: 0;
  transform: translateY(var(--anim-offset));
}

[data-animate].is-visible .anim-item {
  animation: fadeUp var(--anim-duration) var(--anim-ease) both;
}

[data-animate].is-visible .anim-item:nth-child(1) {
  animation-delay: 0ms;
}
[data-animate].is-visible .anim-item:nth-child(2) {
  animation-delay: var(--anim-stagger);
}
[data-animate].is-visible .anim-item:nth-child(3) {
  animation-delay: calc(var(--anim-stagger) * 2);
}
[data-animate].is-visible .anim-item:nth-child(4) {
  animation-delay: calc(var(--anim-stagger) * 3);
}
[data-animate].is-visible .anim-item:nth-child(5) {
  animation-delay: calc(var(--anim-stagger) * 4);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] .anim-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ═══ SPACING — jedyne źródło prawdy dla odstępów sekcji ═══
   Zasada: TYLKO padding-top = odstęp między sekcjami nigdy się
   nie sumuje. Odległość sekcja→sekcja = zawsze jedna wartość.
   ─────────────────────────────────────────────────────────────── */

/* Jasne sekcje v2 — góra mniejsza (header dodaje własny margines), dół większy */
.section-product,
.section-proces,
.section-dlaczego,
.section-pochodzenie,
.section-produkty,
.section-o-nas,
.section-opinie,
.section-faq,
.section-video-split,
.section-trust-bar,
.section-kontakt {
  padding-top: clamp(2rem, 3.5vw, 3rem);
  padding-bottom: var(--section-spacing);
}

/* Ciemne sekcje — margin tworzy białą przestrzeń na zewnątrz ciemnego tła,
   padding odpowiada za oddech wewnętrzny */
.section-comparison,
.section-lead-magnet {
  margin-top: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
  padding-top: clamp(2rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 3vw, 2.5rem);
}

/* Nagłówek sekcji → treść */
.section-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Lead magnet ma własny kontener nagłówkowy */
.lead-magnet__content {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* ── DARK SECTIONS — text inversions ────────────────────────────────────
   Tekst biały, akcenty złote na czarnym tle.
   ───────────────────────────────────────────────────────────────────── */
.section-comparison .section-title,
.section-comparison .section-desc,
.section-about .section-title,
.section-about .section-desc,
.section-porownanie .section-title,
.section-porownanie .section-desc,
.section-dla-sklepow .section-title,
.section-dla-sklepow .section-desc {
  color: var(--text-on-dark);
}

.section-comparison .section-label,
.section-about .section-label,
.section-porownanie .section-label,
.section-dla-sklepow .section-label {
  color: var(--color-accent);
}

.section-comparison .section-desc,
.section-about .section-desc,
.section-porownanie .section-desc,
.section-dla-sklepow .section-desc {
  color: var(--text-on-dark-muted);
}

/* ─── Scroll Reveal — sekcje wsuwają się od dołu ─── */
.reveal-section {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.reveal-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
