/* ==========================================================================
   Extrakaretka.pl — design system (wg BRIEF sekcja 5)
   Mobile-first. Breakpointy: 640px, 1024px. Jeden jasny motyw.
   ========================================================================== */

/* --- Fonty: Inter self-hosted (variable 400–800) --- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Zmienne --- */
:root {
  --blue: #1B9DE4;
  --blue-dark: #0E7DBC;
  --green: #00A651;
  --green-dark: #00873F;
  --navy: #0D2B40;
  --ink: #31465A;
  --bg: #FFFFFF;
  --bg-alt: #F2F8FC;
  --line: #DCE8F0;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
  --radius-btn: 8px;
  --shadow: 0 2px 10px rgba(13, 43, 64, 0.06);
  --container: 1140px;
  --gutter: 20px;
  --header-h: 64px;
  --stickybar-h: 62px;
}

/* --- Reset / baza --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: light;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--stickybar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* --- Przyciski --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.65em 1.4em;
  border: 0;
  border-radius: var(--radius-btn);
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-call { background: var(--green); color: #fff; }
.btn-call:hover { background: var(--green-dark); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue-dark); }
.btn-lg { font-size: 1.1rem; min-height: 54px; padding: 0.75em 1.7em; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-mark { height: 34px; width: auto; flex: none; }
.logo .logo-extra { color: #38B6FF; }
.logo .logo-karetka { color: #00BF63; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.lang-switch {
  display: flex;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 600;
}
.lang-switch a {
  color: var(--ink);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
}
.lang-switch a:hover { background: var(--bg-alt); color: var(--blue-dark); }
.lang-switch a[aria-current="true"] { color: var(--blue-dark); background: var(--bg-alt); }
.header-actions .btn-call { min-height: 42px; padding: 0.4em 1em; font-size: 0.95rem; flex: none; }
/* Telefony: w naglowku tylko logo, ikona telefonu i menu; jezyki przeniesione do wysuwanego menu */
.lang-switch-drawer { display: none; }
@media (max-width: 639px) {
  .header-actions .lang-switch { display: none; }
  .lang-switch-drawer { display: flex; gap: 8px; margin-top: 18px; font-size: 0.95rem; }
  .lang-switch-drawer a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; }
}
@media (max-width: 639px) {
  .header-actions .btn-call .btn-call-label { display: none; }
  .site-header .container { padding-inline: 14px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 8px; }
  .logo { font-size: 1.12rem; gap: 6px; }
  .logo-mark { height: 28px; }
  .lang-switch a { padding: 4px 4px; }
}

