/*!
Theme Name: Black Wolf Motors
Theme URI: https://blackwolfmotors.co.uk/
Author: Not Sorry Collective
Author URI: https://notsorry.pl/
Description: Motyw dealera samochodowego Black Wolf Motors - port statycznego layoutu na WordPressa.
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: black-wolf-motors
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Black Wolf Motors is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
>>> SPIS TRESCI:
----------------------------------------------------------------
# Design tokens          (port css/tokens.css)
# Base                   (port css/base.css)
# Components             (port css/components.css)
# Pages                  (port css/pages.css)
# Pages - secondary      (port css/pages-secondary.css)
# Page - stock           (port css/page-stock.css)
# Page - vehicle         (port css/page-vehicle.css)
# Contact Form 7         (dopasowanie markupu wtyczki do designu)
# WordPress core         (klasy wymagane przez WP: a11y, wyrownania,
                          podpisy, galerie)

UWAGA: motyw celowo trzyma CALY arkusz w tym jednym pliku - nie dodawaj
kolejnych plikow .css. Nowe sekcje dopisuj na koncu wlasciwego bloku
powyzej bloku "# Contact Form 7".
--------------------------------------------------------------*/


/*--------------------------------------------------------------
# Design tokens  (zrodlo: css/tokens.css)
--------------------------------------------------------------*/

/* ==========================================================================
   Black Wolf Motors — design tokens (vanilla port of src/app/globals.css)
   Single source of truth for colour, type, spacing, radii and motion.
   Never hardcode a hex value outside this file — see DESIGN.md.
   ========================================================================== */

:root {
  /* --- Colour ------------------------------------------------------------ */
  --color-ink: #0b0d0e; /* primary dark canvas */
  --color-graphite: #171a1c; /* raised dark surface */
  --color-graphite-2: #22262a; /* second dark step / dark hover */
  --color-bone: #f1eee7; /* warm mineral white, primary light canvas */
  --color-bone-2: #e7e3da; /* second light step */
  --color-steel: #92979a; /* secondary text ON DARK only (6.4:1 on ink) */
  --color-slate: #5c6164; /* secondary text ON LIGHT only (5.4:1 on bone) */
  --color-accent: #dd183b; /* the client's red - FILL ONLY, never text */
  --color-accent-on-dark: #f2647c; /* accent text/icon on ink only (6.3:1) */
  --color-accent-on-light: #a81030; /* accent text/icon on bone only (6.5:1) */

  --color-hairline-dark: rgba(241, 238, 231, 0.14);
  --color-hairline-light: rgba(11, 13, 14, 0.14);
  --color-hairline-dark-strong: rgba(241, 238, 231, 0.28);
  --color-hairline-light-strong: rgba(11, 13, 14, 0.28);

  /* --- Radii (square by default; 4px is the ceiling) --------------------- */
  --radius-xs: 2px;
  --radius-sm: 4px;

  /* --- Spacing scale ------------------------------------------------------ */
  --spacing-section: 6rem; /* 96 — mobile section rhythm */
  --spacing-section-md: 8rem; /* 128 — tablet */
  --spacing-section-lg: 10rem; /* 160 — desktop */

  /* --- Motion -------------------------------------------------------------- */
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.33, 1, 0.68, 1);

  /* Czasy animacji wejscia. Trzymane jako tokeny, bo stroi sie je razem -
     zmiana samej maski bez tekstu rozjezdza rytm sekcji. */
  --reveal-mask-duration: 1500ms;
  --reveal-text-duration: 1250ms;
  --reveal-stagger: 120ms;
  --image-hover-duration: 620ms;

  /* --- Fonts ---------------------------------------------------------------
     Self-hosted via next/font in the React app. Here they are loaded from
     Google Fonts (see index.html <head>) — swap for local @font-face
     later if the developer wants to self-host, keeping these same names. */
  --font-display: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ==========================================================================
   Typography scale — see DESIGN.md §Typography
   ========================================================================== */

.type-display-1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.25rem, 7.5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.type-display-2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.type-display-3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.type-display-4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.type-body-lg {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  max-width: 62ch;
}

.type-body {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 68ch;
}

.type-body-sm {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* Rationed: table headers, status, filter group headers, form labels only.
   NEVER as a kicker above a section heading. */
.type-label {
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.type-data {
  font-size: 0.9375rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* The curator's voice — one italic sentence per vehicle card, DM Sans not a serif. */
.type-note {
  font-family: var(--font-ui);
  font-weight: 500;
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.page-container {
  margin-inline: auto;
  width: 100%;
  max-width: 90rem; /* 1440px */
  padding-inline: 1.5rem;
}

@media (width >= 48rem) {
  .page-container {
    padding-inline: 2.5rem;
  }
}

@media (width >= 80rem) {
  .page-container {
    padding-inline: 4rem;
  }
}

.section-rhythm {
  padding-block: 6rem;
}

@media (width >= 48rem) {
  .section-rhythm {
    padding-block: 8rem;
  }
}

@media (width >= 80rem) {
  .section-rhythm {
    padding-block: 10rem;
  }
}

/* Hairline rules — structural, never decorative framing. */
.rule-dark {
  border-top: 1px solid var(--color-hairline-dark);
}

.rule-light {
  border-top: 1px solid var(--color-hairline-light);
}

/* ==========================================================================
   Motion — DESIGN.md §Motion. Reduced motion is handled in base.css.
   ========================================================================== */

/* Image mask reveal: clip-path inset, --reveal-mask-duration, once on entry. */
.reveal-mask {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--reveal-mask-duration) var(--ease-editorial);
}

/* The wrapper carrying [data-reveal-target] is what gets observed (see
   js/reveal.js) — the clip-path itself would otherwise make an observed
   element permanently report a 0 intersection ratio. */
[data-revealed="true"] > .reveal-mask {
  clip-path: inset(0 0 0 0);
}

/* Text reveal: opacity + 12px rise, --reveal-text-duration, stagger via --reveal-index. */
.reveal-text {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--reveal-text-duration) var(--ease-editorial),
    transform var(--reveal-text-duration) var(--ease-editorial);
  transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));
}

.reveal-text[data-revealed="true"] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-mask {
    clip-path: inset(0 0 0 0);
  }

  .reveal-text {
    opacity: 1;
    transform: none;
  }
}

/* Image hover: the frame never moves, only the image inside it. */
.image-frame {
  overflow: hidden;
  position: relative;
}

.image-frame img {
  transition: transform var(--image-hover-duration) var(--ease-out-soft);
}

.image-frame:hover img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .image-frame img {
    transition: none;
    transform: none !important;
  }
}

/* Hide scrollbars on horizontal media rails without losing keyboard scroll. */
.scrollbar-none {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Screen-reader-only utility (matches Tailwind's .sr-only). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only.skip-link:focus {
  position: fixed;
  left: 1.5rem;
  top: 1.5rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: var(--color-bone);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
}


/*--------------------------------------------------------------
# Base  (zrodlo: css/base.css)
--------------------------------------------------------------*/

/* ==========================================================================
   Base — reset, html/body, focus, selection, reduced motion
   Vanilla port of the @layer base block in src/app/globals.css
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

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

body {
  background-color: var(--color-ink);
  color: var(--color-bone);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Numerals must never jitter — prices, mileage, calculator output. */
input,
table,
time,
output {
  font-variant-numeric: tabular-nums;
}

a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-bone);
}

