/* ==========================================================================
   RODE-MED - Makieta zakupu badania (skala szarości / high-fidelity)
   Autorski CSS zbudowany od zera. Paleta wyłącznie w odcieniach szarości,
   tak aby łatwo było później podmienić na kolory marki (--accent).
   ========================================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Design tokens - RODE-MED (wersja kolorowa)
   Paleta wyprowadzona z: Rode-Med.penpot (logo: #0e62c2, #0a2c54, #286d3b),
   strona_glowna/global.css oraz projekt.jpg.
   Uwaga: skala "--gray-*" jest zachowana jako nazwa, ale ma teraz chłodne,
   niebieskie odcienie - dzięki temu cały layout makiety od razu jest na marce.
   ========================================================================== */
:root {
  /* --- Marka: niebieski (podstawowy) --- */
  --blue-900: #072e5c;
  --blue-800: #0a2c54;   /* navy - nagłówki, stopka */
  --blue-700: #134571;
  --blue-600: #0a4f9e;
  --blue-500: #0e62c2;   /* PRIMARY - przyciski, linki */
  --blue-400: #1180e0;
  --blue-300: #2f9be0;
  --blue-200: #9dc7f0;
  --blue-100: #d3e3f5;
  --blue-50:  #e6f1fc;
  --blue-25:  #f2f8fd;

  /* --- Marka: zieleń z logo (akcent, statusy pozytywne) --- */
  --green-700: #286d3b;
  --green-600: #3a8348;
  --green-500: #5d953c;
  --green-400: #66a93d;
  --green-100: #e4f0e2;
  --green-50:  #eff7ec;

  /* --- Statusy --- */
  --amber-700: #7c702c;
  --amber-100: #fcf2e6;
  --red-700: #b3261e;
  --red-600: #ba1a1a;
  --red-100: #fdecea;

  /* --- Neutralne (chłodne, niebieskawe) --- */
  --gray-0: #ffffff;
  --gray-25: #fbfdff;
  --gray-50: #f5f9ff;
  --gray-100: #eef4fb;
  --gray-150: #e6f1fc;
  --gray-200: #dce7f3;
  --gray-300: #c3d5e8;
  --gray-400: #9db4cf;
  --gray-500: #6f88a6;
  --gray-600: #43536a;
  --gray-700: #2b4b6f;
  --gray-800: #134571;
  --gray-900: #0a2c54;

  /* --- Semantyka --- */
  --bg: var(--gray-50);
  --surface: var(--gray-0);
  --surface-alt: var(--blue-50);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --text-subtle: var(--gray-500);

  /* --- Akcent = niebieski marki --- */
  --accent: var(--blue-500);
  --accent-hover: var(--blue-600);
  --accent-soft: var(--blue-50);
  --on-accent: #ffffff;

  /* --- Promienie (8px baza, pigułki dla CTA) --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* --- Cienie: barwione na niebiesko (jak w projekcie) --- */
  --shadow-xs: 0 1px 2px rgba(10, 44, 84, 0.05);
  --shadow-sm: 0 1px 2px rgba(10, 44, 84, 0.04), 0 2px 10px rgba(10, 44, 84, 0.05);
  --shadow-md: 0 4px 14px rgba(14, 98, 194, 0.10), 0 10px 28px rgba(10, 44, 84, 0.07);
  --shadow-lg: 0 10px 24px rgba(14, 98, 194, 0.12), 0 24px 56px rgba(10, 44, 84, 0.14);
  --shadow-primary: 0 8px 18px rgba(14, 98, 194, 0.28);
  --shadow-primary-hover: 0 12px 26px rgba(14, 98, 194, 0.34);
  --ring: 0 0 0 3px rgba(14, 98, 194, 0.22);

  /* --- Layout: rytm 8px, sekcje 80px --- */
  --container: 1280px;
  --gutter: 24px;
  --nav-h: 76px;
  --section-y: 80px;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
}
h2 {
  font-size: clamp(22px, 3vw, 30px);
}
h3 {
  font-size: 19px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.muted {
  color: var(--text-muted);
}

.section {
  padding-block: var(--section-y);
}

/* Ikony materiałowe */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  user-select: none;
}
.icon-fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border: 1px solid transparent;
  transition: background 0.16s, border-color 0.16s, color 0.16s, box-shadow 0.16s,
    transform 0.16s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn .material-symbols-outlined {
  font-size: 19px;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--gray-500);
  background: var(--gray-50);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 15px 26px;
  font-size: 15px;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* Okrągły przycisk (szybkie dodanie) */
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, background 0.16s;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.06);
}
.icon-btn.ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.icon-btn.ghost:hover {
  background: var(--surface-alt);
}

/* ==========================================================================
   Chips / tags / badges
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.14s;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.chip.is-active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  background: var(--gray-150);
  color: var(--gray-700);
}
.tag.outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}
.tag.solid {
  background: var(--accent);
  color: var(--on-accent);
}

/* ==========================================================================
   Header / Top nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}
.brand .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand .logo-mark .material-symbols-outlined {
  font-size: 21px;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-top: -2px;
}
/* Prawdziwe logo RODE-MED (w skali szarości) */
.brand-logo {
  height: 46px;
  width: auto;
}
.site-footer .brand-logo,
.footer-logo {
  height: 40px;
  /* wersja jasna na ciemnej stopce */
  filter: grayscale(1) brightness(0) invert(1);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.main-nav a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.14s, background 0.14s;
}
.main-nav a:hover {
  color: var(--text);
  background: var(--surface-alt);
}
.main-nav a.is-active {
  color: var(--text);
  font-weight: 600;
  background: var(--surface-alt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  position: relative;
  transition: background 0.14s, color 0.14s;
}
.header-icon:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.cart-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--gray-900);
  color: var(--gray-300);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: 56px;
}
.site-footer .brand {
  color: var(--gray-0);
}
.site-footer .brand .logo-mark {
  background: var(--gray-0);
  color: var(--gray-900);
}
.footer-about {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-400);
  margin-top: 16px;
  max-width: 34ch;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--gray-300);
  transition: background 0.14s;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--gray-0);
}
.footer-col h4 {
  color: var(--gray-0);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-weight: 700;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-400);
  padding: 5px 0;
  transition: color 0.14s;
}
.footer-col a:hover {
  color: var(--gray-0);
}
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--gray-400);
  padding: 5px 0;
}
.footer-contact .material-symbols-outlined {
  font-size: 19px;
  color: var(--gray-500);
}
/* Rozwijane lokalizacje w stopce */
.footer-loc {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-loc:first-of-type {
  border-top: none;
}
.footer-loc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  color: var(--gray-0);
  font-weight: 600;
  font-size: 14px;
}
.footer-loc summary::-webkit-details-marker {
  display: none;
}
.footer-loc summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  color: var(--gray-500);
  transition: transform 0.2s;
}
.footer-loc[open] summary::after {
  transform: rotate(180deg);
}
.footer-loc .fl-body {
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-loc .fl-body a,
.footer-loc .fl-body span {
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.footer-loc .fl-body a:hover {
  color: var(--gray-0);
}
.footer-loc .fl-body .material-symbols-outlined {
  font-size: 17px;
  color: var(--gray-500);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  font-size: 13px;
  color: var(--gray-500);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.card-pad {
  padding: 24px;
}

/* Karta produktu (pakiet / badanie) */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.product-card .pc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.pc-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--gray-700);
  display: grid;
  place-items: center;
}
.pc-icon .material-symbols-outlined {
  font-size: 24px;
}
.product-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.product-card .pc-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 18px;
}
.pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.pc-meta .tag {
  font-size: 10.5px;
}
.pc-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.price {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.price .old {
  font-size: 12px;
  color: var(--text-subtle);
  text-decoration: line-through;
}
.price .now {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.price .unit {
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 500;
}
.pc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Lista badań w pakiecie */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.check-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
}
.check-list .material-symbols-outlined {
  font-size: 17px;
  color: var(--gray-500);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.field .hint {
  font-size: 12px;
  color: var(--text-subtle);
}
.input,
.select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.14s, box-shadow 0.14s;
}
.input::placeholder {
  color: var(--text-subtle);
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--gray-700);
  box-shadow: 0 0 0 3px rgba(65, 70, 78, 0.12);
}
.input[readonly],
.input.is-locked {
  background: var(--surface-alt);
  color: var(--text-muted);
  cursor: not-allowed;
  border-style: dashed;
}
.input[readonly]:focus {
  box-shadow: none;
  border-color: var(--border-strong);
}
.input-icon {
  position: relative;
}
.input-icon .material-symbols-outlined {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 20px;
  pointer-events: none;
}
.input-icon .input {
  padding-left: 42px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1 / -1;
}

/* Search + location bar */
.searchbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-width: 720px;
}
.searchbar .sb-part {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  flex: 1;
}
.searchbar .sb-part + .sb-part {
  border-left: 1px solid var(--border);
}
.searchbar .material-symbols-outlined {
  color: var(--text-subtle);
  font-size: 21px;
}
.searchbar input,
.searchbar select {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  padding: 10px 0;
}
.searchbar input:focus,
.searchbar select:focus {
  outline: none;
}
.searchbar input#search {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* Radio "kafelkowe" */
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.14s, box-shadow 0.14s, background 0.14s;
}
.option:hover {
  border-color: var(--gray-500);
}
.option.is-selected {
  border-color: var(--gray-800);
  box-shadow: 0 0 0 2px var(--gray-800) inset;
  background: var(--gray-25);
}
.option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.option.is-disabled:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}
.option .radio {
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.14s;
}
.option.is-selected .radio {
  border-color: var(--gray-900);
}
.option.is-selected .radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: var(--r-full);
  background: var(--gray-900);
}
.option .opt-body {
  flex: 1;
}
.option .opt-title {
  font-weight: 600;
  font-size: 14.5px;
}
.option .opt-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}
.option .opt-logo {
  height: 26px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: grid;
  place-items: center;
}

/* ==========================================================================
   Cart drawer (aside)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 46, 92, 0.46);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
  z-index: 90;
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 92vw;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  transform: translateX(0);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.drawer-head .count {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-foot {
  border-top: 1px solid var(--border);
  padding: 20px 22px;
  background: var(--surface);
}

/* Pozycja koszyka */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  position: relative;
}
.cart-item .ci-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  color: var(--gray-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cart-item .ci-body {
  flex: 1;
  min-width: 0;
}
.cart-item h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.cart-item .ci-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cart-item .ci-price {
  font-weight: 700;
  font-size: 14px;
}
.cart-item .ci-remove {
  color: var(--text-subtle);
  align-self: flex-start;
  transition: color 0.14s;
  display: inline-flex;
}
.cart-item .ci-remove:hover {
  color: var(--gray-900);
}

/* Info banner */
.note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  font-size: 13px;
  color: var(--text-muted);
  align-items: flex-start;
}
.note .material-symbols-outlined {
  font-size: 20px;
  color: var(--gray-500);
  flex-shrink: 0;
}

