/* ===================================================
   AUTOSERWISKOBIERZYCE.PL
   Warstwa na design system BLUNI (styles-base.css).
   Tu tylko komponenty, których bluni.pl nie ma.
   =================================================== */

/* ══════════════════════════════════════════════
   HERO ZE ZDJĘCIEM
══════════════════════════════════════════════ */
.hero-photo {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex; align-items: flex-end;
  padding: 120px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: image-set(url("img/hero.webp") 1x);
  background-image: url("img/hero.webp");
  background-size: cover; background-position: center 42%;
  z-index: 0;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(13,15,18,.72) 42%, rgba(13,15,18,.30) 100%),
    linear-gradient(to right, rgba(13,15,18,.86) 0%, rgba(13,15,18,.28) 62%, transparent 100%);
}
.hero-photo > .container { position: relative; z-index: 2; width: 100% }

.hero-photo h1 {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -.02em;
  margin-bottom: 18px; max-width: 16ch;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0,0,0,.55);
}
.hero-photo .hero-lead {
  font-size: clamp(15px, 1.7vw, 18px);
  color: #dfe3ea; max-width: 56ch; line-height: 1.7;
  margin-bottom: 30px;
  text-shadow: 0 1px 16px rgba(0,0,0,.6);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(190,14,44,.16);
  border: 1px solid rgba(190,14,44,.42);
  backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #ff97ac;
}
.hero-photo .hero-actions { margin-bottom: 40px }

/* statystyki w hero */
.hero-photo .hero-stats {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: 40px; justify-content: start;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14);
}
.hero-photo .stat-num   { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5) }
.hero-photo .stat-label { color: #b9c0cb }

@media (max-width: 860px) {
  .hero-photo {
    min-height: auto; padding: 96px 0 44px;
    align-items: stretch;
  }
  .hero-photo::before {
    background-image: url("img/hero-mobile.webp");
    background-position: center 35%;
  }
  .hero-photo .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 18px }
}

/* ══════════════════════════════════════════════
   PASEK ZAUFANIA
══════════════════════════════════════════════ */
.trust-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex; flex-wrap: wrap; gap: 14px 34px;
  align-items: center; justify-content: center;
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.trust-item i { color: var(--brand); font-size: 14px }

/* ══════════════════════════════════════════════
   WYRÓŻNIKI
══════════════════════════════════════════════ */
.usp-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px;
}
.usp-card {
  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  transition: border-color var(--trans), transform var(--trans);
}
.usp-card:hover { border-color: var(--border-red); transform: translateY(-3px) }
.usp-card .usp-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(190,14,44,.12); color: var(--brand); font-size: 18px;
}
.usp-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 9px }
.usp-card p  { font-size: 13.5px; color: var(--muted); line-height: 1.72 }

/* ══════════════════════════════════════════════
   GALERIA + LIGHTBOX
══════════════════════════════════════════════ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.gallery-item {
  position: relative; display: block;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); background: var(--card);
  cursor: zoom-in; aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.06) }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(8,10,13,.92), transparent);
  font-size: 12.5px; font-weight: 600; color: #eef1f5; line-height: 1.45;
}
.gallery-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  background: rgba(6,7,9,.94);
  backdrop-filter: blur(6px);
  padding: 24px;
}
.lightbox.show { display: flex }
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.lightbox-caption {
  position: absolute; bottom: 26px; left: 0; right: 0;
  text-align: center; font-size: 14px; color: #c8cdd5; padding: 0 24px;
}
.lightbox-close, .lightbox-nav {
  position: absolute; top: 20px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07); color: #fff;
  font-size: 20px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.16) }
.lightbox-nav { top: 50%; transform: translateY(-50%); right: auto }
.lightbox-nav.prev { left: 22px }
.lightbox-nav.next { right: 22px }
@media (max-width: 640px) { .lightbox-nav { display: none } }

/* ══════════════════════════════════════════════
   REZERWACJA — KALENDARZ
══════════════════════════════════════════════ */
.booking-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.booking-step {
  padding: 22px 24px; border-bottom: 1px solid var(--border);
}
.booking-step:last-child { border-bottom: 0 }
.booking-step-head {
  display: flex; align-items: center; gap: 11px; margin-bottom: 16px;
}
.booking-step-num {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
}
.booking-step-head h3 { font-size: .95rem; font-weight: 800 }