:focus-visible {
  outline: 2px solid var(--color-accent-on-dark);
  outline-offset: 2px;
  border-radius: 1px;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  font-weight: inherit;
}

p {
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/*--------------------------------------------------------------
# Components  (zrodlo: css/components.css)
--------------------------------------------------------------*/

/* ==========================================================================
   Components — reusable UI patterns shared across every route.

   PHASE 1 implements: buttons, status-label, price-block, section-heading,
   vehicle-card (compact), header, mobile-nav, footer, toast (used by
   saved.js on every page). PHASE 2/3 agents: append key-facts, chips,
   fields and dialog patterns to this file when the stock/detail/contact
   pages need them — do not create new component CSS files.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons — DESIGN.md §CTA hierarchy. Rectangular (2px radius), 48px tall
   (56px lg), no icons except the arrow on tertiary "Explore" links.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms ease-out,
    border-color 150ms ease-out,
    color 150ms ease-out;
  font-size: 0.875rem;
  border: 1px solid transparent;
  background: none;
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
}

/* Sizes */
.btn-md {
  height: 3rem; /* 48px */
  padding-inline: 1.5rem;
}

.btn-lg {
  height: 3.5rem; /* 56px */
  padding-inline: 1.5rem;
}

.btn-sm {
  height: 2.25rem; /* 36px */
  padding-inline: 1rem;
}

.btn-tertiary {
  min-height: 2.75rem; /* 44px tap target, no visible height */
  padding-inline: 0;
  border: none;
  text-underline-offset: 4px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Primary — the client's red fill, bone text on both surfaces (4.9:1). One
   per viewport region. Never "Buy now". */
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bone);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-on-light);
  border-color: var(--color-accent-on-light);
}

.btn-primary:disabled {
  background-color: var(--color-graphite-2);
  color: var(--color-steel);
  border-color: var(--color-graphite-2);
}

/* Secondary — outlined, transparent fill */
.btn-secondary.on-dark {
  color: var(--color-bone);
  border-color: var(--color-hairline-dark);
}

.btn-secondary.on-dark:hover {
  border-color: var(--color-hairline-dark-strong);
}

.btn-secondary.on-light {
  color: var(--color-ink);
  border-color: var(--color-hairline-light);
}

.btn-secondary.on-light:hover {
  border-color: var(--color-hairline-light-strong);
}

/* Tertiary — underlined text link, oxblood/accent on hover */
.btn-tertiary.on-dark {
  color: var(--color-bone);
}

.btn-tertiary.on-dark:hover {
  color: var(--color-accent-on-dark);
}

.btn-tertiary.on-light {
  color: var(--color-ink);
}

.btn-tertiary.on-light:hover {
  color: var(--color-accent-on-light);
}

/* Quiet — icon + body-sm, hairline border, never competing with 1–3 */
.btn-quiet.on-dark {
  color: var(--color-bone);
  border-color: var(--color-hairline-dark);
}

.btn-quiet.on-dark:hover {
  border-color: var(--color-hairline-dark-strong);
}

.btn-quiet.on-light {
  color: var(--color-ink);
  border-color: var(--color-hairline-light);
}

.btn-quiet.on-light:hover {
  border-color: var(--color-hairline-light-strong);
}

/* --------------------------------------------------------------------------
   Status label — status is never colour alone: a 6px square mark plus text.
   -------------------------------------------------------------------------- */

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-label .mark {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
}

.status-label.on-dark .mark.tone-neutral {
  background-color: var(--color-bone);
}
.status-label.on-dark .mark.tone-accent {
  background-color: var(--color-accent);
}
.status-label.on-dark .mark.tone-muted {
  background-color: var(--color-steel);
}
.status-label.on-light .mark.tone-neutral {
  background-color: var(--color-ink);
}
.status-label.on-light .mark.tone-accent {
  background-color: var(--color-accent);
}
.status-label.on-light .mark.tone-muted {
  background-color: var(--color-slate);
}

.status-label.on-dark .label-text {
  color: var(--color-bone);
}
.status-label.on-light .label-text {
  color: var(--color-ink);
}

.status-label.outlined {
  border: 1px solid;
  padding: 0.25rem 0.5rem;
}
.status-label.outlined.on-dark {
  border-color: var(--color-hairline-dark);
}
.status-label.outlined.on-light {
  border-color: var(--color-hairline-light);
}

/* --------------------------------------------------------------------------
   Price block — never hidden, never "POA".
   -------------------------------------------------------------------------- */

.price-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-block .price-figure {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.price-block.size-card .price-figure {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.price-block.size-hero .price-figure {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.price-block.on-dark .price-figure {
  color: var(--color-bone);
}
.price-block.on-light .price-figure {
  color: var(--color-ink);
}

.price-block .price-monthly {
  font-size: 0.9375rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.price-block.on-dark .price-monthly {
  color: var(--color-steel);
}
.price-block.on-light .price-monthly {
  color: var(--color-slate);
}
.price-block .price-monthly .indicative {
  margin-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   Section heading — sections open with the title itself, never a kicker.
   -------------------------------------------------------------------------- */

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-heading.align-between {
  gap: 1.5rem;
}

@media (width >= 48rem) {
  .section-heading.align-between {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-heading .heading-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-heading .lead.on-dark {
  color: var(--color-steel);
}
.section-heading .lead.on-light {
  color: var(--color-slate);
}

.section-heading .heading-action {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Vehicle card (compact) — the reusable catalogue card. 4:3 image, meta
   line, price, tertiary link + save button. PHASE 3 reuses this exact
   markup pattern on /stock and detail "related vehicles".
   -------------------------------------------------------------------------- */

.vehicle-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vehicle-card .vehicle-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
}

.vehicle-card .vehicle-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-card .vehicle-card-image img.sold {
  filter: grayscale(1);
  opacity: 0.6;
}

.vehicle-card .vehicle-card-image .card-link-overlay {
  position: absolute;
  inset: 0;
}

.vehicle-card .vehicle-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
}

.vehicle-card .vehicle-card-name-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vehicle-card .vehicle-card-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.vehicle-card .vehicle-card-name a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.vehicle-card .vehicle-card-name a:hover {
  text-decoration: underline;
}

.vehicle-card .vehicle-card-variant {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-steel);
}

.vehicle-card .vehicle-card-meta {
  font-size: 0.9375rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--color-steel);
}

.vehicle-card .vehicle-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Save button
   -------------------------------------------------------------------------- */

.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-inline: 0.75rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  background: none;
  color: var(--color-bone);
  cursor: pointer;
  transition: border-color 150ms ease-out;
}

.save-button:hover {
  border-color: var(--color-hairline-dark-strong);
}

.save-button.on-light {
  border-color: var(--color-hairline-light);
  color: var(--color-ink);
}

.save-button.on-light:hover {
  border-color: var(--color-hairline-light-strong);
}

.save-button svg {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   Toast — used by saved.js on every page.
   -------------------------------------------------------------------------- */

.toast-region {
  position: fixed;
  inset-inline: 0;
  bottom: 6rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 1.5rem;
  pointer-events: none;
}

@media (width >= 40rem) {
  .toast-region {
    inset-inline: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    align-items: flex-end;
    padding-inline: 0;
  }
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  max-width: 24rem;
  padding: 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  background-color: var(--color-graphite);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 200ms ease-out,
    transform 200ms ease-out;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast .toast-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-bone);
}

.toast .toast-description {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: var(--color-steel);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Header — fixed, transparent over the hero, ink/95 + hairline after 64px.
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: 4.75rem; /* 76px, ~h-19 */
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background-color: transparent;
  transition:
    background-color 200ms,
    border-color 200ms;
}

@media (width >= 48rem) {
  .site-header {
    height: 6rem;
  }
}

.site-header.scrolled {
  background-color: rgb(11 13 14 / 0.95);
  border-bottom-color: var(--color-hairline-dark);
  backdrop-filter: blur(2px);
}

.site-header .header-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo-link {
  display: flex;
  flex-direction: column;
  line-height: 0;
}

.site-header .logo-link img {
  height: 3rem;
  width: auto;
}

@media (width >= 48rem) {
  .site-header .logo-link img {
    height: 4rem;
  }
}

.site-header .primary-nav {
  display: none;
}

@media (width >= 64rem) {
  .site-header .primary-nav {
    display: block;
    margin-inline: 4rem 0;
    margin-right: auto;
  }
}

.site-header .primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-header .primary-nav a {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-bone);
  text-underline-offset: 6px;
  transition: text-decoration-color 150ms;
}

.site-header .primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.site-header .primary-nav a:hover {
  text-decoration: underline;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header .saved-link {
  display: none;
  font-size: 0.875rem;
  color: var(--color-bone);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-header .saved-link.has-saved {
  display: none;
}

@media (width >= 40rem) {
  .site-header .saved-link.has-saved {
    display: inline;
  }
}

.site-header .header-cta-slot {
  display: none;
}

@media (width >= 64rem) {
  .site-header .header-cta-slot {
    display: inline-flex;
  }
}

.site-header .menu-toggle {
  display: flex;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  color: var(--color-bone);
  background: none;
  border: none;
  cursor: pointer;
}

@media (width >= 64rem) {
  .site-header .menu-toggle {
    display: none;
  }
}

.site-header .menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* --------------------------------------------------------------------------
   Mobile nav — full-screen dialog panel, <1024px.
   -------------------------------------------------------------------------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  background-color: var(--color-ink);
  opacity: 0;
  transition: opacity 160ms;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
}

@media (width >= 64rem) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav .mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}

.mobile-nav .mobile-nav-header img {
  height: 3.5rem;
  width: auto;
}

.mobile-nav .mobile-nav-close {
  display: flex;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  color: var(--color-bone);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav .mobile-nav-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav .mobile-nav-links {
  flex: 1;
}

.mobile-nav .mobile-nav-links ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-block: 2rem;
}

.mobile-nav .mobile-nav-links a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-bone);
}