/* Wiersze podsumowania */
.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 5px 0;
  color: var(--text-muted);
}
.sum-row.total {
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.sum-row.total .amount {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
}

/* ==========================================================================
   Stepper (kroki checkout)
   ========================================================================== */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stepper .step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-subtle);
  font-size: 13px;
  font-weight: 600;
}
.stepper .step .num {
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 12px;
  background: var(--surface);
}
.stepper .step.is-active {
  color: var(--text);
}
.stepper .step.is-active .num {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.stepper .step.is-done .num {
  background: var(--gray-700);
  color: var(--on-accent);
  border-color: var(--gray-700);
}
.stepper .bar {
  width: 40px;
  height: 1.5px;
  background: var(--border-strong);
  margin: 0 12px;
}
@media (max-width: 720px) {
  .stepper .step .lbl {
    display: none;
  }
  .stepper .bar {
    width: 20px;
    margin: 0 6px;
  }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.summary-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .hide-mobile {
    display: none !important;
  }
}
/* Widoczność zależna od urządzenia */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

/* Zwijana lista placówek (skalowalna – 9+ lokalizacji) */
.loc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}
.loc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.loc-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.loc-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
}
.loc-item > summary::-webkit-details-marker {
  display: none;
}
.loc-item .li-ic {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  color: var(--gray-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.loc-item .li-city {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
}
.loc-item .li-phone {
  margin-left: auto;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.loc-item .li-phone .material-symbols-outlined {
  font-size: 17px;
  color: var(--gray-500);
}
.loc-item .li-chevron {
  color: var(--text-subtle);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.loc-item[open] .li-chevron {
  transform: rotate(180deg);
}
.loc-item .li-body {
  padding: 0 18px 18px 64px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.loc-item .li-body .li-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-muted);
}
.loc-item .li-body .li-row .material-symbols-outlined {
  font-size: 18px;
  color: var(--gray-500);
  flex-shrink: 0;
}
.loc-item .li-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.loc-item .li-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
@media (max-width: 560px) {
  .loc-item .li-phone {
    display: none;
  }
  .loc-item .li-body {
    padding-left: 18px;
  }
}

/* Ostatnio oglądane (poziomy pasek) */
.viewed-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.viewed-card {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.viewed-card .vc-stretch {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
.viewed-card .vc-stretch:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.viewed-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}
.viewed-card .vc-ic {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  color: var(--gray-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.viewed-card .vc-body {
  min-width: 0;
  flex: 1;
}
.viewed-card h4 {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viewed-card .vc-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.viewed-card .icon-btn {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
}
.viewed-card .icon-btn .material-symbols-outlined {
  font-size: 18px;
}

/* Zwijane sekcje cennika */
.price-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
}
.price-section > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  transition: background 0.14s;
}
.price-section > summary:hover {
  background: var(--surface-alt);
}
.price-section > summary::-webkit-details-marker {
  display: none;
}
.price-section > summary .ps-ic {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--gray-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.price-section > summary .ps-count {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-subtle);
}
.price-section > summary .ps-chevron {
  color: var(--text-subtle);
  transition: transform 0.2s;
}
.price-section[open] > summary .ps-chevron {
  transform: rotate(180deg);
}
.price-section[open] > summary {
  border-bottom: 1px solid var(--border);
}
.price-section .ps-body {
  padding: 20px 24px 24px;
}
.price-section .ps-body .price-table {
  border-radius: var(--r-md);
}
.stack {
  display: flex;
  flex-direction: column;
}
.stack-md > * + * {
  margin-top: 24px;
}
.stack-sm > * + * {
  margin-top: 14px;
}
.row {
  display: flex;
  align-items: center;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-40 {
  margin-top: 40px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-40 {
  margin-bottom: 40px;
}
.text-center {
  text-align: center;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-subtle);
  flex-wrap: wrap;
}
.breadcrumb a:hover {
  color: var(--text);
}
.breadcrumb .material-symbols-outlined {
  font-size: 16px;
}
.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* Placeholdery zdjęć (skala szarości) */
.img-ph {
  background: linear-gradient(135deg, var(--gray-150), var(--gray-200));
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  color: var(--gray-400);
  position: relative;
  overflow: hidden;
}
.img-ph .material-symbols-outlined {
  font-size: 42px;
}
.img-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 14px,
    rgba(255, 255, 255, 0.35) 14px,
    rgba(255, 255, 255, 0.35) 15px
  );
  opacity: 0.5;
}

/* Map placeholder */
.map-ph {
  background: var(--gray-100);
  background-image: linear-gradient(rgba(14, 98, 194, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 98, 194, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.map-ph .pin {
  color: var(--gray-800);
  font-size: 34px;
}

/* Divider */
.hr {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 20px 0;
}

/* Pill lock/secure line */
.secure-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.secure-line .material-symbols-outlined {
  font-size: 17px;
  color: var(--gray-500);
}

/* Page intro */
.page-head {
  padding-block: 40px 8px;
}

/* Hide scrollbar util */
.no-sb::-webkit-scrollbar {
  display: none;
}
.no-sb {
  scrollbar-width: none;
}

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-nav {
    display: none;
  }
}
@media (max-width: 640px) {
  .grid-3,
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .container {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .searchbar {
    flex-direction: column;
    border-radius: var(--r-lg);
  }
  .searchbar .sb-part + .sb-part {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .footer-bottom .container {
    flex-direction: column;
  }
}

/* ==========================================================================
   Hero / sklep intro
   ========================================================================== */
.shop-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.shop-hero .container {
  padding-block: 40px;
}
.shop-hero p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 60ch;
  margin-top: 10px;
}
.shop-hero .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
}

/* Segmentowany przełącznik (Pakiety / Pojedyncze) */
.segmented {
  display: inline-flex;
  padding: 4px;
  background: var(--surface-alt);
  border-radius: var(--r-full);
  gap: 4px;
}
.segmented button {
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.14s;
}
.segmented button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

/* ==========================================================================
   Account choice (guest / create / login)
   ========================================================================== */
.account-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.acc-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.14s, box-shadow 0.14s, background 0.14s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acc-card:hover {
  border-color: var(--gray-500);
}
.acc-card.is-selected {
  border-color: var(--gray-900);
  box-shadow: 0 0 0 1.5px var(--gray-900) inset;
  background: var(--gray-25);
}
.acc-card .acc-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.acc-card .acc-ic {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--gray-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.acc-card h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
}
.acc-card p {
  font-size: 13px;
  color: var(--text-muted);
}
.acc-card .acc-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700);
}
@media (max-width: 640px) {
  .account-choice {
    grid-template-columns: 1fr;
  }
}

/* Benefit list (zalety konta) */
.benefits {
  display: grid;
  gap: 10px;
}
.benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-muted);
}
.benefits .material-symbols-outlined {
  font-size: 19px;
  color: var(--gray-600);
  flex-shrink: 0;
}

/* Kolapsujący blok danych logowania na checkout */
.inline-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.inline-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--gray-900);
}

/* ==========================================================================
   Auth (login / rejestracja) - wąska karta wyśrodkowana
   ========================================================================== */
main:has(> .auth-wrap) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px var(--gutter);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.auth-card .auth-ic {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.auth-card h1 {
  font-size: 26px;
  text-align: center;
}
.auth-card .auth-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 26px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-subtle);
  font-size: 12px;
  margin: 22px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link:hover {
  color: var(--gray-600);
}
.forgot {
  font-size: 13px;
  color: var(--text-muted);
}
.forgot:hover {
  color: var(--text);
}

/* ==========================================================================
   Gateway (bramka płatności)
   ========================================================================== */
.gateway-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gutter);
}
.gateway-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.gateway-head {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  padding: 28px;
  text-align: center;
}
.gateway-head .g-lock {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--gray-800);
}
.gateway-head h2 {
  font-size: 20px;
}
.gateway-head .g-order {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.gateway-head .g-amount {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  margin-top: 12px;
}
.gateway-body {
  padding: 28px;
}
.pay-tabs {
  display: flex;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 24px;
}
.pay-tabs button {
  flex: 1;
  padding: 10px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.pay-tabs button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.brandmark {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-subtle);
  text-align: center;
  font-size: 15px;
  margin-top: 18px;
}

/* ==========================================================================
   Confirmation (potwierdzenie)
   ========================================================================== */
.confirm-hero {
  text-align: center;
  padding: 64px var(--gutter) 40px;
}
.confirm-check {
  width: 76px;
  height: 76px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  box-shadow: var(--shadow-md);
}
.confirm-check .material-symbols-outlined {
  font-size: 42px;
}
.confirm-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
}
.confirm-hero p {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 10px;
}
.order-ref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--surface-alt);
  font-size: 14px;
  font-weight: 600;
}

.info-tile {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.info-tile .it-ic {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--gray-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-tile h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.info-tile p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Kroki "co dalej" */
.next-steps {
  counter-reset: step;
  display: grid;
  gap: 2px;
}
.next-steps li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.next-steps li:last-child {
  border-bottom: none;
}
.next-steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.next-steps h4 {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.next-steps p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Odbiór wyniku (PIN + PESEL/data ur.) + kod kreskowy
   ========================================================================== */
.access-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px var(--gutter);
}
.access-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
/* Odbiór wyniku: formularz + zdjęcie po prawej (desktop) */
.access-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  max-width: 1040px;
  width: 100%;
  align-items: stretch;
}
.access-split .access-card {
  max-width: none;
}
.access-photo {
  border-radius: var(--r-lg);
  min-height: 100%;
}
@media (max-width: 768px) {
  .access-split {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* PIN inputs */
.pin-inputs {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.pin-inputs input {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  text-align: center;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.14s, box-shadow 0.14s;
}
.pin-inputs input:focus {
  outline: none;
  border-color: var(--gray-800);
  box-shadow: 0 0 0 3px rgba(65, 70, 78, 0.12);
}

/* Kod kreskowy (czysty CSS) */
.barcode {
  height: 66px;
  width: 100%;
  border-radius: var(--r-sm);
  background: repeating-linear-gradient(
    90deg,
    var(--gray-900) 0 2px,
    transparent 2px 4px,
    var(--gray-900) 4px 7px,
    transparent 7px 9px,
    var(--gray-900) 9px 10px,
    transparent 10px 14px,
    var(--gray-900) 14px 18px,
    transparent 18px 20px,
    var(--gray-900) 20px 21px,
    transparent 21px 25px,
    var(--gray-900) 25px 28px,
    transparent 28px 31px
  );
}
.barcode-num {
  text-align: center;
  font-family: "Courier New", monospace;
  letter-spacing: 0.35em;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}
.scan-box {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  background: var(--gray-25);
  text-align: center;
}

/* Segment toggle PIN vs konto */
.access-toggle {
  display: flex;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 26px;
}
.access-toggle button {
  flex: 1;
  padding: 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.access-toggle button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   Ekran wyniku badania
   ========================================================================== */
.result-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.result-header .rh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.result-header .rh-meta .k {
  font-size: 12px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.result-header .rh-meta .v {
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
  background: var(--gray-150);
  color: var(--gray-800);
}
.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--gray-700);
}
.status-pill.ready {
  background: var(--gray-900);
  color: var(--gray-0);
}
.status-pill.ready .dot {
  background: var(--gray-0);
}

/* Tabela wyników */
.result-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.result-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 700;
  padding: 14px 18px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}
.result-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.result-table tbody tr:last-child td {
  border-bottom: none;
}
.result-table .param {
  font-weight: 600;
}
.result-table .val {
  font-weight: 700;
  font-family: var(--font-head);
}
.result-table .group-row td {
  background: var(--gray-50);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--r-full);
}
.flag.ok {
  background: var(--gray-100);
  color: var(--gray-600);
}
.flag.high {
  background: var(--gray-800);
  color: var(--gray-0);
}
.flag.low {
  background: var(--gray-300);
  color: var(--gray-900);
}
.result-bar {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--gray-150);
  position: relative;
  min-width: 120px;
}
.result-bar .range {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--gray-300);
  border-radius: var(--r-full);
}
.result-bar .marker {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: var(--r-full);
  background: var(--gray-900);
  border: 2px solid var(--surface);
  transform: translate(-50%, -50%);
}

/* ==========================================================================
   Strony informacyjne - hero, sekcje, karty
   ========================================================================== */
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 12px;
}

