/* =========================================================
   K Garáž – styly webu (tmavý vzhled)
   ========================================================= */

/* ---------- 0. Písmo Saira (uložené přímo na webu, bez načítání z Google Fonts) ----------
   Proměnné písmo s osami šířky a tloušťky; licence SIL Open Font License 1.1 je ve fonts/OFL.txt */
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url("../fonts/saira-latin-ext-wdth-normal.woff2") format("woff2-variations"), url("../fonts/saira-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url("../fonts/saira-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/saira-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Saira";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url("../fonts/saira-latin-ext-wdth-italic.woff2") format("woff2-variations"), url("../fonts/saira-latin-ext-wdth-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Saira";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url("../fonts/saira-latin-wdth-italic.woff2") format("woff2-variations"), url("../fonts/saira-latin-wdth-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Proměnné ---------- */
:root {
  --bg: #0a0b0d;          /* černé pozadí celého webu */
  --surface: #131518;     /* karty a dlaždice */
  --surface-2: #1a1d21;   /* najetí myší, pole formulářů */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);

  --text: #f3f4f6;
  --text-2: #a9aeb5;
  --text-3: #878d95;
  --chrome: #c9ced4;

  --red: #e1131b;
  --red-hover: #c4101a;   /* tmavší, aby bílý text měl dost kontrastu */
  --red-text: #ff4a51;    /* červená pro drobný text na tmavém pozadí */

  --font: "Saira", "Bahnschrift", "DIN Alternate", "Segoe UI", system-ui, sans-serif;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 100px;
  --radius: 6px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Základ ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

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

a {
  color: var(--red-text);
}

a:hover {
  color: #fff;
}

button,
input,
select {
  font: inherit;
}

address {
  font-style: normal;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 12px 18px;
  background: #fff;
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 3. Tlačítka a odkazy ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  font-weight: 700;
  font-size: 16px;
  font-stretch: 112.5%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn .icon {
  font-size: 18px;
}

/* Hlavní červené tlačítko se šikmými hranami podle loga */
.btn--primary {
  padding-inline: 34px;
  background: var(--red);
  color: #fff;
  clip-path: polygon(13px 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
}

.btn--primary:hover {
  background: var(--red-hover);
  color: #fff;
}

.btn--primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
}

.btn--ghost,
.btn--line {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line-2);
}

.btn--ghost:hover,
.btn--line:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.6);
}

.text-link,
.text-link--light {
  display: inline-block;
  padding: 10px 0;
  color: #fff;
  font-weight: 700;
  font-stretch: 112.5%;
  line-height: 24px;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--red-text);
}

/* ---------- 4. Hlavička ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.site-header--solid,
.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(10, 11, 13, 0.94);
  border-bottom-color: var(--line);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header--solid,
  .site-header.is-scrolled {
    background: rgba(10, 11, 13, 0.78);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.site-header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.site-header__logo img {
  width: auto;
  height: 42px;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  gap: 2px;
}

.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 13px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 17px;
  font-stretch: 112.5%;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.2s, box-shadow 0.2s;
}

.site-nav__link:hover {
  color: #fff;
}

.site-nav__link[aria-current] {
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--red);
}

.site-nav__link:focus-visible {
  outline-offset: -3px;
}

.site-nav__social {
  display: none;
}

/* Sociální sítě vedle telefonu */
.header-social {
  display: flex;
  align-items: center;
}

.header-social__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  font-stretch: 112.5%;
  text-decoration: none;
  transition: color 0.2s;
}

.header-social__link:hover {
  color: #fff;
}

.header-call {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  font-stretch: 112.5%;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.header-call:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.header-call .icon {
  font-size: 20px;
  color: var(--red);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  font-stretch: 112.5%;
  cursor: pointer;
}

.menu-toggle .icon {
  font-size: 18px;
  stroke-width: 2;
}

.menu-toggle .icon--close,
.menu-toggle[aria-expanded="true"] .icon--menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon--close {
  display: block;
}

@media (max-width: 1160px) {
  .header-call {
    padding: 0;
  }

  .header-call__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 1000px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-social {
    display: none;
  }

  .header-call {
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-menu-open .site-nav {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }

  .site-nav__link {
    min-height: 54px;
    padding: 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }

  .site-nav__link[aria-current] {
    padding-left: 14px;
    box-shadow: inset 3px 0 0 var(--red);
  }

  .site-nav__social {
    display: flex;
    gap: 12px;
    padding: 0 var(--gutter) 24px;
  }

  .site-nav__social a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--line-2);
    color: #fff;
    font-weight: 600;
    font-stretch: 112.5%;
    text-decoration: none;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    gap: 10px;
  }

  .site-header__logo img {
    height: 30px;
  }

  .menu-toggle {
    padding: 0 12px;
  }
}

/* ---------- 5. Hero (úvod) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(680px, min(100vh, calc(56.25vw + 160px)));
  min-height: max(680px, min(100svh, calc(56.25vw + 160px)));
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Ztmavení nahoře, dole a vlevo kvůli čitelnosti textu */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0.75) 0%, rgba(10, 11, 13, 0) 32%),
    linear-gradient(0deg, rgba(10, 11, 13, 0.92) 0%, rgba(10, 11, 13, 0) 30%),
    linear-gradient(90deg, rgba(10, 11, 13, 0.5) 0%, rgba(10, 11, 13, 0) 45%);
  pointer-events: none;
}

/* Světelný odlesk, který při načtení přejede přes auto */
.hero__sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.13) 47%, rgba(255, 255, 255, 0.04) 53%, transparent 61%);
  background-size: 280% 100%;
  background-position: 120% 0;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

/* Logo uprostřed nad autem */
.hero__brand {
  display: flex;
  justify-content: center;
}

.hero__heading {
  margin: 0;
}

.hero__logo {
  width: clamp(240px, calc(70vh - 247px), 470px);
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.7));
}

@supports (height: 100svh) {
  .hero__logo {
    width: clamp(240px, calc(70svh - 247px), 470px);
  }
}

.hero__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding-top: calc(var(--header-h) + clamp(20px, 3.5vh, 56px));
  padding-bottom: clamp(24px, 4vh, 44px);
}

/* ---------- 6. Vyhledávání a filtry ---------- */
.finder,
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
}

.finder {
  background: rgba(10, 11, 13, 0.7);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.filters {
  background: var(--surface);
  border: 1px solid var(--line);
}

.finder__type {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.finder__field {
  flex: 2 1 170px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.finder__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}

.segmented {
  display: flex;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented label {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  padding: 0 16px;
  color: var(--text-2);
  font-weight: 700;
  font-size: 15px;
  font-stretch: 112.5%;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.segmented label:hover {
  color: #fff;
}

.segmented input:checked + label {
  background: #fff;
  color: var(--bg);
}

.segmented input:focus-visible + label {
  outline: 3px solid var(--red);
  outline-offset: -3px;
}

.select {
  position: relative;
}

.select select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--surface-2);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.select select:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.select option {
  background: var(--surface-2);
  color: #fff;
}

.select::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--chrome);
  border-bottom: 2px solid var(--chrome);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.finder__submit {
  flex: 1 1 210px;
  min-height: 48px;
  white-space: nowrap;
}

.finder__note {
  flex: 1 1 100%;
  font-size: 14px;
  color: var(--chrome);
}

.filters__reset {
  flex: 0 0 auto;
  min-height: 48px;
}

/* ---------- 7. Rozcestník a záložky ---------- */
.quicklinks {
  padding-block: 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 12px;
}

/* Dlaždice s velkými ikonami */
.quicklink {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  height: 100%;
  min-height: 136px;
  padding: 22px 22px 20px;
  background: var(--surface);
  color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 18px;
  font-stretch: 112.5%;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.quicklink .icon {
  font-size: 50px;
  color: var(--red);
  stroke-width: 1.2;
}

.quicklink__label {
  display: block;
}

.quicklink .quicklink__chev {
  position: absolute;
  top: 22px;
  right: 18px;
  font-size: 20px;
  color: var(--text-3);
  stroke-width: 2;
  transition: color 0.2s, transform 0.2s;
}

.quicklink:hover {
  color: #fff;
  background: var(--surface-2);
  border-color: rgba(225, 19, 27, 0.55);
  box-shadow: 0 18px 36px -24px rgba(225, 19, 27, 0.6);
  transform: translateY(-2px);
}

.quicklink:hover .quicklink__chev {
  color: #fff;
  transform: translateX(3px);
}

.quicklink:focus-visible {
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quicklink {
    gap: 16px;
    min-height: 118px;
    padding: 18px 16px 16px;
    font-size: 16px;
  }

  .quicklink .icon {
    font-size: 42px;
  }

  .quicklink .quicklink__chev {
    top: 18px;
    right: 14px;
  }
}

/* ---------- 8. Sekce ---------- */
.section {
  padding-block: clamp(64px, 8vw, 112px);
}

/* Všechny sekce jsou černé; dvě sekce za sebou dělí jen jedna mezera */
.section + .section,
.detail-top + div > .section:first-child {
  padding-top: 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 40px;
  margin-bottom: 40px;
}

.section__title {
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.005em;
}

.section__title--sm {
  margin-bottom: 24px;
  font-size: clamp(26px, 2.6vw, 36px);
}

.section__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
}

/* ---------- 9. Karty vozidel ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.95);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__photos {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(10, 11, 13, 0.72);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  font-stretch: 112.5%;
  line-height: 1.2;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.card__photos {
  right: 12px;
}

.card__photos .icon {
  font-size: 15px;
  stroke-width: 2;
}

/* Cenovka – šikmý štítek vlevo dole (galerie v detailu) */
.plate {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 40%;
  height: 19%;
  display: flex;
  align-items: center;
  padding: 0 28px 0 16px;
  background: rgba(10, 11, 13, 0.94);
  color: #fff;
  box-shadow: inset 4px 0 0 var(--red);
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 20px;
}

.card__title {
  font-weight: 700;
  font-size: 19px;
  font-stretch: 110%;
  line-height: 1.3;
}

.card__link {
  color: #fff;
  text-decoration: none;
}

.card__link:hover {
  color: #fff;
}

/* Celá karta je klikací */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card__link:focus-visible {
  outline: none;
}

.card:has(.card__link:focus-visible) {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-3);
}

.card__meta span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 13px;
  margin-right: 10px;
  vertical-align: -1px;
  background: var(--line-2);
}

