/* ==========================================================================
   RUDNICKÁ ROKLE — úvodní stránka, motokrosový styl
   Svět: červená hlína, rychlost, závodní den. Teplé neutrály, jedna červená z loga,
   šikmé tučné nadpisy, kostkovaný cílový pruh. Rozcestník s fotkami zůstává.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,300..900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --sand: #f2ebe3;
  --sand-2: #e8ddd0;
  --card: #fbf7f2;
  --hair: rgba(28, 20, 16, 0.14);
  --text: #1c1410;
  --text-2: #5a4d44;
  --text-3: #6f6258;

  --ink: #15100d;
  --ink-2: #211813;
  --ink-line: #3a2d26;

  --red: #e24427;
  --red-btn: #cf3a1e;
  --red-btn-hover: #b83017;
  --red-text: #b83017;

  --f-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --r-card: 24px;
  --r-big: 32px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-ui); font-size: 16px; line-height: 24px; color: var(--text); background: var(--sand); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; top: -100px; left: 16px; background: var(--red-btn); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 9999; }
.skip-link:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* závodní nadpis: úzký, tučný, šikmý */
.display { font-weight: 800; font-stretch: 62%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.88; transform: skewX(-8deg); transform-origin: 0 100%; }

/* kostkovaný cílový pruh */
.check { height: 20px; background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 20px 20px; }

