/* ==========================================================================
   Tábor Borovany – hlavní styly
   Barvy a písma se mění v :root níže.
   ========================================================================== */

:root {
  --paper: #f3f3f0;
  --paper-2: #e8e8e3;
  --card: #ffffff;
  --ink: #121316;
  --ink-2: #41444b;
  --muted: #74767c;
  --berry: #2f3b8f;
  --berry-deep: #15172b;
  --berry-soft: #e3e5f0;
  --forest: #121316;
  --leaf: #4f7a4a;
  --sun: #e39b3a;
  --line: rgba(29, 32, 48, .12);
  --line-light: rgba(255, 255, 255, .18);

  --serif: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --radius-sm: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* jemná papírová textura */
body::before {
  display: none;
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer, header { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
::selection { background: var(--berry); color: #fff; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.6vw, 6rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.15; }
h4 { font-size: 1.2rem; line-height: 1.25; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--muted); }
.on-dark h1 em, .on-dark h2 em { color: rgba(255, 255, 255, .45); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding: clamp(56px, 7vw, 90px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 .8rem/1 var(--sans); letter-spacing: .02em;
  color: var(--muted); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--berry); }
.on-dark .eyebrow { color: rgba(255, 255, 255, .6); }
.on-dark .eyebrow::before { background: #fff; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.6; max-width: 46ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- tlačítka ---------- */
.btn {
  --bg: var(--berry); --fg: #fff;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .65em;
  padding: .95em 1.5em; border-radius: 4px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--berry-deep); transform: translateY(101%);
  transition: transform .45s var(--ease); border-radius: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(34, 37, 90, .55); }
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover svg.i-down { transform: translateY(2px); }
.btn-light { --bg: var(--paper); --fg: var(--ink); }
.btn-light::after { background: #fff; }
.btn-ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost::after { background: rgba(255, 255, 255, .12); }
.btn-ghost.dark::after { background: rgba(29, 32, 48, .06); }
.btn-sun { --bg: var(--sun); --fg: #241a08; }
.btn-sun::after { background: #f0b25a; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; text-decoration: none; color: var(--berry);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- hlavička ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  color: #fff;
  transition: transform .5s var(--ease), background .4s, color .4s, box-shadow .4s, height .4s;
}
.site-header.is-solid, .page-plain .site-header {
  background: rgba(246, 242, 234, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: auto; height: 46px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 1.3rem/1 var(--serif); letter-spacing: -.03em; }
.brand-sub { font: 600 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; padding: 10px 14px; text-decoration: none;
  font-weight: 500; font-size: .96rem;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 12px; padding: .8em 1.25em; font-size: .92rem; }
.site-header:not(.is-solid) .nav .btn { --bg: #fff; --fg: var(--ink); }
.site-header:not(.is-solid) .nav .btn::after { background: var(--paper); }
.page-plain .site-header .nav .btn { --bg: var(--berry); --fg: #fff; }
.page-plain .site-header .nav .btn::after { background: var(--berry-deep); }

.burger {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; color: inherit;
  cursor: pointer; position: relative; border-radius: 0;
}
.burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: currentColor; transition: transform .45s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--berry-deep); color: var(--paper);
  padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 46px) 38px);
  transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 46px) 38px); visibility: visible; }
.menu-open .site-header { color: var(--paper); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mobile-menu nav a {
  display: block; font: 600 clamp(2.2rem, 9vw, 3.2rem)/1.15 var(--serif); letter-spacing: -.04em; text-decoration: none;
  padding: 6px 0; opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.mobile-menu nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu nav a:nth-child(5) { transition-delay: .2s; }
.mobile-menu nav a:nth-child(6) { transition-delay: .25s; }
.mobile-menu .mm-foot { font-size: .95rem; opacity: .8; }
.mobile-menu .mm-foot a { display: block; text-decoration: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* ---------- hero (úvod) ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); color: #fff;
  display: flex; align-items: flex-end; overflow: hidden; background: var(--forest);
}
.hero-media { position: absolute; inset: -6% 0 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  transform: scale(1.12); transition: transform 2.6s var(--ease);
  will-change: transform;
}
.is-loaded .hero-media img { transform: scale(1.02); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 18, 30, .45) 0%, rgba(14, 18, 30, 0) 26%),
    linear-gradient(0deg, rgba(14, 18, 30, .78) 0%, rgba(14, 18, 30, .25) 45%, rgba(14, 18, 30, 0) 70%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(40px, 7vh, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr); gap: 48px; align-items: end; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-loaded .hero h1 .line > span { transform: none; }
.is-loaded .hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero h1 .line:nth-child(3) > span { transition-delay: .24s; }
.hero h1 em { color: #fff; }
.hero-text p { font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 44ch; color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-fade { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s; }
.is-loaded .hero-fade { opacity: 1; transform: none; }

.hero-card {
  background: rgba(246, 242, 234, .96); color: var(--ink);
  border-radius: var(--radius); padding: 26px 26px 22px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease) .75s, transform 1.2s var(--ease) .75s;
}
.is-loaded .hero-card { opacity: 1; transform: none; }
.hero-card .hc-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 6px; }
.hero-card .hc-year { font: 600 1.9rem/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.hero-card .hc-badge { white-space: nowrap; font-size: .78rem; font-weight: 600; color: var(--leaf); display: inline-flex; align-items: center; gap: 6px; }
.hero-card .hc-badge::before { content: ""; width: 7px; height: 7px; border-radius: 3px; background: currentColor; border-radius: 0; }
.hero-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.hero-card dt, .hero-card dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .95rem; }
.hero-card dt { color: var(--muted); padding-right: 16px; }
.hero-card dd { text-align: right; font-weight: 600; }
.hero-card dl > :nth-last-child(-n+2) { border-bottom: 0; }
.hero-card .btn { width: 100%; justify-content: center; margin-top: 14px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%);
  width: 1px; height: 46px; background: rgba(255, 255, 255, .25); overflow: hidden;
}
.scroll-cue::after { content: ""; position: absolute; inset: 0; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 122, 74, .5); } 70% { box-shadow: 0 0 0 8px rgba(79, 122, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 122, 74, 0); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 22vh); }
  .scroll-cue { display: none; }
}

