/* ==========================================================================
   FrostCar — arkusz stylów
   Kierunek: chłodna, czytelna "flota" — granat drogowy, lodowy błękit,
   bursztyn dla stanów "w trasie". Motyw rozpoznawczy: tablica rejestracyjna.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #10223a;
  --ink-2: #3d5470;
  --ink-3: #647a93;
  --frost: #eef3f8;
  --frost-2: #e2eaf2;
  --surface: #ffffff;
  --line: #d3dfea;
  --line-strong: #b5c6d6;
  --glacier: #0b6fb8;
  --glacier-ink: #ffffff;
  --glacier-hover: #095d9b;
  --glacier-soft: #e0eef9;
  --amber: #9a5b00;
  --amber-soft: #fff1d6;
  --amber-line: #f0c777;
  --green: #1d6b45;
  --green-soft: #e1f3e8;
  --red: #b42318;
  --red-soft: #fdeceb;
  --plate-blue: #1d4fb8;
  --shadow: 0 1px 2px rgba(16, 34, 58, .06), 0 8px 24px -12px rgba(16, 34, 58, .18);
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7eef6;
    --ink-2: #b4c4d6;
    --ink-3: #8aa0b7;
    --frost: #0d1928;
    --frost-2: #13233a;
    --surface: #142439;
    --line: #243a55;
    --line-strong: #345171;
    --glacier: #4fa8ea;
    --glacier-ink: #06192b;
    --glacier-hover: #73bcf1;
    --glacier-soft: #15324f;
    --amber: #f3b54d;
    --amber-soft: #3a2a0d;
    --amber-line: #6d4f17;
    --green: #6fd19c;
    --green-soft: #12342a;
    --red: #ff8a80;
    --red-soft: #3d1717;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* --- podstawy --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--frost);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--glacier); text-underline-offset: .18em; }
a:hover { color: var(--glacier-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.num { font-variant-numeric: tabular-nums; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--glacier); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--frost); padding: .6rem 1rem; border-radius: var(--radius-s); }
.skip:focus { top: 1rem; }

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 2rem); margin-inline: auto; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- logo + tablica rejestracyjna ------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-img { height: 2.25rem; width: auto; max-width: 9rem; object-fit: contain; }
.site-footer .logo-img, .side .logo-img { background: #fff; border-radius: 6px; padding: 3px; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.logo-word span { color: var(--glacier); }

.plate {
  display: inline-flex; align-items: stretch;
  border: 2px solid #10223a; border-radius: 5px; overflow: hidden;
  background: #fff; color: #10223a;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .08em; line-height: 1; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(16, 34, 58, .15);
}
.plate::before {
  content: "PL"; display: flex; align-items: flex-end; justify-content: center;
  background: var(--plate-blue); color: #fff; font-size: .55rem; letter-spacing: .02em;
  padding: .55rem .3rem .25rem; min-width: 1.35rem;
}
.plate span { padding: .38rem .55rem .32rem; }
.plate--lg { font-size: 1.25rem; }
.plate--lg span { padding: .5rem .75rem .42rem; }

/* --- przyciski i formularze ------------------------------------------- */
.btn {
  --b: var(--glacier); --bi: var(--glacier-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .6rem 1.1rem;
  border: 1.5px solid var(--b); border-radius: var(--radius);
  background: var(--b); color: var(--bi);
  font: 600 var(--step-0)/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { --b: var(--glacier-hover); color: var(--bi); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--frost-2); color: var(--ink); border-color: var(--line-strong); }
.btn--quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding-inline: .6rem; }
.btn--quiet:hover { background: var(--frost-2); color: var(--ink); border-color: transparent; }
.btn--danger { --b: var(--red); --bi: #fff; }
.btn--danger:hover { --b: #8f1b12; }
.btn--success { --b: var(--green); --bi: #fff; }
.btn--success:hover { --b: #15523a; }
.btn--sm { min-height: 2.1rem; padding: .35rem .7rem; font-size: var(--step--1); border-radius: var(--radius-s); }
.btn--block { width: 100%; }
.btn-icon { min-height: 2.25rem; width: 2.25rem; padding: 0; border-radius: var(--radius-s); background: transparent; border: 1px solid transparent; color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; }
.btn-icon:hover { background: var(--frost-2); color: var(--ink); }
.btn-icon--danger:hover { background: var(--red-soft); color: var(--red); }

.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field > span, .field-label { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: .8125rem; }
.input, .select, .textarea {
  width: 100%; min-height: 2.75rem; padding: .6rem .8rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font: 400 var(--step-0)/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.select { height: 2.75rem; padding-block: 0; }
.textarea { min-height: 6rem; resize: vertical; line-height: 1.55; }
.textarea--code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .875rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--glacier); box-shadow: 0 0 0 3px var(--glacier-soft); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .8; }
.input--code { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-weight: 600; }
.input--upper { text-transform: uppercase; }
.input-color { display: flex; gap: .5rem; align-items: center; }
.input-color input[type=color] { width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); padding: .2rem; cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: var(--step-0); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--glacier); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
legend { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); margin-bottom: .75rem; padding: 0; }
.fieldset-box { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.1rem 1.1rem .2rem; background: var(--frost); }
.fieldset-box legend { float: left; width: 100%; margin-bottom: .9rem; }
.fieldset-box legend + * { clear: both; }

.alert { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius); font-size: var(--step--1); margin-bottom: 1rem; border: 1px solid transparent; }
.alert .ico { margin-top: .1rem; }
.alert--error { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.alert--ok { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.alert--info { background: var(--glacier-soft); color: var(--ink); border-color: color-mix(in srgb, var(--glacier) 25%, transparent); }
.alert--warn { background: var(--amber-soft); color: var(--ink); border-color: var(--amber-line); }

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; white-space: nowrap; background: var(--frost-2); color: var(--ink-2); }
.badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.badge--active, .badge--rented { background: var(--amber-soft); color: var(--amber); }
.badge--done { background: var(--frost-2); color: var(--ink-3); }
.badge--free { background: var(--green-soft); color: var(--green); }
.badge--service { background: var(--red-soft); color: var(--red); }
.badge--plain::before { display: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); }