/* ---------- 12. Podstránky ---------- */
.page-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px clamp(40px, 5vw, 80px);
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.page-hero__copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-hero__title {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(42px, 5.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.01em;
}

.page-hero__lead {
  max-width: 34em;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--chrome);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-3);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
}

.breadcrumbs a {
  color: var(--chrome);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.empty,
.noscript {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 56px 24px;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  text-align: center;
  font-size: 17px;
}

/* ---------- 13. Patička ---------- */
.site-footer {
  position: relative;
  background: var(--bg);
  color: var(--text-2);
  border-top: 1px solid var(--line);
}

/* Červený úsek na horní hraně, zarovnaný s okrajem obsahu (stejný motiv jako u vizitky a cen) */
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: max(var(--gutter), (100% - var(--container)) / 2);
  width: 64px;
  height: 3px;
  background: var(--red);
}

/* Čtyři sloupce: logo s popisem a sociálními sítěmi, Služby, Odkazy, Kontakt */
.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px clamp(32px, 4vw, 64px);
  padding-block: clamp(52px, 5.5vw, 80px) clamp(44px, 4.5vw, 64px);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 330px;
}

.foot-brand__logo {
  display: block;
}

.foot-brand__logo img {
  width: auto;
  height: 34px;
}

.foot-brand__text {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

.foot-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: -7px;
}

.foot-col__title {
  margin-bottom: 16px;
  color: #fff;
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.footer-link:hover {
  color: #fff;
  text-decoration-color: var(--red);
}

.foot-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-style: normal;
}

.foot-contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

a.foot-contact__item:hover {
  color: #fff;
}

.foot-contact__item .icon {
  flex: 0 0 auto;
  font-size: 17px;
  color: var(--red);
}

/* Spodní lišta: rok, autor webu, zpět nahoru */
.foot-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 32px;
  padding-block: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14px;
}

.foot-bottom .site-credit {
  justify-self: center;
}

.to-top {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text-2);
  font-weight: 600;
  font-stretch: 112.5%;
  text-decoration: none;
  transition: color 0.2s;
}

.to-top .icon {
  box-sizing: content-box;
  padding: 7px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 14px;
  stroke-width: 2.2;
  transform: rotate(-90deg);
  transition: background-color 0.2s, border-color 0.2s;
}

.to-top:hover {
  color: #fff;
}

.to-top:hover .icon {
  background: var(--red);
  border-color: var(--red);
}

/* Tablet: logo s popisem nahoře, pod ním tři sloupce */
@media (max-width: 1000px) {
  .foot-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .foot-brand {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}

/* Telefon: Služby a Odkazy vedle sebe, Kontakt přes celou šířku */
@media (max-width: 640px) {
  .foot-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .foot-col--contact {
    grid-column: 1 / -1;
  }

  .foot-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 8px 14px;
  }

  .foot-bottom .site-credit {
    grid-row: 2;
    justify-self: start;
  }
}

/* ---------- 14. Mobil (úvod) ---------- */
@media (max-width: 760px) {
  .hero {
    min-height: 0;
    padding-bottom: 28px;
  }

  .hero__inner {
    display: contents;
  }

  .hero__brand {
    order: 1;
    padding: calc(var(--header-h) + 20px) var(--gutter) 0;
  }

  .hero__logo {
    width: min(300px, 74vw);
  }

  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    order: 2;
    aspect-ratio: 16 / 9;
    margin: 4px 0;
  }

  .hero__media::after {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 11, 13, 0) 24%, rgba(10, 11, 13, 0) 76%, var(--bg) 100%);
  }

  .hero .finder {
    order: 3;
    margin-inline: var(--gutter);
  }

  .finder__type,
  .finder__field,
  .finder__submit,
  .filters__reset {
    flex: 1 1 100%;
  }
}

/* ---------- 15. Načítací obrazovka s řadicí pákou ---------- */
.preloader {
  display: none;
}

.has-preloader {
  overflow: hidden;
}

.has-preloader .preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: #fff;
}

/* Červená hrana, která je vidět, když se obrazovka vytahuje nahoru */
.preloader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--red);
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out);
}

.shifter {
  width: min(300px, 66vw);
  height: auto;
  overflow: visible;
}

