﻿:root{
  --bg:#0f0f10;
  --panel:#151517;
  --soft:#1d1d20;
  --text:#ffffff;
  --muted:#b9bcc2;
  --accent:#dc2626;
  --accent-2:#ef4444;
  --stroke:#26262a;
  --success:#22c55e;
  --warn:#f59e0b;
  --danger:#ef4444;

  --header-h:88px; /* wysokość nagłówka - zwiększona */
  
  /* Kolory dla gradientu tła - domyślnie czerwone */
  --bg-gradient-1: 220, 38, 38;    /* rgb dla accent (red-600) */
  --bg-gradient-2: 239, 68, 68;    /* rgb dla accent-2 (red-500) */
}

/* Wariant jasny (aktywny po ustawieniu atrybutu data-theme="light" na <html>) */
:root[data-theme="light"]{
  --bg:#f8fafc;          /* tło */
  --panel:#ffffff;       /* panele/karty */
  --soft:#f1f5f9;        /* tła miękkie */
  --text:#0f172a;        /* tekst główny */
  --muted:#475569;       /* tekst drugorzędny */
  --accent:#16a34a;      /* zielony akcent (emerald 600) */
  --accent-2:#22c55e;    /* zielony jaśniejszy (emerald 500) */
  --stroke:#e5e7eb;      /* obramowania w jasnym */
  --success:#16a34a;
  --warn:#d97706;
  --danger:#b91c1c;
  
  /* Gradient dla jasnego motywu - lekko intensywniejszy */
  --bg-gradient-opacity-1: .10;
  --bg-gradient-opacity-2: .08;
}

*{box-sizing:border-box}
html,body{height:100%}

/* === SMOOTH SCROLL === */
html {
  scroll-behavior: smooth;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Delikatny gradient akcentowy na całą stronę */
html {
  position: relative;
  min-height: 100vh;
}

html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}

html::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 140% 100% at 0% 0%, rgba(var(--bg-gradient-1), var(--bg-gradient-opacity-1, .08)), transparent 50%),
    radial-gradient(ellipse 140% 100% at 100% 20%, rgba(var(--bg-gradient-2), var(--bg-gradient-opacity-2, .06)), transparent 50%);
  opacity: 1;
  transition: background 0.4s ease;
}

/* Light mode już nie potrzebuje override - używa custom properties */

body {
  margin:0; 
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: transparent;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.nowrap{white-space:nowrap}
.muted{color:var(--muted)}
.sr{position:absolute;clip:rect(0 0 0 0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}

/* === FOCUS INDICATORS - ACCESSIBILITY === */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent);
}

nav a.link:focus-visible {
  background: var(--soft);
  color: var(--text);
  outline: 2px solid var(--accent);
}

/* layout */
.container{max-width:1200px; margin-inline:auto; padding-inline:24px}

/* HEADER */
header {
  position: sticky; /* desktop domyślnie sticky */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: saturate(140%) blur(6px);
  background: linear-gradient(rgba(15,15,16,.85), rgba(15,15,16,.7));
  border-bottom: 1px solid var(--stroke);
}

