/* ==========================================================================
   US CARS FEST – style.css
   Čisté CSS bez build kroku. Barvy a fonty jsou v proměnných na :root.
   ========================================================================== */

/* ---------- Fonty (lokálně, woff2; latin + latin-ext pokrývá češtinu) ---------- */
@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/anton-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/anton-400-latin.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:'Archivo';font-style:normal;font-weight:800 900;font-stretch:125%;font-display:swap;src:url(../fonts/archivo-800-900-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Archivo';font-style:normal;font-weight:800 900;font-stretch:125%;font-display:swap;src:url(../fonts/archivo-800-900-latin.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:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-400-latin.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:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/barlow-500-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/barlow-500-latin.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:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-600-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-600-latin.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:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/jetbrains-mono-500-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/jetbrains-mono-500-latin.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}

/* ---------- Proměnné ---------- */
:root {
  /* barvy */
  --ink: #0f0e0d;
  --paper: #f2eee7;
  --raffle-ink: #101113;
  --red: oklch(0.63 0.22 29);
  --red-hi: oklch(0.68 0.2 29);
  --red-tx: oklch(0.7 0.19 29);
  --red-card: oklch(0.6 0.22 29);
  --red-btn: oklch(0.55 0.21 29);
  --red-num: oklch(0.55 0.22 29);
  --red-deep: oklch(0.5 0.2 29);
  --navy: oklch(0.33 0.09 260);
  --amber: oklch(0.83 0.17 75);
  --green: oklch(0.82 0.21 145);
  --text-soft: #cfc8be;
  --text-dim: #b8b1a7;
  --muted: #a39d94;
  --text-on-paper: #3d3833;
  --text-on-paper-dim: #4a453f;
  --text-on-paper-mute: #6b655e;
  --photo-bg: #1a1816;
  --line: rgba(242, 238, 231, 0.16);
  --line-soft: rgba(242, 238, 231, 0.12);

  /* fonty */
  --f-display: 'Anton', sans-serif;
  --f-body: 'Barlow', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
  --f-wide: 'Archivo', sans-serif;

  /* rozměry */
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(80px, 10vw, 140px);

  /* rychlosti běžících pásů */
  --ticker-speed: 30s;
  --sponsor-speed: 60s;
}

/* ---------- Základ ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--paper); text-decoration: none; }
a:hover { color: var(--red-hi); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; }
img { max-width: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.page { background: var(--ink); color: var(--paper); overflow-x: hidden; }

@keyframes ucfMarq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Společné prvky ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--red-tx);
}
.eyebrow--upper { text-transform: uppercase; }
.eyebrow--dark { color: var(--red-deep); }

.h-display {
  margin: 16px 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(52px, 7vw, 112px);
  line-height: 0.92;
  text-transform: uppercase;
}
.accent { color: var(--red-hi); }

.lead {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 44ch;
}
.lead--pretty { text-wrap: pretty; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: end;
}

/* ---------- Běžící pásy ---------- */
.marquee {
  display: flex;
  width: max-content;
  animation: ucfMarq var(--dur) linear infinite;
}
.marquee--reverse { animation-direction: reverse; }
.marquee__row {
  display: flex;
  gap: var(--gap);
  padding-right: var(--gap);
  flex-shrink: 0;
}
.marquee--ticker { --dur: var(--ticker-speed); --gap: 28px; }
.marquee--sponsors { --dur: var(--sponsor-speed); --gap: 56px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
}
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px var(--pad-x) 12px;
}
.nav__logo { display: block; }
.nav__logo img { height: 28px; width: auto; display: block; filter: invert(1); }

.nav__right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; }
.lang__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
}
.lang__link[aria-current='page'],
.lang__link[aria-current='page']:hover { background: var(--paper); color: var(--ink); }

.menu { position: relative; }
.menu__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  background: rgba(10, 9, 8, 0.7);
  color: var(--paper);
  border: 1px solid rgba(242, 238, 231, 0.3);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.menu__btn:hover { border-color: var(--red-hi); }
.menu__caret { display: inline-block; transition: transform 0.25s; transform: rotate(0deg); }
.menu.is-open .menu__caret { transform: rotate(180deg); }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: var(--ink);
  border: 1px solid rgba(242, 238, 231, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 0.9, 0.2, 1), visibility 0s linear 0.25s;
}
.menu.is-open .menu__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.menu__link {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(242, 238, 231, 0.1);
}
.menu__link:hover { background: rgba(242, 238, 231, 0.08); }
.menu__social { display: flex; gap: 0; }
.menu__social a { flex: 1; padding: 16px 20px; }
.menu__social a:first-child { border-right: 1px solid rgba(242, 238, 231, 0.1); }
.menu__social a:hover { background: rgba(242, 238, 231, 0.08); }