/* --- nagłówek i stopka serwisu --------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--frost) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: .5rem .75rem; border-radius: var(--radius-s); font-weight: 500; font-size: .9375rem; display: inline-flex; gap: .45rem; align-items: center; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--frost-2); color: var(--ink); }
.site-nav__phone { color: var(--ink) !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .site-nav a:not(.site-nav__phone) { display: none; }
  .logo-word { font-size: 1.15rem; }
  .logo-img { height: 1.9rem; }
}

.site-footer { background: var(--ink); color: #c9d6e4; margin-top: 4rem; padding: 3rem 0 1.5rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #08121e; } }
.site-footer .logo { color: #fff; }
.site-footer .logo-word { color: #fff; }
.site-footer .logo-word span { color: #7cc0f2; }
.site-footer__in { display: grid; grid-template-columns: 1.1fr 2fr; gap: 2.5rem; }
.site-footer__company { margin-top: 1rem; font-size: var(--step--1); line-height: 1.7; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.site-footer h2 { font-family: var(--font); font-size: var(--step--1); font-weight: 600; color: #fff; margin-bottom: .6rem; letter-spacing: 0; }
.site-footer p { font-size: var(--step--1); line-height: 1.9; }
.site-footer a { color: #c9d6e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2rem; padding-top: 1.25rem; font-size: .8125rem; color: #8ea3ba; }
@media (max-width: 820px) { .site-footer__in, .site-footer__cols { grid-template-columns: 1fr; } }

/* --- strona główna ----------------------------------------------------- */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 2.5rem; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } .hero__intro { display: contents; } .hero__grid > .login-card { order: 1; } .road { order: 2; } .hero__grid { gap: 1.25rem; } .hero h1 { font-size: var(--step-3); } .road { margin-top: 1.5rem; } }
.hero h1 { max-width: 15ch; margin-bottom: 1.1rem; }
.hero__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; line-height: 1.55; }

.road { position: relative; margin: 2.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0; max-width: 34rem; }
.road li { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding-bottom: 1.4rem; }
.road li:last-child { padding-bottom: 0; }
.road li::after { content: ""; position: absolute; left: calc(1.25rem - 1px); top: 2.6rem; bottom: .2rem; border-left: 2px dashed var(--line-strong); }
.road li:last-child::after { display: none; }
.road__n { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--ink); font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.road h3 { font-family: var(--font); font-size: var(--step-0); font-weight: 600; margin: .45rem 0 .15rem; letter-spacing: 0; }
.road p { margin: 0; color: var(--ink-2); font-size: .9375rem; }

.login-card { padding: clamp(1.25rem, 3vw, 2rem); position: relative; }
.login-card h2 { font-size: var(--step-2); margin-bottom: .35rem; }
.login-card__intro { color: var(--ink-2); margin-bottom: 1.25rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--frost); border-radius: var(--radius); padding: .25rem; margin-bottom: 1.25rem; gap: .25rem; }
.seg button { border: 0; background: transparent; border-radius: calc(var(--radius) - 3px); padding: .55rem .5rem; font: 600 .9375rem/1.2 var(--font); color: var(--ink-2); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 34, 58, .14); }
.login-card__foot { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-3); display: flex; gap: .5rem; align-items: flex-start; }
.login-card__foot .ico { margin-top: .15rem; color: var(--green); }
.otp-sent { font-size: var(--step--1); color: var(--ink-2); margin-bottom: 1rem; }
.linkish { background: none; border: 0; color: var(--glacier); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: .18em; }

