/* =========================================================================
   HO3 Home One — Wspólny system projektowy (design system)
   Ten plik jest identyczny na wszystkich 5 stronach. Kolory akcentu
   nadpisuje per-strona plik theme.css (zmienne --accent* w :root).
   Bez zewnętrznych zależności (fonty systemowe, brak CDN) — pełna
   samodzielność paczki i zgodność z prywatnością/RODO.
   ========================================================================= */

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
:target { scroll-margin-top: 90px; }

/* --- Tokeny -------------------------------------------------------------- */
:root {
  /* Motyw nadpisuje te trzy zestawy (fallback = woda/niebieski) */
  --accent:        #0ea5b7;
  --accent-dark:   #0b7d8a;
  --accent-soft:   #e6f7f9;
  --hero-1:        #0ea5b7;
  --hero-2:        #0b6f8f;

  /* Neutralne */
  --ink:      #0f172a;
  --ink-soft: #334155;
  --muted:    #64748b;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-alt:   #f6f9fb;
  --white:    #ffffff;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.14);

  --radius:    16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  --maxw: 1160px;
  --gutter: clamp(18px, 5vw, 40px);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* --- Baza ---------------------------------------------------------------- */
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--accent-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 7px 14px; border-radius: 999px;
}
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); margin-top: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* --- Przyciski ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; box-shadow: 0 10px 24px -8px var(--accent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px var(--accent); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-dark); }
.btn--light { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }
.btn--lg { padding: 19px 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* --- Header / nawigacja --------------------------------------------------
   Nieprzezroczyste tło: półprzezroczystość z rozmyciem sprawiała, że tekst
   menu wyglądał na nieostry na tle przewijanej treści.
   Każdy element menu ma white-space: nowrap — wcześniej pozycje łamały się
   na dwie linie i menu wyglądało na rozjechane.                            */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 74px; }

.brand {
  display: flex; align-items: center; gap: 12px;
  flex: none; white-space: nowrap;
  font-weight: 800; letter-spacing: -0.02em;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}
.brand img.logo, .brand svg { width: auto; height: 27px; flex: none; }
.brand .name {
  font-size: clamp(.92rem, 1.05vw, 1.05rem);
  line-height: 1.25; color: var(--ink);
}
.brand .name b { color: var(--accent-dark); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  white-space: nowrap;
  font-weight: 600; font-size: .94rem; color: var(--ink-soft);
  padding: 9px 13px; border-radius: 9px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--accent-dark); }
/* przycisk w nagłówku jest jednocześnie .btn i .nav-cta */
.nav-cta { flex: none; margin-left: 10px; white-space: nowrap; padding: 13px 22px; font-size: .95rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 11px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink);
}
.nav-toggle:hover { background: var(--bg-alt); }
.nav-toggle svg { width: 24px; height: 24px; }

/* przyciski nigdy nie łamią tekstu w środku */
.btn { white-space: nowrap; }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(50% 50% at 5% 90%, rgba(255,255,255,.14), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 7px 15px; border-radius: 999px; font-size: .84rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin-top: 20px; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.28rem); margin-top: 20px; color: rgba(255,255,255,.92); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px 26px; margin-top: 30px; font-size: .92rem; color: rgba(255,255,255,.9); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; flex: none; }
.hero-media { position: relative; }
.hero-media .device-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.hero-media img, .hero-media svg { border-radius: var(--radius); width: 100%; }
.hero-price-tag {
  position: absolute; bottom: -30px; left: -10px;
  max-width: 250px;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 11px 16px; box-shadow: var(--shadow-lg);
}
.hero-price-tag small { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; line-height: 1.45; }
.hero-price-tag b { display: block; font-size: 1.35rem; color: var(--accent-dark); line-height: 1.2; }
@media (max-width: 900px) {
  .hero-price-tag { position: static; max-width: none; margin-top: 14px; }
}

/* --- Pasek zaufania ------------------------------------------------------ */
.trustbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.trustbar ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 22px; }
.trustbar li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.trustbar svg { width: 24px; height: 24px; color: var(--accent); flex: none; }

/* --- Karty / grid -------------------------------------------------------- */
.grid { display: grid; gap: clamp(18px, 2.5vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 18px;
}
.card .icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); margin-top: 10px; font-size: .98rem; }