/* ---------- podstránky: úvodní pás ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px); position: relative; }
.page-hero h1 { max-width: 15ch; }
.page-hero .lead { margin-top: 1.2rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 .5em; opacity: .5; }

.page-hero-media {
  margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 21 / 8; position: relative;
}
.page-hero-media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

/* rychlá navigace v rámci stránky */
.subnav {
  position: sticky; top: 0; z-index: 30; margin-top: 8px;
  background: rgba(246, 242, 234, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line); transition: top .5s var(--ease);
}
.has-header .subnav { top: var(--header-h); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; white-space: nowrap; padding: 14px 14px; text-decoration: none;
  font-size: .92rem; font-weight: 500; color: var(--ink-2); position: relative;
}
.subnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--berry); transform: scaleX(0); transition: transform .4s var(--ease); }
.subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { transform: scaleX(1); }

/* ---------- aktuálně: odjezd / příjezd ---------- */
.notice {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px 32px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px;
}
.notice-label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sun);
}
.notice-label::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--sun); box-shadow: 0 0 0 0 rgba(227, 155, 58, .5); }
@keyframes pulse-sun { 70% { box-shadow: 0 0 0 9px rgba(227, 155, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 155, 58, 0); } }
.notice-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.notice-items h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.notice-items p { margin: 0; font-size: 1.05rem; }
.notice-items strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; display: block; letter-spacing: -.01em; }
@media (max-width: 860px) { .notice { grid-template-columns: 1fr; } .notice-items { grid-template-columns: 1fr; } }