.shifter__slot {
  fill: none;
  stroke: #25282d;
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shifter__edge {
  fill: none;
  stroke: rgba(201, 206, 212, 0.32);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shifter__label {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  font-stretch: 125%;
  fill: #5d636b;
  text-anchor: middle;
}

.shifter__knob {
  transform: translate(120px, 100px);
  filter: drop-shadow(0 0 10px rgba(225, 19, 27, 0.55));
}

.shifter__knob-base {
  fill: var(--red);
}

.shifter__knob-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.5;
}

.shifter__knob-dot {
  fill: #fff;
}

.preloader__logo {
  width: 190px;
  height: auto;
}

.preloader__bar {
  position: relative;
  width: 190px;
  height: 2px;
  overflow: hidden;
  background: rgba(201, 206, 212, 0.15);
}

.preloader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Krátké řazení 1 → 2 → 3 (cca 1 s) */
.has-preloader .shifter__knob {
  animation: shift 1s linear 0.05s both;
}

.has-preloader .shifter__label--1 { animation: gear-1 1s linear 0.05s both; }
.has-preloader .shifter__label--2 { animation: gear-2 1s linear 0.05s both; }
.has-preloader .shifter__label--3 { animation: gear-3 1s linear 0.05s both; }

.has-preloader .preloader__bar::after {
  animation: preload-bar 1.05s var(--ease-in-out) both;
}

@keyframes shift {
  0% { transform: translate(120px, 100px); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  12% { transform: translate(60px, 100px); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  26%, 34% { transform: translate(60px, 40px); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  56%, 64% { transform: translate(60px, 160px); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  72% { transform: translate(60px, 100px); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  80% { transform: translate(120px, 100px); animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1); }
  92%, 100% { transform: translate(120px, 40px); }
}

@keyframes gear-1 { 0%, 25% { fill: #5d636b; } 26%, 34% { fill: #fff; } 38%, 100% { fill: #5d636b; } }
@keyframes gear-2 { 0%, 55% { fill: #5d636b; } 56%, 64% { fill: #fff; } 68%, 100% { fill: #5d636b; } }
@keyframes gear-3 { 0%, 91% { fill: #5d636b; } 92%, 100% { fill: var(--red); } }

@keyframes preload-bar {
  to { transform: scaleX(1); }
}

/* Odjezd obrazovky nahoru */
.preloader-leaving .preloader {
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-in-out) 0.05s;
}

.preloader-leaving .preloader__inner {
  opacity: 0;
  transform: translateY(-20px);
}

/* ---------- 16. Detail vozidla ---------- */
.gallery__stage {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  touch-action: pan-y;
}

.gallery__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery__open:focus-visible {
  outline-offset: -3px;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.gallery__plate {
  min-width: min(40%, 300px);
  height: min(19%, 80px);
  font-size: clamp(17px, 1.6vw, 22px);
}

.gallery__hint,
.gallery__count {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(10, 11, 13, 0.72);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  font-stretch: 112.5%;
  line-height: 1.2;
  pointer-events: none;
}

.gallery__hint {
  right: 12px;
}

.gallery__hint .icon {
  font-size: 15px;
  stroke-width: 2;
}

.gallery__count {
  left: 12px;
  font-variant-numeric: tabular-nums;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 11, 13, 0.72);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.gallery__nav:hover {
  background: var(--red);
}

.gallery__nav .icon {
  font-size: 22px;
  stroke-width: 2.2;
}

.gallery__nav--prev {
  left: 12px;
}

.gallery__nav--next {
  right: 12px;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.gallery__thumb {
  aspect-ratio: 5 / 3;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb:hover {
  opacity: 1;
}

.gallery__thumb[aria-current="true"] {
  border-color: var(--red);
  opacity: 1;
}

.summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.summary__type {
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--chrome);
  font-weight: 600;
  font-size: 13px;
  font-stretch: 112.5%;
}

.summary__title {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.summary__price {
  padding-left: 14px;
  box-shadow: inset 4px 0 0 var(--red);
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
}

.keyfacts {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 4px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.keyfacts div {
  padding: 14px 16px;
  background: var(--surface);
}

.keyfacts dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}

.keyfacts dd {
  margin-top: 2px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  font-stretch: 110%;
}

.summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.detail-missing {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: clamp(24px, 4vw, 56px);
}

/* ---------- 17. Prohlížeč fotek na celou obrazovku ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 7, 8, 0.97);
  color: #fff;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox::backdrop {
  background: rgba(6, 7, 8, 0.97);
}

.lightbox-open {
  overflow: hidden;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--gutter);
}

.lightbox__title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 16px;
  font-stretch: 112.5%;
}

.lightbox__sub {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-weight: 400;
  font-size: 14px;
  font-stretch: 100%;
}

.lightbox__count {
  font-size: 14px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.lightbox__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  font-stretch: 112.5%;
  cursor: pointer;
}

.lightbox__close:hover {
  border-color: #fff;
}

.lightbox__close .icon {
  font-size: 18px;
  stroke-width: 2;
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px 80px;
  touch-action: pan-y;
}

.lightbox__figure {
  position: relative;
  display: flex;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

/* Fotka se nikdy nezvětší nad svou skutečnou velikost, aby nebyla rozmazaná */
.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 210px);
  transition: opacity 0.25s ease;
}

.lightbox__plate {
  min-width: min(40%, 300px);
  height: min(19%, 80px);
  font-size: clamp(16px, 1.6vw, 22px);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(10, 11, 13, 0.6);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.lightbox__nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox__nav .icon {
  font-size: 24px;
  stroke-width: 2.2;
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.lightbox__thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px var(--gutter) 22px;
  overflow-x: auto;
}

.lightbox__thumbs .gallery__thumb {
  flex: 0 0 auto;
  width: 104px;
}

@media (max-width: 760px) {
  .lightbox__stage {
    padding: 8px 0;
  }

  .lightbox__figure {
    border-radius: 0;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }

  .lightbox__nav--prev {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }

  .lightbox__close span {
    display: none;
  }
}

/* ---------- 20. Animace úvodu ---------- */
/* Platí jen se zapnutým JavaScriptem a když uživatel nevypnul animace */
@media (prefers-reduced-motion: no-preference) {
  .js .site-header--intro {
    opacity: 0;
    transform: translate3d(0, -12px, 0);
  }

  .js .hero__img {
    opacity: 0;
    transform: scale(1.08);
    filter: brightness(0.25);
  }

  .js .hero__logo {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.96);
  }

  .js .hero .finder {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }

  .is-ready .site-header--intro {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease 0.2s, transform 0.9s var(--ease-out) 0.2s, background-color 0.35s ease, border-color 0.35s ease;
  }

  .is-ready .hero__img {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 1.2s var(--ease-out), transform 2.6s var(--ease-out), filter 2.2s var(--ease-out);
  }

  .is-ready .hero__logo {
    opacity: 1;
    transform: none;
    transition: opacity 1.1s ease 0.35s, transform 1.4s var(--ease-out) 0.35s;
  }

  .is-ready .hero .finder {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s ease 0.95s, transform 1.1s var(--ease-out) 0.95s;
  }

  .is-ready .hero__sheen {
    animation: hero-sheen 1.8s var(--ease-in-out) 0.9s both;
  }

  @keyframes hero-sheen {
    0% {
      opacity: 0;
      background-position: 120% 0;
    }
    20%,
    80% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      background-position: -20% 0;
    }
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- 21. Úvod podstránek ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--header-h);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(225, 19, 27, 0.14) 0%, rgba(225, 19, 27, 0) 60%),
    var(--bg);
  color: #fff;
  border-bottom: 1px solid var(--line);
}

/* Velký obrysový nápis v pozadí */
.page-hero::before {
  content: attr(data-watermark);
  position: absolute;
  left: -0.04em;
  bottom: -0.24em;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(110px, 17vw, 280px);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.page-hero__inner {
  min-height: clamp(360px, 34vw, 500px);
}

/* Fotka v šikmém rámu s červenou hranou podle loga */
.page-hero__media {
  position: relative;
  flex: 1 1 420px;
  min-width: 0;
  max-width: 620px;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  clip-path: polygon(11% 0, calc(11% + 5px) 0, 5px 100%, 0 100%);
  pointer-events: none;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

/* ---------- 22. Větší karty (Mohlo by vás zajímat v detailu vozidla) ---------- */
.cards--large {
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 28px;
}

.cards--large .card__body {
  padding: 20px 24px 24px;
}

.cards--large .card__title {
  font-size: 20px;
}


/* ---------- 23. Detail vozidla ---------- */
.detail-top {
  padding-top: calc(var(--header-h) + clamp(24px, 3vw, 40px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(225, 19, 27, 0.1) 0%, rgba(225, 19, 27, 0) 70%),
    var(--bg);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  grid-template-areas:
    "gallery aside"
    "info aside";
  gap: 40px clamp(32px, 4vw, 56px);
  margin-top: 24px;
}

.detail-layout > .gallery {
  grid-area: gallery;
}

.detail-aside {
  grid-area: aside;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.detail-aside__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-aside__card .keyfacts div {
  background: var(--surface);
}

.detail-aside__card .summary__actions {
  align-self: stretch;
}

.detail-aside__card .summary__actions .btn {
  flex: 1 1 160px;
}

.detail-aside__note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 14px;
}

.detail-aside__note .icon {
  font-size: 16px;
  color: var(--red);
}

.detail-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.detail-block__title {
  margin-bottom: 18px;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.1;
}

.detail-text {
  max-width: 40em;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 10px;
}

.spec {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spec .icon {
  grid-row: 1 / 3;
  font-size: 28px;
  color: var(--red);
  stroke-width: 1.5;
}

.spec dt {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
}

.spec dd {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  font-stretch: 110%;
  line-height: 1.3;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}

.chips .icon {
  font-size: 16px;
  color: var(--red);
  stroke-width: 2.4;
}

@media (max-width: 960px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "gallery"
      "aside"
      "info";
  }

  .detail-aside {
    position: static;
  }
}

/* ---------- 24. Kroky (Jak to probíhá, Jak si půjčit) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step__num {
  color: var(--red);
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 44px;
  line-height: 1;
}

.step__title {
  font-weight: 700;
  font-size: 19px;
  font-stretch: 112.5%;
  line-height: 1.25;
}

.step__text {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- 25. O nás ---------- */
/* Úvod: noční fotka auta vpravo, vlevo plynule přechází do pozadí; text vlevo */
.about-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--header-h);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(225, 19, 27, 0.12) 0%, rgba(225, 19, 27, 0) 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.about-head__media {
  position: absolute;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  z-index: -1;
  width: min(66%, 1080px);
}

.about-head__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 55%;
}

.about-head__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10, 11, 13, 0.6) 22%, rgba(10, 11, 13, 0) 50%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 11, 13, 0) 28%);
}

.about-head__inner {
  display: flex;
  align-items: center;
  min-height: clamp(420px, 38vw, 580px);
  padding-block: clamp(40px, 5vw, 72px);
}

.about-head__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 540px;
}

/* Kdo jsme a co u nás najdete */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 40px clamp(40px, 6vw, 96px);
}

.about-intro__lead {
  margin-top: 24px;
  max-width: 30em;
  color: #fff;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.55;
}

.about-intro__text {
  margin-top: 14px;
  max-width: 36em;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
}

/* Slogan se šikmou červenou linkou podle loga */
.about-intro__sign {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1;
}

.about-intro__sign::before {
  content: "";
  flex: 0 0 auto;
  width: 48px;
  height: 4px;
  background: var(--red);
  transform: skewX(-24deg);
}

.about-offer {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.about-offer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(24px, 3vw, 36px);
  width: 64px;
  height: 3px;
  background: var(--red);
  transform: skewX(-24deg);
}

.about-offer__title {
  margin-bottom: 18px;
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.1;
}

.about-offer .ticks {
  gap: 0;
}

.about-offer .ticks li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: #fff;
  font-size: 16px;
}

.about-offer .ticks li:first-child {
  border-top: 0;
  padding-top: 0;
}

.about-offer .ticks .icon {
  margin-top: 4px;
}

/* Motto přes celou šířku, velkým písmem */
.about-motto {
  padding-block: clamp(56px, 7vw, 104px);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(50% 120% at 50% 100%, rgba(225, 19, 27, 0.14) 0%, rgba(225, 19, 27, 0) 70%),
    var(--surface);
  text-align: center;
}

.about-motto__text {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(40px, 6.6vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.about-motto__text span {
  display: block;
}

/* Druhý řádek jen obrysem – stejný motiv jako velký nápis v pozadí úvodu podstránek */
.about-motto__text span + span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
}

/* Bez JavaScriptu hlavička neztmavne při posouvání – rovnou tmavá (úvodní stránka) */
html:not(.js) .site-header--overlay {
  background: rgba(10, 11, 13, 0.94);
  border-bottom-color: var(--line);
}

@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tablet a telefon: fotka nahoře přes celou šířku, text pod ní */
@media (max-width: 760px) {
  .about-head__media {
    position: relative;
    top: auto;
    bottom: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .about-head__media img {
    object-position: 60% 55%;
  }

  .about-head__media::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 11, 13, 0) 45%);
  }

  .about-head__inner {
    min-height: 0;
    margin-top: -36px;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  /* obrysové písmo je na malém displeji špatně čitelné */
  .about-motto__text span + span {
    color: #fff;
    -webkit-text-stroke: 0;
  }
}

/* ---------- 26. Úvod podstránek a parametry vozidla na telefonu ---------- */
@media (max-width: 760px) {
  .page-hero__media {
    flex-basis: 100%;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }

  .spec .icon {
    grid-row: auto;
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .spec {
    align-content: start;
  }
}

/* ---------- 28. Grafika místo fotek ---------- */
.card:hover .ph .icon {
  transform: scale(1.06);
}

/* ---------- 29. Šikmý rám fotky v úvodu podstránek ---------- */
.page-hero__media::after {
  z-index: 2;
}

/* ---------- 30. Ikony Instagramu a Facebooku ---------- */
/* Oficiální soubory se nesmí přebarvovat; minimální velikost ikony Instagramu je 29 px */
.social-link__icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.social-link {
  transition: color 0.2s, transform 0.2s;
}

.social-link.has-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 7px;
}

.social-link.has-icon:hover {
  transform: translateY(-2px);
}

.social-link.has-icon .social-link__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.header-social:has(.has-icon) {
  gap: 8px;
}

.site-nav__social .social-link.has-icon {
  flex: 0 0 auto;
  min-height: 48px;
  border: 0;
  padding: 9px;
}

.site-nav__social:has(.has-icon) {
  gap: 16px;
}

/* Nejužší telefony (320 px): u tlačítka menu jen ikona, název zůstává pro čtečky */
@media (max-width: 360px) {
  .menu-toggle {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .menu-toggle [data-menu-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- 31. Větší horní lišta ---------- */
.header-social .social-link__icon {
  width: 32px;
  height: 32px;
}

.header-social .social-link.has-icon {
  min-width: 48px;
  min-height: 48px;
  padding: 8px;
}

@media (max-width: 1000px) {
  .site-header__logo img {
    height: 38px;
  }
}

/* Na telefonech zůstává lišta nižší, aby nezabírala obrazovku */
@media (max-width: 760px) {
  :root {
    --header-h: 84px;
  }
}

@media (max-width: 480px) {
  .site-header__logo img {
    height: 30px;
  }
}

/* ---------- 32. Aktuální nabídka – čistší karty a přepínač ---------- */
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card__meta {
  margin-bottom: 14px;
}

.card__price {
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
}

.card__go {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

.card__go .icon {
  font-size: 18px;
  stroke-width: 2.2;
}

.card:hover .card__go {
  background: var(--red);
  border-color: var(--red);
  transform: translateX(2px);
}

.cards--large .card__body {
  padding: 22px 24px 22px;
}

.cards--large .card__title {
  font-size: 20px;
}

/* Karty se při vykreslení jemně objeví jedna po druhé */
@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: card-in 0.6s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }

  @keyframes card-in {
    from {
      opacity: 0;
      transform: translate3d(0, 16px, 0);
    }
  }
}

/* Přepínač Vše / Auta / Motorky */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.seg__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 8px 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  font-stretch: 112.5%;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.seg__btn:hover {
  color: #fff;
}

.seg__btn[aria-pressed="true"] {
  background: #fff;
  color: var(--bg);
}

.seg__count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.seg__btn[aria-pressed="true"] .seg__count {
  background: var(--red);
  color: #fff;
}

.seg__btn:focus-visible {
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .section__head .seg {
    width: 100%;
  }

  .seg__btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 6px 0 12px;
  }
}

/* ---------- 33. Aktuální nabídka – klidné karty ---------- */
/* Místo fotky tenký obrys vozidla nad „podlahou showroomu“ */
.ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(60% 45% at 50% 72%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #15171b 0%, #0e1013 100%);
  color: #6a7079;
}

.ph .icon {
  position: relative;
  font-size: clamp(48px, 4.6vw, 62px);
  stroke-width: 1.1;
  transition: color 0.35s ease, transform 0.6s var(--ease-out);
}

.ph__note {
  position: relative;
  padding-top: 12px;
  color: var(--text-3);
  font-weight: 600;
  font-size: 12.5px;
}

/* Linka podlahy mezi vozidlem a popiskem */
.ph__note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 170px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.card:hover .ph .icon {
  color: #a3a9b1;
  transform: translateY(-3px);
}

/* Červená linka pod fotkou při najetí na kartu */
.card__media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.55s var(--ease-out);
}

.card:hover .card__media::after,
.card:focus-within .card__media::after {
  width: 100%;
}

/* Počet v přepínači bez červené, ať nic nekřičí */
.seg__btn[aria-pressed="true"] .seg__count {
  background: rgba(10, 11, 13, 0.12);
  color: var(--bg);
}

/* Telefon: karty vedle sebe na posun prstem místo dlouhého sloupce */
@media (max-width: 760px) {
  .cards--rail {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: min(80%, 320px);
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

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

  .cards--rail .card {
    scroll-snap-align: start;
  }
}

/* ---------- 34. Služby a půjčovna – přehled s velkou fotkou ---------- */
.svc-index {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.svc-index__list {
  border-bottom: 1px solid var(--line);
}

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px 4px;
  border-top: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
}

.svc-row:hover {
  color: #fff;
}

.svc-row:focus-visible {
  outline-offset: 4px;
}

/* Červená linka, která se u aktivního řádku protáhne po horní hraně */
.svc-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.6s var(--ease-out);
}

.svc-row.is-active::before {
  width: 100%;
}

.svc-row__thumb {
  display: none;
}

.svc-row__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.svc-row__title,
.svc-row__text {
  transition: color 0.35s ease, transform 0.5s var(--ease-out);
}

.svc-row__title {
  color: var(--text-3);
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.02;
}

.svc-row__text {
  color: var(--text-3);
  font-size: 16px;
}

.svc-row.is-active .svc-row__title {
  color: #fff;
  transform: translateX(12px);
}

.svc-row.is-active .svc-row__text {
  color: var(--text-2);
  transform: translateX(12px);
}

.svc-row__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-2);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.svc-row__arrow .icon {
  font-size: 20px;
  stroke-width: 2.2;
}

.svc-row.is-active .svc-row__arrow {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Velká fotka v šikmém rámu s červenou hranou (stejně jako v úvodu podstránek) */
.svc-index__preview {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
}

.svc-index__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--red);
  clip-path: polygon(11% 0, calc(11% + 5px) 0, 5px 100%, 0 100%);
  pointer-events: none;
}

.svc-preview {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s ease, transform 1.4s var(--ease-out);
}

.svc-preview.is-active {
  opacity: 1;
  transform: none;
}

.svc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Telefon a tablet: jednoduchý seznam s malými náhledy */
@media (max-width: 900px) {
  .svc-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-index__preview {
    display: none;
  }

  .svc-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 18px 0;
  }

  .svc-row::before {
    display: none;
  }

  .svc-row__thumb {
    position: relative;
    display: block;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
  }

  .svc-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .svc-row__title,
  .svc-row.is-active .svc-row__title {
    color: #fff;
    font-size: 22px;
    transform: none;
  }

  .svc-row__text,
  .svc-row.is-active .svc-row__text {
    color: var(--text-2);
    font-size: 14.5px;
    transform: none;
  }

  .svc-row__arrow,
  .svc-row.is-active .svc-row__arrow {
    width: 40px;
    height: 40px;
    background: transparent;
    border-color: var(--line-2);
    color: var(--text-2);
  }
}

