/* =========================================================
   D&M Car Meet – styly
   Barvy vychází z loga: černá, bílá, červený akcent.
   ========================================================= */

:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --card: #111;
  --line: #242424;
  --text: #f2f2f2;
  --muted: #9b9b9b;
  --red: #e3171e;
  --red-dark: #b30f15;
  --red-text: #ff3b3f; /* světlejší červená pro malý text na černé (lepší kontrast) */

  --font-display: "Saira", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --nav-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
body.no-scroll { overflow: hidden; }

/* viditelné zvýraznění při ovládání klávesnicí */
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }
.btn:focus-visible, .nav__cta:focus-visible { outline-color: #fff; }
.gallery__item:focus-visible { outline-offset: -2px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Typografie ---------- */
.title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -.01em;
}
.title em { color: var(--red); font-style: italic; }
.title--sm { font-size: clamp(2rem, 4.5vw, 3.2rem); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 16px;
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-top: 18px; }

/* závodní proužky jako v logu */
.stripes { display: inline-flex; gap: 5px; transform: skewX(-30deg); }
.stripes i { display: block; width: 12px; height: 9px; background: #fff; }
.stripes i:last-child { width: 26px; background: var(--red); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: skewX(-12deg);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn > span { display: inline-block; transform: skewX(12deg); }
.btn:hover { background: #fff; color: #000; }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: #fff; border-color: #fff; color: #000; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- Navigace ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
/* textové logo do menu – velké logo se do 46 px nevejde čitelně */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .01em;
  color: #fff;
}
.brand .stripes i { height: 7px; width: 9px; }
.brand .stripes i:last-child { width: 20px; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav__menu a { color: #cfcfcf; position: relative; transition: color .2s; }
.nav__menu a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 2px;
  background: var(--red);
  transition: right .3s var(--ease);
}
.nav__menu a:hover, .nav__menu a.is-active { color: #fff; }
.nav__menu a:hover::after, .nav__menu a.is-active::after { right: 0; }
.nav__cta {
  color: #fff !important;
  padding: 8px 20px;
  background: var(--red);
  transform: skewX(-12deg);
  transition: background .2s, color .2s !important;
}
.nav__cta > span { display: inline-block; transform: skewX(12deg); }
.nav__cta:hover { background: #fff; color: #000 !important; }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 26px; position: relative; }
.nav__burger span { position: absolute; left: 0; right: 0; height: 2px; background: #fff; transition: transform .3s, opacity .3s, top .3s; }
.nav__burger span:nth-child(1) { top: 3px; }
.nav__burger span:nth-child(2) { top: 12px; }
.nav__burger span:nth-child(3) { top: 21px; }
.nav__burger.is-open span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
/* obsah nahoře přes tmavý strop, auta na fotce zůstanou vidět pod ním */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding: calc(var(--nav-h) + 5vh) 24px 90px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  /* fotka přes celou plochu; je vyšší než obrazovka, takže strop garáže
     je za logem a auta vyjdou až pod tlačítka */
  inset: 0 0 -45vh;
  background-image: url("../img/hero.webp");
  background-size: cover;
  background-position: center top;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.05);
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 80%),
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.4) 35%, rgba(0,0,0,.1) 60%, #000 100%);
}
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero__content .eyebrow { justify-content: center; }
.hero__logo {
  width: min(640px, 92%);
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.8));
  animation: drive-in 1.3s var(--ease) both;
}
.hero__tag {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(.8rem, 2vw, 1rem);
  letter-spacing: .38em;
  text-transform: uppercase;
  color: #d6d6d6;
  animation: fade-up 1s .5s var(--ease) both;
}
.hero__btns {
  margin-top: 38px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 1s .7s var(--ease) both;
}
.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.hero__scroll svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  opacity: .75;
  animation: scroll-arrow 1.8s infinite;
}
.hero__scroll:hover svg { stroke: var(--red-text); opacity: 1; }

@keyframes drive-in { from { opacity: 0; transform: translateX(-100px); } to { opacity: 1; transform: none; } }
@keyframes fade-up  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes scroll-arrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Běžící pás ---------- */
.ticker {
  background: var(--red);
  overflow: hidden;
  padding: 14px 0;
  transform: skewY(-1.5deg);
  margin: -10px 0 0;
  position: relative;
  z-index: 3;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker var(--ticker-dur, 50s) linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  white-space: nowrap;
}
/* mezera je i za poslední položkou skupiny (padding), takže obě skupiny
   jsou přesně stejně široké a posun o -50 % navazuje bez skoku */
