/* ============================================================
   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);
}

/* 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: var(--drawer-width); /* nie kryj drawera — workaround stacking context conflict */
  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: 639px) {
  .btn-sticky {
    bottom: calc(1.25rem + 44px + 0.625rem);
    right: 1.25rem;
    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-lg);
  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: #C0A231;
  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;
}

/* ── Language switcher dropdown ────────────────────────────── */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.lang-switcher__trigger:hover {
  border-color: var(--border-medium);
  background: var(--color-grey-50);
}

.lang-switcher__trigger[aria-expanded="true"] {
  border-color: var(--border-medium);
  background: var(--color-grey-50);
}

.lang-switcher__trigger[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__globe {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.lang-switcher__current {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
}

.lang-switcher__chevron {
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.lang-switcher__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 80px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  z-index: 200;
}

.lang-switcher__menu.is-open {
  display: block;
}

.lang-switcher__option {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-align: center;
  transition: color var(--transition);
  text-decoration: none;
}

.lang-switcher__option:hover {
  color: var(--text-primary);
}

.lang-switcher__option--active {
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

/* ── 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 640px+
   ───────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .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;
  }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE-ONLY NAV ELEMENTS (<640px)
   ───────────────────────────────────────────────────────────── */

/* CTA ukryte na mobile — dostępne w drawerze */
@media (max-width: 639px) {
  .nav__enquiry-btn {
    display: none;
  }
}

/* Ikona telefonu — tylko na mobile, jako primary tap-target */
.nav__phone-icon-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  flex-shrink: 0;
  text-decoration: none;
}

.nav__phone-icon-mobile:hover {
  color: var(--color-gold);
}

@media (max-width: 639px) {
  .nav__phone-icon-mobile {
    display: flex;
  }
}

/* CTA w drawerze — złoty, wyróżniony, na końcu */
.nav__drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--gap-md);
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: filter var(--transition);
}

.nav__drawer-cta:hover {
  filter: brightness(0.9);
  color: var(--color-white);
}

/* ─────────────────────────────────────────────────────────────
   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;
  }
}