@media (max-width: 359px) {
  .logo { font-size: 1rem; gap: 5px; }
  .logo-mark { height: 24px; }
  .header-inner, .header-actions { gap: 6px; }
  .lang-switch a { padding: 4px 3px; }
}

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  order: 10;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 22px;
  flex: none;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nawigacja: mobile = drawer, desktop = pasek */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: #fff;
  overflow-y: auto;
  padding: 20px var(--gutter) 100px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease;
}
body.nav-open .site-nav { transform: translateX(0); visibility: visible; }
body.nav-open { overflow: hidden; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-list a {
  display: block;
  padding: 14px 4px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover { color: var(--blue-dark); }
/* Nagłówek grupy z podmenu (przycisk, nie link) — w menu mobilnym zwykły nagłówek nad zawsze widoczną listą */
.nav-group {
  display: block;
  width: 100%;
  padding: 14px 4px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: default;
}
.dropdown {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 14px;
}
.dropdown a { padding: 9px 4px; font-weight: 500; color: var(--ink); font-size: 0.97rem; }
.nav-cta { margin-top: 20px; display: grid; gap: 10px; }

/* Pełne menu potrzebuje ~1190 px — poniżej 1280 px zostaje hamburger (na tablecie jako boczny panel). */
@media (min-width: 640px) and (max-width: 1279px) {
  .site-nav {
    left: auto;
    width: 400px;
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 30px rgba(13, 43, 64, 0.12);
  }
}
@media (min-width: 1280px) {
  .site-header .container { max-width: 1280px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    transform: none;
    visibility: visible;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    width: auto;
    margin-left: 8px;
  }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list > li > a,
  .nav-list > li > .nav-group {
    padding: 8px 10px;
    font-size: 0.93rem;
    border-radius: 8px;
    white-space: nowrap;
  }
  .nav-list > li > .nav-group { width: auto; cursor: pointer; }
  .nav-list > li > a:hover,
  .nav-list > li > .nav-group:hover,
  .has-dropdown.is-open > .nav-group { background: var(--bg-alt); color: var(--blue-dark); }
  .has-dropdown > .nav-group::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    width: 7px; height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
  }
  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(13, 43, 64, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown a { padding: 9px 12px; border-radius: 8px; }
  .dropdown a:hover { background: var(--bg-alt); color: var(--blue-dark); }
  .nav-cta { display: none; }
}

/* --- Sekcje --- */
.section { padding-block: 48px; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #E8F1F8; }
.section-navy h2, .section-navy h3 { color: #fff; }
@media (min-width: 1024px) {
  .section { padding-block: 72px; }
}
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.12rem; }
.muted { color: #5B7186; }

/* --- Hero (strona główna) --- */
.hero { padding-block: 40px 48px; background: var(--bg-alt); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .hero-sub { font-size: 1.15rem; margin-bottom: 1.4em; max-width: 34em; }
.hero-cta { display: grid; gap: 12px; margin-bottom: 20px; }
.hero-cta .btn { width: 100%; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}
.hero-badges li { display: inline-flex; align-items: center; gap: 6px; }

/* Odznaka oceny Google (hero) — duża cyfra + 5 gwiazdek, klikalna */
.rating-stars {
  display: inline-block;
  width: 110px;
  height: 20px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath fill='%23FBBC04' d='M12 1.5l3.1 6.6 7.2.9-5.3 4.9 1.4 7.1L12 17.4 5.6 21l1.4-7.1L1.7 9l7.2-.9z'/%3E%3C/svg%3E") 0 0 / 22px 20px repeat-x;
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0 20px;
  padding: 10px 18px 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(13, 43, 64, 0.10);
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rating-badge:hover { color: var(--navy); border-color: #FBBC04; box-shadow: 0 8px 24px rgba(13, 43, 64, 0.14); }
.rating-score { font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.rating-body { display: flex; flex-direction: column; gap: 5px; }
.rating-label { font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.rating-stars-sm { width: 80px; height: 15px; background-size: 16px 15px; vertical-align: -2px; }
.hero-badges svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 640px) {
  .hero-cta { grid-template-columns: auto auto; justify-content: start; }
  .hero-cta .btn { width: auto; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 64px 72px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}

/* --- Hero podstrony --- */
.hero-sub-page { background: var(--bg-alt); padding-block: 36px 44px; }
.hero-sub-page .hero-grid { align-items: start; }
.hero-sub-page h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
@media (min-width: 1024px) {
  .hero-sub-page { padding-block: 48px 56px; }
  .hero-sub-page .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
}

/* --- Breadcrumbs --- */
.breadcrumbs { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 10px 0;
}
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px 0 4px; color: #8AA0B2; }
.breadcrumbs a { color: var(--ink); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-dark); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* --- Karty --- */
.cards { display: grid; gap: 18px; }
@media (min-width: 640px) { .cards-2, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card h3 { margin-bottom: 0.4em; }
.card :last-child { margin-bottom: 0; }
.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }

/* Duże karty-ścieżki (linki) */
.path-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.path-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(13, 43, 64, 0.12);
  transform: translateY(-2px);
  color: var(--ink);
}
.path-card h3 { color: var(--navy); margin: 0; font-size: 1.2rem; }
.path-card p { margin: 0; font-size: 0.97rem; }
.path-card .path-more {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.95rem;
}
.path-card .path-more::after { content: " →"; }

/* --- Kroki procesu --- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 62px;
  min-height: 46px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 0.25em; }
.steps p { margin-bottom: 0; }
@media (min-width: 1024px) {
  .steps-row { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps-row > li { padding-left: 0; padding-top: 60px; }
  .steps-row > li::before { top: 0; left: 0; }
}

/* --- Trust bar --- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  align-items: center;
  padding: 18px 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}
.trust-bar .trust-item { display: inline-flex; align-items: center; gap: 8px; }
.trust-bar svg { width: 22px; height: 22px; flex: none; color: var(--blue-dark); }

/* Badge opinii */
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
}
.badge-google .star { color: #F5A623; }
.badge-google:hover { border-color: var(--blue); color: var(--blue-dark); }

/* --- Chipy (kierunki) --- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 1em; padding: 0; }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chips a:hover { border-color: var(--blue); color: var(--blue-dark); }

/* --- FAQ --- */
.faq { max-width: 820px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 700;
  color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--blue-dark);
  border-bottom: 2px solid var(--blue-dark);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: 14px 20px 4px; }

/* --- Tabele tras --- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1em; }
.route-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.97rem;
}
.route-table th, .route-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.route-table th { background: var(--bg-alt); color: var(--navy); font-weight: 700; }
.route-table tr:last-child td { border-bottom: 0; }
.route-table td:last-child, .route-table th:last-child { white-space: nowrap; }

/* --- Galeria --- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Galeria zdjęć z podpisami: <div class="photo-grid"><figure class="photo">…<figcaption>…</figcaption></figure></div>
   .photo-wide = kafel na 2 kolumny (desktop), .photo-tall = kafel na 2 wiersze (portret) */
.photo-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
}
@media (min-width: 640px) { .photo-grid { grid-auto-rows: 210px; } }
@media (min-width: 1024px) { .photo-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; } }
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.photo picture, .photo img { width: 100%; height: 100%; }
.photo img { object-fit: cover; transition: transform 0.4s ease; }
.photo:hover img { transform: scale(1.03); }
.photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 12px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(to top, rgba(13, 43, 64, 0.85), rgba(13, 43, 64, 0));
}
.photo-tall { grid-row: span 2; }
@media (min-width: 640px) { .photo-wide { grid-column: span 2; } }
@media (prefers-reduced-motion: reduce) { .photo img { transition: none; } .photo:hover img { transform: none; } }

/* Pojedyncze zdjęcie z podpisem pod spodem (np. w .split) */
.figure { margin: 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.figure figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--ink); opacity: 0.85; }

/* --- Media / video --- */
.video-wrap { max-width: 900px; margin-inline: auto; }
.video-wrap video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--navy);
}
.img-rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Dwukolumnowy układ treść + media */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split.split-media-left > .split-media { order: -1; }
}

