/* ============================================================
   Krówka Szczecińska® personalizowana — style.css
   Vanilla CSS · mobile-first · tokeny z Krowka-Design-System
   Sekcje pliku:
     1. TOKENY  2. RESET  3. LAYOUT / TYPOGRAFIA  4. KOMPONENTY
     5. SEKCJE S00–S06  6. ANIMACJE  7. MEDIA QUERIES
   ============================================================ */

/* ---------- 1. DESIGN TOKENY (1:1 z Design Systemu) ---------- */
:root {
  /* Paleta bazowa */
  --orange-400: #FF9300;
  --orange-500: #ED7E08;   /* brand nr 1 */
  --orange-600: #D26D08;
  --orange-700: #B85706;   /* jedyny pomarańcz do tekstu — 4.77:1 */
  --pink-200: #FBD9DF;
  --pink-400: #F194A0;
  --pink-500: #EA5F85;
  --pink-700: #C43D63;
  --butter-400: #F3D951;
  --silver-400: #B9BEC4;
  --cream-50: #FFF9F2;
  --white: #FFFFFF;
  --milk-100: #EAECEE;
  --ink-600: #5C534E;
  --ink-900: #1A1A1A;

  --orange-a14: rgba(210, 109, 8, 0.14);
  --ink-a08: rgba(26, 26, 26, 0.08);
  --ink-a14: rgba(26, 26, 26, 0.14);

  --brand: var(--orange-500);
  --brand-strong: var(--orange-700);
  --brand-soft: #FDEBD6;

  /* Role semantyczne — motyw cream (domyślny) */
  --bg: var(--cream-50);
  --bg-alt: var(--white);
  --bg-sunk: var(--milk-100);
  --surface: var(--white);
  --surface-tint: var(--brand-soft);
  --text: var(--ink-900);
  --text-muted: var(--ink-600);
  --text-inverse: var(--white);
  --text-brand: var(--orange-700);
  --text-accent: var(--pink-700);
  --border: var(--ink-a08);
  --border-strong: var(--silver-400);
  --primary: var(--orange-500);
  --primary-hover: var(--orange-600);
  --primary-active: var(--orange-700);
  --primary-fg: var(--ink-900);
  --accent: var(--pink-500);
  --accent-fg: var(--white);
  --focus: var(--orange-700);
  --danger: #B3261E;
  --success: #1E6B45;
  --link: var(--orange-700);
  --link-hover: var(--pink-700);

  /* Kształt, cień */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-card: 0 8px 24px var(--orange-a14);
  --shadow-raised: 0 16px 40px -12px rgba(210, 109, 8, 0.22);
  --bw: 1px;
  --bw-strong: 1.75px;
  --focus-ring: 3px solid var(--focus);
  --focus-offset: 2px;
  --grad-butter: linear-gradient(180deg, var(--cream-50) 0%, var(--brand-soft) 100%);

  /* Typografia — Poppins */
  --font-core: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-body: 400;
  --w-lead: 500;
  --w-btn: 600;
  --w-head: 700;
  --w-display: 800;
  --fs-hero: clamp(2.6rem, 6vw, 5.2rem);
  --fs-h2: clamp(1.9rem, 4vw, 3.2rem);
  --fs-h3: clamp(1.3rem, 2.2vw, 1.75rem);
  --fs-h4: 1.15rem;
  --fs-lead: clamp(1.05rem, 1.4vw, 1.3rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;
  --lh-display: 1.04;
  --lh-head: 1.12;
  --lh-body: 1.6;
  --ls-display: -0.02em;
  --ls-head: -0.01em;
  --ls-eyebrow: 0.16em;
  --measure: 68ch;
  --measure-tight: 46ch;

  /* Odstępy, layout */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 9vh, 7rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1240px;
  --maxw-narrow: 780px;
  --nav-h: 72px;

  /* Ruch */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-fast: 0.18s;
  --dur: 0.32s;
  --dur-slow: 0.6s;
  --lift: -2px;
  --press: 0.98;
}

/* Motyw „warm" — plate #FDEBD6 (stopka) */
[data-theme="warm"] {
  --bg: var(--brand-soft);
  --surface: var(--white);
  --border: var(--ink-a14);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0.01ms; --dur: 0.01ms; --dur-slow: 0.01ms; --lift: 0px; --press: 1; }
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-core);
  font-weight: var(--w-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: var(--link); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--link-hover); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: var(--w-head); line-height: var(--lh-head); letter-spacing: var(--ls-head); text-wrap: balance; }