.mobile-nav .mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--color-hairline-dark);
  padding-block: 1.5rem;
}

.mobile-nav .mobile-nav-footer a.phone-link {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 1rem;
  color: var(--color-bone);
}

/* --------------------------------------------------------------------------
   Footer — identical on every page.
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-hairline-dark);
  background-color: var(--color-ink);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: 4rem;
}

@media (width >= 40rem) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 64rem) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    padding-block: 6rem;
  }
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.site-footer .footer-brand img {
  height: 72px;
  width: auto;
}

.site-footer .footer-brand p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-steel);
}

.site-footer .footer-brand p.description {
  max-width: 68ch;
}

.site-footer h3 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-bone);
}

.site-footer .footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer .footer-nav a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-steel);
}

.site-footer .footer-nav a:hover {
  color: var(--color-bone);
}

.site-footer .footer-visit {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer .footer-visit address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-steel);
}

.site-footer .footer-visit a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-steel);
}

.site-footer .footer-visit a:hover {
  color: var(--color-bone);
}

.site-footer .footer-visit p {
  font-size: 0.875rem;
  color: var(--color-steel);
}

.site-footer .footer-bottom {
  border-top: 1px solid var(--color-hairline-dark);
}

.site-footer .footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 2rem;
}

@media (width >= 40rem) {
  .site-footer .footer-bottom-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer .footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (width >= 40rem) {
  .site-footer .footer-bottom-left {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.site-footer .footer-bottom p,
.site-footer .footer-bottom a {
  font-size: 0.875rem;
  color: var(--color-steel);
}

.site-footer .footer-bottom a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer .footer-bottom a:hover {
  color: var(--color-bone);
}


/*--------------------------------------------------------------
# Pages  (zrodlo: css/pages.css)
--------------------------------------------------------------*/

/* ==========================================================================
   Page-specific sections. PHASE 1 implements the homepage sections below.
   PHASE 2/3 agents: append about/stock/detail/contact sections here —
   do not create new page CSS files.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Homepage — featured hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--color-ink);
}

.hero .hero-media {
  position: absolute;
  inset: 0;
}

.hero .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legibility scrims: bottom rise + left wash, built from the ink token —
   never a grey scrim (DESIGN.md, the two permitted hero gradients). */
.hero .hero-scrim-bottom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-ink) 94%, transparent) 0%,
    color-mix(in srgb, var(--color-ink) 55%, transparent) 28%,
    transparent 55%
  );
}

.hero .hero-scrim-left {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to right,
    color-mix(in srgb, var(--color-ink) 88%, transparent) 0%,
    color-mix(in srgb, var(--color-ink) 60%, transparent) 38%,
    transparent 70%
  );
}

.hero .hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2rem;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

@media (width >= 48rem) {
  .hero .hero-content {
    padding-top: 8rem;
    padding-bottom: 6rem;
  }
}

.hero .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (width >= 64rem) {
  .hero .hero-copy {
    max-width: 42rem;
  }
}

.hero .hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero h1 {
  color: var(--color-bone);
}

.hero .hero-variant {
  display: block;
}

.hero .hero-status-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero .hero-lead-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero .hero-lead {
  max-width: 62ch;
  color: var(--color-steel);
}

.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero .hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero .hero-explore svg {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   Latest Arrivals — graphite band, even 3-across grid
   -------------------------------------------------------------------------- */

.section-arrivals {
  background-color: var(--color-graphite);
}

.section-arrivals .section-body {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2.5rem;
}

@media (width >= 48rem) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem 2.5rem;
  }
}

@media (width >= 64rem) {
  .vehicle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.arrivals-count {
  font-size: 0.875rem;
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   About block — ink, 5/7 editorial grid, icon list + workshop image
   -------------------------------------------------------------------------- */

.section-about {
  background-color: var(--color-ink);
  color: var(--color-bone);
}

.section-about .about-inner {
  padding-block: 6rem;
}

@media (width >= 48rem) {
  .section-about .about-inner {
    padding-block: 8rem;
  }
}

@media (width >= 80rem) {
  .section-about .about-inner {
    padding-block: 10rem;
  }
}

.section-about .about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem 2.5rem;
  align-items: start;
}

@media (width >= 64rem) {
  .section-about .about-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem 2.5rem;
  }

  .section-about .about-copy {
    grid-column: span 5;
  }

  .section-about .about-image {
    grid-column: span 7;
  }
}

@media (width >= 80rem) {
  .section-about .about-grid {
    gap: 4rem 4rem;
  }
}

.section-about .about-copy {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-about .about-lead {
  max-width: 68ch;
  color: var(--color-steel);
}

.section-about .about-lead strong {
  font-weight: 600;
  color: var(--color-bone);
}

.section-about .about-list li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  column-gap: 1rem;
  padding-block: 1.5rem;
}