.hero__inner { padding: clamp(16px, 3vw, 32px) var(--pad-x) 0; }
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__kicker {
  font-family: var(--f-mono);
  font-size: clamp(14px, 3.6vw, 20px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.hero__tools { display: flex; align-items: center; gap: 12px; }
.lights {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(10, 9, 8, 0.8);
  border: 1px solid rgba(242, 238, 231, 0.14);
  border-radius: 40px;
}
.light {
  width: clamp(20px, 2.4vw, 28px);
  height: clamp(20px, 2.4vw, 28px);
  border-radius: 50%;
  background: rgba(242, 238, 231, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: background 0.12s, box-shadow 0.12s;
}
.light.is-on { background: var(--amber); box-shadow: 0 0 28px var(--amber), 0 0 6px var(--amber); }
.light--green.is-on,
html:not(.intro) .light--green { background: var(--green); box-shadow: 0 0 28px var(--green), 0 0 6px var(--green); }
.replay {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(242, 238, 231, 0.25);
  background: transparent;
  color: var(--paper);
  font-size: 18px;
  cursor: pointer;
}
.replay:hover { background: rgba(242, 238, 231, 0.1); }

.hero__title {
  margin: 12px 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 15.8vw, 300px);
  line-height: 1.02;
  text-transform: uppercase;
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}
.letter {
  display: inline-block;
  min-width: 0.2em;
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) var(--d, 0s);
}
.letter--red { color: var(--red); }

.hero__body {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
.hero__date {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  border-top: 2px solid var(--paper);
  padding-top: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease 0.3s, transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) 0.3s;
}
.hero__date-h {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  color: var(--red);
  white-space: nowrap;
}
.hero__date-p {
  margin: 14px 0 0;
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  max-width: 28ch;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--paper);
}
.countdown__cell {
  padding: 14px 12px;
  border-right: 2px solid var(--paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.countdown__cell:last-child { border-right: none; }
.countdown__v {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__l {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.hero__photo { flex: 2 1 520px; min-width: 0; }
.photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: 100%;
  background: #070606;
  min-height: 240px;
  opacity: 1;
  filter: blur(0) saturate(1);
  transition: opacity 1.2s ease, filter 1.4s ease;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: transform 6s linear;
}
.slide.is-active { opacity: 1; }
.hero.is-go .photo[data-wipe='reveal'] .slide.is-active { transform: scale(1.08); }
.stripes { position: absolute; inset: 0; display: flex; flex-direction: column; }
.stripe {
  flex: 1;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.25, 1) calc(var(--i) * 0.06s);
}
.stripe:nth-child(even) { background: var(--paper); }
.stripe:nth-child(3) { background: var(--navy); }
.photo[data-wipe='cover'] .stripe { transform: scaleX(1); transform-origin: left; }
.photo[data-wipe='reset'] .stripe { transform: scaleX(0); transform-origin: left; transition: none; }
.slide-no {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 10px;
  font-family: var(--f-display);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

/* Úvodní animace – počáteční stav (třída .intro nastavuje krátký skript v <head>,
   .is-go přidává main.js). Bez JS se ukáže finální stav. */
.intro .hero:not(.is-go) .hero__kicker { opacity: 0; }
.intro .hero:not(.is-go) .letter { transform: translateY(105%); }
.intro .hero:not(.is-go) .hero__date { opacity: 0; transform: translateY(24px); }
.intro .hero:not(.is-go) .photo { opacity: 0.15; filter: blur(10px) saturate(0); }

.ticker {
  margin-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid rgba(242, 238, 231, 0.14);
  background: var(--red);
  color: var(--ink);
  padding: 14px 0;
  overflow: hidden;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.04em;
}
.ticker span { white-space: nowrap; }

/* ---------- 01 FESTIVAL ---------- */
.festival { padding: var(--pad-y) var(--pad-x); }
.features {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  border-top: 1px solid var(--line);
}
.feature {
  padding: 32px 28px 36px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature__n { font-family: var(--f-mono); font-size: 13px; color: var(--red-tx); }
.feature__t {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.feature__d { font-size: 17px; line-height: 1.5; color: var(--text-dim); max-width: 32ch; }

/* ---------- ATMOSFÉRA ---------- */
.atmos { padding: 0 0 var(--pad-y); }
.atmos__text { padding: 0 var(--pad-x); }

/* ---------- CHARITATIVNÍ JÍZDA ---------- */
.charity {
  background: var(--paper);
  color: var(--ink);
  padding: var(--pad-y) var(--pad-x);
}
.charity__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px;
}
.charity .h-display { margin: 16px 0 24px; }
.charity__lead { font-size: 21px; line-height: 1.5; color: var(--text-on-paper); max-width: 44ch; text-wrap: pretty; }
.charity__list {
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(15, 14, 13, 0.18);
}
.charity__list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(15, 14, 13, 0.18);
  font-size: 18px;
  display: flex;
  gap: 16px;
}
.charity__list li span { color: var(--red-deep); }
.charity__cards { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; min-height: 420px; }
.card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card--red { background: var(--red-card); color: var(--ink); }
.card--dark { background: var(--ink); color: var(--paper); }
.card__big {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(88px, 11vw, 170px);
  line-height: 0.85;
}
.card__cap { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.12em; }

/* ---------- RAFFLE ---------- */
.raffle { padding: var(--pad-y) var(--pad-x); }
.raffle__card {
  border-radius: 28px;
  padding: clamp(28px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 88px);
  color: var(--raffle-ink);
}
.raffle__card--red { background: var(--red); }
.raffle__card--paper { background: var(--paper); margin-top: 20px; }
.wide { font-family: var(--f-wide); font-stretch: 125%; }
.raffle__presents {
  font-weight: 800;
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: 0.3em;
}
.raffle__outline {
  font-weight: 900;
  font-size: clamp(64px, 17vw, 300px);
  line-height: 0.95;
  margin-top: clamp(12px, 1.5vw, 24px);
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.18vw, 3px) var(--raffle-ink);
  white-space: nowrap;
}
.raffle__word {
  font-weight: 900;
  font-size: clamp(30px, 12vw, 250px);
  line-height: 0.95;
  margin-top: clamp(6px, 1vw, 16px);
}
.raffle__total-label {
  font-weight: 800;
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: 0.3em;
}
.raffle__total {
  margin: clamp(12px, 1.5vw, 24px) 0 0;
  font-weight: 900;
  font-size: clamp(28px, 8.4vw, 190px);
  line-height: 1;
  color: var(--red-num);
  white-space: nowrap;
}
.raffle__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.raffle__sub { font-weight: 800; font-size: 12px; letter-spacing: 0.2em; }
.raffle__h {
  margin: 16px 0 0;
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 76px);
  line-height: 1.05;
  text-transform: uppercase;
}
.raffle__p {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  max-width: 46ch;
  text-wrap: pretty;
}
.years { display: flex; flex-direction: column; margin-top: 72px; }
.year {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px 32px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.year__label {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.year__amount {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
}
.year__who {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.year__links {
  display: flex;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: 13px;
  justify-content: flex-end;
}
.year__links a { color: var(--red-tx); }
.year--photo {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
}
.year__main { flex: 1 1 440px; display: flex; flex-direction: column; gap: 12px; }
.year__card {
  position: relative;
  flex: 0 1 480px;
  width: 100%;
  height: clamp(300px, 34vw, 380px);
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--photo-bg);
}
.year__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
}
.year__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 24px 20px;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.92) 15%, rgba(10, 9, 8, 0));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.year__caption .year__who { font-weight: 700; font-size: 18px; color: var(--paper); }
.year__caption .year__links { justify-content: flex-start; }
.year__caption .year__links a { color: oklch(0.75 0.17 29); }
.raffle__outro {
  margin: 48px 0 0;
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 48px);
  text-align: center;
  text-transform: uppercase;
}