/* ---------- čísla ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 32px 24px 8px 0; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact + .fact { padding-left: 28px; }
.fact-num { font: 500 clamp(2.6rem, 5vw, 4.2rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.fact-num small { font-size: .45em; margin-left: .15em; color: var(--muted); }
.fact p { margin: 10px 0 0; color: var(--ink-2); font-size: .95rem; max-width: 22ch; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 12px 24px 0; }
  .fact + .fact { padding-left: 0; }
  .fact:nth-child(odd) { border-right: 1px solid var(--line); }
  .fact:nth-child(even) { padding-left: 20px; }
}

/* ---------- dvousloupcové bloky ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.split > .split-text { grid-column: span 5; }
.split > .split-media { grid-column: span 7; }
.split.reverse > .split-text { order: 2; grid-column: 8 / span 5; }
.split.reverse > .split-media { order: 1; grid-column: 1 / span 7; }
.split.top { align-items: start; }
@media (max-width: 900px) {
  .split > .split-text, .split > .split-media, .split.reverse > .split-text, .split.reverse > .split-media { grid-column: 1 / -1; order: initial; }
}

.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.tall { aspect-ratio: 4 / 5; }
.media.wide { aspect-ratio: 16 / 10; }
.media.square { aspect-ratio: 1; }
.media-caption { font-size: .85rem; color: var(--muted); margin-top: 12px; display: flex; gap: 10px; }
.media-caption::before { content: ""; width: 0; height: 1px; background: currentColor; margin-top: .75em; flex: none; }

/* koláž dvou fotek */
.duo { position: relative; padding-bottom: 14%; }
.duo .media:first-child { width: 78%; aspect-ratio: 4 / 3; }
.duo .media:last-child {
  position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4;
  border: 8px solid var(--paper); border-radius: 0;
}

