/* ==========================================================================
   MLAG Pomoc Drogowa 24/7 — arkusz stylów
   Motyw: ciemny, akcenty żółto-pomarańczowe (branża pomocy drogowej)
   ========================================================================== */

:root {
  --bg: #0e1013;
  --bg-alt: #1b1f26;
  --bg-card: #1a1e24;
  --bg-card-hover: #20252c;
  --border: #323844;
  --text: #eef0f2;
  --text-dim: #a7adb6;
  --text-faint: #767c86;
  --accent: #ffb800;
  --accent-2: #ff6a00;
  --accent-gradient: linear-gradient(100deg, #ffcc33 0%, #ff8a00 55%, #ff5e00 100%);
  --accent-soft: rgba(255, 184, 0, 0.12);
  --green: #35c26a;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.25);
  --max-width: 1180px;
  --header-h: 76px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { position: relative; }

/* Every content section gets a hairline top border by default, so section
   boundaries stay visible even where the background colour doesn't change —
   on a single-column mobile layout, colour alone isn't enough of a cue that
   one section has ended and the next has begun. Sections that already set
   their own border-top inline (the bg-alt bands) simply keep that value. */
.section-pad { padding: 88px 0; border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .section-pad { padding: 64px 0; }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent-gradient);
  display: inline-block;
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head { margin-bottom: 8px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }
.section-head.center .section-tag::before { display: none; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #171000;
  box-shadow: 0 8px 24px rgba(255, 138, 0, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 138, 0, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 1.08rem; }
.btn svg { flex-shrink: 0; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Solid (not translucent+blurred) background on purpose: a backdrop-filter
     here would create a new containing block for fixed-position descendants
     (the mobile nav panel), breaking its full-screen overlay. */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(255, 184, 0, 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171000;
  flex-shrink: 0;
}
.brand-mark-logo {
  width: auto;
  height: 48px;
  border-radius: 0;
  background: none;
}
.brand-mark-logo img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-text-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a.nav-link:hover { color: var(--text); background: var(--bg-card); }
.main-nav a.nav-link.active { color: var(--accent); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
}
.dropdown a:hover { background: var(--bg-card-hover); color: var(--accent); }

/* Wide variant: flows a longer link list (e.g. the "Obszar działania" list
   of nearby towns) into two columns instead of one very tall list. */
.dropdown-wide {
  min-width: 460px;
  column-count: 2;
  column-gap: 4px;
}
.dropdown-wide a { break-inside: avoid; }
@media (max-width: 1220px) {
  .dropdown-wide { min-width: 0; column-count: 1; }
}

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-phone svg { flex-shrink: 0; color: var(--accent); }
.header-phone span { white-space: nowrap; }
.header-phone small { display: block; font-weight: 500; color: var(--text-faint); font-size: 0.7rem; white-space: nowrap; }
.brand { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 1220px) {
  /* Dropdown panel anchored just below the header — not a full-screen
     takeover — so the rest of the page stays visible (dimmed) behind it. */
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - var(--header-h) - 14px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-m) var(--radius-m);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    flex-direction: column; align-items: stretch; padding: 12px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 99;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a.nav-link { padding: 14px 16px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 4px 0 10px 12px; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }

  /* Dims the page content below the dropdown panel; tapping it closes the menu. */
  .nav-backdrop {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(6, 7, 9, 0.55);
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 98;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* Narrow phones: the full brand lockup + a labelled CTA button + the nav
   toggle don't all fit on one line, so the CTA collapses to an icon-only
   circular call button and the brand drops its subtitle. The nav-toggle
   must always stay fully visible/tappable, so it's the one element that
   never shrinks here. */
@media (max-width: 560px) {
  .brand-text-sub { display: none; }
  .brand { font-size: 1rem; gap: 8px; flex-shrink: 1; min-width: 0; }
  .brand-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark-logo { width: auto; height: 38px; }
  .header-cta { gap: 8px; }
  .header-call-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .header-call-label { display: none; }
  .nav-toggle { width: 40px; height: 40px; flex-shrink: 0; }
}

@media (max-width: 340px) {
  .container { padding: 0 14px; }
  .brand { font-size: 0.88rem; gap: 6px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark-logo { width: auto; height: 32px; }
  .header-cta { gap: 6px; }
  .header-call-btn { width: 40px; height: 40px; }
  .nav-toggle { width: 36px; height: 36px; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 60px 0 90px;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(255, 138, 0, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(255, 184, 0, 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.3;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--bg) 0%, rgba(14,16,19,0.55) 45%, transparent 85%),
              linear-gradient(0deg, var(--bg) 0%, transparent 45%);
  z-index: 0;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  /* Company name + what-we-do headline/description come first in the DOM
     and now stay first visually too, so a visitor landing on mobile
     immediately sees who this is and what they do, before the "3 kroki"
     card. (Previously the card was reordered to the top via `order: -1`,
     which buried the headline below the fold — that was the actual bug
     behind "nie wiadomo z jaką firmą ma się do czynienia".) */
  /* Photo stays visible on mobile too — just given a flatter, more even fade
     since there's no left/right split to blend across on a single column.
     The hero-art card has its own solid background, so it naturally covers
     the photo where it sits; this only needs to keep the surrounding text
     readable without erasing the photo everywhere else. */
  .hero-photo { opacity: 0.4; }
  .hero::after {
    background: linear-gradient(180deg, rgba(14,16,19,0.5) 0%, rgba(14,16,19,0.35) 35%, rgba(14,16,19,0.6) 70%, var(--bg) 100%);
  }
}

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
}
.pill.pill-accent { color: var(--accent); border-color: rgba(255, 184, 0, 0.35); background: var(--accent-soft); }
.pill svg { width: 14px; height: 14px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(53, 194, 106, 0.25); }

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 1.12rem; color: var(--text-dim); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; }
.hero-stats .stat-num { font-size: 1.7rem; font-weight: 800; color: var(--accent); line-height: 1; }
.hero-stats .stat-label { font-size: 0.82rem; color: var(--text-faint); margin-top: 6px; }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 440px;
}
.hero-art-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255,138,0,0.28), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

/* ---------------- Trust bar ---------------- */

.trust-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 32px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.trust-item .icon-badge { width: 46px; height: 46px; margin-bottom: 0; flex-shrink: 0; }
.trust-item svg { flex-shrink: 0; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; } }

/* ---------------- Cards / Grids ---------------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 28px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,184,0,0.35); background: var(--bg-card-hover); box-shadow: var(--shadow-soft); }

/* Cards that hold a single .card-link get a "stretched link" hit-area: the
   whole card is clickable/hoverable, not just the small text link, so the
   click affordance matches what the hover feedback promises. */
.card:has(.card-link), .area-card:has(.card-link) { cursor: pointer; }
.card-link::after { content: ""; position: absolute; inset: 0; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-s);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.card:hover .icon-badge { background: var(--accent-gradient); color: #171000; transform: translateY(-2px); }

.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; font-weight: 800; }
.service-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 16px; }
.service-card .card-link { color: var(--accent); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.service-card .card-link svg { transition: transform 0.15s ease; }
.service-card:hover .card-link svg { transform: translateX(3px); }

.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dim); font-size: 0.96rem; margin-bottom: 12px; }
.check-list svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.check-list strong { color: var(--text); }