h1 { font-weight: var(--w-display); font-size: var(--fs-hero); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { max-width: var(--measure); }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); border-radius: var(--r-sm); }
::selection { background: var(--butter-400); color: var(--ink-900); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. LAYOUT / TYPOGRAFIA ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
main > section { scroll-margin-top: calc(var(--nav-h) + var(--sp-4)); }

.ico { width: 1.25em; height: 1.25em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--brand { color: var(--text-brand); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: var(--w-btn); font-size: var(--fs-xs); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--text-brand);
}
.eyebrow::before { content: ""; width: 1.8em; height: 1.75px; border-radius: 2px; background: currentColor; }
.eyebrow--center { justify-content: center; }

.sec-head { display: grid; gap: var(--sp-4); justify-items: start; max-width: var(--measure); }
.sec-head--tight { margin-bottom: var(--sp-5); }
.sec-title { max-width: 24ch; }
.sec-title--h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); font-weight: var(--w-lead); color: var(--text-muted); max-width: var(--measure-tight); }

/* ---------- 4. KOMPONENTY ---------- */

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-weight: var(--w-btn); letter-spacing: 0.01em; line-height: 1.1;
  padding: 0.8em 1.6em; border-radius: var(--r-pill); border: var(--bw-strong) solid transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(var(--press)); }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.55; cursor: not-allowed; }
.btn--primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-card); }
.btn--primary:hover { background: var(--primary-hover); color: var(--white); box-shadow: var(--shadow-raised); transform: translateY(var(--lift)); }
.btn--primary:active { background: var(--primary-active); color: var(--white); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn--outline:hover { background: var(--brand-soft); border-color: var(--primary); color: var(--text); }
.btn--ghost { background: transparent; color: var(--text-muted); padding: 0.5em 1em; }
.btn--ghost:hover { color: var(--text-brand); background: var(--brand-soft); }
.btn--lg { padding: 0.95em 2rem; font-size: 1.05rem; }
.btn--xl { padding: 1.05em 2.6rem; font-size: clamp(1rem, 1.6vw, 1.2rem); text-transform: uppercase; letter-spacing: 0.06em; }
.btn--full { display: flex; width: 100%; }

.iconbtn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-pill);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.iconbtn:hover { background: var(--brand-soft); }
.iconbtn:active { transform: scale(var(--press)); }
.iconbtn:disabled { opacity: 0.45; cursor: not-allowed; background: none; }

/* Karty */
.card { background: var(--surface); border-radius: var(--r-lg); border: var(--bw) solid var(--border); box-shadow: var(--shadow-card); padding: var(--sp-5); }
.card--tint { background: var(--surface-tint); }
.card--calc, .card--form { padding: clamp(var(--sp-5), 3vw, var(--sp-6)); }
.note { display: flex; gap: var(--sp-4); align-items: flex-start; }
.note .ico { width: 22px; height: 22px; margin-top: 2px; }
.note p { font-size: var(--fs-sm); }

/* Pigułki / badge */
.badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.badge {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: var(--w-btn); font-size: var(--fs-xs); padding: 0.45em 0.9em; border-radius: var(--r-pill);
  background: var(--milk-100); color: var(--text); white-space: nowrap;
}
.badge .ico { width: 1.1em; height: 1.1em; }
.badge--butter { background: var(--butter-400); }
.badge--brand { background: var(--brand-soft); color: var(--text-brand); }
.badge--neutral { background: var(--milk-100); }

/* Trust bar */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-6);
  background: var(--surface); border-radius: var(--r-pill); box-shadow: var(--shadow-card);
  padding: var(--sp-4) var(--sp-5); margin-top: var(--sp-7);
}
.trust li { display: inline-flex; align-items: center; gap: 0.5em; font-weight: var(--w-btn); font-size: var(--fs-sm); white-space: nowrap; }
.trust .ico { color: var(--text-brand); }