.section-about .about-list li:not(:first-child) {
  border-top: 1px solid var(--color-hairline-dark);
}

.section-about .about-list svg {
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-accent-on-dark);
}

.section-about .about-list h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-bone);
}

.section-about .about-list p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-steel);
}

.section-about .about-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

@media (width >= 40rem) {
  .section-about .about-image {
    aspect-ratio: 4 / 3;
  }
}

@media (width >= 64rem) {
  .section-about .about-image {
    aspect-ratio: 4 / 5;
  }
}

.section-about .about-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Testimonials band — graphite, image + quote list
   -------------------------------------------------------------------------- */

.section-testimonials {
  background-color: var(--color-graphite);
  color: var(--color-bone);
}

.section-testimonials .testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
}

@media (width >= 64rem) {
  .section-testimonials .testimonials-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
  }

  .section-testimonials .testimonials-image {
    grid-column: span 5;
  }

  .section-testimonials .testimonials-list {
    grid-column: span 7;
  }
}

@media (width >= 80rem) {
  .section-testimonials .testimonials-grid {
    gap: 4rem;
  }
}

.section-testimonials .testimonials-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

@media (width >= 40rem) {
  .section-testimonials .testimonials-image {
    aspect-ratio: 16 / 10;
  }
}

@media (width >= 64rem) {
  .section-testimonials .testimonials-image {
    aspect-ratio: auto;
    min-height: 42rem;
  }
}

.section-testimonials .testimonials-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-testimonials .testimonials-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-hairline-dark);
}

.section-testimonials figure {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--color-hairline-dark);
  padding-block: 2rem;
}

@media (width >= 64rem) {
  .section-testimonials figure {
    padding-block: 2.5rem;
  }
}

.section-testimonials blockquote {
  max-width: 48ch;
  color: var(--color-bone);
}

.section-testimonials figcaption {
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   Appointment showroom — ink, image + address/phone/CTA
   -------------------------------------------------------------------------- */

.section-showroom {
  background-color: var(--color-ink);
  color: var(--color-bone);
}

.section-showroom .showroom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (width >= 64rem) {
  .section-showroom .showroom-grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 2.5rem;
  }

  .section-showroom .showroom-image {
    grid-column: span 5;
  }

  .section-showroom .showroom-copy {
    grid-column: span 7;
  }
}

.section-showroom .showroom-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.section-showroom .showroom-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-showroom .showroom-copy {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-showroom .showroom-lead {
  max-width: 62ch;
  color: var(--color-steel);
}

.section-showroom address {
  font-style: normal;
  color: var(--color-steel);
}

.section-showroom .showroom-phones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-showroom .showroom-phones a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--color-bone);
  transition: color 150ms;
}

.section-showroom .showroom-phones a:hover {
  color: var(--color-accent-on-dark);
}

.section-showroom .showroom-phones svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Contact CTA — graphite, full CTA hierarchy
   -------------------------------------------------------------------------- */

.section-contact-cta {
  background-color: var(--color-graphite);
  color: var(--color-bone);
}

.section-contact-cta .cta-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-contact-cta .cta-lead {
  max-width: 62ch;
  color: var(--color-steel);
}

.section-contact-cta .cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

@media (width >= 40rem) {
  .section-contact-cta .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
  }
}

.section-contact-cta .cta-actions .btn-primary,
.section-contact-cta .cta-actions .btn-secondary {
  width: 100%;
}

@media (width >= 40rem) {
  .section-contact-cta .cta-actions .btn-primary,
  .section-contact-cta .cta-actions .btn-secondary {
    width: auto;
  }
}

.section-contact-cta .cta-actions .btn-secondary {
  height: auto;
  min-height: 3.5rem;
  padding-block: 1rem;
  white-space: normal;
  text-align: center;
}

.section-contact-cta .cta-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--color-hairline-dark);
  padding-top: 2rem;
}

.section-contact-cta .cta-footer-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.section-contact-cta .cta-footer-phones a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-bone);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-contact-cta .cta-footer-phones a:hover {
  color: var(--color-accent-on-dark);
}

.section-contact-cta .cta-footer address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-steel);
}

.section-contact-cta .cta-footer p {
  font-size: 0.875rem;
  color: var(--color-steel);
}


/*--------------------------------------------------------------
# Pages - secondary  (zrodlo: css/pages-secondary.css)
--------------------------------------------------------------*/

/* ==========================================================================
   Pages-secondary — PHASE 2. Styles for /about, /contact and 404, kept out
   of pages.css (homepage) per PHASE 2 instructions. Reuses tokens.css and
   the shared .section-heading / .page-container / .rule-dark / reveal
   primitives from components.css and tokens.css — only page-specific and
   form-field rules live here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   About — hero
   -------------------------------------------------------------------------- */

.about-hero {
  background-color: var(--color-ink);
  padding-top: 8rem;
  padding-bottom: 4rem;
}

@media (width >= 40rem) {
  .about-hero {
    padding-top: 10rem;
  }
}

@media (width >= 48rem) {
  .about-hero {
    padding-top: 12rem;
    padding-bottom: 6rem;
  }
}

.about-hero .about-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-hero .about-hero-subhead {
  max-width: 62ch;
  font-weight: 400;
  color: var(--color-steel);
}

.about-hero .about-hero-lead {
  max-width: 62ch;
  color: var(--color-steel);
}

.about-hero .about-hero-image {
  position: relative;
  margin-top: 3rem;
  aspect-ratio: 21 / 9;
  width: 100%;
}

@media (width >= 48rem) {
  .about-hero .about-hero-image {
    margin-top: 4rem;
  }
}

.about-hero .about-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   About — positioning (story + 2x2 proof figures)
   -------------------------------------------------------------------------- */

.positioning {
  background-color: var(--color-ink);
  color: var(--color-bone);
}

.positioning .positioning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
}

@media (width >= 64rem) {
  .positioning .positioning-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
  }

  .positioning .positioning-image {
    grid-column: span 5;
  }

  .positioning .positioning-copy {
    grid-column: span 7;
    justify-content: center;
  }
}

@media (width >= 80rem) {
  .positioning .positioning-grid {
    gap: 4rem;
  }
}

.positioning .positioning-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

@media (width >= 40rem) {
  .positioning .positioning-image {
    aspect-ratio: 4 / 3;
  }
}

@media (width >= 64rem) {
  .positioning .positioning-image {
    aspect-ratio: auto;
    min-height: 44rem;
  }
}

.positioning .positioning-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.positioning .positioning-copy {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.positioning .positioning-lead {
  max-width: 62ch;
  color: var(--color-steel);
}

.positioning .positioning-proof {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--color-hairline-dark);
  padding-top: 2rem;
}

.positioning .positioning-proof-heading {
  max-width: 24ch;
}

.positioning .positioning-proof-lead {
  max-width: 62ch;
  color: var(--color-steel);
}

.positioning .positioning-figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--color-hairline-dark);
}

.positioning .positioning-figure {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.5rem;
  padding-right: 1.25rem;
}

.positioning .positioning-figure.figure-right {
  border-left: 1px solid var(--color-hairline-dark);
  padding-left: 1.25rem;
  padding-right: 0;
}