.day-strip {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 8px; scrollbar-width: thin;
}
.day-chip {
  flex-shrink: 0; min-width: 84px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card-2);
  color: var(--text-2); cursor: pointer; text-align: center;
  transition: all var(--trans); font-family: inherit;
}
.day-chip:hover { border-color: var(--border-red) }
.day-chip.active { background: var(--brand); border-color: var(--brand); color: #fff }
.day-chip .dc-dow  { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75 }
.day-chip .dc-date { display: block; font-size: 17px; font-weight: 800; margin-top: 3px }
.day-chip .dc-free { display: block; font-size: 10px; margin-top: 3px; opacity: .7 }

.slot-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px;
}
.slot-chip {
  padding: 11px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card-2);
  color: var(--text-2); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all var(--trans); font-family: inherit;
}
.slot-chip:hover { border-color: var(--border-red); color: var(--text) }
.slot-chip.active { background: var(--brand); border-color: var(--brand); color: #fff }

.booking-empty {
  padding: 22px; text-align: center;
  font-size: 13.5px; color: var(--muted);
  background: var(--card-2); border-radius: var(--radius-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr } }
.field { display: block; margin-bottom: 14px }
.field > span {
  display: block; margin-bottom: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--text-2);
}
.field .hint { font-weight: 500; color: var(--muted); font-size: 11.5px }
textarea.input { min-height: 104px; resize: vertical; font-family: inherit }
select.input   { appearance: none; cursor: pointer }

.check-line {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
  margin: 4px 0 18px;
}
.check-line input { margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; width: 16px; height: 16px }
.check-line a { color: var(--brand) }

/* honeypot – nie dla ludzi */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-msg { font-size: 13px; margin-top: 12px; line-height: 1.6; display: none }
.form-msg.show { display: block }
.form-msg.ok  { color: #4ade80 }
.form-msg.err { color: #f87171 }

.booking-done {
  text-align: center; padding: 36px 24px;
}
.booking-done .bd-icon {
  width: 60px; height: 60px; margin: 0 auto 18px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(74,222,128,.12); color: #4ade80; font-size: 26px;
}

/* ══════════════════════════════════════════════
   CENNIK
══════════════════════════════════════════════ */
.price-table { width: 100%; border-collapse: collapse; font-size: 14px }
.price-table th {
  text-align: left; padding: 12px 14px;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.price-table td {
  padding: 13px 14px; border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.price-table tr:last-child td { border-bottom: 0 }
.price-table td:last-child {
  text-align: right; font-weight: 800; color: var(--text); white-space: nowrap;
}
.price-note {
  font-size: 12.5px; color: var(--muted); line-height: 1.75;
  padding: 16px; margin-top: 16px;
  background: var(--card-2); border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand);
}

/* ══════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════ */
.faq-list { display: grid; gap: 10px }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-item[open] { border-color: var(--border-red) }
.faq-item summary {
  padding: 17px 48px 17px 20px; cursor: pointer; position: relative;
  font-size: 14.5px; font-weight: 700; color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none }
.faq-item summary::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--brand); transition: transform var(--trans);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg) }
.faq-item .faq-body {
  padding: 0 20px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.78;
}
.faq-item .faq-body p + p { margin-top: 10px }

/* ══════════════════════════════════════════════
   OBSZAR DZIAŁANIA
══════════════════════════════════════════════ */
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px }
.area-chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card-2);
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}

/* ══════════════════════════════════════════════
   SOCIAL W STOPCE
══════════════════════════════════════════════ */
.social-links { display: flex; gap: 9px; flex-wrap: wrap }
.social-links a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--card-2);
  color: var(--text-2); font-size: 15px;
  transition: all var(--trans);
}
.social-links a:hover { background: var(--brand); border-color: var(--brand); color: #fff }

/* ══════════════════════════════════════════════
   PASEK CTA NA MOBILE
══════════════════════════════════════════════ */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(13,15,18,.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.mobile-cta .btn { flex: 1; justify-content: center; padding: 12px 10px; font-size: 13.5px }
@media (max-width: 860px) {
  .mobile-cta { display: flex }
  body { padding-bottom: 72px }
}

/* ══════════════════════════════════════════════
   MENU MOBILNE
══════════════════════════════════════════════ */
.nav-toggle { display: none }
@media (max-width: 1000px) {
  .nav-toggle { display: grid; place-items: center }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 8px 16px 18px;
    transform: translateY(-120%); transition: transform var(--trans);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0) }
  .nav-links a { padding: 13px 12px; font-size: 15px }
  .nav-cta { margin: 10px 0 0 !important; text-align: center }
}

/* ══════════════════════════════════════════════
   PANEL KLIENTA
══════════════════════════════════════════════ */
.panel-status {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(190,14,44,.14), rgba(190,14,44,.04));
  border: 1px solid var(--border-red); margin-bottom: 18px;
}
.panel-status-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 19px;
}
.panel-status .ps-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700 }
.panel-status .ps-value { font-size: 1.15rem; font-weight: 800; margin-top: 3px }

.timeline { position: relative; padding-left: 26px; margin-top: 6px }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 18px }
.timeline-item::before {
  content: ""; position: absolute; left: -23px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--brand);
}
.timeline-item.done::before { background: var(--brand) }
.timeline-item .tl-title { font-size: 13.5px; font-weight: 700 }
.timeline-item .tl-date  { font-size: 12px; color: var(--muted); margin-top: 2px }