.ticker__group { display: flex; flex: none; gap: 28px; padding-right: 28px; }
.ticker__track b { color: #000; font-size: .9rem; align-self: center; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sekce ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { margin-bottom: 56px; }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.head--row .lead { margin: 0; }
.head--sub { margin-top: 100px; }

/* ---------- O nás ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__text p:not(.eyebrow) { color: #cfcfcf; margin-top: 18px; font-size: 1.05rem; }
.about__text .title { margin-bottom: 10px; }
.about__photo { position: relative; }
.about__photo::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--red);
  z-index: 0;
}
.about__photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.stats {
  margin-top: 110px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.stat { padding: 36px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b, .stat em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
}
.stat em { color: var(--red); }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Srazy ---------- */
.events { display: grid; gap: 14px; }
.event {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 34px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease);
}
.event::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.event:hover { border-color: #4a4a4a; transform: translateX(8px); }
.event__date { text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 900; line-height: 1; }
.event__date b { display: block; font-size: 2.8rem; }
.event__date span { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.event__date--tba { display: grid; justify-items: center; gap: 8px; }
.event__date--tba svg { width: 34px; height: 34px; fill: var(--red); }
.ico { display: inline-flex; align-items: center; gap: 6px; }
.ico svg { width: 16px; height: 16px; fill: var(--red-text); flex: none; }
.events__cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
  color: #cfcfcf;
}
.event__body h3 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; }
.event__meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: .95rem; }
.badge {
  padding: 7px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--open { border-color: var(--red); color: #fff; background: rgba(227, 23, 30, .15); }
.badge--cancel { border-color: #555; color: #777; text-decoration: line-through; }
.event--cancel { opacity: .6; }
.event--cancel::before { background: #555; }
.event__note { margin-top: 8px; color: #cfcfcf; font-size: .95rem; max-width: 640px; }

/* ---------- Galerie (mřížka – pořadí zleva doprava sedí s lightboxem) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.gallery__item {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: auto; }
.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .4s;
  filter: brightness(.9);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color .3s;
}
.gallery__item:hover img { transform: scale(1.06); filter: brightness(1.05); }
.gallery__item--video { cursor: pointer; }
.gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  border: 2px solid rgba(255, 255, 255, .85);
  transition: background .3s, border-color .3s, scale .3s var(--ease);
}
.gallery__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.gallery__item--video:hover .gallery__play { background: var(--red); border-color: var(--red); scale: 1.08; }
.gallery__dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, .7);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: #fff;
}
.gallery__item:hover::after { border-color: var(--red); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 80px rgba(0,0,0,.8); }
.lightbox__img[hidden] { display: none; }
.lightbox__video { background: #000; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 3rem;
  line-height: 1;
  padding: 10px 18px;
  opacity: .7;
  transition: opacity .2s, color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; color: var(--red); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav--prev { left: 10px; top: 50%; translate: 0 -50%; font-size: 4rem; }
.lightbox__nav--next { right: 10px; top: 50%; translate: 0 -50%; font-size: 4rem; }
.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--muted);
}

/* ---------- Modely ---------- */
.models { display: flex; flex-wrap: wrap; gap: 10px; }
.models span {
  padding: 10px 20px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.15rem;
  transition: border-color .2s, background .2s;
}
.models span:hover { border-color: #fff; }
.models .rs { border-color: var(--red); }
.models .rs:hover { background: var(--red); }

/* ---------- Pravidla ---------- */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rule { padding: 36px 30px; background: var(--card); border: 1px solid var(--line); transition: border-color .25s; }
.rule:hover { border-color: #4a4a4a; }
.rule__n {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
}
.rule h3 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.3rem; margin-bottom: 10px; }
.rule p { color: var(--muted); font-size: .95rem; }

/* ---------- Přihláška ---------- */
.join { overflow: hidden; }
.join__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
  filter: grayscale(.4);
}
.join::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #000 20%, rgba(0,0,0,.6) 100%);
}
.join__grid { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.join__info p:not(.eyebrow) { color: #cfcfcf; margin-top: 18px; }
.socials { display: flex; gap: 12px; margin-top: 30px; }
.socials a {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.5);
  transition: background .2s, border-color .2s;
}
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 20px; height: 20px; fill: #fff; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 38px;
  background: rgba(17, 17, 17, .9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}
.field--full { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 0;
  color: #fff;
  font: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); background: rgba(227,23,30,.08); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .9rem; cursor: pointer; }
.check input { margin-top: 5px; accent-color: var(--red); }
.check.is-invalid { color: var(--red); }
.form__msg:empty { display: none; }
.form__msg { padding: 14px 16px; border: 1px solid var(--red); background: rgba(227,23,30,.12); }
.form__msg.is-error { background: transparent; color: #ff6b70; }

/* ---------- Patička ---------- */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__brand img { width: min(300px, 100%); height: auto; }
.footer__brand p { margin-top: 14px; }
.footer__nav, .footer__contact { display: grid; gap: 10px; }
.footer__nav a, .footer__contact a { color: #cfcfcf; transition: color .2s; justify-self: start; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--red-text); }
.footer__nav { grid-template-columns: 1fr 1fr; column-gap: 24px; font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responzivita ---------- */
@media (max-width: 960px) {
  .nav__burger { display: block; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #000;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: -1;
  }
  .nav__menu.is-open { transform: none; }
  .nav__menu a { padding: 18px 24px; border-top: 1px solid var(--line); }
  .nav__menu a::after { display: none; }
  .nav__cta, .nav__cta > span { transform: none; text-align: center; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav.menu-open { background: #000; }

  .about, .join__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__photo { margin-right: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 80px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rules { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
}

@media (max-width: 640px) {
  .wrap { width: min(1200px, 100% - 32px); }
  .brand__name { font-size: 1.45rem; }
  .event { grid-template-columns: 72px 1fr; gap: 18px; padding: 22px 20px 22px 24px; }
  .event .badge { grid-column: 2; justify-self: start; }
  .event__date b { font-size: 2rem; }
  .event__body h3 { font-size: 1.3rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .events__cta .btn { width: 100%; text-align: center; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .ticker__track { font-size: 1.15rem; }
  .btn { padding: 13px 26px; }
}

/* =========================================================
   MERCH + KOŠÍK
   ========================================================= */

/* ---------- Ikona košíku v navigaci ---------- */
.nav__cart {
  position: relative;
  margin-left: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.nav__cart:hover { border-color: var(--red); background: rgba(227,23,30,.12); }
.nav__cart svg { width: 22px; height: 22px; fill: currentColor; }
.nav__cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .72rem;
  line-height: 20px;
  text-align: center;
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.nav__cart-count.has-items { transform: scale(1); }
.nav__cart.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } }

/* ---------- Produkty ---------- */
/* samolepka (v prodeji) jako hlavní karta, připravované kusy menší vedle */
.shop { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.shop .product--featured { grid-row: span var(--rows, 2); }
.shop .product--featured .product__media { aspect-ratio: 4 / 3; }
.shop .product--soon { flex-direction: row; }
.shop .product--soon .product__media {
  aspect-ratio: auto;
  width: 40%;
  flex: none;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.product--soon .product__body { justify-content: center; }
.product--soon .product__body h3 { font-size: 1.25rem; }
.product--soon .product__body p { flex: none; font-size: .9rem; }
.shop .product--soon:hover { transform: none; }
/* víc produktů v prodeji: běžná mřížka; připravované pod ní */
.shop.shop--grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.shop--grid .product__media { aspect-ratio: 4 / 3; }
.shop.shop--soon { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 18px; }
.shop--soon .product--soon { min-height: 170px; }
.product__media--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product:hover .product__media--photo img { transform: scale(1.04); }
.product--out .product__media { filter: grayscale(1) brightness(.6); }
.shop__empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.product {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease);
}
.product:hover { border-color: #4a4a4a; transform: translateY(-6px); }
.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, #1d1d1d 0%, #070707 70%);
  border-bottom: 1px solid var(--line);
}
.product__media--sticker img {
  width: 84%;
  height: auto;
  /* vzhled samolepky: černý podklad, bílý okraj, mírné natočení */
  padding: 22px 18px;
  background: #000;
  border: 4px solid #fff;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(0,0,0,.7);
  transform: rotate(-6deg);
  transition: transform .5s var(--ease);
}
.product:hover .product__media--sticker img { transform: rotate(-2deg) scale(1.05); }
.product__svg { width: 70%; height: auto; }
.product--soon .product__svg { opacity: .55; }
.product__soon {
  position: absolute;
  top: 50%;
  left: -10%;
  right: -10%;
  translate: 0 -50%;
  rotate: -8deg;
  padding: 10px 0;
  background: var(--red);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.product__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product__body h3 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; }
.product__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.product__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.product__tag--ok { border-color: #2e7d32; color: #7fd18b; }
.product__tag--out { border-color: #555; color: #999; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.product__price { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.9rem; }
.product__price--muted { font-size: 1.1rem; color: var(--muted); }
.product__add { width: 100%; text-align: center; margin-top: 6px; }

/* ---------- Počet kusů ---------- */
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button {
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s;
}
.qty button:hover { background: var(--red); }
.qty input {
  width: 40px;
  border: 0;
  border-inline: 1px solid var(--line);
  background: #000;
  color: #fff;
  text-align: center;
  font: inherit;
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 28px; height: 28px; font-size: .95rem; }
.qty--sm input { width: 32px; font-size: .9rem; }

/* ---------- Košík (vysouvací panel) ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: #0b0b0b;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
.cart.is-open { transform: none; }
.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--red);
}
.cart__head h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.6rem; }
.cart__close { background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .7; }
.cart__close:hover { opacity: 1; color: var(--red); }
.cart__step { flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: 22px 26px; }
.cart__step[hidden] { display: none; }

.cart__items { list-style: none; display: grid; gap: 14px; }
.cart__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cart__item img { width: 64px; height: 64px; object-fit: contain; background: #151515; padding: 6px; }
.cart__item h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2; margin-bottom: 6px; }
.cart__item-price { font-family: var(--font-display); font-style: italic; font-weight: 800; text-align: right; }
.cart__remove { display: block; margin-top: 6px; background: none; border: 0; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; }
.cart__remove:hover { color: var(--red); }

.cart__empty { margin: auto; text-align: center; color: var(--muted); line-height: 2; }
.cart__empty a { color: #fff; border-bottom: 1px solid var(--red); }
.cart__summary { margin-top: auto; padding-top: 22px; display: grid; gap: 8px; }
.cart__row { display: flex; justify-content: space-between; color: var(--muted); }
.cart__row--total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
}
.cart__btn { width: 100%; text-align: center; margin-top: 14px; }

.cart__checkout { gap: 16px; }
.cart__back { align-self: flex-start; background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .9rem; }
.cart__back:hover { color: #fff; }
.delivery { border: 0; display: grid; gap: 10px; }
.delivery legend {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.radio input { accent-color: var(--red); }
.radio b { color: #fff; }
.radio:has(input:checked) { border-color: var(--red); background: rgba(227,23,30,.08); }
.cart__checkout .field[hidden] { display: none; }
/* adresa rozdělená do polí */
.address { border: 0; display: grid; gap: 12px; }
.address[hidden] { display: none; }
.address legend {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.address__row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }

.cart__done { align-items: center; justify-content: center; text-align: center; gap: 14px; }
.cart__done-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--red);
  transform: skewX(-10deg);
}
.cart__done-icon svg { width: 38px; height: 38px; fill: #fff; transform: skewX(10deg); }
.cart__done h3 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.8rem; }
.cart__done p { color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 170;
  translate: -50% calc(100% + 60px);
  visibility: hidden;
  padding: 14px 22px;
  background: #fff;
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  border-left: 5px solid var(--red);
  transition: translate .35s var(--ease), visibility .35s;
  pointer-events: none;
}
.toast.is-visible { translate: -50% 0; visibility: visible; }

@media (max-width: 960px) {
  .nav__cart { margin-left: auto; margin-right: 18px; }
  .shop { grid-template-columns: 1fr; }
  .shop .product--featured { grid-row: auto; }
}
@media (max-width: 640px) {
  .shop .product--soon .product__media { width: 36%; }
  .product--soon .product__body { padding: 18px; }
  .nav__cart { width: 40px; height: 40px; }
}

/* ---------- Kontakt ---------- */
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease);
}
.contact::after {
  content: "→";
  position: absolute;
  right: 26px;
  top: 30px;
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform .25s var(--ease), color .25s;
}
.contact:hover { border-color: var(--red); transform: translateY(-4px); }
.contact:hover::after { transform: translateX(6px); color: var(--red); }
.contact__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--red);
  transform: skewX(-10deg);
}
.contact__icon svg { width: 24px; height: 24px; fill: #fff; transform: skewX(10deg); }
.contact__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  word-break: break-word;
}
@media (max-width: 960px) { .contacts { grid-template-columns: 1fr; } }

/* skryté pole proti robotům ve formuláři objednávky */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   Právní stránky (Ochrana osobních údajů)
   ========================================================= */
.legal-page .nav { background: rgba(0,0,0,.92); border-color: var(--line); }
.legal__back { font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: #cfcfcf; }
.legal__back:hover { color: var(--red-text); }
.legal { padding-top: calc(var(--nav-h) + 60px); }
.legal__wrap { max-width: 820px; }
.legal .title { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.legal .lead { max-width: none; }
.legal__toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 20px; margin: 36px 0 20px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); }
.legal__toc a { color: #cfcfcf; font-size: .95rem; }
.legal__toc a:hover { color: var(--red-text); }
.legal section { padding-top: 34px; scroll-margin-top: calc(var(--nav-h) + 10px); }
.legal h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.15; margin-bottom: 14px; }
.legal h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 26px 0 10px; color: #fff; }
.legal p, .legal li { color: #cfcfcf; font-size: 1rem; }
.legal p { margin-bottom: 12px; }
.legal ul { display: grid; gap: 8px; margin: 0 0 14px; padding-left: 20px; }
.legal li::marker { color: var(--red); }
.legal b { color: #fff; }
.legal a:not(.legal__toc a) { color: #fff; border-bottom: 1px solid var(--red); }
.legal a:not(.legal__toc a):hover { color: var(--red-text); }
.legal code { padding: 1px 6px; background: #1a1a1a; border: 1px solid var(--line); font-size: .88em; }
.legal mark { background: #f0a020; color: #000; padding: 0 4px; font-weight: 700; }
.legal__card { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 14px 0 16px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); }
.legal__card dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; padding-top: 3px; }
.legal__card dd { color: #fff; }
.legal__date { margin-top: 24px; color: var(--muted) !important; font-size: .9rem !important; }
.legal-page .footer { padding-top: 10px; }
.legal-page .footer__bottom { margin-top: 0; border-top: 0; }
.footer__bottom a { color: #cfcfcf; }
.footer__bottom a:hover { color: var(--red-text); }
@media (max-width: 640px) {
  .legal__card { grid-template-columns: 1fr; gap: 2px; }
  .legal__card dd { margin-bottom: 10px; }
}

/* poznámka o osobních údajích pod formuláři */
.form__privacy { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.form__privacy a { color: #cfcfcf; border-bottom: 1px solid var(--red); }
.form__privacy a:hover { color: #fff; }
.legal ol { display: grid; gap: 10px; margin: 0 0 14px; padding-left: 24px; }
.legal ol li::marker { color: var(--red-text); font-weight: 700; }
.legal ol ul { margin-top: 8px; }
.legal__form { white-space: pre-wrap; margin: 14px 0; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); color: #e6e6e6; font-size: .95rem; line-height: 1.7; }
.legal .btn--sm { padding: 10px 20px; font-size: .85rem; }
/* souhlas s podmínkami v košíku */
.cart__terms { font-size: .85rem; line-height: 1.5; }
.cart__terms a { color: #fff; border-bottom: 1px solid var(--red); }
.cart__terms.is-invalid { color: var(--red-text); }
.lead a.link { color:#fff; border-bottom:1px solid var(--red); } .lead a.link:hover { color: var(--red-text); }

/* zaškrtávací políčka (souhlas s podmínkami, přihláška) – bílý čtvereček,
   po zaškrtnutí červený s bílou fajfkou; stejné ve všech prohlížečích */
.check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 3px;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background .15s, border-color .15s;
}
.check input[type="checkbox"]::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s;
}
.check input[type="checkbox"]:checked { background: var(--red); border-color: var(--red); }
.check input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.check input[type="checkbox"]:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }
.check.is-invalid input[type="checkbox"] { border-color: var(--red-text); box-shadow: 0 0 0 3px rgba(255, 59, 63, .35); }
.cart__terms { align-items: flex-start; gap: 12px; }
.join__info a.link { color: #fff; border-bottom: 1px solid var(--red); } .join__info a.link:hover { color: var(--red-text); }

/* přihlášky vypnuté – karta „Připravuje se“ místo formuláře */
.join__soon {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 38px;
  background: rgba(17, 17, 17, .9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}
.join__soon .badge { border-color: var(--red); color: #fff; background: rgba(227, 23, 30, .15); }
.join__soon h3 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.05; }
.join__soon p { color: #cfcfcf; }
@media (max-width: 640px) { .join__soon { padding: 26px 22px; } }

/* prohlášení o nezávislosti na značce Audi */
.footer__disclaimer { margin-top: 36px; margin-bottom: 0; color: #6f6f6f; font-size: .78rem; line-height: 1.6; }
.legal-page .footer__disclaimer { margin-top: 0; margin-bottom: 18px; }