/* Przełącznik wariantu */
.switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--milk-100); border: var(--bw) solid var(--border); max-width: 100%; }
.switch button {
  font-weight: var(--w-btn); font-size: var(--fs-sm); padding: 0.7em 1.3em; border-radius: var(--r-pill);
  color: var(--text-muted); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.switch button[aria-checked="true"] { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-card); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  font-weight: var(--w-btn); font-size: var(--fs-sm); padding: 0.62em 1.1em; border-radius: var(--r-md);
  background: var(--surface); border: var(--bw-strong) solid var(--border-strong);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.chip:hover { background: var(--brand-soft); }
.chip[aria-checked="true"] { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); box-shadow: var(--shadow-card); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 4px; border-radius: var(--r-pill); border: var(--bw-strong) solid var(--border-strong); background: var(--surface); }
.stepper__value { min-width: 4.6ch; text-align: center; font-weight: var(--w-display); font-size: 1.35rem; }
.stepper__unit { font-weight: var(--w-btn); font-size: var(--fs-sm); color: var(--text-muted); padding-right: 6px; }

/* Toggle (switch role) */
.toggle { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: var(--w-btn); font-size: var(--fs-sm); cursor: pointer; }
.toggle [role="switch"] {
  width: 52px; height: 30px; flex: 0 0 auto; border-radius: var(--r-pill); padding: 2px; display: flex;
  border: var(--bw-strong) solid var(--border-strong); background: var(--milk-100);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.toggle__knob { width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(26,26,26,.28); transition: transform var(--dur-fast) var(--ease); }
.toggle [role="switch"][aria-checked="true"] { background: var(--primary); border-color: var(--primary); }
.toggle [role="switch"][aria-checked="true"] .toggle__knob { transform: translateX(22px); }

/* Formularz */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field > label, .fieldset > legend { font-weight: var(--w-btn); font-size: var(--fs-sm); }
.req { color: var(--text-brand); }
.field input:not([type="file"]), .field textarea {
  width: 100%; border-radius: var(--r-md); padding: 0.75rem 0.9rem; line-height: 1.5;
  background: var(--surface); border: var(--bw-strong) solid var(--border-strong); outline: none;
  transition: border-color var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field textarea:focus { border-color: var(--focus); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: var(--fs-xs); color: var(--text-muted); }
.field__msg { font-size: var(--fs-xs); color: var(--danger); font-weight: var(--w-lead); }
.field__msg:empty { display: none; }
.field:has(.field__msg:not(:empty)) .field__hint { display: none; }
.fieldset { border: 0; display: grid; gap: var(--sp-2); }
.fieldset legend { margin-bottom: var(--sp-1); }
.form__2col { display: grid; gap: var(--sp-4); }
.form__company { display: grid; gap: var(--sp-4); background: var(--cream-50); border: var(--bw) solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); }
.form__delivery { display: grid; gap: var(--sp-4); }

/* Checkbox / radio */
.check { display: flex; align-items: flex-start; gap: 0.7rem; font-size: var(--fs-sm); line-height: 1.5; cursor: pointer; max-width: var(--measure); position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  position: relative; width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; border-radius: 6px;
  background: var(--surface); border: var(--bw-strong) solid var(--border-strong);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.check input[type="radio"] + .check__box { border-radius: 50%; }
.check input:checked + .check__box { border-color: var(--primary); }
.check input[type="checkbox"]:checked + .check__box { background: var(--primary); }
.check input[type="checkbox"]:checked + .check__box::after {
  content: ""; position: absolute; left: 6px; top: 5px; width: 9px; height: 5px;
  border-left: 1.75px solid var(--ink-900); border-bottom: 1.75px solid var(--ink-900); transform: rotate(-45deg);
}
.check input[type="radio"]:checked + .check__box::after {
  content: ""; position: absolute; left: 4px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--primary);
}
.check input:focus-visible + .check__box { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

/* Upload */
.upload {
  display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md); border: var(--bw-strong) dashed var(--border-strong); background: var(--surface); cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.upload:hover, .upload.is-over { background: var(--brand-soft); border-color: var(--primary); }
.upload__ico { width: 26px; height: 26px; }
.upload__text { display: grid; gap: 2px; min-width: 0; }
.upload__name { font-weight: var(--w-btn); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.upload__hint { font-size: var(--fs-xs); color: var(--text-muted); }

/* Stan „wysłano" */
.form__done { display: grid; gap: var(--sp-4); justify-items: start; }
.form__done p { color: var(--text-muted); }

/* Akordeon FAQ */
.accordion { display: grid; gap: var(--sp-3); }
.acc { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-card); border: var(--bw) solid var(--border); }
.acc__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); font-weight: var(--w-head); font-size: clamp(1rem, 1.5vw, 1.15rem);
  cursor: pointer; list-style: none;
}
.acc__q::-webkit-details-marker { display: none; }
.acc__chev { color: var(--text-brand); transition: transform var(--dur) var(--ease); }
.acc[open] .acc__chev { transform: rotate(180deg); }
.acc__a { padding: 0 var(--sp-5) var(--sp-5); color: var(--text-muted); }