.topbar{
  min-height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0;
}
.brand{height:var(--header-h); display:flex; align-items:center; gap:18px;}
.brand > div:last-child{display:flex; flex-direction:column; justify-content:center; line-height:1.1;}
.logo{
  width:58px; 
  height:58px; 
  /* Logo jako background z maską - automatycznie kolor akcentu */
  background-color: var(--accent);
  -webkit-mask-image: url('/ikony/logo5120x5120png_1.svg');
  mask-image: url('/ikony/logo5120x5120png_1.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.logo svg{display:block;}
.logo-icon{
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}
.logo-text{
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.brand-title{font-weight:800; letter-spacing:.2px; font-size: 18px;}

/* NAV */
nav ul{display:flex; align-items:center; gap:22px; list-style:none; padding:0; margin:0}
nav li{position:relative}
nav a{
  display:inline-flex; align-items:center; justify-content:center;
  padding:15px 18px;
  border-radius:11px;
  color:var(--muted);
  transition: all 0.4s ease;
}
nav a svg {
  transition: stroke 0.4s ease, fill 0.4s ease, transform 0.4s ease;
}
nav a:hover, nav a.active{color:var(--text); background:var(--soft)}

/* Utrzymuj highlight na ikonie gdy dropdown jest otwarty */
nav .has-dd:hover > a,
nav .has-dd:focus-within > a {
  color:var(--text); 
  background:var(--soft);
}

/* Light: jasny header i ciemne ikony/napisy */
html[data-theme="light"] header{ background: linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.86)); border-bottom:1px solid var(--stroke); }
html[data-theme="light"] nav a{ color:#475569; }
html[data-theme="light"] nav a:hover, html[data-theme="light"] nav a.active{ color:#0f172a; background: var(--soft); }
html[data-theme="light"] .brand-title{ color: var(--text); }

/* Dropdown Dokumenty */
nav .has-dd > a{display:flex; align-items:center; gap:6px}
nav .dd{
  position:absolute; top:100%; left:0;
  display:none; min-width:220px; padding:8px;
  background:var(--panel); border:1px solid var(--stroke);
  border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.35);
}

/* Dropdown Motywów - z prawej strony */
nav .theme-dd .dd{
  left: auto;
  right: 0;
  transform-origin: top right;
}

nav .dd a{display:block; padding:8px 10px; border-radius:8px; color:#e7e7ea}
nav .dd a:hover{background:var(--soft)}
nav .has-dd:hover .dd, nav .has-dd:focus-within .dd, nav .has-dd.open .dd{display:block}

/* CTA phone */
.cta-phone{
  height:44px;
  padding:0 18px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:var(--accent); color:#fff; border-radius:12px; font-weight:700; font-size:15px;
}
.cta-phone:hover{background:var(--accent-2)}

/* promo strip */
.promo{background:linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 8%, transparent)); border-bottom:1px solid var(--stroke); color:#fff}
.promo .container{display:flex; align-items:center; justify-content:center; gap:12px; padding:10px 0; font-weight:600; flex-wrap:wrap; text-align:center}
.badge{display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid var(--stroke); border-radius:999px; background:rgba(255,255,255,.04); font-size:12px; color:var(--muted)}
.promo .badge{white-space:nowrap}
@media (max-width:640px){
  .promo .container{padding:12px 0}
}

/* hero */
.hero{position:relative; isolation:isolate}
.hero .wrap{display:grid; grid-template-columns:1.2fr .8fr; gap:32px; padding:56px 0 44px}
.kicker{display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.12em; font-size:12px}
h1{font-size:42px; line-height:1.06; margin:10px 0 14px}
.lead{color:#e7e7ea; font-size:18px; line-height:1.6; margin:0 0 22px}
/* Light: ciemniejszy lead dla czytelności */
html[data-theme="light"] .lead{ color:#334155; }

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px; padding:12px 16px; border-radius:12px;
  border:1px solid var(--stroke); font-weight:700;
  transition: background .3s ease, transform .25s ease, box-shadow .25s ease;
  color:#fff; /* kontrast na ciemnym tle przycisku */
  /* Szary gradient dla wariantu podstawowego (nie-primary) */
  background:
    linear-gradient(180deg, #2B2D31 0%, #202226 55%, #151517 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 60%);
  background-blend-mode: overlay, normal;
  background-repeat: no-repeat;
  background-position: center, top;
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -1px 0 rgba(0,0,0,0.35);
}
/* podświetlenie na hover dla szarego przycisku + cień */
.btn:hover{
  background:
    linear-gradient(180deg, #35373C 0%, #26282D 50%, #191A1D 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.12), 
    inset 0 -1px 0 rgba(0,0,0,0.38),
    0 5px 14px rgba(0,0,0,0.6);
}
/* Czerwony gradient inspirowany szablonem Tailwind (bez Tailwinda) */
.btn-primary{
  position: relative;
  color:#fff;
  border-color:transparent;
  /* Dynamiczny gradient akcentu */
  background:
    linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 70%, black) 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
  background-blend-mode: overlay, normal;
  background-repeat: no-repeat; /* zapobiega artefaktom przy krawędzi (jasna kreska) */
  background-position: center, top;
  background-clip: padding-box;
  /* top highlight + delikatne przyciemnienie dołu - cień tylko na hover */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(0,0,0,0.25);
}
.btn-primary:hover{
  background:
    linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0) 60%);
  background-repeat: no-repeat;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.22), 
    inset 0 -1px 0 rgba(0,0,0,0.28),
    0 6px 18px color-mix(in srgb, var(--accent-2) 45%, transparent);
}
/* Light: podstawowe przyciski .btn - neutralny szary gradient (MUSI BYĆ PRZED .btn-primary!) */
html[data-theme="light"] .btn{
  background:
    linear-gradient(180deg, #f8fafc 0%, #e2e8f0 55%, #cbd5e1 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.50) 0%, rgba(255,255,255,0) 60%);
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.60), inset 0 -1px 0 rgba(0,0,0,0.10);
}
html[data-theme="light"] .btn:hover{
  background:
    linear-gradient(180deg, #fff 0%, #f1f5f9 50%, #e2e8f0 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.60) 0%, rgba(255,255,255,0) 60%);
  border-color: #94a3b8;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.70),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 4px 12px rgba(15,23,42,0.20);
}
/* Light: kolorowy gradient przycisku primary - NADPISUJE .btn powyżej! */
html[data-theme="light"] .btn-primary{
  background:
    linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 55%, color-mix(in srgb, var(--accent-2) 80%, black) 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.18);
}
html[data-theme="light"] .btn-primary:hover{
  background:
    linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 50%, var(--accent-2) 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.25), 
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 6px 18px color-mix(in srgb, var(--accent-2) 40%, transparent);
}