/* ---------------- Steps / process ---------------- */

.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #171000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------------- Testimonials ---------------- */

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px;
}
.stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 14px; }
.testimonial-card p.quote { color: var(--text); font-size: 0.98rem; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #171000; font-size: 0.95rem;
}
.author-name { font-weight: 700; font-size: 0.92rem; }
.author-loc { color: var(--text-faint); font-size: 0.8rem; }

/* ---------------- Pricing ---------------- */

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,184,0,0.4), var(--shadow); position: relative; }
.price-card.featured::before {
  content: "Najczęściej wybierane";
  position: absolute; top: -13px; left: 26px;
  background: var(--accent-gradient); color: #171000;
  font-size: 0.72rem; font-weight: 800; padding: 5px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.price-card .price-desc { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 18px; }
.price-value { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.price-value span { font-size: 0.95rem; color: var(--text-faint); font-weight: 600; }
.price-card .check-list { margin: 18px 0 22px; flex-grow: 1; }
.price-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-s);
  background: var(--accent-soft);
  border: 1px solid rgba(255,184,0,0.3);
  font-size: 0.88rem;
  color: var(--text-dim);
}
.price-note strong { color: var(--accent); }

/* ---------------- FAQ ---------------- */

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.faq-item:hover { border-color: rgba(255,184,0,0.35); }
.faq-item[open] { border-color: rgba(255,184,0,0.35); background: var(--bg-card-hover); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.15s ease;
  font-weight: 700;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.faq-item:hover summary .plus, .faq-item[open] summary .plus { border-color: var(--accent); background: var(--accent-soft); }
.faq-item:hover summary { color: var(--accent); }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; background: var(--accent);
}
.faq-item summary .plus::before { width: 12px; height: 2px; }
.faq-item summary .plus::after { width: 2px; height: 12px; transition: transform 0.2s ease; }
.faq-item[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--text-dim); font-size: 0.96rem; }

