/* ==========================================================================
   Azja Motors — design layer 50: PAGES (owner: pages area). Plain, unlayered rules (they beat 00/10).
   Booking calendar (views/partials/booking-calendar.ejs, public/booking-calendar.js states), the booking modal,
   the contact form partial, the import cost calculator partial, and the derived pages: articles list, article
   detail, contact, order tracking, privacy policy, 404 and the private calculator gate.
   Values come from design-system/concept/concept.css (booking = concept "2. Booking", forms = "Lead /
   consultation", tiles = "5. Surfaces", steps = the process tiles). No concept page exists for the editorial
   pages: they are composed from the concept's page head, tiles, article cards, chips, prose and bands.
   ========================================================================== */

/* ---------- Page scaffolding (one section gap) ----------
   A page starts with .page-section (title block + its first content, head -> content = --head-gap).
   When the title block stands alone, the next .section's margin is the whole gap (no padding added). */
.page-section > .page-head:last-child { padding-bottom: 0; }
/* a page whose title block + content is the whole page (articles list, 404, calculator gate) ends like every other
   page: last content -> footer = one section gap + the footer's own inner padding (as concept listing / car) */
.page > .page-section:last-child { margin-bottom: var(--section); }
.page-head__eyebrow { margin-bottom: 14px; }
.page-head .link { justify-self: end; }
.page-head .link svg, .page-head__grid .link svg { width: 18px; height: 18px; }
@media (max-width: 767px) {
  .page-head .link { justify-self: start; }
}

/* ==========================================================================
   BOOKING CALENDAR — meta (black) | month calendar | hours, as the concept's .booking
   ========================================================================== */
.booking-anchor { height: 0; }
.booking { display: grid; grid-template-columns: minmax(240px, 3fr) minmax(0, 5fr) minmax(250px, 3.3fr); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }

/* meta column */
.booking__meta { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 2.4vw, 32px); background: var(--dark); color: var(--on-dark-muted); min-width: 0; }
.booking__logo { display: inline-flex; justify-self: start; align-self: flex-start; align-items: center; } /* concept: a plain logo (no link, no tap target) */
.booking__logo img { width: 128px; height: auto; filter: brightness(0) invert(1); }
.booking__facts div { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.booking__facts svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; color: var(--cherry-on-dark); }
.booking__facts dt { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.booking__facts dd { margin-top: 2px; font-weight: 600; line-height: 1.4; color: #fff; }
.booking__note { font-size: .9375rem; line-height: 1.55; padding-top: 14px; border-top: 1px solid var(--line-dark); margin-top: -8px; }
.booking__quick { display: grid; gap: 8px; margin-top: auto; }
.booking__quick p { font-size: .9375rem; font-weight: 600; color: #fff; }
.booking__quick a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: var(--r); background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px var(--line-dark); color: #fff; font-weight: 700; overflow-wrap: anywhere; transition: background-color var(--t-color) var(--ease-out); }
.booking__quick a:hover { background: rgb(255 255 255 / .13); }
.booking__quick svg { width: 20px; height: 20px; flex: none; color: var(--cherry-on-dark); }
.booking__quick small { display: block; font-size: .8125rem; font-weight: 500; color: var(--on-dark-muted); }
.booking__quick strong { font-weight: 700; }
.booking__quick-links { display: grid; gap: 8px; }

/* calendar + hours columns */
.booking__cal { padding: clamp(24px, 2.6vw, 36px); border-right: 1px solid var(--line); min-width: 0; }
.booking__slots { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 36px); min-width: 0; }
.booking__title { margin-top: 8px; font-size: 1.375rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.booking__lead { margin-top: 6px; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
/* the server's date labels start lower-case in pl / ru / uk ("poniedziałek, 5 października 2026"); the concept
   shows "Poniedziałek, 5 października" */
[data-booking-date-label]::first-letter, [data-booking-modal-selected-value]::first-letter { text-transform: uppercase; }
.cal { margin-top: 22px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal__month { min-width: 0; font-family: var(--serif); font-weight: 400; font-stretch: 75%; font-size: 1.875rem; line-height: 1.1; color: var(--ink); text-align: center; }
.cal__month::first-letter { text-transform: uppercase; }
.cal__head .icon-btn { box-shadow: inset 0 0 0 1px var(--line-input); }
.cal__head .icon-btn:hover { box-shadow: none; }
.cal__head .icon-btn:is([disabled], [aria-disabled="true"]) { opacity: .3; } /* aria-disabled: "previous month" at the current month (am-pages.js) */
/* weekday header + day grid: the concept's table (border-spacing 5px) as two 7-column grids */
.cal__weekdays, .cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 5px; }
.cal__weekdays { margin-top: 12px; padding: 5px 5px 0; }
.cal__weekdays > span { padding: 4px 0 6px; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-align: center; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.cal__days { row-gap: 5px; padding: 5px; }
/* while the first month loads the grid keeps its 5-row height (no shift) and shimmers */
.cal__days:empty { min-height: 270px; border-radius: 14px; background: linear-gradient(90deg, var(--tint) 0%, #F4EFE7 50%, var(--tint) 100%) 0 0 / 200% 100%; animation: am-shimmer 1.3s linear infinite; }
.booking:has([data-booking-error]:not([hidden])) .cal__days:empty { position: relative; animation: none; background: var(--panel); }
/* calendar unavailable: a quiet "calendar off" mark in the empty month (the message itself sits in the hours column) */
.booking:has([data-booking-error]:not([hidden])) .cal__days:empty::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; background: var(--line-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='2'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4M3 3l18 18'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='2'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4M3 3l18 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.zd-booking-day-spacer { display: block; }
.zd-booking-day {
  position: relative; display: grid; place-items: center; width: 100%; height: 48px; border-radius: 12px;
  background: var(--tint); color: var(--ink); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color var(--t-color) var(--ease-out), color var(--t-color) var(--ease-out), transform var(--t-fast) var(--ease-out); -webkit-tap-highlight-color: transparent;
}
.zd-booking-day:hover { background: #DED5C7; }
.zd-booking-day:active { transform: scale(.94); }
.zd-booking-day:disabled { background: transparent; color: #8A847B; font-weight: 400; cursor: default; }
.zd-booking-day:disabled:active { transform: none; }
.zd-booking-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--cherry); }
.zd-booking-day:is(.is-selected, [aria-pressed="true"], .is-pending) { background: var(--ink); color: #fff; }
.zd-booking-day:is(.is-selected, [aria-pressed="true"], .is-pending).is-today::after { background: #fff; }
/* while a newly picked day loads its hours, only that day is black (the previous pick goes back to a free day) */
.cal__days:has(.is-pending) .zd-booking-day:is(.is-selected, [aria-pressed="true"]):not(.is-pending) { background: var(--tint); color: var(--ink); }
.cal__days:has(.is-pending) .zd-booking-day:is(.is-selected, [aria-pressed="true"]):not(.is-pending).is-today::after { background: var(--cherry); }
.zd-booking-day:focus-visible { border-radius: 12px; }
.booking.is-busy .zd-booking-day:not(:disabled) { cursor: progress; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.cal__legend li { display: inline-flex; align-items: center; gap: 8px; }
.cal__legend i { width: 14px; height: 14px; border-radius: 4px; }
.cal__legend .is-free { background: var(--tint); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cal__legend .is-today { width: 6px; height: 6px; border-radius: 50%; background: var(--cherry); margin-inline: 4px; }
.cal__legend .is-off { box-shadow: inset 0 0 0 1px var(--line); }

/* hours */
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.zd-booking-slot {
  min-height: 46px; padding: 0; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-input);
  color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color var(--t-color) var(--ease-out), color var(--t-color) var(--ease-out), box-shadow var(--t-color), transform var(--t-fast); -webkit-tap-highlight-color: transparent;
}
.zd-booking-slot:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.zd-booking-slot:active { transform: scale(.96); }
.zd-booking-slot:is(.is-selected, [aria-pressed="true"]) { background: var(--ink); color: #fff; box-shadow: none; }
.slots--loading > span { display: block; min-height: 46px; border-radius: var(--pill); background: linear-gradient(90deg, var(--tint) 0%, #F4EFE7 50%, var(--tint) 100%) 0 0 / 200% 100%; animation: am-shimmer 1.3s linear infinite; }
.slots-empty { flex: 1 1 auto; display: grid; place-content: center; justify-items: center; gap: 10px; margin-top: 18px; min-height: 160px; padding: 28px 18px; border-radius: var(--r); background: var(--tint); color: var(--muted); text-align: center; font-size: .9375rem; line-height: 1.55; }
.slots-empty svg { width: 28px; height: 28px; color: var(--cherry); }
.slots-empty strong { color: var(--ink); font-size: 1rem; }
.slots-empty span { max-width: 34ch; }
/* states (booking-calendar.js): before a day is picked only the prompt shows; the "no free slots" box only
   after a day was picked; an error replaces the prompt */
.zd-booking-app-body:not(.is-day-picked) :is([data-booking-empty], [data-booking-slots]) { display: none; }
.zd-booking-app-body.is-day-picked .booking__prompt,
.booking:has([data-booking-error]:not([hidden])) .booking__prompt { display: none; }
.booking__error { display: flex; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--panel); box-shadow: inset 3px 0 0 var(--danger); color: var(--ink); font-size: .9375rem; font-weight: 600; line-height: 1.5; }
.booking__foot { margin-top: auto; padding-top: 22px; }
/* "Umów kontakt z doradcą" (owner 2026-10-25 ~21:50) and its translations are longer than the old "Umów konsultację":
   where the hours column is narrow (1100-1279 px, 768 px) the label goes to a balanced second line inside the pill
   instead of running past it (a little less side padding keeps it on one line wherever it can) */
.booking__foot .btn { white-space: normal; text-wrap: balance; -webkit-hyphens: manual; hyphens: manual; padding: 10px 20px; }
.booking__pick { margin-bottom: 12px; font-size: .9375rem; color: var(--muted); }
.booking__pick b { color: var(--ink); }
.booking__pick:has([data-booking-selected]:not([hidden])) .booking__pick-default { display: none; }
.booking .btn:disabled, .booking .btn[aria-disabled="true"] { opacity: 1; pointer-events: auto; cursor: not-allowed; background: #DCD5CA; color: #4A4640; transform: none; box-shadow: none; }

@media (max-width: 1279px) and (min-width: 1100px) {
  .booking { grid-template-columns: minmax(220px, 2.6fr) minmax(0, 5fr) minmax(230px, 3.2fr); }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  .booking { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .booking__meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
  .booking__logo, .booking__facts { grid-column: 1 / -1; }
  .booking__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  /* three narrow columns: a long one-word label ("ПРОДОЛЖИТЕЛЬНОСТЬ" at 768) breaks with a hyphen instead of running out */
  .booking__facts dt { hyphens: auto; overflow-wrap: break-word; }
  .booking__note { margin-top: 0; }
  .booking__quick { margin-top: 0; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .booking { grid-template-columns: minmax(0, 1fr); margin-inline: calc(-1 * var(--margin)); border-radius: 0; } /* full-bleed app: seven 44 px+ day cells even at 360 px */
  .booking__meta { order: 3; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px var(--margin) 28px; }
  .booking__cal { order: 1; padding: 24px 10px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .booking__slots { order: 2; padding: 24px var(--margin); }
  .cal__month { font-size: 1.5rem; }
  .booking__facts { grid-template-columns: minmax(0, 1fr); }
  .booking__facts div { padding: 11px 0; }
  .booking__cal > .eyebrow, .booking__cal > .booking__title, .booking__cal > .booking__lead, .cal__head, .cal__legend { margin-inline: calc(var(--margin) - 10px); }
  .cal__weekdays, .cal__days { column-gap: 2px; }
  .cal__weekdays { padding: 2px 2px 0; }
  .cal__days { row-gap: 2px; padding: 2px; }
  .cal__days:empty { min-height: 232px; }
  .cal__weekdays > span { font-size: .75rem; letter-spacing: 0; } /* PON. … NIEDZ. fits seven 44 px columns */
  .zd-booking-day { height: 44px; border-radius: 10px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- phones and tablets (< 1024 px): mobile-polish (owner 2026-10-26 "kalendarz na telefonie wygląda
   tragicznie"; desktop unchanged) ----------
   - the calendar's head: its title and the meeting in one line ("Połączenie telefoniczne · 30 min", .booking__brief)
   - the black facts column folded into a short light summary under the hours: the days and hours in one line, the
     phone and the e-mail as two compact pills (the logo, the note and the two facts the brief line carries are left
     out)
   - the chosen time and the button: a confirm bar under the hours that sticks to the bottom of the screen once a time
     is chosen (.booking clips without being a scroll container, so the bar can stick) */
.booking__brief { display: none; }
@media (max-width: 1023px) {
  .booking { overflow: clip; }
  .booking__brief { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .9375rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
  .booking__brief svg { width: 18px; height: 18px; flex: none; color: var(--cherry); }
  .cal__month { font-size: 1.5rem; }
  .cal__weekdays > span { font-size: .75rem; letter-spacing: 0; }
  /* the summary */
  .booking__meta.on-dark { order: 3; grid-column: 1 / -1; display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
    padding: 20px 24px 22px; background: var(--panel); color: var(--muted); border-top: 1px solid var(--line); }
  .booking__meta :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 5px rgb(255 255 255 / .9); }
  .booking__logo, .booking__note, .booking__facts > div:not(:nth-child(2)) { display: none; }
  .booking__facts { display: block; }
  .booking__facts div { display: flex; align-items: center; gap: 10px; padding: 0; border-top: 0; }
  .booking__facts svg { width: 20px; height: 20px; margin: 0; color: var(--cherry); }
  .booking__facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .booking__facts dd { margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.45; color: var(--ink); }
  .booking__facts dd br { display: none; }
  .booking__hours::before { content: "\00a0· "; }
  .booking__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; }
  .booking__quick p { font-size: .875rem; font-weight: 600; color: var(--muted); }
  .booking__quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
  .booking__quick a { gap: 10px; min-height: 44px; padding: 6px 18px 6px 14px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: .9375rem; overflow-wrap: normal; }
  .booking__quick a:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
  .booking__quick svg { width: 18px; height: 18px; color: var(--cherry); }
  .booking__quick small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .booking__quick strong { font-weight: 600; white-space: nowrap; }
  /* the hours column and its confirm bar */
  .booking__slots { padding: 24px 24px 0; }
  .booking__foot { order: 2; margin: auto -24px 0; padding: 16px 24px 20px; border-top: 1px solid var(--line); }
  /* 20 px of air between the last thing in the column (the prompt, the last row of hours) and the bar's rule, while
     the bar's margin-top: auto still pushes it to the column's foot (mobile-fix) */
  .booking__slots::after { content: ""; order: 1; flex: 0 0 20px; }
  .booking__pick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 12px; line-height: 1.4; }
  .booking__pick [data-booking-selected] { display: contents; }
  .booking__pick-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .booking__pick-colon { display: none; }
  .booking__pick b { font-size: 1rem; font-weight: 700; color: var(--ink); }
  .booking__pick b::first-letter { text-transform: uppercase; }
  .booking__foot .btn { min-height: 50px; }
  .booking:has([data-booking-selected]:not([hidden])) .booking__foot {
    position: sticky; bottom: 0; z-index: 2; padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .9); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    animation: bk-bar-in 320ms var(--ease-settle);
  }
  /* the lift shadow only while the bar is stuck to the screen's foot (booking-calendar.js toggles .is-stuck); in its
     own place under the hours it would smudge the last row */
  .booking:has([data-booking-selected]:not([hidden])) .booking__foot.is-stuck { box-shadow: 0 -18px 32px -26px rgb(26 25 23 / .45); }
  /* the sheet's "Zmień termin": the 1 px rule ~3 px under its glyphs, not at the foot of its 44 px tap box */
  .slot-summary .link { background-position: 0 calc(50% + .85em); padding-bottom: 0; }
}
/* tablets upright (768-1023): the month and the short summary under it in the left column, the hours beside both
   (the summary fills what was ~170 px of empty white under the legend); 14 px side padding and 3 px gaps give
   44 px+ day cells, the head and the legend stay on the 24 px line (mobile-fix) */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .booking { grid-template-rows: auto 1fr; }
  .booking__cal { grid-column: 1; grid-row: 1; padding-inline: 14px; }
  .cal__weekdays, .cal__days { column-gap: 3px; padding-inline: 3px; }
  .booking__cal > .eyebrow, .booking__cal > .booking__title, .booking__cal > .booking__brief, .booking__cal > .booking__lead, .cal__head, .cal__legend { margin-inline: 10px; }
  .booking__slots { grid-column: 2; grid-row: 1 / span 2; }
  .booking__meta.on-dark { grid-column: 1; grid-row: 2; flex-direction: column; align-items: stretch; border-right: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .booking { border-radius: 0; }
  /* the calendar's head: the title and the meeting line (the section head above already says "Kalendarz") */
  .booking__cal { padding: 22px 10px 16px; }
  .booking__cal > .eyebrow, .booking__cal > .booking__lead { display: none; }
  .booking__cal > .booking__title { margin-top: 0; font-size: 1.25rem; }
  .booking__cal > .booking__brief { margin-inline: calc(var(--margin) - 10px); }
  .cal { margin-top: 18px; }
  .cal__month { font-size: 1.375rem; }
  .cal__head .icon-btn { width: 44px; height: 44px; }
  .cal__legend { margin-top: 14px; gap: 6px 16px; }
  /* the hours */
  .booking__slots { padding: 22px var(--margin) 0; }
  .booking__slots > .booking__title { font-size: 1.25rem; }
  .slots { gap: 8px; margin-top: 16px; }
  .zd-booking-slot { min-height: 48px; font-size: 1rem; }
  .slots--loading > span { min-height: 48px; }
  .slots-empty { min-height: 0; margin-top: 16px; padding: 20px 16px; }
  .booking__prompt { grid-template-columns: auto minmax(0, 1fr); justify-content: start; justify-items: start; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; }
  .booking__prompt svg { width: 22px; height: 22px; }
  .booking__error { margin-top: 16px; }
  .booking__foot { margin-inline: calc(-1 * var(--margin)); padding: 14px var(--margin) 18px; }
  .booking:has([data-booking-selected]:not([hidden])) .booking__foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  /* the summary: one column */
  .booking__meta.on-dark { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px var(--margin) 24px; }
  .booking__quick { display: grid; gap: 10px; }
  .booking__quick a { flex: 1 1 auto; }
}
/* phones held sideways: the calendar's head as on an upright phone, the days a little lower, the confirm bar only the
   button (the chosen hour is lit right above it and the date heads the column; the line stays for screen readers) */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 520px) {
  .booking__pick { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .booking__foot { padding-top: 12px; }
  .booking__cal > .eyebrow, .booking__cal > .booking__lead { display: none; }
  .booking__cal > .booking__title { margin-top: 0; }
  .cal { margin-top: 16px; }
  .zd-booking-day { height: 44px; }
  .cal__days:empty { min-height: 232px; }
}
@keyframes bk-bar-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Booking modal (moved to <body> by booking-calendar.js: no ancestor selectors) ----------
   [hidden] until opened; .is-visible one frame later; closed = .is-visible removed, [hidden] after 180 ms.
   Desktop: centred card. Phones: bottom sheet (drag the handle down to close, am-pages.js). */
.bk-modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 24px; }
.bk-modal__scrim { position: absolute; inset: 0; background: rgb(17 17 17 / .5); opacity: 0; transition: opacity 180ms var(--ease-out); }
.bk-modal.is-visible .bk-modal__scrim { opacity: 1; animation: bk-fade-in 300ms var(--ease-out); }
.bk-modal__panel {
  position: relative; display: flex; flex-direction: column; width: min(620px, 100%); max-height: min(860px, calc(100dvh - 48px));
  background: var(--surface); color: var(--body); border-radius: var(--r-sheet); box-shadow: var(--shadow-float);
  opacity: 0; transform: scale(.96) translateY(8px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.bk-modal.is-visible .bk-modal__panel { opacity: 1; transform: none; animation: bk-panel-in 300ms var(--ease-settle); }
.bk-modal__panel:focus { outline: none; }
.bk-modal__grab { display: none; }
.bk-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 14px 26px; }
.bk-modal__head .eyebrow { margin-bottom: 6px; }
.bk-modal__title { font-family: var(--serif); font-weight: 400; font-stretch: 75%; font-size: 1.5rem; line-height: 1.18; letter-spacing: -0.005em; color: var(--ink); }
.bk-modal__body { padding: 4px 26px 26px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.bk-modal .form-card { padding: 0; background: none; border-radius: 0; }
.bk-form__title { margin-top: 20px; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; }
.bk-modal .form-card > p { margin-top: 4px; }
.bk-modal .form-grid { margin-top: 18px; }
.bk-modal .form-actions .btn { min-width: 220px; }
.slot-summary { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; margin-top: 18px; padding: 12px 12px 12px 16px; border-radius: var(--r); background: var(--dark); color: #fff; }
.slot-summary svg { width: 24px; height: 24px; color: var(--cherry-on-dark); }
.slot-summary b { display: block; font-size: 1.0625rem; line-height: 1.35; }
.slot-summary__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.slot-summary__meta { display: block; font-size: .875rem; color: var(--on-dark-muted); }
.slot-summary .link { color: #fff; font-size: .9375rem; }
.slot-summary .link:hover { color: var(--cherry-on-dark); }
.slot-summary .link:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px rgb(0 0 0 / .55); }
.form-feedback { grid-column: 1 / -1; padding: 14px 18px; border-radius: var(--r); background: var(--panel); color: var(--ink); font-weight: 600; line-height: 1.5; box-shadow: inset 3px 0 0 var(--line-strong); }
.form-feedback:empty { display: none; }
.form-feedback.is-success { box-shadow: inset 3px 0 0 var(--ok); }
.form-feedback.is-error { box-shadow: inset 3px 0 0 var(--danger); }
@keyframes bk-fade-in { from { opacity: 0; } }
@keyframes bk-panel-in { from { opacity: 0; transform: scale(.96) translateY(8px); } }
@keyframes bk-sheet-in { from { transform: translateY(100%); } }
@media (max-width: 767px) {
  .bk-modal { padding: 0; align-items: end; }
  .bk-modal__panel { width: 100%; max-height: 92dvh; border-radius: var(--r-sheet) var(--r-sheet) 0 0; opacity: 1; transform: translateY(100%); transition: transform 180ms var(--ease-out); }
  .bk-modal.is-visible .bk-modal__panel { transform: none; animation: bk-sheet-in 360ms var(--ease-settle); }
  .bk-modal__panel.is-dragging { transition: none; animation: none; }
  .bk-modal__grab { display: block; position: relative; flex: none; height: 22px; cursor: grab; touch-action: none; }
  .bk-modal__grab::after { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-strong); }
  .bk-modal__head { padding: 4px 16px 12px 20px; touch-action: none; }
  .bk-modal__body { padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); }
  .bk-modal .form-actions .btn { width: 100%; }
  .slot-summary { grid-template-columns: 24px minmax(0, 1fr); }
  .slot-summary .link { grid-column: 2; justify-self: start; }
}
/* phones (and phones held sideways): a compact sheet (mobile-polish, owner 2026-10-26): the chosen time as a short
   card ("Zmień termin" beside its label), tighter copy and fields, the confirm button pinned to the sheet's foot */
@media (max-width: 767px), (max-width: 1023px) and (orientation: landscape) and (max-height: 520px) {
  .bk-modal__title { font-size: 1.375rem; }
  .slot-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; margin-top: 14px; padding: 6px 8px 12px 16px; }
  .slot-summary > svg { display: none; }
  .slot-summary > div { display: contents; }
  .slot-summary__label { grid-column: 1; grid-row: 1; align-self: center; }
  .slot-summary .link { grid-column: 2; grid-row: 1; justify-self: end; margin-right: 8px; font-size: .875rem; }
  .slot-summary b { grid-column: 1 / -1; font-size: 1rem; }
  .slot-summary__meta { grid-column: 1 / -1; margin-top: 2px; font-size: .8125rem; }
  .bk-form__title { margin-top: 18px; font-size: 1rem; }
  .bk-modal .form-card > p:not(.eyebrow) { font-size: .875rem; line-height: 1.5; }
  .bk-modal .form-grid { gap: 14px; margin-top: 14px; }
  .bk-modal .form-actions .btn { width: 100%; }
}
/* upright phones: the confirm button stays at the sheet's foot while the fields scroll (sideways the screen is too low).
   The body has no bottom padding (the bar's own padding gives the space), so the bar sits on the sheet's edge while
   the fields scroll and stays there at the end of the scroll instead of lifting 24 px off it (mobile-fix) */
@media (max-width: 767px) and (min-height: 521px) {
  .bk-modal__body { padding-bottom: 0; }
  .bk-modal .form-actions { position: sticky; bottom: 0; z-index: 1; margin-inline: -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -1px 0 var(--line); }
  .bk-modal .form-feedback { margin-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
/* tablets (768-1023, not held low sideways): the same pinned confirm button, full width; the sheet is shorter than its
   form at 768x1024, where the button was cut to a 3 px sliver by the sheet's foot (mobile-fix). Desktop unchanged */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 521px) {
  .bk-modal__body { padding-bottom: 0; }
  .bk-modal .form-actions { position: sticky; bottom: 0; z-index: 1; margin-inline: -26px; padding: 14px 26px 18px; background: var(--surface); box-shadow: 0 -1px 0 var(--line); border-radius: 0 0 var(--r-sheet) var(--r-sheet); }
  .bk-modal .form-actions .btn { width: 100%; }
  .bk-modal .form-feedback { margin-bottom: 18px; }
}
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 520px) {
  .bk-modal { padding: 8px; }
  .bk-modal__panel { max-height: calc(100dvh - 16px); }
  .bk-modal__head { padding: 14px 16px 10px 20px; }
  .bk-modal__body { padding: 4px 20px 16px; }
}

/* ==========================================================================
   CONTACT FORM (partials/contact-form.ejs) — concept form card
   ========================================================================== */
.contact-form { min-width: 0; }
.contact-form__title { font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.contact-form__alert { margin-top: 18px; }
.contact-form .form-actions .btn { min-width: 220px; }
@media (max-width: 767px) { .contact-form .form-actions .btn { width: 100%; } }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); align-items: end; gap: 28px var(--gutter); margin-top: 18px; }
.contact-hero__copy h1 { text-wrap: balance; }
.contact-hero__copy .t-lead { margin-top: 14px; max-width: 56ch; }
.contact-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-direct { display: grid; gap: 8px; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark-muted); }
.contact-direct p { margin-top: 0; max-width: none; color: var(--on-dark-muted); } /* .page-head p (components layer) must not reach the black tile */
.contact-direct .eyebrow { margin-bottom: 6px; }
.contact-direct__row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: var(--r); background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px var(--line-dark); color: #fff; font-weight: 700; overflow-wrap: anywhere; transition: background-color var(--t-color) var(--ease-out); }
.contact-direct__row:hover { background: rgb(255 255 255 / .13); }
.contact-direct svg { width: 20px; height: 20px; flex: none; color: var(--cherry-on-dark); }
.contact-direct__hours { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 14px 0; font-size: .9375rem; }
/* three ways to reach us = the concept's process step tiles */
.contact-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-path { position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px 24px 26px; border-radius: var(--r); background: var(--surface); color: var(--body); transition: box-shadow 280ms var(--ease-out), transform var(--t-fast) var(--ease-out); }
.contact-path:hover { box-shadow: var(--shadow-card-hover); }
.contact-path:active { transform: scale(.99); }
.contact-path__num { font-family: var(--serif); font-stretch: 75%; font-size: 3.5rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.contact-path__num::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--cherry); vertical-align: top; transform: translateY(8px); }
.contact-path strong { margin-top: 16px; font-size: 1.125rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.contact-path p { margin-top: 6px; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.contact-path__arrow { display: inline-grid; place-items: center; align-self: flex-start; width: 44px; height: 44px; margin-top: auto; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: background-color var(--t-color), color var(--t-color), box-shadow var(--t-color); }
.contact-path p + .contact-path__arrow { margin-top: 18px; }
.contact-path:hover .contact-path__arrow { background: var(--ink); color: #fff; box-shadow: none; }
.contact-path__arrow svg { width: 20px; height: 20px; }
/* message section: copy + steps | form card */
.contact-form-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px var(--gutter); align-items: start; }
.contact-form-copy__lead { margin-top: 14px; max-width: 46ch; color: var(--muted); }
.contact-steps { display: grid; gap: 12px; margin-top: 28px; }
.contact-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; border-radius: var(--r); background: var(--surface); }
.contact-steps__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--serif); font-stretch: 75%; font-size: 1.375rem; line-height: 1; }
.contact-steps strong { display: block; font-weight: 700; line-height: 1.4; color: var(--ink); }
.contact-steps p { margin-top: 4px; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 1099px) {
  .contact-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .contact-paths { grid-template-columns: minmax(0, 1fr); }
  .contact-path { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 20px; align-items: center; }
  .contact-path__num { grid-row: span 2; font-size: 2.75rem; }
  .contact-path strong { margin-top: 0; }
  .contact-path p { grid-column: 2; }
  .contact-path__arrow, .contact-path p + .contact-path__arrow { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; align-self: center; }
  .contact-form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .contact-hero__actions .btn { flex: 1 1 100%; }
  .contact-path { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .contact-path__num { grid-row: auto; font-size: 2.25rem; }
  .contact-path strong { grid-column: 2; grid-row: 1; }
  .contact-path p { grid-column: 1 / -1; margin-top: 10px; }
  .contact-path__arrow, .contact-path p + .contact-path__arrow { display: none; }
}

/* ==========================================================================
   ARTICLES LIST
   ========================================================================== */
.feature-article { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; transition: box-shadow 280ms var(--ease-out); }
.feature-article:hover { box-shadow: var(--shadow-card-hover); }
.feature-article__media { position: relative; aspect-ratio: 16 / 10; min-height: 100%; background: var(--panel); overflow: hidden; }
.feature-article__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-expand); }
.feature-article:hover .feature-article__media img { transform: scale(1.03); }
.feature-article__placeholder, .article__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-stretch: 75%; font-size: 2rem; color: var(--muted); }
.feature-article__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3.4vw, 48px); min-width: 0; }
.feature-article__title { margin-top: 14px; text-wrap: balance; }
.feature-article__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature-article:has(.feature-article__title a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.feature-article__title a:focus-visible { outline: none; box-shadow: none; }
.feature-article__excerpt { margin-top: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feature-article .article__meta { margin-top: 18px; }
.feature-article__more { margin-top: 18px; align-self: flex-start; }
/* categories: chips with counts, one scrollable row on phones */
.article-cats { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: var(--head-gap); }
.article-cats__list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.article-cat { gap: 10px; }
.article-cat__count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: var(--pill); background: var(--panel); color: var(--muted); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color var(--t-color), color var(--t-color); }
.article-cat:hover .article-cat__count, .article-cat.is-active .article-cat__count { background: rgb(255 255 255 / .16); color: #fff; }
.article-cat.is-empty:not(.is-active) { color: var(--muted); }
.article-cats__sort { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.article-cats__sort::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cherry); }
/* the feed: concept article tiles in a 3 / 2 / 1 column grid (all tiles shown at every width) */
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 24px; }
.article-grid .article:has(h3 a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.article-grid .article h3 a:focus-visible { outline: none; box-shadow: none; }
.article__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.article__tags li, .tag-list li { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--pill); background: var(--panel); color: var(--body); font-size: .8125rem; font-weight: 600; }
.articles-empty { margin-top: 0; }
.articles-empty .link { margin-top: 12px; }
/* topic cards (categories without articles yet; privacy key facts) */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.topic-grid--static { margin-top: 0; }
.topic-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px 24px 26px; border-radius: var(--r); background: var(--surface); color: var(--body); }
a.topic-card { transition: box-shadow 280ms var(--ease-out); }
a.topic-card:hover { box-shadow: var(--shadow-card-hover); }
.topic-card__count { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cherry); }
.topic-card__title { margin-top: 12px; font-size: 1.25rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.topic-card .eyebrow + .topic-card__title { margin-top: 12px; }
.topic-card p:not(.eyebrow) { margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.topic-card__arrow { display: inline-grid; place-items: center; align-self: flex-start; width: 44px; height: 44px; margin-top: auto; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: background-color var(--t-color), color var(--t-color); }
.topic-card p + .topic-card__arrow { margin-top: 18px; }
a.topic-card:hover .topic-card__arrow { background: var(--ink); color: #fff; box-shadow: none; }
.topic-card__arrow svg { width: 20px; height: 20px; }
@media (max-width: 1099px) {
  .feature-article { grid-template-columns: minmax(0, 1fr); }
  .feature-article__media { min-height: 0; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-cats { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .article-grid, .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .article-cats__list { flex-wrap: nowrap; width: calc(100% + 2 * var(--margin)); margin-inline: calc(-1 * var(--margin)); padding: 2px var(--margin) 6px; overflow-x: auto; scroll-padding-inline: var(--margin); scrollbar-width: none; }
  .article-cats__list::-webkit-scrollbar { display: none; }
  .article-cats__list > li { flex: none; }
}

/* ==========================================================================
   ARTICLE DETAIL — reading column (~680 px) + sticky aside
   ========================================================================== */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px clamp(32px, 5vw, 96px); align-items: start; padding-top: clamp(24px, 3vw, 40px); }
.article-main { min-width: 0; }
.article-head { max-width: 780px; }
.article-head__title { margin-top: 18px; text-wrap: balance; }
.article-head__lead { margin-top: 18px; max-width: 62ch; }
.article-head__meta { margin-top: 18px; font-size: .875rem; }
.article-cover { position: relative; margin-top: var(--head-gap); aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 680px; margin-top: var(--head-gap); }
.article-body > :first-child { margin-top: 0; }
.article-body :is(h2, h3)[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.article-body img { height: auto; }
/* tables inside articles: the view wraps each one in div.table-scroll[role=region][tabindex=0] (component .table-scroll:
   scroll box, focus ring). In the article it is a 12 px tile, and a table wider than the column (phones) shows a soft
   shadow on the side that still has content: the white "local" covers scroll with the content and hide the "scroll"
   shadows at either end (no script, no layout change) */
.article-body .table-scroll {
  border-radius: var(--r);
  background:
    linear-gradient(to right, var(--surface) 30%, rgb(255 255 255 / 0)) left center / 48px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, rgb(255 255 255 / 0)) right center / 48px 100% no-repeat local,
    linear-gradient(to right, rgb(26 25 23 / .13), rgb(26 25 23 / 0)) left center / 14px 100% no-repeat scroll,
    linear-gradient(to left, rgb(26 25 23 / .13), rgb(26 25 23 / 0)) right center / 14px 100% no-repeat scroll,
    var(--surface);
}
.article-body .table-scroll table { min-width: 560px; }
.article-body .table-scroll thead th { background: var(--panel); }
/* the aside runs the full height of the article; only the table of contents (last card) stays in view */
.article-aside { align-self: stretch; min-width: 0; }
.article-aside__stack { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.article-aside .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; transition: top var(--t-panel) var(--ease-settle), max-height var(--t-panel) var(--ease-settle); }
html.header-hidden .article-aside .toc { top: 24px; max-height: calc(100vh - 48px); }
.aside-card { padding: 24px; border-radius: var(--r-lg); background: var(--surface); }
.aside-card__title { margin-bottom: 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc__list { display: grid; gap: 2px; counter-reset: none; }
.toc__list li.is-subsection { padding-left: 18px; }
.toc__list a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: baseline; min-height: 44px; padding: 10px 10px; border-radius: 10px; font-size: .9375rem; font-weight: 500; line-height: 1.4; color: var(--body); transition: background-color var(--t-color), color var(--t-color); }
.toc__list a:hover { background: var(--panel); color: var(--ink); }
.toc__list a.is-current { background: var(--ink); color: #fff; }
.toc__list a.is-current .toc__num { color: var(--cherry-on-dark); }
.toc__num { font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--cherry); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
/* the help bands under an article and on the tracking page are the concept's .more-band (listing), unchanged */
.article-layout:not(:has(> .article-aside)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1099px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  /* one column under the article, as wide as the text: contents first, then the related topics */
  .article-aside { max-width: 720px; }
  .article-aside__stack { height: auto; }
  .article-aside .toc { order: -1; position: static; max-height: none; overflow: visible; }
  .article-body { max-width: 720px; }
}
@media (max-width: 767px) {
  .article-cover { aspect-ratio: 4 / 3; border-radius: var(--r); }
}

/* ==========================================================================
   ORDER TRACKING (/obsluga-klienta, /sledz-dostawe)
   ========================================================================== */
.track-form__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: start; gap: 18px 20px; }
.track-form__submit { margin-top: 30px; } /* aligns with the inputs under their 30 px labels */
.track-form__submit svg { width: 20px; height: 20px; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 48px; }
.track-form__note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.track-form__note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--ok); }
.track-form__note--error { padding: 14px 16px; border-radius: var(--r); background: var(--panel); box-shadow: inset 3px 0 0 var(--danger); color: var(--ink); font-weight: 600; }
.track-form__note--error svg { color: var(--danger); }
.track-form .consent { margin-top: 10px; }
.track-form.has-error .input:not(:focus-visible) { border-color: var(--danger); }
/* result */
.track-result { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: var(--gutter); align-items: start; }
.track-status, .track-details { padding: clamp(22px, 2.8vw, 36px); }
.track-status__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.track-status__head h2 { margin-top: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--pill); background: var(--cherry-soft); color: var(--cherry); font-size: .875rem; font-weight: 700; }
.status-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.is-ready { background: #E3F1E7; color: #146C34; }
.track-status__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.track-status__meta div { padding: 14px 16px; border-radius: var(--r); background: var(--panel); }
.track-status__meta dt, .track-details__list dt { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.track-status__meta dd { margin-top: 2px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
/* timeline: done = black check, current = accent ring, pending = outline */
.timeline { position: relative; display: grid; gap: 0; margin-top: 28px; }
.timeline__step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-bottom: 18px; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step:not(:last-child)::before { content: ""; position: absolute; left: 19.5px; top: 40px; bottom: 0; width: 1px; background: var(--line); }
.timeline__step.is-complete:not(:last-child)::before { width: 2px; left: 19px; background: var(--ink); }
.timeline__dot { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline__dot svg { width: 18px; height: 18px; }
.is-complete .timeline__dot { background: var(--ink); color: #fff; box-shadow: none; }
.is-complete .timeline__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.is-current .timeline__dot { background: var(--cherry); color: #fff; box-shadow: 0 0 0 5px var(--cherry-soft); }
.timeline__copy { display: flex; flex-direction: column; justify-content: center; min-height: 40px; }
.timeline__copy strong { font-weight: 600; line-height: 1.4; color: var(--body); }
.is-complete .timeline__copy strong, .is-current .timeline__copy strong { color: var(--ink); font-weight: 700; }
.timeline__copy small { font-size: .8125rem; color: var(--muted); }
.track-status__note { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; padding: 16px 18px; border-radius: var(--r); background: var(--dark); color: var(--on-dark-muted); }
.track-status__note svg { width: 24px; height: 24px; flex: none; color: var(--cherry-on-dark); }
.track-status__note strong { color: #fff; }
.track-details__car { display: grid; gap: 16px; margin-top: 14px; }
.track-details__media { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--panel); }
.track-details__media img { width: 100%; height: 100%; object-fit: cover; }
.track-details__title { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.track-details__car p { margin-top: 4px; font-size: .9375rem; color: var(--muted); }
.track-details__list { margin-top: 18px; border-top: 1px solid var(--line); }
.track-details__list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.track-details__list div:last-child { border-bottom: 0; padding-bottom: 0; }
.track-details__list dt { flex: none; }
.track-details__list dd { font-weight: 700; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.track-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; padding: clamp(22px, 2.8vw, 36px); }
.track-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--cherry); }
.track-empty__icon svg { width: 28px; height: 28px; }
.track-empty h2 { margin-top: 10px; }
.track-empty p:not(.eyebrow) { margin-top: 10px; max-width: 60ch; color: var(--muted); }
.track-help { margin-top: var(--gutter); }
@media (max-width: 1099px) {
  .track-form__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .track-form__submit { grid-column: 1 / -1; margin-top: 0; justify-self: start; }
  .track-result { grid-template-columns: minmax(0, 1fr); }
  .track-details__car { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: center; }
}
@media (max-width: 767px) {
  .track-form__fields { grid-template-columns: minmax(0, 1fr); }
  .track-form__submit { width: 100%; }
  .track-status__meta { grid-template-columns: minmax(0, 1fr); }
  .track-details__car { grid-template-columns: minmax(0, 1fr); }
  .track-empty { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   PRIVACY POLICY
   ========================================================================== */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr); gap: var(--gutter); align-items: start; }
.privacy-card { padding: clamp(24px, 3.4vw, 48px); }
.privacy-prose { margin-top: 22px; font-size: 1rem; }
.privacy-prose h3 { margin-top: 1.8em; font-size: 1.125rem; }
.privacy-prose > h3:first-child { margin-top: 0; }
/* not sticky: the cookies card is 1400-1600 px tall at 1440 (taller than any viewport), so a sticky aside hid its lower
   half (and the focused "cookie settings" button) until the end of the page */
.privacy-aside { min-width: 0; }
.privacy-card--aside .privacy-prose { font-size: .9375rem; }
.privacy-card--aside .btn { margin-top: 2px; }
@media (max-width: 1099px) {
  .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .topic-grid--static { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   404
   ========================================================================== */
/* starts where every page head starts and ends with the one section gap (no vertical centring: it made the
   header -> content and content -> footer gaps of this page 119 / 338 px at 1440 instead of 56 / 240) */
.not-found { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px var(--gutter); padding-top: clamp(24px, 3vw, 40px); /* = .page-head */ }
.not-found__code { font-family: var(--serif); font-weight: 400; font-stretch: 75%; font-size: clamp(8rem, 4rem + 14vw, 17rem); line-height: .85; letter-spacing: -0.03em; color: var(--ink); }
.not-found__code::after { content: ""; display: inline-block; width: .09em; height: .09em; margin-left: .04em; border-radius: 50%; background: var(--cherry); vertical-align: baseline; }
.not-found__copy > .eyebrow:first-child { display: flex; } /* a block eyebrow: no 5 px line-box offset above it (header -> content = 56 like every page head) */
.not-found__copy h1 { margin-top: 14px; text-wrap: balance; }
.not-found__copy .t-lead { margin-top: 18px; max-width: 46ch; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 1099px) { .not-found { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .not-found__actions .btn { flex: 1 1 100%; } }

/* ==========================================================================
   PRIVATE IMPORT CALCULATOR — password gate + unlocked bar
   ========================================================================== */
.calc-gate { display: grid; justify-items: start; width: min(480px, 100%); margin: clamp(24px, 3vw, 40px) auto 0; /* same top as every page head */ padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r-lg); }
.calc-gate__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--dark); color: var(--cherry-on-dark); }
.calc-gate__icon svg { width: 26px; height: 26px; }
.calc-gate h1 { margin-top: 10px; }
.calc-gate__form { display: grid; gap: 18px; width: 100%; margin-top: 24px; }
.calc-gate__error { margin-top: 8px; font-size: .875rem; font-weight: 600; color: var(--danger); }
.calc-authbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 40px); padding: 10px 10px 10px 18px; border-radius: var(--pill); background: var(--surface); }
.calc-authbar__state { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.calc-authbar__state svg { width: 20px; height: 20px; color: var(--ok); }
.calc-authbar .btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   IMPORT COST CALCULATOR (partials/import-calculator.ejs; car page + private calculator)
   variant block (default: inside a page column), section (own .section + .wrap), page (inside .page-section)
   ========================================================================== */
.import-calc { min-width: 0; }
.import-calc--page { margin-top: var(--head-gap); }
main > .import-calc--block { width: 100%; max-width: calc(var(--maxw) + 2 * var(--margin)); margin: var(--section) auto; padding-inline: var(--margin); } /* placed straight in <main> */
.import-calc__card { container-type: inline-size; display: grid; gap: 16px; }
.import-calc__head { flex-wrap: nowrap; align-items: flex-start; margin-bottom: 4px; }
.import-calc__head .eyebrow { margin-bottom: 10px; }
.import-calc__loading { display: inline-grid; place-items: center; width: 44px; height: 44px; opacity: 0; transition: opacity var(--t-color) var(--ease-out); }
.import-calc__card.is-loading .import-calc__loading { opacity: 1; }
/* parameters: one white tile of cells split by hairlines */
.import-calc__params { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-radius: var(--r-lg); background: var(--line); overflow: hidden; }
@container (max-width: 860px) { .import-calc__params { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 520px) {
  .import-param:has(select), .import-param--route, .import-param--input, .import-param--result { grid-column: 1 / -1; }
  /* the two short facts share a row, the customs select and the route follow at full width: no empty cell */
  .import-param--country, .import-param--delivery { order: 1; }
  .import-param--customs, .import-param--route { order: 2; }
}
.import-param { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 16px 20px; background: var(--surface); }
.import-param__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.import-param__value { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.import-param__control { min-height: 44px; font-weight: 600; }
.import-param__control.select { padding-left: 14px; }
.import-param--result { background: var(--panel); }
.import-param--result .import-param__value { font-size: 1.125rem; }
.import-route em { font-style: normal; }
.import-route svg { width: 16px; height: 16px; color: var(--cherry); }
.import-flag { display: inline-block; width: 22px; height: 15px; flex: none; border-radius: 3px; background: linear-gradient(#fff 0 50%, #DC143C 50% 100%); box-shadow: inset 0 0 0 1px var(--line); }
/* cost groups: concept accordion rows on a white list tile */
.import-calc__body { display: grid; gap: 16px; align-items: start; }
@container (min-width: 900px) { .import-calc__body { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); } .import-calc__total { position: sticky; top: calc(var(--header-h) + 24px); } }
.import-calc__groups summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 16px; }
.import-group__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.import-group__total { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.import-rows { display: grid; padding-bottom: 14px; }
.import-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.import-row > div { min-width: 0; }
.import-row > div strong { font-weight: 500; color: var(--body); }
.import-row small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.import-row > strong { flex: none; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.import-row.is-subtotal > div strong { font-weight: 700; color: var(--ink); }
.import-row.is-subtotal { border-top-color: var(--line-strong); }
/* the result: black block, gross total in the big price style */
.import-calc__total { display: grid; gap: 14px; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark-muted); }
.import-total { display: flex; flex-direction: column; gap: 4px; }
.import-total span { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.import-total strong { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.import-total--net strong { font-size: 1.25rem; }
.import-total--gross { padding-top: 14px; border-top: 1px solid var(--line-dark); }
.import-total--gross strong { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }
/* loading (NBP rates are fetched; at least 700 ms): amounts shimmer, the spinner shows in the head */
.import-calc__card.is-loading [data-import-cost],
.import-calc__card.is-loading [data-import-converted-price] { display: inline-block; min-width: 7ch; color: transparent; border-radius: 6px; background: linear-gradient(90deg, var(--tint) 0%, #F4EFE7 50%, var(--tint) 100%) 0 0 / 200% 100%; animation: am-shimmer 1.3s linear infinite; }
.import-calc__card.is-loading .import-calc__total [data-import-cost] { background: linear-gradient(90deg, rgb(255 255 255 / .08) 0%, rgb(255 255 255 / .18) 50%, rgb(255 255 255 / .08) 100%) 0 0 / 200% 100%; }
@media (max-width: 767px) {
  .import-param { padding: 14px 16px; }
  .import-row { flex-wrap: wrap; }
  .import-row > strong { margin-left: auto; } /* an amount wrapped under a long label or note stays right-aligned */
}

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .zd-booking-day, .zd-booking-slot, .contact-path, .bk-modal__panel, .bk-modal__scrim { transition: none; }
  .zd-booking-day:active, .zd-booking-slot:active, .contact-path:active { transform: none; }
  .bk-modal.is-visible .bk-modal__panel, .bk-modal.is-visible .bk-modal__scrim { animation: bk-fade-in 160ms linear; }
  .feature-article:hover .feature-article__media img { transform: none; }
  .cal__days:empty, .slots--loading > span, .import-calc__card.is-loading [data-import-cost], .import-calc__card.is-loading [data-import-converted-price] { animation: none; }
}
@media (prefers-contrast: more) {
  .booking, .contact-path, .topic-card, .feature-article, .aside-card, .track-status, .track-details, .track-empty, .privacy-card, .import-calc__params, .contact-steps li { box-shadow: inset 0 0 0 1px #5E5952; }
}
@media (forced-colors: active) {
  .zd-booking-day, .zd-booking-slot { border: 1px solid ButtonText; }
  .zd-booking-day:is(.is-selected, [aria-pressed="true"]), .zd-booking-slot:is(.is-selected, [aria-pressed="true"]) { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