@media (width >= 40rem) {
  .positioning .positioning-figure {
    padding-right: 2rem;
  }

  .positioning .positioning-figure.figure-right {
    padding-left: 2rem;
  }
}

.positioning .positioning-figure.figure-bottom {
  border-top: 1px solid var(--color-hairline-dark);
}

.positioning .positioning-figure-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.positioning .positioning-figure-label {
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   About — showroom location
   -------------------------------------------------------------------------- */

.showroom-location {
  background-color: var(--color-graphite);
}

.showroom-location .showroom-location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (width >= 64rem) {
  .showroom-location .showroom-location-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
  }

  .showroom-location .showroom-location-map-col {
    grid-column: span 5;
  }

  .showroom-location .showroom-location-details-col {
    grid-column: span 6;
    grid-column-start: 7;
  }
}

.showroom-location .showroom-location-map-col,
.showroom-location .showroom-location-details-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.showroom-location address {
  font-style: normal;
  color: var(--color-bone);
}

.showroom-location .showroom-location-phones {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--color-hairline-dark);
  padding-top: 1.5rem;
}

.showroom-location .showroom-location-phones a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--color-bone);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 150ms ease-out;
}

.showroom-location .showroom-location-phones a:hover {
  color: var(--color-accent-on-dark);
}

.showroom-location .showroom-location-phones p {
  margin-top: 0.5rem;
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   Locality map plate — reused on /about and /contact
   -------------------------------------------------------------------------- */

.map-plate {
  margin: 0;
}

.map-plate .map-plate-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-hairline-dark);
  background-color: var(--color-graphite);
}

.map-plate .map-plate-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-plate .map-plate-caption {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-plate .map-plate-street {
  color: var(--color-bone);
}

.map-plate .map-plate-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--color-steel);
}

.map-plate .map-plate-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--color-bone);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-plate .map-plate-links a:hover {
  color: var(--color-accent-on-dark);
}

.map-plate .map-plate-links p a {
  display: inline;
  min-height: 0;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Contact — hero
   -------------------------------------------------------------------------- */

.contact-hero {
  background-color: var(--color-ink);
  padding-top: 8rem;
  padding-bottom: 4rem;
}

@media (width >= 40rem) {
  .contact-hero {
    padding-bottom: 5rem;
  }
}

@media (width >= 64rem) {
  .contact-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
}

.contact-hero .contact-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-hero .contact-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-hero .contact-hero-lead {
  max-width: 62ch;
  color: var(--color-steel);
}

.contact-hero .contact-hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

@media (width >= 40rem) {
  .contact-hero .contact-hero-image {
    aspect-ratio: 16 / 7;
  }
}

@media (width >= 80rem) {
  .contact-hero .contact-hero-image {
    aspect-ratio: 1312 / 343;
  }
}

.contact-hero .contact-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Contact — send a message
   -------------------------------------------------------------------------- */

.send-a-message {
  background-color: var(--color-ink);
  color: var(--color-bone);
}

.send-a-message .send-a-message-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (width >= 64rem) {
  .send-a-message .send-a-message-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8rem;
  }
}

.send-a-message .message-form-column,
.send-a-message .contact-details-column {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.send-a-message .contact-details-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.send-a-message .contact-details-phones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--color-hairline-dark);
  padding-top: 1.5rem;
}

.send-a-message .contact-details-phones a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--color-bone);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 150ms ease-out;
}

.send-a-message .contact-details-phones a:hover {
  color: var(--color-accent-on-dark);
}

.send-a-message .contact-details-phones p {
  margin-top: 0.5rem;
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   Form fields — shared vocabulary for every form on the site
   -------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field .field-label {
  color: var(--color-bone);
}

.field-control {
  height: 3rem;
  width: 100%;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  background-color: var(--color-graphite);
  color: var(--color-bone);
  padding-inline: 1rem;
  font: inherit;
  font-size: 1rem;
  transition: border-color 150ms ease-out;
}

.field-control::placeholder {
  color: var(--color-steel);
}

.field-control:focus {
  border-color: var(--color-hairline-dark-strong);
}

.field-control.invalid {
  border-color: var(--color-accent-on-dark);
}

textarea.field-control {
  height: auto;
  padding-block: 0.75rem;
  resize: vertical;
}

.field-select-wrap {
  position: relative;
}

.field-select-wrap .field-control {
  appearance: none;
  padding-right: 2.5rem;
}

.field-select-wrap svg {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--color-steel);
  pointer-events: none;
}

.field-hint {
  color: var(--color-steel);
}

.field-error {
  color: var(--color-accent-on-dark);
}

/* Chip group — clickable chips backed by visually-hidden radio/checkbox inputs. */

.chip-fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: none;
  padding: 0;
  margin: 0;
}

.chip-fieldset .chip-legend {
  padding: 0;
  color: var(--color-bone);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-option {
  cursor: pointer;
}

.chip-label {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-bone);
  transition:
    color 150ms ease-out,
    border-color 150ms ease-out;
}

.chip-input:checked + .chip-label {
  border-color: var(--color-accent-on-dark);
  color: var(--color-accent-on-dark);
}

.chip-input:focus-visible + .chip-label {
  outline: 2px solid var(--color-accent-on-dark);
  outline-offset: 2px;
}

/* Form success panel — shared by every simulated form. */

.form-success {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--color-hairline-dark);
  padding-top: 1.5rem;
}

.form-success[hidden] {
  display: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form[hidden] {
  display: none;
}

.form-success h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-bone);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.form-success h3 svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.form-success p {
  color: var(--color-steel);
}

.form-success .form-success-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-success .form-success-actions a {
  color: var(--color-bone);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-success .form-success-actions a:hover {
  color: var(--color-accent-on-dark);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.not-found {
  display: flex;
  min-height: 70vh;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-ink);
}

.not-found .not-found-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.not-found .not-found-code {
  color: var(--color-steel);
}

.not-found h1 {
  max-width: 16ch;
}

.not-found p {
  max-width: 52ch;
  color: var(--color-steel);
}

.not-found nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2.5rem;
  row-gap: 1rem;
  padding-top: 1rem;
}


/*--------------------------------------------------------------
# Page - stock  (zrodlo: css/page-stock.css)
--------------------------------------------------------------*/

/* ==========================================================================
   /stock — the catalogue: page header, full-bleed hero, filter bar (desktop)
   / filter drawer (mobile), active-filter chips, results panel (grid/list),
   empty state. New file per PHASE 3A brief — do not fold into pages.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page header — bg-ink, matches stock/page.tsx's <header>.
   -------------------------------------------------------------------------- */

.stock-header {
  background-color: var(--color-ink);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

@media (width >= 64rem) {
  .stock-header {
    padding-top: 10rem;
    padding-bottom: 5rem;
  }
}

.stock-header .type-body-lg {
  color: var(--color-steel);
}

.stock-header .stock-count {
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   Hero — full-bleed 21:9 photographic band, never a carousel.
   -------------------------------------------------------------------------- */

.stock-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  background-color: var(--color-ink);
}

.stock-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Catalogue section wrapper
   -------------------------------------------------------------------------- */

.stock-catalogue {
  background-color: var(--color-ink);
  color: var(--color-bone);
}

/* --------------------------------------------------------------------------
   Desktop filter bar — >=1024px only.
   -------------------------------------------------------------------------- */

.stock-filter-bar {
  display: none;
}

@media (width >= 64rem) {
  .stock-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-bottom: 1px solid var(--color-hairline-dark);
    padding-block: 2.5rem;
  }
}