/* Light: dynamiczne kolory akcentu */
html[data-theme="light"] .promo{
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 35%, transparent), color-mix(in srgb, var(--accent) 22%, transparent));
  color:#0f172a;
  border-bottom: none;
  background-clip: padding-box;
}
html[data-theme="light"] .promo .badge{ color:#0f172a; border-color:#94a3b8; background:rgba(0,0,0,.04) }
/* .cta-phone style jest w dalszej części - linia ~1423 z pełnym gradientem */
html[data-theme="light"] .tag{ background: color-mix(in srgb, var(--accent) 12%, transparent); color: color-mix(in srgb, var(--accent) 85%, black); }
.btn-ghost{background:transparent; color:#fff}
.btn-ghost:hover{background:var(--soft)}

/* Light: przyciski ghost jako ciemnoszare z białym napisem */
html[data-theme="light"] .btn-ghost{
  color:#fff;
  border-color:#1f2937;
  background:
    linear-gradient(180deg, #4b5563 0%, #374151 55%, #1f2937 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 60%);
}
html[data-theme="light"] .btn-ghost:hover{
  background: linear-gradient(180deg, #6b7280 0%, #4b5563 60%, #374151 100%);
}

/* --- Przełącznik motywu (switch) — zgodnie z dostarczonym szablonem --- */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch #input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: black;
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

.switch input:checked + .slider .sun-moon {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: white;
  /* usunięto animację rotate, która nadpisywała transform i blokowała przesuw */
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

.switch input:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.slider.round {
  border-radius: 34px;
}

.slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.cloud-light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.cloud-dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

#cloud-1 { left: 30px; top: 15px; width: 40px; }
#cloud-2 { left: 44px; top: 10px; width: 20px; }
#cloud-3 { left: 18px; top: 24px; width: 30px; }
#cloud-4 { left: 36px; top: 18px; width: 40px; }
#cloud-5 { left: 48px; top: 14px; width: 20px; }
#cloud-6 { left: 22px; top: 26px; width: 30px; }

@keyframes cloud-move {
  0% { transform: translateX(0px); }
  40% { transform: translateX(4px); }
  80% { transform: translateX(-4px); }
  100% { transform: translateX(0px); }
}

.stars { transform: translateY(-32px); opacity: 0; transition: 0.4s; }
.star {
  fill: white;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.switch input:checked + .slider .stars {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#star-1 { width: 20px; top: 2px; left: 3px; animation-delay: 0.3s; }
#star-2 { width: 6px; top: 16px; left: 3px; }
#star-3 { width: 12px; top: 20px; left: 10px; animation-delay: 0.6s; }
#star-4 { width: 18px; top: 0px; left: 18px; animation-delay: 1.3s; }

@keyframes star-twinkle {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  80% { transform: scale(0.8); }
  100% { transform: scale(1); }
}

@-webkit-keyframes rotate-center {
  0% { -webkit-transform: rotate(0); transform: rotate(0); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes rotate-center {
  0% { -webkit-transform: rotate(0); transform: rotate(0); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* hero card */
.hero-card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); 
  border:1px solid var(--stroke); 
  padding:22px 20px 18px; 
  border-radius:16px;
  min-height: 100%; /* Wyrównaj wysokość z chipami */
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-card h3{margin:0 0 8px}
.hero-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:16px; flex: 1;}
.hero-card .tag{ margin:0 auto 10px; }
.hero-card .note{ text-align:center; margin:8px 0 6px; }
.hero-grid > div{ text-align:center; padding:6px 0 10px; }
.price-sm{font-weight:800; display:block; line-height:1.2; font-size:.94em; text-align:center; margin:10px 0 0;}
.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

/* USP */
.usp{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:28px 0 0}
.chip{display:flex; align-items:center; gap:10px; background:var(--soft); border:1px solid var(--stroke); padding:10px 12px; border-radius:12px; color:#e7e7ea}
/* Light: ciemny tekst na jasnym tle chipów */
html[data-theme="light"] .chip{ color:#0f172a; background:var(--soft); border-color:var(--stroke); }
.dot{width:8px; height:8px; border-radius:50%; background:var(--accent); display:inline-flex; flex:0 0 8px}

/* sections */
section{padding:56px 0}
.section-title{font-size:30px; margin:0 0 8px}
.section-sub{color:var(--muted); margin:0 0 26px}

/* cennik */
.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; align-items:stretch}
.card{background:var(--panel); border:1px solid var(--stroke); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; height:100%}
.card .media{height:140px; background:#101012 center/cover no-repeat}
.card .body{padding:20px; display:flex; flex-direction:column; gap:12px; flex:1}
.tag{display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; background:color-mix(in srgb, var(--accent) 8%, transparent); color:var(--accent); font-weight:700; font-size:12px}
.plist{list-style:none; padding:0; margin:12px 0 0; display:grid; gap:10px}
.row{display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid var(--stroke); background:var(--soft); border-radius:12px; padding:12px 14px}
.row b{font-weight:800}
.row .price{font-weight:800}
.note{color:var(--muted); font-size:13px}
.actions{margin-top:12px; padding-top:0}
.card .body > .note{ margin-top:auto; }

/* status badge */
.status{display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border-radius:999px; font-weight:800; font-size:12px; border:1px solid var(--stroke);}
.status.ok{background:rgba(34,197,94,.12); color:#d1f7dc; border-color:rgba(34,197,94,.25)}
.status.warn{background:rgba(245,158,11,.12); color:#ffe9c2; border-color:rgba(245,158,11,.25)}
.status.no{background:rgba(239,68,68,.14); color:#ffd2d2; border-color:rgba(239,68,68,.25)}

/* Light: czytelne statusy na jasnym tle */
html[data-theme="light"] .status.ok{ background:#d1fae5; color:#065f46; border-color:#10b981; }
html[data-theme="light"] .status.warn{ background:#fef3c7; color:#92400e; border-color:#f59e0b; }
html[data-theme="light"] .status.no{ background:#fee2e2; color:#991b1b; border-color:#fca5a5; }

/* dostawy */
.delivery{display:grid; grid-template-columns:1.2fr .8fr; gap:24px}
.list{display:grid; grid-template-columns:repeat(2,1fr); gap:10px}
.pill{border:1px solid var(--stroke); background:var(--soft); padding:10px 12px; border-radius:999px}
.check{color:var(--success); font-weight:800}

/* kontakt */
.contact{display:grid; grid-template-columns:1fr 1fr; gap:24px}

/* info card (zamiast formularza) */
.info{background:var(--panel); border:1px solid var(--stroke); border-radius:16px; padding:18px}
.info li{margin:0; padding:0; line-height:1.7}
.info .row{justify-content:flex-start}

/* footer */
footer{border-top:1px solid var(--stroke); background:#0d0d0f; color:var(--muted)}
footer a{color:inherit}
footer a:hover{color:var(--accent)}
.foot{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:24px;
  padding:28px 0;
  text-align:center;
  font-size:13px;
}
.foot-col{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
  line-height:1.5;
}
.foot-highlight{
  color:var(--accent);
  font-weight:700;
  letter-spacing:.3px;
  font-size:14px;
}
.foot-highlight.large{font-size:15px}
.foot-note{
  padding:0 0 24px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}

/* Light: jaśniejsza stopka z wyraźnym odcięciem */
html[data-theme="light"] footer{ background:#f1f5f9; color:#475569; border-top:1px solid #e2e8f0; }

/* floating phone */
/* Floating Cookie Settings Button */
.float-cookie{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.float-cookie svg {
  width: 28px;
  height: 28px;
  display: block;
  transform: translate(0px, 0px);
}

.float-cookie:hover{
  background: var(--accent-2);
  transform: translateY(-2px) scale(1.05) rotate(12deg);
  box-shadow: 0 12px 35px color-mix(in srgb, var(--accent-2) 40%, transparent);
}

.float-cookie:active {
  transform: translateY(0) scale(0.98) rotate(12deg);
}

html[data-theme="light"] .float-cookie {
  background: var(--accent);
  color: #fff; /* Biała ikona na kolorowym tle */
}

html[data-theme="light"] .float-cookie:hover {
  background: var(--accent-2);
}

/* Fix: w light mode SVG ciastka - maksymalny kontrast */
html[data-theme="light"] .float-cookie svg circle:first-child {
  fill: #ffffff !important;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.5)); /* Dodatkowy blask */
}
html[data-theme="light"] .float-cookie svg circle:not(:first-child) {
  fill: #000000 !important; /* Pełna czerń dla maksymalnego kontrastu */
}


/* responsive */
@media (max-width: 1200px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 1024px){
  .hero .wrap{grid-template-columns:1fr}
  .delivery{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .usp{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 560px){
  h1{font-size:34px}
  .grid{grid-template-columns:1fr}
  .usp{grid-template-columns:1fr}
  nav ul{display:none}
}

body{ 
  padding-top: var(--header-h);
  min-height: 100vh;
}

html{ 
  scroll-behavior:smooth; 
  scroll-padding-top: var(--header-h);
  min-height: 100vh;
}
section[id]{ scroll-margin-top: var(--header-h); }

/* Kafelki dostaw */
.delivery .info{
  transition:all .25s ease;
  background:var(--soft);
}
.delivery .info:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 20px rgba(0,0,0,.35);
}
.delivery .info .pill{
  width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; font-size:20px; font-weight:700;
}

/* Równanie wysokości kafelków */
.delivery .grid{grid-template-columns:1fr; gap:18px}
@media(min-width:768px){
  .delivery .grid{grid-template-columns:1fr; gap:18px}
}
/* Efekt unoszenia (hover) dla wszystkich kafelków i kart */
.card,
.hero-card,
.info,
.chip,
.pill {
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover,
.hero-card:hover,
.info:hover,
.chip:hover,
.pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: pulse 1.4s infinite ease-in-out;
}

/* Light: kropka LIVE ZAWSZE czerwona */
html[data-theme="light"] .live-dot{ background:#ef4444; box-shadow:0 0 8px rgba(239,68,68,.8); }

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.28),
    0 6px 18px color-mix(in srgb, var(--accent-2) 45%, transparent);
}

nav a.active {
  color: var(--accent);
  background: transparent; /* usuwa szare tło */
  font-weight: 700;
}

#dlaczego-my .info {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 22px 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
#dlaczego-my .info:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}
#dlaczego-my h3 {
  margin: 0 0 6px;
}

/* === FAQ (pytania/odpowiedzi) === */

#faq .faq-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

#faq .faq-item {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#faq .faq-item:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow:
    0 8px 18px rgba(0,0,0,.25),
    0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

html[data-theme="light"] #faq .faq-item:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Klikalny nagłówek pytania */
#faq .faq-summary {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  text-align: left;
  font-weight: 600;
  color: var(--text);

  -webkit-tap-highlight-color: transparent;
}

#faq .faq-summary:focus-visible {
  outline: 2px solid var(--accent);
  border-radius: 8px;
}

/* Tekst pytania */
#faq .faq-header {
  flex: 1;
  line-height: 1.4;
  transition: color .25s ease;
}

/* Strzałka */
#faq .faq-toggle {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--accent);
  -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform: rotate(0deg) translateZ(0);
  transition: transform .25s ease;
  backface-visibility: hidden;
}

/* Gdy element jest otwarty:
   - strzałka obraca się
   - nagłówek zmienia kolor */
#faq .faq-item.open .faq-toggle {
  transform: rotate(180deg) translateZ(0);
}

#faq .faq-item.open .faq-header {
  color: var(--accent);
}

/* Pudełko z odpowiedzią.
   Wysokość (height) animujemy w JS.
   Opacity animujemy w CSS. */
.faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-item.open .faq-content {
  max-height: 300px;
  opacity: 1;
}


/* Tekst odpowiedzi */
#faq .faq-body {
  margin-top: 14px;
  line-height: 1.6;
  color: var(--muted);
}



/* --- RESPONSYWNE MENU (wersja ulepszona) --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  transition: transform .2s ease;
}

.nav-toggle:active {
  transform: scale(0.9);
}

/* Hamburger w rogu */
@media (max-width: 1023px) {
  /* Hamburger na mobile + tablet */
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 1001;
  }
}

/* --- MOBILE + TABLET: wszystko w jednym miejscu --- */
@media (max-width: 1023px) {
  /* hamburger i menu */
  nav {
    position: relative;
    grid-column: 3; /* Tylko burger, bez telefonu */
    justify-self: end;
  }

  /* Uporządkowanie headera: brand | filler | burger */
  .topbar {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Bez cta-phone */
    align-items: center;
    gap: 12px;
    padding-inline: 24px !important; /* Więcej przestrzeni */
  }
  
  /* Ukryj przycisk Kontakt na mobile/tablet */
  .cta-phone {
    display: none !important;
  }
  
  nav { justify-self: end; }
  .brand { flex-shrink: 0; }
  .brand-title { font-size: 18px; line-height: 1.2; white-space: nowrap; }
  .brand small { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
  .logo { 
    width: 56px; 
    height: 56px;
  }

  /* Usunięcie nieestetycznego kwadratu przy tapnięciu */
  .nav-toggle {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-shadow: none;
    background: transparent;
    border-radius: 10px;
  }
  .nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    transition: transform .2s ease;
    z-index: 1001;
  }

  .nav-toggle:active {
    transform: scale(0.9);
  }

  nav ul {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: rgba(15, 15, 16, 0.98);
    backdrop-filter: blur(10px) saturate(160%);
    border-top: 1px solid var(--stroke);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 32px 0 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity .3s ease, max-height .4s ease;
  }

  nav ul.show {
    display: flex;
    opacity: 1;
    max-height: 600px;
  }

  nav ul li a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
  }

  /* Pokaż zarówno ikony JAK I tekst na mobile */
  nav ul li a .icon {
    display: inline-flex !important;
  }

  nav ul li a .label {
    display: inline-block !important;
    opacity: 1 !important;
    margin-left: 12px !important;
  }

  nav ul li a:hover {
    color: var(--accent);
  }

  /* Ukryj standardowe dropdowny OPRÓCZ menu motywów */
  nav .has-dd:not(.theme-dd) .dd {
    display: none !important;
  }

  /* Menu motywów w hamburger menu - dropdown style */
  nav .has-dd.theme-dd {
    width: 100%;
    max-width: 400px;
    margin: 16px auto 0;
  }

  nav .has-dd.theme-dd > a.link {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 20px;
    background: var(--soft);
    border-radius: 12px;
    cursor: pointer;
  }

  nav .has-dd.theme-dd > a.link::after {
    content: "▼";
    font-size: 14px;
    transition: transform 0.2s ease;
  }

  nav .has-dd.theme-dd.open > a.link::after {
    transform: rotate(180deg);
  }

  /* Dropdown menu motywów */
  nav .has-dd.theme-dd .dd.menu-theme {
    position: static !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transform: none !important;
    pointer-events: none !important;
    display: block !important;
    min-width: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease !important;
  }

  nav .has-dd.theme-dd.open .dd.menu-theme {
    opacity: 1 !important;
    max-height: 600px !important;
    padding: 16px !important;
    pointer-events: auto !important;
    background: var(--panel) !important;
    border-radius: 12px !important;
  }

  .cta-phone {
    margin-left: auto;
  }

  /* header + promo */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin-top: 0;
    z-index: 1000;
  }

  .promo {
    position: relative;
    z-index: 999;
    margin-bottom: 0;
    border-bottom: none;
  }

  body {
    padding-top: calc(var(--header-h) + 0px);
  }

  /* spacing i typografia */
  .container {
    padding-inline: 20px !important;
  }

  h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .btn, .chip, .row, .pill, .info {
    border-radius: 14px;
  }

  .hero .wrap {
    gap: 24px;
    padding-top: 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  section {
    padding: 48px 0;
  }
}

/* === EXTRA SMALL DEVICES (phones < 400px) === */
@media (max-width: 400px) {
  .container {
    padding-inline: 16px !important;
  }

  h1 {
    font-size: 26px;
    line-height: 1.15;
  }

  .lead {
    font-size: 15px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .cta-phone {
    padding: 8px 12px;
    font-size: 14px;
    gap: 6px;
  }

  .cta-phone svg {
    width: 16px;
    height: 16px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand small {
    font-size: 12px;
  }

  .logo {
    width: 44px;
    height: 44px;
  }

  .hero .wrap {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  section {
    padding: 36px 0;
  }

  .chip {
    font-size: 13px;
    padding: 8px 12px;
  }

  .usp {
    gap: 8px;
  }

  /* Promo bar mniejszy na bardzo małych ekranach */
  .promo .container {
    font-size: 13px;
    gap: 8px;
  }

  .badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* Section headings */
  .section-title {
    font-size: 24px;
  }

  .section-sub {
    font-size: 14px;
  }

  /* Footer responsive */
  .foot {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .foot-col {
    text-align: center;
  }

  /* Floating cookie button - mniejszy na małych ekranach */
  .float-cookie {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
  }

  .float-cookie svg {
    width: 24px;
    height: 24px;
  }
}

/* === SMALL PHONES (< 360px) === */
@media (max-width: 360px) {
  h1 {
    font-size: 24px;
  }

  .topbar {
    gap: 6px;
  }

  .logo {
    width: 32px;
    height: 32px;
  }

  .logo svg {
    width: 18px;
    height: 18px;
  }

  .btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  .cta-phone {
    padding: 7px 10px;
    font-size: 13px;
  }
}

/* --- DESKTOP: header przypięty (fixed) jak na mobile --- */
@media (min-width: 1024px) {
  .nav-toggle { display: none !important; }

  header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }

  /* kompensacja wysokości headera dla treści */
  body { padding-top: var(--header-h) !important; }

  .promo { position: relative; z-index: 1; margin-bottom: 0; }

  /* poprawny offset kotwic pod fixed headerem */
  html { scroll-padding-top: var(--header-h); }
  section[id] { scroll-margin-top: var(--header-h); }
}

.promo {
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
@media (max-width: 768px) {
  .hero {
    padding-top: 16px;
  }
}
.nav-toggle {
  width: 40px;
  height: 40px;
  display: inline-block;
  position: relative;
  font-size: 0; /* ukryj tekst znakowy */
}
/* Rysunek hamburgera z trzech belek (używamy tylko .bar spans) */
.nav-toggle .bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: top .2s ease, transform .2s ease, opacity .2s ease;
}
.nav-toggle .bar:nth-child(1) { top: 12px; }
.nav-toggle .bar:nth-child(2) { top: 19px; }
.nav-toggle .bar:nth-child(3) { top: 26px; }
.nav-toggle.open .bar:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }
.btn:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

/* --- Desktop Icon Nav --- */
@media (min-width: 1024px) {
  nav.nav-icons { flex: 0 0 auto; }
  nav.nav-icons ul { gap: 8px; justify-content: flex-start; align-items: center; flex-wrap: nowrap; }
  nav.nav-icons li { list-style: none; width: auto; flex: 0 0 auto; }
  nav.nav-icons a.link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* elastyczna szerokość: ciasny bąbelek + płynne otwarcie bez pustki */
    width: auto;
    min-width: 60px;       /* gdy ikona bez tekstu */
    max-width: 60px;       /* startowo zwinięty */
    height: 50px;          /* zgodnie ze wzorcem */
    border-radius: 16px;   /* zgodnie ze wzorcem */
    color: var(--muted);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    padding: 0 12px;
    background: transparent;
    transition: max-width .3s ease, background .3s ease, color .3s ease;  /* animuj szerokość przez max-width */
    will-change: max-width, background, color;
  }
  nav.nav-icons a.link:hover,
  nav.nav-icons a.link:focus,
  nav.nav-icons li.has-dd:hover > a.link {
    background: var(--soft);
    color: var(--text);
    max-width: 240px;     /* otwieraj tylko do potrzebnej szerokości (bez sztywnego 180px) */
  }
  nav.nav-icons a.link .icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    line-height: 0;
    flex: 0 0 18px;
    transition: color 0.4s ease, transform 0.4s ease;
  }
  nav.nav-icons a.link .icon svg { width: 18px; height: 18px; transition: inherit; }
  nav.nav-icons a.link .label {
    margin-left: 0;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    min-width: 0;
    transform: translateX(-2px);
    transition: opacity .25s ease, transform .25s ease, margin-left .25s ease;
  }
  nav.nav-icons a.link:hover .label,
  nav.nav-icons a.link:focus .label,
  nav.nav-icons li:focus-within a.link .label,
  nav.nav-icons li.has-dd:hover a.link .label {
    opacity: 1;
    transform: translateX(0);
    margin-left: 4px;
  }
  /* Menu motywów - NIE chowamy labela przy hoverze (jak w screenshocie) */
  nav.nav-icons li.theme-dd a.link {
    overflow: visible !important;    /* NIGDY nie obcinaj tekstu */
  }
  /* Gdy menu aktywne + hover na parent, pokaż label i background */
  nav.nav-icons li.theme-dd.menu-active:hover a.link {
    max-width: 240px !important;
    background: var(--soft) !important;
    color: var(--text) !important;
  }
  nav.nav-icons li.theme-dd.menu-active:hover a.link .label {
    opacity: 1 !important;
    transform: translateX(0) !important;
    margin-left: 4px !important;
  }
}

/* Szacunek dla preferencji użytkownika */
@media (prefers-reduced-motion: reduce) {
  nav.nav-icons a.link .label { transition: none !important; }
}

/* --- Płynne przejście między motywami --- */
html, body, header, section, footer, .card, .info, .chip, .hero-card, .promo, .btn, .topbar {
  transition:
    background-color .35s ease,
    color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    filter .35s ease,
    transform .25s ease; /* <-- to przywraca płynne unoszenie */
}

body.theme-transition * {
  transition: none !important;
}

/* Wyjątek: zachowaj płynność animacji przełącznika motywu podczas fade */
body.theme-transition .switch .slider { transition: background-color .4s ease !important; }
body.theme-transition .switch .sun-moon { transition: transform .4s ease, background-color .4s ease !important; }
body.theme-transition .switch .moon-dot { transition: opacity .4s ease !important; }
body.theme-transition .switch .stars { transition: transform .4s ease, opacity .4s ease !important; }
body.theme-transition .switch .star { transition: transform .4s ease !important; }

/* Wyjątek: zachowaj płynność animacji toast notifications */
body.theme-transition .toast {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* 🔹 MOBILE HEADER FIX */
@media (max-width: 768px) {
  .cta-phone {
    display: none !important; /* usuwa numer telefonu */
  }

  .topbar {
    justify-content: space-between;
  }

  /* pokazuje hamburgera tylko w mobile */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 0; /* ukryj tekstowy symbol burgera */
    color: var(--text);
    cursor: pointer;
  }

  /* ukrywa menu dopóki nie klikniesz */
  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed; /* pełna szerokość względem okna */
    top: var(--header-h);
    right: 0;
    left: 0;
    width: 100vw;
    background: var(--panel);
    z-index: 1200;
    /* animacja rozwijania */
    max-height: 0;
    overflow-y: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .30s ease, opacity .18s ease, transform .25s ease;
    will-change: max-height, opacity, transform;
    pointer-events: none;
  }

  /* pokazuje menu po kliknięciu */
  nav ul.show {
    display: flex;
    max-height: calc(100dvh - var(--header-h));
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    overflow-y: auto;
    border-top: 1px solid var(--stroke);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
  }

  nav ul li {
    border-bottom: 1px solid var(--stroke);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: var(--text);
    font-weight: 600;
    gap: 8px;
  }

  nav ul a .icon {
    display: none; /* wyłącza ikonki, zostają same napisy */
  }
}
@media (min-width: 1200px){
  h1{ font-size:48px; }
  body{ font-size:17px; }
}

/* desktop: wyzeruj padding kontenera w sekcjach poniżej hero,
   żeby lewa krawędź była IDENTYCZNA jak w hero */
@media (min-width: 1024px){
  #cennik > .container,
  #dostawy > .container,
  #dlaczego-my > .container,
  #faq > .container,
  #kontakt > .container{
    padding-inline: 0;
  }
}
.cta-phone svg {
  width: 18px;
  height: 18px;
  stroke: white;
  display: block;
  flex-shrink: 0;
}
/* === CTA PHONE: dopasowany do przycisków btn-primary === */
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  border: none;
  background:
    linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 70%, black) 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
  background-blend-mode: overlay, normal;
  background-repeat: no-repeat;
  background-position: center, top;
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(0,0,0,0.25);
  transition: background .3s ease, transform .25s ease, box-shadow .25s ease;
}

.cta-phone:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0) 60%);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.28),
    0 6px 18px color-mix(in srgb, var(--accent-2) 45%, transparent);
}

/* Tryb jasny: zielony gradient jak inne przyciski - cień tylko na hover */
html[data-theme="light"] .cta-phone {
  background:
    linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 55%, color-mix(in srgb, var(--accent-2) 80%, black) 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.18);
}
html[data-theme="light"] .cta-phone:hover {
  background:
    linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 50%, var(--accent-2) 100%),
    radial-gradient(120% 200% at 50% -60%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 6px 18px color-mix(in srgb, var(--accent-2) 40%, transparent);
}
@media (min-width: 1024px) {
  html {
    /* powiększenie całej strony bez psucia układu */
    zoom: 1.12; /* 1.12 = 112% — możesz dać 1.25 dla ~125% */
  }
}

/* === SPÓJNE TŁO DLA DARK I LIGHT MODE === */
/* Usunięto gradienty - proste tła controlled by --bg */
/* === DROPDOWN: PANEL WYBORU MOTYWU (wspólny dla wszystkich stron) === */

/* kotwica pod przyciskiem „Motyw” */
nav .theme-dd { position: relative; }

/* STARE STYLE - USUNIĘTE, UŻYWAMY NOWYCH PONIŻEJ */

nav .menu-theme .mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

nav .menu-theme .mode-auto { display: flex; }

/* guziki trybów */
nav .menu-theme .btn-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}
nav .menu-theme .btn-theme.full { width: 100%; }
nav .menu-theme .btn-theme:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* separator */
nav .menu-theme .divider {
  border-top: 1px solid var(--stroke);
  margin: 4px 0;
}