/* ---------- program (redakční seznam) ---------- */
.program-list { counter-reset: prog; margin-top: clamp(40px, 6vw, 80px); }
.program-item {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px);
  padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); align-items: start;
}
.program-item:last-child { border-bottom: 1px solid var(--line); }
.program-item .num { font: 400 1rem/1 var(--serif); color: var(--berry); padding-top: .6em; }
.program-item h3 { margin-bottom: .6em; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.program-item .media { aspect-ratio: 4 / 3; }
.program-item p { color: var(--ink-2); }
@media (max-width: 860px) {
  .program-item { grid-template-columns: 1fr; }
  .program-item .num { padding-top: 0; }
}

/* ---------- denní režim ---------- */
.day { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 40px; }
.day-row { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.day-row time { font: 500 1.05rem/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--berry); }
.day-row span { color: var(--ink-2); }
.day-row.hl span { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .day { grid-template-columns: 1fr; } .day-row { grid-template-columns: 100px 1fr; } }

/* ---------- citace rodičů ---------- */
.quotes { position: relative; }
.quote-stage { position: relative; min-height: 300px; }
.quote {
  position: absolute; inset: 0; opacity: 0; transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .9s var(--ease); pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.quote blockquote {
  margin: 0; font: 500 clamp(1.5rem, 3vw, 2.5rem)/1.2 var(--serif); letter-spacing: -.03em;
  text-wrap: pretty; max-width: 32ch;
}
.quote blockquote::before { content: "„"; color: var(--berry); }
.quote blockquote::after { content: "“"; color: var(--berry); }
.quote cite { display: block; margin-top: 26px; font-style: normal; color: var(--muted); font-size: .95rem; }
.quote-nav { display: flex; gap: 10px; margin-top: 36px; align-items: center; }
.quote-nav button {
  width: 44px; height: 44px; border-radius: 3px; border: 1px solid var(--line); background: transparent;
  cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: background .3s, border-color .3s;
}
.quote-nav button:hover { background: var(--card); border-color: var(--ink); }
.quote-nav button svg { width: 18px; height: 18px; }
.quote-count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; margin-left: 10px; }
.quote-bar { flex: 1; height: 1px; background: var(--line); margin-left: 16px; position: relative; overflow: hidden; max-width: 220px; }
.quote-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.quote-bar i.run { animation: bar 7s linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- běžící pás fotek ---------- */
.marquee { overflow: hidden; padding: 6px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { flex: none; height: clamp(180px, 22vw, 280px); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.marquee-track img { height: 100%; width: auto; object-fit: cover; transition: transform .8s var(--ease); }
.marquee-track a:hover img { transform: scale(1.05); }
.marquee-track.rev { animation-direction: reverse; animation-duration: 85s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- výzva / přihláška ---------- */
.on-dark { background: var(--berry-deep); color: var(--paper); }
.on-dark .lead { color: rgba(246, 242, 234, .8); }
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  display: none;
  content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -30vw; border-radius: 3px;
  background: radial-gradient(circle, rgba(201, 202, 245, .16), transparent 65%);
}
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px 28px 8px 0; border-top: 1px solid var(--line-light); }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line-light); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 500 1rem/1 var(--serif); color: #c9caf5; margin-bottom: 18px; }
.steps h4 { font-size: 1.3rem; margin-bottom: .4em; }
.steps p { color: rgba(246, 242, 234, .75); font-size: .96rem; }
.steps a { color: #fff; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps li + li { padding-left: 0; border-left: 0; } }

/* ---------- dokumenty ke stažení ---------- */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.doc {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.doc:hover { transform: translateY(-3px); border-color: var(--berry); box-shadow: 0 16px 30px -20px rgba(34, 37, 90, .5); }
.doc-icon { width: 44px; height: 52px; flex: none; position: relative; }
.doc-icon svg { width: 100%; height: 100%; }
.doc-name { font-weight: 600; line-height: 1.3; display: block; }
.doc-meta { font-size: .82rem; color: var(--muted); }
.doc-dl { margin-left: auto; width: 34px; height: 34px; flex: none; border-radius: 3px; display: grid; place-items: center; background: var(--berry-soft); color: var(--berry); transition: background .3s, color .3s; }
.doc:hover .doc-dl { background: var(--berry); color: #fff; }
.doc-dl svg { width: 16px; height: 16px; }
.on-dark .doc { background: rgba(255, 255, 255, .06); border-color: var(--line-light); color: var(--paper); }
.on-dark .doc-meta { color: rgba(246, 242, 234, .6); }
.on-dark .doc-dl { background: rgba(255, 255, 255, .12); color: #fff; }
.on-dark .doc:hover { border-color: #c9caf5; }

/* ---------- akordeon ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; padding: 24px 56px 24px 0; position: relative;
  font: 500 clamp(1.1rem, 1.6vw, 1.3rem)/1.3 var(--serif); letter-spacing: -.02em;
  transition: color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--berry); }
.acc summary::after, .acc summary::before {
  content: ""; position: absolute; right: 10px; top: 50%; width: 16px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease);
}
.acc summary::before { transform: rotate(90deg); }
.acc details[open] summary::before { transform: rotate(0); }
.acc .acc-body { overflow: hidden; }
.acc .acc-inner { padding: 0 0 28px; color: var(--ink-2); max-width: 68ch; }
.acc .acc-inner ul, .acc .acc-inner ol { padding-left: 1.2em; margin: 0 0 1em; }
.acc .acc-inner li { margin-bottom: .45em; }
.acc .acc-inner li::marker { color: var(--berry); }

/* ---------- seznam věcí ---------- */
.checklist { columns: 3 240px; column-gap: 40px; list-style: none; padding: 0; margin: 0; }
.checklist li { break-inside: avoid; padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 2px;
  border: 1.5px solid var(--berry); transition: background .25s, border-color .25s;
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 16px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .3s var(--ease);
}
.checklist li.is-checked { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.checklist li.is-checked::before { background: var(--berry); }
.checklist li.is-checked::after { transform: rotate(45deg) scale(1); }
.checklist li.must { font-weight: 600; }
.checklist li.must::before { border-color: var(--sun); border-width: 2px; }
.checklist li { cursor: pointer; user-select: none; }
.check-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0 0 28px; font-size: .92rem; color: var(--muted); }
.check-tools button { background: none; border: 0; color: var(--berry); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.check-progress { height: 4px; flex: 1; min-width: 120px; max-width: 280px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.check-progress i { display: block; height: 100%; width: 0; background: var(--leaf); transition: width .5s var(--ease); }

/* ---------- karty ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.card h3 { font-size: 1.4rem; }
.card p:last-child { margin-bottom: 0; }
.card .card-k { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--berry); margin-bottom: 16px; display: block; }

/* ---------- lidé / kontakty ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.person { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.person h3 { font-size: 1.45rem; margin-bottom: 4px; }
.person .role { color: var(--muted); font-size: .92rem; margin-bottom: 14px; display: block; }
.person a { display: block; text-decoration: none; font-weight: 500; width: fit-content; }
.person a:hover { color: var(--berry); }

.address { font-style: normal; line-height: 1.7; }

/* ---------- časová osa (historie) ---------- */
.timeline { position: relative; margin-top: 48px; padding-left: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline .tl-fill { position: absolute; left: 110px; top: 8px; width: 1px; height: 0; background: var(--berry); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 0 40px; padding: 0 0 36px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 105px; top: 9px; width: 11px; height: 11px; border-radius: 3px;
  background: var(--paper); border: 1.5px solid var(--berry); transition: background .4s;
}
.timeline li.is-in::before { background: var(--berry); }
.timeline time { font: 600 1.5rem/1.1 var(--serif); color: var(--berry); padding-right: 24px; }
.timeline h4 { margin-bottom: 6px; padding-left: 40px; font-size: 1.4rem; }
.timeline p { color: var(--ink-2); padding-left: 40px; margin: 0; }
.timeline li > div { grid-column: 2; }
@media (max-width: 640px) {
  .timeline::before, .timeline .tl-fill { left: 5px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 30px; }
  .timeline li::before { left: 0; }
  .timeline li > div { grid-column: 1; }
  .timeline h4, .timeline p { padding-left: 0; }
  .timeline time { margin-bottom: 6px; }
}

/* ---------- miniatury (osvědčení) ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.thumbs a { display: block; border-radius: 2px; overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 3 / 4; transition: transform .4s var(--ease), box-shadow .4s; }
.thumbs a:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .4); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- článek (akce) ---------- */
.article { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.article .date { font: 500 1.1rem/1.3 var(--serif); color: var(--berry); }
.article h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.article p { color: var(--ink-2); max-width: 64ch; }
.article-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.article-photos a { aspect-ratio: 1; border-radius: 2px; overflow: hidden; display: block; }
.article-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.article-photos a:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .article { grid-template-columns: 1fr; gap: 12px; } .article-photos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- prose ---------- */
.prose { max-width: 68ch; color: var(--ink-2); }
.prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--berry); }
.callout {
  border-left: 2px solid var(--sun); padding: 4px 0 4px 22px; margin: 28px 0;
  font: 400 1.25rem/1.45 var(--serif); color: var(--ink);
}
.tip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.tip { padding: 30px 0; border-top: 1px solid var(--line); }
.tip h3 { font-size: 1.45rem; }
.tip p { color: var(--ink-2); }
@media (max-width: 820px) { .tip-grid { grid-template-columns: 1fr; } }

/* ---------- zápatí ---------- */
.site-footer { background: var(--forest); color: rgba(246, 242, 234, .78); padding: clamp(70px, 9vw, 110px) 0 32px; font-size: .95rem; overflow: hidden; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-top h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 242, 234, .5); font-weight: 600; margin-bottom: 18px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 8px; }
.footer-brand .brand { color: var(--paper); margin-bottom: 20px; }
.footer-brand p { max-width: 32ch; }
.footer-big { display: none;
  font: 400 clamp(4rem, 15vw, 13rem)/.8 var(--serif); letter-spacing: -.04em; color: rgba(246, 242, 234, .06);
  margin: 70px 0 -10px; white-space: nowrap; user-select: none;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(246, 242, 234, .12); padding-top: 24px; font-size: .85rem; color: rgba(246, 242, 234, .5); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- animace při scrollu ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-30px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(12% 8% 12% 8% round var(--radius)); transition: clip-path 1.4s var(--ease); }
.js [data-reveal="clip"] img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.js .split-words.is-in .w > span { transform: none; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; }
}

/* ---------- tisk (např. seznam věcí) ---------- */
@media print {
  body::before, .site-header, .mobile-menu, .site-footer, .subnav, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .section { padding: 20px 0; }
}

/* ==========================================================================
   Fotogalerie
   ========================================================================== */
.years { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.year-card {
  grid-column: span 4; position: relative; display: block; text-decoration: none; color: #fff;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--forest);
  isolation: isolate;
}
.year-card:nth-child(1) { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.year-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; opacity: 0; }
.year-card img.is-ready { opacity: 1; }
.year-card:hover img { transform: scale(1.06); }
.year-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 24, .72), rgba(10, 14, 24, 0) 55%); z-index: 1; transition: opacity .5s; }
.year-card .yc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.year-card .yc-year { font: 600 clamp(2.4rem, 4vw, 3.4rem)/1 var(--serif); letter-spacing: -.03em; }
.year-card:nth-child(1) .yc-year { font-size: clamp(3.4rem, 8vw, 6.4rem); }
.year-card .yc-name { display: block; font: 500 1.05rem/1.3 var(--serif); opacity: .9; margin-top: 6px; }
.year-card .yc-count { font-size: .85rem; font-weight: 600; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 7px 12px; border-radius: 4px; white-space: nowrap; }
.year-card .yc-arrow { position: absolute; top: 20px; right: 20px; z-index: 2; width: 44px; height: 44px; border-radius: 3px; background: #fff; color: var(--ink); display: grid; place-items: center; transform: scale(.6) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.year-card .yc-arrow svg { width: 18px; height: 18px; }
.year-card:hover .yc-arrow { transform: scale(1) rotate(0); opacity: 1; }
.year-older { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.year-older a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.year-older a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 900px) {
  .year-card, .year-card:nth-child(1) { grid-column: span 6; grid-row: auto; aspect-ratio: 4 / 5; }
  .year-card:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .year-card { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3 !important; } }

.year-switch { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.year-switch::-webkit-scrollbar { display: none; }
.year-switch a { flex: none; padding: 8px 15px; border-radius: 4px; text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: background .3s, color .3s; }
.year-switch a:hover { background: var(--paper-2); }
.year-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
.year-switch a.all { color: var(--berry); font-weight: 600; }

.album-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 40px 0 28px; }
.album-head h2 { margin: 0; }
.album-head p { margin: 0; color: var(--muted); }

.jg { --row: 230px; display: flex; flex-wrap: wrap; gap: 8px; }
.jg::after { content: ""; flex-grow: 999999; }
.jg a {
  position: relative; display: block; overflow: hidden; border-radius: 2px; background: var(--paper-2);
  flex-grow: var(--r); flex-basis: calc(var(--r) * var(--row)); cursor: zoom-in;
}
.jg a::before { content: ""; display: block; padding-top: calc(100% / var(--r)); }
.jg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.jg img.is-ready { opacity: 1; transform: none; }
.jg a:hover img.is-ready { transform: scale(1.04); }
.jg a::after { content: ""; position: absolute; inset: 0; background: rgba(34, 37, 90, 0); transition: background .4s; }
.jg a:hover::after { background: rgba(34, 37, 90, .12); }
@media (max-width: 700px) { .jg { --row: 140px; gap: 5px; } .jg a { border-radius: 2px; } }
.jg-more { display: flex; justify-content: center; margin-top: 40px; }
.album-pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line); }
.album-pager a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.album-pager a span { font-size: .85rem; color: var(--muted); }
.album-pager a strong { font: 600 2rem/1 var(--serif); }
.album-pager a:last-child { text-align: right; margin-left: auto; }
.gallery-empty { padding: 60px 0; color: var(--muted); }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200; background: rgba(12, 14, 22, .96);
  display: grid; grid-template-columns: 80px 1fr 80px; grid-template-rows: 64px 1fr; color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 0 16px 0 24px; }
.lb-count { font-variant-numeric: tabular-nums; font-size: .9rem; opacity: .7; }
.lb-actions { display: flex; gap: 6px; }
.lb-btn, .lb-nav { background: none; border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; border-radius: 3px; transition: background .3s; }
.lb-btn { width: 46px; height: 46px; }
.lb-btn:hover, .lb-nav:hover { background: rgba(255, 255, 255, .1); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-nav { width: 56px; height: 56px; align-self: center; justify-self: center; }
.lb-nav svg { width: 28px; height: 28px; }
.lb.is-single .lb-nav, .lb.is-single .lb-count { visibility: hidden; }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding-bottom: 24px; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 120px); object-fit: contain; border-radius: 0; opacity: 0; transform: translateX(var(--from, 0)) scale(.985); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.lb-stage img.is-ready { opacity: 1; transform: none; }
.lb-cap { font-size: .9rem; opacity: .7; margin-top: 12px; text-align: center; min-height: 1.2em; }
@media (max-width: 700px) {
  .lb { grid-template-columns: 0 1fr 0; }
  .lb-nav { position: fixed; bottom: 18px; background: rgba(255, 255, 255, .1); }
  .lb-prev { left: 18px; } .lb-next { right: 18px; }
  .lb-stage { padding-bottom: 90px; }
}

/* ==========================================================================
   Úpravy v2 – čistší vzhled a další animace
   ========================================================================== */

/* úvodní fotka: lehce šedá, při scrollu se přibližuje */
.hero-media img { filter: saturate(.95); }
/* modrý závěs přes fotku jako na původním webu */
.hero::after {
  background:
    linear-gradient(0deg, rgba(18, 28, 52, .55) 0%, rgba(18, 28, 52, 0) 45%),
    rgba(30, 44, 74, .5);
}
.hero h1 em { color: rgba(255, 255, 255, .55); }
.hero .eyebrow, .hero .eyebrow::before { color: rgba(255, 255, 255, .8); }
.hero .eyebrow::before { background: #fff; }
.hero-text { will-change: transform, opacity; }
/* karta „Léto 2027“ – nenápadná, průhledná */
.hero-card {
  border-radius: 2px; box-shadow: none; color: #fff;
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 22px 24px 18px; max-width: 340px; justify-self: end; width: 100%;
}
.hero-card .hc-top { border-bottom-color: rgba(255, 255, 255, .28); padding-bottom: 12px; }
.hero-card .hc-year { font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }
.hero-card .hc-badge { color: rgba(255, 255, 255, .9); font-weight: 500; }
.hero-card .hc-badge::before {
  display: block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc6e;
  box-shadow: 0 0 0 0 rgba(61, 220, 110, .6); animation: online 2s infinite;
}
@keyframes online { 70% { box-shadow: 0 0 0 7px rgba(61, 220, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 110, 0); } }
.hero-card dt, .hero-card dd { border-bottom-color: rgba(255, 255, 255, .22); font-size: .9rem; padding: 8px 0; }
.hero-card dt { color: rgba(255, 255, 255, .78); }
.hero-card dd { font-weight: 500; }
.hero-card .btn { --bg: #fff; --fg: var(--ink); box-shadow: none; margin-top: 12px; padding: .85em 1.2em; font-size: .9rem; }
.hero-card .btn::after { background: var(--paper-2); }

/* tlačítka: hranatější, výplň zleva */
.btn { padding: 1em 1.4em; font-weight: 500; letter-spacing: -.005em; }
.btn::after { transform: translateX(-101%); }
.btn:hover { transform: none; box-shadow: none; }
.btn:hover::after { transform: translateX(0); }
.btn .btn-label { display: inline-block; overflow: hidden; height: 1.1em; line-height: 1.1; }
.btn .btn-label span { display: block; transition: transform .45s var(--ease); }
.btn .btn-label span::after { content: attr(data-t); display: block; }
.btn:hover .btn-label span { transform: translateY(-50%); }
.btn-light:hover { color: var(--ink); }
.site-header:not(.is-solid) .nav .btn::after { background: var(--paper-2); }

/* fotky: z černobílé do barvy, když se objeví */
.js [data-reveal="clip"] { clip-path: none; transition: none; }
.js [data-reveal="clip"].is-in { clip-path: none; }
.js [data-reveal="clip"] img { filter: grayscale(1); clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease), transform 1.8s var(--ease), filter 1.6s var(--ease) .3s; }
.js [data-reveal="clip"].is-in img { filter: grayscale(0); clip-path: inset(0 0 0 0); }
.duo .media:last-child { border-width: 6px; }

/* nadpisy: slova vyjíždějí odspodu */
.js .split-words .w > span { transform: translateY(110%) rotate(3deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 50ms); }
.js .split-words.is-in .w > span { transform: none; }

/* linky, které se při objevení natáhnou */
.js .program-item, .js .day-row, .js .tip, .js .person, .js .acc details, .js .fact { position: relative; }
.js .program-item[data-reveal], .js .tip[data-reveal] { border-top-color: transparent; }
.js .program-item[data-reveal]::before, .js .tip[data-reveal]::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--line); transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease) .1s;
}
.js .program-item.is-in::before, .js .tip.is-in::before { transform: scaleX(1); }

/* běžící textový pás řízený scrollem */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; white-space: nowrap; }
.ticker-row { display: inline-flex; gap: 48px; font: 600 clamp(2.4rem, 6vw, 5rem)/1 var(--sans); letter-spacing: -.045em; will-change: transform; }
.ticker-row span { display: inline-flex; align-items: center; gap: 48px; }
.ticker-row span::after { content: ""; width: .22em; height: .22em; background: var(--berry); flex: none; }
.ticker-row .o { color: transparent; -webkit-text-stroke: 1px var(--ink); }