.checklist { padding: 3.5rem 0 1rem; }
.checklist__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.checklist__head h2 { margin: 0; font-size: var(--step-3); }
.checklist__head p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.tip { padding: 1.25rem 1.25rem 1.25rem 0; }
.tip + .tip { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.tip .ico { width: 1.6rem; height: 1.6rem; color: var(--glacier); margin-bottom: .75rem; }
.tip h3 { font-family: var(--font); font-size: var(--step-0); font-weight: 600; letter-spacing: 0; margin-bottom: .35rem; }
.tip p { font-size: .9375rem; color: var(--ink-2); margin: 0; }
.tip strong { color: var(--ink); }
@media (max-width: 920px) {
  .tips { grid-template-columns: 1fr 1fr; }
  .tip:nth-child(3) { padding-left: 0; border-left: 0; }
  .tip:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .tips { grid-template-columns: 1fr; }
  .tip, .tip + .tip { padding-left: 0; border-left: 0; }
  .tip + .tip { border-top: 1px solid var(--line); }
}

/* --- portal najemcy --------------------------------------------------- */
.portal-head { padding: 2.5rem 0 1.5rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.portal-head h1 { font-size: var(--step-3); margin: 0 0 .25rem; }
.portal-head p { margin: 0; color: var(--ink-2); }
.section-title { display: flex; align-items: center; gap: .6rem; font-size: var(--step-1); margin: 2rem 0 1rem; }
.section-title .ico { color: var(--ink-3); }

.rental { padding: 0; overflow: hidden; margin-bottom: 1.25rem; }
.rental--active { border-color: var(--amber-line); }
.rental__top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.4rem; flex-wrap: wrap; }
.rental__car { display: grid; gap: .55rem; justify-items: start; }
.rental__model { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -.02em; line-height: 1.1; }
.rental__id { font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rental__money { text-align: right; }
.rental__money b { display: block; font-family: var(--font-display); font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.rental__money span { font-size: var(--step--1); color: var(--ink-3); }

.trip { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding: 1rem 1.4rem; background: var(--frost); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trip__pt small { display: block; font-size: .8125rem; color: var(--ink-3); }
.trip__pt b { font-variant-numeric: tabular-nums; font-weight: 600; }
.trip__pt:last-child { text-align: right; }
.trip__line { display: flex; align-items: center; gap: .5rem; color: var(--ink-3); font-size: .8125rem; white-space: nowrap; }
.trip__line::before, .trip__line::after { content: ""; width: clamp(1rem, 6vw, 4rem); border-top: 2px dashed var(--line-strong); }
@media (max-width: 560px) {
  .trip { grid-template-columns: 1fr 1fr; }
  .trip__line { display: none; }
}

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.25rem; padding: .25rem 1.4rem 1.1rem; }
.facts div { padding: .8rem 0; }
.facts dt { font-size: .8125rem; color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }

.protocols { border-top: 1px solid var(--line); }
.protocols > summary { list-style: none; cursor: pointer; padding: .95rem 1.4rem; display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--glacier); }
.protocols > summary::-webkit-details-marker { display: none; }
.protocols > summary .ico:last-child { margin-left: auto; transition: transform .2s; }
.protocols[open] > summary .ico:last-child { transform: rotate(90deg); }
.protocols__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; padding: 0 1.4rem 1.4rem; }

.proto { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--surface); }
.proto h4 { font-family: var(--font); font-size: var(--step-0); font-weight: 600; letter-spacing: 0; display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.proto--out h4 .ico { color: var(--glacier); }
.proto--in h4 .ico { color: var(--green); }
.proto dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 .75rem; font-size: .9375rem; }
.proto dt { color: var(--ink-3); }
.proto dd { margin: 0; font-weight: 500; }
.proto__note { font-size: .9375rem; background: var(--amber-soft); border-left: 3px solid var(--amber-line); padding: .6rem .8rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin-bottom: .75rem; white-space: pre-line; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.photos button, .photos a { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--frost-2); cursor: zoom-in; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos .photo-del { position: absolute; top: 3px; right: 3px; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 34, 58, .8); color: #fff; border: 0; cursor: pointer; }

.empty { text-align: center; padding: 2.25rem 1.25rem; color: var(--ink-2); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-l); background: var(--surface); }
.empty .ico { width: 2rem; height: 2rem; margin: 0 auto .75rem; color: var(--ink-3); }