/* --- Formularze --- */
.form-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) {
  .form-grid { grid-template-columns: 1.4fr 0.8fr; align-items: start; gap: 48px; }
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}
@media (min-width: 640px) { .form-card { padding: 32px; } }
fieldset.form-step {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 8px;
  padding: 18px 0 10px;
}
fieldset.form-step:first-of-type { border-top: 0; padding-top: 0; }
.form-step legend {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
  padding: 0 0 6px;
}
.form-step legend .step-label {
  color: var(--blue-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: #5B7186; margin-top: 4px; }
input[type="text"], input[type="tel"], input[type="email"],
input[type="date"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 157, 228, 0.2);
}
.field-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
  margin: 0;
}
.radio-group label:has(input:checked) {
  border-color: var(--blue);
  background: var(--bg-alt);
  color: var(--blue-dark);
}
.radio-group input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: 0.85rem;
  color: #5B7186;
  align-items: start;
  margin-bottom: 18px;
}
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.form-msg {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  background: #EAF7F0;
  border: 1px solid var(--green);
  color: var(--green-dark);
  font-weight: 600;
}
.form-msg:empty { display: none; }
.form-msg.is-error { background: #FDF1F1; border-color: #C0392B; color: #922B21; }

/* Box "Wolisz porozmawiać?" */
.phone-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.phone-box .phone-big {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  text-decoration: none;
  margin: 4px 0 10px;
}
.phone-box .phone-big:hover { color: var(--green); }

/* --- CTA banner --- */
.cta-banner { background: var(--navy); color: #DCEAF5; padding-block: 52px; }
.cta-banner h2 { color: #fff; }
.cta-banner .cta-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.cta-banner .cta-actions {
  display: grid;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .cta-banner .cta-actions { grid-template-columns: auto auto; }
}
.cta-banner .cta-note { margin: 18px 0 0; font-size: 0.9rem; color: #A9C2D6; }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: #B9CCDC;
  font-size: 0.93rem;
  padding-top: 48px;
}
.footer-grid { display: grid; gap: 32px; padding-bottom: 36px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
.site-footer h3 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #B9CCDC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  width: 250px;
  height: auto;
  margin-bottom: 14px;
}
.footer-nap { font-style: normal; }
.footer-nap strong { color: #fff; }
.footer-nap a { color: #fff; font-weight: 700; }
.site-footer .badge-google { margin-top: 12px; background: transparent; border-color: #3A5871; color: #fff; }
.footer-bottom {
  border-top: 1px solid #2A4459;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8AA5BB;
}
.footer-bottom a { color: #8AA5BB; }

/* --- Mobile sticky bottom bar --- */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(13, 43, 64, 0.1);
}
.mobile-cta-bar .btn { min-height: 46px; font-size: 0.95rem; padding: 0.4em 0.6em; }
@media (min-width: 1024px) { .mobile-cta-bar { display: none; } }

/* --- Drobne --- */
.tel-inline { font-weight: 800; color: var(--green-dark); text-decoration: none; white-space: nowrap; }
.tel-inline:hover { color: var(--green); }
.quote-highlight {
  border-left: 4px solid var(--green);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 0 0 1.2em;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
}
.map-embed {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 320px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* --- Akcenty B2B (desktop) / kompaktowe sciezki (mobile) --- */
.hero-b2b-strip { display: none; }
.path-thumb { display: none; }
.path-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-dark);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
}
.path-card-featured { border-top: 3px solid var(--green); }

/* Tablet: karta prywatna na całą szerokość, dwie karty B2B obok siebie — bez pustego pola */
@media (min-width: 640px) and (max-width: 1023px) {
  .path-card-featured { grid-column: 1 / -1; }
}
/* Mobile/tablet: najpierw hero i „Jak zamówić”, dopiero potem trzy ścieżki (desktop bez zmian) */
@media (max-width: 1023px) {
  .home-main { display: flex; flex-direction: column; }
  .home-hero { order: -2; }
  .home-steps { order: -1; background: var(--bg); }
  .home-paths { background: var(--bg-alt); }
}

@media (min-width: 1024px) {
  /* Desktop: pas B2B pod hero */
  .hero-b2b-strip {
    display: block;
    background: var(--navy);
    color: #fff;
    margin-top: 28px;
  }
  .hero-b2b-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-block: 13px;
    font-size: 0.95rem;
  }
  .hero-b2b-inner .b2b-label {
    font-weight: 700;
    color: #9fd6ff;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    margin-right: 4px;
  }
  .hero-b2b-inner a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 1px; }
  .hero-b2b-inner a:hover { border-bottom-color: #fff; }
  .hero-b2b-inner a strong { color: #fff; }
  .hero-b2b-inner .b2b-sep { opacity: 0.5; }
  /* Desktop: karty B2B ze zdjeciami */
  .path-thumb { display: block; margin: -6px 0 14px; }
  .path-thumb img { width: 100%; height: 132px; object-fit: cover; border-radius: 8px; display: block; }
}
@media (min-width: 1024px) {
  .path-b2b:last-child .path-thumb img { object-position: 80% 60%; }
}

/* Trzeci przycisk hero (tylko desktop): zabezpieczenia medyczne */
.hero-btn-events { display: none; }
@media (min-width: 1024px) {
  .hero-btn-events { display: inline-flex; grid-column: 1 / -1; justify-self: stretch; width: 100%; }
}