/* ---------------- Area / cities ---------------- */

.area-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.area-card:hover { transform: translateY(-4px); border-color: rgba(255,184,0,0.35); background: var(--bg-card-hover); box-shadow: var(--shadow-soft); }
.area-card .area-time { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 0.88rem; }
.area-card:hover .card-link svg { transform: translateX(3px); }
.area-card h3 { font-size: 1.2rem; }
.area-card p { color: var(--text-dim); font-size: 0.92rem; }
.area-card .card-link { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.area-card .card-link svg { transition: transform 0.15s ease; }

/* "Obszar działania" section gets a dimmed background photo, same treatment
   as .page-hero.has-photo — subtle texture behind the section instead of a
   flat panel, faded back to var(--bg) at both edges so it blends with the
   sections above/below instead of reading as a hard-edged photo block. */
.area-section { position: relative; overflow: hidden; }
.area-section-photo {
  position: absolute;
  inset: 0;
  background-image: url('../img/realizacje/holowanie-auta-zima-snieg.jpg');
  background-size: cover;
  background-position: center 38%;
  opacity: 0.2;
  z-index: 0;
}
.area-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(14,16,19,0.35) 20%, rgba(14,16,19,0.35) 80%, var(--bg) 100%);
  z-index: 0;
}
.area-section .container { position: relative; z-index: 1; }

/* Compact chip version — used on the homepage so "obszar działania" stays
   short; the full area-card writeup still lives on each town's own page.
   Laid out as an even grid (instead of centered flex-wrap) so rows line up
   cleanly regardless of town-name length or how the last row fills. */
.area-chip-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.area-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: var(--radius-m);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.area-chip:hover { transform: translateY(-3px); border-color: rgba(255,184,0,0.35); background: var(--bg-card-hover); }
.area-chip-name { font-weight: 700; font-size: 0.95rem; }
.area-chip-time { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 0.78rem; font-weight: 600; }

/* Krosno is the home base, not just another stop — give it a lightly
   accented treatment so it visually anchors the grid, plus a "baza" tag. */
.area-chip-base { border-color: rgba(255,184,0,0.4); background: var(--accent-soft); }
.area-chip-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #171000;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.keyword-chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.keyword-chip {
  padding: 8px 14px; border-radius: 999px; background: var(--bg-alt);
  border: 1px solid var(--border); font-size: 0.82rem; color: var(--text-dim);
}

/* ---------------- Realizacje (gallery) ---------------- */

.realizacja-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.realizacja-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.realizacja-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  display: block;
}
.realizacja-card figcaption { padding: 20px 22px 24px; }
.realizacja-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.realizacja-card p { color: var(--text-dim); font-size: 0.9rem; }

.realizacje-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.realizacje-teaser-grid a {
  display: block;
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
}
.realizacje-teaser-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  display: block;
  transition: transform 0.3s ease;
}
.realizacje-teaser-grid a:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .realizacje-teaser-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .realizacje-teaser-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Map ---------------- */

.map-wrap {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(0.15) invert(0.92) contrast(0.9); }

/* ---------------- CTA band ---------------- */