.stock-filter-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.stock-filter-primary {
  max-width: 48rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stock-filter-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 14rem;
}

.filter-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-bone);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.filter-more-toggle:hover {
  color: var(--color-accent-on-dark);
}

.filter-more-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 150ms ease-out;
}

.filter-more-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.filter-more-panel {
  max-width: 48rem;
  border-top: 1px solid var(--color-hairline-dark);
  padding-top: 2rem;
}

/* --------------------------------------------------------------------------
   Mobile controls row — <1024px only.
   -------------------------------------------------------------------------- */

.stock-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

@media (width >= 64rem) {
  .stock-mobile-row {
    display: none;
  }
}

.stock-mobile-filters-btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  background: none;
  color: var(--color-bone);
  padding-inline: 1rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.stock-mobile-filters-btn svg {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   Shared "toggle" buttons — Saved only.
   -------------------------------------------------------------------------- */

.filter-toggle-btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  background: none;
  color: var(--color-bone);
  padding-inline: 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}

.filter-toggle-btn[aria-pressed="true"] {
  border-color: var(--color-accent-on-dark);
  color: var(--color-accent-on-dark);
}

/* --------------------------------------------------------------------------
   Search field + chip groups (shared by the bar and the drawer).
   -------------------------------------------------------------------------- */

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-field label {
  color: var(--color-bone);
}

.filter-field input[type="text"],
.filter-field input[type="search"] {
  height: 3rem;
  width: 100%;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  background-color: var(--color-graphite);
  color: var(--color-bone);
  padding-inline: 1rem;
  font-size: 1rem;
  transition: border-color 150ms ease-out;
}

.filter-field input::placeholder {
  color: var(--color-steel);
}

.filter-field input:focus-visible {
  border-color: var(--color-hairline-dark-strong);
}

.filter-chip-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: none;
  padding: 0;
  margin: 0;
}

.filter-chip-group legend {
  padding: 0;
  color: var(--color-bone);
}

.filter-chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip-label {
  cursor: pointer;
}

.filter-chip {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-bone);
  transition: border-color 150ms ease-out, color 150ms ease-out;
}

.filter-chip-input:checked + .filter-chip {
  border-color: var(--color-accent-on-dark);
  color: var(--color-accent-on-dark);
}

.filter-chip-input:focus-visible + .filter-chip {
  outline: 2px solid var(--color-accent-on-dark);
  outline-offset: 2px;
}

.filter-chip-hint {
  font-size: 0.875rem;
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   Sort select
   -------------------------------------------------------------------------- */

.filter-select-wrap {
  position: relative;
}

.filter-select-wrap select {
  height: 3rem;
  width: 100%;
  appearance: none;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  background-color: var(--color-graphite);
  color: var(--color-bone);
  padding-inline: 1rem;
  padding-right: 2.5rem;
  font-size: 1rem;
}

.filter-select-wrap svg {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--color-steel);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Range sliders
   -------------------------------------------------------------------------- */

.filter-range-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (width >= 40rem) {
  .filter-range-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.filter-range {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.filter-range-head output {
  color: var(--color-bone);
}

.filter-range input[type="range"] {
  height: 0.25rem;
  width: 100%;
  cursor: pointer;
  appearance: none;
  border-radius: var(--radius-xs);
  background-color: var(--color-graphite-2);
  accent-color: var(--color-accent);
}

.filter-more {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* --------------------------------------------------------------------------
   Active filter chips
   -------------------------------------------------------------------------- */

.stock-active-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.active-chip {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  background: none;
  color: var(--color-bone);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.active-chip svg {
  width: 0.875rem;
  height: 0.875rem;
}

.active-chip-clear-all {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-bone);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.active-chip-clear-all:hover {
  color: var(--color-accent-on-dark);
}

/* --------------------------------------------------------------------------
   Results panel
   -------------------------------------------------------------------------- */

.stock-results {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-block: 2.5rem;
}

.stock-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stock-results-count {
  font-size: 0.875rem;
  color: var(--color-steel);
}

.stock-view-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--color-hairline-dark);
  padding: 0.25rem;
}

.stock-view-btn {
  display: flex;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  border: none;
  background: none;
  color: var(--color-bone);
  cursor: pointer;
  transition: background-color 150ms ease-out;
}

.stock-view-btn[aria-pressed="true"] {
  background-color: var(--color-ink);
}

.stock-view-btn svg {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   Empty state — type + hairline rule + action, never an illustration.
   -------------------------------------------------------------------------- */

.stock-empty {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
}

.stock-empty p {
  max-width: 68ch;
  color: var(--color-steel);
}

.stock-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.stock-empty-actions .btn-clear {
  border: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   List view
   -------------------------------------------------------------------------- */

.vehicle-list {
  display: flex;
  flex-direction: column;
}

.vehicle-list-item {
  padding-block: 2rem;
}

.vehicle-list-item:not(:first-child) {
  border-top: 1px solid var(--color-hairline-dark);
}

.vehicle-list-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (width >= 48rem) {
  .vehicle-list-row {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 2rem;
  }

  .vehicle-list-image {
    grid-column: span 3;
  }

  .vehicle-list-body {
    grid-column: span 6;
  }

  .vehicle-list-price-col {
    grid-column: span 3;
  }
}

.vehicle-list-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
}

.vehicle-list-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-list-image img.sold {
  filter: grayscale(1);
  opacity: 0.6;
}

.vehicle-list-image .card-link-overlay {
  position: absolute;
  inset: 0;
}

.vehicle-list-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vehicle-list-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.vehicle-list-body h3 a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.vehicle-list-body h3 a:hover {
  text-decoration: underline;
}

.vehicle-list-variant-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vehicle-list-variant-row p {
  font-size: 0.875rem;
  color: var(--color-steel);
}

.vehicle-list-meta {
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--color-steel);
}

.vehicle-list-price-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vehicle-list-price-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Filter drawer — mobile bottom-sheet dialog, <1024px.
   -------------------------------------------------------------------------- */

.filter-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgb(11 13 14 / 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms;
}

.filter-drawer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--color-hairline-dark);
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  background-color: var(--color-graphite);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms, opacity 200ms;
}

.filter-drawer-root.open .filter-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.filter-drawer-root.open .filter-drawer {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (width >= 64rem) {
  .filter-drawer-root {
    display: none;
  }
}

.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-hairline-dark);
  padding: 1.25rem 1.5rem;
}

.filter-drawer-close {
  display: flex;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  color: var(--color-bone);
  background: none;
  border: none;
  cursor: pointer;
}

.filter-drawer-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.filter-drawer-body .filter-select-wrap select {
  background-color: var(--color-graphite);
}

.filter-drawer-footer {
  border-top: 1px solid var(--color-hairline-dark);
  padding: 1.25rem 1.5rem;
}

.filter-drawer-footer .btn {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .filter-drawer,
  .filter-drawer-overlay {
    transition: none;
  }
}


/*--------------------------------------------------------------
# Page - vehicle  (zrodlo: css/page-vehicle.css)
--------------------------------------------------------------*/