/* kolory */
nav .menu-theme .color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
nav .menu-theme .color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* === NOWE STYLE DLA MENU MOTYWÓW === */

/* Dropdown motywów – pozycjonowanie jak "Dokumenty" */
nav .theme-dd .dd.menu-theme {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0; /* Wyrównaj do prawej żeby nie uciekało poza viewport */
  margin-top: 0; /* Bez gapa - menu przykleja się do ikony */
  padding-top: 18px; /* Padding wewnętrzny zamiast margin */
  min-width: 320px;
  max-width: calc(100vw - 32px); /* Nie pozwól wyjść poza ekran */
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 16px;
  transform-origin: top right; /* Zmień origin bo wyrównujemy do prawej */
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  z-index: 9999;
}

/* Rozszerz hover area na parent żeby nie zrywało */
nav .has-dd.theme-dd {
  position: relative;
}

/* Utrzymuj menu otwarte TYLKO gdy hover na parent (bez samodzielnego hover na menu) */
nav .has-dd.theme-dd:hover > .dd.menu-theme,
nav .has-dd.theme-dd:focus-within > .dd.menu-theme,
nav .has-dd.theme-dd.open > .dd.menu-theme {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Sekcja nagłówków */
.menu-theme .section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* === TRYBY === */
.menu-theme .theme-section {
  padding: 0;
  margin: 0;
}

.menu-theme .mode-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.menu-theme .btn-theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--soft);
  border: 2px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-theme .btn-theme:hover {
  background: color-mix(in srgb, var(--accent) 15%, var(--soft));
  border-color: var(--accent);
  transform: translateY(-2px);
}