/* Lichý počet hlavních údajů: poslední přes celou šířku, ať nezůstane prázdné pole */
.keyfacts div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ---------- 35. Auta a Motorky – výpis s filtry vlevo a vozidly v řádcích ---------- */

/* Úvod stránky: nadpis vlevo, celá fotka vozidla vpravo (na telefonu fotka nahoře) */
.lst-head {
  --lst-text: clamp(300px, 38vw, 540px); /* šířka sloupce s textem */
  --lst-edge: max(var(--gutter), (100% - var(--container)) / 2); /* levý a pravý okraj obsahu */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* Fotka je pod lištou, vpravo od textu a vždy celá (nic se neořízne).
   Okraje fotek jsou už v souboru rozmazané do barvy pozadí, takže fotka nemá viditelný okraj. */
.lst-head__media {
  position: absolute;
  top: var(--header-h);
  right: max(0px, var(--lst-edge) - 80px);
  bottom: 0;
  left: calc(var(--lst-edge) + var(--lst-text) - 40px);
  z-index: -1;
}

.lst-head__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 100% 50%;
}

.lst-head__inner {
  display: flex;
  align-items: flex-end;
  min-height: clamp(320px, 31vw, 470px);
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 4.5vw, 64px);
}

.lst-head__copy {
  width: 100%;
  max-width: var(--lst-text);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lst-head__title {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(52px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.015em;
}

.lst-head__lead {
  max-width: 32em;
  margin-top: 4px;
  color: var(--chrome);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
}

/* Užší obrazovky: fotka jako pás nahoře, text pod ní */
@media (max-width: 860px) {
  .lst-head__media {
    position: relative;
    inset: auto;
  }

  .lst-head__media img {
    height: auto;
    max-height: 420px;
    object-position: 50% 50%;
  }

  /* Text začíná v rozmazaném okraji pod vozidlem */
  .lst-head__inner {
    position: relative;
    min-height: 0;
    margin-top: -12px;
    padding-top: 0;
  }

  .lst-head__copy {
    max-width: none;
  }
}

/* Rozvržení: filtry vlevo, vozidla vpravo */
.lst {
  padding-top: clamp(28px, 3.5vw, 48px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.lst__inner {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* Filtry jedou při posouvání s vámi – jen když se celé vejdou na obrazovku (třídu přidá skript) */
.lst__side.is-sticky {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.fl__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.fl__title {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 24px;
  line-height: 1;
}

.fl__clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.fl__clear:hover {
  color: #fff;
}

.fl__clear .icon {
  font-size: 15px;
  stroke-width: 2.2;
  color: var(--red);
}

.fl__group {
  min-width: 0;
  margin: 0;
  padding: 16px 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.fl > .fl__group:last-child {
  border-bottom: 0;
}

.fl__label {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nadpis skupiny (legend) jako běžný nadpis – prohlížeč by ho jinak kreslil přes horní okraj */
legend.fl__label {
  float: left;
}

.fl__list,
.fl__chips {
  clear: both;
}

/* Značky: seznam s počty */
.fl__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fl-opt,
.fl-chip {
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.fl-opt input,
.fl-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.fl-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 10px 0 14px;
  border-radius: 6px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15.5px;
}

.fl-opt:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.fl-opt input:checked + .fl-opt__name {
  color: #fff;
}

.fl-opt:has(input:checked) {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 3px 0 0 var(--red);
}

.fl-opt__count {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.fl-opt:has(input:checked) .fl-opt__count {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Palivo, převodovka, kategorie: kulaté volby */
.fl__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fl-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14.5px;
}

.fl-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.fl-chip .fl-opt__count {
  min-width: 0;
  padding: 0;
  background: none;
  color: var(--text-3);
}

.fl-chip input:checked + .fl-opt__name {
  font-weight: 700;
}

.fl-chip:has(input:checked) {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
}

.fl-chip:has(input:checked) .fl-opt__count {
  background: none;
  color: rgba(10, 11, 13, 0.6);
}

.fl-opt:has(input:focus-visible),
.fl-chip:has(input:focus-visible) {
  outline: 3px solid var(--red);
  outline-offset: 1px;
}

/* Volba, které teď nic neodpovídá */
.fl-opt.is-zero,
.fl-chip.is-zero {
  opacity: 0.45;
}

/* Lišta nad výsledky: počet a řazení */
.lst-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.lst-bar__filters {
  display: none;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-stretch: 112.5%;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.lst-bar__filters:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
}

.lst-bar__filters .icon {
  font-size: 18px;
  stroke-width: 2;
}

.lst-bar__badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.lst-bar__count {
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.lst-bar__sort {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
}

.lst-bar__sort-label {
  color: var(--text-3);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.lst-bar__sort .select select {
  height: 46px;
  min-width: 200px;
  padding-left: 18px;
  border-radius: 999px;
}

/* Vozidla v řádcích */
.vlist {
  display: grid;
  gap: 20px;
}

.vrow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-out);
}

.vrow:hover {
  border-color: var(--line-2);
  box-shadow: 0 34px 60px -38px rgba(0, 0, 0, 0.95);
  transform: translateY(-2px);
}

.vrow:has(.vrow__link:focus-visible) {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* Fotka se šikmým okrajem podle loga; při najetí se rozsvítí červená hrana */
.vrow__media {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: var(--surface-2);
  clip-path: polygon(0 0, 100% 0, calc(100% - 36px) 100%, 0 100%);
}

.vrow__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.vrow:hover .vrow__media img {
  transform: scale(1.04);
}

.vrow__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--red);
  clip-path: polygon(calc(100% - 4px) 0, 100% 0, calc(100% - 36px) 100%, calc(100% - 40px) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.vrow:hover .vrow__media::after,
.vrow:focus-within .vrow__media::after {
  opacity: 1;
}

.vrow .card__photos {
  right: 24px;
}

.vrow__body {
  container: vrow / inline-size;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 28px 24px;
}

.vrow__link {
  display: block;
  color: #fff;
  text-decoration: none;
}

.vrow__link:hover {
  color: #fff;
}

/* Celý řádek je klikací */
.vrow__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.vrow__link:focus-visible {
  outline: none;
}

.vrow__brand {
  display: block;
  margin-bottom: 8px;
  color: var(--red-text);
  font-size: 12.5px;
  font-weight: 700;
  font-stretch: 112.5%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vrow__model {
  display: block;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.005em;
}

.vrow__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.vrow__specs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
}

.vrow__specs .icon {
  font-size: 18px;
  color: var(--text-3);
  stroke-width: 1.7;
}

.vrow__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.vrow__price {
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}

.vrow__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vrow__call {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: #fff;
  transition: border-color 0.2s, background-color 0.2s;
}

.vrow__call:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.vrow__call .icon {
  font-size: 18px;
  color: var(--red);
}

.vrow__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-stretch: 112.5%;
  transition: background-color 0.25s, border-color 0.25s;
}

.vrow__go .icon {
  font-size: 18px;
  stroke-width: 2.2;
  transition: transform 0.25s var(--ease-out);
}

.vrow:hover .vrow__go {
  background: var(--red);
  border-color: var(--red);
}

.vrow:hover .vrow__go .icon {
  transform: translateX(3px);
}

/* Velikost písma podle skutečné šířky řádku */
@supports (font-size: 1cqi) {
  .vrow__model {
    font-size: clamp(22px, 7cqi, 34px);
  }

  .vrow__price {
    font-size: clamp(20px, 6.6cqi, 30px);
  }
}

/* Užší řádek: tlačítko Detail jen jako šipka, nejužší bez telefonu */
@container vrow (max-width: 380px) {
  .vrow__go {
    width: 46px;
    padding: 0;
  }

  .vrow__go-text {
    display: none;
  }
}

@container vrow (max-width: 260px) {
  .vrow__call {
    display: none;
  }
}

/* Řádky se při vykreslení objeví jeden po druhém */
@media (prefers-reduced-motion: no-preference) {
  .vrow {
    animation: vrow-in 0.6s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 80ms);
  }

  @keyframes vrow-in {
    from {
      opacity: 0;
      translate: 0 18px;
    }
  }
}

/* Prázdný výběr */
.lst .empty {
  margin: 0;
}

/* Vše prodáno nebo vypnutý JavaScript: bez filtrů */
.is-empty-stock .lst__inner,
html:not(.js) .lst__inner {
  grid-template-columns: minmax(0, 1fr);
}

.is-empty-stock .lst__side,
.is-empty-stock .lst-bar,
html:not(.js) .lst__side,
html:not(.js) .lst-bar {
  display: none;
}

/* Okno s filtry na telefonu a tabletu */
.sheet {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}

.sheet[open] {
  display: flex;
  align-items: flex-end;
}

.sheet::backdrop {
  background: rgba(4, 5, 6, 0.72);
}

.sheet__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  max-height: min(88vh, 780px);
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, 0.8);
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--gutter) 14px;
  border-bottom: 1px solid var(--line);
}

.sheet__title {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 24px;
  line-height: 1;
}

.sheet__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.sheet__close .icon {
  font-size: 20px;
  stroke-width: 2;
}

.sheet__body {
  min-height: 0;
  padding: 0 var(--gutter);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet__body .fl__head {
  display: none;
}

.sheet__foot {
  display: flex;
  gap: 10px;
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.sheet__reset {
  flex: 0 0 auto;
  min-height: 50px;
}

.sheet__reset:disabled {
  opacity: 0.4;
  cursor: default;
}

.sheet__apply {
  flex: 1 1 auto;
  min-height: 50px;
  padding-inline: 18px;
}

html.sheet-open,
html.sheet-open body {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .sheet[open] .sheet__panel {
    animation: sheet-up 0.38s var(--ease-out);
  }

  @keyframes sheet-up {
    from {
      opacity: 0;
      transform: translateY(48px);
    }
  }
}

/* Tablet a menší: filtry v okně, tlačítko Filtry v liště */
@media (max-width: 1080px) {
  .lst__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .lst__side {
    display: none;
  }

  /* Záloha pro prohlížeče bez okna <dialog> */
  .lst__side.is-open {
    display: block;
    position: static;
    margin: 0 0 24px;
  }

  .lst-bar__filters {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .vrow {
    grid-template-columns: minmax(0, 1fr);
  }

  .vrow__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
  }

  .vrow__media::after {
    clip-path: polygon(0 calc(100% - 4px), 100% calc(100% - 24px), 100% calc(100% - 20px), 0 100%);
  }

  .vrow__body {
    padding: 16px 18px 18px;
  }

  .vrow__specs {
    gap: 8px 16px;
    margin: 14px 0 18px;
  }

  .vrow__specs li {
    font-size: 14.5px;
  }

  .vrow__foot {
    padding-top: 16px;
  }

  .lst-bar {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  /* 1. řádek: Filtry a počet, 2. řádek: řazení přes celou šířku */
  .lst-bar__count {
    margin-left: auto;
    font-size: 14px;
  }

  .lst-bar__sort {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    gap: 10px;
  }

  .lst-bar__sort .select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .lst-bar__sort .select select {
    min-width: 0;
  }
}

/* ---------- 36. Autor webu v patičce ---------- */
.site-credit {
  color: var(--text-2);
  font-size: 14px;
}

.site-credit__link {
  color: #fff;
  font-weight: 700;
  font-stretch: 112.5%;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.2s;
}

.site-credit__link:hover {
  color: var(--red-text);
}

/* ---------- 37. Odpočet DPH za cenou ---------- */
/* Cena se nezalomí (mezery v ní jsou pevné), poznámka v závorce případně skočí na další řádek */
.card__price,
.vrow__price,
.summary__price {
  white-space: normal;
}

/* Ve výpisu zůstane cena s tlačítky na jednom řádku, poznámka se případně zalomí pod cenu */
.vrow__price {
  flex: 1 1 0;
}

.price-vat {
  display: inline-block;
  color: var(--text-2);
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}

.summary__price .price-vat {
  font-size: 15px;
}

/* Karty v nabídce: stejně vysoký spodek u aut s poznámkou i bez ní, dělicí čáry jsou v jedné výšce */
.card__foot {
  min-height: 64px;
}

/* ---------- 38. Stránka Kontakt: údaje vlevo, formulář vpravo ---------- */
.page-hero--contact .page-hero__inner {
  min-height: 0;
  padding-bottom: clamp(36px, 4vw, 56px);
}

.contact {
  padding-top: clamp(40px, 5vw, 72px);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr);
  align-items: start;
  gap: 40px clamp(36px, 4.5vw, 72px);
}

/* Kontaktní údaje jako čistý seznam bez rámečků */
.contact-info {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  font-style: normal;
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
}

.contact-info__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-info__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-3);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.contact-info__label .icon {
  font-size: 17px;
  color: var(--red);
}

.contact-info__value {
  color: #fff;
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

/* Telefon je hlavní: velké číslo a pod ním šikmá červená linka podle loga */
.contact-info__item--phone .contact-info__value {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(28px, 2.55vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.contact-info__item--phone .contact-info__value::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  background: var(--red);
  transform: skewX(-24deg);
  transform-origin: left;
  transition: width 0.3s var(--ease-out);
}

a.contact-info__item:hover {
  color: #fff;
}

a.contact-info__item:hover .contact-info__value {
  color: var(--red-text);
}

a.contact-info__item--phone:hover .contact-info__value::after {
  width: 120px;
}

a.contact-info__item:focus-visible {
  outline-offset: 6px;
}

.contact-info__lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.contact-info__lines span:first-child {
  color: #fff;
  font-weight: 600;
}

.contact-info__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-info__social .contact-info__label {
  margin-right: auto;
}

.contact-info__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  font-stretch: 112.5%;
  text-decoration: none;
}

.contact-info__social-link:hover {
  color: #fff;
}

/* Formulář v jedné kartě */
.contact-form {
  position: relative;
  padding: clamp(24px, 3.2vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* Červený šikmý úsek na horní hraně (stejný motiv jako jinde na webu) */
.contact-form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(24px, 3.2vw, 44px);
  width: 64px;
  height: 3px;
  background: var(--red);
  transform: skewX(-24deg);
}

.contact-form__head {
  margin-bottom: 28px;
}

.contact-form__title {
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
}

.contact-form__lead {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}

/* Po odeslání už pokyn k vyplnění není potřeba */
.contact-form:has(.cform-done.is-shown) .contact-form__lead,
.contact-form:has(.cform-done:target) .contact-form__lead {
  display: none;
}

/* ---------- 39. Kontaktní formulář ---------- */
.cform {
  display: flex;
  flex-direction: column;
}

.cform[hidden],
.cform__status[hidden] {
  display: none;
}

.cform__services {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.cform__legend {
  margin-bottom: 12px;
  padding: 0;
  color: #fff;
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 16px;
}

.cform__hint {
  margin-left: 6px;
  color: var(--text-3);
  font-weight: 400;
  font-stretch: 100%;
  font-size: 14px;
}

/* Služby jako nízké dlaždice v řadě: klikem se vyberou, druhým klikem zruší */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.pick {
  position: relative;
  display: block;
  cursor: pointer;
}

.pick input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pick__box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 52px;
  padding: 8px 10px 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.pick__icon {
  flex: 0 0 auto;
  font-size: 22px;
  color: var(--red);
  stroke-width: 1.6;
}

.pick__label {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-weight: 600;
  font-stretch: 105%;
  font-size: 14.5px;
  line-height: 1.2;
}

/* Fajfka v rohu se ukáže jen u vybrané služby */
.pick__check {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 3px var(--surface);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.pick__check .icon {
  font-size: 12px;
  stroke-width: 3.4;
}

.pick:hover .pick__box {
  border-color: rgba(255, 255, 255, 0.35);
}

.pick input:checked + .pick__box {
  background: rgba(225, 19, 27, 0.12);
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.pick input:checked + .pick__box .pick__check {
  opacity: 1;
  transform: none;
}

.pick input:focus-visible + .pick__box {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Pole: jméno přes celou šířku, e-mail a telefon vedle sebe, zpráva přes celou šířku */
.cform__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field__label {
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
}

.field__req {
  color: var(--red-text);
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input--area {
  min-height: 160px;
  padding: 14px 16px;
  line-height: 1.55;
  resize: vertical;
}

.field__input::placeholder {
  color: var(--text-3);
}

.field__input:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.field__input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 19, 27, 0.28);
}

.field__input:user-invalid {
  border-color: var(--red-text);
}

/* Pole proti spamu – člověk ho nevidí */
.cform__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 26px;
}

.cform__submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.cform__note {
  flex: 1 1 220px;
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.5;
}

.cform__status,
.cform-fail {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(225, 19, 27, 0.08);
  border-left: 3px solid var(--red);
  color: #fff;
  font-size: 15.5px;
  line-height: 1.5;
}

.cform-fail a {
  color: #fff;
}

/* Hlášení po odeslání */
.cform-done,
.cform-fail {
  display: none;
}

.cform-done {
  align-items: flex-start;
  gap: 20px;
  padding: 26px 24px;
  background: rgba(225, 19, 27, 0.07);
  border: 1px solid rgba(225, 19, 27, 0.35);
  border-radius: var(--radius);
}

.cform-done.is-shown,
.cform-done:target {
  display: flex;
}

.cform-fail:target {
  display: block;
  margin: 0 0 20px;
}

/* Bez JavaScriptu: po úspěšném odeslání se formulář schová */
.cform-done:target ~ .cform {
  display: none;
}

.cform-done:focus {
  outline: none;
}

.cform-done__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.cform-done__icon .icon {
  font-size: 26px;
  stroke-width: 2.6;
}

.cform-done__title {
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.1;
}

.cform-done__text {
  margin: 8px 0 4px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}

/* Tablet a telefon: údaje nad formulářem */
@media (max-width: 1000px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-info {
    position: static;
  }
}

@media (max-width: 560px) {
  .cform__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .cform__hint {
    display: block;
    margin: 4px 0 0;
  }

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

  .pick__box {
    gap: 8px;
    padding: 8px 10px;
  }

  .pick__icon {
    font-size: 20px;
  }

  .pick__label {
    font-size: 14px;
  }

  .cform__submit {
    width: 100%;
  }

  .cform-done {
    flex-direction: column;
  }

  /* číslo se vejde na jeden řádek i na nejužším telefonu */
  .contact-info__item--phone .contact-info__value {
    font-size: min(8.6vw, 38px);
  }
}

/* ---------- 40. Služby: výběr služby hned pod nadpisem (čtyři karty vedle sebe) ---------- */
.page-hero--choose .page-hero__inner {
  min-height: 0;
  padding-bottom: clamp(28px, 3vw, 40px);
}

.svc-choose {
  padding-bottom: clamp(48px, 6vw, 88px);
}

/* Řada karet je o něco širší než text nad ní (až 1440 px), aby byly karty širší */
.container.svc-choose {
  max-width: calc(1440px + 2 * var(--gutter));
}

.svc-choose__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

/* Fotka se šikmou spodní hranou – stejný motiv jako u vozidel ve výpisu */
.svc-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.svc-card__body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 72px 22px 22px;
}

.svc-card__title {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(19px, 1.6vw, 25px);
  line-height: 1.1;
}

.svc-card__text {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.svc-card__go {
  position: absolute;
  right: 18px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-2);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.svc-card__go .icon {
  font-size: 18px;
  stroke-width: 2.2;
}

.svc-card:hover {
  color: #fff;
  border-color: rgba(225, 19, 27, 0.55);
  box-shadow: 0 22px 44px -28px rgba(225, 19, 27, 0.6);
  transform: translateY(-3px);
}

.svc-card:hover .svc-card__media img {
  transform: scale(1.05);
}

.svc-card:hover .svc-card__go {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.svc-card:focus-visible {
  outline-offset: 3px;
}

/* Tablet: dvě a dvě */
@media (max-width: 1000px) {
  .svc-choose__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-card__go {
    width: 42px;
    height: 42px;
  }
}

/* Telefon: karty pod sebou přes celou šířku */
@media (max-width: 640px) {
  .svc-choose__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .svc-card__text {
    font-size: 15px;
  }
}

/* ---------- 41. Stránky služeb (čištění, servis, díly, půjčovna) ---------- */
/* Pás hlavních předností pod úvodem (5, 4 nebo 3 položky) */
.perks {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.perks__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

.perk {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px 20px;
  color: #fff;
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 15px;
  line-height: 1.25;
}

/* Méně předností = širší políčka, obsah je uprostřed */
.perks__list--4 .perk,
.perks__list--3 .perk {
  justify-content: center;
}

.perk + .perk {
  border-left: 1px solid var(--line);
}

.perk .icon {
  flex: 0 0 auto;
  font-size: 30px;
  color: var(--red);
  stroke-width: 1.5;
}

/* Nabídka služby: fotka, název, co obsahuje, případně tlačítka */
.offer-grid {
  --media-ratio: 4 / 3;
  display: grid;
  gap: clamp(14px, 1.6vw, 24px);
}

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

/* Servis: tři karty nahoře, dvě uprostřed pod nimi */
.offer-grid--5 {
  --media-ratio: 2.15 / 1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.offer-grid--5 > .offer-card {
  grid-column: span 2;
}

.offer-grid--5 > .offer-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.offer-grid--3 {
  --media-ratio: 2.2 / 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-grid--2 {
  --media-ratio: 16 / 9;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offer-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-row: span 3;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Karta s tlačítky dole má o řádek víc */
.offer-card--actions {
  grid-template-rows: auto auto 1fr auto;
  grid-row: span 4;
}

.offer-card__media {
  display: block;
  aspect-ratio: var(--media-ratio);
  overflow: hidden;
  background: var(--surface-2);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.offer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fotky, názvy, seznamy i tlačítka jsou v kartách vedle sebe v jedné výšce */
@supports (grid-template-rows: subgrid) {
  .offer-card {
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

.offer-card__title {
  padding: 10px 22px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.15;
}

.offer-card__title .icon {
  flex: 0 0 auto;
  font-size: 26px;
  color: var(--red);
  stroke-width: 1.6;
}

/* Doplněk názvu pod ním (Bike Kokořín) */
.offer-card__tag {
  display: block;
  margin-top: 5px;
  color: var(--red-text);
  font-size: 0.66em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-card__text {
  padding: 12px 22px 22px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}

.offer-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 22px 24px;
}

.offer-card__actions .btn {
  flex: 1 1 190px;
  padding-inline: 22px;
  font-size: 15px;
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-card .ticks {
  padding: 14px 22px 24px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.ticks .icon {
  flex: 0 0 auto;
  margin-top: 3px;
  font-size: 15px;
  color: var(--red);
  stroke-width: 2.8;
}

/* Parní čištění: čtyři výhody v kolečkách */
.steam-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 32px clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(70% 140% at 0% 100%, rgba(225, 19, 27, 0.18) 0%, rgba(225, 19, 27, 0) 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.steam-panel__title {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.05;
}

.steam-panel__text {
  margin-top: 12px;
  max-width: 26em;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}

.badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.badge__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1.5px solid rgba(225, 19, 27, 0.6);
  border-radius: 50%;
  background: rgba(225, 19, 27, 0.08);
  color: var(--red);
}

.badge__icon .icon {
  font-size: 32px;
  stroke-width: 1.5;
}

.badge__label {
  max-width: 11em;
  color: #fff;
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 15px;
  line-height: 1.25;
}

@media (max-width: 1180px) {
  /* Půjčovna: dvě karty vedle sebe, třetí uprostřed pod nimi */
  .offer-grid--3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .offer-grid--3 > .offer-card {
    grid-column: span 2;
  }

  .offer-grid--3 > .offer-card:nth-child(3) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 1100px) {
  .perks__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .perk:nth-child(4) {
    border-left: 0;
  }

  .perk:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  /* čtyři přednosti: dvě a dvě */
  .perks__list--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perks__list--4 .perk:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .perks__list--4 .perk:nth-child(4) {
    border-left: 1px solid var(--line);
  }

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

  .offer-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steam-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  /* Servis: po dvou kartách, pátá uprostřed */
  .offer-grid--5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .offer-grid--5 > .offer-card:nth-child(4) {
    grid-column: span 2;
  }

  .offer-grid--5 > .offer-card:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 760px) {
  .offer-grid--3,
  .offer-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-grid--3 > .offer-card:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .perks__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perk {
    min-height: 76px;
    padding: 14px 12px;
    font-size: 14px;
  }

  .perk .icon {
    font-size: 26px;
  }

  .perk:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .perk:nth-child(odd) {
    border-left: 0;
  }

  .perk:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  /* lichý počet: poslední přednost přes celou šířku */
  .perk:last-child {
    grid-column: 1 / -1;
  }

  .perks__list--4 .perk:last-child {
    grid-column: auto;
  }

  .offer-grid--4,
  .offer-grid--5 {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-grid--5 > .offer-card:nth-child(n) {
    grid-column: auto;
  }

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

/* Malý červený nadpis nad hlavním (Půjčovna → Vše pro vaše cesty) */
.page-hero__eyebrow {
  display: block;
  margin-bottom: 0.45em;
  color: var(--red-text);
  font-size: clamp(16px, 1.25vw, 20px);
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Delší nadpis stránky (Profesionální čištění vozidel) – menší písmo, aby se slova vešla i na úzký telefon */
.page-hero__title--long {
  font-size: clamp(38px, 4.8vw, 76px);
}

@media (max-width: 640px) {
  .page-hero__title--long {
    font-size: min(9vw, 42px);
  }
}

/* ---------- 42. Díly na prodej: seznam nových a použitých dílů ---------- */
.page-hero--parts .page-hero__inner {
  min-height: 0;
  padding-bottom: 0;
}

/* Nové díly / Použité díly jako záložky pod nadpisem */
.parts-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  margin-top: 10px;
}

.parts-tabs__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 2px;
  border-bottom: 3px solid transparent;
  color: var(--text-2);
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 17px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.parts-tabs__link .icon {
  font-size: 20px;
  color: var(--red);
}

.parts-tabs__link:hover {
  color: #fff;
}

.parts-tabs__link[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--red);
}

.parts {
  padding-top: clamp(28px, 3.5vw, 48px);
}

/* Přepínač Vše / Na auta / Na motorky a hledání */
.parts__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 24px;
}

.parts__search {
  position: relative;
  flex: 0 1 380px;
}

.parts__search .icon {
  position: absolute;
  top: 50%;
  left: 18px;
  font-size: 18px;
  color: var(--text-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.parts__search input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 48px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.parts__search input::placeholder {
  color: var(--text-3);
}

.parts__search input:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.parts__search input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 19, 27, 0.28);
}

/* Seznam: jeden díl = jeden řádek */
.parts-list {
  border-top: 1px solid var(--line);
}

.part {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.part__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.part__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.part__media--icon .icon {
  font-size: 36px;
  color: var(--red);
  stroke-width: 1.3;
}

/* Fotka dílu – klikem se zvětší na celou obrazovku */
.part__media--photo {
  padding: 0;
  color: #fff;
  cursor: zoom-in;
  transition: border-color 0.25s;
}

.part__media--photo img {
  transition: transform 0.45s var(--ease-out);
}

.part__media--photo:hover {
  border-color: var(--red);
}

.part__media--photo:hover img {
  transform: scale(1.07);
}

.part__media--photo:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.part__zoom {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.8);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.25s;
}

.part__zoom .icon {
  font-size: 14px;
  stroke-width: 2;
}

.part__media--photo:hover .part__zoom {
  background: var(--red);
}

.part__name {
  color: #fff;
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 18px;
  line-height: 1.3;
}

.part__fit {
  margin-top: 3px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.part__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 8px;
}

.part__tag {
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.4;
}

.part__note {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.4;
}

.part__side {
  display: flex;
  align-items: center;
  gap: 22px;
}

.part__price {
  min-width: 7em;
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 21px;
  text-align: right;
  white-space: nowrap;
}

.part__price--ask {
  color: var(--text-2);
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-size: 15px;
}

.part__ask {
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
}

.parts-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.parts-empty[hidden] {
  display: none;
}

.parts-empty__text {
  max-width: 40em;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.55;
}

.parts__more {
  margin-top: 26px;
  color: var(--text-2);
  font-size: 15.5px;
}

.parts__more .text-link {
  margin-left: 4px;
}

@media (max-width: 760px) {
  .parts__search {
    flex-basis: 100%;
  }

  .parts__bar .seg {
    width: 100%;
  }

  .parts__bar .seg__btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 6px 0 12px;
  }

  .part {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 12px 16px;
    padding: 16px 0;
  }

  .part__media {
    width: 76px;
    height: 76px;
  }

  .part__media--icon .icon {
    font-size: 30px;
  }

  .part__zoom {
    right: 4px;
    bottom: 4px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
  }

  .part__name {
    font-size: 17px;
  }

  .part__side {
    grid-column: 2;
    justify-content: space-between;
    gap: 14px;
  }

  .part__price {
    min-width: 0;
    text-align: left;
  }
}

/* ---------- 43. Služby a Kontakt: bez nápisu v pozadí, Kontakt širší ---------- */
/* Stránka bez data-watermark nemá v úvodu velký obrysový nápis */
.page-hero:not([data-watermark])::before {
  content: none;
}

/* Kontakt: nadpis, údaje i formulář využijí víc šířky obrazovky (až 1560 px) */
.page-hero--contact .container,
.container.contact__grid {
  max-width: calc(1560px + 2 * var(--gutter));
}

/* Služby ve formuláři: nejvýš tři v řadě, aby nezůstala osamocená dlaždice */
@media (min-width: 561px) {
  .pick-grid {
    grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 20px) / 3)), 1fr));
  }
}

/* Široký formulář: jméno, e-mail a telefon vedle sebe */
@media (min-width: 1280px) {
  .cform__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cform__fields > .field--wide:first-child {
    grid-column: auto;
  }
}

/* ---------- 44. Půjčovna: seznam vozíků, aut a motorek (stejné řádky jako u dílů) ---------- */
.part__per {
  margin-left: 2px;
  color: var(--text-2);
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-size: 0.62em;
}

/* Vozíky a vozidla jsou na šířku – náhled je širší než u dílů */
.parts-list--rent .part {
  grid-template-columns: 144px minmax(0, 1fr) auto;
}

.parts-list--rent .part__media {
  width: 144px;
  height: 96px;
}

@media (max-width: 760px) {
  .parts-list--rent .part {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .parts-list--rent .part__media {
    width: 108px;
    height: 72px;
  }

  /* cena za den a Rezervovat pod fotkou i textem přes celou šířku */
  .parts-list--rent .part__side {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
}

/* ---------- 45. Patička: Ochrana osobních údajů a Nastavení cookies ---------- */
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 22px;
}

.foot-legal__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.foot-legal__link:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.foot-legal__link[aria-current="page"] {
  color: #fff;
}

/* Tablet: odkazy vlevo, Nahoru vpravo, Made by Hexora pod nimi */
@media (max-width: 1180px) {
  .foot-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .foot-bottom .site-credit {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
  }

  .foot-bottom .to-top {
    grid-row: 1;
    grid-column: 2;
  }
}

/* Telefon: odkazy na jednom řádku, pod nimi © a Made by Hexora */
@media (max-width: 640px) {
  .foot-legal {
    grid-column: 1 / -1;
    column-gap: 24px;
  }

  .foot-legal .foot-bottom__copy {
    order: 1;
    flex-basis: 100%;
  }

  .foot-bottom .to-top {
    grid-row: 2;
  }
}

/* Bez JavaScriptu se žádné cookies nevolí, tlačítko by nic nedělalo */
html:not(.js) [data-cookie-settings] {
  display: none;
}

.cform__note a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.cform__note a:hover {
  color: #fff;
}

/* ---------- 46. Cookie lišta a nastavení cookies ---------- */
/* Lišta je dole uprostřed obrazovky */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  margin-inline: auto;
  display: grid;
  gap: 18px;
  width: min(540px, calc(100% - 40px));
  padding: 26px 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}

/* Červená linka nahoře jako u ostatních panelů webu */
.cookie-bar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  width: 56px;
  height: 3px;
  background: var(--red);
}

.cookie-bar.is-shown {
  opacity: 1;
  transform: none;
}

/* Při úvodní animaci lišta počká a vyjede až po ní */
.has-preloader .cookie-bar.is-shown {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.cookie-bar__title {
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 22px;
  line-height: 1.1;
}

.cookie-bar__text {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

.cookie-bar__text a,
.cookie-dialog__intro a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cookie-bar__actions .btn {
  flex: 1 1 auto;
  min-height: 48px;
  padding-inline: 22px;
  font-size: 15px;
}

.cookie-bar__settings {
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  cursor: pointer;
}

.cookie-bar__settings:hover {
  color: var(--red-text);
}

@media (max-width: 560px) {
  .cookie-bar {
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 22px 20px max(18px, env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 14px 14px 0 0;
  }

  .cookie-bar::before {
    left: 20px;
  }

  .cookie-bar__title {
    font-size: 20px;
  }

  .cookie-bar__text {
    font-size: 14.5px;
  }

  .cookie-bar__actions .btn {
    flex-basis: calc(50% - 5px);
    padding-inline: 12px;
  }

  .cookie-bar__settings {
    flex: 1 1 100%;
  }
}

/* Malé telefony: text tlačítek se vejde na jeden řádek */
@media (max-width: 380px) {
  .cookie-bar__actions .btn,
  .cookie-dialog__actions .btn {
    padding-inline: 8px;
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-bar {
    transform: none;
    transition: opacity 0.2s ease;
  }
}

.cookie-dialog-open {
  overflow: hidden;
}

.cookie-dialog {
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  color: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
}

.cookie-dialog::backdrop {
  background: rgba(6, 7, 8, 0.72);
}

.cookie-dialog__box {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.cookie-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-dialog__title {
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.1;
}

.cookie-dialog__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.cookie-dialog__close:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.cookie-dialog__close .icon {
  font-size: 18px;
  stroke-width: 2;
}

.cookie-dialog__intro {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

.cookie-cats {
  display: grid;
  gap: 10px;
}

.cookie-cat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.cookie-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

label.cookie-cat__head {
  cursor: pointer;
}

.cookie-cat__name {
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 17px;
}

.cookie-cat__always {
  color: var(--text-2);
  font-weight: 600;
  font-size: 13.5px;
}

.cookie-cat__text {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Přepínač zapnuto / vypnuto */
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
}

.switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 0.2s;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ease-out);
}

.switch input:checked + .switch__track {
  background: var(--red);
}

.switch input:checked + .switch__track::after {
  transform: translateX(22px);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cookie-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.cookie-dialog__actions .btn {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 15px;
}

@media (max-width: 560px) {
  .cookie-dialog {
    width: calc(100% - 20px);
    max-height: calc(100% - 20px);
  }

  .cookie-dialog__box {
    padding: 22px 18px 0;
  }

  /* Tlačítka zůstávají dole v okně, i když se nastavení posouvá */
  .cookie-dialog__actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin-inline: -18px;
    padding: 14px 18px 18px;
    background: var(--surface);
    border-top: 1px solid var(--line);
  }

  .cookie-dialog__actions .btn {
    flex: 1 1 calc(50% - 5px);
    padding-inline: 10px;
  }

  .cookie-dialog__actions [data-cookie-save] {
    flex-basis: 100%;
  }
}

/* ---------- 47. Ochrana osobních údajů: dokument ---------- */
.page-hero--doc .page-hero__inner {
  min-height: 0;
  padding-bottom: clamp(32px, 4vw, 52px);
}

.doc-meta {
  margin-top: 14px;
  color: var(--text-3);
  font-weight: 600;
  font-size: 14px;
}

.doc {
  padding-top: clamp(36px, 4.5vw, 64px);
}

.doc__grid {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 760px);
  justify-content: space-between;
  align-items: start;
  gap: 40px clamp(40px, 6vw, 96px);
}

/* Obsah dokumentu jede při posouvání s vámi */
.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding-left: 18px;
  border-left: 1px solid var(--line-2);
}

.doc-toc__title {
  margin-bottom: 10px;
  color: var(--text-3);
  font-weight: 600;
  font-size: 14px;
}

.doc-toc__list {
  display: grid;
  gap: 2px;
  counter-reset: toc;
}

.doc-toc__list li {
  counter-increment: toc;
}

.doc-toc__list a {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s;
}

.doc-toc__list a::before {
  content: counter(toc);
  flex: 0 0 auto;
  min-width: 14px;
  color: var(--red-text);
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
}

.doc-toc__list a:hover,
.doc-toc__list a[aria-current="true"] {
  color: #fff;
}

.doc-toc__list a[aria-current="true"] {
  position: relative;
}

.doc-toc__list a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: -19px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--red);
}

.doc__body {
  display: grid;
  gap: clamp(40px, 5vw, 56px);
  min-width: 0;
}

.doc__intro {
  color: #fff;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.7;
}

.doc-sec {
  display: grid;
  gap: 18px;
  scroll-margin-top: 24px;
}

.doc-sec p,
.doc-list li,
.doc-rights li {
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.7;
}

.doc-sec strong {
  color: #fff;
  font-weight: 700;
}

.doc-sec a:not(.btn) {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.doc-sec a:not(.btn):hover {
  color: var(--red-text);
}

.doc-sec__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #fff;
  font-style: italic;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
}

.doc-sec__num {
  color: var(--red);
}

.doc-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.doc-contact dt,
.doc-dl dt {
  color: var(--text-3);
  font-weight: 600;
  font-size: 13.5px;
}

.doc-contact dd {
  margin-top: 4px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.doc-card {
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.doc-card__title {
  color: #fff;
  font-weight: 800;
  font-stretch: 112.5%;
  font-size: 19px;
  line-height: 1.3;
}

.doc-sec .doc-card__lead {
  margin-top: 4px;
  font-size: 15px;
}

.doc-dl {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.doc-dl div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.doc-dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.doc-dl dd {
  color: #fff;
  font-size: 15.5px;
  line-height: 1.6;
}

.doc-list,
.doc-rights {
  display: grid;
  gap: 10px;
}

.doc-list li,
.doc-rights li {
  position: relative;
  padding-left: 22px;
}

.doc-list li::before,
.doc-rights li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--red);
}

.doc-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.doc-table th {
  padding: 12px 16px;
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 600;
  font-size: 13.5px;
  text-align: left;
}

.doc-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  line-height: 1.5;
  vertical-align: top;
}

.doc-table td:first-child {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.doc-table code {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13.5px;
  white-space: nowrap;
}

.doc-sec .doc-note {
  color: var(--text-3);
  font-size: 15px;
}

.doc-actions .btn {
  min-height: 48px;
}

/* Tablet a telefon: obsah dokumentu nahoře, text pod ním */
@media (max-width: 1000px) {
  .doc__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-toc {
    position: static;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }

  .doc-toc__list a[aria-current="true"]::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .doc-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-dl div {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Tabulka cookies na telefonu: každý řádek jako samostatný blok */
  .doc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .doc-table tr {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }

  .doc-table tbody tr:first-child {
    border-top: 0;
  }

  .doc-table td {
    padding: 0;
    border: 0;
  }

  .doc-table td::before {
    content: attr(data-label) ": ";
    color: var(--text-3);
    font-weight: 600;
    font-size: 13px;
  }

  .doc-table td:first-child {
    white-space: normal;
  }
}

/* Tisk dokumentu: jen text, černě na bílém */
@media print {
  .site-header,
  .site-footer,
  .doc-toc,
  .doc-actions,
  .cookie-bar,
  .cookie-dialog,
  .preloader,
  .skip-link {
    display: none !important;
  }

  body,
  .page-hero,
  .doc,
  .doc-card,
  .doc-contact,
  .doc-table th {
    background: #fff !important;
    color: #000 !important;
  }

  .page-hero {
    padding-top: 0;
    border: 0;
  }

  .page-hero__title,
  .page-hero__lead,
  .doc__intro,
  .doc-sec__title,
  .doc-sec p,
  .doc-sec li,
  .doc-sec dd,
  .doc-sec dt,
  .doc-sec td,
  .doc-sec strong,
  .doc-sec a,
  .doc-card__title,
  .doc-table code {
    color: #000 !important;
  }

  .doc__grid {
    display: block;
  }
}

/* ---------- 48. Hlavička: červený avatar – přihlášení správce ---------- */
.header-admin {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: -18px; /* těsně vedle telefonu */
  border: 1px solid var(--line-2);
  color: var(--red);
  transition: border-color 0.2s, background-color 0.2s;
}

.header-admin:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  color: var(--red-text); /* avatar zůstane červený i po najetí myší */
}

.header-admin:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.header-admin__icon {
  font-size: 26px;
}

@media (max-width: 480px) {
  .header-admin {
    margin-left: 0;
  }
}

/* Telefony: u tlačítka menu jen ikona, aby se vedle telefonu vešel i avatar */
@media (max-width: 430px) {
  .menu-toggle {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .menu-toggle [data-menu-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .site-header__inner {
    gap: 8px;
  }

  .header-call,
  .header-admin {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .header-admin__icon {
    font-size: 24px;
  }
}

@media (max-width: 340px) {
  .site-header__logo img {
    height: 24px;
  }
}