/* program: hover */
.program-item .media img { transition: transform 1.2s var(--ease), filter 1.6s var(--ease) .2s; }
.program-item:hover .media img { transform: scale(1.05); }
.program-item .num { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.program-item:hover .num { color: var(--berry); }

/* karty a dokumenty */
.card { border-radius: 4px; transition: border-color .4s, transform .5s var(--ease); }
.card:hover { border-color: var(--ink); }
.doc { border-radius: 4px; }
.doc:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.doc-dl { border-radius: 2px; }
.notice { border-radius: 4px; }
.steps li::before { font-weight: 500; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }

/* fotogalerie: méně zaoblené, náhledy naskakují postupně */
.year-card { border-radius: 2px; }
.year-card img { filter: grayscale(.9); transition: transform 1.2s var(--ease), opacity .6s, filter .8s var(--ease); }
.year-card:hover img { filter: grayscale(0); }
.year-card .yc-count { border-radius: 2px; }
.year-card .yc-arrow { border-radius: 2px; }
.year-switch a { border-radius: 2px; }
.jg { gap: 6px; }
.jg img { transform: translateY(14px); transition: opacity .8s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.jg img.is-ready { transform: none; }
.jg a:hover img.is-ready { transform: scale(1.03); transition-delay: 0s; }
.marquee-track a { border-radius: 2px; }
.marquee-track img { filter: grayscale(1); transition: transform .8s var(--ease), filter .6s; }
.marquee-track a:hover img { filter: grayscale(0); }
.page-hero-media, .media { border-radius: 2px; }

/* kurzor „Otevřít“ nad fotkami (jen myš) */
.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  background: var(--ink); color: #fff; font: 500 .8rem/1 var(--sans); padding: 9px 12px;
  opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .25s, transform .3s var(--ease);
}
.cursor-tag.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cursor-tag { display: none; } }