.menu-theme .btn-theme.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.menu-theme .btn-theme.active:hover {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--text);
}

.menu-theme .btn-theme.active:hover .theme-desc {
  color: var(--muted);
}

.menu-theme .theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.menu-theme .theme-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.menu-theme .theme-name {
  font-size: 13px;
  font-weight: 700;
}

.menu-theme .theme-desc {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

.menu-theme .btn-theme.active .theme-desc {
  color: rgba(255,255,255,0.8);
}

/* Auto na całą szerokość */
.menu-theme .btn-theme-auto {
  grid-column: 1 / -1;
}

/* === SEPARATOR === */
.menu-theme .divider {
  height: 1px;
  background: var(--stroke);
  margin: 14px 0;
}

/* === KOLORY === */
.menu-theme .color-section {
  padding: 0;
  margin: 0;
}

.menu-theme .color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.menu-theme .color-swatch {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  background: transparent;
  border: 2px solid var(--stroke);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.menu-theme .color-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Usunięto .color-name - niepotrzebne */

.menu-theme .color-swatch:hover {
  transform: scale(1.05);
  transform-origin: center;
  border-color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
  z-index: 10;
}

/* Usunięto hover dla .color-name */

.menu-theme .color-swatch.active {
  border-color: #fff;
  border-width: 3px;
  box-shadow: 0 0 0 2px var(--accent), 0 4px 12px rgba(0,0,0,0.3);
}

/* === FOOTER HINT === */
.menu-theme .theme-footer {
  padding: 0;
  margin-top: 12px;
}

.menu-theme .theme-hint {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

/* === LIGHT MODE === */
html[data-theme="light"] nav .menu-theme .btn-theme {
  background: #f8fafc;
  color: #0f172a;
  border-color: #e2e8f0;
}

html[data-theme="light"] nav .menu-theme .btn-theme:hover {
  background: color-mix(in srgb, var(--accent) 15%, #f8fafc);
  border-color: var(--accent);
}

html[data-theme="light"] nav .menu-theme .btn-theme.active {
  background: var(--accent);
  color: #fff;
}

html[data-theme="light"] nav .menu-theme .btn-theme.active:hover {
  background: #f8fafc;
  border-color: var(--accent);
  color: #0f172a;
}

html[data-theme="light"] nav .menu-theme .color-swatch {
  border-color: #e2e8f0;
}

html[data-theme="light"] nav .menu-theme .color-swatch:hover {
  border-color: #0f172a;
}

/* === MOBILE === */
@media (max-width: 768px){
  nav .theme-dd .dd.menu-theme { 
    display: none !important; 
  }
}

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.toast-show {
  opacity: 1;
  transform: translateX(0);
}

.toast-hide {
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.toast-info .toast-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.toast-message {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}

/* Mobile toast */
@media (max-width: 640px) {
  #toast-container {
    top: 70px;
    right: 12px;
    left: 12px;
  }
  
  .toast {
    min-width: auto;
    max-width: 100%;
  }
}

/* ===== RIPPLE EFFECT ===== */
.btn, .btn-primary, .btn-theme, .color-swatch, .cta-phone {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* === SUCCESS ANIMATION === */
@keyframes success-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 4px var(--accent); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent); }
}

.success-animation {
  animation: success-pulse 0.4s ease-out;
}

/* Remove checkmark from theme buttons - was overlapping text */
.color-swatch.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: bold;
  color: white;
  animation: checkmark-pop 0.3s ease-out;
  pointer-events: none;
}

@keyframes checkmark-pop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ===== SKELETON LOADERS ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--soft) 0%,
    color-mix(in srgb, var(--soft) 95%, white) 50%,
    var(--soft) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  padding: 20px;
}