/* ---------- GALERIE ---------- */
.gallery { padding: 0 var(--pad-x) var(--pad-y); }
.gallery .split { margin-bottom: 40px; }
.gallery__panel[hidden] { display: none; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  grid-auto-flow: dense;
  gap: 6px;
}
.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--photo-bg);
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.gallery__cap span { font-family: var(--f-display); font-size: 22px; }

/* přepínač ročníků */
.gallery__tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.gallery__tab {
  padding: 10px 26px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.2;
  cursor: pointer;
}
.gallery__tab:hover { background: rgba(242, 238, 231, 0.12); }
.gallery__tab[aria-pressed='true'] { background: var(--paper); color: var(--ink); }

/* carousel (2025, 2024) – vyjíždí z okrajů, první karta je zarovnaná s obsahem */
.carousel__track {
  display: flex;
  gap: 12px;
  margin: 0 calc(-1 * var(--pad-x));
  padding: 0 var(--pad-x);
  scroll-padding-left: var(--pad-x);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__card {
  flex: none;
  width: clamp(300px, 36vw, 500px);
  margin: 0;
  scroll-snap-align: start;
}
.carousel__img {
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: var(--photo-bg);
}
.carousel__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.carousel__card:hover .carousel__img img { transform: scale(1.05); }
.carousel__cap {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.carousel__nav { display: flex; gap: 12px; margin-top: 28px; }
.carousel__btn {
  width: 52px;
  height: 52px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.carousel__btn:hover { background: var(--paper); color: var(--ink); }

/* lightbox (mozaika 2026) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 9, 8, 0.94);
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 86vh; object-fit: contain; display: block; }
.lightbox__btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: rgba(10, 9, 8, 0.6);
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__btn:hover { background: var(--paper); color: var(--ink); }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 16px; top: 16px; }
.lightbox__count {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- PARTNEŘI ---------- */
.partners {
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--line-soft);
}
.partners__h {
  margin: 16px 0 56px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.92;
  text-transform: uppercase;
}
.partners__rows {
  margin: 0 calc(-1 * var(--pad-x));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.partners__row { overflow: hidden; padding: 28px 0; }
.partners__row:first-child { border-bottom: 1px solid rgba(15, 14, 13, 0.12); }
.logo {
  width: 170px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}
.partners__thanks {
  margin: 32px 0 0;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: center;
}

/* ---------- MÍSTO + KONTAKT ---------- */
.contact { background: var(--paper); color: var(--ink); }
.contact__map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}
.contact__place { padding: clamp(64px, 8vw, 120px) var(--pad-x); }
.contact .h-display { margin: 16px 0 24px; line-height: 1.12; }
.contact__addr { margin: 0; font-size: 20px; line-height: 1.5; }
.btn {
  display: inline-flex;
  padding: 16px 26px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.btn:hover { background: var(--red-btn); color: var(--paper); }
.contact__people {
  padding: clamp(64px, 8vw, 120px) var(--pad-x);
  border-top: 1px solid rgba(15, 14, 13, 0.15);
}
.contact__label {
  margin: 0 0 40px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--red-deep);
}
.contact__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 48px;
}
.person { display: flex; flex-direction: column; gap: 10px; }
.person__n {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-on-paper-mute);
}
.person__name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 44px;
  text-transform: uppercase;
}
.person__role { font-size: 17px; color: var(--text-on-paper-dim); }
.person__tel {
  margin: 8px 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
}
.contact a.dark-link { color: var(--ink); }
.contact a.dark-link:hover { color: var(--red-deep); }
.contact__social {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* ---------- KUDY Z NUDY ---------- */
.kudy {
  padding: clamp(64px, 8vw, 110px) var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
}
.kudy__logo { display: block; background: var(--paper); padding: 24px; flex: none; }
.kudy__logo img { width: 180px; display: block; }
.kudy__text { flex: 1 1 300px; min-width: 0; }
.kudy__h {
  margin: 12px 0 16px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
}
.kudy__p { font-size: 18px; line-height: 1.55; color: var(--text-soft); max-width: 60ch; }

/* ---------- PATIČKA ---------- */
.footer {
  padding: 28px var(--pad-x);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 859px) {
  /* karta s fotkou se zalomí pod text a zabere celou šířku; na tabletu je vyšší,
     aby v ořezu zůstal nápis i všech pět lidí */
  .year__card { flex-basis: 100%; height: auto; aspect-ratio: 4 / 3; min-height: 300px; }
  .year__photo { object-position: 50% 55%; }
}

@media (max-width: 659px) {
  /* úzká mřížka galerie má jediný sloupec – široká dlaždice nesmí vytvořit druhý */
  .gallery__item--wide { grid-column: auto; }

  /* menu se po zalomení navigace nesmí otevřít mimo obrazovku – kotví se k okraji stránky */
  .menu { position: static; }
  .menu__panel { right: var(--pad-x); top: calc(100% - 4px); max-width: calc(100vw - 2 * var(--pad-x)); }
}