/* Rozwijany panel (S03) */
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-inout); }
.collapse.is-open { grid-template-rows: 1fr; }
.collapse__inner { overflow: hidden; min-height: 0; display: grid; gap: var(--sp-5); justify-items: center; }
.collapse__inner > .card { width: min(100%, 720px); }
.collapse.is-open .collapse__inner { overflow: visible; }

/* ---------- 5. SEKCJE ---------- */

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: transparent; transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.is-scrolled { background: rgba(255, 249, 242, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.brand__logo { width: clamp(120px, 12vw, 160px); height: auto; }
.nav__links { display: none; }
.nav__links a:not(.btn) { font-weight: var(--w-btn); font-size: var(--fs-sm); color: var(--text); padding: 0.4em 0.2em; }
.nav__links a:not(.btn):hover { color: var(--text-brand); }
.burger { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); }
.burger .ico { width: 26px; height: 26px; }
.burger__close, .burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }
/* menu mobilne (otwarte) */
.nav.is-open .nav__links {
  display: grid; gap: var(--sp-2); position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: var(--cream-50); padding: var(--sp-5) var(--gutter) var(--sp-6); box-shadow: var(--shadow-raised); border-bottom: var(--bw) solid var(--border);
}
.nav.is-open .nav__links a:not(.btn) { font-size: 1.1rem; padding: 0.6em 0; }
.nav.is-open .nav__cta { margin-top: var(--sp-3); justify-content: center; }
.nav.is-open { background: var(--cream-50); }

/* S00 HERO */
.hero { padding: var(--sp-6) 0 var(--section-y); background: var(--grad-butter); }
.hero__grid { display: grid; gap: var(--sp-7); align-items: center; }
.hero__copy { display: grid; gap: var(--sp-5); justify-items: start; }
.hero__title { max-width: 18ch; }
.hero__media { position: relative; display: grid; justify-items: center; align-content: center; gap: var(--sp-6); }
.hero__badges-img { width: 85%; max-width: 460px; }

/* Slajder wariantów papierka (S00) */
.hero-slider { width: 92%; max-width: 520px; display: grid; gap: var(--sp-3); justify-items: center; }
.hero-slider__viewport { width: 100%; overflow: hidden; }
.hero-slider__track { display: flex; transition: transform 0.7s var(--ease-inout); will-change: transform; }
.hero-slider__track.no-anim { transition: none; }
.hero-slider__img { width: 100%; flex: 0 0 100%; }
.hero-slider__dots { display: flex; gap: var(--sp-2); }
.hero-slider__dot {
  width: 12px; height: 12px; border-radius: 50%; padding: 0;
  background: var(--border-strong); border: var(--bw-strong) solid transparent;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.hero-slider__dot:hover { transform: scale(1.2); }
.hero-slider__dot[aria-current="true"] { background: var(--primary); }
@media (prefers-reduced-motion: reduce) { .hero-slider__track { transition: none; } }

/* S01 PROCES + S02 ILOŚĆ */
.proces { padding: var(--section-y) 0; background: var(--bg-alt); border-block: var(--bw) solid var(--border); }
.proces__grid { display: grid; gap: var(--sp-7); align-items: start; }
.proces__col { display: grid; gap: var(--sp-6); }
.steps { display: grid; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: var(--sp-4); position: relative; padding-bottom: var(--sp-5); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 29px; top: 60px; bottom: 0; width: 1px; background: var(--border-strong); }
.step:last-child::before { display: none; }
.step__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; border: var(--bw-strong) solid var(--text-brand); color: var(--text-brand); background: var(--surface); }
.step__icon .ico { width: 24px; height: 24px; }
.step__body { display: grid; gap: var(--sp-1); padding-top: var(--sp-2); }
.step__title { font-size: var(--fs-h4); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6em; }
.step__time { font-size: var(--fs-xs); font-weight: var(--w-btn); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-brand); }
.step__body p { color: var(--text-muted); }
.ilosc { display: grid; gap: var(--sp-5); }
.calc { display: grid; gap: var(--sp-4); justify-items: start; }
.calc__row { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.calc__result { font-size: var(--fs-sm); color: var(--text-muted); }
.calc__result strong { color: var(--text); font-weight: var(--w-btn); }
.calc__min { font-size: var(--fs-xs); color: var(--text-brand); font-weight: var(--w-btn); }

/* S03 ZAPYTANIE */
.zapytanie { padding: var(--section-y) 0; background: var(--bg); }
.zapytanie__inner { display: grid; gap: var(--sp-5); justify-items: center; }
.zapytanie__toggle { min-width: min(100%, 320px); background: var(--white); box-shadow: var(--shadow-card); }
.zapytanie__toggle:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--white); box-shadow: var(--shadow-raised); transform: translateY(var(--lift)); }
.zapytanie__toggle:active { background: var(--primary-active); border-color: var(--primary-active); color: var(--white); }
.zapytanie__label-close, .zapytanie__toggle[aria-expanded="true"] .zapytanie__label-open { display: none; }
.zapytanie__toggle[aria-expanded="true"] .zapytanie__label-close { display: inline-flex; align-items: center; gap: 0.6em; }
.zapytanie__collapse { justify-self: center; }