/* --- okna dialogowe ---------------------------------------------------- */
dialog { border: 0; padding: 0; border-radius: var(--radius-l); background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px -12px rgba(8, 18, 30, .45); width: min(640px, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); }
dialog::backdrop { background: rgba(8, 18, 30, .55); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .18s ease-out; }
.dialog--wide { width: min(860px, calc(100% - 1.5rem)); }
.dialog--sm { width: min(440px, calc(100% - 1.5rem)); }
.dialog__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.dialog__head h2 { font-size: var(--step-1); margin: 0; }
.dialog__body { padding: 1.4rem; }
.dialog__foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; padding: 1rem 1.4rem; background: var(--surface); border-top: 1px solid var(--line); }
.dialog__foot .spacer { margin-right: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

.lightbox { width: min(1100px, calc(100% - 1rem)); background: #08121e; }
.lightbox img { max-height: calc(100dvh - 7rem); width: auto; margin: 0 auto; }
.lightbox .dialog__head { background: #08121e; color: #fff; border-color: rgba(255, 255, 255, .1); }
.lightbox .btn-icon { color: #fff; }
.lightbox .btn-icon:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lightbox__nav { display: flex; justify-content: space-between; padding: .75rem 1rem; color: #c9d6e4; align-items: center; }

/* --- powiadomienia ----------------------------------------------------- */
.toasts { position: fixed; z-index: 200; bottom: 1rem; right: 1rem; left: 1rem; display: grid; justify-items: end; gap: .5rem; pointer-events: none; }
.toast { pointer-events: auto; max-width: 28rem; display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius); background: var(--ink); color: var(--frost); box-shadow: var(--shadow); font-size: .9375rem; animation: pop .2s ease-out; }
.toast--error { background: var(--red); color: #fff; }
.toast .ico { margin-top: .1rem; }

/* --- dokumenty (regulamin, RODO) -------------------------------------- */
.doc-head { padding: 2.5rem 0 1.5rem; }
.doc-head h1 { font-size: var(--step-3); max-width: 24ch; }
.doc-head p { color: var(--ink-2); max-width: 60ch; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: var(--step--1); color: var(--ink-3); margin: 1rem 0 1.5rem; }
.doc-meta b { color: var(--ink); }
.doc-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.doc-toc { position: sticky; top: 5.5rem; font-size: var(--step--1); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.doc-toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--glacier); }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } .doc-toc { display: none; } }
.doc { padding: clamp(1.25rem, 3vw, 2.25rem); }
.doc section + section { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.doc h2 { display: flex; align-items: baseline; gap: .75rem; font-size: var(--step-2); }
.doc h2 .roman { font-family: var(--font-display); color: var(--glacier); font-size: var(--step-1); min-width: 2rem; }
.doc h3 { font-family: var(--font); font-size: var(--step-0); font-weight: 600; letter-spacing: 0; margin: 1.4rem 0 .35rem; }
.doc p, .doc li { max-width: 72ch; color: var(--ink-2); }
.doc p b, .doc li b { color: var(--ink); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .5rem; }
.callout { display: flex; gap: .9rem; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--amber-soft); border: 1px solid var(--amber-line); margin: 1.5rem 0 0; }
.callout .ico { width: 1.5rem; height: 1.5rem; color: var(--amber); margin-top: .1rem; }
.callout p { margin: 0; color: var(--ink); }
.amount { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.15rem; background: var(--frost); border-radius: var(--radius); margin-top: 1rem; }
.amount b { font-family: var(--font-display); font-size: var(--step-2); font-variant-numeric: tabular-nums; }

/* --- strona błędu ------------------------------------------------------ */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.error-page .plate { margin: 0 auto 1.5rem; }

/* ==========================================================================
   PANEL OBSŁUGI
   ========================================================================== */
.admin { min-height: 100dvh; }
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem 1rem; background: var(--frost); }
.auth-box { width: min(420px, 100%); padding: 2rem; }
.auth-box .logo { margin-bottom: 1.5rem; }
.auth-box h1 { font-size: var(--step-2); margin-bottom: .35rem; }
.auth-box > p { color: var(--ink-2); }

.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.side { background: var(--ink); color: #c9d6e4; display: flex; flex-direction: column; padding: 1.1rem .8rem; position: sticky; top: 0; height: 100dvh; }
@media (prefers-color-scheme: dark) { .side { background: #08121e; border-right: 1px solid var(--line); } }
.side .logo { color: #fff; padding: .25rem .5rem 1.25rem; }
.side .logo-word { color: #fff; font-size: 1.2rem; }
.side .logo-word span { color: #7cc0f2; }
.side nav { display: grid; gap: .2rem; }
.side nav button { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border: 0; border-radius: var(--radius-s); background: transparent; color: #c9d6e4; font: 500 .9375rem/1.2 var(--font); cursor: pointer; text-align: left; }
.side nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side nav button[aria-current="page"] { background: rgba(124, 192, 242, .16); color: #fff; }
.side nav button[aria-current="page"] .ico { color: #7cc0f2; }
.side nav .count { margin-left: auto; font-size: .75rem; background: rgba(255, 255, 255, .12); padding: .1rem .45rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.side__foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .1); padding: 1rem .5rem 0; font-size: .875rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.side__foot b { color: #fff; font-weight: 600; display: block; }
.side__foot .btn-icon { color: #c9d6e4; }
.side__foot .btn-icon:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.topbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  .shell[data-nav="open"] .side { transform: none; box-shadow: 0 0 0 100vmax rgba(8, 18, 30, .45); }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
}

.main { padding: clamp(1rem, 3vw, 2rem); min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { font-size: var(--step-3); margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--ink-2); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat { padding: 1.1rem 1.2rem; }
.stat small { display: block; font-size: var(--step--1); color: var(--ink-2); font-weight: 500; }
.stat b { display: block; font-family: var(--font-display); font-size: var(--step-3); font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: .3rem; }
.stat--warn { border-color: var(--amber-line); background: var(--amber-soft); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search .ico { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 2.4rem; }
.filters { display: flex; gap: .25rem; background: var(--frost-2); border-radius: var(--radius); padding: .25rem; }
.filters button { border: 0; background: transparent; border-radius: calc(var(--radius) - 3px); padding: .45rem .8rem; font: 600 .875rem/1.2 var(--font); color: var(--ink-2); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 34, 58, .14); }

.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.data th { text-align: left; font-size: .8125rem; font-weight: 600; color: var(--ink-3); padding: .75rem 1rem; background: var(--frost); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: color-mix(in srgb, var(--frost) 60%, transparent); }
table.data .actions { text-align: right; white-space: nowrap; }
table.data .actions > * { vertical-align: middle; }
table.data .actions > .btn { display: inline-flex; margin-inline: .15rem; }
table.data td.num:first-child { white-space: nowrap; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: .8125rem; color: var(--ink-3); margin-top: .15rem; }
.warn-dot { color: var(--amber); font-weight: 600; font-size: .8125rem; }

@media (max-width: 760px) {
  table.data.responsive thead { display: none; }
  table.data.responsive, table.data.responsive tbody, table.data.responsive tr, table.data.responsive td { display: block; width: 100%; }
  table.data.responsive tr { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
  table.data.responsive td { border: 0; padding: .2rem 0; }
  table.data.responsive td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--ink-3); }
  table.data.responsive .actions { text-align: left; padding-top: .5rem; }
}

.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.vehicle { padding: 1.15rem 1.2rem; display: grid; gap: .8rem; }
.vehicle__top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.vehicle h3 { font-size: var(--step-1); margin: 0; }
.vehicle dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: 0; font-size: .875rem; }
.vehicle dt { color: var(--ink-3); }
.vehicle dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-all; }
.vehicle__foot { display: flex; justify-content: flex-end; gap: .25rem; border-top: 1px solid var(--line); padding-top: .6rem; }

.settings { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 1100px) { .settings { grid-template-columns: 1fr; } }
.panel { padding: 1.4rem; margin-bottom: 1.5rem; }
.panel h2 { font-size: var(--step-1); display: flex; align-items: center; gap: .55rem; }
.panel h2 .ico { color: var(--glacier); }
.panel > p { color: var(--ink-2); font-size: .9375rem; }
.vars { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.vars button { border: 1px solid var(--line-strong); background: var(--frost); color: var(--ink); border-radius: var(--radius-s); font: 500 .8125rem/1 ui-monospace, Menlo, Consolas, monospace; padding: .4rem .5rem; cursor: pointer; }
.vars button:hover { border-color: var(--glacier); }
.preview-frame { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .08em; background: var(--frost); border: 1px dashed var(--line-strong); padding: .75rem 1rem; border-radius: var(--radius); word-break: break-all; margin-bottom: 1rem; }
.log { font-size: .8125rem; }
.log td { padding: .5rem .75rem !important; }

.equip { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; margin-bottom: 1rem; }
@media (max-width: 560px) { .equip { grid-template-columns: 1fr; } }
.calc { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--glacier-soft); margin: 0 0 1rem; }
.calc b { font-family: var(--font-display); font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.dropzone { display: grid; gap: .4rem; justify-items: start; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 1rem; background: var(--surface); }
.dropzone input { font: inherit; font-size: .875rem; max-width: 100%; }
.thumbs { display: flex; flex-wrap: wrap; gap: .4rem; }
.thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--line); }

/* --- druk -------------------------------------------------------------- */
@media print {
  :root { --frost: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --line: #bbb; }
  .site-header, .site-footer, .doc-actions, .doc-toc, .skip, .toasts { display: none !important; }
  .card { box-shadow: none; border: 0; }
  .doc-layout { display: block; }
  body { font-size: 11pt; }
  a { color: #000; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.photo-wrap { position: relative; display: block; aspect-ratio: 1; }
.photo-wrap > button:first-child { width: 100%; height: 100%; }
.photos .photo-del { aspect-ratio: auto; }

.brand-preview { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--frost); border: 1px solid var(--line); margin-bottom: 1rem; }
.brand-preview--dark { background: var(--ink); }
.brand-preview--dark .logo-word { color: #fff; }
.brand-preview--dark .logo-word span { color: #7cc0f2; }
.brand-preview--dark .logo-img { background: #fff; border-radius: 6px; padding: 3px; }
.brand-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.callout > div > p:last-child, .tip p p:last-child, .checklist__head p p { margin: 0; }

/* --- edytor treści ------------------------------------------------------ */
.cms { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 1000px) { .cms { grid-template-columns: 1fr; } }
.cms-groups { display: grid; gap: .25rem; position: sticky; top: 1rem; }
@media (max-width: 1000px) { .cms-groups { position: static; display: flex; flex-wrap: wrap; } }
.cms-groups button { display: flex; justify-content: space-between; align-items: center; gap: .5rem; text-align: left; border: 1px solid transparent; background: transparent; border-radius: var(--radius-s); padding: .6rem .8rem; font: 500 .9375rem/1.2 var(--font); color: var(--ink-2); cursor: pointer; }
.cms-groups button:hover { background: var(--frost-2); color: var(--ink); }
.cms-groups button[aria-current="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.cms-groups .count { font-size: .75rem; color: var(--amber); font-weight: 600; }
.cms-form { padding: 0; }
.cms-form__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--line); }
.cms-form__head h2 { font-size: var(--step-1); margin: 0 0 .2rem; }
.cms-form__head p { margin: 0; }
#cms-fields { padding: 1.25rem 1.4rem .25rem; }
.cms-field { margin-bottom: 1.4rem; }
.cms-field__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.cms-field__top label { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.cms-field__meta { display: flex; align-items: center; gap: .35rem; }
.cms-field small { color: var(--ink-3); font-size: .8125rem; display: block; margin-top: .3rem; }
.cms-field.is-changed .input, .cms-field.is-changed .textarea { border-left: 3px solid var(--amber-line); }
.cms-toolbar { display: flex; gap: .15rem; flex-wrap: wrap; padding: .3rem; border: 1.5px solid var(--line-strong); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--frost); }
.cms-toolbar button { border: 0; background: transparent; border-radius: var(--radius-s); padding: .35rem .5rem; color: var(--ink-2); cursor: pointer; font: 600 .8125rem/1 var(--font); display: inline-flex; align-items: center; gap: .3rem; }
.cms-toolbar button:hover { background: var(--surface); color: var(--ink); }
.cms-toolbar + .textarea { border-top-left-radius: 0; border-top-right-radius: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .875rem; }
.cms-preview { margin-top: .5rem; padding: .75rem .9rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: .9375rem; color: var(--ink-2); background: var(--surface); }
.cms-preview h3 { font-family: var(--font); font-size: 1rem; margin: .6rem 0 .25rem; }
.cms-preview p:last-child { margin-bottom: 0; }
.cms-form__foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding: 1rem 1.4rem; background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-l) var(--radius-l); }

/* --- przedłużenia ------------------------------------------------------- */
.ext-tag { color: var(--glacier); font-weight: 600; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 1.25rem; padding: .9rem 1rem; background: var(--frost); border-radius: var(--radius); font-size: .9375rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.quick-days { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: -.25rem 0 1rem; }
.small-title { font-family: var(--font); font-size: var(--step-0); font-weight: 600; letter-spacing: 0; margin: 1rem 0 .5rem; }
.ext-list { margin: 0 0 1rem; padding-left: 1.1rem; font-size: .9375rem; }
.ext-list li { margin-bottom: .3rem; }
.ext-note { display: flex; gap: .6rem; align-items: center; padding: .75rem 1.4rem; background: var(--glacier-soft); color: var(--ink); font-size: .9375rem; border-bottom: 1px solid var(--line); }
.ext-note .ico { color: var(--glacier); }

/* ==========================================================================
   NOWY UKŁAD STRONY (wynajem aut chłodniczych)
   ========================================================================== */
.btn--lg { min-height: 3.25rem; padding: .75rem 1.5rem; font-size: 1.0625rem; border-radius: 8px; }
.btn--dark { --b: var(--ink); --bi: var(--surface); }
.btn--dark:hover { --b: #1c3150; }
@media (prefers-color-scheme: dark) { .btn--dark { --b: #e7eef6; --bi: #0d1928; } .btn--dark:hover { --b: #ffffff; } }

/* pasek górny + nagłówek */
.topbar-site { background: #0d1b2a; color: #c3d0dd; font-size: .875rem; }
.topbar-site__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1.5rem; padding: .5rem 0; }
.topbar-site__links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.topbar-site a { color: #c3d0dd; text-decoration: none; }
.topbar-site a:hover, .topbar-site a[aria-current] { color: #ffffff; text-decoration: underline; }
.topbar-site__phone { color: #ffffff !important; font-weight: 600; }
.site-header { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.site-header__in { min-height: 4.75rem; }
.site-nav { gap: .15rem; }
.site-nav a { font-weight: 600; color: var(--ink); }
.site-header__cta { display: flex; align-items: center; gap: .5rem; }
.site-header__cta .site-nav__phone { display: none; width: 2.75rem; height: 2.75rem; border-radius: 8px; border: 1.5px solid var(--line-strong); align-items: center; justify-content: center; color: var(--ink); }
@media (max-width: 1000px) {
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .site-header__cta .site-nav__phone { display: inline-flex; }
  .site-header__cta .btn { padding-inline: .9rem; font-size: .9375rem; }
  .topbar-site__in > span:first-child { display: none; }
}
.site-footer { background: #0d1b2a; margin-top: 0; }
.site-footer__phone { color: #ffffff !important; font-weight: 700; font-size: 1.0625rem; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer__legal a { color: #8ea3ba; text-decoration: none; }
.site-footer__legal a:hover { color: #ffffff; }

/* hero */
.page--hp { background: var(--surface); }
.hp-hero { background: var(--frost); padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.hp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 960px) { .hp-hero__grid { grid-template-columns: 1fr; } }
.hp-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 1.25rem; max-width: 16ch; }
.hp-lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.75rem; }
.hp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.hp-facts { list-style: none; margin: 0; padding: 1.4rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid var(--line); }
.hp-facts b { display: block; }
.hp-facts span { color: var(--ink-3); font-size: .9375rem; }
@media (max-width: 480px) { .hp-facts { grid-template-columns: 1fr; } }
.hp-hero__media { position: relative; padding-bottom: 3.5rem; }
.hp-hero__img { display: block; width: 100%; height: 440px; object-fit: cover; border-radius: 16px; background: var(--frost-2); }
.hp-hero__img--empty { display: grid; place-items: center; background: #dfe7ee; }
@media (prefers-color-scheme: dark) { .hp-hero__img--empty { background: var(--frost-2); } }
.hp-snow { width: 6rem; height: 6rem; color: #9fb3c6; stroke-width: 1.2; }
@media (max-width: 960px) { .hp-hero__img { height: 300px; } }
.hp-temp { position: absolute; left: 1.25rem; bottom: 0; width: min(300px, calc(100% - 2.5rem)); background: #0d1b2a; color: #fff; border-radius: 14px; padding: 1.1rem 1.25rem; box-shadow: 0 24px 48px -16px rgba(13, 27, 42, .45); }
.hp-temp__top { display: flex; justify-content: space-between; font-size: .8125rem; color: #9fb2c6; margin-bottom: .3rem; }
.hp-temp__ok { color: #7fe0a8; display: inline-flex; align-items: center; gap: .35rem; }
.hp-temp__ok::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #7fe0a8; }
.hp-temp__value { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: #6fd3ff; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hp-temp__chart { display: block; width: 100%; height: 40px; margin: .5rem 0 .35rem; }
.hp-temp__base { stroke: #33465c; stroke-dasharray: 3 4; fill: none; }
.hp-temp__line { stroke: #6fd3ff; stroke-width: 2; fill: none; }
.hp-temp__cap { font-size: .8125rem; color: #9fb2c6; }

/* szybkie zapytanie */
.hp-quick-wrap { position: relative; top: 2.75rem; margin-top: -.5rem; }
.hp-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: .9rem; align-items: end; background: var(--surface); border-radius: 14px; padding: 1.25rem; box-shadow: 0 20px 50px -20px rgba(13, 27, 42, .35), 0 0 0 1px var(--line); }
.hp-quick .field { margin: 0; }
.hp-quick__note { grid-column: 1 / -1; margin: 0; color: var(--ink-3); }
.hp-quick__alert { grid-column: 1 / -1; margin: 0; }
@media (max-width: 960px) { .hp-quick { grid-template-columns: 1fr 1fr; } .hp-quick .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .hp-quick { grid-template-columns: 1fr; } }
.hp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* sekcje */
.hp-section { padding: clamp(4rem, 7vw, 5.5rem) 0; }
#flota.hp-section { padding-top: clamp(6rem, 9vw, 8rem); }
.hp-section--tint { background: var(--frost); }
.hp-section--dark { background: #0d1b2a; color: #ffffff; }
.hp-section h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); letter-spacing: -.02em; }
.hp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2.5rem; margin-bottom: 2.25rem; }
.hp-head > div { max-width: 40rem; }
.hp-head p { margin: 0; color: var(--ink-2); font-size: 1.125rem; }
.hp-head__note { color: var(--ink-3) !important; font-size: .9375rem !important; }

/* karty aut */
.hp-fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.5rem; }
.hp-car { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.hp-car.is-picked { border: 2px solid var(--glacier); box-shadow: 0 16px 40px -18px rgba(10, 100, 168, .45); }
.hp-car__media { position: relative; aspect-ratio: 16 / 10; background: var(--frost-2); border-bottom: 1px solid var(--line); }
.hp-car__media img { width: 100%; height: 100%; object-fit: cover; }
.hp-car__noimg { width: 100%; height: 100%; display: grid; place-items: center; }
.hp-avail { position: absolute; top: .9rem; left: .9rem; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 999px; background: #ffffff; color: #1d6b45; font-size: .8125rem; font-weight: 700; }
.hp-avail::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.hp-avail.is-busy { color: #9a5b00; }
.hp-car__body { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.4rem 1.4rem 1.5rem; flex: 1; }
.hp-car h3 { font-size: 1.5rem; margin: 0 0 .25rem; letter-spacing: -.01em; }
.hp-car__note { margin: 0; color: var(--ink-3); font-size: .9375rem; }
.hp-range__top { display: flex; justify-content: space-between; align-items: baseline; font-size: .875rem; font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; }
.hp-range__top b { color: var(--glacier); font-variant-numeric: tabular-nums; font-size: .9375rem; }
.hp-range__bar { display: block; width: 100%; height: 12px; }
.hp-range__track { fill: var(--frost-2); }
.hp-range__fill { fill: var(--glacier); }
.hp-range__zero { fill: var(--ink); }
.hp-range__scale { position: relative; height: 1.1rem; font-size: .75rem; color: var(--ink-3); margin-top: .3rem; font-variant-numeric: tabular-nums; }
.hp-range__scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.hp-range__scale span:nth-child(1) { left: 0; transform: none; }
.hp-range__scale span:nth-child(2) { left: 31.25%; }
.hp-range__scale span:nth-child(3) { left: 62.5%; }
.hp-range__scale span:nth-child(4) { right: 0; transform: none; }
.hp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; margin: 0; font-size: .9375rem; }
.hp-specs dt { color: var(--ink-3); }
.hp-specs dd { margin: 0; font-weight: 700; }
.hp-car__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.hp-price b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.hp-price span { color: var(--ink-3); font-weight: 600; font-size: .9375rem; }
.hp-price small { display: block; color: var(--ink-3); font-size: .875rem; margin-top: .25rem; }
.hp-price--ask { font-size: 1.15rem !important; }

/* branże */
.hp-segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hp-seg { background: var(--surface); padding: 1.75rem 1.6rem; }
.hp-seg__ico { width: 1.75rem; height: 1.75rem; color: var(--glacier); }
.hp-seg h3 { font-family: var(--font); font-size: 1.1875rem; font-weight: 700; letter-spacing: 0; margin: .9rem 0 .35rem; }
.hp-seg p { margin: 0; color: var(--ink-3); font-size: .9375rem; }

/* okres najmu */
.hp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.5rem; align-items: stretch; }
.hp-plan { position: relative; display: flex; flex-direction: column; gap: .85rem; border: 1px solid var(--line); border-radius: 14px; padding: 1.9rem 1.75rem; background: var(--surface); }
.hp-plan--featured { border: 2px solid var(--glacier); }
.hp-plan__badge { position: absolute; top: -.8rem; left: 1.5rem; background: var(--glacier); color: var(--glacier-ink); font-size: .8125rem; font-weight: 700; padding: .25rem .65rem; border-radius: 6px; }
.hp-plan h3 { font-size: 1.375rem; margin: 0; }
.hp-plan p { margin: 0; color: var(--ink-2); }
.hp-plan__list ul { margin: 0; padding-left: 1.2rem; color: var(--ink-2); font-size: .9375rem; display: grid; gap: .35rem; }
.hp-plan__price { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; }
.hp-plan__price span { font-family: var(--font); font-size: .9375rem; color: var(--ink-3); font-weight: 600; }

/* kroki */
.hp-section--dark h2 { color: #ffffff; margin-bottom: 2.5rem; }
.hp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 2rem; }
.hp-steps__n { display: block; color: #6fd3ff; font-weight: 700; font-size: .9375rem; margin-bottom: .8rem; font-variant-numeric: tabular-nums; }
.hp-steps h3 { color: #ffffff; font-family: var(--font); font-size: 1.25rem; font-weight: 700; letter-spacing: 0; margin-bottom: .45rem; }
.hp-steps p { color: #b5c4d3; margin: 0; }

/* FAQ + formularz */
.hp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .hp-split { grid-template-columns: 1fr; } }
.hp-faq { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.hp-faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.hp-faq summary { cursor: pointer; font-weight: 700; font-size: 1.125rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--ink-3); }
.hp-faq details[open] summary::after { content: "−"; }
.hp-faq details > div { color: var(--ink-2); margin-top: .6rem; }
.hp-faq details > div p:last-child { margin-bottom: 0; }
.hp-form { background: var(--frost); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2rem); }
.hp-form h2 { font-size: 1.75rem; margin-bottom: .35rem; }
.hp-form > p { color: var(--ink-2); }
.hp-form .check { margin-bottom: 1rem; }
.hp-form__alt { text-align: center; margin: .9rem 0 0; color: var(--ink-3); }
.hp-form__alt a { font-weight: 700; }

/* strona logowania (Strefa najemcy) */
.page--login .hero { padding-bottom: 4rem; }
.page:not(.page--hp) .site-footer { margin-top: 4rem; }
.car-photo { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.car-photo__preview { width: 200px; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--frost-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.car-photo__preview img { width: 100%; height: 100%; object-fit: cover; }
.car-photo__actions { display: grid; gap: .5rem; flex: 1; min-width: 200px; justify-items: start; }
.select--sm { height: 2.25rem; min-height: 2.25rem; font-size: .875rem; padding: 0 .5rem; width: auto; }
@media (max-width: 900px) { .hp-segs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hp-segs { grid-template-columns: 1fr; } }

/* ==========================================================================
   STRONA GŁÓWNA — wersja B (formularz w nagłówku)
   ========================================================================== */
.pre-line { white-space: pre-line; }
.site-header__cta { white-space: nowrap; }
.site-header--dark { position: relative; background: #0d1b2a; border-bottom-color: rgba(255, 255, 255, .08); backdrop-filter: none; }
.site-header--dark .logo, .site-header--dark .logo-word { color: #ffffff; }
.site-header--dark .logo-word span { color: #8fd0ff; }
.site-header--dark .logo-img { background: #fff; border-radius: 6px; padding: 3px; }
.site-header--dark .site-nav a { color: #c9d6e3; }
.site-header--dark .site-nav a:hover { background: rgba(255, 255, 255, .08); color: #ffffff; }
.topbar-site__links a { font-weight: 400; }

.hb-hero { background: #0d1b2a; color: #ffffff; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5.5rem); }
.hb-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 960px) { .hb-hero__grid { grid-template-columns: 1fr; } }
.hb-kicker { color: #8fd0ff; font-weight: 700; margin: 0 0 1rem; }
.hb-hero h1 { color: #ffffff; font-size: clamp(2.2rem, 1.3rem + 3vw, 3.75rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 1.25rem; max-width: 17ch; }
.hb-lead { color: #c9d6e3; font-size: 1.1875rem; max-width: 32rem; margin-bottom: 1.75rem; }
.hb-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; font-size: 1.0625rem; }
.hb-checks li { display: flex; gap: .7rem; align-items: center; }
.hb-checks .ico { color: #8fd0ff; width: 1.35rem; height: 1.35rem; stroke-width: 2.2; }

.hb-form { background: var(--surface); color: var(--ink); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5); }
.hb-form h2 { font-size: 1.5rem; margin: 0 0 .25rem; }
.hb-form__intro { color: var(--ink-2); font-size: .9375rem; margin-bottom: 1.1rem; }
.hb-form .field { margin-bottom: .85rem; }
.hb-form .field small { font-weight: 400; }
.hb-form .check { margin: .25rem 0 1rem; }
.hb-form__done { text-align: center; padding: 2rem .5rem; }
.hb-form__done-ico { width: 3rem; height: 3rem; color: var(--green); margin: 0 auto 1rem; stroke-width: 2.2; }
.hb-form__done p { color: var(--ink-2); }

.hb-section { padding: clamp(3.5rem, 7vw, 5rem) 0; }
.hb-section h2 { font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 2rem; }
.hb-section--tint { background: var(--frost); }
.hb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 760px) { .hb-steps { grid-template-columns: 1fr; } }
.hb-steps li { border-top: 3px solid var(--glacier); padding-top: 1.25rem; }
.hb-steps__n { display: block; color: var(--glacier); font-weight: 700; margin-bottom: .4rem; font-variant-numeric: tabular-nums; }
.hb-steps h3 { font-family: var(--font); font-size: 1.25rem; font-weight: 700; letter-spacing: 0; margin-bottom: .35rem; }
.hb-steps p { margin: 0; color: var(--ink-2); }
.hb-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 760px) { .hb-uses { grid-template-columns: 1fr; } }
.hb-use { background: var(--surface); border-radius: 14px; padding: 1.75rem; border: 1px solid var(--line); }
.hb-use h3 { font-family: var(--font); font-size: 1.25rem; font-weight: 700; letter-spacing: 0; margin-bottom: .4rem; }
.hb-use p { margin: 0; color: var(--ink-2); }
.hb-narrow { max-width: 820px; }
.hb-narrow .hp-faq { margin-top: 0; }
.hb-more { margin: 2rem 0 0; }

/* Obszar działania — podstrony powiatów i strona województwa */
.hb-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .875rem; color: #8ea4b9; margin-bottom: 1.5rem; }
.hb-crumbs a { color: #c9d6e3; text-decoration: none; }
.hb-crumbs a:hover { color: #ffffff; text-decoration: underline; }
.hb-section__lead { color: var(--ink-2); max-width: 46rem; margin: -1rem 0 1.5rem; }
.hb-subhead { font-family: var(--font); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 1.5rem 0 .6rem; }
.hb-towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hb-towns li a, .hb-towns--plain li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.hb-towns li a:hover { border-color: var(--glacier); color: var(--glacier); }
.hb-towns--plain li { font-weight: 500; color: var(--ink-2); min-height: 34px; }
.hb-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.hb-region { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.4rem; color: var(--ink); text-decoration: none; }
.hb-region:hover { border-color: var(--glacier); }
.hb-region h3 { font-family: var(--font); font-size: 1.125rem; font-weight: 700; letter-spacing: 0; margin: 0 0 .35rem; display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.hb-region h3 small { color: var(--ink-3); font-weight: 500; font-size: .8125rem; white-space: nowrap; }
.hb-region p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.hb-region__label { color: var(--ink-3); }
.site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer__cols { grid-template-columns: 1fr; } }
.site-header--dark .site-nav a[aria-current] { background: rgba(255, 255, 255, .12); color: #ffffff; }