/* ==========================================================================
   hlavička: plná tmavá lišta, logo vlevo, odkazy, červené tlačítko vpravo
   ========================================================================== */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(21, 16, 13, 0.94); backdrop-filter: blur(12px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.hdr__bar { position: relative; display: flex; align-items: center; gap: 40px; height: 72px; max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.hdr__logo { display: block; flex-shrink: 0; }
.hdr__logo img { width: 52px; height: 52px; object-fit: contain; }
.hdr__nav { display: flex; gap: 28px; align-items: center; margin-right: auto; }
.hdr__link { position: relative; padding: 8px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); transition: color var(--t-fast) var(--ease); }
.hdr__link:hover { color: #fff; }
.hdr__link.is-active { color: #fff; }
.hdr__link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); }
.hdr__cta { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 24px; background: var(--red-btn); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.hdr__cta:hover { background: var(--red-btn-hover); }
.hdr__cta:active { transform: scale(0.98); }
.hdr__cta svg { width: 16px; height: 16px; }
.hdr__tel { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.8); transition: color var(--t-fast) var(--ease); }
.hdr__tel:hover { color: #fff; }
.hdr__toggle { display: none; }
.hdr__panel { display: none; }

/* ==========================================================================
   tlačítka
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; font: 700 15px/1 var(--f-ui); letter-spacing: 0.04em; text-transform: uppercase; border-radius: 14px; border: 2px solid transparent; cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--red-btn); color: #fff; }
.btn--primary:hover { background: var(--red-btn-hover); }
.btn--light { background: #fff; color: var(--text); }
.btn--light:hover { background: var(--sand); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { background: #fff; color: var(--text); border-color: #fff; }
.btn--outline { color: var(--text); border-color: var(--text); }
.btn--outline:hover { background: var(--text); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   hero: celoobrazovkové video
   ========================================================================== */
.stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.26); }
.stage__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 16, 13, 0.5) 0%, rgba(21, 16, 13, 0) 28%, rgba(21, 16, 13, 0.2) 52%, rgba(21, 16, 13, 0.85) 100%); }
.stage__body { position: relative; width: 100%; padding-bottom: 56px; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.stage__tag { display: inline-block; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; border-left: 4px solid var(--red); padding-left: 12px; margin-bottom: 20px; }
.stage__title { font-size: clamp(56px, 11.5vw, 172px); font-weight: 800; margin-bottom: 28px; }
.stage__title span { color: var(--red); }
.stage__lead { font-size: 19px; line-height: 28px; color: rgba(255, 255, 255, 0.9); max-width: 31rem; margin-bottom: 28px; }
.stage__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* vstupenka na závod */
.ticket { position: relative; display: block; flex-shrink: 0; width: 304px; padding: 22px 28px 22px; background: var(--red); color: #fff; border-radius: 18px;
  -webkit-mask: radial-gradient(circle 11px at 0 56%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 56%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 56%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 56%, transparent 97%, #000) right / 51% 100% no-repeat;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.35)); transition: transform var(--t-fast) var(--ease); }
.ticket:hover { transform: translateY(-4px) rotate(-1deg); }
.ticket:active { transform: scale(0.98); }
.ticket__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; display: block; }
.ticket__date { display: block; font-size: 84px; line-height: 0.9; font-weight: 800; font-stretch: 62%; letter-spacing: -0.01em; transform: skewX(-8deg); transform-origin: 0 100%; margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.ticket__line { display: block; border-top: 2px dashed rgba(255, 255, 255, 0.55); padding-top: 14px; }
.ticket__name { display: block; font-size: 17px; line-height: 22px; font-weight: 700; }
.ticket__go { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 14px; }
.ticket__go svg { width: 20px; height: 20px; }

/* ==========================================================================
   sekce
   ========================================================================== */
.section { padding: 112px 0; }
.eyebrow { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-text); margin-bottom: 16px; display: block; }
.h2 { font-size: clamp(44px, 7vw, 96px); }
.lead { font-size: 18px; line-height: 28px; color: var(--text-2); max-width: 32rem; }

/* jezdí se: fotka hlíny přes celou šířku */
.ride { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.ride__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ride::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(21, 16, 13, 0.9) 0%, rgba(21, 16, 13, 0.62) 55%, rgba(21, 16, 13, 0.35) 100%); }
.ride__inner { position: relative; z-index: 2; padding-top: 112px; padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.ride .eyebrow { color: #ff9a82; }
.ride .h2 { margin-bottom: 24px; }
.ride__lead { color: rgba(255, 255, 255, 0.85); font-size: 18px; line-height: 28px; max-width: 28rem; margin-bottom: 32px; }
.ride__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ride__note { font-size: 14px; color: rgba(255, 255, 255, 0.75); }

.board { border-top: 3px solid var(--red); }
.board__r { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.board__d { font-size: 28px; font-weight: 800; font-stretch: 62%; text-transform: uppercase; }
.board__t { font-family: var(--f-mono); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.board__r--hl .board__d, .board__r--hl .board__t { color: #ff9a82; }
.board__p { grid-column: 1 / -1; font-size: 14px; color: rgba(255, 255, 255, 0.7); padding-top: 14px; }

/* nejbližší závod */
.next { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.next__poster { border-radius: 8px; overflow: hidden; background: var(--sand-2); aspect-ratio: 639 / 901; box-shadow: 0 28px 64px rgba(21, 16, 13, 0.3); max-width: 440px; justify-self: center; transform: rotate(-2deg); }
.next__poster img { width: 100%; height: 100%; object-fit: cover; }
.next__date { font-size: clamp(110px, 17vw, 240px); color: var(--red-text); margin: 4px 0 20px; font-variant-numeric: tabular-nums; }
.next__name { font-size: 26px; line-height: 32px; font-weight: 700; margin-bottom: 6px; }
.next__where { color: var(--text-3); margin-bottom: 20px; }
.next .lead { margin-bottom: 28px; }
.rows { border-bottom: 1px solid var(--hair); margin-bottom: 32px; }
.rows__r { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); }
.rows__t { font-family: var(--f-mono); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rows__d { color: var(--text-2); }

/* rozcestník: tři velké fotky (zachováno) */
.gate-head { margin-bottom: 48px; }
.gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gate { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-big); overflow: hidden; color: #fff; background: #2a2a2c; }
.gate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.gate:hover img { transform: scale(1.05); }
.gate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 16, 13, 0) 45%, rgba(21, 16, 13, 0.8) 100%); }
.gate__txt { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; }
.gate__who { font-size: 14px; color: rgba(255, 255, 255, 0.8); display: block; margin-bottom: 4px; }
.gate__name { font-size: 32px; line-height: 36px; font-stretch: 112%; letter-spacing: -0.02em; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gate__name svg { width: 24px; height: 24px; flex-shrink: 0; transition: transform var(--t-fast) var(--ease); }
.gate:hover .gate__name svg { transform: translateX(4px); }

/* trať shora */
.vista { position: relative; min-height: 600px; color: #fff; background: var(--ink); overflow: hidden; display: flex; align-items: flex-end; }
.vista__img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; object-position: top; }
.vista::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(21, 16, 13, 0.86) 0%, rgba(21, 16, 13, 0.45) 52%, rgba(21, 16, 13, 0) 100%); }
.vista__body { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 72px; }
.vista .eyebrow { color: #ff9a82; }
.vista .h2 { max-width: 7em; margin-bottom: 24px; }
.vista__lead { color: rgba(255, 255, 255, 0.88); font-size: 18px; line-height: 28px; max-width: 30rem; margin-bottom: 32px; }
.vista__stats { display: flex; gap: 56px; flex-wrap: wrap; margin-bottom: 32px; }
.vista__n { display: block; white-space: nowrap; font-size: 56px; line-height: 52px; color: #fff; font-variant-numeric: tabular-nums; }
.vista__l { font-size: 14px; color: rgba(255, 255, 255, 0.78); }

/* příjezd: červený pruh */
.drive { background: var(--red-btn); color: #fff; }
.drive__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 32px; flex-wrap: wrap; }
.drive__t { display: flex; align-items: center; gap: 20px; }
.drive__t svg { width: 32px; height: 32px; flex-shrink: 0; }
.drive__t strong { font-size: 26px; line-height: 30px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; display: block; }
.drive__t span { opacity: 0.92; }

/* sponzoři */
.sponsors { padding: 64px 0; background: var(--card); }
.sponsors__inner { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.sponsors__label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.sponsors__main { padding-right: 56px; border-right: 1px solid var(--hair); }
.sponsors__main-logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.sponsors__main-logos img { max-height: 56px; max-width: 160px; width: auto; height: auto; object-fit: contain; }
.sponsors__partner { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 20px; }
.sponsors__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.sponsors__logos img { max-height: 32px; max-width: 120px; width: auto; height: auto; object-fit: contain; opacity: 0.9; }

/* ==========================================================================
   patička: plochá, přehledná, čtyři sloupce
   ========================================================================== */
.footer { background: var(--ink); color: #fff; }
.footer__top { padding: 72px 32px 56px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 48px; }
.footer__brand img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 20px; }
.footer__brand p { font-size: 15px; line-height: 24px; color: #b6a89d; max-width: 320px; }
.footer__heading { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #b6a89d; margin-bottom: 20px; }
.footer__list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: #e8dfd6; }
.footer__list a { transition: color var(--t-fast) var(--ease); }
.footer__list a:hover { color: var(--red); }
.footer__contact { display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: #e8dfd6; }
.footer__contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--red); margin-top: 3px; }
.footer__contact a { transition: color var(--t-fast) var(--ease); }
.footer__contact a:hover { color: var(--red); }
.footer__contact small { display: block; font-size: 13px; color: #b6a89d; }
.footer__bottom { border-top: 1px solid var(--ink-line); }
.footer__bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; font-size: 13px; color: #b6a89d; }

/* ==========================================================================
   responzivita
   ========================================================================== */
@media (max-width: 960px) {
  .hdr__bar { height: 64px; padding: 0 20px; gap: 16px; justify-content: space-between; }
  .hdr__logo img { width: 44px; height: 44px; }
  .hdr__nav, .hdr__tel, .hdr__cta { display: none; }
  .hdr__toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px; color: #fff; cursor: pointer; }
  .hdr__bars { display: flex; flex-direction: column; gap: 5px; width: 18px; }
  .hdr__bars span { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
  .hdr__toggle.is-open .hdr__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hdr__toggle.is-open .hdr__bars span:nth-child(2) { opacity: 0; }
  .hdr__toggle.is-open .hdr__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hdr__panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); color: #fff; padding: 8px 20px 20px; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 3px solid var(--red); }
  .hdr__panel.is-open { display: flex; }
  .hdr__panel a { padding: 14px 0; border-bottom: 1px solid var(--ink-line); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
  .hdr__panel a:last-child { border-bottom: 0; }
  .hdr__panel a.is-active { color: var(--red); }

  .section { padding: 72px 0; }
  .stage__body { flex-direction: column; align-items: flex-start; gap: 32px; padding-bottom: 36px; }
  .ticket { width: 100%; max-width: 340px; }
  .ride__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
  .next { grid-template-columns: 1fr; gap: 48px; }
  .gates { grid-template-columns: 1fr; }
  .gate { aspect-ratio: 16 / 10; }
  .vista { min-height: 520px; }
  .vista::before { background: linear-gradient(180deg, rgba(21, 16, 13, 0.4), rgba(21, 16, 13, 0.88)); }
  .sponsors__inner { grid-template-columns: 1fr; gap: 24px; }
  .sponsors__main { padding-right: 0; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--hair); }
  .footer__top { grid-template-columns: repeat(2, 1fr); padding: 56px 32px 40px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hdr__bar { padding: 0 16px; }
  .stage__lead { font-size: 17px; line-height: 26px; }
  .stage__actions .btn { flex: 1 1 100%; }
  .gate__txt { left: 20px; right: 20px; bottom: 20px; }
  .vista__stats { gap: 32px; }
  .vista__n { font-size: 44px; line-height: 44px; }
  .drive__in { padding: 32px 20px; }
  .footer__top { grid-template-columns: 1fr; padding: 48px 20px 32px; gap: 36px; }
  .board__d, .board__t { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   úvod 2: čísla, závody, historie, výzva (bez konkrétního termínu)
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 4px solid var(--text); background: var(--card); }
.stats__i { padding: 40px 32px 36px; }
.stats__i + .stats__i { border-left: 1px solid var(--hair); }
.stats__n { display: block; white-space: nowrap; font-size: clamp(36px, 4.2vw, 60px); line-height: 0.95; color: var(--text); font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.stats__n small { font-size: 0.4em; margin-left: 6px; color: var(--red-text); }
.stats__l { font-size: 15px; color: var(--text-2); }

.zav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.zav__img { border-radius: var(--r-big); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand-2); }
.zav__img img { width: 100%; height: 100%; object-fit: cover; }
.zav .h2 { margin-bottom: 24px; }
.zav .lead { margin-bottom: 28px; }
.list { border-bottom: 1px solid var(--hair); margin-bottom: 32px; }
.list__r { padding: 16px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.list__r svg { width: 20px; height: 20px; color: var(--red-text); margin-top: 3px; }
.list__r strong { display: block; font-weight: 700; }
.list__r span { color: var(--text-2); font-size: 15px; }

.hist { background: var(--sand-2); }
.hist__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.hist .h2 { margin-bottom: 20px; }
.hist .lead { margin-bottom: 28px; }
.hist__list { border-left: 3px solid var(--red); padding-left: 28px; display: flex; flex-direction: column; gap: 28px; }
.hist__y { font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--red-text); display: block; margin-bottom: 4px; }
.hist__t { font-size: 20px; line-height: 28px; font-weight: 600; }

.cta { background: var(--ink-2); color: #fff; text-align: center; padding: 96px 0; }
.cta .h2 { margin: 0 auto 20px; transform-origin: 50% 100%; max-width: 12em; }
.cta p { color: rgba(255, 255, 255, 0.8); max-width: 34rem; margin: 0 auto 32px; font-size: 18px; line-height: 28px; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__i:nth-child(3) { border-left: 0; }
  .stats__i:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .zav, .hist__in { grid-template-columns: 1fr; gap: 40px; }
  .cta { padding: 72px 0; }
}
@media (max-width: 640px) {
  .stats__i { padding: 28px 20px 24px; }
  .hist__list { padding-left: 20px; }
}


/* ==========================================================================
   ÚVOD 3 — logo přesahující do hera, hero vlevo, Co u nás najdete, partneři ve patičce
   ========================================================================== */

/* skrytý posuvník */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* logo přesahuje z lišty na video, jen když je stránka nahoře */
.hdr__logo { position: relative; z-index: 2; }
.hdr__logo img { width: 52px; height: 52px; transition: width 220ms var(--ease), height 220ms var(--ease), margin 220ms var(--ease), filter 220ms var(--ease); }
.hdr:not(.is-solid) .hdr__logo img { width: 108px; height: 108px; margin-bottom: -44px; position: relative; top: 4px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)); }

/* hero: text vlevo, v jedné ose s logem */
.stage { align-items: center; }
.stage__scrim { background:
  linear-gradient(90deg, rgba(10, 8, 7, 0.9) 0%, rgba(10, 8, 7, 0.62) 46%, rgba(10, 8, 7, 0.28) 100%),
  linear-gradient(180deg, rgba(10, 8, 7, 0.55) 0%, rgba(10, 8, 7, 0) 32%, rgba(10, 8, 7, 0.5) 100%); }
.stage__body { max-width: 1360px; margin: 0 auto; padding: 120px 32px 80px; justify-content: flex-start; align-items: center; }
.stage__tag { margin-bottom: 24px; }
.stage__title { font-size: clamp(64px, 11.5vw, 172px); margin-bottom: 28px; }
.stage__lead { max-width: 30rem; }

/* rozcestník: nový text */
.gate__sub { display: block; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.78); margin-top: 6px; }

/* co u nás najdete */
.feat__head { max-width: 620px; margin-bottom: 56px; }
.feat__head .lead { margin-top: 20px; }
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; }
.feat__i { border-top: 3px solid var(--text); padding-top: 24px; }
.feat__i svg { width: 32px; height: 32px; color: var(--red-text); margin-bottom: 20px; }
.feat__t { font-size: 22px; line-height: 28px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 8px; }
.feat__x { color: var(--text-2); font-size: 16px; line-height: 24px; max-width: 26rem; }

/* trať shora: fotka a minimum textu */
.view { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.view__img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; object-position: top; }
.view::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 8, 7, 0) 40%, rgba(10, 8, 7, 0.78) 100%); }
.view__body { position: relative; z-index: 2; width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 32px 56px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.view__title { font-size: clamp(40px, 6vw, 88px); }
.view__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.view__chip { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); font-size: 14px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.22); }

/* patička s partnery */
.footer__partners { padding-top: 88px; padding-bottom: 8px; }
.footer__ptitle { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 36px; color: #fff; }
.ptiles { display: grid; gap: 12px; }
.ptiles--main { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
.ptiles--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ptile { display: flex; align-items: center; justify-content: center; gap: 14px; background: #fff; color: var(--text); border-radius: 16px; padding: 18px 24px; min-height: 84px; }
.ptiles--main .ptile { min-height: 116px; }
.ptile img { max-height: 44px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.ptiles--main .ptile img { max-height: 64px; }
.ptile__name { font-size: 22px; line-height: 24px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
a.ptile { transition: background-color var(--t-fast) var(--ease); }
a.ptile:hover { background: var(--sand); }
.footer__rule { height: 1px; background: var(--ink-line); margin: 72px auto 0; max-width: 1296px; }
.footer__top { padding-top: 56px; }

@media (max-width: 960px) {
  .hdr:not(.is-solid) .hdr__logo img { width: 84px; height: 84px; margin-bottom: -28px; top: 2px; }
  .stage__body { padding: 104px 20px 56px; }
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .ptiles--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view { min-height: 62vh; }
  .view__body { padding: 0 20px 40px; }
}
@media (max-width: 640px) {
  .feat { grid-template-columns: 1fr; }
  .ptiles--main { grid-template-columns: 1fr; }
  .footer__partners { padding-top: 56px; }
  .footer__rule { margin-top: 48px; }
}


/* ==========================================================================
   ÚVOD 4 — menší logo, since 1966, blog, záhlaví podstránek, článek
   ========================================================================== */

/* logo v poměru k liště: přesah jen o pár pixelů */
.hdr:not(.is-solid) .hdr__logo img { width: 84px; height: 84px; margin-bottom: -20px; top: 4px; }
.hdr.is-solid .hdr__logo img { width: 52px; height: 52px; }

/* since 1966 vedle slova rokle */
.stage__since { display: inline-block; margin-left: 24px; font-size: clamp(14px, 1.7vw, 24px); line-height: 1; font-weight: 600; font-stretch: 100%; letter-spacing: 0.24em; text-transform: uppercase; color: #fff; transform: none; vertical-align: 0.15em; }

/* blog */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.post { display: flex; flex-direction: column; }
.post__img { display: block; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand-2); margin-bottom: 20px; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.post__img:hover img { transform: scale(1.05); }
.post__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-3); margin-bottom: 10px; }
.post__tag { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-text); }
.post__t { font-size: 24px; line-height: 28px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.005em; margin-bottom: 10px; }
.post__t a { transition: color var(--t-fast) var(--ease); }
.post__t a:hover { color: var(--red-text); }
.post__x { color: var(--text-2); font-size: 16px; line-height: 24px; }

/* záhlaví podstránek v novém stylu */
.phead { padding: 168px 0 56px; }
.phead .display { font-size: clamp(56px, 9vw, 128px); margin-bottom: 20px; }
.phead .lead { max-width: 36rem; }

/* článek */
.article { max-width: 760px; margin: 0 auto; }
.article__img { border-radius: var(--r-big); overflow: hidden; aspect-ratio: 16 / 9; background: var(--sand-2); margin-bottom: 40px; }
.article__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.article__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-3); margin-bottom: 16px; }
.article h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 32px; }
.prose p { font-size: 18px; line-height: 30px; color: var(--text); margin-bottom: 20px; }
.prose h2 { font-size: 28px; line-height: 32px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; margin: 40px 0 16px; }
.prose ul { margin: 0 0 20px; padding-left: 0; }
.prose li { padding: 12px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 88px 1fr; gap: 16px; font-size: 17px; }
.prose li:last-child { border-bottom: 1px solid var(--hair); }
.prose li b { font-family: var(--f-mono); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 32px; transition: color var(--t-fast) var(--ease); }
.back:hover { color: var(--red-text); }
.back svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .hdr:not(.is-solid) .hdr__logo img { width: 68px; height: 68px; margin-bottom: -12px; top: 2px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phead { padding: 128px 0 40px; }
}
@media (max-width: 640px) {
  .posts { grid-template-columns: 1fr; }
  .stage__since { display: block; margin: 12px 0 0; }
  .prose li { grid-template-columns: 72px 1fr; }
}


/* ==========================================================================
   ÚVOD 5 — posuvný blog, pohyb karet, trať jako karta
   ========================================================================== */
.blog-head { align-items: center; }
.blog-ctrl { display: flex; align-items: center; gap: 10px; }
.blog-ctrl .btn { margin-right: 6px; }
.rail-btn { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: transparent; border: 2px solid var(--text); color: var(--text); cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.rail-btn svg { width: 22px; height: 22px; }
.rail-btn:hover:not(:disabled) { background: var(--text); color: #fff; }
.rail-btn:active:not(:disabled) { transform: scale(0.94); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }

.posts--rail { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.posts--rail::-webkit-scrollbar { display: none; }
.posts--rail .post { flex: 0 0 calc((100% - 56px) / 3); scroll-snap-align: start; }

/* karty najíždějí zespodu s odstupem */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .reveal.is-static { opacity: 1; transform: none; }

/* trať jako karta v mřížce stránky */
.view--card { border-radius: var(--r-big); min-height: 560px; }
.view--card .view__body { max-width: none; padding: 0 40px 40px; }

@media (max-width: 960px) {
  .posts--rail .post { flex: 0 0 calc((100% - 28px) / 2); }
}
@media (max-width: 640px) {
  .posts--rail .post { flex: 0 0 82%; }
  .blog-ctrl .btn { display: none; }
  .view--card { min-height: 460px; }
  .view--card .view__body { padding: 0 20px 24px; }
}


/* ==========================================================================
   ÚVOD 6 — řádkování (háčky), hero v novém rozložení, nová patička
   ========================================================================== */

/* diakritika se nesmí dotýkat řádku nad sebou */
.display { line-height: 1.04; }
.display.h2, .h2.display { line-height: 1.06; }
.stage__title { line-height: 0.98; }

/* hero: obří název dole vlevo, text a tlačítka vpravo dole */
.stage { align-items: flex-end; }
.stage__scrim { background:
  linear-gradient(90deg, rgba(10, 8, 7, 0.84) 0%, rgba(10, 8, 7, 0.5) 50%, rgba(10, 8, 7, 0.18) 100%),
  linear-gradient(180deg, rgba(10, 8, 7, 0.5) 0%, rgba(10, 8, 7, 0) 28%); }
.stage__body { display: flex; justify-content: space-between; align-items: flex-end; gap: 56px; padding: 140px 32px 64px; max-width: 1360px; margin: 0 auto; }
.stage__title { font-size: clamp(64px, 13.5vw, 208px); margin: 0; flex-shrink: 1; min-width: 0; }
.stage__side { flex: 0 0 340px; padding-bottom: 14px; }
.stage__lead { font-size: 17px; line-height: 26px; max-width: none; margin-bottom: 24px; }
.stage__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stage__actions .btn { flex: 1 1 auto; }

/* přechod do patičky: měkký fade z písku do tmavé */
.footer__fade { height: 200px; background: linear-gradient(180deg, var(--sand) 0%, var(--ink) 100%); margin-top: -1px; }
.footer { margin-top: -1px; }

/* patička 2: červený panel s telefonem a odkazy */
.fgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding-top: 24px; padding-bottom: 72px; align-items: stretch; }
.fcta { background: var(--red-btn); color: #fff; border-radius: var(--r-big); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.fcta__k { font-size: 15px; font-weight: 600; opacity: 0.9; }
.fcta__tel { white-space: nowrap; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; font-weight: 800; font-stretch: 75%; letter-spacing: 0.005em; font-variant-numeric: tabular-nums; display: block; transition: opacity var(--t-fast) var(--ease); }
.fcta__tel:hover { opacity: 0.85; }
.fcta__x { font-size: 15px; line-height: 22px; opacity: 0.92; max-width: 24rem; }
.fcta .btn { align-self: flex-start; }
.flinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 8px; }
.footer__heading { font-family: var(--f-ui); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #b6a89d; margin-bottom: 18px; }
.footer__sub { color: #b6a89d; font-size: 13px; }

.fpartners { padding-bottom: 64px; }
.ptiles--all { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ptiles--all .ptile { min-height: 72px; padding: 12px 16px; border-radius: 14px; }
.ptiles--all .ptile img { max-height: 34px; }
.ptiles--all .ptile__name { font-size: 18px; }

.footer__brandline { display: inline-flex; align-items: center; gap: 10px; }
.footer__brandline img { width: 28px; height: 28px; object-fit: contain; }
.footer__bottom .wrap { padding-top: 22px; padding-bottom: 22px; }

@media (max-width: 960px) {
  .stage__body { flex-direction: column; align-items: flex-start; gap: 28px; padding: 120px 20px 48px; }
  .stage__side { flex: none; width: 100%; max-width: 420px; padding-bottom: 0; }
  .fgrid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .flinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptiles--all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__fade { height: 120px; }
}
@media (max-width: 640px) {
  .stage__actions .btn { flex: 1 1 100%; }
  .flinks { grid-template-columns: 1fr; }
  .ptiles--all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcta { padding: 28px 24px; }
}


/* ==========================================================================
   ÚVOD 7 — hero zpět do původního rozložení, informační patička od nuly
   ========================================================================== */

/* hero: text vlevo, uprostřed výšky, jako dřív */
.stage { align-items: center; }
.stage__scrim { background:
  linear-gradient(90deg, rgba(10, 8, 7, 0.9) 0%, rgba(10, 8, 7, 0.62) 46%, rgba(10, 8, 7, 0.28) 100%),
  linear-gradient(180deg, rgba(10, 8, 7, 0.55) 0%, rgba(10, 8, 7, 0) 32%, rgba(10, 8, 7, 0.5) 100%); }
.stage__body { display: flex; justify-content: flex-start; align-items: center; gap: 0; max-width: 1360px; margin: 0 auto; padding: 120px 32px 80px; }
.stage__title { font-size: clamp(64px, 11.5vw, 172px); margin: 0 0 28px; line-height: 1.0; }
.stage__lead { font-size: 19px; line-height: 28px; max-width: 30rem; margin: 0 0 28px; }
.stage__actions .btn { flex: 0 0 auto; }

/* patička: čtverce partnerů nahoře, informace pod nimi, stopa tratě v pozadí */
.ft { position: relative; background: var(--ink); color: #fff; overflow: hidden; margin-top: -1px; }
.ft::before { content: ''; position: absolute; inset: 0; background: url('../images/plan-trate.jpg') right 70% / cover no-repeat; opacity: 0.09; filter: grayscale(0.6); pointer-events: none; }
.ft > * { position: relative; }
.ft__partners { padding-top: 32px; }
.ft__h { font-size: 14px; font-weight: 600; color: #b6a89d; margin-bottom: 18px; }
.ft__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 48px; padding: 64px 0 64px; }
.ft__brand img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 16px; }
.ft__name { font-size: 28px; line-height: 30px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; margin-bottom: 10px; }
.ft__brand p:last-child { font-size: 15px; line-height: 24px; color: #b6a89d; max-width: 22rem; }
.ft__list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 22px; color: #e8dfd6; }
.ft__list a { transition: color var(--t-fast) var(--ease); }
.ft__list a:hover { color: var(--red); }
.ft__k { display: block; font-size: 13px; color: #b6a89d; }
.ft__sub { display: block; font-size: 13px; color: #b6a89d; }
.ft__bottom { border-top: 1px solid var(--ink-line); }
.ft__bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: #b6a89d; }

@media (max-width: 960px) {
  .stage__body { padding: 104px 20px 56px; }
  .ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; padding: 48px 0; }
  .ft__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ft__cols { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ÚVOD 9 — čistý fade z hera, větší mezera pod aktualitami, čistá patička
   ========================================================================== */

/* lehký, čistý přechod z videa do sekce pod ním */
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 161px; z-index: 2; background: linear-gradient(180deg, rgba(242, 235, 227, 0) 0%, var(--sand) 100%); pointer-events: none; }
.stage__body { position: relative; z-index: 3; }
.stage__scrim { z-index: 1; }

/* aktuality se nesmí slévat se sekcí pod nimi */
#aktuality-sekce, .section[aria-label="Aktuality"] { padding-bottom: 200px; }

/* patička: čistá, bez fotky, jedna řada značky a odkazů, jedna řada informací */
.ft--clean::before { display: none; }
.ft--clean { background: var(--ink); margin-top: 0; }
.ftc__top { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 56px 0 40px; flex-wrap: wrap; }
.ftc__brand { display: flex; align-items: center; gap: 16px; }
.ftc__brand img { width: 64px; height: 64px; object-fit: contain; }
.ftc__brand strong { display: block; font-size: 30px; line-height: 30px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.01em; }
.ftc__brand small { display: block; font-size: 14px; color: #b6a89d; margin-top: 4px; }
.ftc__nav { display: flex; gap: 32px; flex-wrap: wrap; }
.ftc__nav a { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); transition: color var(--t-fast) var(--ease); }
.ftc__nav a:hover { color: var(--red); }
.ftc__info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0 56px; border-top: 1px solid var(--ink-line); }
.ftc__i { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; font-size: 15px; line-height: 22px; color: #e8dfd6; }
.ftc__i svg { width: 20px; height: 20px; color: var(--red); margin-top: 1px; }
.ftc__i small { display: block; font-size: 13px; line-height: 20px; color: #b6a89d; margin-top: 2px; }
.ftc__i a { transition: color var(--t-fast) var(--ease); }
.ftc__i a:hover { color: var(--red); }

@media (max-width: 960px) {
  .stage::after { height: 110px; }
  .section[aria-label="Aktuality"] { padding-bottom: 120px; }
  .ftc__top { padding: 44px 0 32px; }
  .ftc__nav { gap: 12px 24px; }
  .ftc__info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding: 32px 0 44px; }
}
@media (max-width: 640px) {
  .ftc__info { grid-template-columns: 1fr; }
}


/* ÚVOD 10 — jemný dlouhý fade z videa do sekce pod ním */
.stage__scrim { background:
  linear-gradient(90deg, rgba(10, 8, 7, 0.88) 0%, rgba(10, 8, 7, 0.58) 46%, rgba(10, 8, 7, 0.24) 100%),
  linear-gradient(180deg, rgba(10, 8, 7, 0.5) 0%, rgba(10, 8, 7, 0) 30%); }
.stage::after { height: 380px; bottom: -1px; background: linear-gradient(180deg,
  rgba(242, 235, 227, 0) 0%, rgba(242, 235, 227, 0.03) 10%, rgba(242, 235, 227, 0.1) 22%, rgba(242, 235, 227, 0.22) 34%,
  rgba(242, 235, 227, 0.4) 48%, rgba(242, 235, 227, 0.62) 62%, rgba(242, 235, 227, 0.82) 76%, rgba(242, 235, 227, 0.94) 88%, rgba(242, 235, 227, 1) 100%); }
@media (max-width: 960px) { .stage::after { height: 240px; } }


/* ==========================================================================
   HISTORIE — trať, galerie, kronika, partneři
   ========================================================================== */
.tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-bottom: 48px; }
.tr .lead { max-width: 52rem; font-size: 20px; line-height: 30px; color: var(--text); }
.tr__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 4px solid var(--text); }
.tr__s { padding: 24px 20px 0 0; }
.tr__s + .tr__s { padding-left: 20px; border-left: 1px solid var(--hair); }
.tr__n { display: block; font-size: clamp(34px, 3.6vw, 52px); line-height: 0.95; margin-bottom: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr__l { font-size: 14px; color: var(--text-2); }
.aerial2 { border-radius: var(--r-big); overflow: hidden; aspect-ratio: 1200 / 520; background: var(--sand-2); }
.aerial2 img { width: 100%; height: 122%; object-fit: cover; object-position: top; }

.sect-h { font-size: clamp(36px, 5vw, 72px); margin-bottom: 40px; }

.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gal__tile { padding: 0; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-2); cursor: zoom-in; }
.gal__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease), opacity var(--t-fast) var(--ease); }
.gal__tile:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; background: rgba(10, 8, 7, 0.94); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox__box { position: relative; max-width: 1040px; width: 100%; }
.lightbox__img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; color: #fff; font-size: 14px; }
.lightbox__close { background: #fff; color: var(--text); border: 0; border-radius: 10px; font-weight: 600; font-size: 14px; padding: 9px 16px; cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.lightbox__close:hover { background: var(--sand); }
.lightbox__stage { position: relative; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(255, 255, 255, 0.92); border: 0; border-radius: 50%; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.lightbox__nav:hover { background: #fff; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* kronika areálu */
.chron { background: #f5f4f0; }
.history-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.history-grid > * { min-width: 0; }
.milestone-list { border-left: 3px solid var(--red); padding-left: 24px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 104px; }
.milestone__year { font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--red-text); }
.milestone__text { font-size: 14px; line-height: 21px; color: var(--text-2); margin-top: 2px; }
.history-prose p { margin-bottom: 18px; font-size: 17px; line-height: 29px; color: var(--text); max-width: 46rem; }
.history-prose .src { font-family: var(--f-mono); font-size: 13px; color: var(--text-3); padding-top: 14px; border-top: 1px solid var(--hair); margin: 8px 0 0; }

/* partneři na světlé ploše (bílé pozadí log zmizí díky multiply) */
.pl { background: var(--sand); }
.pl__main { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 40px 72px; margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--hair); }
.pl__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 48px; align-items: center; }
.pl__i { display: flex; align-items: center; min-height: 64px; }
.pl__i img { max-height: 52px; max-width: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.pl__main .pl__i img { max-height: 84px; }
.pl__name { gap: 16px; font-size: 26px; line-height: 28px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; transition: color var(--t-fast) var(--ease); }
.pl__name:hover { color: var(--red-text); }
.pl__name img { mix-blend-mode: normal; max-height: 72px; }

@media (max-width: 960px) {
  .tr { grid-template-columns: 1fr; gap: 32px; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-grid { grid-template-columns: 1fr; gap: 32px; }
  .milestone-list { position: static; }
  .pl__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .pl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
}
@media (max-width: 640px) {
  .tr__specs { grid-template-columns: 1fr; }
  .tr__s, .tr__s + .tr__s { padding: 20px 0 0; border-left: 0; }
  .gal { gap: 8px; }
}

.history-prose p:last-child { font-family: var(--f-mono); font-size: 13px; line-height: 20px; color: var(--text-3); border-top: 1px solid var(--hair); padding-top: 14px; margin: 8px 0 0; }


/* ==========================================================================
   ÚVOD 12 — kratší fade, nadpis bez zalomení, sekce Kdo se v rokli jezdí
   ========================================================================== */
.stage::after { height: 110px; }
@media (max-width: 960px) { .stage::after { height: 80px; } }

.feat__head { max-width: none; }
.feat__head .h2 { white-space: nowrap; }
.feat__head .lead { max-width: 36rem; }

.who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.who__img { border-radius: var(--r-big); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand-2); }
.who__img img { width: 100%; height: 100%; object-fit: cover; }
.who .h2 { margin-bottom: 20px; }
.who .lead { margin-bottom: 36px; }
.who__list { border-top: 3px solid var(--text); }
.who__r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.who__n { font-size: clamp(28px, 3vw, 42px); line-height: 1.05; }
.who__t { color: var(--text-2); font-size: 16px; line-height: 24px; }

@media (max-width: 960px) {
  .who { grid-template-columns: 1fr; gap: 40px; }
  .who__img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .who__r { grid-template-columns: 1fr; gap: 6px; }
  .feat__head .h2 { white-space: normal; }
}


/* ==========================================================================
   ÚVOD 13 — fade se objeví až po scrollu, pár fotek tratě místo galerie
   ========================================================================== */
/* nahoře stránky je fade zcela neviditelný, s posunem dolů se plynule zapíná */
.stage::after { height: 190px; opacity: var(--fade, 0); background: linear-gradient(180deg,
  rgba(242, 235, 227, 0) 0%, rgba(242, 235, 227, 0.02) 8%, rgba(242, 235, 227, 0.07) 18%, rgba(242, 235, 227, 0.16) 30%,
  rgba(242, 235, 227, 0.3) 42%, rgba(242, 235, 227, 0.5) 56%, rgba(242, 235, 227, 0.72) 70%, rgba(242, 235, 227, 0.89) 84%, rgba(242, 235, 227, 1) 100%); }
@media (max-width: 960px) { .stage::after { height: 130px; } }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shot { margin: 0; border-radius: var(--r-card); overflow: hidden; position: relative; background: var(--sand-2); aspect-ratio: 4 / 3; }
.shot--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 18px; color: #fff; font-size: 15px; font-weight: 600; background: linear-gradient(180deg, rgba(10, 8, 7, 0), rgba(10, 8, 7, 0.7)); }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } .shot--wide { aspect-ratio: 4 / 3; } }


/* ÚVOD 14 — fade je pořád na místě, ale leží pod okrajem první obrazovky */
.stage { min-height: calc(100vh + 190px); min-height: calc(100svh + 190px); padding-bottom: 190px; box-sizing: border-box; }
.stage::after { opacity: 1; }
@media (max-width: 960px) { .stage { min-height: calc(100svh + 130px); padding-bottom: 130px; } }


/* ÚVOD 15 — Rok v rokli */
.year__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.year::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--text); }
.year__i { position: relative; padding: 36px 32px 8px 0; }
.year__i + .year__i { padding-left: 32px; border-left: 1px solid var(--hair); }
.year__i::before { content: ''; position: absolute; left: 0; top: -7px; width: 15px; height: 15px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--sand); }
.year__i + .year__i::before { left: 32px; }
.year__s { display: block; white-space: nowrap; font-size: clamp(36px, 4.2vw, 64px); line-height: 1; margin-bottom: 20px; }
.year__t { font-size: 20px; line-height: 26px; font-weight: 700; margin-bottom: 8px; }
.year__x { color: var(--text-2); font-size: 16px; line-height: 24px; }
@media (max-width: 960px) {
  .year { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .year__i:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .year { grid-template-columns: 1fr; }
  .year::before { display: none; }
  .year__i, .year__i + .year__i { padding: 24px 0 0; border-left: 0; border-top: 3px solid var(--text); }
  .year__i::before, .year__i + .year__i::before { left: 0; }
}


/* ÚVOD 16 — Kde leží rokle (statická sekce); partneři jako šedá monochromní řada */
.loc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.loc .h2 { margin-bottom: 20px; }
.loc .lead { margin-bottom: 28px; }
.loc__facts { border-top: 3px solid var(--text); margin-bottom: 32px; }
.loc__facts div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.loc__facts dt { color: var(--text-3); font-size: 14px; }
.loc__facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.loc__map { border-radius: var(--r-big); overflow: hidden; min-height: 440px; background: var(--sand-2); }
.loc__map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; }
@media (max-width: 960px) { .loc { grid-template-columns: 1fr; gap: 40px; } }

.pl { background: #f3f1ee; border-bottom: 4px solid var(--red); }
.pl .sect-h { text-align: center; }
.pl__main, .pl__grid { max-width: 980px; margin-left: auto; margin-right: auto; }
.pl__main { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; }
.pl__i { justify-content: center; }
.pl__i img { filter: grayscale(1); opacity: 0.6; }
.pl__name img { filter: grayscale(1); opacity: 0.6; }
.pl__name { color: #8a8a8a; }


/* ÚVOD 17 — průhledné menu nahoře, větší logo po scrollu, mapa s překryvem, social, credit */
.hdr:not(.is-solid):not(.menu-open) { background: transparent; backdrop-filter: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.hdr.is-solid .hdr__logo img { width: 64px; height: 64px; }

.loc2 { position: relative; border-radius: var(--r-big); overflow: hidden; min-height: 580px; display: flex; align-items: center; background: var(--sand-2); }
.loc2__map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.45) contrast(1.05); }
.loc2__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 16, 13, 0.42) 0%, rgba(21, 16, 13, 0.12) 50%, rgba(21, 16, 13, 0) 70%); pointer-events: none; }
.loc2__card { position: relative; margin: 40px; width: min(440px, calc(100% - 80px)); padding: 36px; background: rgba(251, 247, 242, 0.97); border-radius: var(--r-card); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
.loc2__card .h2 { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: 16px; }
.loc2__card .lead { font-size: 16px; line-height: 24px; margin-bottom: 24px; }
.loc2__card .loc__facts { margin-bottom: 28px; }
.loc2__card .loc__facts div { grid-template-columns: 70px 1fr; }
@media (max-width: 960px) {
  .loc2 { flex-direction: column; align-items: stretch; min-height: 0; }
  .loc2__map { position: static; height: 320px; }
  .loc2__shade { display: none; }
  .loc2__card { margin: 0; width: auto; border-radius: 0; box-shadow: none; padding: 28px 24px; }
}

.ftc__social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--ink-line); border-radius: 50%; color: rgba(255, 255, 255, 0.85); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.ftc__social:hover { background: var(--red); border-color: var(--red); color: #fff; }
.ftc__social svg { width: 20px; height: 20px; }
.ftc__top { gap: 24px 32px; }
.ft__bottom a { color: #e8dfd6; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); transition: color var(--t-fast) var(--ease); }
.ft__bottom a:hover { color: var(--red); }


/* ÚVOD 18 — tmavý překryv pod průhledným menu, mapa v tmavé kartě */
.hdr:not(.is-solid):not(.menu-open) { background: linear-gradient(180deg, rgba(10, 8, 7, 0.72) 0%, rgba(10, 8, 7, 0.45) 100%); border-bottom: 1px solid rgba(255, 255, 255, 0.35); }

.loc3 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--ink-2); color: #fff; border-radius: var(--r-big); overflow: hidden; min-height: 520px; }
.loc3__txt { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.loc3__txt .h2 { margin-bottom: 20px; font-size: clamp(36px, 4vw, 56px); }
.loc3__lead { color: rgba(255, 255, 255, 0.78); font-size: 17px; line-height: 26px; margin-bottom: 32px; max-width: 28rem; }
.loc3__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 36px; border-top: 1px solid var(--ink-line); }
.loc3__facts div { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--ink-line); }
.loc3__facts dt { font-size: 13px; color: #b6a89d; }
.loc3__facts dd { font-size: 20px; line-height: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.loc3__txt .btn { align-self: flex-start; }
.loc3__map { position: relative; min-height: 360px; }
.loc3__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.55) contrast(1.05) brightness(0.95); }
@media (max-width: 960px) {
  .loc3 { grid-template-columns: 1fr; }
  .loc3__txt { padding: 36px 24px; }
  .loc3__map { min-height: 300px; }
}

/* od roku 1966: menší */
.stage__since { font-size: clamp(11px, 1.05vw, 14px); letter-spacing: 0.22em; margin-left: 18px; }


/* ÚVOD 19 — logo jako jemný vodoznak v sekcích (střídavě vlevo a vpravo) */
.wm { position: relative; overflow: hidden; }
.wm::before { content: ''; position: absolute; top: 50%; width: 720px; height: 720px; transform: translateY(-50%); background: url('../images/logo-clean.png') center / contain no-repeat; opacity: 0.06; filter: grayscale(1) contrast(1.2); pointer-events: none; }
.wm--r::before { right: -220px; }
.wm--l::before { left: -220px; }
.wm > .wrap { position: relative; z-index: 1; }
@media (max-width: 960px) { .wm::before { width: 440px; height: 440px; } .wm--r::before { right: -160px; } .wm--l::before { left: -160px; } }

/* vodoznak: jen ve dvou sekcích, větší a výrazněji z kraje */
.wm::before { width: 1040px; height: 1040px; opacity: 0.07; }
.wm--r::before { right: -430px; }
.wm--l::before { left: -430px; }
@media (max-width: 960px) { .wm::before { width: 560px; height: 560px; } .wm--r::before { right: -250px; } .wm--l::before { left: -250px; } }

/* vodoznak loga přes celou stránku (ne ořezaný sekcemi) */
.wm::before { display: none; }
.wm { overflow: visible; }
body.has-wm { position: relative; }
body.has-wm::before, body.has-wm::after { content: ''; position: absolute; width: 1100px; height: 1100px; background: url('../images/logo-clean.png') center / contain no-repeat; opacity: 0.07; filter: grayscale(1) contrast(1.2); pointer-events: none; z-index: -1; }
body.has-wm::before { left: -460px; top: 30%; }
body.has-wm::after { right: -460px; top: 62%; }
@media (max-width: 960px) { body.has-wm::before, body.has-wm::after { width: 600px; height: 600px; } body.has-wm::before { left: -280px; } body.has-wm::after { right: -280px; } }
html { overflow-x: clip; }
body.has-wm { overflow-x: clip; }

/* vodoznak: větší, okraj loga vždy ve středu stránky */
body.has-wm::before, body.has-wm::after { width: 1400px; height: 1400px; }
body.has-wm::before { left: auto; right: 50%; top: 24%; }
body.has-wm::after { right: auto; left: 50%; top: 58%; }
@media (max-width: 960px) { body.has-wm::before, body.has-wm::after { width: 760px; height: 760px; } body.has-wm::before { right: 50%; left: auto; } body.has-wm::after { left: 50%; right: auto; } }

/* mapa: bez ohraničení, se stínem sekce */
.loc3 { border: 0; outline: 0; isolation: isolate; box-shadow: 0 30px 80px rgba(21, 16, 13, 0.32), 0 8px 24px rgba(21, 16, 13, 0.18); }
.loc3__map, .loc3__map iframe { border: 0; outline: 0; }
.loc3__map iframe { clip-path: inset(0); }

/* tlačítko na mapě */
.loc3__btn { position: absolute; left: 20px; bottom: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; background: #fff; color: var(--text); border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.loc3__btn svg { width: 18px; height: 18px; color: var(--red-text); }
.loc3__btn:hover { background: var(--red-btn); color: #fff; }
.loc3__btn:hover svg { color: #fff; }
.loc3__btn:active { transform: scale(0.97); }

/* designový prvek u nadpisů: červeno-bílo-černé šikmé proužky */
.h2.display::before, .sect-h.display::before { content: ''; display: block; width: 84px; height: 12px; margin-bottom: 20px; background: linear-gradient(90deg, #e24427 0 34%, #fff 34% 67%, #15100d 67% 100%); box-shadow: 0 0 0 1px rgba(21, 16, 13, 0.14); }
.phead .display::before { content: none; }

/* proužky: svisle vlevo od nadpisu, červená–černá–bílá, výška poloviny nadpisu */
.h2.display::before, .sect-h.display::before { content: ''; display: block; position: absolute; left: 0; top: 4px; width: 20px; height: calc(50% - 4px); margin: 0; background: linear-gradient(90deg, #e24427 0 33.3%, #15100d 33.3% 66.6%, #fff 66.6% 100%); box-shadow: 0 0 0 1px rgba(21, 16, 13, 0.14); }
.h2.display, .sect-h.display { position: relative; padding-left: 36px; }
.phead .display, .loc3 .h2.display { padding-left: 0; }
.loc3 .h2.display::before { content: none; }

/* poslední sekce: barevná místo černé */
.loc3 { background: linear-gradient(135deg, #e24427 0%, #c43216 100%); }
.loc3__lead { color: rgba(255, 255, 255, 0.92); }
.loc3__facts { border-top-color: rgba(255, 255, 255, 0.35); }
.loc3__facts div { border-bottom-color: rgba(255, 255, 255, 0.35); }
.loc3__facts dt { color: rgba(255, 255, 255, 0.78); }

/* puntík polohy uprostřed mapy */
.loc3__pin { position: absolute; left: 50%; top: 50%; z-index: 2; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--red-btn); border: 4px solid #fff; box-shadow: 0 0 0 8px rgba(226, 68, 39, 0.28), 0 6px 16px rgba(0, 0, 0, 0.35); pointer-events: none; }

/* logo v pozadí: světlejší, hůř viditelné */
body.has-wm::before, body.has-wm::after { opacity: 0.035; }

/* proužky: tři tenké šikmé čárky vlevo od nadpisu (červená, černá, bílá) */
.h2.display::before, .sect-h.display::before { width: 24px; top: 6px; height: calc(52% - 6px); background: linear-gradient(90deg, #e24427 0 4px, transparent 4px 10px, #15100d 10px 14px, transparent 14px 20px, #fff 20px 24px); box-shadow: none; transform: skewX(-20deg); filter: drop-shadow(0 0 0.6px rgba(21, 16, 13, 0.55)); }
.h2.display, .sect-h.display { padding-left: 40px; }

/* poslední sekce: barevný přechod, plynulé napojení mapy */
.loc3 { background: linear-gradient(115deg, #c43216 0%, #e24427 38%, #ff8a3d 100%); }
.loc3__map::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 140px; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(235, 90, 45, 0.9), rgba(235, 90, 45, 0)); }
.loc3__map iframe { filter: saturate(1.1) contrast(1.02); }
@media (max-width: 960px) { .loc3__map::before { display: none; } }

/* ÚVOD 20 — drobné čárky vlevo dole u nadpisu, mapa v barevném rámu, patička */
.h2.display::before, .sect-h.display::before { top: auto; bottom: 8px; height: 62%; width: 18px; background: linear-gradient(90deg, #e24427 0 3px, transparent 3px 7.5px, #15100d 7.5px 10.5px, transparent 10.5px 15px, #fff 15px 18px); }
.h2.display, .sect-h.display { padding-left: 30px; }
.loc3__map::before { display: none; }
.loc3__map { padding: 20px; }
.loc3__map iframe { inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); border-radius: 20px; clip-path: none; }
.loc3__btn { left: 40px; bottom: 40px; }
.ftc__info { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ftc__top { flex-wrap: nowrap; }
.ftc__top .ftc__social + .ftc__social { margin-left: -16px; }
@media (max-width: 960px) { .ftc__info { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftc__top { flex-wrap: wrap; } }
@media (max-width: 640px) { .ftc__info { grid-template-columns: 1fr; } }

/* ÚVOD 21 — čárky přesně podle předlohy: tři tenké šikmé čárky vlevo dole u textu */
.h2.display::before, .sect-h.display::before { top: auto; bottom: 10%; height: 68%; width: 26px; background: linear-gradient(90deg, #e24427 0 4px, transparent 4px 11px, #15100d 11px 15px, transparent 15px 22px, #fff 22px 26px); transform: skewX(-22deg); filter: drop-shadow(0 0 0.8px rgba(21, 16, 13, 0.7)); }
.h2.display, .sect-h.display { padding-left: 42px; }

/* poslední sekce: dvě karty na barevném přechodovém poli */
.loc4 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 32px; border-radius: 40px; background: linear-gradient(130deg, #ffd9c7 0%, #f6b99a 38%, #ff9a5c 100%); }
.loc4__card { background: #fff; border-radius: 28px; padding: 44px; box-shadow: 0 20px 50px rgba(120, 40, 10, 0.18); display: flex; flex-direction: column; }
.loc4__card .h2 { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: 18px; padding-left: 0; }
.loc4__card .h2::before { content: none; }
.loc4__card .lead { font-size: 16px; line-height: 25px; margin-bottom: 28px; }
.loc4__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 32px; border-top: 1px solid var(--hair); }
.loc4__facts div { padding: 14px 8px 14px 0; border-bottom: 1px solid var(--hair); }
.loc4__facts dt { font-size: 13px; color: var(--text-3); }
.loc4__facts dd { font-size: 19px; line-height: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }
.loc4__card .btn { align-self: flex-start; margin-top: auto; }
.loc4__map { position: relative; border-radius: 28px; overflow: hidden; min-height: 460px; box-shadow: 0 20px 50px rgba(120, 40, 10, 0.18); background: #e8ddd0; }
.loc4__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc4 .loc3__btn { left: 20px; bottom: 20px; }
@media (max-width: 960px) { .loc4 { grid-template-columns: 1fr; padding: 16px; border-radius: 28px; } .loc4__card { padding: 28px 22px; } .loc4__map { min-height: 340px; } }

/* ÚVOD 22 — čárky: úzké, 50 % výšky nadpisu, vzestupně od nejmenší po největší */
.h2.display::before, .sect-h.display::before { top: auto; bottom: 14%; height: 50%; width: 18px; transform: skewX(-18deg); filter: drop-shadow(0 0 0.6px rgba(21, 16, 13, 0.7));
  background:
    linear-gradient(#e24427, #e24427) 0 100% / 2px 52% no-repeat,
    linear-gradient(#15100d, #15100d) 8px 100% / 2px 76% no-repeat,
    linear-gradient(#fff, #fff) 16px 100% / 2px 100% no-repeat; }
.h2.display, .sect-h.display { padding-left: 34px; }
.loc5 .h2.display::before { content: none; }

/* poslední sekce: obří název obce jako typografie, karta s mapou přes něj */
.loc5 { position: relative; overflow: visible; padding-bottom: 140px; }
.loc5__word { position: absolute; left: 24px; right: 0; bottom: -30px; z-index: 0; font-size: clamp(120px, 25vw, 380px); line-height: 0.8; color: transparent; -webkit-text-stroke: 2px rgba(21, 16, 13, 0.16); white-space: nowrap; pointer-events: none; user-select: none; }
.loc5__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.loc5__txt .h2 { padding-left: 0; margin-bottom: 20px; }
.loc5__txt .lead { margin-bottom: 28px; }
.loc5__facts { display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 32px; }
.loc5__facts dt { font-size: 13px; color: var(--text-3); }
.loc5__facts dd { font-size: 22px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.loc5__map { position: relative; border-radius: 28px; overflow: hidden; min-height: 460px; box-shadow: 0 30px 70px rgba(21, 16, 13, 0.28); background: #e8ddd0; transform: rotate(1.2deg); }
.loc5__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc5 .loc3__btn { left: 20px; bottom: 20px; }
@media (max-width: 960px) { .loc5__in { grid-template-columns: 1fr; gap: 40px; } .loc5__map { min-height: 340px; transform: none; } .loc5 { padding-bottom: 90px; } }

/* ÚVOD 23 — spodní logo pryč; designový prvek u nadpisů: kostkované políčko + červená šikmá značka */
body.has-wm::after { display: none; }
.loc5__word { font-size: clamp(90px, 17vw, 270px); }

.h2.display::before, .sect-h.display::before { content: ''; position: absolute; left: 0; top: 0.3em; bottom: auto; width: 0.52em; height: 0.34em; transform: none; filter: none; box-shadow: 0 0 0 1px rgba(21, 16, 13, 0.25);
  background: repeating-conic-gradient(#15100d 0 25%, #fff 0 50%) 0 0 / 0.17em 0.17em; }
.h2.display::after, .sect-h.display::after { content: ''; position: absolute; left: 0.66em; top: 0.3em; width: 0.2em; height: 0.34em; background: #e24427; transform: skewX(-22deg); }
.h2.display, .sect-h.display { padding-left: 1.12em; }
.phead .display, .loc5__word { padding-left: 0; }
.phead .display::before, .phead .display::after, .loc5__word::before, .loc5__word::after { content: none; }
.loc5 .h2.display::before, .loc5 .h2.display::after, .loc5__txt .h2::before, .loc5__txt .h2::after { content: ''; }
.loc5__txt .h2 { padding-left: 1.12em; }
.loc4__card .h2::before, .loc4__card .h2::after { content: none; }

/* ÚVOD 24 — u nadpisů: červená šikmá značka + tenké šikmé proužky zvýrazňujících barev, zarovnané dolů */
.h2.display::before, .sect-h.display::before { content: ''; position: absolute; left: 0; top: auto; bottom: 0.14em; width: 0.2em; height: 0.36em; background: #e24427; box-shadow: none; transform: skewX(-22deg); filter: none; }
.h2.display::after, .sect-h.display::after { content: ''; position: absolute; left: 0.36em; top: auto; bottom: 0.14em; width: 0.28em; height: 0.36em; transform: skewX(-22deg); filter: none;
  background:
    linear-gradient(#15100d, #15100d) 0 0 / 0.04em 100% no-repeat,
    linear-gradient(#ff8a3d, #ff8a3d) 0.1em 0 / 0.04em 100% no-repeat,
    linear-gradient(#ffc93c, #ffc93c) 0.2em 0 / 0.04em 100% no-repeat; }
.h2.display, .sect-h.display { padding-left: 0.9em; }
.loc5__txt .h2 { padding-left: 0.9em; }

/* poslední sekce: mapa rovně, obří nápis pod obsahem a těsně nad kostkovaným pruhem */
.loc5 { padding-bottom: 0 !important; }
.loc5__in { align-items: end; }
.loc5__map { transform: none !important; }
.loc5__word { position: static; display: block; margin: 64px 0 0; padding: 0; left: auto; right: auto; bottom: auto; line-height: 0.86; overflow: hidden; }
.loc5 > .wrap { display: flex; flex-direction: column; }
.loc5__word { order: 2; overflow: visible; margin-top: 72px; line-height: 0.9; padding-bottom: 6px; }
.loc5__in { order: 1; }
.loc5__word { font-size: clamp(64px, 14.2vw, 230px); max-width: 100%; }
.loc5__word { font-size: clamp(60px, 13vw, 210px); }

/* ÚVOD 25 — bez značek u nadpisu poslední sekce; obří nápis přes celou šířku, spodek přesně na kostkovaném pruhu */
.loc5 .loc5__txt .h2.display::before, .loc5 .loc5__txt .h2.display::after { content: none !important; }
.loc5 .loc5__txt .h2.display { padding-left: 0; }
svg.loc5__word { display: block; order: 2; position: static; width: 100vw; max-width: none; height: auto; margin: 64px 0 0 calc(50% - 50vw); padding: 0; overflow: visible; line-height: 1; transform: none; }
svg.loc5__word text { font-family: var(--f-ui); font-weight: 800; font-stretch: 62%; font-size: 140px; letter-spacing: 0; fill: none; stroke: rgba(21, 16, 13, 0.2); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

/* ÚVOD 26 — značka u nadpisů podle návrhu: zkosený blok ve třech pruzích (červená, černá, bílá), pruhy se zvětšují */
.h2.display::before, .sect-h.display::before { content: ''; position: absolute; left: 0; top: auto; bottom: 0.12em; width: 0.86em; height: 0.52em; transform: skewX(-22deg); filter: none; box-shadow: 0 0 0 1px rgba(21, 16, 13, 0.35);
  background: linear-gradient(90deg, #e24427 0 28%, #15100d 28% 66%, #fff 66% 100%); }
.h2.display::after, .sect-h.display::after { content: none !important; }
.h2.display, .sect-h.display { padding-left: 1.22em; }
.loc5 .loc5__txt .h2.display { padding-left: 0; }

/* poslední sekce blíž k obřímu nápisu */
svg.loc5__word { margin-top: 6px; }
.loc5__in { margin-bottom: 0; }

/* ÚVOD 27 — značka menší a blíž k textu */
.h2.display::before, .sect-h.display::before { width: 0.6em; height: 0.36em; bottom: 0.14em; }
.h2.display, .sect-h.display { padding-left: 0.86em; }
.loc5 .loc5__txt .h2.display { padding-left: 0; }

/* značka přesně na účaří (baseline) posledního řádku nadpisu */
.h2.display::before, .sect-h.display::before { bottom: 0.199em; transform-origin: 50% 100%; }

/* značka: užší, menší a těsně u textu */
.h2.display::before, .sect-h.display::before { width: 0.4em; height: 0.28em; }
.h2.display, .sect-h.display { padding-left: 0.6em; }
.loc5 .loc5__txt .h2.display { padding-left: 0; }

/* značka: minimalistická, užší, těsně u textu, průhlednější */
.h2.display::before, .sect-h.display::before { width: 0.28em; height: 0.26em; opacity: 0.55; box-shadow: none; }
.h2.display, .sect-h.display { padding-left: 0.42em; }
.loc5 .loc5__txt .h2.display { padding-left: 0; }
.h2.display::before, .sect-h.display::before { opacity: 1; }

/* aktuality: pohyb jen šipkami, bloky se nedají scrollovat ručně */
.posts--rail { overflow: hidden; scroll-snap-type: none; overscroll-behavior: contain; touch-action: pan-y; padding-bottom: 0; }
.posts--rail .post { scroll-snap-align: none; }

/* značka ještě užší */
.h2.display::before, .sect-h.display::before { width: 0.2em; }
.h2.display, .sect-h.display { padding-left: 0.34em; }
.loc5 .loc5__txt .h2.display { padding-left: 0; }

/* první sekce blíž k hero */
.section[aria-label="Rozcestník"] { padding-top: 12px; }
.section[aria-label="Rozcestník"] .gate-head { margin-bottom: 32px; }

/* patička: ikony Facebook a e-mail těsně vedle sebe */
.ftc__top { justify-content: flex-start; gap: 0; }
.ftc__top .ftc__brand { margin-right: auto; }
.ftc__top .ftc__nav { margin-right: 32px; }
.ftc__top .ftc__social { margin-left: 0; }
.ftc__top .ftc__social + .ftc__social { margin-left: 10px; }
@media (max-width: 960px) { .ftc__top { flex-wrap: wrap; gap: 20px 24px; } .ftc__top .ftc__brand { margin-right: 0; width: 100%; } .ftc__top .ftc__nav { margin-right: 0; } .ftc__top .ftc__social + .ftc__social { margin-left: -14px; } }

/* jednotná mezera mezi sekcemi na úvodu: 112 px (na mobilu 72 px) */
body.has-wm main > .section { padding-top: 0 !important; padding-bottom: 112px !important; }
body.has-wm main > .section[aria-label="Rozcestník"] { padding-top: 12px !important; }
body.has-wm main > .section.loc5 { padding-bottom: 0 !important; }
@media (max-width: 960px) { body.has-wm main > .section { padding-bottom: 72px !important; } body.has-wm main > .section.loc5 { padding-bottom: 0 !important; } }

/* zamčené odkazy: na úvodu je funkční jen Start, ostatní stránky zůstávají, ale nejsou odsud dostupné */
a[aria-disabled="true"] { pointer-events: none; cursor: default; opacity: 0.55; }
.gate[aria-disabled="true"] { opacity: 0.8; }
.hdr__cta[aria-disabled="true"] { opacity: 0.7; }

/* zamčené odkazy vypadají normálně, jen se nedají kliknout */
a[aria-disabled="true"], .gate[aria-disabled="true"], .hdr__cta[aria-disabled="true"] { opacity: 1; cursor: default; pointer-events: none; }