/* Hero split */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-block: 64px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
}
.hero p.lead {
  color: var(--text-muted);
  font-size: 17px;
  margin-top: 16px;
  max-width: 52ch;
}
.hero .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero .hero-media {
  aspect-ratio: 4 / 3;
}
.hero-badges {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-badges .hb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.hero-badges .material-symbols-outlined {
  color: var(--gray-600);
  font-size: 20px;
}
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 40px;
  }
  .hero .hero-media {
    order: -1;
    aspect-ratio: 16 / 10;
  }
}

/* Split (treść + obraz naprzemiennie) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse .split-media {
  order: 2;
}
.split-media {
  aspect-ratio: 4 / 3;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .split.reverse .split-media {
    order: -1;
  }
}

/* Karta usługi/feature */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.feature-card .fc-ic {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--gray-700);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-card .fc-ic .material-symbols-outlined {
  font-size: 27px;
}
.feature-card h3 {
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  flex-grow: 1;
}
.feature-card .fc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 18px;
  color: var(--text);
}
.feature-card .fc-link:hover {
  gap: 10px;
}
.feature-card .fc-link .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.15s;
}

/* Karta placówki (z telefonem, godzinami, mapą) */
.placowka {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.placowka .pl-map {
  height: 150px;
}
.placowka .pl-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.placowka h3 {
  font-size: 18px;
}
.placowka .pl-addr {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.placowka .pl-addr .material-symbols-outlined {
  font-size: 19px;
  color: var(--gray-500);
  flex-shrink: 0;
}
.placowka .pl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.placowka .pl-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--gray-25);
  margin-top: auto;
}
.placowka .pl-phone .material-symbols-outlined {
  color: var(--gray-700);
}
.placowka .pl-phone .pl-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}
.placowka .pl-phone .pl-lbl {
  font-size: 12px;
  color: var(--text-subtle);
}

/* Zespół */
.team-card {
  text-align: center;
}
.team-card .tm-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  margin-bottom: 14px;
}
.team-card h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
}
.team-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Statystyki */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.stat .num {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat .lbl {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
@media (max-width: 700px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Pasmo CTA (ciemne) */
.cta-band {
  background: var(--gray-900);
  color: var(--gray-0);
  border-radius: var(--r-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: var(--gray-0);
}
.cta-band p {
  color: var(--gray-400);
  margin-top: 8px;
  max-width: 48ch;
}
.cta-band .btn-primary {
  background: var(--gray-0);
  color: var(--gray-900);
}
.cta-band .btn-primary:hover {
  background: var(--gray-200);
}
.cta-band .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--gray-0);
}
.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Alternatywne tło sekcji */
.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

/* Cennik - tabela */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.price-table th {
  text-align: left;
  padding: 16px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 700;
}
.price-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  vertical-align: top;
}
.price-table tbody tr:last-child td {
  border-bottom: none;
}
.price-table .svc {
  font-weight: 600;
}
.price-table .svc small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}
.price-table .amt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.price-table .group td {
  background: var(--gray-100);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .price-table th:nth-child(2),
  .price-table td:nth-child(2) {
    display: none;
  }
}

/* Accordion (FAQ / info) */
.accordion details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  color: var(--text-subtle);
  transition: transform 0.2s;
}
.accordion details[open] summary::after {
  transform: rotate(180deg);
}
.accordion .acc-content {
  padding-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Pasek zaufania / logotypy partnerów */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.trust-row .trust-item {
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--text-subtle);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* Lista kroków pozioma (jak zamówić) */
.howto {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: h;
}
.howto .ht {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.howto .ht .n {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.howto .ht h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.howto .ht p {
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .howto {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .howto {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 32px 24px;
  }
}

/* ==========================================================================
   Artykuły / Wiedza (featured + małe karty)
   ========================================================================== */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.article-card .ac-media {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}
.article-card .ac-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-date {
  font-size: 12px;
  color: var(--text-subtle);
}
.article-card h3 {
  font-size: 17px;
  line-height: 1.25;
}
.article-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  flex-grow: 1;
}
.article-card .ac-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.article-card .ac-link:hover {
  gap: 10px;
}
.article-card .ac-link .material-symbols-outlined {
  font-size: 18px;
}

/* Wyróżniony artykuł (duży) */
.article-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.article-featured:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.article-featured .af-media {
  min-height: 300px;
  border-radius: 0;
}
.article-featured .af-body {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.article-featured h2 {
  font-size: clamp(22px, 2.6vw, 30px);
}
.article-featured p {
  color: var(--text-muted);
  font-size: 15px;
}
@media (max-width: 860px) {
  .article-featured {
    grid-template-columns: 1fr;
  }
  .article-featured .af-media {
    min-height: 200px;
  }
}

/* Układ „wiedza”: featured + 3 małe */
.news-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Nagłówek listy z akcją po prawej */
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Artykuł - treść */
.article-hero-media {
  aspect-ratio: 21 / 9;
  border-radius: var(--r-lg);
}
.prose {
  max-width: 720px;
}
.prose p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.prose h2 {
  font-size: 24px;
  margin: 32px 0 12px;
}
.prose h3 {
  font-size: 19px;
  margin: 24px 0 10px;
}
.prose ul {
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prose ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 15px;
}
.prose ul li::before {
  content: "check_circle";
  font-family: "Material Symbols Outlined";
  color: var(--gray-500);
  font-size: 19px;
  flex-shrink: 0;
}
.prose blockquote {
  border-left: 3px solid var(--gray-800);
  padding: 4px 0 4px 20px;
  margin: 22px 0;
  color: var(--text);
  font-size: 17px;
  font-style: italic;
}

/* ==========================================================================
   Dropdown w nagłówku (np. Wyniki online)
   ========================================================================== */
.hdr-dropdown {
  position: relative;
}
.hdr-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  z-index: 70;
}
.hdr-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--r-sm);
  transition: background 0.14s;
}
.dropdown-menu a:hover {
  background: var(--surface-alt);
}
.dropdown-menu .dm-ic {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  color: var(--gray-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dropdown-menu:hover .dm-ic,
.dropdown-menu a:hover .dm-ic {
  background: var(--gray-150);
}
.dropdown-menu h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
}
.dropdown-menu p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Menu mobilne (hamburger)
   ========================================================================== */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-right: 4px;
}
.nav-toggle:hover {
  background: var(--surface-alt);
}
.nav-toggle .material-symbols-outlined {
  font-size: 26px;
}
@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
  }
}
.mobilenav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 46, 92, 0.46);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s, visibility 0.26s;
  z-index: 95;
}
.mobilenav-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobilenav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 320px;
  max-width: 86vw;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.mobilenav.open {
  transform: translateX(0);
}
.mobilenav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mobilenav-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.mobilenav-links a {
  padding: 14px 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.mobilenav-links a.is-active,
.mobilenav-links a:hover {
  color: var(--text);
}
.mobilenav-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}

/* ==========================================================================
   Walidacja pól
   ========================================================================== */
.field-error {
  font-size: 12.5px;
  color: var(--gray-900);
  font-weight: 600;
  display: none;
}
.field.has-error .field-error {
  display: block;
}
.field.has-error .input,
.field.has-error .select {
  border-color: var(--gray-900);
  box-shadow: 0 0 0 3px rgba(14, 98, 194, 0.18);
}
.field.has-error label {
  color: var(--gray-900);
}
.field.has-error .field-error::before {
  content: "error";
  font-family: "Material Symbols Outlined";
  font-size: 15px;
  vertical-align: -3px;
  margin-right: 4px;
}

/* ==========================================================================
   Stany puste
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--gray-25);
}
.empty-state .es-ic {
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: var(--surface-alt);
  color: var(--gray-500);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.empty-state .es-ic .material-symbols-outlined {
  font-size: 32px;
}
.empty-state h3 {
  margin-bottom: 6px;
}
.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.drawer-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}
.drawer-empty .material-symbols-outlined {
  font-size: 40px;
  color: var(--gray-400);
  margin-bottom: 10px;
}

/* ==========================================================================
   Interaktywna mapa punktów (piny)
   ========================================================================== */
.points-map {
  position: relative;
  height: 320px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--gray-100);
  background-image: linear-gradient(rgba(14, 98, 194, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 98, 194, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.points-map .road {
  position: absolute;
  background: var(--gray-200);
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 2;
}
.map-pin .material-symbols-outlined {
  font-size: 38px;
  color: var(--gray-500);
  transition: color 0.15s, transform 0.15s;
  filter: drop-shadow(0 2px 6px rgba(7, 46, 92, 0.35));
}
.map-pin .pin-tip {
  margin-top: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}
.map-pin:hover .material-symbols-outlined {
  color: var(--gray-800);
  transform: scale(1.1);
}
.map-pin.is-active .material-symbols-outlined {
  color: var(--gray-900);
  transform: scale(1.15);
}
.map-pin.is-active .pin-tip {
  background: var(--gray-900);
  color: var(--gray-0);
  border-color: var(--gray-900);
}
.map-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
.map-zoom button {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-xs);
}
.map-zoom button:hover {
  background: var(--surface-alt);
}

/* Szeroki modal (np. cennik usługi) */
.modal.modal-wide {
  max-width: 640px;
}

/* ==========================================================================
   Modal (logowanie z poziomu zakupu)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 46, 92, 0.52);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s, visibility 0.24s;
  z-index: 110;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 92vh;
  overflow-y: auto;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.modal-head .m-ic {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
}

/* ==========================================================================
   Mobilny przyklejony pasek "przejdź dalej"
   ========================================================================== */
.mobile-checkout-bar {
  display: none;
}
@media (max-width: 1024px) {
  .mobile-checkout-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(10, 44, 84, 0.10);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    align-items: center;
    gap: 14px;
  }
  .mobile-checkout-bar .mcb-price {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    flex-shrink: 0;
  }
  .mobile-checkout-bar .mcb-price .k {
    font-size: 11px;
    color: var(--text-subtle);
  }
  .mobile-checkout-bar .mcb-price .v {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
  }
  .mobile-checkout-bar .btn {
    flex: 1;
  }
  /* miejsce, żeby pasek nie zasłaniał treści/stopki */
  body.has-mcb {
    padding-bottom: 86px;
  }
}

/* ==========================================================================
   Baner cookies
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 115;
  margin-inline: auto;
  max-width: 1100px;
  background: var(--gray-900);
  color: var(--gray-100);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: none;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.cookie-banner.show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner .ck-text {
  flex: 1;
  min-width: 260px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-300);
}
.cookie-banner .ck-text strong {
  color: var(--gray-0);
}
.cookie-banner .ck-text a {
  color: var(--gray-0);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner .ck-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner .btn-primary {
  background: var(--gray-0);
  color: var(--gray-900);
}
.cookie-banner .btn-primary:hover {
  background: var(--gray-200);
}
.cookie-banner .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--gray-0);
}
.cookie-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Zgoda (checkbox) w formularzach */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--gray-900);
  flex-shrink: 0;
}
.consent a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Toast (potwierdzenie dodania) */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gray-900);
  color: var(--gray-0);
  padding: 13px 20px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s, transform 0.24s, visibility 0.24s;
  z-index: 120;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.toast .material-symbols-outlined {
  font-size: 20px;
}
.toast-inline {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
  width: 100%;
  margin-top: 16px;
  opacity: 1;
  visibility: visible;
  border-radius: var(--r-md);
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  box-shadow: none;
  z-index: auto;
}
.toast-inline .material-symbols-outlined {
  color: var(--green-600);
}