/* --- Statystyki / liczby ------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 24px 14px; }
.stat b { display: block; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--accent-dark); letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: .95rem; font-weight: 600; }

/* --- Split / feature z obrazem ------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img, .split-media svg { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; background: var(--bg-alt); }
.split-body h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.split-body p { color: var(--ink-soft); margin-top: 16px; }
.checklist { margin-top: 22px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.checklist b { color: var(--ink); }

/* --- Obraz z etykietą "dodaj zdjęcie" ------------------------------------ */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.photo img { width: 100%; }

/* --- Porównanie ---------------------------------------------------------- */
.compare { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .98rem; }
.compare thead th { background: var(--bg-alt); font-weight: 700; }
.compare thead th:last-child { color: var(--accent-dark); background: var(--accent-soft); }
.compare tbody td:first-child { font-weight: 600; color: var(--ink); }
.compare td.yes { color: var(--accent-dark); font-weight: 700; }
.compare td.no { color: var(--muted); }
.compare tr:last-child td { border-bottom: none; }
.compare-scroll { overflow-x: auto; }

/* --- Kalkulator (strona oszczędności) ------------------------------------ */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px,4vw,40px); box-shadow: var(--shadow-md); }
.calc label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 8px; }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); }
.calc .field { margin-bottom: 22px; }
.calc .val { color: var(--accent-dark); font-weight: 800; }
.calc-result { text-align: center; padding: 26px; border-radius: var(--radius); background: var(--accent-soft); margin-top: 6px; }
.calc-result b { display: block; font-size: clamp(2rem, 6vw, 3rem); color: var(--accent-dark); letter-spacing: -0.03em; }
.calc-result span { color: var(--ink-soft); font-weight: 600; }

/* --- Kroki --------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin-top: 4px; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 1.04rem; text-align: left; }
.faq-q .chev { flex: none; width: 22px; height: 22px; transition: transform .2s ease; color: var(--accent); }
.faq-item[open] .faq-q .chev, .faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 22px 22px; color: var(--ink-soft); }
.faq-a p { margin-top: 0; }

/* --- Pasek CTA ----------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; color: #fff; text-align: center; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px) var(--gutter); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-band p { margin: 16px auto 0; max-width: 56ch; color: rgba(255,255,255,.92); font-size: 1.08rem; }
.cta-band .hero-actions { justify-content: center; }

/* --- Stopka -------------------------------------------------------------- */
.site-footer { background: #0b1220; color: #cbd5e1; padding-block: 56px 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer p { color: #94a3b8; font-size: .94rem; margin-top: 14px; max-width: 42ch; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; font-size: .94rem; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .84rem; color: #64748b; }
.site-footer .disclaimer { font-size: .8rem; color: #64748b; margin-top: 18px; line-height: 1.6; }

/* --- Sticky mobilny CTA -------------------------------------------------- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(15,23,42,.08); }

/* --- Animacje wejścia ----------------------------------------------------
   Treść jest widoczna DOMYŚLNIE. Ukrywamy ją tylko, gdy działa JS (klasa
   .js na <html> dodawana inline w <head>), więc bez JS strona jest pełna. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* --- Responsywność ------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  /* reguły menu są w osobnym bloku poniżej (próg 1080 px) */
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
}

/* =========================================================================
   v2 — artykuł sponsorowany: oznaczenie, ramka „W skrócie", logo
   ========================================================================= */

/* --- Pasek oznaczenia materiału promocyjnego -----------------------------
   Musi być czytelny od razu po wejściu, NAD nagłówkiem strony.            */
/* Oznaczenie musi być jednoznaczne i czytelne, ale nie musi krzyczeć.
   Wersja stonowana: jasne tło, grafitowa etykieta zamiast alarmowej żółtej,
   jedno zdanie zamiast trzech. Progi z Rekomendacji UOKiK zachowane:
   etykieta 14 px, zdanie 15 px, kontrast znacznie powyżej 4,5:1.        */
.ad-disclosure {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.5;
  padding: 9px 0;
}
.ad-disclosure .wrap { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.ad-disclosure .tag {
  flex: none;
  background: #475569;
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .01em;
  padding: 4px 10px;
  border-radius: 5px;
}
.ad-disclosure p { margin: 0; color: var(--ink-soft); }
.ad-disclosure b { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) {
  .ad-disclosure { font-size: .94rem; padding: 8px 0; }
  .ad-disclosure .wrap { gap: 8px; }
}

/* --- Ramka „W skrócie" (kluczowa dla wyszukiwarek AI) -------------------- */
.tldr {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 34px);
}
.tldr h2 {
  font-size: 1.15rem;
  display: flex; align-items: center; gap: 10px;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.tldr h2 svg { width: 22px; height: 22px; flex: none; }
.tldr ul { display: grid; gap: 11px; }
.tldr li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); }
.tldr li svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 3px; }
.tldr li b { color: var(--ink); }
.tldr .updated { margin-top: 18px; font-size: .87rem; color: var(--muted); }

