/* ============================================================
   Proste Opinie — arkusz stylów
   ============================================================ */

:root{
  /* ---- Paleta wg prawdziwego logo (assets/logo-badge.png) — kolory
     spróbkowane bezpośrednio z pliku, nie "na oko":
     tło #F6FAFD, niebieski tekstu "OPINIE" #0052F5, granat "PROSTE"/
     czarna tabliczka #0A1428, złote gwiazdki #F2B400. ---- */
  --navy: #0A1428;
  --blue: #0052F5;
  --blue-light: #2F9CFC;
  --blue-dark: #0040C4;
  --gold: #E8AC0C;
  --gold-light: #F5C94D;
  --gold-dark: #B3830A;
  --star-gold: #F2B400;
  /* ---- Hairline system (styl referencyjny: jasne tło, szeptane
     nagłówki, cienkie 1px obwódki zamiast cieni) — chłodny, jasny
     błękit zamiast ciepłego kremu, żeby pasować do tła logo.
     --cream = główne tło strony; --taupe = drugorzędna, lekko
     ciemniejsza warstwa (pasy sekcji, karty); --line = cienka 1px
     obwódka (hairline). ---- */
  --cream: #F6FAFD;
  --taupe: #EAF1F8;
  --paper: #FFFFFF;
  --ink: #10151F;
  --muted: #5B6472;
  --line: #DCE7F0;
  --green: #1F8F5E;
  --radius-card: 20px;
  --radius-tag: 22px;
  --shadow: 0 1px 1px rgba(10,20,40,0.04), 0 8px 20px -14px rgba(10,20,40,0.16);
  --maxw: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Bardzo subtelna ziarnista faktura na całej stronie — to samo podejście co
   .texture-dots (gradient, nie SVG/obrazek — unikamy w ten sposób błędów
   renderowania filtrów SVG jako tła), tylko drobniejsza i słabsza, żeby dać
   stronie "fizyczne", mniej płaskie wrażenie bez przeszkadzania w czytaniu. */
body::before{
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(10,20,40,0.6) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  opacity: 0.045;
}
/* "Szeptane" nagłówki — bardzo lekka waga (300) zamiast pogrubionego szeryfu.
   Autorytet przez powściągliwość, nie przez grubość — stąd też mocno
   ściśnięty tracking na dużych rozmiarach (im większy tekst, tym ciaśniej). */
h1, h2, h3, h4{
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3, h4{ letter-spacing: -0.01em; }
p{ margin: 0 0 1em; }
a{ color: inherit; }
img{ max-width: 100%; display: block; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section{ padding: 96px 0; }
@media (max-width: 720px){
  section{ padding: 64px 0; }
  .container{ padding: 0 20px; }
}

.eyebrow{ display:none; } /* explicitly avoided per design guidance */

/* Subtelna kropkowana faktura dla płaskich, jednokolorowych sekcji (zamiast
   pustego tła) — CSS-owy gradient, nie obrazek/SVG (unikamy w ten sposób
   błędów renderowania filtrów SVG jako tła). Bardzo niska intensywność,
   żeby nie przeszkadzała w czytaniu tekstu. */
.texture-dots{ position: relative; }
.texture-dots::before{
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(10,20,40,0.09) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.9) 18%, rgba(0,0,0,0.9) 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.9) 18%, rgba(0,0,0,0.9) 82%, transparent);
}
.texture-dots > .container{ position: relative; z-index: 1; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--gold);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(200,134,46,0.45);
}
.btn-primary:hover{ background: var(--gold-dark); }
.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: inherit;
}
.btn-outline:hover{ border-color: rgba(255,255,255,0.7); }
.btn-dark{
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover{ background: #142544; }
.btn-block{ width: 100%; }

/* ---------- Header ---------- */
header.site{
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background .3s ease;
}
header.site.is-scrolled{
  background: rgba(255,255,255,0.97);
  box-shadow: 0 10px 30px -20px rgba(10,20,40,0.4);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.nav.container{ max-width: 1360px; }
.logo{
  display: flex; align-items: center; gap: 10px;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none; color: var(--navy);
}
/* Prawdziwe logo (assets/favicon-32.png — tabliczka NFC + fale, ten sam plik
   co favicon) jako tło, zamiast gradientowego kwadratu z literami "PO".
   Tekst "PO" zostaje w znaczniku (HTML się nie zmienia na ~10 stronach,
   które go używają) ale jest wizualnie ukryty — font-size:0 zamiast
   usuwania z DOM, żeby nie ruszać markupu w tylu miejscach naraz. */
.logo-mark{
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--paper) url('assets/logo-icon-64.png') center/70% no-repeat;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 0;
}
.nav-links{ display: flex; gap: 26px; align-items: center; }
.nav-links a{ text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover{ color: var(--blue); }
.nav-links .mobile-only-navlink{ display: none; }
.nav-cta{ display:flex; align-items:center; gap: 18px; }
.nav-cta .panel-nav-link{ white-space: nowrap; }
.cart-btn{
  position: relative; background: none; border: none; padding: 6px;
  display: flex; align-items: center; justify-content: center;
}
.cart-count{
  position: absolute; top: -4px; right: -6px;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.nav-toggle{ display: none; background: none; border: none; padding: 6px; flex: none; }
@media (max-width: 1150px){
  .nav-links{ display: none; }
  .nav-toggle{ display: block; }
  .nav-links .mobile-only-navlink{
    display: block; margin-top: 6px; padding-top: 14px;
    border-top: 1px solid #DCE3D9; font-weight: 700; color: var(--navy);
  }
}
@media (max-width: 480px){
  .nav{ padding: 12px 0; }
  .logo{ font-size: 17px; gap: 8px; }
  .logo-mark{ width: 30px; height: 30px; font-size: 13px; flex: none; }
  .panel-nav-link{ display: none; }
  .nav-cta{ gap: 8px; }
  .nav-cta .btn-primary{ padding: 10px 16px; font-size: 13.5px; white-space: nowrap; }
  .cart-btn{ padding: 4px; }
  .cart-btn svg{ width: 20px; height: 20px; }
  .nav-toggle svg{ width: 21px; height: 21px; }
}
@media (max-width: 360px){
  .nav-cta{ gap: 6px; }
  .nav-cta .btn-primary{ padding: 9px 12px; font-size: 12.5px; }
  .cart-btn{ display: none; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 76px 0 90px;
  background: radial-gradient(circle at 82% 18%, rgba(0,82,245,0.12), transparent 55%), var(--cream);
  overflow: hidden;
}
/* Druga, wolno dryfująca plama koloru w przeciwnym rogu — sama statyczna
   .hero już ma jedną (wyżej), ale bez ruchu tło czuje się "martwe" od
   pierwszej sekundy. Bardzo niska intensywność, żeby nie odciągać uwagi
   od tekstu/CTA. */
.hero::after{
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 8% 88%, rgba(200,134,46,0.14), transparent 45%);
  animation: heroDrift 16s ease-in-out infinite;
}
.hero > .container{ position: relative; z-index: 1; }
@keyframes heroDrift{
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce){ .hero::after{ animation: none; } }
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,134,46,0.12); color: var(--gold-dark);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 18px;
}
.hero-eyebrow-dot{ position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
/* "Radar ping" wychodzący z kropki — sygnalizuje "to żywy, aktualny system",
   nie tylko statyczna etykieta. */
.hero-eyebrow-dot::after{
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--gold); opacity: 0.7;
  animation: eyebrowPing 2.2s ease-out infinite;
}
@keyframes eyebrowPing{
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){ .hero-eyebrow-dot::after{ animation: none; display: none; } }
.hero h1{ font-size: clamp(36px, 4.9vw, 58px); letter-spacing: -0.015em; color: var(--navy); max-width: 15ch; }
@media (max-width: 480px){
  .hero h1{ font-size: 28px; max-width: 21ch; }
}
.hero .lede{ font-size: 18.5px; color: var(--muted); max-width: 46ch; margin-bottom: 30px; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust{ display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.hero-trust li{ display:flex; align-items:center; gap:8px; }
.dot-check{
  width: 18px; height: 18px; border-radius: 50%; background: var(--green);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size: 11px; flex: none;
}

/* ---------- Hero product photography ---------- */
.stage{ display:flex; align-items:center; justify-content:center; position: relative; min-height: 380px; }
.hero-glow{
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,82,245,0.22) 0%, transparent 70%);
  z-index: 0;
}
.hero-photo-main{
  width: 300px; border-radius: 26px; box-shadow: var(--shadow);
  transform: rotate(-2deg); position: relative; z-index: 2;
  background: linear-gradient(155deg, #fff 0%, var(--cream) 100%);
  padding: 9px;
}
/* Przycinanie (overflow:hidden) jest na WEWNĘTRZNYM wrapperze, nie na
   .hero-photo-main — dzięki temu .hero-float-badge (dziecko .hero-photo-main,
   ale POZA .hero-photo-main-inner) może "wystawać" poza zdjęcie zamiast być
   ucinany przez zaokrąglone rogi. Dodatkowy padding na zewnętrznej "ramce"
   (.hero-photo-main) + mniejszy promień na wewnętrznej daje efekt osadzonej
   "szybki" w oprawie (double-bezel), zamiast płaskiego zdjęcia na krawędzi. */
.hero-photo-main-inner{
  border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(10,20,40,0.18), inset 0 0 0 1px rgba(10,20,40,0.07);
}
.hero-photo-main img{ width: 100%; height: 100%; object-fit: cover; display:block; }
.hero-photo-side{
  position: absolute; bottom: -22px; left: -18px; width: 132px;
  border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -14px rgba(0,0,0,0.45);
  transform: rotate(6deg); z-index: 3; text-decoration: none; display: block;
  border: 4px solid var(--paper);
}
.hero-photo-side img{ width: 100%; display: block; }
.hero-photo-side span{
  position: absolute; inset: auto 0 0 0; background: rgba(14,27,51,0.82); color: #fff;
  font-size: 10.5px; font-weight: 600; padding: 6px 8px; text-align: center; line-height: 1.25;
}
@media (max-width: 560px){
  .hero-photo-main{ width: 230px; }
  .hero-photo-side{ width: 100px; left: -10px; bottom: -16px; }
}
/* Pływająca "kartka" nad zdjęciem — daje warstwę/głębię zamiast płaskiego
   jednego zdjęcia na jednolitym tle, i wizualnie potwierdza obietnicę z hero. */
.hero-float-badge{
  position: absolute; top: -14px; right: -6px; z-index: 4;
  background: #fff; border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 16px 32px -14px rgba(10,20,40,0.35);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--navy);
  transform: rotate(3deg);
}
.hero-float-badge svg{ flex: none; color: var(--gold); }
@media (max-width: 560px){ .hero-float-badge{ padding: 8px 11px; font-size: 12px; top: -10px; right: -4px; } }

/* ---------- Stats strip ---------- */
.stats-strip{
  background: var(--navy); color: #fff; padding: 46px 0;
}
.stats-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
@media (max-width: 900px){ .stats-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .stats-grid{ grid-template-columns: 1fr; gap: 28px; } }
/* Ikona nad każdą liczbą — gołe cyfry na ciemnym tle wyglądały ubogo, samo
   dodanie małej bursztynowej plakietki daje sekcji ciężar wizualny zbliżony
   do reszty strony (karty z ikonami wszędzie indziej). */
.stat-icon{
  width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(227,179,104,0.16); color: var(--gold-light);
  transition: transform .25s ease, background .25s ease;
}
.stats-grid > div:hover .stat-icon{ transform: translateY(-3px) scale(1.06); background: rgba(227,179,104,0.26); }
.stat-num{ font-family: "Inter", sans-serif; font-weight: 300; letter-spacing: -0.02em; font-size: 40px; color: var(--gold-light); }
.stat-label{ font-size: 14.5px; color: rgba(255,255,255,0.75); max-width: 26ch; margin: 6px auto 0; }

/* ---------- Podgląd rankingu Google (w pasku statystyk) ----------
   Pokazuje, jak wygląda prawdziwa funkcja panelu klienta (ocena Google +
   pozycja na tle konkurencji w wybranym promieniu — patrz
   INSTRUKCJA-GOOGLE-OCENA-I-RANKING.md), żeby "system" był widoczny na
   pierwszy rzut oka na stronie głównej, a nie tylko opisany słowami.
   Dane w środku są przykładowe (wyraźnie podpisane), nie prawdziwe. */
.ranking-preview{
  margin-top: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-card);
  padding: 30px 30px 26px;
}
.ranking-preview-tag{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 20px;
}
.ranking-preview-tag .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); flex: none; }