/* ==========================================================================
   Katalog badań (zakładka Laboratorium / MR) + karty pakietów
   Dodane po mailach klienta 30-31.07: katalog badań pod LAB i MR,
   cenniki prywatne, blokada 1 szt. w koszyku, analiza AI wyniku.
   ========================================================================== */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.catalog-toolbar .ct-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--surface);
}
.catalog-toolbar .ct-search input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 14px;
}
.catalog-toolbar .ct-search .material-symbols-outlined {
  color: var(--text-subtle);
  font-size: 20px;
}
.catalog-toolbar .ct-hint {
  font-size: 12.5px;
  color: var(--text-subtle);
}

.cat-group + .cat-group {
  margin-top: 44px;
}
.cat-group .cg-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.cat-group .cg-ic {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--gray-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cat-group .cg-head h3 {
  font-size: 19px;
}
.cat-group .cg-head p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 3px;
}
.cat-group .cg-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--r-full);
  background: var(--gray-150);
  color: var(--gray-700);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  vertical-align: 2px;
}

/* Karta pakietu badań (z ikoną i rozwijanym zakresem) */
.pkg-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.16s, transform 0.16s, border-color 0.16s;
}
.pkg-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.pkg-card .pk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pkg-card .pk-ic {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--gray-700);
  display: grid;
  place-items: center;
}
.pkg-card .pk-ic .material-symbols-outlined {
  font-size: 25px;
}
.pkg-card h3 {
  font-size: 17px;
  line-height: 1.25;
}
.pkg-card .pk-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.pkg-card .pk-list {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 2px;
}
.pkg-card .pk-list > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
}
.pkg-card .pk-list > summary::-webkit-details-marker {
  display: none;
}
.pkg-card .pk-list > summary:hover {
  color: var(--text);
}
.pkg-card .pk-list > summary .material-symbols-outlined {
  font-size: 18px;
}
.pkg-card .pk-list ul {
  margin-top: 10px;
  display: grid;
  gap: 4px 14px;
  grid-template-columns: 1fr 1fr;
}
.pkg-card .pk-list li {
  position: relative;
  padding-left: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.pkg-card .pk-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-400);
}
.pkg-card .pk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
@media (max-width: 560px) {
  .pkg-card .pk-list ul {
    grid-template-columns: 1fr;
  }
}

/* Cena jeszcze nieustalona (cennik laboratorium w przygotowaniu) */
.price .now.is-tbd {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-full);
  padding: 4px 11px;
}

/* Tabela cennika MR w katalogu */
.mr-table + .mr-table {
  margin-top: 26px;
}

/* ==========================================================================
   Koszyk: blokada 1 szt. (stan przycisku + wyróżnienie pozycji)
   ========================================================================== */
.add-btn.is-incart,
.icon-btn.is-incart {
  background: var(--gray-150);
  color: var(--gray-700);
  border-color: var(--border-strong);
  box-shadow: none;
  cursor: default;
}
.add-btn.is-incart:hover,
.icon-btn.is-incart:hover {
  background: var(--gray-200);
  transform: none;
}
.add-btn.is-incart .material-symbols-outlined {
  font-variation-settings: "FILL" 1;
}
.btn.is-incart::after {
  content: none;
}
.cart-item .ci-qty {
  font-weight: 600;
  color: var(--text-muted);
}
.cart-item.is-dupe {
  border-color: var(--gray-800);
  box-shadow: 0 0 0 2px rgba(14, 98, 194, 0.20);
  animation: rmDupe 2.2s ease;
}
@keyframes rmDupe {
  0%, 100% { background: var(--surface); }
  15% { background: var(--gray-150); }
}
.toast.warn {
  background: var(--gray-0);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  max-width: min(560px, calc(100vw - 32px));
  text-align: left;
  line-height: 1.45;
  align-items: flex-start;
}
.toast.warn .material-symbols-outlined {
  color: var(--gray-700);
  margin-top: 1px;
}

/* ==========================================================================
   Analiza wyniku przez AI (bezpłatna) + disclaimer
   ========================================================================== */
.ai-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--gray-50), var(--surface));
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.ai-card .ai-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.ai-card .ai-ic {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--gray-900);
  color: var(--gray-0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ai-card .ai-head h3 {
  font-size: 18px;
}
.ai-card .ai-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.ai-badge-free {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--gray-900);
  color: var(--gray-0);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ai-badge-free .material-symbols-outlined {
  font-size: 14px;
}
.ai-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 4px;
  font-size: 14px;
  color: var(--text-muted);
}
.ai-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  border-top-color: var(--gray-800);
  animation: rmSpin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes rmSpin {
  to { transform: rotate(360deg); }
}
.ai-output {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.ai-block h4 {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-block h4 .material-symbols-outlined {
  font-size: 18px;
  color: var(--gray-600);
}
.ai-block p,
.ai-block li {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
}
.ai-block ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ai-block li {
  position: relative;
  padding-left: 14px;
}
.ai-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-400);
}
.ai-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--gray-900);
  color: var(--gray-300);
  font-size: 12.5px;
  line-height: 1.6;
}
.ai-disclaimer strong {
  color: var(--gray-0);
}
.ai-disclaimer .material-symbols-outlined {
  font-size: 19px;
  color: var(--gray-0);
  flex-shrink: 0;
}
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* ==========================================================================
   Nagłówek: skrót "Wyniki i Konto"
   ========================================================================== */
.header-actions .btn.is-active {
  background: var(--surface-alt);
  border-color: var(--gray-500);
  color: var(--text);
}
@media (max-width: 1280px) {
  .main-nav a {
    padding: 8px 8px;
    font-size: 13.5px;
  }
  .header-actions .btn-sm {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .site-header .container {
    gap: 18px;
  }
}
@media (max-width: 720px) {
  /* na telefonie same ikony - skróty nadal widoczne */
  .header-actions .hdr-lbl {
    display: none;
  }
  .header-actions .btn-sm {
    padding: 9px 11px;
  }
}

/* ==========================================================================
   ==========================================================================
   WARSTWA KOLORU I DESIGNU - RODE-MED
   Wszystko poniżej nadaje makiecie finalną szatę graficzną:
   kolory marki, hierarchia typograficzna, odstępy i reguły Gestalt
   (bliskość = grupowanie, podobieństwo = jeden typ akcji, wspólny obszar
   = karty i tinty tła, figura/tło = kontrast treści względem sekcji).
   ==========================================================================
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typografia - hierarchia i rytm (Plus Jakarta Sans + Inter)
   -------------------------------------------------------------------------- */
body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
h1, h2, h3, h4 {
  color: var(--gray-900);
  letter-spacing: -0.022em;
  font-weight: 800;
}
h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; }
h2 { font-size: clamp(24px, 3.1vw, 34px); line-height: 1.14; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
h4 { font-weight: 700; }
p, li { color: inherit; }
strong { color: var(--gray-900); font-weight: 700; }

/* Etykieta nadrzędna sekcji - niebieska, jak w projekcie */
.eyebrow {
  color: var(--blue-500);
  font-size: 11.5px;
  letter-spacing: 0.16em;
}
.lead {
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--text-muted);
}
.muted { color: var(--text-muted); }
.hint, .field .hint { color: var(--text-subtle); }

/* Nagłówek sekcji: stały rytm i szerokość czytania (Gestalt: bliskość) */
.section-head { margin-bottom: 40px; max-width: 68ch; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 12px; color: var(--text-muted); font-size: 16.5px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Naprzemienne tło sekcji = delikatny tint marki (figura/tło) */
.section.alt { background: var(--blue-25); }
.section.alt + .section.alt { padding-top: 0; }

/* Fokus klawiatury - dostępność */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   2. Przyciski - jedna rodzina, trzy poziomy ważności (podobieństwo)
   -------------------------------------------------------------------------- */
.btn-primary {
  background: linear-gradient(180deg, var(--blue-400) 0%, var(--blue-500) 100%);
  color: #fff;
  box-shadow: var(--shadow-primary);
  border-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-600) 100%);
  box-shadow: var(--shadow-primary-hover);
}
.btn-outline {
  background: var(--surface);
  border-color: var(--blue-100);
  color: var(--blue-600);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  border-color: var(--blue-300);
  background: var(--blue-25);
  color: var(--blue-600);
}
.btn-ghost { color: var(--blue-600); }
.btn-ghost:hover { background: var(--blue-50); color: var(--blue-700); }

/* Zielony CTA - rezerwujemy dla akcji "wynik / AI" (akcent z logo) */
.btn-accent {
  background: linear-gradient(180deg, var(--green-500), var(--green-600));
  color: #fff;
  box-shadow: 0 8px 18px rgba(58, 131, 72, 0.26);
}
.btn-accent:hover { background: linear-gradient(180deg, var(--green-600), var(--green-700)); }

.icon-btn {
  background: linear-gradient(180deg, var(--blue-400), var(--blue-500));
  box-shadow: var(--shadow-primary);
}
.icon-btn:hover { background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); }
.icon-btn.ghost { background: var(--surface); border-color: var(--blue-100); color: var(--blue-600); }
.icon-btn.ghost:hover { background: var(--blue-25); }

/* --------------------------------------------------------------------------
   3. Chipy, tagi, badge
   -------------------------------------------------------------------------- */
.chip {
  background: var(--surface);
  border-color: var(--blue-100);
  color: var(--blue-700);
}
.chip:hover { border-color: var(--blue-300); background: var(--blue-25); color: var(--blue-600); }
.chip.is-active {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.tag { background: var(--blue-50); color: var(--blue-700); }
.tag.outline { border-color: var(--blue-100); color: var(--text-subtle); background: transparent; }
.tag.solid { background: var(--blue-500); color: #fff; }
.tag.green { background: var(--green-100); color: var(--green-700); }

/* --------------------------------------------------------------------------
   4. Nagłówek strony - biała "szyba" z niebieską krawędzią
   -------------------------------------------------------------------------- */
.site-header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--blue-50);
  box-shadow: 0 1px 0 rgba(10, 44, 84, 0.04);
}
.main-nav a { color: var(--gray-700); font-weight: 500; }
.main-nav a:hover { color: var(--blue-600); background: var(--blue-25); }
.main-nav a.is-active { color: var(--blue-600); background: var(--blue-50); font-weight: 600; }
.header-icon { color: var(--blue-700); }
.header-icon:hover { background: var(--blue-50); color: var(--blue-600); }
.header-actions .btn.is-active { background: var(--blue-50); border-color: var(--blue-300); color: var(--blue-600); }
.cart-badge {
  background: var(--green-600);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 1px 4px rgba(40, 109, 59, 0.4);
}

/* Mega-dropdown "Odbierz wynik" */
.dropdown-menu { border-color: var(--blue-100); box-shadow: var(--shadow-lg); }
.dropdown-menu a:hover { background: var(--blue-25); }
.dropdown-menu .dm-ic { background: var(--blue-50); color: var(--blue-500); }
.dropdown-menu h4 { color: var(--gray-900); }

/* --------------------------------------------------------------------------
   5. Hero - granatowy gradient + jasna typografia (figura/tło)
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(47, 155, 224, 0.32) 0%, rgba(47, 155, 224, 0) 55%),
    linear-gradient(155deg, var(--blue-800) 0%, var(--blue-700) 46%, var(--blue-600) 100%);
  color: rgba(255, 255, 255, 0.86);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(102, 169, 61, 0.20), transparent);
  pointer-events: none;
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero .eyebrow { color: var(--blue-200); }
.hero .lead, .hero p { color: rgba(255, 255, 255, 0.82); }
.hero .btn-outline {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; color: #fff; }
.hero .btn-primary { background: #fff; color: var(--blue-600); box-shadow: 0 10px 26px rgba(7, 46, 92, 0.36); }
.hero .btn-primary:hover { background: var(--blue-25); color: var(--blue-700); }
.hero-badges .hb {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}
.hero-badges .hb .material-symbols-outlined { color: var(--green-400); }

/* Hero podstron sklepu / cennika - jasny wariant */
.shop-hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--gray-50) 100%);
  border-bottom: 1px solid var(--blue-100);
}
.shop-hero .container { padding-block: 56px; }
.shop-hero p { color: var(--text-muted); }