/* ══════════════════════════════════════════════
   MOTYW JASNY — uzupełnienia
══════════════════════════════════════════════ */
[data-theme="light"] .hero-photo::after {
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(13,15,18,.70) 45%, rgba(13,15,18,.34) 100%),
    linear-gradient(to right, rgba(13,15,18,.84) 0%, rgba(13,15,18,.30) 62%, transparent 100%);
}
[data-theme="light"] .trust-bar   { background: #fff }
[data-theme="light"] .usp-card,
[data-theme="light"] .booking-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .gallery-item { background: #fff }
[data-theme="light"] .day-chip,
[data-theme="light"] .slot-chip,
[data-theme="light"] .area-chip,
[data-theme="light"] .social-links a,
[data-theme="light"] .booking-empty,
[data-theme="light"] .price-note  { background: #f1f4f8 }
[data-theme="light"] .day-chip.active,
[data-theme="light"] .slot-chip.active { background: var(--brand); color: #fff }
[data-theme="light"] .mobile-cta  { background: rgba(255,255,255,.97) }
[data-theme="light"] .nav-links   { background: #fff }
[data-theme="light"] .lightbox    { background: rgba(20,22,26,.95) }

/* ══════════════════════════════════════════════
   DOSTĘPNOŚĆ
══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important }
  .gallery-item:hover img { transform: none }
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  padding: 12px 20px; background: var(--brand); color: #fff;
  font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0 }

/* ══════════════════════════════════════════════
   BANER COOKIES
   .cookies-banner ma w bazowym arkuszu display:none — klasa .show go odslania.
══════════════════════════════════════════════ */
.cookies-banner.show { display:block }

/* ══════════════════════════════════════════════
   UKŁAD DWUKOLUMNOWY (treść + panel boczny)

   minmax(0,1fr), NIE 1fr. Ścieżka 1fr ma automatyczne
   minimum równe min-content zawartości, więc szeroki
   pasek dni w rezerwacji rozpychał siatkę poza
   max-width kontenera, a overflow-x na pasku nigdy
   się nie włączał. min-width:0 na dzieciach z tego
   samego powodu.
══════════════════════════════════════════════ */
.uslugi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
.uslugi-layout > * { min-width: 0 }

@media (max-width: 1040px) {
  .uslugi-layout { grid-template-columns: minmax(0, 1fr); gap: 28px }
}

/* ══════════════════════════════════════════════
   TREŚĆ REDAKCYJNA PODSTRON
══════════════════════════════════════════════ */
.prose h2 { font-size: 1.4rem; font-weight: 800; margin: 34px 0 14px }
.prose h2:first-child { margin-top: 0 }
.prose h3 { font-size: 1.05rem; font-weight: 800; margin: 24px 0 10px }
.prose p  { color: var(--muted); font-size: 14.5px; line-height: 1.85; margin-bottom: 14px }
.prose ul { display: grid; gap: 9px; margin: 0 0 18px }
.prose li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--muted); font-size: 14px; line-height: 1.7;
}
.prose li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  color: var(--brand); font-size: 11px; margin-top: 5px; flex-shrink: 0;
}
.prose strong { color: var(--text-2) }
.prose a { color: var(--brand) }

/* ══════════════════════════════════════════════
   REZERWACJA — DOPRACOWANIE NA MAŁYCH EKRANACH
══════════════════════════════════════════════ */
.day-strip {
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--border-red) transparent;
}
.day-strip::-webkit-scrollbar { height: 6px }
.day-strip::-webkit-scrollbar-track { background: transparent }
.day-strip::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: 999px;
}
.day-strip:hover::-webkit-scrollbar-thumb { background: var(--border-red) }
.day-chip { scroll-snap-align: start }

@media (max-width: 640px) {
  .booking-step { padding: 16px 14px }
  .day-chip { min-width: 66px; padding: 9px 8px }
  .day-chip .dc-date { font-size: 16px }
  .day-chip .dc-free { font-size: 9.5px }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px }
  .slot-chip { padding: 10px 4px; font-size: 13px }
}

/* Podpowiedź pod wyborem usługi — mówi wprost, ile czasu blokujemy. */
.booking-hint {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.booking-hint:empty { display: none }

/* ══════════════════════════════════════════════
   CENNIK: cena brutto glowna, netto pomocnicza

   Ustawa o informowaniu o cenach (art. 3 ust. 2): w cenie
   uwzglednia sie VAT, wiec konsument musi widziec brutto.
   Netto zostaje dla firm biorcych fakture.
══════════════════════════════════════════════ */
.cena-netto {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* Tabela cennika miesci sie dopiero od ok. 340 px, a karta na telefonie
   ma ok. 294 px - bez tego kontenera kolumna z cena byla ucinana
   i NIE DALO sie jej przewinac (overflow:hidden na karcie). */
.price-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.price-scroll .price-table { min-width: 340px }
.price-scroll::-webkit-scrollbar { height: 6px }
.price-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px }

@media (max-width: 520px) {
  .price-table th, .price-table td { padding: 11px 10px; font-size: 13px }
  .cena-netto { font-size: 11px }
}