.skeleton-media {
  width: 100%;
  height: 140px;
  margin-bottom: 16px;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 10px;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .skeleton-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== COOKIE CONSENT MODAL - GDPR COMPLIANT ===== */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal-show {
  opacity: 1;
}

.cookie-modal-hide {
  opacity: 0;
}

.cookie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.cookie-content {
  position: relative;
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cookie-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.cookie-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cookie-close:hover {
  background: var(--soft);
  color: var(--text);
}

.cookie-close svg {
  width: 20px;
  height: 20px;
}

.cookie-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.cookie-intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.cookie-intro-secondary {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.cookie-intro a,
.cookie-intro-secondary a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-intro a:hover,
.cookie-intro-secondary a:hover {
  text-decoration: none;
}

.cookie-simple-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
}

/* Simple and Advanced Views */
.cookie-simple {
  padding-bottom: 0;
}

.cookie-advanced {
  padding-top: 0;
}

.cookie-advanced-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px 0;
}

.cookie-advanced-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
}

/* Cookie Categories */
.cookie-category {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.cookie-technical {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
}

.cookie-category-info p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.cookie-providers-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.cookie-providers-list p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 4px 0;
}

.cookie-providers-list strong {
  color: var(--text);
  font-weight: 600;
}

.cookie-providers-list a {
  color: var(--accent);
  text-decoration: none;
}