/* Miejsca na zdjęcia - markowe pola z ikoną (docelowo fotografia) */
.img-ph, .map-ph, .access-photo {
  background:
    radial-gradient(90% 90% at 20% 10%, rgba(47, 155, 224, 0.35), transparent 60%),
    linear-gradient(150deg, var(--blue-700), var(--blue-500));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}
.img-ph .material-symbols-outlined,
.map-ph .material-symbols-outlined { color: rgba(255, 255, 255, 0.92); }
.map-ph { background: linear-gradient(160deg, var(--blue-50), var(--blue-100)); border-color: var(--blue-100); }
.map-ph .material-symbols-outlined { color: var(--blue-500); }
.map-ph .pin { color: var(--red-600); }

/* --------------------------------------------------------------------------
   6. Karty - wspólny obszar, delikatna krawędź, niebieski cień
   -------------------------------------------------------------------------- */
.card, .product-card, .pkg-card, .placowka, .feature-card,
.article-card, .article-featured, .viewed-card, .stat {
  background: var(--surface);
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
}
.card:hover, .product-card:hover, .pkg-card:hover,
.feature-card:hover, .article-card:hover, .viewed-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}
.pc-icon, .pk-ic, .fc-ic, .ci-icon, .cg-ic, .vc-ic, .m-ic, .auth-ic, .es-ic {
  background: var(--blue-50);
  color: var(--blue-500);
}
.fc-ic { background: linear-gradient(160deg, var(--blue-50), var(--blue-100)); }
.feature-card:hover .fc-ic { background: linear-gradient(160deg, var(--blue-100), var(--blue-200)); }
.fc-link, .ac-link { color: var(--blue-600); font-weight: 600; }
.fc-link:hover, .ac-link:hover { color: var(--blue-700); }

/* Cena i ważne liczby - granat, mocny akcent typograficzny */
.price .now, .sum-row.total .amount, .stat .num, .pl-num {
  color: var(--gray-900);
}
.stat .num { color: var(--blue-500); }
.price .old { color: var(--text-subtle); }
.price .now.is-tbd { color: var(--text-subtle); border-color: var(--blue-200); background: var(--blue-25); }

/* Karta wyróżniona (np. pakiet polecany) - jak w projekcie */
.product-card:has(.tag.solid) {
  border-color: var(--blue-300);
  background: linear-gradient(180deg, var(--blue-25), var(--surface) 42%);
  box-shadow: var(--shadow-md);
}

/* Listy z "ptaszkami" - zieleń marki */
.check-list li { color: var(--text-muted); }
.check-list .material-symbols-outlined { color: var(--green-500); }

/* --------------------------------------------------------------------------
   7. Formularze
   -------------------------------------------------------------------------- */
.input, .select, textarea, .searchbar, .catalog-toolbar .ct-search, .pin-inputs input {
  background: var(--surface);
  border-color: var(--blue-100);
  color: var(--gray-900);
}
.input::placeholder, textarea::placeholder { color: var(--gray-400); }
.input:focus, .select:focus, textarea:focus,
.catalog-toolbar .ct-search:focus-within, .pin-inputs input:focus {
  border-color: var(--blue-500);
  box-shadow: var(--ring);
  outline: none;
}
.field > label { color: var(--gray-900); font-weight: 600; }
.field.has-error .input, .field.has-error .select { border-color: var(--red-600); }
.field-error { color: var(--red-700); }
.option { border-color: var(--blue-100); background: var(--surface); }
.option:hover { border-color: var(--blue-300); background: var(--blue-25); }
.option.is-selected { border-color: var(--blue-500); background: var(--blue-25); box-shadow: var(--ring); }
.option .radio { border-color: var(--blue-200); }
.option.is-selected .radio { border-color: var(--blue-500); }
.option.is-selected .radio::after { background: var(--blue-500); }
.consent input, .field input[type="checkbox"] { accent-color: var(--blue-500); }
.secure-line { color: var(--text-subtle); }
.secure-line .material-symbols-outlined { color: var(--green-600); }

/* Notki informacyjne - jasnoniebieskie, nie krzyczą */
.note {
  background: var(--blue-25);
  border: 1px solid var(--blue-100);
  color: var(--text-muted);
}
.note .material-symbols-outlined { color: var(--blue-500); }

/* --------------------------------------------------------------------------
   8. Sklep, katalog, koszyk
   -------------------------------------------------------------------------- */
.segmented { background: var(--blue-50); border: 1px solid var(--blue-100); }
.segmented button { color: var(--gray-700); }
.segmented button.is-active { background: var(--surface); color: var(--blue-600); box-shadow: var(--shadow-sm); }

.catalog-toolbar { border-color: var(--blue-100); background: var(--surface); }
.cat-group .cg-head { border-bottom-color: var(--blue-100); }
.cat-group .cg-count { background: var(--blue-50); color: var(--blue-600); }
.pkg-card .pk-list { border-top-color: var(--blue-100); }
.pkg-card .pk-foot { border-top-color: var(--blue-100); }
.pkg-card .pk-list > summary { color: var(--blue-600); }
.pkg-card .pk-list li::before { background: var(--green-400); }
.pkg-card h3 a, .product-card h3 { color: var(--gray-900); }
.pkg-card a:hover h3, .product-card a:hover h3 { color: var(--blue-600); }

.cart-drawer { border-left: 1px solid var(--blue-100); }
.drawer-head { border-bottom-color: var(--blue-100); background: var(--blue-25); }
.drawer-foot { border-top-color: var(--blue-100); background: var(--blue-25); }
.cart-item { border-color: var(--blue-100); }
.cart-item.is-dupe { border-color: var(--blue-500); box-shadow: var(--ring); }
.cart-item .ci-remove { color: var(--text-subtle); }
.cart-item .ci-remove:hover { color: var(--red-700); background: var(--red-100); }
.sum-row { color: var(--text-muted); }
.sum-row.total { color: var(--gray-900); border-top-color: var(--blue-100); }
.hr { background: var(--blue-100); border: none; }