/* S04 REALIZACJE */
.realizacje { padding: var(--section-y) 0; background: var(--bg); }
.realizacje .sec-head { margin-bottom: var(--sp-6); }
.gallery__grid { display: grid; gap: var(--sp-5); }
.case { background: var(--surface); border-radius: var(--r-lg); border: var(--bw) solid var(--border); box-shadow: var(--shadow-card); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.case__media { height: 210px; display: grid; place-items: center; padding: var(--sp-4); }
.case__media img { max-height: 170px; width: auto; max-width: 100%; }
.case__body { padding: var(--sp-5); display: grid; gap: var(--sp-2); justify-items: start; }
.case__title { font-size: var(--fs-h4); }
.gallery[data-collapsed="true"] .case--more { display: none; }
.gallery__actions { display: flex; justify-content: center; margin-top: var(--sp-6); }
.gallery__label-close, #galleryToggle[aria-expanded="true"] .gallery__label-open { display: none; }
#galleryToggle[aria-expanded="true"] .gallery__label-close { display: inline-flex; align-items: center; gap: 0.6em; }
.gallery__label-open { display: inline-flex; align-items: center; gap: 0.6em; }

/* S05 FAQ */
.faq { padding: var(--section-y) 0; background: var(--bg-alt); border-top: var(--bw) solid var(--border); }
.faq .sec-head { margin-bottom: var(--sp-5); }

/* S06 STOPKA */
.footer { background: var(--bg); padding: var(--section-y) 0 var(--sp-6); }
.footer__grid { display: grid; gap: var(--sp-6); }
.footer__brand { display: grid; gap: var(--sp-4); }
.footer__brand img { width: 180px; }
.footer__brand p { color: var(--text-muted); max-width: 28ch; }
.footer__col { display: grid; gap: var(--sp-3); align-content: start; justify-items: start; }
.footer__col h4 { font-size: var(--fs-sm); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; margin-bottom: var(--sp-1); }
.footer__col a { color: var(--text-muted); font-size: 1.05rem; display: inline-flex; align-items: center; gap: 0.5em; }
.footer__col a:hover { color: var(--text-brand); }
.footer__contact a { color: var(--text); font-weight: var(--w-btn); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: var(--bw) solid var(--border); color: var(--text-muted); font-size: var(--fs-sm); }
.footer__legal { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--text-muted); max-width: 60ch; }

/* ---------- 6. ANIMACJE (IntersectionObserver → .is-in) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 7. MEDIA QUERIES ---------- */
@media (min-width: 640px) {
  .form__2col { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav__links { display: flex; align-items: center; gap: var(--sp-5); }
  .burger { display: none; }
  .hero { padding-top: var(--sp-8); }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); }
  .proces__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-7); }
}

@media (min-width: 1200px) {
  .hero__grid { grid-template-columns: 1.15fr 1fr; }
  .proces__grid { grid-template-columns: 1.1fr 1fr; }
}

@media (max-width: 480px) {
  .trust { border-radius: var(--r-lg); gap: var(--sp-2) var(--sp-4); }
  .trust li { font-size: var(--fs-xs); }
  .switch { width: 100%; }
  .switch button { flex: 1; padding-inline: 0.6em; white-space: nowrap; }
  .btn--xl { width: 100%; padding-inline: 1.2rem; }
}