/* ==========================================================================
   Vehicle detail page — static-site/stock/<slug>.html only. Everything in
   this file is scoped to the classes/attributes emitted by
   templates/vehicle.html and scripts/build-vehicle-pages.mjs; it never
   redefines a token or component already owned by tokens.css/components.css.
   Radii stay <= var(--radius-sm) throughout, no box-shadow anywhere except
   the mobile CTA bar's hairline top border (a 1px border, not a shadow).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Product block layout
   -------------------------------------------------------------------------- */

.vehicle-detail-grid {
  position: relative; /* positioning context for .mobile-cta-sentinel */
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding-block: 4rem 4rem;
  padding-top: 8rem;
}

@media (width >= 64rem) {
  .vehicle-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    padding-block: 10rem 5rem;
  }
}

.mobile-cta-sentinel {
  position: absolute;
  top: 0;
  width: 1px;
  height: 70vh;
  pointer-events: none;
}

.vehicle-gallery-col {
  min-width: 0;
}

@media (width >= 64rem) {
  .vehicle-gallery-col {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 144px);
    overflow-y: auto;
  }
}

.vehicle-right-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Gallery — category chips, mobile snap rail, desktop crossfade, thumbs.
   -------------------------------------------------------------------------- */

.vehicle-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-categories {
  display: flex;
  gap: 0.5rem;
}

.gallery-chip {
  flex: 1;
  min-height: 2.75rem;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.5rem;
  border: 1px solid var(--color-hairline-dark);
  background: none;
  color: var(--color-bone);
  cursor: pointer;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}

@media (width >= 40rem) {
  .gallery-chip {
    flex: none;
    padding-inline: 1rem;
  }
}

.gallery-chip:hover {
  border-color: var(--color-hairline-dark-strong);
}

.gallery-chip.is-active {
  border-color: var(--color-accent-on-dark);
  color: var(--color-accent-on-dark);
}

/* Mobile: native horizontal snap-scroll rail, shown < 768px only. */
.gallery-mobile-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

@media (width >= 48rem) {
  .gallery-mobile-rail {
    display: none;
  }
}

.gallery-mobile-group {
  display: flex;
  gap: 1rem;
  flex: none;
  width: 100%;
}

.gallery-mobile-group[hidden] {
  display: none;
}

.gallery-mobile-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: var(--radius-sm);
}

.gallery-mobile-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop: crossfading single main image, shown >= 768px only. */
.gallery-main {
  display: none;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

@media (width >= 48rem) {
  .gallery-main {
    display: block;
  }
}

.gallery-main-group {
  position: absolute;
  inset: 0;
}

.gallery-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 240ms linear;
}

.gallery-main-image.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-main-image {
    transition: none;
  }
}

.gallery-thumbs {
  display: none;
}

@media (width >= 48rem) {
  .gallery-thumbs {
    display: block;
  }
}

.gallery-thumb-group {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.gallery-thumb-group[hidden] {
  display: none;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 6rem;
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid var(--color-hairline-dark);
  background: none;
  padding: 0;
  cursor: pointer;
  transition: border-color 150ms ease-out;
}

.gallery-thumb:hover {
  border-color: var(--color-hairline-dark-strong);
}

.gallery-thumb.is-active {
  border-color: var(--color-accent-on-dark);
}

.gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Lightbox — full-screen photo viewer, built by js/vehicle.js.
   -------------------------------------------------------------------------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background-color: rgb(11 13 14 / 0.97);
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.lightbox-counter {
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-bone);
}

.lightbox-close {
  display: flex;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-bone);
  cursor: pointer;
}

.lightbox-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.lightbox-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
}

.lightbox-nav-btn {
  position: absolute;
  display: flex;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-bone);
  cursor: pointer;
}

.lightbox-nav-btn.prev {
  left: 0.5rem;
}

.lightbox-nav-btn.next {
  right: 0.5rem;
}

@media (width >= 40rem) {
  .lightbox-nav-btn.prev {
    left: 1.5rem;
  }
  .lightbox-nav-btn.next {
    right: 1.5rem;
  }
}

.lightbox-nav-btn svg {
  width: 2rem;
  height: 2rem;
}

.lightbox-image-wrap {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 64rem;
}

.lightbox-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-caption {
  font-size: 0.875rem;
  line-height: 1.55;
  padding: 0 1.5rem 1.5rem;
  text-align: center;
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   Title block
   -------------------------------------------------------------------------- */

.vehicle-title-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vehicle-variant {
  color: var(--color-steel);
}

.vehicle-title-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Extends components.css's .price-block with the detail-page size step. */
.price-block.size-detail .price-figure {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   Enquiry panel
   -------------------------------------------------------------------------- */

.enquiry-panel {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid var(--color-hairline-dark);
  background-color: var(--color-graphite);
  padding: 1.5rem;
}

@media (width >= 40rem) {
  .enquiry-panel {
    padding: 2rem;
  }
}

.enquiry-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.enquiry-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.enquiry-monthly-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.enquiry-monthly {
  color: var(--color-steel);
}

.enquiry-indicative {
  border: 1px solid var(--color-hairline-dark);
  padding: 0.25rem 0.5rem;
  color: var(--color-steel);
}

.enquiry-meta {
  color: var(--color-steel);
}

.enquiry-cta-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (width >= 40rem) {
  .enquiry-cta-row {
    flex-direction: row;
  }
}

.enquiry-cta-flex {
  flex: 1;
}

.enquiry-cta-video {
  height: auto;
  min-height: 3.5rem;
  white-space: normal;
  padding-block: 1rem;
  text-align: center;
}

.enquiry-rule {
  width: 100%;
  border: none;
  border-top: 1px solid var(--color-hairline-dark);
}

.enquiry-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.enquiry-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.enquiry-phone {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--color-bone);
}

.enquiry-phone:hover {
  color: var(--color-accent-on-dark);
}

.enquiry-appointment-note {
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   Key facts — hairline-ruled 2-column grid (the detail page always uses the
   2-column form; a trailing odd fact spans both columns).
   -------------------------------------------------------------------------- */

.key-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid var(--color-hairline-dark);
  border-top: 1px solid var(--color-hairline-dark);
}

.key-facts-cell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-hairline-dark);
  border-right: 1px solid var(--color-hairline-dark);
  padding: 1.5rem;
}

.key-facts-cell--span2 {
  grid-column: span 2;
}

.key-facts-term {
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   Closing CTA card
   -------------------------------------------------------------------------- */

.cta-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid var(--color-hairline-dark);
  background-color: var(--color-graphite);
  padding: 2rem;
}

@media (width >= 40rem) {
  .cta-card {
    padding: 3rem;
  }
}

.cta-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-card-body {
  color: var(--color-steel);
}

.cta-card-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (width >= 40rem) {
  .cta-card-actions {
    flex-direction: row;
  }
}

.cta-card-flex {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Mobile CTA bar — < 1024px only, revealed once the sentinel scrolls out of
   view. Hairline top border only, never a blurred shadow.
   -------------------------------------------------------------------------- */

.mobile-cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--color-graphite);
  border-top: 1px solid var(--color-hairline-dark);
  padding: 1rem 1.5rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 200ms var(--ease-editorial);
}

.mobile-cta-bar.is-visible {
  transform: translateY(0);
}

.mobile-cta-bar[hidden] {
  display: none;
}

@media (width >= 64rem) {
  .mobile-cta-bar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-cta-bar {
    transition: none;
  }
}