/* Przed odczytem koszyka (SSR / hydracja) - niebieski CTA jeszcze niepewny */
.add-btn.is-pending.btn-primary,
.add-btn.is-pending.btn-primary:disabled {
  background: var(--gray-150);
  color: var(--gray-700);
  border-color: var(--border-strong);
  box-shadow: none;
  cursor: wait;
  opacity: 1;
}
.add-btn.is-pending.btn-primary:hover {
  background: var(--gray-150);
  color: var(--gray-700);
}
.add-btn.is-pending .add-btn-placeholder {
  display: block;
  width: 11.5em;
  max-width: 62%;
  border-radius: var(--r-full);
  background: var(--gray-300);
  animation: addBtnPlaceholder 0.9s ease-in-out infinite alternate;
}
@keyframes addBtnPlaceholder {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Blokada 1 szt. - stan "w koszyku" */
.add-btn.is-incart, .icon-btn.is-incart {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  box-shadow: none;
}
.add-btn.is-incart:hover, .icon-btn.is-incart:hover { background: var(--green-100); }

/* Stepper checkoutu */
.stepper .step .dot { background: var(--surface); border-color: var(--blue-200); color: var(--text-subtle); }
.stepper .step.is-done .dot { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.stepper .step.is-active .dot { background: var(--blue-500); border-color: var(--blue-500); color: #fff; box-shadow: var(--ring); }
.stepper .step.is-active .lbl { color: var(--blue-600); font-weight: 600; }
.stepper .bar { background: var(--blue-100); }
.stepper .step.is-done + .step .bar,
.stepper .bar.is-done { background: var(--green-500); }

/* --------------------------------------------------------------------------
   9. Wyniki badań - semantyka kolorów statusu
   -------------------------------------------------------------------------- */
.result-header { background: var(--surface); border: 1px solid var(--blue-100); box-shadow: var(--shadow-sm); }
.result-header .k { color: var(--text-subtle); }
.result-header .v { color: var(--gray-900); }
.status-pill { background: var(--amber-100); color: var(--amber-700); border: 1px solid rgba(124, 112, 44, 0.18); }
.status-pill .dot { background: var(--amber-700); }
.status-pill.ready { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.status-pill.ready .dot { background: var(--green-600); }

.result-table thead th { background: var(--blue-25); color: var(--blue-700); border-bottom-color: var(--blue-100); }
.result-table td { border-bottom-color: var(--blue-50); }
.result-table tr:hover td { background: var(--blue-25); }
.result-table .group-row td { background: var(--blue-50); color: var(--blue-700); }
.result-table .param, .result-table .val { color: var(--gray-900); }

.flag { border: 1px solid transparent; }
.flag.ok { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.flag.high { background: var(--red-100); color: var(--red-700); border-color: rgba(179, 38, 30, 0.16); }
.flag.low { background: var(--amber-100); color: var(--amber-700); border-color: rgba(124, 112, 44, 0.2); }

.result-bar { background: var(--blue-50); }
.result-bar .range { background: linear-gradient(90deg, var(--green-100), var(--green-400)); }
.result-bar .marker { background: var(--gray-900); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); }

/* --------------------------------------------------------------------------
   10. Analiza AI - wyróżniona, ale spokojna; "bezpłatnie" na zielono
   -------------------------------------------------------------------------- */
.ai-card {
  border-color: var(--blue-200);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(47, 155, 224, 0.12), transparent 60%),
    linear-gradient(180deg, var(--blue-25), var(--surface) 60%);
  box-shadow: var(--shadow-sm);
}
.ai-card .ai-ic { background: linear-gradient(160deg, var(--blue-500), var(--blue-700)); color: #fff; }
.ai-badge-free { background: linear-gradient(180deg, var(--green-500), var(--green-600)); color: #fff; }
.ai-block { border-color: var(--blue-100); }
.ai-block h4 { color: var(--gray-900); }
.ai-block h4 .material-symbols-outlined { color: var(--blue-500); }
.ai-block li::before { background: var(--blue-300); }
.ai-spinner { border-color: var(--blue-100); border-top-color: var(--blue-500); }
.ai-disclaimer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.78);
}
.ai-disclaimer strong { color: #fff; }
.ai-disclaimer .material-symbols-outlined { color: var(--amber-100); }

/* --------------------------------------------------------------------------
   11. Cennik, akordeony, FAQ
   -------------------------------------------------------------------------- */
.price-section { border-color: var(--blue-100); background: var(--surface); }
.price-section > summary { color: var(--gray-900); }
.price-section > summary:hover { background: var(--blue-25); }
.price-section[open] > summary { border-bottom-color: var(--blue-100); background: var(--blue-25); }
.price-section > summary .ps-ic { background: var(--blue-50); color: var(--blue-500); }
.price-section > summary .ps-count { color: var(--blue-600); background: var(--blue-50); }
.price-table thead th { background: var(--blue-25); color: var(--blue-700); }
.price-table tr.group td { background: var(--blue-50); color: var(--blue-700); }
.price-table .svc { color: var(--gray-900); }
.price-table .svc small { color: var(--text-subtle); }
.price-table .amt { color: var(--gray-900); font-weight: 700; }
.price-table tbody tr:hover td { background: var(--blue-25); }

.accordion details { border-color: var(--blue-100); background: var(--surface); }
.accordion summary { color: var(--gray-900); }
.accordion summary:hover { color: var(--blue-600); }
.accordion details[open] summary { color: var(--blue-600); }
.acc-content { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   12. Placówki, kroki, statystyki, pasy CTA
   -------------------------------------------------------------------------- */
.placowka .pl-addr { color: var(--text-muted); }
.placowka .pl-addr .material-symbols-outlined { color: var(--blue-400); }
.placowka .pl-phone { background: var(--blue-25); border: 1px solid var(--blue-100); border-radius: var(--r-md); padding: 12px 14px; }
.placowka .pl-phone .material-symbols-outlined { color: var(--green-600); }
.placowka .pl-lbl { color: var(--text-subtle); }
.placowka .pl-num { color: var(--gray-900); }

.howto .ht .n {
  background: linear-gradient(160deg, var(--blue-400), var(--blue-600));
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.howto .ht h4 { color: var(--gray-900); }

.stats { gap: 20px; }
.stat { border-color: var(--blue-100); }
.stat .lbl { color: var(--text-subtle); }

.cta-band {
  background:
    radial-gradient(100% 160% at 100% 0%, rgba(47, 155, 224, 0.28), transparent 60%),
    linear-gradient(120deg, var(--blue-800), var(--blue-600));
  color: rgba(255, 255, 255, 0.86);
  border: none;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); }
.cta-band .btn-primary { background: #fff; color: var(--blue-600); box-shadow: 0 10px 24px rgba(7, 46, 92, 0.3); }
.cta-band .btn-primary:hover { background: var(--blue-25); }
.cta-band .btn-outline { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }

/* --------------------------------------------------------------------------
   13. Artykuły
   -------------------------------------------------------------------------- */
.article-meta .article-date { color: var(--text-subtle); }
.article-card h3, .article-featured h2 { color: var(--gray-900); }
.article-card:hover h3 { color: var(--blue-600); }
.breadcrumb { color: var(--text-subtle); }
.breadcrumb a { color: var(--blue-600); }
.breadcrumb .current { color: var(--gray-900); font-weight: 600; }

/* --------------------------------------------------------------------------
   14. Stopka - granatowy gradient (jak w projekcie)
   -------------------------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(47, 155, 224, 0.20), transparent 55%),
    linear-gradient(160deg, var(--blue-800) 0%, var(--blue-900) 60%, #061f3f 100%);
  color: rgba(255, 255, 255, 0.72);
}
.site-footer h4 { color: #fff; letter-spacing: 0.02em; }
.site-footer a { color: rgba(255, 255, 255, 0.76); }
.site-footer a:hover { color: #fff; }
.footer-about { color: rgba(255, 255, 255, 0.66); }
.footer-social a {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.footer-social a:hover { background: var(--blue-500); border-color: var(--blue-500); }
.footer-loc summary { color: rgba(255, 255, 255, 0.9); }
.footer-loc summary:hover { color: #fff; }
.footer-loc .fl-body { color: rgba(255, 255, 255, 0.7); }
.footer-loc .fl-body .material-symbols-outlined { color: var(--blue-300); }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.6); }

/* --------------------------------------------------------------------------
   15. Warstwy nakładane: modal, toast, cookies, menu mobilne
   -------------------------------------------------------------------------- */
.modal { border: 1px solid var(--blue-100); box-shadow: var(--shadow-lg); }
.modal-overlay { background: rgba(7, 46, 92, 0.52); }
.drawer-overlay, .mobilenav-overlay { background: rgba(7, 46, 92, 0.46); }
.mobilenav { border-left: 1px solid var(--blue-100); }
.mobilenav-head { border-bottom-color: var(--blue-100); }
.mobilenav-links a { color: var(--gray-700); }
.mobilenav-links a:hover, .mobilenav-links a.is-active { color: var(--blue-600); background: var(--blue-25); }
.nav-toggle { color: var(--blue-700); }
.nav-toggle:hover { background: var(--blue-50); }

.toast { background: var(--gray-900); box-shadow: var(--shadow-lg); }
.toast .material-symbols-outlined { color: var(--green-400); }
.toast-inline {
  background: var(--green-50);
  color: var(--green-700);
  border-color: var(--green-100);
  box-shadow: none;
}
.toast-inline .material-symbols-outlined { color: var(--green-600); }
.toast-inline.toast-error {
  background: var(--red-100);
  color: var(--red-700);
  border-color: rgba(179, 38, 30, 0.16);
}
.toast-inline.toast-error .material-symbols-outlined { color: var(--red-600); }
.toast.warn { background: #fff; border-color: var(--blue-200); color: var(--gray-900); }
.toast.warn .material-symbols-outlined { color: var(--blue-500); }

.cookie-banner {
  background: linear-gradient(140deg, var(--blue-800), var(--blue-900));
  color: rgba(255, 255, 255, 0.78);
}
.cookie-banner .btn-primary { background: #fff; color: var(--blue-600); }
.cookie-banner .btn-primary:hover { background: var(--blue-25); }

.empty-state { border-color: var(--blue-100); background: var(--blue-25); }
.empty-state .es-ic { background: var(--surface); color: var(--blue-400); border: 1px solid var(--blue-100); }
.empty-state h3 { color: var(--gray-900); }

/* Barcode / odbiór wyniku */
.scan-box { background: var(--blue-25); border-color: var(--blue-100); }
.barcode-num { color: var(--gray-900); letter-spacing: 0.18em; }
.access-toggle { background: var(--blue-50); border: 1px solid var(--blue-100); }
.access-toggle button { color: var(--gray-700); }
.access-toggle button.is-active { background: var(--surface); color: var(--blue-600); box-shadow: var(--shadow-sm); }
.access-card { border: 1px solid var(--blue-100); box-shadow: var(--shadow-md); }

/* Bramka płatności / potwierdzenie */
.gateway-card, .confirm-card { border-color: var(--blue-100); }
.confirm-hero { background: linear-gradient(180deg, var(--blue-50), var(--gray-50)); border-bottom: 1px solid var(--blue-100); }
.confirm-check { background: linear-gradient(160deg, var(--green-500), var(--green-700)); color: #fff; box-shadow: 0 12px 28px rgba(40, 109, 59, 0.28); }

/* Mobilny pasek zakupu */
@media (max-width: 1024px) {
  .mobile-checkout-bar { border-top-color: var(--blue-100); box-shadow: 0 -6px 24px rgba(10, 44, 84, 0.10); }
  .mobile-checkout-bar .mcb-price .v { color: var(--gray-900); }
}

/* --------------------------------------------------------------------------
   16. Odstępy i rytm (Gestalt: bliskość / wspólny obszar)
   -------------------------------------------------------------------------- */
.card-pad { padding: 24px; }
.grid-2, .grid-3, .grid-4 { gap: 24px; }
.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.split { gap: 56px; align-items: center; }
.howto { gap: 24px; }

@media (max-width: 768px) {
  :root { --section-y: 56px; --gutter: 16px; }
  .card-pad { padding: 20px; }
  .split { gap: 32px; }
}

/* --------------------------------------------------------------------------
   17. Korekty po podglądzie w przeglądarce (kontrast, nawigacja, hero)
   -------------------------------------------------------------------------- */
/* Nawigacja: pozycje nie łamią się na dwie linie */
.main-nav { gap: 2px; }
.main-nav a { white-space: nowrap; padding: 9px 11px; font-size: 14.5px; }
@media (max-width: 1400px) { .main-nav a { padding: 9px 9px; font-size: 14px; } }
@media (max-width: 1300px) { .main-nav a { padding: 8px 7px; font-size: 13.5px; } }

/* Hero: wyższy kontrast tekstu i większy oddech */
.hero .container { padding-block: 88px 104px; gap: 56px; }
.hero p, .hero p.lead, .hero .lead { color: rgba(233, 243, 253, 0.94); }
.hero p.lead { font-size: 18px; max-width: 54ch; }
.hero .eyebrow { color: var(--blue-200); }
.hero-actions { margin-top: 32px; gap: 12px; }

/* Odznaki zaufania w hero - pigułki ze szkła */
.hero-badges { margin-top: 28px; gap: 10px; }
.hero-badges .hb {
  border-radius: var(--r-full);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.hero-badges .hb .material-symbols-outlined { font-size: 18px; color: var(--green-400); }

/* Panel na zdjęcie w hero - wzór + podpis, żeby nie był pustą płachtą */
.img-ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 12px),
    radial-gradient(90% 90% at 20% 10%, rgba(47, 155, 224, 0.38), transparent 62%),
    linear-gradient(150deg, var(--blue-700), var(--blue-500));
}
.img-ph .material-symbols-outlined { font-size: 56px; opacity: 0.95; }
.img-ph::after {
  content: "miejsce na zdjęcie";
  position: absolute;
  inset: auto auto 14px 50%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(7, 46, 92, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.hero-media { min-height: 420px; }
.ac-media::after, .vc-ic::after { content: none; }
.ac-media .material-symbols-outlined { font-size: 40px; }

/* Karty skrótów wchodzące na hero (jak w projekcie graficznym) */
.quick-overlap {
  padding-top: 0;
  margin-top: -64px;
  position: relative;
  z-index: 3;
}
.quick-overlap .feature-card { box-shadow: var(--shadow-md); }
@media (max-width: 900px) { .quick-overlap { margin-top: -40px; } }

/* --------------------------------------------------------------------------
   18. Detale: ikony w kółkach, statusy neutralne, pola select
   -------------------------------------------------------------------------- */
.auth-ic, .m-ic, .ci-icon, .pc-icon, .pk-ic, .fc-ic, .cg-ic, .vc-ic, .es-ic {
  display: grid;
  place-items: center;
}
.auth-ic .material-symbols-outlined { font-size: 26px; }

/* Status neutralny (np. "W toku") - też ma tło, żeby był czytelny */
.flag {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
}
.flag.ok { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.flag.high { background: var(--red-100); color: var(--red-700); border-color: rgba(179, 38, 30, 0.16); }
.flag.low { background: var(--amber-100); color: var(--amber-700); border-color: rgba(124, 112, 44, 0.2); }

/* Select z własną strzałką (spójnie z resztą pól) */
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230e62c2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.searchbar .sb-part select { background-position: right 4px center; padding-right: 30px; }

/* Chip-row: delikatne wygaszenie na krawędzi (sygnał, że da się przewinąć) */
.chip-row.no-sb {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   19. Mobile: bez poziomego przewijania, ciaśniejszy nagłówek
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .container { padding-block: 56px 72px; }
  /* aspect-ratio ma decydować o wysokości - min-height rozpychało panel */
  .hero .hero-media { min-height: 0; width: 100%; }
  .img-ph .material-symbols-outlined { font-size: 44px; }
}
@media (max-width: 620px) {
  .brand-logo { height: 34px; }
  .site-header .container { gap: 10px; }
  .header-actions { gap: 4px; }
  .header-actions .btn-sm { padding: 9px 10px; }
  .hero h1 { font-size: clamp(28px, 8vw, 34px); }
  .hero p.lead { font-size: 16.5px; }
  .img-ph::after { font-size: 9.5px; padding: 4px 10px; }
}
body { overflow-x: hidden; }

/* --------------------------------------------------------------------------
   20. Lista z "ptaszkami" - poprawka łamania tekstu
   Problem: li był flexem, więc <strong> i tekst po nim stawały się osobnymi
   elementami flex i łamały się niezależnie. Teraz ikona jest pozycjonowana
   absolutnie, a treść płynie normalnym tekstem (dowolne <strong>, <a>, spany).
   -------------------------------------------------------------------------- */
.check-list li {
  display: block;
  position: relative;
  padding-left: 27px;
  font-size: 13.5px;
  line-height: 1.6;
}
.check-list li > .material-symbols-outlined {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 18px;
}
.check-list li > span:not(.material-symbols-outlined) { display: inline; }

/* ==========================================================================
   21. WYKOŃCZENIE - detale, które odróżniają projekt od makiety
   ========================================================================== */

/* Zaznaczenie tekstu i pasek przewijania w kolorach marki */
::selection { background: rgba(14, 98, 194, 0.16); color: var(--gray-900); }
html {
  scrollbar-color: var(--blue-200) transparent;
  scrollbar-gutter: stable;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--blue-200);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--blue-300); background-clip: content-box; }

/* Karty: wewnętrzna świetlówka u góry + miękki gradient (mniej "płasko") */
.card, .product-card, .pkg-card, .feature-card, .placowka,
.article-card, .stat, .access-card, .summary-card {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 248, 253, 0) 140px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover, .pkg-card:hover, .feature-card:hover, .article-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-md);
}

/* Etykieta sekcji z kreską - prowadzi wzrok (reguła ciągłości) */
.section-head .eyebrow::before,
.head-row .eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-300);
  vertical-align: 4px;
  margin-right: 10px;
}
.hero .eyebrow::before { background: var(--blue-300); opacity: 0.9; }

/* Dwutonowy nagłówek hero */
.hero h1 .hl { color: var(--blue-200); font-weight: 500; }

/* --------------------------------------------------------------------------
   Wizual hero: "produkt", a nie szara plama - szklana karta z wynikiem
   -------------------------------------------------------------------------- */
.hero-visual { position: relative; min-height: 440px; display: grid; align-content: center; }
.hero-visual .hv-glow {
  position: absolute;
  inset: 6% -6% 10% 4%;
  background: radial-gradient(closest-side, rgba(47, 155, 224, 0.5), transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}
.hero-visual .hv-card {
  position: relative;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-xl);
  box-shadow: 0 28px 64px rgba(4, 26, 54, 0.42), inset 0 1px 0 #fff;
  padding: 20px;
  transform: rotate(-1.2deg);
}
.hero-visual .hv-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--blue-100); }
.hero-visual .hv-ic {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--blue-500), var(--blue-700));
  color: #fff; display: grid; place-items: center; flex-shrink: 0;
}
.hero-visual .hv-head h4 { font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--gray-900); }
.hero-visual .hv-head span.sub { font-size: 12px; color: var(--text-subtle); }
.hero-visual .hv-rows { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; }
.hero-visual .hv-row { display: grid; grid-template-columns: 1fr 96px 54px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.hero-visual .hv-row .hv-val { font-family: var(--font-sans); font-weight: 700; color: var(--gray-900); text-align: right; }
.hero-visual .hv-bar { position: relative; height: 6px; border-radius: 999px; background: var(--blue-50); }
.hero-visual .hv-bar em { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green-100), var(--green-400)); }
.hero-visual .hv-bar i { position: absolute; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--gray-900); box-shadow: 0 0 0 3px #fff; }
.hero-visual .hv-bar.warn i { background: var(--amber-700); }
.hero-visual .hv-ai {
  display: flex; align-items: center; gap: 9px;
  margin-top: 4px; padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--blue-25);
  border: 1px solid var(--blue-100);
  font-size: 12.5px; font-weight: 600; color: var(--blue-700);
}
.hero-visual .hv-ai .material-symbols-outlined { font-size: 18px; color: var(--blue-500); }
.hero-visual .hv-ai .ai-badge-free { margin-left: auto; font-size: 10px; padding: 3px 8px; }
.hero-visual .hv-mini {
  position: absolute;
  right: -8px; bottom: -18px;
  display: flex; align-items: center; gap: 11px;
  background: #fff;
  border: 1px solid var(--blue-100);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 40px rgba(4, 26, 54, 0.28);
  padding: 12px 16px;
  transform: rotate(1.4deg);
}
.hero-visual .hv-mini .material-symbols-outlined { color: var(--green-600); }
.hero-visual .hv-mini strong { display: block; font-family: var(--font-sans); font-size: 13.5px; color: var(--gray-900); }
.hero-visual .hv-mini span { font-size: 11.5px; color: var(--text-subtle); }
@media (max-width: 900px) {
  .hero-visual { min-height: 0; order: 2; margin-bottom: 22px; }
  .hero-visual .hv-card { transform: none; }
  .hero-visual .hv-mini { position: static; transform: none; margin-top: 14px; }
}