/* --- Logo w nagłówku i stopce ------------------------------------------- */
.brand img.logo { width: auto; height: 30px; display: block; color: var(--ink); }
.site-footer .brand img.logo { height: 28px; }

/* --- COMPLIANCE C5: czytelność oznaczenia reklamowego --------------------
   Domyślne .78rem (~12,5 px) jest poniżej progu wskazanego w Rekomendacjach
   UOKiK. Minimum: 14 px desktop / 13 px mobile, zdanie min. 15 px.          */
.link-disclosure {
  font-size: .88rem; color: var(--ink-soft); margin-top: 10px;
  border-left: 3px solid var(--accent); padding-left: 12px;
}
.publisher address { font-style: normal; color: #94a3b8; font-size: .9rem; line-height: 1.85; }
.publisher address b { color: #e2e8f0; }
.publisher a { color: #cbd5e1; text-decoration: underline; }

/* =========================================================================
   Dostępność (WCAG 2.1 AA) i typografia — przebieg finalny
   ========================================================================= */

/* --- Link pomijający nawigację (WCAG 2.4.1) ------------------------------ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-dark); color: #fff;
  padding: 12px 22px; border-radius: 0 0 10px 0;
  font-weight: 700; font-size: 1rem;
}
.skip-link:focus { left: 0; }

/* --- Widoczny stan skupienia (WCAG 2.4.7) -------------------------------- */
:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.cta-band :focus-visible,
.ad-disclosure :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

/* --- Tekst tylko dla czytników ekranu ------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Typografia: równe łamanie i cyfry o stałej szerokości --------------- */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, figcaption, dd { text-wrap: pretty; }
p, li, td, th, h1, h2, h3 { overflow-wrap: break-word; }
.compare td, .compare th,
.stat b, .calc-result b, .hero-price-tag b { font-variant-numeric: tabular-nums; }

/* --- Nagłówki kolumn w stopce (poziom h2 dla poprawnej struktury) -------- */
.site-footer .footer-h {
  color: #fff; font-size: .95rem; margin-bottom: 14px;
  letter-spacing: 0; font-weight: 700;
}

/* --- Powiększone pola dotykowe na telefonie (WCAG 2.5.5) ----------------- */
@media (max-width: 900px) {
  .nav-links a, .site-footer a { display: inline-block; padding-block: 10px; }
}

/* =========================================================================
   Menu na węższych ekranach — próg 1080 px
   Powyżej: pełne menu poziome. Poniżej: panel rozwijany hamburgerem.
   Próg jest wyższy niż typowe 900 px, bo przy siedmiu pozycjach menu
   zaczynało się zagęszczać już na laptopach.
   ========================================================================= */
@media (max-width: 1080px) {
  .nav { min-height: 66px; gap: 14px; }
  /* logo i nazwa muszą zmieścić się w jednym wierszu razem z hamburgerem,
     inaczej przycisk spada pod spód i zostaje pusta luka */
  .brand { border-right: 0; padding-right: 0; min-width: 0; gap: 10px; }
  .brand img.logo, .brand svg { height: 24px; }
  .brand .name {
    font-size: .92rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Panel rozwijany: lista i przycisk są rodzeństwem, więc zamiast
     pozycjonowania absolutnego pozwalamy im zawinąć się pod pasek. */
  .nav[data-open="true"] { flex-wrap: wrap; padding-bottom: 16px; }
  .nav[data-open="true"] .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    order: 3; width: 100%; margin-top: 10px;
    border-top: 1px solid var(--line); padding-top: 8px;
    max-height: 60dvh; overflow-y: auto;
  }
  .nav[data-open="true"] .nav-links a {
    display: block; padding: 15px 12px; border-radius: 10px;
    font-size: 1.02rem; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav[data-open="true"] .nav-links li:last-child a { border-bottom: 0; }
  .nav[data-open="true"] .nav-cta {
    display: flex; order: 4; width: 100%; margin: 12px 0 0;
    padding: 16px 22px; font-size: 1rem;
  }
}

/* pasek nawigacji musi być punktem odniesienia dla panelu */
.site-header .nav { position: relative; }

/* =========================================================================
   Konwersja — przejście do sklepu producenta
   Celem materiału jest skierowanie czytelnika do sklepu ho3filtry.pl,
   więc stopka zaczyna się od wyraźnego bloku przejścia, a nie od linków.
   ========================================================================= */
.footer-cta {
  display: grid;
  /* max-content dla kolumny z przyciskami — przy „auto" pigułki były węższe
     niż ich tekst i napis wychodził poza tło */
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.6vw, 40px);
  margin-bottom: clamp(36px, 5vw, 56px);
}
.footer-cta h2 {
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  margin: 0;
}
.footer-cta p {
  color: rgba(255, 255, 255, .93);
  margin-top: 10px;
  max-width: 54ch;
  font-size: 1rem;
}
.footer-cta .actions {
  display: flex; flex-direction: column; gap: 12px;
  min-width: 264px;
}
.footer-cta .actions .btn { width: 100%; flex-wrap: nowrap; }
.footer-cta .btn--primary {
  background: #fff; color: var(--accent-dark);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5);
}
.footer-cta .btn--primary:hover { background: #fff; color: var(--accent-dark); }
.footer-cta .btn--light { border-color: rgba(255, 255, 255, .5); }
.footer-cta .reassure {
  color: rgba(255, 255, 255, .9);
  font-size: .86rem; margin-top: 2px; text-align: center;
}
@media (max-width: 780px) {
  .footer-cta { grid-template-columns: 1fr; }
  .footer-cta .actions .btn { width: 100%; }
}

/* --- Wzmocnienie pod głównym przyciskiem --------------------------------- */
.cta-reassure {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 14px; font-size: .88rem;
}
.hero .cta-reassure { color: rgba(255, 255, 255, .88); }
.cta-band .cta-reassure { color: rgba(255, 255, 255, .88); justify-content: center; }
.cta-reassure li { display: flex; align-items: center; gap: 7px; }
.cta-reassure svg { width: 16px; height: 16px; flex: none; }

/* --- Przyklejony pasek na telefonie: cena obok przycisku ----------------- */
.mobile-cta .inner { display: flex; align-items: center; gap: 12px; }
.mobile-cta .price { flex: none; line-height: 1.15; }
.mobile-cta .price b { display: block; font-size: 1.05rem; color: var(--accent-dark); }
.mobile-cta .price small { color: var(--muted); font-size: .72rem; }
.mobile-cta .btn { flex: 1; }

/* --- Kolizja kaskady: przyciski w stopce ---------------------------------
   `.site-footer a` (0,1,1) wygrywa z `.btn` (0,1,0), więc przyciski w stopce
   traciły padding, rozmiar czcionki i układ flex — tekst wychodził poza
   pigułkę. Podnosimy specyficzność dla elementów z klasą .btn.            */
.site-footer a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 16px 26px; font-size: 1rem; font-weight: 700;
  line-height: 1; border-radius: 999px;
}
.site-footer a.btn--lg { padding: 19px 34px; font-size: 1.06rem; }
.site-footer .footer-cta a.btn--primary { color: var(--accent-dark); background: #fff; }
.site-footer .footer-cta a.btn--light { color: #fff; }
@media (max-width: 900px) {
  .site-footer a.btn { padding-block: 16px; }
  .site-footer a.btn--lg { padding-block: 19px; }
}
