/* Pomoc Drogowa – mobile first: baza dla telefonu, większe ekrany w media queries na dole */
/* Inter (SIL OFL 1.1) – ten sam krój co w animacji hero */
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(/fonty/inter-latin.woff2) format("woff2"); unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, 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-weight: 100 900; font-display: swap; src: url(/fonty/inter-latin-ext.woff2) format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
    --tlo: #ffffff;
    --tlo-szare: #f3f3f1;
    --ciemny: #121212;
    --ciemny-2: #1f2226;
    --ciemny-3: #2b2f34;
    --zolty: #f5b800;
    --zolty-ciemny: #d9a300;
    --pomarancz: #ff8a00;
    --tekst: #1d1f22;
    --tekst-szary: #5c6166;
    --jasny-szary: #c9cdd1;
    --linia: #e2e2de;
    --akcent: #b37f00; /* przyciski trybu edycji */
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--tlo); color: var(--tekst); font: 400 17px/1.55 var(--font); -webkit-text-size-adjust: 100%; padding-bottom: 72px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; }
h1 { font-size: 38px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 12px; }

.w { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.w-waski { max-width: 760px; }
.zolty { color: var(--zolty); }
.tylko-szeroki { display: none; }
.ikona { width: 22px; height: 22px; flex: none; }

/* przyciski */
.przycisk { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; font-weight: 800; font-size: 17px; text-decoration: none; text-align: center; line-height: 1.2; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.przycisk-zolty { background: var(--zolty); color: var(--ciemny); }
.przycisk-zolty:hover { background: var(--zolty-ciemny); }
.przycisk-obrys { background: rgba(18, 18, 18, .55); color: var(--zolty); box-shadow: inset 0 0 0 2px var(--zolty); }
.przycisk-obrys:hover { background: rgba(245, 184, 0, .14); }
.przycisk-duzy { min-height: 56px; font-size: 18px; }
.przycisk-wa { background: #1f8f4e; color: #fff; }
.link-dalej { font-weight: 700; color: inherit; text-decoration-color: var(--zolty); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.link-dalej::after { content: " →"; }

/* nagłówek i menu */
.naglowek { position: sticky; top: 0; z-index: 40; background: var(--ciemny); color: #fff; border-bottom: 1px solid var(--ciemny-3); }
.naglowek-w { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; position: relative; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; white-space: nowrap; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.znak { width: 22px; height: 22px; background: var(--zolty); clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%); flex: none; }
.naglowek-tel { min-height: 42px; padding: 8px 14px; font-size: 16px; gap: 8px; }
.naglowek-tel .ikona { width: 18px; height: 18px; }
.menu-przycisk { width: 44px; height: 42px; border: 0; background: var(--ciemny-2); cursor: pointer; display: grid; place-items: center; padding: 0; }
.menu-przycisk span, .menu-przycisk span::before, .menu-przycisk span::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; content: ""; }
.menu-przycisk span::before { position: absolute; top: -6px; }
.menu-przycisk span::after { position: absolute; top: 6px; }
.menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ciemny); border-bottom: 1px solid var(--ciemny-3); padding: 8px 16px 16px; flex-direction: column; }
.menu-otwarte .menu { display: flex; }
.menu a { padding: 12px 0; border-bottom: 1px solid var(--ciemny-3); text-decoration: none; font-size: 18px; font-weight: 700; color: #fff; }
.menu a[aria-current="page"] { color: var(--zolty); }

/* hero z animacją */
.hero-film { position: relative; overflow: hidden; background: var(--ciemny); color: #fff; min-height: calc(100svh - 63px - 72px); min-height: 560px; height: calc(100svh - 135px); max-height: 860px; }
.film-etap { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.film-klip { position: absolute; inset: 0; transform-origin: 50% 50%; }
.film-klip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ciemny) url(/wideo/laweta-poster.jpg) center / cover; }
.film-tablica { position: absolute; display: none; align-items: center; justify-content: center; margin: 0; box-sizing: border-box; background: var(--zolty); border: 2px solid var(--ciemny); border-radius: 5px; color: var(--ciemny); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.film-cien { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 18, 18, .94) 0%, rgba(18, 18, 18, .6) 42%, rgba(18, 18, 18, .1) 70%), linear-gradient(180deg, rgba(18, 18, 18, .55), transparent 22%); }
.hero-film[data-scena="4"] .film-cien { background: rgba(18, 18, 18, .72); transition: background .6s; }
.film-tresc { position: absolute; inset: 0; max-width: 1200px; margin: 0 auto; padding: 18px 16px 24px; display: flex; flex-direction: column; }
.hero-dyzur { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 14px; color: #e3e6e8; background: rgba(18, 18, 18, .6); padding: 6px 12px; margin: 0; }
.kropka { width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47, 191, 113, .25); }
.film-napisy { position: relative; margin-top: auto; min-height: 250px; }
.film-napis { position: absolute; left: 0; right: 0; bottom: 0; visibility: hidden; }
.film-napis.aktywny { visibility: visible; }
.film-tag { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--zolty); margin: 0 0 10px; opacity: 0; transform: translateY(14px); }
.film-linie { margin: 0 0 10px; font-size: 46px; line-height: 1.02; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.film-linie span { display: block; opacity: 0; transform: translateY(26px); }
.film-linie .zolty { color: var(--zolty); }
.film-sub { font-size: 17px; color: #e3e6e8; max-width: 30em; margin: 0; opacity: 0; transform: translateY(14px); }
.film-napis.aktywny .film-tag, .film-napis.aktywny .film-linie span, .film-napis.aktywny .film-sub { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .7s cubic-bezier(.2, .8, .2, 1); }
.film-napis.aktywny .film-linie span:nth-child(1) { transition-delay: .15s; }
.film-napis.aktywny .film-linie span:nth-child(2) { transition-delay: .28s; }
.film-napis.aktywny .film-linie span:nth-child(3) { transition-delay: .41s; }
.film-napis.aktywny .film-sub { transition-delay: .8s; }
.hero-przyciski { display: grid; gap: 10px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) {
    .film-napis.aktywny .film-tag, .film-napis.aktywny .film-linie span, .film-napis.aktywny .film-sub { transition: none; }
}

.fakty { background: var(--ciemny); color: var(--jasny-szary); }
.fakty-w { list-style: none; margin: 0 auto; padding: 0 16px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fakty li { background: var(--ciemny-2); padding: 10px; font-size: 13px; line-height: 1.3; }
.fakty strong { display: block; color: var(--zolty); font-size: 20px; font-weight: 800; }

/* sekcje */
.sekcja { padding: 48px 0; }
.sekcja-szara { background: var(--tlo-szare); }
.sekcja-ciemna { background: var(--ciemny); color: #fff; }
.sekcja-gora { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.sekcja-gora h2 { margin: 0; }
.wstep { font-size: 18px; color: var(--tekst-szary); max-width: 40em; margin-bottom: 24px; }
.sekcja-ciemna .wstep { color: var(--jasny-szary); }
.h-male { font-size: 20px; }
.dwie-kolumny { display: grid; gap: 40px; }

.podstrona { background: var(--ciemny); color: #fff; padding: 36px 0 32px; border-bottom: 6px solid var(--zolty); }
.podstrona h1 { margin: 0; }
.podstrona-wstep { color: var(--jasny-szary); font-size: 18px; max-width: 40em; margin: 10px 0 0; }
.podstrona-wstep a { color: var(--zolty); }

/* kafle usług (strona główna) */
.kafle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kafle a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px; background: var(--tlo-szare); text-decoration: none; font-weight: 700; line-height: 1.25; }
.kafle a:hover { background: #ebebe7; }
.kafle .ikona { width: 30px; height: 30px; color: var(--zolty-ciemny); }

/* karty floty przewijane (strona główna) */
.przewijane { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.karta-mala { scroll-snap-align: start; background: var(--ciemny-2); text-decoration: none; display: flex; flex-direction: column; }
.karta-mala img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.karta-mala-tekst { padding: 12px 14px 16px; color: var(--jasny-szary); font-size: 15px; }
.karta-mala-tekst strong { display: block; color: #fff; font-size: 18px; margin-bottom: 4px; }

/* usługi */
.lista-uslug { display: grid; gap: 28px; }
.usluga { display: grid; gap: 14px; }
.usluga img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.usluga h2 { font-size: 24px; margin-bottom: 8px; }
.link-cennik { margin: 32px 0 0; }

/* flota */
.lista-flota { display: grid; gap: 24px; }
.auto { display: grid; gap: 14px; background: var(--tlo-szare); }
.auto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.auto-tekst { padding: 0 18px 18px; }
.auto h2 { font-size: 24px; margin-bottom: 8px; }
.galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.galeria img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.opis-html p { margin: 0 0 8px; }
.opis-html ul, .opis-html ol { margin: 0 0 8px; padding-left: 20px; }
.opis-html img { display: block; max-width: 100%; height: auto; margin: 10px 0; }

/* cennik */
.cennik { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--linia); }
.cennik li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linia); }
.cennik-nazwa { min-width: 0; }
.cennik-nazwa small { display: block; color: var(--tekst-szary); font-size: 14px; }
.cennik-cena { font-weight: 800; white-space: nowrap; }
.cennik-uwaga { color: var(--tekst-szary); font-size: 15px; }

/* obszar i mapa */
.miasta { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.miasta li { background: var(--tlo-szare); padding: 6px 14px; font-size: 15px; }
.miasta li:first-child { background: var(--zolty); font-weight: 700; }
.mapa-ramka { background: var(--ciemny); padding: 8px; }
.mapa { display: block; width: 100%; height: auto; }
.m-ring { fill: rgba(245, 184, 0, .16); stroke: var(--zolty); stroke-width: 1; }
.m-ring-duzy { fill: rgba(245, 184, 0, .05); stroke-dasharray: 3 3; }
.m-km { fill: var(--zolty); font-size: 7px; font-family: var(--font); }
.m-pkt { fill: #fff; }
.m-txt { fill: var(--jasny-szary); font-size: 7.5px; font-family: var(--font); }
.m-baza { fill: var(--zolty); stroke: var(--ciemny); stroke-width: 2; }
.m-baza-txt { fill: var(--zolty); font-size: 10px; font-weight: 800; font-family: var(--font); }

/* kontakt */
.kontakt-tel { display: block; font-size: 40px; font-weight: 800; color: var(--zolty); text-decoration: none; letter-spacing: -.02em; margin: 0 0 8px; }
.kontakt-karty { display: grid; gap: 12px; }
.kontakt-karta { display: grid; gap: 4px; padding: 20px; background: var(--tlo-szare); text-decoration: none; color: var(--tekst-szary); font-size: 15px; }
.kontakt-karta .ikona { width: 28px; height: 28px; color: var(--zolty-ciemny); margin-bottom: 6px; }
.kontakt-karta strong { font-size: 24px; color: var(--tekst); letter-spacing: -.02em; }
.kontakt-etykieta { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
a.kontakt-karta:hover { background: #ebebe7; }

/* usługi bez zdjęcia (kable, koło, paliwo) */
.usluga-bez-zdjecia { background: var(--tlo-szare); padding: 20px; align-self: start; }

/* akapity pod frazy (strona główna, obszar) */
.lista-tekstow { display: grid; gap: 28px; }
.lista-tekstow article { max-width: 46em; }
.lista-tekstow .opis-html a, .faq .opis-html a, .usluga .opis-html a { text-decoration-color: var(--zolty-ciemny); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* pytania i odpowiedzi */
.faq { max-width: 46em; border-top: 1px solid var(--linia); }
.faq-pozycja { border-bottom: 1px solid var(--linia); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; font-size: 18px; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: var(--zolty); color: var(--ciemny); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq .opis-html { padding: 0 0 16px; color: var(--tekst-szary); }

.cennik-h { margin-top: 32px; }
.lista-kroki { margin: 0 0 12px; padding-left: 20px; }
.lista-kroki li { margin-bottom: 6px; }

/* tekst (polityka) */
.tekst h2 { font-size: 21px; margin-top: 28px; }

/* stopka i pasek na telefonie */
.stopka { background: #0a0a0a; color: #a8adb2; font-size: 14px; padding: 32px 0; }
.stopka p { margin: 0 0 6px; }
.stopka a { color: #fff; }
.stopka-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.stopka-w { display: grid; gap: 20px; }
.stopka-menu { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.stopka-autor { grid-column: 1 / -1; border-top: 1px solid #222; padding-top: 14px; margin: 0; font-size: 13px; }
.pasek-dolny { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #0a0a0a; }
.pasek-dolny .przycisk { white-space: nowrap; font-size: 16px; padding: 12px 14px; gap: 8px; }
.pasek-dolny .przycisk-zolty { flex: 1; }
.pasek-dolny .ikona { width: 18px; height: 18px; }

@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .pasek-dolny { display: none; }
    .tylko-szeroki { display: inline; }
    .logo { font-size: 20px; gap: 10px; }
    h1 { font-size: 46px; }
    h2 { font-size: 36px; }
    .hero-film { height: calc(100svh - 63px); max-height: 900px; }
    .film-tresc { padding: 28px 24px 40px; }
    .film-napisy { min-height: 330px; }
    .film-linie { font-size: 76px; }
    .film-tag { font-size: 16px; }
    .film-sub { font-size: 20px; }
    .hero-przyciski { grid-template-columns: repeat(2, max-content); }
    .fakty-w { padding: 0 24px 24px; }
    .kafle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .przewijane { grid-auto-columns: 40%; }
    .lista-uslug { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
    .lista-flota { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .galeria { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kontakt-karty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sekcja { padding: 72px 0; }
    .podstrona { padding: 56px 0 48px; }
    .kontakt-tel { font-size: 56px; }
    .stopka-w { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 1024px) {
    .menu-przycisk { display: none; }
    .menu { display: flex; position: static; flex-direction: row; gap: 26px; padding: 0; margin-right: 12px; border: 0; background: none; }
    .menu a { padding: 0; border: 0; font-size: 16px; font-weight: 500; color: var(--jasny-szary); }
    .menu a:hover { color: #fff; }
    .menu a[aria-current="page"] { color: var(--zolty); }
    /* jak w filmie: napisy w lewej kolumnie, scena 2 na dole, scena 4 na środku */
    .film-cien { background: linear-gradient(90deg, rgba(18, 18, 18, .9) 0%, rgba(18, 18, 18, .6) 34%, transparent 62%), linear-gradient(0deg, rgba(18, 18, 18, .7), transparent 35%); }
    .film-napisy { min-height: 400px; }
    .film-linie { font-size: 100px; }
    .hero-film[data-scena="4"] .film-napis.aktywny { text-align: center; }
    .hero-film[data-scena="4"] .film-sub { margin: 0 auto; }
    .kafle { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .przewijane { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
    .dwie-kolumny { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
    .lista-uslug { gap: 56px 40px; }
    .lista-flota { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kontakt-karty { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lista-tekstow { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
}

/* tryb edycji (tylko po zalogowaniu przez ?edit) */
.cennik li.ed-pozycja { flex-wrap: wrap; }
.cennik .ed-pasek { flex-basis: 100%; }
.miasta li.ed-pozycja { display: flex; align-items: center; gap: 6px; }
.miasta .ed-pasek { margin: 0; }