/* --------------------------------------------------------------------------
   Mapa placówek - stylizowana grafika zamiast siatki placeholdera
   -------------------------------------------------------------------------- */
.map-brand {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--blue-100);
  background: linear-gradient(165deg, #eaf3fc 0%, #dfeaf7 100%);
  box-shadow: var(--shadow-sm);
  min-height: 420px;
}
.map-brand svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-brand .mb-legend {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-size: 12px; font-weight: 600; color: var(--blue-700);
  box-shadow: var(--shadow-sm);
}
.map-brand .mb-legend .material-symbols-outlined { font-size: 16px; color: var(--red-600); vertical-align: -3px; }

/* --------------------------------------------------------------------------
   Pas zaufania (certyfikaty / liczby) - typowy element gotowych serwisów
   -------------------------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--blue-100);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.trust-strip .ts {
  background: #fff;
  padding: 20px 22px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.trust-strip .ts .material-symbols-outlined {
  font-size: 26px;
  color: var(--blue-500);
  background: var(--blue-50);
  border-radius: var(--r-sm);
  padding: 8px;
}
.trust-strip .ts b { display: block; font-family: var(--font-sans); font-size: 14px; color: var(--gray-900); }
.trust-strip .ts span { font-size: 12.5px; color: var(--text-subtle); }
@media (max-width: 900px) { .trust-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-strip { grid-template-columns: 1fr; } }

/* Godziny otwarcia - status "otwarte teraz" */
.open-now {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--green-700); background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r-full);
  padding: 4px 10px;
}
.open-now i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(93, 149, 60, 0.18); }

/* Mini-wykres trendu na wyniku */
.spark {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--blue-100);
  border-radius: var(--r-md);
  background: var(--blue-25);
}
.spark svg { flex-shrink: 0; }
.spark .sp-txt { font-size: 12.5px; color: var(--text-muted); }
.spark .sp-txt b { display: block; font-family: var(--font-sans); font-size: 13.5px; color: var(--gray-900); }

/* Pasek nad stopką: kontakt + godziny (zamyka stronę treścią, nie pustką) */
.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-top .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-block: 32px;
}
.footer-top .ft {
  display: flex; gap: 13px; align-items: flex-start;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
}
.footer-top .ft .material-symbols-outlined {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--r-sm);
  padding: 8px;
  font-size: 22px;
}
.footer-top .ft b { display: block; color: #fff; font-family: var(--font-sans); font-size: 14px; margin-bottom: 2px; }
@media (max-width: 860px) { .footer-top .container { grid-template-columns: 1fr; gap: 20px; } }

/* --------------------------------------------------------------------------
   Delikatne wejście sekcji (wyłączone przy prefers-reduced-motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Poprawki wizualu hero po podglądzie */
.hero-visual .hv-mini { align-items: center; padding: 13px 18px; }
.hero-visual .hv-mini .material-symbols-outlined { font-size: 24px; background: var(--green-50); border-radius: var(--r-sm); padding: 7px; }
.hero-visual .hv-mini span { white-space: nowrap; }
.hero-visual .hv-row { grid-template-columns: 1fr 110px 46px; }
.hero-visual .hv-head .sub { display: block; margin-top: 2px; }
.map-brand svg { padding: 18px; box-sizing: border-box; }

/* Szerokie tabele (wyniki, cenniki) - przewijanie w poziomie zamiast rozpychania strony */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { min-width: 620px; }
@media (max-width: 720px) {
  .table-scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
  }
}
/* Grid/flex nie mogą rozpychać się zawartością (min-width:auto) - kluczowe dla tabel */
.checkout-grid > *, .split > *, .grid-2 > *, .grid-3 > *, .grid-4 > *,
.stack-md > *, .stack-sm > *, .table-scroll { min-width: 0; max-width: 100%; }

/* ==========================================================================
   22. ZDJĘCIA (Unsplash - do podmiany na własne) i wideo w hero
   ========================================================================== */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--blue-50);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
/* delikatna markowa poświata na dole kadru - spójność kolorystyczna */
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 44, 84, 0) 48%, rgba(7, 46, 92, 0.34) 100%);
  pointer-events: none;
}
.article-card:hover .photo img,
.article-featured:hover .photo img { transform: scale(1.04); }

/* Proporcje kadrów dla poszczególnych miejsc */
.photo.hero-media { aspect-ratio: 4 / 3; min-height: 0; }
.photo.split-media { aspect-ratio: 4 / 3; }
.photo.af-media { min-height: 320px; border-radius: 0; }
.photo.ac-media { aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; }
.photo.article-hero-media { aspect-ratio: 21 / 9; }
.photo.access-photo { min-height: 100%; border-radius: var(--r-lg); }
.article-card .photo::after, .article-featured .photo::after { opacity: 0.55; }

/* Zespół: monogramy w firmowych kolorach (czekamy na zdjęcia z placówek) */
.team-card .tm-photo {
  background: linear-gradient(155deg, var(--blue-600), var(--blue-800));
  border: 1px solid var(--blue-100);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.team-card .tm-photo .tm-initials {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
.team-card .tm-photo::after { content: none; }

/* --------------------------------------------------------------------------
   Hero ze wideo (strona główna) - 100vh minus nagłówek minus 210 px,
   żeby widać było początek kolejnej sekcji.
   -------------------------------------------------------------------------- */
.hero-video {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--nav-h) - 210px);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-video .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(1.05) contrast(1.02);
}
.hero-video .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 120% at 82% 6%, rgba(47, 155, 224, 0.30) 0%, transparent 58%),
    linear-gradient(100deg, rgba(7, 46, 92, 0.94) 0%, rgba(10, 44, 84, 0.82) 44%, rgba(14, 98, 194, 0.52) 100%);
}
.hero-video::after {
  /* miękkie przejście w kolejną sekcję */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 190px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 46, 92, 0) 0%, rgba(7, 46, 92, 0.55) 100%);
  pointer-events: none;
}
.hero-video .container { padding-block: 56px 148px; }
@media (max-width: 900px) {
  .hero-video { min-height: auto; }
  .hero-video .container { padding-block: 40px 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video .hero-bg { display: none; }
}

/* --------------------------------------------------------------------------
   18. Poprawki UX (rev. 1.0.3): hero bez wizualu, filtry sklepu,
       karty placówek z kontaktem i godzinami, odstępy w pasach CTA
   -------------------------------------------------------------------------- */

/* Hero jednokolumnowy (bez grafiki po prawej) - nieco wyższy */
.hero.hero-solo .container {
  grid-template-columns: minmax(0, 1fr);
  padding-block: 104px 168px;
}
.hero.hero-solo h1 { font-size: clamp(32px, 5vw, 54px); }
.hero.hero-solo p.lead { font-size: 19px; max-width: 58ch; }
.hero-video.hero-solo { min-height: calc(100vh - var(--nav-h) - 150px); }
@media (max-width: 900px) {
  .hero.hero-solo .container { padding-block: 48px 128px; }
  .hero-video.hero-solo { min-height: auto; }
}

/* Przyciski w pasach CTA (np. Portal współpracownika) - realny odstęp */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; }
.cta-band .hero-actions { margin-top: 0; gap: 12px; }