.cta-band {
  background: var(--accent-gradient);
  border-radius: var(--radius-l);
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #171000;
}
.cta-band h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: rgba(23,16,0,0.75); font-weight: 600; }
.cta-band .btn-primary { background: #171000; color: #fff; box-shadow: none; }
.cta-band .btn-primary:hover { background: #262015; }
@media (max-width: 720px) { .cta-band { flex-direction: column; text-align: center; padding: 34px 24px; } }

/* ---------------- Breadcrumb ---------------- */

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.84rem; color: var(--text-faint); padding: 18px 0;
}
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text-dim); }

.page-hero {
  padding: 20px 0 60px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(900px 400px at 90% -20%, rgba(255,138,0,0.14), transparent 60%);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 14px; }
.page-hero p { color: var(--text-dim); max-width: 640px; font-size: 1.05rem; }
.page-hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  opacity: 0.3;
  z-index: 0;
}
.page-hero.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--bg) 0%, rgba(14,16,19,0.55) 45%, transparent 85%),
              linear-gradient(0deg, var(--bg) 0%, transparent 45%);
  z-index: 0;
}
.page-hero.has-photo .container { position: relative; z-index: 1; }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin: 14px 0 18px; max-width: 320px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 12px; }
.footer-contact-item svg { color: var(--accent); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--text-faint); font-size: 0.82rem;
}

/* ---------------- Sticky mobile call bar ---------------- */

.mobile-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  display: none;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.35);
}
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent-gradient); color: #171000;
  padding: 14px; border-radius: 999px; font-weight: 800; font-size: 1rem;
}
@media (max-width: 720px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 78px; }
}

/* ---------------- Floating WhatsApp button ---------------- */

.whatsapp-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 190;
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 720px) {
  /* Sits above the sticky mobile call bar instead of overlapping it. */
  .whatsapp-widget { right: 16px; bottom: 94px; gap: 8px; }
}

.whatsapp-float {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
@media (max-width: 720px) {
  .whatsapp-float { width: 52px; height: 52px; }
}

/* Speech-bubble hint that fades in/out on a 30s cycle to draw the eye to
   the WhatsApp button without being permanently in the way. */
.whatsapp-tooltip {
  position: relative;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  animation: wa-tooltip-cycle 30s ease-in-out infinite;
}
.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--bg-card);
}
@keyframes wa-tooltip-cycle {
  0%, 12%, 100% { opacity: 0; visibility: hidden; transform: translateY(4px); }
  17%, 78% { opacity: 1; visibility: visible; transform: translateY(0); }
  88% { opacity: 0; visibility: hidden; transform: translateY(4px); }
}
@media (max-width: 720px) {
  .whatsapp-tooltip {
    max-width: 148px;
    white-space: normal;
    text-align: right;
    font-size: 0.78rem;
    padding: 8px 12px;
  }
}
@media (max-width: 340px) {
  .whatsapp-tooltip { max-width: 118px; font-size: 0.72rem; padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-tooltip { animation: none; opacity: 1; visibility: visible; transform: none; }
}

/* ---------------- Cookie consent banner ---------------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 210;
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.cookie-banner p { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 14px; }
.cookie-banner p a { color: var(--accent); font-weight: 600; }
.cookie-banner-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-banner-actions .btn { padding: 10px 20px; font-size: 0.9rem; }
@media (max-width: 720px) {
  .cookie-banner { bottom: 90px; }
}

/* ---------------- Misc ---------------- */

.divider { height: 1px; background: var(--border); margin: 0; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.badge-number-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.badge-number {
  flex: 1 1 140px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 14px 16px;
}
.badge-number .num { font-size: 2.1rem; font-weight: 900; color: var(--accent); }
.badge-number .label { color: var(--text-faint); font-size: 0.86rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #171000;
  padding: 10px 16px; z-index: 999; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Scroll-triggered entrance animation. Default state is fully visible, so
   content never depends on JavaScript running (SEO crawlers, slow
   connections, JS-disabled users all see everything immediately). Only once
   main.js confirms it's running (adds .js to <html>) do .reveal elements
   start hidden and then fade/slide in via IntersectionObserver as the user
   scrolls them into view — matching the "interactive while scrolling" feel
   without ever risking permanently-invisible content if JS fails. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