.mobile-cta-price {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mobile-cta-price-figure {
  color: var(--color-bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-cta-monthly {
  color: var(--color-steel);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-cta-button {
  height: 3rem;
  flex-shrink: 0;
}

.mobile-cta-spacer {
  height: 5rem;
}

@media (width >= 64rem) {
  .mobile-cta-spacer {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Below-the-fold: related vehicles + recently sold
   -------------------------------------------------------------------------- */

.vehicle-below-fold {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.related-vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2.5rem;
  row-gap: 3.5rem;
}

@media (width >= 48rem) {
  .related-vehicle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.recently-sold-list {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.recently-sold-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 14rem;
  flex-shrink: 0;
  padding-top: 1.5rem;
}

.recently-sold-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
}

.recently-sold-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recently-sold-image img.sold {
  filter: grayscale(1);
  opacity: 0.6;
}

.recently-sold-meta {
  color: var(--color-steel);
}

/* --------------------------------------------------------------------------
   Enquiry dialog — accessible modal, portalless (rendered in-page, shown
   with [hidden] toggled by js/vehicle.js). Field primitives here are scoped
   to this dialog only.
   -------------------------------------------------------------------------- */

.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: rgb(11 13 14 / 0.8);
}

.dialog-overlay[hidden] {
  display: none;
}

@media (width >= 40rem) {
  .dialog-overlay {
    align-items: center;
  }
}

.dialog-panel {
  position: relative;
  display: flex;
  width: 100%;
  max-height: 85vh;
  flex-direction: column;
  overflow-y: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-hairline-dark);
  background-color: var(--color-graphite);
  margin: 1.5rem;
  padding: 1.5rem;
}

@media (width >= 40rem) {
  .dialog-panel {
    max-width: 42rem;
    margin: 0;
    padding: 2rem;
  }
}

.dialog-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  display: flex;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: none;
  border: none;
  color: var(--color-bone);
  cursor: pointer;
}

.dialog-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.dialog-title {
  padding-right: 2rem;
  color: var(--color-bone);
}

.dialog-description {
  margin-top: 0.5rem;
  color: var(--color-steel);
}

.dialog-body {
  margin-top: 1.5rem;
}

.dialog-body[hidden] {
  display: none;
}

[data-enquiry-form] {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: none;
  padding: 0;
  margin: 0;
}

.field-label {
  color: var(--color-bone);
}

.field-control {
  height: 3rem;
  width: 100%;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  background-color: var(--color-graphite);
  color: var(--color-bone);
  padding-inline: 1rem;
  font-size: 1rem;
  transition: border-color 150ms ease-out;
}

.field-control::placeholder {
  color: var(--color-steel);
}

.field-control:focus {
  border-color: var(--color-hairline-dark-strong);
}

.field-control.has-error {
  border-color: var(--color-accent-on-dark);
}

.field-textarea {
  height: auto;
  padding-block: 0.75rem;
  resize: vertical;
}

.field-hint {
  color: var(--color-steel);
}

.field-error {
  color: var(--color-accent-on-dark);
}

.field-error[hidden] {
  display: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-option {
  cursor: pointer;
}

.chip-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.chip-pill {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-bone);
  transition: border-color 150ms ease-out, color 150ms ease-out;
}

.chip-input:checked + .chip-pill {
  border-color: var(--color-accent-on-dark);
  color: var(--color-accent-on-dark);
}

.chip-input:focus-visible + .chip-pill {
  outline: 2px solid var(--color-accent-on-dark);
  outline-offset: 2px;
}

.checkbox-option {
  display: flex;
  min-height: 2.75rem;
  cursor: pointer;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-input {
  height: 1.25rem;
  width: 1.25rem;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark-strong);
  background: transparent;
  accent-color: var(--color-accent);
}

.dialog-submit {
  width: 100%;
}

.form-success {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--color-hairline-dark);
  padding-top: 1.5rem;
}

.form-success-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-bone);
}

.form-success-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.form-success-body {
  color: var(--color-steel);
}

.form-success-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-success-link {
  font-size: 0.875rem;
  color: var(--color-bone);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-success-link:hover {
  color: var(--color-accent-on-dark);
}

/*--------------------------------------------------------------
# Contact Form 7
----------------------------------------------------------------
Wtyczka generuje wlasny markup, ktorego nie da sie w calosci ubrac
w klasy designu. Same kontrolki dostaja .field-control przez opcje
"class:" w szablonie formularza (docs/cf7-contact-form.txt), a element
<form> dostaje klase .contact-form filtrem wpcf7_form_class_attr
z inc/contact-form-7.php. Ponizej zostaja tylko te fragmenty,
ktorych CF7 nie pozwala otagowac: wrappery pol, komunikaty
walidacji i lista radio przerobiona na "chipy".
--------------------------------------------------------------*/

/* Wrapper kazdej kontrolki jest inline'owy - bez tego input nie ma
   pelnej szerokosci pola. */
.wpcf7-form-control-wrap {
  display: block;
}

/* Podpowiedz walidacyjna pod polem - ten sam wyglad co .field-error. */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-accent-on-dark);
}

.field-control.wpcf7-not-valid {
  border-color: var(--color-accent-on-dark);
}

/* Zbiorczy komunikat pod przyciskiem. */
.wpcf7-response-output {
  margin: 1.5rem 0 0;
  border: 1px solid var(--color-hairline-dark);
  border-radius: var(--radius-xs);
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-bone);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: var(--color-accent-on-dark);
  color: var(--color-accent-on-dark);
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--color-hairline-dark-strong);
}

.wpcf7-spinner {
  background-color: var(--color-steel);
}

/* Przycisk wysylki rozciaga sie na cala kolumne, jak w designie. */
.wpcf7 .btn[type="submit"] {
  width: 100%;
}

/* Lista radio jako "chipy". CF7 buduje label > input + span, czyli ten sam
   uklad rodzenstwa co .chip-input + .chip-label w designie. */
.chip-row .wpcf7-form-control-wrap,
.chip-row .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-row .wpcf7-list-item {
  margin: 0;
}

.chip-row .wpcf7-list-item label {
  cursor: pointer;
}

.chip-row .wpcf7-list-item input[type="radio"],
.chip-row .wpcf7-list-item input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.chip-row .wpcf7-list-item-label {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-hairline-dark);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-bone);
  transition:
    color 150ms ease-out,
    border-color 150ms ease-out;
}

.chip-row .wpcf7-list-item input:checked + .wpcf7-list-item-label {
  border-color: var(--color-accent-on-dark);
  color: var(--color-accent-on-dark);
}

.chip-row .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid var(--color-accent-on-dark);
  outline-offset: 2px;
}

/* Dostepnosc
--------------------------------------------- */

/* Tekst tylko dla czytnikow ekranu. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-bone);
  border-radius: var(--radius-xs);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--color-ink);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Nie pokazuj obrysu na celu skip-linka. */
#primary[tabindex="-1"]:focus,
#main[tabindex="-1"]:focus {
  outline: 0;
}

/* Wyrownania
--------------------------------------------- */
.alignleft {

  /*rtl:ignore*/
  float: left;

  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {

  /*rtl:ignore*/
  float: right;

  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

/* Wpisy i strony
--------------------------------------------- */
.sticky {
  display: block;
}

.updated:not(.published) {
  display: none;
}


/* Komentarze
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

.widget select {
  max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

.custom-logo-link {
  display: inline-block;
}

/* Podpisy
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galerie
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}