/* Sklep = katalog: pasek wyszukiwania, typ po prawej, bez dividera */
.shop-hero { border-bottom: none; }
.catalog-toolbar .ct-hint { padding-right: 18px; }
.catalog-toolbar .ct-type { margin-left: auto; }
@media (max-width: 900px) {
  .catalog-toolbar .ct-type { margin-left: 0; }
  .catalog-toolbar .ct-hint { padding-right: 0; }
}
.pkg-card .pk-actions { display: flex; gap: 8px; align-items: center; }

/* Karty placówek: spójny blok kontakt + godziny (telefony i godziny w jednym stylu) */
.placowka .pl-info {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--gray-25);
  overflow: hidden;
}
.placowka .pl-line {
  display: block;
  border-top: 1px solid var(--border);
}
.placowka .pl-info > .pl-line:first-child { border-top: none; }
.placowka a.pl-line {
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.placowka a.pl-line:hover { background: var(--blue-25); color: var(--blue-600); }
.placowka a.pl-line .material-symbols-outlined { font-size: 19px; color: var(--green-600); }

.placowka .pl-hours > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray-900);
}
.placowka .pl-hours > summary::-webkit-details-marker { display: none; }
.placowka .pl-hours > summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  margin-left: auto;
  color: var(--gray-500);
  transition: transform 0.18s ease;
}
.placowka .pl-hours[open] > summary::after { transform: rotate(180deg); }
.placowka .pl-hours[open] > summary { color: var(--blue-600); }
.placowka .pl-hours > summary .material-symbols-outlined { font-size: 19px; color: var(--blue-500); }
.placowka .pl-hours .plh-body,
.placowka .pl-hours-static .plh-body {
  padding: 2px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.placowka .pl-hours .plh-body > div,
.placowka .pl-hours-static .plh-body > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
}
.placowka .pl-hours .plh-body span,
.placowka .pl-hours-static .plh-body span {
  color: var(--text-muted);
  flex-shrink: 0;
}
.placowka .pl-hours .plh-body b,
.placowka .pl-hours-static .plh-body b {
  color: var(--gray-900);
  font-weight: 600;
  margin-left: auto;
  text-align: right;
  flex: 1;
  min-width: 0;
}
.placowka .pl-hours .plh-body b.plh-times span,
.placowka .pl-hours-static .plh-body b.plh-times span {
  display: block;
}
.placowka .pl-addr .plh-body {
  padding: 0;
  flex: 1;
  min-width: 0;
}

/* Nawigacja: pełne zaokrąglenie na hover i stanie aktywnym */
.main-nav a { border-radius: var(--r-full); }
.main-nav a:hover, .main-nav a.is-active { border-radius: var(--r-full); }

/* Pozycje koszyka klikalne (szuflada, koszyk, płatność) */
.cart-item .ci-body h4 a { color: inherit; text-decoration: none; }
.cart-item .ci-body h4 a:hover { color: var(--blue-600); text-decoration: underline; }
.cart-item a.ci-icon { text-decoration: none; transition: background 0.16s, color 0.16s; }
.cart-item a.ci-icon:hover { background: var(--blue-50); color: var(--blue-600); }
.sum-row .sr-link { color: inherit; text-decoration: none; }
.sum-row .sr-link:hover { color: var(--blue-600); text-decoration: underline; }
/* Sklep: mniejszy odstęp między filtrami a katalogiem */
.shop-hero .container { padding-block: 48px 28px; }
.shop-hero + .section { padding-top: 28px; }

/* Nawigacja wyśrodkowana w nagłówku */
.site-header .container > .main-nav { margin-inline: auto; }

/* Dropdown w nagłówku: sterowany klikiem (obrót strzałki) */
.hdr-dropdown [data-dropdown-toggle] .dd-chevron { transition: transform 0.16s ease; }
.hdr-dropdown.open [data-dropdown-toggle] .dd-chevron { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   Placówki: rozwijane karty + mapa pinów (strona główna, o nas)
   -------------------------------------------------------------------------- */
.placowka.pl-acc { padding: 0; }
.placowka.pl-acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.placowka.pl-acc > summary::-webkit-details-marker { display: none; }
.placowka.pl-acc > summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 24px;
  margin-left: auto;
  color: var(--gray-500);
  transition: transform 0.2s ease;
}
.placowka.pl-acc[open] > summary::after { transform: rotate(180deg); }
.placowka.pl-acc > summary:hover { background: var(--blue-25); }
.placowka.pl-acc .pl-head { display: flex; flex-direction: column; gap: 3px; }
.placowka.pl-acc .pl-head b {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}
.placowka.pl-acc .pl-head .pl-sub { font-size: 12.5px; color: var(--text-subtle); }
.placowka.pl-acc .pl-head .pl-addr { font-size: 13.5px; }
.placowka.pl-acc[open] > summary { border-bottom: 1px solid var(--border); }
.placowka.pl-acc .pl-body { padding: 16px 20px 20px; }
.placowka.pl-acc .pl-hours-static { padding: 8px 0 2px; }
.placowka.pl-acc .pl-hours-static .plh-body { padding: 4px 14px; }
.placowka.pl-acc.is-hl {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(14, 98, 194, 0.14);
}

/* Mapa placówek: piny wybierają i rozwijają kartę */
.points-map.places-map { height: 100%; min-height: 420px; background-color: var(--blue-25); }
.points-map.places-map .map-pin { background: none; border: none; padding: 0; }
.points-map.places-map .map-pin .material-symbols-outlined { color: var(--blue-500); }
.points-map.places-map .map-pin:hover .material-symbols-outlined { color: var(--blue-700); }
.points-map.places-map .map-pin.is-active .material-symbols-outlined { color: var(--green-600); }
.points-map.places-map .map-pin.is-active .pin-tip {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}
.points-map.places-map .mb-legend {
  position: absolute;
  left: 14px;
  bottom: 14px;
}

/* Hero ze wideo: jednolity gradient - bez ciemnego pasa u dołu */
.hero-video::after { content: none; }
.hero-video .hero-scrim {
  background:
    radial-gradient(100% 120% at 84% 4%, rgba(47, 155, 224, 0.26) 0%, transparent 62%),
    linear-gradient(104deg, rgba(7, 46, 92, 0.93) 0%, rgba(9, 52, 100, 0.84) 42%, rgba(14, 98, 194, 0.58) 100%);
}

/* Warunki na karcie w sklepie: ważność i opłata za pobranie */
.pkg-card .pk-terms {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-subtle);
  padding-top: 8px;
}
.pkg-card .pk-terms .material-symbols-outlined { font-size: 15px; color: var(--blue-400); }

/* Sklep: pole szukania bez podwójnego obramowania, niebieski border w focusie */
.catalog-toolbar { padding: 12px; }
.catalog-toolbar .ct-search {
  border-color: transparent;
  background: var(--gray-25);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.catalog-toolbar .ct-search:hover { background: var(--surface-alt); }
.catalog-toolbar .ct-search:focus-within {
  background: var(--surface);
  border-color: var(--blue-500);
  box-shadow: var(--ring);
}
.catalog-toolbar .ct-search:focus-within .material-symbols-outlined { color: var(--blue-500); }
.catalog-toolbar .ct-hint { padding-right: 4px; }

/* Hero ze wideo: miękkie zejście zdjęcia w kolejną sekcję (bez paska) */
.hero-video::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0) 0%, rgba(245, 249, 255, 0.45) 62%, rgb(245, 249, 255) 100%);
}

/* --------------------------------------------------------------------------
   Hero: spokojniejsze, dłuższe gradienty (bez widocznych pasów)
   -------------------------------------------------------------------------- */
/* Podstrony (rezonans, laboratorium, USG, rehabilitacja) - bez zielonej poświaty
   i bez ostrego przejścia, jeden długi gradient. */
.hero::after { content: none; }
.hero {
  background:
    radial-gradient(140% 160% at 92% 0%, rgba(47, 155, 224, 0.22) 0%, rgba(47, 155, 224, 0) 68%),
    linear-gradient(172deg, var(--blue-800) 0%, var(--blue-750, #0b3f7d) 38%, var(--blue-700) 68%, var(--blue-600) 100%);
}

/* Strona główna (hero z wideo) - dłuższe, łagodniejsze zejście w treść */
.hero-video .hero-scrim {
  background:
    radial-gradient(120% 150% at 86% 0%, rgba(47, 155, 224, 0.22) 0%, transparent 70%),
    linear-gradient(160deg, rgba(7, 46, 92, 0.92) 0%, rgba(8, 50, 97, 0.86) 34%, rgba(11, 72, 143, 0.72) 66%, rgba(14, 98, 194, 0.52) 100%);
}
.hero-video::after {
  height: 230px;
  background: linear-gradient(180deg,
    rgba(245, 249, 255, 0) 0%,
    rgba(245, 249, 255, 0.18) 45%,
    rgba(245, 249, 255, 0.6) 78%,
    rgb(245, 249, 255) 100%);
}

/* Grafika z przezroczystym tłem (krzyż RODE-MED) - bez ramki i kadrowania */
.plain-media {
  display: grid;
  place-items: center;
  aspect-ratio: auto;
  background: none;
  box-shadow: none;
}
.plain-media img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(7, 46, 92, 0.16));
}

/* Podpis pod zespołem - większy oddech i mocniejszy akcent */
.team-note {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}
.team-note strong {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

/* Sekcja B2B po sekcji zespołu - własny oddech od góry (reguła .alt + .alt zerowała padding) */
.section.alt + .section.alt#b2b { padding-top: 80px; }
@media (max-width: 900px) { .section.alt + .section.alt#b2b { padding-top: 48px; } }

/* --------------------------------------------------------------------------
   Sklep i cenniki - korekty (rev. 1.0.4)
   -------------------------------------------------------------------------- */
/* Pasek wyszukiwania: jedna ramka (pole), bez karty wokół */
.catalog-toolbar {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.catalog-toolbar .ct-search {
  border-color: var(--blue-100);
  background: var(--surface);
}
.catalog-toolbar .ct-search:focus-within {
  border-color: var(--blue-500);
  box-shadow: var(--ring);
}

/* Cenniki: tabela wewnątrz sekcji nie ma własnej ramki (koniec podwójnych obramowań) */
.price-section .ps-body .price-table {
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.price-section .ps-body { padding: 8px 20px 20px; }
.price-section .ps-body > .table-scroll { margin-inline: -20px; }
.price-section .ps-body > .table-scroll > .price-table { border-radius: 0; }

/* Grupy w sklepie jako akordeon */
details.cat-group > summary.cg-head {
  list-style: none;
  cursor: pointer;
  padding-right: 40px;
  position: relative;
}
details.cat-group > summary.cg-head::-webkit-details-marker { display: none; }
details.cat-group > summary.cg-head::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 26px;
  color: var(--gray-500);
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}
details.cat-group[open] > summary.cg-head::after { transform: translateY(-50%) rotate(180deg); }
details.cat-group > summary.cg-head:hover h3 { color: var(--blue-600); }
details.cat-group[open] > .grid-3 { margin-top: 20px; }

/* Ikona koszyka: niebieska pigułka z licznikiem, gdy koszyk nie jest pusty */
.header-icon.has-items {
  width: auto;
  padding: 0 10px;
  gap: 7px;
  border-radius: var(--r-full);
  background: var(--blue-50);
  border-color: var(--blue-200);
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-icon.has-items .cart-badge {
  position: static;
  border: none;
  background: var(--blue-600);
  color: #fff;
  min-width: 20px;
  height: 20px;
  font-size: 11.5px;
}