.ranking-preview-grid{ display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 32px; align-items: center; }
@media (max-width: 780px){ .ranking-preview-grid{ grid-template-columns: 1fr; gap: 24px; } }

.ranking-preview-hero{ display: flex; align-items: center; gap: 18px; }
.ranking-preview-value{ font-family: "Inter", sans-serif; font-weight: 300; letter-spacing: -0.02em; font-size: 52px; color: #fff; line-height: 1; flex: none; }
.ranking-preview-label{ font-size: 14.5px; font-weight: 700; color: #fff; }
.ranking-preview-stars{ color: var(--star-gold); font-size: 17px; letter-spacing: 2px; margin: 3px 0; }
.ranking-preview-sub{ font-size: 12.5px; color: rgba(255,255,255,0.65); }

.ranking-preview-table{ width: 100%; border-collapse: collapse; font-size: 13.5px; color: rgba(255,255,255,0.85); }
.ranking-preview-table th{
  text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.5); padding: 0 12px 9px;
}
.ranking-preview-table td{ padding: 9px 12px; border-top: 1px solid rgba(255,255,255,0.12); }
.ranking-preview-table tr.is-self td{ color: #fff; font-weight: 700; background: rgba(227,179,104,0.14); }
.ranking-preview-table tr.is-self td:first-child{ border-radius: 8px 0 0 8px; }
.ranking-preview-table tr.is-self td:last-child{ border-radius: 0 8px 8px 0; }

.ranking-preview-note{ margin: 22px 0 0; font-size: 12.5px; color: rgba(255,255,255,0.6); max-width: 66ch; line-height: 1.6; }

/* ---------- Demo panelu klienta (na stronie głównej) ----------
   Te same elementy (avg-rating-hero, stat-cards, chart-box) i te same
   kolory/dane co w prawdziwym panel-klienta.html, tylko ze sztywno
   wpisanymi przykładowymi liczbami zamiast prawdziwych z Supabase —
   pokazuje odwiedzającemu, jak wygląda panel, zanim się zaloguje. */
.demo-panel-section{ background: var(--paper); padding: 100px 0; }
.demo-panel-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px){ .demo-panel-grid{ grid-template-columns: 1fr; } }

.demo-panel-card{
  background: var(--paper); border-radius: var(--radius-card); padding: 26px;
  box-shadow: 0 1px 2px rgba(10,20,40,0.03), 0 14px 32px -24px rgba(10,20,40,0.22);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.demo-panel-card-title{ font-size: 18px; color: var(--navy); margin: 20px 0 8px; }
.demo-panel-card-text{ color: var(--muted); font-size: 14.5px; margin: 0; }
.demo-chart-box{ height: 220px; margin-bottom: 4px; }

/* avg-rating-hero / stat-cards — te same klasy i te same wartości co w
   panel-klienta.html (renderStatCards), skopiowane tu 1:1. */
.avg-rating-hero{
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border-radius: var(--radius-card);
  padding: 22px 24px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 16px 36px -18px rgba(217,119,6,0.55);
}
.avg-rating-hero::before{
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 92% -20%, rgba(255,255,255,0.25), transparent 55%),
    radial-gradient(circle at 6% 130%, rgba(255,255,255,0.12), transparent 50%);
  pointer-events: none;
}
.avg-rating-hero > *{ position: relative; z-index: 1; }
.avg-rating-value{ font-size: 46px; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1; }
.avg-rating-details{ display: flex; flex-direction: column; gap: 2px; }
.avg-rating-label{ font-size: 13.5px; color: rgba(255,255,255,0.92); font-weight: 700; }
.avg-rating-stars{ font-size: 18px; color: #fff; letter-spacing: 2px; line-height: 1.3; }
.avg-rating-sub{ font-size: 12px; color: rgba(255,255,255,0.75); }

.stat-cards{ display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat-card{
  position: relative; overflow: hidden;
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 16px 14px;
}
.stat-card::before{
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent1, var(--blue)), var(--accent2, var(--navy)));
}
.stat-card-icon{
  width: 30px; height: 30px; border-radius: 9px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: linear-gradient(135deg, var(--accent1, var(--blue)), var(--accent2, var(--navy)));
  box-shadow: 0 6px 14px -8px rgba(10,20,40,0.5);
}
.stat-card .label{ font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.stat-card .value{ font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.2px; }

/* Wersja bardziej ścieśniona (4 kafelki w jednym rzędzie, węższa karta niż
   w pełnym panelu klienta). */
.demo-stat-cards{ grid-template-columns: repeat(4, 1fr); gap: 8px; }
.demo-stat-cards .stat-card{ padding: 10px 8px 9px; border-radius: 10px; }
.demo-stat-cards .stat-card-icon{ width: 22px; height: 22px; border-radius: 7px; font-size: 11px; margin-bottom: 6px; }
.demo-stat-cards .label{ font-size: 9.5px; line-height: 1.25; margin-bottom: 3px; }
.demo-stat-cards .value{ font-size: 14px; }
@media (max-width: 480px){ .demo-stat-cards{ grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section headings ---------- */
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 38px); color: var(--navy); }
.section-head p{ color: var(--muted); font-size: 16.5px; }
.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Features ---------- */
/* Bento zamiast sześciu identycznych kart: pierwsza (najważniejsza — NFC)
   jest wyraźnie większa i ma inne tło, reszta układa się dookoła niej.
   grid-auto-flow: dense pozwala mniejszym kartom "opłynąć" tę dużą. */
.features-grid{ display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 20px; }
.feature:nth-child(1){ grid-column: span 2; grid-row: span 2; }
.feature:nth-child(2){ grid-column: span 2; }
@media (max-width: 880px){
  .features-grid{ grid-template-columns: 1fr 1fr; }
  .feature:nth-child(1), .feature:nth-child(2){ grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px){
  .features-grid{ grid-template-columns: 1fr; }
  .feature:nth-child(1), .feature:nth-child(2){ grid-column: span 1; }
}
.feature{
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px 24px; background: var(--paper);
  display: flex; flex-direction: column;
}
.feature:nth-child(1){
  padding: 34px 30px;
  background: linear-gradient(155deg, var(--cream) 0%, #fff 65%);
  justify-content: center;
}
.feature:nth-child(1) .icn{ width: 50px; height: 50px; border-radius: 14px; font-size: 22px; margin-bottom: 22px; }
.feature:nth-child(1) h3{ font-size: 22px; }
.feature:nth-child(1) p{ font-size: 15.5px; max-width: 34ch; }
.feature .icn{
  width: 42px; height: 42px; border-radius: 12px; background: var(--cream);
  display:flex; align-items:center; justify-content:center; margin-bottom: 18px; color: var(--blue); font-size: 19px; flex: none;
}
.feature h3{ font-size: 18.5px; color: var(--navy); margin-bottom: 8px; }
.feature p{ color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Product cards (sklep) ---------- */
.product-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 56px; }
@media (max-width: 720px){ .product-grid{ grid-template-columns: 1fr; } }
.product-card{
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px;
  background: var(--paper); display: flex; flex-direction: column;
}
.product-photo{ border-radius: 14px; overflow: hidden; margin-bottom: 18px; aspect-ratio: 4/3; background: var(--cream); }
.product-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card h3{ font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.product-card > p{ color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.product-price{ font-size: 15px; color: var(--navy); margin-bottom: 18px; }
.product-price strong{ font-family: "Inter", sans-serif; font-weight: 700; font-size: 19px; }
.product-actions{ display: flex; gap: 12px; margin-top: auto; align-items: center; flex-wrap: wrap; }
.product-actions .qty-control{ flex: none; }
.product-actions .btn{ flex: 1; white-space: nowrap; }

/* ---------- How it works ---------- */
/* Prawdziwy "timeline" zamiast trzech odseparowanych kart: pozioma linia
   przechodząca przez środki numerowanych kółek (na desktopie), plus lekkie
   przesunięcie środkowego kroku w pionie, żeby układ nie był idealnie
   symetryczny. Kółka mają tło = tło sekcji, więc linia "chowa się" pod nimi. */
.steps{ position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.steps::before{
  content: ''; position: absolute; top: 15px; left: calc(100%/6); right: calc(100%/6); height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  z-index: 0;
}
@media (max-width: 820px){ .steps{ grid-template-columns: 1fr; } .steps::before{ display: none; } }
.steps-4{ grid-template-columns: repeat(4, 1fr); }
.steps-4::before{ left: calc(100%/8); right: calc(100%/8); }
@media (max-width: 980px){ .steps-4{ grid-template-columns: 1fr 1fr; } .steps-4::before{ display: none; } }
@media (max-width: 480px){ .steps-4{ grid-template-columns: 1fr; } }
.step{ position: relative; padding-top: 8px; }
.step-num{
  font-family: "Inter", sans-serif; font-size: 15px; color: var(--gold); font-weight: 700;
  display:flex; align-items:center; gap: 10px; margin-bottom: 14px; position: relative; z-index: 1;
}
.step-num::before{
  content: attr(data-n); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold);
  display:flex; align-items:center; justify-content:center; font-size: 14px; background: var(--cream);
}
.step h3{ font-size: 19px; color: var(--navy); }
.step p{ color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing-wrap{
  background: var(--navy); border-radius: 28px; padding: 56px 48px; color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 900px){ .pricing-wrap{ grid-template-columns: 1fr; padding: 40px 26px; } }
.pricing-wrap h2{ color: #fff; font-size: clamp(26px,3vw,34px); }
.pricing-wrap .lede{ color: rgba(255,255,255,0.72); font-size: 15.5px; }
.tier-table{ width: 100%; border-collapse: collapse; }
.tier-table th, .tier-table td{ text-align: left; padding: 14px 10px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.tier-table th{ color: rgba(255,255,255,0.55); font-weight: 500; font-size: 13px; text-transform: none; }
.tier-table td strong{ color: var(--gold-light); font-family: "Inter", sans-serif; font-weight: 700; font-size: 17px; }
.tier-badge{ display:inline-block; margin-left:8px; font-size: 12px; background: rgba(227,179,104,0.22); color: var(--gold-dark); padding: 2px 9px; border-radius: 999px; }
/* Wiersz z najlepszą ceną (najwyższy próg ilości) podświetlony, żeby
   przyciągał wzrok — zamiast tabeli, w której wszystkie wiersze wyglądają
   identycznie i trzeba je porównywać samemu. Tabela jest posortowana rosnąco
   wg progu ilości (order.js), więc najlepsza cena to ZAWSZE ostatni wiersz. */
.tier-table tbody tr:last-child{ background: rgba(227,179,104,0.1); }
.tier-table tbody tr:last-child td:first-child{ border-left: 3px solid var(--gold-light); padding-left: 15px; }
.ship-note{ display:flex; gap:10px; align-items:flex-start; margin-top: 22px; font-size: 14.5px; color: rgba(255,255,255,0.85); }

/* ---------- Delivery/payment summary cards ---------- */
.dp-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px){ .dp-grid{ grid-template-columns: 1fr; } }
.dp-card{ border: 1px solid var(--line); border-radius: var(--radius-card); padding: 30px; background: var(--paper); }
.dp-card .icn{
  width: 44px; height: 44px; border-radius: 13px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; color: var(--blue); margin-bottom: 16px;
}
.dp-card h3{ color: var(--navy); font-size: 19px; }
.dp-card ul{ margin-top: 14px; }
.dp-card li{ padding: 7px 0; color: var(--muted); font-size: 15px; display:flex; gap:10px; }
.pay-icons{ display:flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pay-chip{ font-size: 12.5px; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq{ max-width: 780px; margin: 0 auto; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-q{
  width: 100%; text-align: left; background: none; border: none; padding: 22px 4px;
  display:flex; justify-content: space-between; align-items:center; gap: 20px;
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 17px; color: var(--navy);
}
.faq-q .plus{ font-size: 22px; color: var(--gold); transition: transform .2s ease; flex: none; }
.faq-item.open .faq-q .plus{ transform: rotate(45deg); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p{ padding: 0 4px 22px; color: var(--muted); font-size: 15px; max-width: 62ch; }

/* ---------- Order form ---------- */
.order-wrap{ display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: flex-start; }
@media (max-width: 900px){ .order-wrap{ grid-template-columns: 1fr; } }
.order-summary{ position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; background: var(--cream); }
.order-summary h3{ color: var(--navy); font-size: 19px; }
.qty-row{ display:flex; align-items:center; justify-content: space-between; gap: 14px; margin: 18px 0; }
.qty-control{ display:flex; align-items:center; border: 1px solid var(--line); border-radius: 999px; overflow:hidden; background: #fff; }
.qty-control button{ width: 38px; height: 38px; border: none; background: none; font-size: 18px; color: var(--navy); }
.qty-control input{ width: 46px; border: none; text-align: center; font-size: 15px; font-weight: 600; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button{ -webkit-appearance: none; margin:0; }
.qty-control.small{ transform: scale(0.88); transform-origin: left center; }
.qty-control.small button{ width: 30px; height: 30px; font-size: 15px; }
.qty-control.small span{ width: 30px; text-align: center; font-weight: 600; font-size: 14px; }

/* ---------- Cart items (used in drawer + checkout summary) ---------- */
.cart-items-list{ margin-bottom: 6px; }
.cart-line{ display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img{ width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.cart-line-info{ flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line-info strong{ font-size: 14.5px; color: var(--navy); }
.cart-line-unit{ font-size: 12.5px; color: var(--muted); }
.cart-line-right{ text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-line-right strong{ font-size: 14.5px; color: var(--navy); }
.cart-remove{ background: none; border: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.cart-empty-msg{ text-align: center; padding: 30px 10px; }
.cart-empty-msg p{ color: var(--muted); margin-bottom: 16px; }

/* ---------- Cart drawer ---------- */
#cart-overlay{
  position: fixed; inset: 0; background: rgba(14,27,51,0.5); z-index: 400;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
#cart-overlay.show{ opacity: 1; pointer-events: auto; }
#cart-drawer{
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw;
  background: var(--paper); z-index: 401; box-shadow: -20px 0 50px -20px rgba(0,0,0,0.4);
  transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column;
}
#cart-drawer.show{ transform: translateX(0); }
.cart-drawer-head{ display:flex; align-items:center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-drawer-head h3{ margin: 0; color: var(--navy); font-size: 19px; }
.cart-drawer-head button{ background: none; border: none; font-size: 18px; color: var(--muted); padding: 6px; }
.cart-drawer-body{ flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-drawer-footer{ padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.color-choice{ display:flex; gap: 10px; margin: 8px 0 4px; }
.color-choice label{ flex:1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align:center; font-size: 13.5px; cursor: pointer; background: #fff; }
.color-choice input{ display:none; }
.color-choice input:checked + span{ color: var(--blue); font-weight: 700; }
.color-choice label:has(input:checked){ border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.summary-line{ display:flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary-line.total{ color: var(--navy); font-weight: 700; font-size: 17px; border-bottom: none; padding-top: 14px; }
.summary-line strong{ color: var(--navy); }
.badge-free{ color: var(--green); font-weight: 700; }

form.order-form{ border: 1px solid var(--line); border-radius: var(--radius-card); padding: 30px; background: var(--paper); }
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .form-grid{ grid-template-columns: 1fr; } }
.field{ display:flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea{
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 15px;
  font-family: inherit; background: #fff; color: var(--ink);
}
.field textarea{ resize: vertical; min-height: 80px; }
.pay-options{ display:flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pay-option{ display:flex; align-items:flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; }
.pay-option input{ margin-top: 3px; }
.pay-option strong{ display:block; font-size: 14.5px; color: var(--navy); }
.pay-option span.desc{ font-size: 13px; color: var(--muted); }
.pay-option.disabled{ opacity: 0.45; cursor: not-allowed; }
.pay-option.disabled strong, .pay-option.disabled span.desc{ color: var(--muted); }
.consent{ display:flex; gap: 10px; align-items:flex-start; font-size: 13.5px; color: var(--muted); margin: 18px 0; }
.consent a{ text-decoration: underline; }
.form-note{ font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- Testimonials ---------- */
/* Zamiast trzech identycznych kolumn: pierwsza opinia zajmuje pełną wysokość
   po lewej (większa, "wyróżniona"), a dwie kolejne układają się w prawej
   kolumnie jedna nad drugą — asymetryczny układ, nie siatka 3x1. */
.testi-grid{ display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.testi:nth-child(1){ grid-column: 1; grid-row: 1 / 3; }
.testi:nth-child(2){ grid-column: 2; grid-row: 1; }
.testi:nth-child(3){ grid-column: 2; grid-row: 2; }
@media (max-width: 880px){
  .testi-grid{ grid-template-columns: 1fr; }
  .testi:nth-child(1), .testi:nth-child(2), .testi:nth-child(3){ grid-column: 1; grid-row: auto; }
}
.testi{ border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; background: var(--paper); display: flex; flex-direction: column; }
.testi:nth-child(1){ padding: 32px; justify-content: center; }
.testi:nth-child(1) p{ font-size: 17px; }
.testi .stars{ color: var(--star-gold); letter-spacing: 3px; margin-bottom: 12px; }
.testi p{ font-size: 15px; color: var(--ink); flex: 1; }
.testi .who{ display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.testi .who-avatar{
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px; font-family: "Inter", sans-serif;
}

/* ---------- CTA band ---------- */
.cta-band{ background: linear-gradient(140deg, var(--blue) 0%, var(--navy) 100%); color:#fff; border-radius: 28px; padding: 60px 48px; text-align:center; }
.cta-band h2{ color:#fff; }
.cta-band p{ color: rgba(255,255,255,0.75); max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Kontakt ---------- */
.kontakt-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:18px; max-width: 820px; margin: 0 auto; }
.kontakt-card{
  display:flex; flex-direction:column; gap:6px; text-align:center;
  border:1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px 20px; background: var(--paper); text-decoration:none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.kontakt-card:hover{ border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.kontakt-label{ font-size:12.5px; font-weight:700; color: var(--blue); text-transform:uppercase; letter-spacing:.04em; }
.kontakt-value{ font-weight:700; color: var(--navy); font-size:16px; word-break:break-word; }

/* ---------- Footer ---------- */
footer.site{ background: var(--navy); color: rgba(255,255,255,0.75); padding: 64px 0 30px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 46px; }
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-grid h4{ color: #fff; font-size: 14px; margin-bottom: 14px; font-family: "Inter", sans-serif; font-weight: 600; }
.footer-grid li{ padding: 5px 0; font-size: 14.5px; overflow-wrap: anywhere; }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid a{ text-decoration: none; color: inherit; }
.footer-grid a:hover{ color: #fff; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-bottom a{ text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal{ max-width: 780px; margin: 0 auto; padding: 60px 0 100px; }
.legal h1{ color: var(--navy); font-size: 32px; }
.legal .updated{ color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.legal h2{ color: var(--navy); font-size: 21px; margin-top: 40px; }
.legal h3{ color: var(--navy); font-size: 17px; margin-top: 24px; }
.legal p, .legal li{ color: var(--ink); font-size: 15.5px; }
.legal ul{ list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal ul li{ padding: 4px 0; }
.legal .fill{ background: #DBEAFE; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.back-link{ display:inline-flex; align-items:center; gap:8px; font-size: 14px; margin-bottom: 30px; text-decoration:none; color: var(--blue); font-weight: 600; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4); text-decoration: none;
  transition: transform .15s ease;
}
.whatsapp-float:hover{ transform: scale(1.06); }
@media (max-width: 720px){ .whatsapp-float{ right: 16px; bottom: 86px; width: 50px; height: 50px; } }

/* ---------- Sticky mobile CTA bar ---------- */
#sticky-cta{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
  background: var(--navy); padding: 12px 16px;
  transform: translateY(100%); transition: transform .25s ease;
  display: none;
}
#sticky-cta.show{ transform: translateY(0); }
#sticky-cta .btn{ width: 100%; }
@media (max-width: 780px){ #sticky-cta{ display: block; } }

/* ---------- Panel administratora ---------- */
.admin-shell{ min-height: 100vh; background: var(--cream); display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px; }
.admin-login-card{
  max-width: 380px; width: 100%; margin: 60px auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 36px 30px;
  text-align: center; box-shadow: var(--shadow);
}
.admin-login-card h1{ color: var(--navy); font-size: 22px; margin-bottom: 6px; }
.admin-login-card p{ color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.admin-login-card .field{ text-align: left; }
.admin-dashboard{ max-width: 720px; width: 100%; }
.admin-topbar{ display:flex; align-items:center; justify-content: space-between; margin-bottom: 26px; }
.admin-topbar h1{ color: var(--navy); font-size: 24px; margin: 0; }
.admin-card{ background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 30px; margin-bottom: 20px; }
.admin-card h2{ color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.admin-card > p{ color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.admin-note{
  display:none; background: #EAF5EE; color: #2F6F4F; border: 1px solid #BFE3CC;
  border-radius: 12px; padding: 14px 16px; font-size: 13.5px; margin-top: 16px; line-height: 1.5;
}
.admin-security-note{
  background: var(--cream); border: 1px dashed var(--gold); border-radius: 12px;
  padding: 14px 16px; font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.5;
}
.admin-actions{ display: flex; gap: 12px; flex-wrap: wrap; }
.admin-actions .btn{ flex: 1; }
.admin-logout-btn{ background: none; border: 1px solid var(--line); color: var(--muted); padding: 8px 16px; border-radius: 999px; font-size: 13px; }

/* ---------- Cookie banner ---------- */
#cookie-banner{
  position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 560px;
  background: var(--navy); color: #fff; border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); z-index: 200;
  display: none;
}
#cookie-banner.show{ display: block; }
#cookie-banner h4{ margin: 0 0 8px; font-size: 17px; }
#cookie-banner p{ font-size: 13.5px; color: rgba(255,255,255,0.75); margin-bottom: 16px; }
#cookie-banner p a{ text-decoration: underline; color: #fff; }
.cookie-actions{ display:flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn{ padding: 11px 18px; font-size: 13.5px; }

#cookie-modal{
  position: fixed; inset: 0; background: rgba(14,27,51,0.6); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
#cookie-modal.show{ display: flex; }
.cookie-modal-box{ background: #fff; border-radius: 20px; padding: 32px; max-width: 480px; width: 100%; max-height: 86vh; overflow-y: auto; }
.cookie-modal-box h3{ color: var(--navy); }
.cookie-cat{ display:flex; justify-content: space-between; align-items:flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cookie-cat strong{ display:block; color: var(--navy); font-size: 14.5px; }
.cookie-cat span{ font-size: 13px; color: var(--muted); }
.switch{ position: relative; width: 42px; height: 24px; flex: none; }
.switch input{ opacity:0; width:0; height:0; }
.switch .track{ position:absolute; inset:0; background: #CBD5E1; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch .track::before{ content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + .track{ background: var(--blue); }
.switch input:checked + .track::before{ transform: translateX(18px); }
.switch input:disabled + .track{ opacity: .5; }

/* ============================================================
   Odrobina życia — animacje wejścia przy scrollu (strona główna)
   + delikatne hover-y na kartach i przyciskach (wszystkie strony).
   ".reveal" nadawany jest tylko skryptem na index.html, więc na
   pozostałych stronach nic się tu nie zmienia poza hover-ami.
   ============================================================ */
.reveal{
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1), filter .8s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); filter: blur(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; filter: none; transition: none; }
}

.hero-glow{
  --gx: 0px; --gy: 0px;
  animation: heroGlowPulse 6s ease-in-out infinite;
  transition: transform .2s ease-out;
}
@keyframes heroGlowPulse{
  0%, 100% { transform: translate3d(var(--gx), var(--gy), 0) scale(1); opacity: 1; }
  50% { transform: translate3d(var(--gx), var(--gy), 0) scale(1.12); opacity: 0.82; }
}
@media (prefers-reduced-motion: reduce){ .hero-glow{ animation: none; transition: none; } }

.hero-photo-main{ transition: transform .3s ease, box-shadow .3s ease; }
.hero-photo-main:hover{ transform: rotate(0deg) translateY(-6px); box-shadow: 0 32px 70px -20px rgba(10,20,40,0.42); }

/* Mała tabliczka-w-tle i "5 sekund do opinii" nie stoją bez ruchu, dopóki
   ktoś ich nie dotknie kursorem — delikatnie unoszą się cały czas (różne
   okresy i kierunek, żeby nie poruszały się w rytm), hover na chwilę
   przejmuje kontrolę nad transformem. */
.hero-photo-side{
  transition: transform .25s ease, box-shadow .25s ease;
  animation: floatSide 5s ease-in-out infinite;
}
.hero-photo-side:hover{ animation-play-state: paused; transform: rotate(0deg) scale(1.05); box-shadow: 0 22px 44px -14px rgba(0,0,0,0.5); }
@keyframes floatSide{
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-9px); }
}
.hero-float-badge{ animation: floatBadge 4.2s ease-in-out infinite; }
.hero-float-badge:hover{ animation-play-state: paused; }
@keyframes floatBadge{
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-7px); }
}
@media (prefers-reduced-motion: reduce){
  .hero-photo-side, .hero-float-badge{ animation: none; }
}

.btn:hover{ transform: translateY(-2px); }
.btn-primary:hover{ box-shadow: 0 18px 36px -12px rgba(200,134,46,0.55); }

.feature{ transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover{ transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(10,20,40,0.35); border-color: var(--blue); }
.feature .icn{ transition: transform .25s ease; }
.feature:hover .icn{ transform: scale(1.12) rotate(-6deg); }

.product-card{ transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover{ transform: translateY(-5px); box-shadow: 0 24px 48px -26px rgba(10,20,40,0.3); }
.product-photo img{ transition: transform .45s ease; }
.product-card:hover .product-photo img{ transform: scale(1.06); }

.testi{ transition: transform .2s ease, box-shadow .2s ease; }
.testi:hover{ transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(10,20,40,0.28); }

.dp-card{ transition: transform .2s ease, box-shadow .2s ease; }
.dp-card:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(10,20,40,0.26); }

.step-num::before{ transition: transform .2s ease, background .2s ease, color .2s ease; }
.step:hover .step-num::before{ background: var(--gold); color: #fff; transform: scale(1.1); }

.stat-num{ display: inline-block; transition: transform .2s ease; }
.stats-grid > div:hover .stat-num{ transform: scale(1.08); }

.faq-q{ transition: color .15s ease; }
.faq-q:hover{ color: var(--blue); }

/* ---------- Drobne poprawki "premium finish" (typografia, karty, focus) ---------- */

/* Liczby wyrównane szerokością znaku — ceny i statystyki nie "skaczą". */
.stat-num, .product-price strong, .tier-table td strong, .tier-badge{
  font-variant-numeric: tabular-nums;
}

/* Cienka 1px obwódka (hairline) zamiast rozmytego cienia — bardziej płaski,
   "papierowy" wygląd zgodny z nowym systemem (obwódka > cień). */
.feature, .testi, .dp-card, .product-card{
  border-color: var(--line);
  box-shadow: none;
}

/* Świecąca obwódka podążająca za kursorem — na kartach, które klient realnie
   najeżdża myszką. Sam gradient jest zawsze w DOM (bardzo tani), pokazuje się
   tylko na hover; pozycję (--sx/--sy) ustawia skrypt na dole strony. Na
   urządzeniach dotykowych (brak :hover/mousemove) po prostu nigdy się nie
   uruchamia — nic nie trzeba dodatkowo wyłączać. */
.feature, .sub-benefit, .dp-card, .product-card, .testi, .compare-card{
  position: relative; --sx: 50%; --sy: 50%;
}
.feature::after, .sub-benefit::after, .dp-card::after, .product-card::after,
.testi::after, .compare-card::after{
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(220px circle at var(--sx) var(--sy), rgba(200,134,46,0.55), transparent 62%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.feature:hover::after, .sub-benefit:hover::after, .dp-card:hover::after,
.product-card:hover::after, .testi:hover::after, .compare-card:hover::after{ opacity: 1; }

/* Magnetyczne CTA — przycisk delikatnie "podąża" za kursorem (JS ustawia
   --mx/--my w niewielkim zakresie), z osobnym :hover o wyższej specyficzności
   niż ogólne ".btn:hover", żeby nie nadpisywało transformu z powrotem na
   samo translateY(-2px). */
.btn-magnetic{
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .15s ease, background .15s ease;
}
.btn.btn-magnetic:hover{ transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }

/* Przycisk z "wpisaną" strzałką w osobnym kółku (button-in-button) zamiast
   gołej strzałki obok tekstu — daje bardziej "opracowane" wrażenie CTA. */
.btn-arrow{ padding-right: 10px; }
.btn-arrow-circle{
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.24);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.btn-dark .btn-arrow-circle, .btn-outline .btn-arrow-circle{ background: rgba(10,20,40,0.08); }
.btn:hover .btn-arrow-circle{ transform: translate(2px, -2px) scale(1.06); }

/* Delikatna poświata na dużych kolorowych blokach (pasek statystyk, cennik,
   CTA) — bez tego duże jednolite płaszczyzny koloru wyglądają płasko. */
.stats-strip, .cta-band, .pricing-wrap{ position: relative; overflow: hidden; }
.stats-strip::before, .cta-band::before, .pricing-wrap::before{
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 15%, rgba(255,255,255,0.14), transparent 45%),
    radial-gradient(circle at 88% 90%, rgba(255,255,255,0.10), transparent 50%);
  pointer-events: none;
}
.stats-strip > .container, .cta-band > *, .pricing-wrap > *{ position: relative; z-index: 1; }

/* Nawigacja: podkreślenie "wjeżdżające" pod linkiem zamiast samej zmiany koloru. */
.nav-links a{ position: relative; }
.nav-links a::after{
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--blue); border-radius: 2px; transition: right .25s ease;
}
.nav-links a:hover::after{ right: 0; }
.logo-mark{ transition: transform .25s ease; }
.logo:hover .logo-mark{ transform: rotate(-6deg) scale(1.06); }

/* Widoczny focus dla klawiatury — dotąd go brakowało. */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px;
}
.field input:focus, .field select:focus, .field textarea:focus,
.pay-option:focus-within{
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,82,245,0.15);
}

/* ============================================================
   Abonament — korzyści (siatka 3 kolumn) + porównanie z zakupem
   jednorazowym. Sekcja jest celowo bardziej rozbudowana niż jedno
   okienko: osobny blok "co obejmuje" + osobne karty porównawcze.
   ============================================================ */
.sub-benefits-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.sub-benefit{
  /* "Feature Card (Taupe)" — płaskie wypełnienie, bez obwódki, bez cienia;
     odróżnia się od tła samym kolorem, nie linią czy głębią. */
  background: var(--taupe); border: 1px solid transparent; border-radius: var(--radius-card);
  padding: 28px 26px; box-shadow: none;
  transition: transform .2s ease, background .2s ease;
}
.sub-benefit:hover{ transform: translateY(-3px); background: #E4ECF5; }
.sub-benefit .icn{
  width: 42px; height: 42px; border-radius: 12px; display:flex; align-items:center; justify-content:center;
  background: rgba(200,134,46,0.12); color: var(--gold-dark); margin-bottom: 18px;
}
.sub-benefit h3{ font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.sub-benefit p{ color: var(--muted); font-size: 14.5px; margin: 0; }
/* Dwie korzyści wyróżnione (nie jedna) i szersze — bento zamiast dziewięciu
   identycznych kafli, ten sam zabieg co przy .features-grid. Druga wyróżniona
   karta (lokalizacje — #6) dostaje inny odcień (niebiesko-zielony zamiast
   bursztynowego), żeby sekcja miała rytm, a nie tylko jeden akcent powtórzony
   osiem razy. Karty "zwykłe" na przemian dostają bursztynową/zieloną ikonę
   (nth-child even/odd), żeby nawet niewyróżnione kafle nie były identyczne. */
.sub-benefits-grid{ grid-auto-flow: dense; }
.sub-benefit:nth-child(1),
.sub-benefit:nth-child(6){
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: center;
}
.sub-benefit:nth-child(1){ background: linear-gradient(155deg, var(--cream) 0%, #fff 65%); }
.sub-benefit:nth-child(6){ background: linear-gradient(155deg, rgba(0,82,245,0.08) 0%, #fff 65%); }
.sub-benefit:nth-child(1) .icn, .sub-benefit:nth-child(6) .icn{ width: 50px; height: 50px; border-radius: 14px; }
.sub-benefit:nth-child(1) h3, .sub-benefit:nth-child(6) h3{ font-size: 20px; }
.sub-benefit:nth-child(1) p, .sub-benefit:nth-child(6) p{ max-width: 44ch; }
.sub-benefit:nth-child(6) .icn{ background: rgba(0,82,245,0.12); color: var(--blue-dark); }
.sub-benefit:not(:nth-child(1)):not(:nth-child(6)):nth-child(even) .icn{
  background: rgba(0,82,245,0.10); color: var(--blue-dark);
}

.compare-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.compare-card{
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 32px 28px;
}
.compare-card .price{ font-size: 17px; color: var(--navy); margin: 14px 0 20px; }
.compare-card .price strong{ font-family: "Inter", sans-serif; font-weight: 700; font-size: 32px; }
.compare-card ul{ margin-bottom: 26px; flex: 1; }
.compare-card li{ display:flex; align-items:flex-start; gap: 10px; padding: 7px 0; color: var(--ink); font-size: 15px; }
.compare-card .dot-check{ margin-top: 2px; }
.compare-card.featured{
  border-color: var(--gold); background: linear-gradient(180deg, rgba(227,179,104,0.1), var(--paper) 40%);
  box-shadow: 0 22px 48px -28px rgba(200,134,46,0.4);
  position: relative;
}
.compare-card.featured::before{
  content: "Najczęściej wybierane"; position: absolute; top: -13px; left: 28px;
  background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}

/* ---------- Abonament: przełącznik okresu rozliczeniowego (miesiąc / kwartał / rok) ---------- */
.billing-toggle{
  display: flex; gap: 6px; margin: 16px 0 0; padding: 4px; background: rgba(10,20,40,0.05);
  border-radius: 999px; width: fit-content;
}
.billing-toggle-btn{
  border: none; background: none; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: background 0.2s ease, color 0.2s ease;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.billing-toggle-btn:hover{ color: var(--navy); }
.billing-toggle-btn.is-active{ background: var(--navy); color: #fff; }
.billing-save-badge{
  font-size: 10.5px; font-weight: 700; background: var(--gold); color: #fff; padding: 1px 6px; border-radius: 999px;
}
.billing-toggle-btn.is-active .billing-save-badge{ background: rgba(255,255,255,0.25); }
.billing-note{ font-size: 13.5px; color: var(--muted); margin: 0 0 20px; }
@media (max-width: 400px){ .billing-toggle{ flex-wrap: wrap; width: auto; } }

/* ============================================================
   Zamów rozmowę — telefon + formularz oddzwonienia obok siebie.
   ============================================================ */
.call-card{ display:flex; flex-direction: column; }
.call-card .call-phone{
  display:flex; align-items:center; gap: 12px; margin: 16px 0 8px; text-decoration:none;
}
.call-card .call-phone-num{ font-family: "Inter", sans-serif; font-weight: 700; font-size: 26px; color: var(--navy); }
.call-card .call-hours{ font-size: 13.5px; color: var(--muted); margin-top: auto; padding-top: 18px; }
#callback-success{
  display:none; background:#EAF5EE; color: var(--green); padding: 14px 16px; border-radius: 10px;
  font-size: 14.5px; margin-bottom: 16px;
}
@media (max-width: 1080px) and (min-width: 881px){ .sub-benefits-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px){ .sub-benefits-grid{ grid-template-columns: 1fr; } }
@media (max-width: 760px){ .compare-grid{ grid-template-columns: 1fr; } }
.field input:user-invalid, .field textarea:user-invalid{ border-color: #E11D48; }

/* ---------- Abonament: "dla kogo" (3 kolumny na bazie .dp-card) + tabela porównawcza ---------- */
.audience-grid{ grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
@media (max-width: 900px){ .audience-grid{ grid-template-columns: 1fr; } }
/* Delikatne przesunięcie środkowej karty w pionie — łamie idealną symetrię
   trzech równych kolumn, bez utraty czytelności. Tylko na desktopie. */
@media (min-width: 901px){ .audience-grid .dp-card:nth-child(2){ margin-top: -18px; } }
.compare-table-wrap{ overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); }
.compare-table{ width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td{ text-align: left; padding: 15px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.compare-table thead th{ color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; background: var(--cream); }
.compare-table tbody td:first-child{ color: var(--navy); font-weight: 600; }
.compare-table tbody td strong{ color: var(--gold-dark); font-weight: 700; }
.compare-table tbody tr:last-child td{ border-bottom: none; }
.compare-table tbody tr:hover{ background: rgba(200,134,46,0.05); }

/* ---------- TikTok ---------- */
.tiktok-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; justify-items: center; }
.tiktok-item{ width: 100%; display: flex; flex-direction: column; align-items: center; }
.tiktok-item .tiktok-embed{ width: 100%; margin: 0; }
.tiktok-fallback{
  display: inline-block; margin-top: 10px; font-size: 13px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 2px;
}
.tiktok-fallback:hover{ color: var(--blue); }
@media (max-width: 980px){ .tiktok-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .tiktok-grid{ grid-template-columns: 1fr; } }