/* přechod mezi stránkami */
.page-veil {
  position: fixed; inset: 0; z-index: 300; background: var(--ink); pointer-events: none;
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease);
}
.page-veil.is-leaving { transform: scaleY(1); pointer-events: auto; }
.page-veil.is-entering { transform: scaleY(1); transform-origin: top; transition: none; }
.page-veil.is-entering.go { transform: scaleY(0); transition: transform .7s var(--ease) .05s; }

/* ukazatel průběhu scrollu */
.scroll-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--berry); transform-origin: left; transform: scaleX(0); z-index: 60; pointer-events: none; }

/* hlavička */
.site-header.is-solid, .page-plain .site-header { background: rgba(243, 243, 240, .88); }
.nav a:not(.btn)::after { bottom: 6px; height: 1.5px; }

/* podnavigace a akordeon */
.subnav { background: rgba(243, 243, 240, .92); }
.acc summary::after, .acc summary::before { width: 14px; }
.callout { border-left-color: var(--berry); font-weight: 500; letter-spacing: -.02em; }
.quote blockquote::before, .quote blockquote::after { color: var(--muted); }
.quote-nav button { border-radius: 2px; }
.mobile-menu { background: var(--ink); }
.timeline li::before { width: 9px; height: 9px; left: 106px; top: 11px; }
@media (max-width: 640px) { .timeline li::before { left: 1px; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal="clip"] { clip-path: none !important; }
  .js [data-reveal="clip"] img { filter: none !important; }
  .page-veil { display: none; }
}

/* mobilní menu: tlačítko přihlášky */
.mobile-menu .mm-cta { align-self: flex-start; margin: 28px 0 auto; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease) .3s, transform .6s var(--ease) .3s; }
.menu-open .mobile-menu .mm-cta { opacity: 1; transform: none; }
.mobile-menu nav { margin-bottom: 0; }
@media (max-width: 900px) { .hero-card { justify-self: stretch; max-width: none; } }