.cookie-providers-list a:hover {
  text-decoration: underline;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--soft);
  border: 1.5px solid var(--stroke);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.cookie-toggle-slider:before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 2.5px;
  background: var(--muted);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(20px);
  background: white;
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-toggle-disabled .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
.cookie-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--stroke);
  background: var(--soft);
  display: flex;
  gap: 12px;
}

.btn-cookie {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-manage,
.btn-cookie-back,
.btn-cookie-reject {
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--stroke);
}

.btn-cookie-manage:hover,
.btn-cookie-back:hover,
.btn-cookie-reject:hover {
  background: var(--hover);
  border-color: var(--muted);
}

.btn-cookie-selected {
  background: var(--soft);
  color: var(--text);
  border: 2px solid var(--stroke);
}

.btn-cookie-selected:hover {
  background: var(--hover);
  border-color: var(--muted);
}

.btn-cookie-accept {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.btn-cookie-accept:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

@media (max-width: 640px) {
  .cookie-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .cookie-header {
    padding: 20px 20px 12px;
  }
  
  .cookie-header h2 {
    font-size: 20px;
  }
  
  .cookie-body {
    padding: 20px;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .btn-cookie {
    width: 100%;
  }
}
#faq .faq-summary {
  font-size: 16px; /* możesz dać nawet 17px lub 18px */
}

#faq .faq-body {
  font-size: 15px; /* dla odpowiedzi */
}
.faq-content {
  transition: height 0.3s ease, opacity 0.3s ease;
  will-change: height, opacity;
}
.faq-content {
  transform-origin: top;
}
