/* ==========================================================================
   Kendeho vila — styly
   Vizuální jazyk navazuje na Paměť národa (červená #CA003A, chladné šedé,
   kurzívní patkové nadpisy, zúžené verzálky) a doplňuje ho o moderní
   animace při scrollování.
   ========================================================================== */

:root {
  /* Barvy — paleta Paměti národa */
  --ink: #1a1a1e;
  --graphite: #383840;
  --slate: #555561;
  --mute: #73737f;
  --mist: #9e9ea9;
  --line: #d7d6de;
  --paper: #efeff2;
  --cream: #f6f3ee;
  --white: #ffffff;
  --red: #ca003a;
  --red-deep: #9f002e;
  --navy: #1e3d5c;   /* modrá z materiálů Paměti národa Jižní Čechy */

  /* Písmo */
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Bitter", Georgia, "Times New Roman", serif;

  /* Pohyb */
  --ease: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  /* Rozvržení */
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1320px;
  --header-h: 78px;
  --section: clamp(72px, 11vw, 150px);
}

/* ---------- 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(--white);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw + 11px, 18px);
  line-height: 1.62;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

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

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

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

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

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

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: var(--line); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--red { background: var(--red); color: var(--white); }
.section--red h2 { color: var(--white); }

/* ---------- Typografie ---------- */
.display {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  text-transform: uppercase;
  line-height: .93;
  letter-spacing: -.005em;
  color: var(--ink);
}

.display--xl { font-size: clamp(3.6rem, 13.5vw, 12.5rem); }
.display--l  { font-size: clamp(3rem, 9.5vw, 8.5rem); }
.display--m  { font-size: clamp(2.4rem, 6vw, 5rem); }

.h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.01em;
}

.h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.18;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  margin-bottom: 1.4rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
}
.section--ink .eyebrow, .section--red .eyebrow { color: var(--white); }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--graphite);
}
.section--ink .lead { color: var(--line); }

.muted { color: var(--mute); }

.prose { max-width: 66ch; }
.prose p { margin-bottom: 1.15em; }
.prose h3 { margin: 2rem 0 .8rem; }

.text-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  transition: color .2s;
}
.text-link:hover { color: var(--red); }

/* Místa k doplnění — viditelně označená pro redakci */
.todo {
  background: repeating-linear-gradient(-45deg, #fff4c2 0 6px, #ffeb99 6px 12px);
  color: var(--ink);
  padding: .05em .35em;
  border-radius: 2px;
  font-style: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Tlačítka ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: 1em 1.5em;
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill, var(--ink));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}
.btn:hover, .btn:focus-visible { color: var(--btn-fg-hover, var(--white)); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--red {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  --btn-bd: var(--red);
  --btn-fill: var(--ink);
}
.btn--red:hover { border-color: var(--ink); }

.btn--light {
  --btn-fg: var(--white);
  --btn-bd: var(--white);
  --btn-fill: var(--white);
  --btn-fg-hover: var(--ink);
}

.btn--white {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  --btn-bd: var(--white);
  --btn-fill: var(--ink);
}
.btn--white:hover { border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.logo__mark {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 7px 11px 8px;
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: lowercase;
}
.logo__mark::before,
.logo__mark::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 2.5px solid currentColor;
  transition: width .4s var(--ease), height .4s var(--ease);
}
.logo__mark::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.logo__mark::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.logo:hover .logo__mark::before,
.logo:hover .logo__mark::after { width: 22px; height: 22px; }
.logo__sub {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: transform .45s var(--ease), box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.main-nav ul { display: flex; gap: clamp(14px, 2.2vw, 32px); list-style: none; }
.main-nav a:not(.btn) {
  position: relative;
  padding-block: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.main-nav .btn { padding: .8em 1.15em; font-size: .88rem; }
.main-nav__cta { display: flex; gap: 10px; }
.main-nav a { white-space: nowrap; }

/* Tlačítko Podpořte nás se srdcem */
.btn--donate { gap: .55em; }
.btn .heart { width: 1em; height: 1em; flex: none; transition: transform .35s var(--ease); }
.btn--donate:hover .heart { transform: scale(1.18); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 0 10px 10px;
  border: 0;
  background: none;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__bars {
  position: relative;
  width: 26px; height: 14px;
}
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle__bars::before { top: 2px; }
.menu-toggle__bars::after { top: 10px; }
.menu-open .menu-toggle__bars::before { top: 6px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { top: 6px; transform: rotate(-45deg); }

/* Mobilní menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 24px var(--gutter) 32px;
  background: var(--white);
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-io), visibility 0s .6s;
}
.menu-open .mobile-menu {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path .6s var(--ease-io), visibility 0s;
}
.mobile-menu ol { list-style: none; counter-reset: m; }
.mobile-menu li {
  counter-increment: m;
  border-bottom: 1px solid var(--line);
}
.mobile-menu li a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s;
}
.mobile-menu li a::before {
  content: "0" counter(m);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  font-stretch: 100%;
  font-variation-settings: "wdth" 100;
  color: var(--red);
}
.mobile-menu li a[aria-current="page"] { color: var(--red); }
.menu-open .mobile-menu li a { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(1) a { transition-delay: .15s; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .2s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .25s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .3s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: .35s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .4s; }
.mobile-menu__foot { font-size: .95rem; color: var(--slate); }
.menu-open { overflow: hidden; }

@media (max-width: 1260px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .logo__sub { display: none; }
}

/* ---------- Úvodní hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
}
.hero__title { margin: 0 0 clamp(20px, 3vw, 36px); }
.hero__title .accent { color: var(--red); }
.hero__lead {
  max-width: 34ch;
  margin-bottom: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  line-height: 1.32;
  color: var(--ink);
}
.hero__art {
  position: relative;
  aspect-ratio: 560 / 520;
}
.hero__art svg { position: relative; z-index: 2; width: 100%; height: 100%; overflow: visible; }
.hero__block {
  position: absolute;
  z-index: 1;
}
.hero__block--red {
  top: 4%; right: -6%;
  width: 62%; height: 58%;
  background: var(--red);
}
.hero__block--teal {
  left: -4%; bottom: 6%;
  width: 34%; height: 22%;
  background: var(--navy);
  opacity: .9;
}
.hero__block--line {
  left: 8%; top: 18%;
  width: 40%; height: 46%;
  border: 2px solid var(--ink);
}
.hero__meta {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.scroll-cue {
  position: relative;
  width: 1px; height: 46px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--red);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue { to { top: 100%; } }

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; width: 92%; margin: 8px auto 0; }
  .hero__meta { display: none; }
}

/* Kresba vily */
.villa { color: var(--ink); }
.villa .s {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.villa .thin { stroke-width: 1.4; }
.villa .solid { fill: var(--white); }
.villa .roof { fill: var(--red-deep); fill-opacity: 0; }
.villa .tree { fill: var(--navy); fill-opacity: 0; stroke: var(--ink); }
.villa .glass { fill: var(--paper); fill-opacity: 0; }
.js .villa .s {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 350ms);
}
/* Výplně naběhnou po dokreslení obrysů; obrysy se kreslí stejně jako ostatní linky */
.js .villa .roof, .js .villa .tree, .js .villa .glass {
  animation-name: draw, var(--fill-anim);
  animation-duration: 1.5s, 1.2s;
  animation-timing-function: var(--ease);
  animation-fill-mode: forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 350ms), var(--fill-delay);
}
.js .villa .roof { --fill-anim: fill-in; --fill-delay: 2.4s; }
.js .villa .tree { --fill-anim: fill-tree; --fill-delay: 2.6s; }
.js .villa .glass { --fill-anim: fill-glass; --fill-delay: 2.7s; }
.no-js .villa .roof, .villa.is-static .roof { fill-opacity: .92; }
.no-js .villa .tree { fill-opacity: .18; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: .92; } }
@keyframes fill-tree { to { fill-opacity: .18; } }
@keyframes fill-glass { to { fill-opacity: 1; } }

.js .hero__block { transform: scale(0); }
.js .hero__block--red { transform-origin: top right; animation: grow 1.1s var(--ease-io) .2s forwards; }
.js .hero__block--teal { transform-origin: bottom left; animation: grow 1.1s var(--ease-io) .5s forwards; }
.js .hero__block--line { transform-origin: top left; animation: grow 1.1s var(--ease-io) .8s forwards; }
@keyframes grow { to { transform: scale(1); } }

/* ---------- Odkrývání řádků textu ---------- */
.line {
  display: block;
  overflow: hidden;
  padding-top: .14em;
  margin-top: -.14em;
  padding-bottom: .02em;
}
.line > span { display: block; }
.js .line > span {
  transform: translateY(135%);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 120ms);
}
@keyframes rise { to { transform: none; } }

/* ---------- Odkrývání při scrollu ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Pás s běžícím textem ---------- */
.marquee {
  position: relative;
  padding-block: 22px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  user-select: none;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
a.marquee__item { color: inherit; text-decoration: none; transition: color .2s; }
a.marquee__item:hover, a.marquee__item:focus-visible { color: var(--red); }
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item:nth-child(even) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-stretch: 100%;
  font-variation-settings: normal;
  text-transform: none;
  color: var(--mist);
}
.marquee__item::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--red);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Text zvýrazňovaný při scrollu ---------- */
.scrolltext {
  max-width: 22ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--ink);
}
.scrolltext--wide { max-width: 26ch; }
.js .scrolltext .w {
  color: var(--line);
  transition: color .45s var(--ease);
}
.js .scrolltext .w.on { color: var(--ink); }
.js .scrolltext em .w.on, .scrolltext em { color: var(--red); }
.scrolltext em { font-style: italic; }
.section--ink .scrolltext { color: var(--white); }
.js .section--ink .scrolltext .w { color: #3a3a42; }
.js .section--ink .scrolltext .w.on { color: var(--white); }

/* ---------- Úvod sekce ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--stack { grid-template-columns: 1fr; max-width: 820px; }
.section-head p { max-width: 52ch; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Karty s rohovými závorkami ---------- */
.bracket {
  position: relative;
}
.bracket::before,
.bracket::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--red);
  pointer-events: none;
  transition: width .55s var(--ease), height .55s var(--ease), border-color .3s;
}
.bracket::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.bracket::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 30px 26px 28px;
  background: var(--white);
  color: var(--graphite);
  text-decoration: none;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.card:hover::before, .card:hover::after,
.card:focus-visible::before, .card:focus-visible::after { width: 100%; height: 100%; }
.card__num {
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--line);
  transition: color .4s;
}
.card:hover .card__num { color: var(--red); }
.card__title { margin: auto 0 12px; }
.card__text { font-size: .95rem; color: var(--slate); margin-bottom: 18px; }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
}
.card__more .arrow { transition: transform .35s var(--ease); }
.card:hover .card__more .arrow { transform: translateX(5px); }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__title { margin-top: 28px; }
}

/* ---------- Fotografie / místa pro fotky ---------- */
.ph {
  position: relative;
  margin: 0;
  aspect-ratio: var(--ratio, 4 / 3);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(26, 26, 30, .045) 11px 12px),
    linear-gradient(160deg, #e6e5ea, #d2d1d9);
  overflow: hidden;
}
.ph__label {
  position: absolute;
  left: 16px; bottom: 14px; right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}
.ph__label svg { width: 16px; height: 16px; flex: none; }
.ph--dark {
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(255, 255, 255, .04) 11px 12px),
    linear-gradient(160deg, #2b2b31, #1f1f24);
}
.ph--dark .ph__label { color: var(--mist); }

/* Skutečné fotografie: černobílé s tónováním Paměti národa, při najetí barevné */
.duo { position: relative; margin: 0; overflow: hidden; background: var(--ink); }
.duo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: filter .8s var(--ease), transform 1.2s var(--ease);
}
.duo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, var(--red) 0 45%, var(--navy) 45% 100%);
  mix-blend-mode: multiply;
  opacity: .35;
  transition: opacity .8s var(--ease);
  pointer-events: none;
}
.duo:hover img { filter: none; transform: scale(1.03); }
.duo:hover::after { opacity: 0; }
.duo figcaption, .ph figcaption { font-size: .8rem; }

/* ---------- Dvousloupcové rozvržení ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.split--top { align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 860px) {
  .split, .split--wide-left { grid-template-columns: 1fr; }
}

/* ---------- Pruh letopočtů ---------- */
.years {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--line);
  padding-bottom: 18px;
  border-top: 1px solid var(--line);
}
.year {
  scroll-snap-align: start;
  padding: 26px 28px 8px 0;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}
.year:last-child { border-right: 0; }
.year__num {
  display: block;
  margin-bottom: 14px;
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  transition: color .5s var(--ease);
}
.year:hover .year__num { color: var(--red); -webkit-text-stroke-color: var(--red); }
.year h3 { margin-bottom: 8px; }
.year p { font-size: .95rem; color: var(--slate); }

/* ---------- Program akcí ---------- */
.events { list-style: none; border-top: 2px solid var(--ink); }
.event {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), padding .35s var(--ease);
}
.event:hover { background: var(--paper); padding-inline: 20px; }
.event.is-hidden { display: none; }
.event__date {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.event__day {
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-size: 3.4rem;
  color: var(--ink);
}
.event__month {
  margin-top: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.event__tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.event__title { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.2; }
.event__meta { margin-top: 6px; font-size: .9rem; color: var(--mute); }
.event__go {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.event__go::after { content: ""; position: absolute; inset: 0; }
.event:hover .event__go { background: var(--red); border-color: var(--red); color: var(--white); transform: rotate(-45deg); }
@media (max-width: 640px) {
  .event { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .event__day { font-size: 2.6rem; }
  .event__go { display: none; }
}

.sample-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: .85rem;
  color: var(--mute);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: .6em 1.1em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Statistiky ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.stat { padding: 28px 24px 0 0; }
.stat__num {
  display: block;
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: var(--white);
}
.stat__num .unit { color: var(--red); }
.stat p { margin-top: 8px; font-size: .92rem; color: var(--mist); max-width: 24ch; }
.stats--light { border-top-color: var(--line); }
.stats--light .stat__num { color: var(--ink); }
.stats--light .stat p { color: var(--slate); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } .stat { padding-top: 20px; } }

/* ---------- VR ---------- */
.vr-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.vr-art .ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  animation: pulse 5s var(--ease-io) infinite;
}
.vr-art .ring:nth-child(2) { inset: 12%; animation-delay: -1.6s; border-color: rgba(202, 0, 58, .5); }
.vr-art .ring:nth-child(3) { inset: 24%; animation-delay: -3.2s; }
.vr-art svg { position: relative; width: 58%; color: var(--white); }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: .5; }
}

/* ---------- Úvod podstránek ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 110px) clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: end;
  gap: 32px 64px;
}
.page-hero__title { margin-bottom: clamp(20px, 3vw, 32px); }
.page-hero__title .accent { color: var(--red); }
.page-hero .lead { max-width: 46ch; }
.page-hero__index {
  justify-self: end;
  align-self: start;
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-size: clamp(6rem, 16vw, 15rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  user-select: none;
}
.page-hero__index span { color: var(--red); -webkit-text-stroke: 0; }
@media (max-width: 860px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__index { display: none; }
}

/* ---------- Časová osa příběhu (sticky) ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
}
.story__aside { position: relative; }
.story__sticky {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.story__year {
  display: block;
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-size: clamp(6rem, 15vw, 13rem);
  line-height: .85;
  color: var(--red);
}
.story__year.flip { animation: flip .7s var(--ease); }
@keyframes flip {
  from { opacity: 0; transform: translateY(30%); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
.story__label {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
}
.story__progress {
  margin-top: 28px;
  width: 100%;
  max-width: 260px;
  height: 2px;
  background: var(--line);
}
.story__progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.chapter {
  padding-bottom: clamp(56px, 8vw, 110px);
  margin-bottom: clamp(56px, 8vw, 110px);
  border-bottom: 1px solid var(--line);
}
.chapter:last-child { border-bottom: 0; margin-bottom: 0; }
.chapter__year {
  display: none;
  margin-bottom: 8px;
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--red);
}
.chapter h2 { margin-bottom: 20px; }
.chapter .ph, .chapter .duo { margin-top: 32px; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story__aside { display: none; }
  .chapter__year { display: block; }
}

/* Citát */
.quote {
  position: relative;
  margin: 0;
  padding: 40px 0 0 0;
}
.quote::before {
  content: "„";
  position: absolute;
  top: -.62em; left: -.04em;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 7rem;
  line-height: 1;
  color: var(--red);
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink);
}
.quote footer { margin-top: 20px; font-size: .9rem; font-weight: 700; color: var(--mute); }
.section--ink .quote p { color: var(--white); }

/* ---------- Seznam vlastností ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature {
  padding: 32px 28px 32px 0;
  border-bottom: 1px solid var(--line);
}
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
.feature:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.feature__icon {
  width: 44px; height: 44px;
  margin-bottom: 22px;
  color: var(--red);
}
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: .96rem; color: var(--slate); }
.features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features--2 .feature:nth-child(3n + 1) { padding-left: 28px; border-left: 1px solid var(--line); }
.features--2 .feature:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
@media (max-width: 860px) {
  .features, .features--2 { grid-template-columns: 1fr; }
  .feature, .feature + .feature, .features--2 .feature:nth-child(n) { padding-left: 0; border-left: 0; }
}

/* ---------- Programy pro školy ---------- */
.programs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.program {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: var(--white);
}
.program:hover::before, .program:hover::after { width: 40px; height: 40px; }
.program__tag {
  align-self: flex-start;
  margin-bottom: 20px;
  padding: .35em .8em;
  background: var(--paper);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}
.program__tag--vr { background: var(--red); color: var(--white); }
.program h3 { margin-bottom: 12px; }
.program p { color: var(--slate); }
.program dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: auto 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.program > p { margin-bottom: 24px; }
.program dt { font-weight: 700; color: var(--ink); }
.program dd { margin: 0; color: var(--slate); }
@media (max-width: 860px) { .programs { grid-template-columns: 1fr; } }

/* Kroky */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.steps li::before {
  content: "0" counter(s);
  display: block;
  margin-bottom: 14px;
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--red);
}
.steps h3 { margin-bottom: 8px; font-size: 1.2rem; }
.steps p { font-size: .94rem; color: var(--slate); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 24px 56px 24px 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 18px; height: 2px;
  background: var(--red);
  transition: transform .4s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .faq__body { padding: 0 56px 26px 0; color: var(--slate); }

/* ---------- Formulář ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 0;
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%231a1a1e' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(202, 0, 58, .18);
}
.form__note { font-size: .85rem; color: var(--mute); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.contact-item {
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item + .contact-item { padding-left: 28px; border-left: 1px solid var(--line); }
.contact-item h3 { margin-bottom: 10px; font-size: 1.25rem; }
.contact-item p, .contact-item address { font-style: normal; color: var(--slate); }
.contact-item a { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item + .contact-item { padding-left: 0; border-left: 0; }
}

.map {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper);
}
.map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter .6s var(--ease);
}
.map:hover iframe { filter: none; }
.map__pin {
  position: absolute;
  left: 24px; bottom: 24px;
  max-width: calc(100% - 48px);
  padding: 18px 22px;
  background: var(--ink);
  color: var(--white);
  font-size: .95rem;
  line-height: 1.4;
  pointer-events: none;
}
.map__pin strong { display: block; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
@media (max-width: 640px) {
  .map { aspect-ratio: 4 / 5; }
  .map__pin { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}

/* ---------- Výzva (CTA pás) ---------- */
.cta {
  position: relative;
  overflow: hidden;
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  align-items: end;
  gap: 32px;
}
.cta .display { color: var(--white); }
.cta__side { justify-self: end; text-align: right; }
.cta__side p { margin-bottom: 20px; }
.cta__deco {
  position: absolute;
  right: -4%; top: -30%;
  width: 46%; aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .22);
  transform: rotate(12deg);
  pointer-events: none;
}
@media (max-width: 860px) {
  .cta__inner { grid-template-columns: 1fr; }
  .cta__side { justify-self: start; text-align: left; }
}

/* ---------- Patička ---------- */
.site-footer {
  padding-block: clamp(64px, 8vw, 100px) 32px;
  background: var(--ink);
  color: var(--mist);
  font-size: .95rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .2em; }
.site-footer .logo { color: var(--white); }
.site-footer .logo__sub { border-color: var(--slate); color: var(--mist); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--graphite);
}
.footer-grid h2 {
  margin-bottom: 16px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid address { font-style: normal; }
.footer-claim {
  max-width: 30ch;
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--line);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  font-size: .82rem;
}
.footer-big {
  margin-top: 48px;
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  font-size: clamp(3.4rem, 15.5vw, 15rem);
  line-height: .8;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--graphite);
  white-space: nowrap;
  user-select: none;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Drobnosti ---------- */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: clamp(40px, 6vw, 72px); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  border-left: 4px solid var(--red);
  background: var(--paper);
  font-size: .96rem;
}
.notice strong { color: var(--ink); }

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Omezený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Loga, fotografie a nové bloky
   ========================================================================== */

/* Loga jsou černobílé bitmapy: na světlém pozadí se "násobí",
   na tmavém se invertují a "prosvětlují", takže bílé pozadí zmizí. */
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand__kv { display: block; text-decoration: none; }
.brand__kv img { height: 48px; width: auto; }
.brand__pn {
  display: block;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.brand__pn img { height: 38px; width: auto; }
.on-dark img { filter: invert(1); }
.site-footer .brand__pn { border-color: var(--graphite); }
.site-footer .brand__kv img { height: 64px; }
.site-footer .brand__pn img { height: 52px; }
@media (max-width: 480px) {
  .brand__pn { display: none; }
  .brand__kv img { height: 42px; }
}

/* Fotografie */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: var(--ratio, auto);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: transform 1.4s var(--ease);
}
.photo:hover img { transform: scale(1.035); }
.photo--small { max-width: 520px; }
.photo figcaption,
.photo-caption {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--mute);
}
.photo-stack { display: grid; gap: 20px; }
.photo-pair {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  align-items: end;
}
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }

/* Program s popisy */
.event__desc { margin-top: 8px; font-size: .95rem; color: var(--slate); max-width: 62ch; }
.event__price {
  display: inline-block;
  margin-left: 10px;
  padding: .1em .55em;
  border: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink);
}
.event__go--text {
  width: auto;
  height: auto;
  padding: .75em 1.1em;
  border-radius: 0;
  font-size: .85rem;
  font-weight: 700;
  gap: 8px;
  display: inline-flex;
}
.event:hover .event__go--text { transform: none; }
@media (max-width: 640px) {
  .event__go--text { display: inline-flex; grid-column: 2; justify-self: start; }
}

/* Karta s fotkou */
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--graphite);
  text-decoration: none;
}
.pcard .photo { --ratio: 4 / 3; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.pcard__body h3 { margin-bottom: 10px; }
.pcard__body .program__tag { margin-bottom: 14px; }
.pcard__body p + p { margin-top: .6em; }
.pcard__body p { font-size: .95rem; color: var(--slate); }
.pcard__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
}
.pcard__meta svg { width: 18px; height: 18px; color: var(--red); }
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pcards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1080px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pcards, .pcards--2 { grid-template-columns: 1fr; } }

/* Klepy */
.klepy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100svh - var(--header-h));
  background: var(--ink);
  color: var(--line);
}
.klepy-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 120px) var(--gutter);
}
.klepy-hero__title {
  margin-bottom: 24px;
  font-weight: 800;
  font-stretch: 100%;
  font-variation-settings: "wdth" 100;
  font-size: clamp(5rem, 13vw, 12rem);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--white);
}
.klepy-hero .lead { color: var(--white); font-size: clamp(1.4rem, 2.4vw, 2.1rem); max-width: 18ch; }
.klepy-hero .photo { height: 100%; min-height: 420px; }
@media (max-width: 860px) {
  .klepy-hero { grid-template-columns: 1fr; min-height: 0; }
  .klepy-hero .photo { min-height: 0; aspect-ratio: 4 / 5; }
}

.callout {
  padding: clamp(28px, 4vw, 48px);
  background: #fdf1c9;
  color: #9a3d06;
}
.callout p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.3;
}

.icon-list { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.16); }
.icon-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  font-weight: 800;
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--white);
}
.icon-list svg { width: 44px; height: 44px; flex: none; color: var(--red); }
.icon-list--light { border-top-color: var(--line); }
.icon-list--light li { border-bottom-color: var(--line); color: var(--ink); text-transform: none; font-stretch: 100%; font-variation-settings: "wdth" 100; font-size: 1.05rem; }

.partners img { width: 100%; max-width: 640px; mix-blend-mode: multiply; }

/* Kontaktní osoba */
.person {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
}
.person__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
}
.person__icon svg { width: 26px; height: 26px; }
.person h3 { margin-bottom: 4px; }
.person p { color: var(--slate); }
.person a { font-weight: 700; color: var(--ink); }

.badge {
  display: inline-block;
  padding: .3em .7em;
  background: var(--red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section--ink .feature { border-color: rgba(255,255,255,.16); }
.section--ink .features { border-top-color: rgba(255,255,255,.16); }
.section--ink .feature p { color: var(--mist); }
.section--ink .text-link { color: var(--white); }
.section--ink .text-link:hover { color: var(--line); }
.split > *, .section-head > * { min-width: 0; }
.person, .contact-item, .footer-grid { overflow-wrap: anywhere; }

/* ---------- Úvodní ilustrace vily (obrysy → hotová ilustrace) ---------- */
.hero__art--ill {
  aspect-ratio: 1500 / 810;
  /* ilustrace končí na pravém okraji obsahu, stejně jako menu */
  width: 100%;
}
/* Prolnutí celé kresby s bílou stránkou: téměř bílé pozadí obrázku zmizí */
.villa--ill { mix-blend-mode: multiply; }
/* Nadpis se musí vejít do svého sloupce, aby ho ilustrace nepřekryla */
.hero__title.display--xl { font-size: clamp(3.6rem, 10.8vw, 10.5rem); }
.villa--ill .s { stroke-width: 5; }
.villa--ill .thin { stroke-width: 3.2; }
.villa--ill .blk { transform-box: fill-box; }
.villa--ill .blk--red { fill: var(--red); transform-origin: top right; }
.villa--ill .blk--navy { fill: var(--navy); transform-origin: bottom left; }
.villa--ill .blk--line { fill: none; stroke: var(--ink); stroke-width: 6; transform-origin: top left; }
/* Bloky vyrostou, a když naběhne ilustrace (má je v sobě), samy zmizí */
.js .villa--ill .blk {
  transform: scale(0);
  animation: grow 1.1s var(--ease-io) forwards, ill-out 1.6s var(--ease) 2.5s forwards;
}
.js .villa--ill .blk--red { animation-delay: .2s, 2.5s; }
.js .villa--ill .blk--navy { animation-delay: .5s, 2.5s; }
.js .villa--ill .blk--line { animation-delay: .8s, 2.5s; }

.no-js .villa__lines, .no-js .villa--ill .blk { display: none; }
.js .villa__img { opacity: 0; animation: ill-in 1.6s var(--ease) 2.5s forwards; }
.js .villa__lines { animation: ill-out 1s var(--ease) 3.4s forwards; }
@keyframes ill-in { to { opacity: 1; } }
@keyframes ill-out { to { opacity: 0; } }

@media (max-width: 860px) {
  .hero__art--ill {
    width: 100%;
    max-width: none;
    margin: 16px 0 0;
  }
}

/* Patička: kdo jsme a vlastník objektu */
.footer-about { margin-top: 20px; max-width: 34ch; font-size: .85rem; line-height: 1.5; color: var(--mist); }
.footer-about strong { color: var(--white); }
.footer-owner { display: inline-block; margin-top: 4px; font-size: .75rem; color: var(--mute); }

/* ==========================================================================
   Operace Útěk — vlastní vizuál navazující na plakátovou kampaň
   (šedá s vrstevnicemi, černobílé náměstí, žlutý akcent). Platí jen
   na stránce operace-utek.html (body.page-utek).
   ========================================================================== */
.page-utek {
  --utek-yellow: #f4ce07;   /* žlutá z plakátu */
  --utek-grey: #e8e8e8;     /* pozadí grafiky náměstí */
  --utek-grey-2: #d9d9d9;   /* pozadí plakátu */
}
.page-utek ::selection { background: var(--utek-yellow); color: var(--ink); }

.btn--yellow {
  --btn-bg: var(--utek-yellow);
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  --btn-fill: var(--ink);
  --btn-fg-hover: var(--utek-yellow);
}

.utek-kicker {
  margin-bottom: 1.2rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.utek-kicker a { text-decoration: none; border-bottom: 2px solid var(--utek-yellow); }
.utek-kicker a:hover { border-color: var(--ink); }

/* Hero */
.utek-hero {
  position: relative;
  background: var(--utek-grey) url("../img/operace-utek/vrstevnice.png") center / cover no-repeat;
  padding-top: clamp(40px, 6vw, 88px);
  overflow: hidden;
}
.utek-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: center;
}
.utek-title {
  margin-bottom: clamp(20px, 2.6vw, 32px);
  font-family: var(--sans);
  font-weight: 900;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--ink);
}
.utek-hero__text { container-type: inline-size; }
.utek-title__a { font-size: 11.6cqi; white-space: nowrap; }
.utek-title__b {
  font-size: 9.7cqi;
  white-space: nowrap;
  color: var(--utek-yellow);
  -webkit-text-stroke: .055em var(--ink);
  paint-order: stroke fill;
}
.utek-title .line { padding-inline: .04em; margin-inline: -.04em; }
.utek-lead {
  max-width: 30ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink);
}
.utek-sub { max-width: 44ch; font-family: var(--serif); font-style: italic; color: var(--graphite); }

.utek-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
}
.utek-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.utek-photo__tag {
  position: absolute;
  left: -14px; bottom: 28px;
  padding: .35em .7em;
  background: var(--utek-yellow);
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: .08em;
}

.utek-x {
  position: absolute;
  z-index: 0;
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: square;
}
.utek-x--grey { width: 28px; top: 5%; left: 36%; stroke: var(--mute); }
.utek-x--red { width: 40px; top: 30%; left: 54%; stroke: #e10600; }

/* Náměstí s vrstevnicemi a černým klínem s adresou */
.utek-city {
  position: relative;
  margin-top: clamp(24px, 3vw, 48px);
}
.utek-city img {
  width: 100%;
  /* nebe je průhledné, takže vrstevnice z pozadí plynule pokračují nad střechami */
}
.utek-city__where {
  position: absolute;
  right: 0; bottom: 0;
  width: min(46%, 640px);
  height: 62%;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) clamp(20px, 3vw, 44px) 14%;
  background: var(--ink);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  color: var(--white);
}
.utek-city__where p {
  font-family: var(--serif);
  font-size: clamp(.85rem, 1.15vw, 1.05rem);
  line-height: 1.45;
  text-align: right;
}
.utek-city__where strong { display: block; font-size: 1.12em; }
.utek-city__mark { display: block; margin: .15em 0 .3em; color: var(--utek-yellow); font-family: var(--sans); font-weight: 800; }

/* Příběh */
.utek-story .h2 { max-width: 16ch; }
.utek-story strong { color: var(--white); }
.utek-quote {
  margin: 2.2rem 0 0;
  padding: 1.1rem 0 1.1rem 1.4rem;
  border-left: 6px solid var(--utek-yellow);
}
.utek-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
  color: var(--white);
}

/* Fakta */
.utek-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 3px solid var(--ink);
}
.utek-facts > div { padding: 24px 24px 24px 0; }
.utek-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.utek-facts dt {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.utek-facts dd {
  margin: .3rem 0 .4rem;
  font-weight: 900;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1;
  color: var(--ink);
}
.utek-facts dd::after {
  content: "";
  display: block;
  width: 36px; height: 6px;
  margin-top: 12px;
  background: var(--utek-yellow);
}
.utek-facts p { font-size: .92rem; color: var(--slate); }
.page-utek .feature__icon { color: var(--ink); }

/* Rezervace */
.utek-book { background: var(--utek-grey-2); }
.utek-book__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: center;
}
.utek-h2 {
  margin-bottom: 18px;
  font-weight: 900;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: .95;
  text-transform: uppercase;
  color: var(--ink);
}
.utek-book__intro { max-width: 52ch; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink); }
.utek-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.utek-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px 24px;
  background: var(--white);
  border: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.utek-option:hover, .utek-option:focus-visible { background: var(--ink); color: var(--white); transform: translateY(-4px); }
.utek-label {
  padding: .4em .8em;
  background: var(--utek-yellow);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.utek-option__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
}
.utek-option__via {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-top: auto;
  font-weight: 700;
  font-size: .95rem;
  border-bottom: 2px solid var(--utek-yellow);
}
.utek-option .arrow { width: 1.1em; transition: transform .35s var(--ease); }
.utek-option:hover .arrow { transform: translateX(4px); }
.utek-book__gift { margin-top: 28px; max-width: 60ch; font-size: .95rem; color: var(--graphite); }

.utek-poster { margin: 0; justify-self: center; max-width: 380px; }
.utek-poster img {
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45);
  transform: rotate(1.5deg);
  transition: transform 1.4s var(--ease), box-shadow 1.4s var(--ease);
}
/* Po najetí myší se plakát pomalu a decentně přiblíží a nakloní */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .utek-poster:hover img {
    transform: rotate(-1deg) scale(1.04);
    box-shadow: 0 36px 64px -28px rgba(0, 0, 0, .5);
  }
}
.utek-poster figcaption { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: .95rem; text-align: center; color: var(--ink); }

@media (max-width: 960px) {
  .utek-hero__grid, .utek-book__grid { grid-template-columns: 1fr; }
  .utek-photo { aspect-ratio: 4 / 3.4; margin-right: 14px; }
  .utek-x--grey { display: none; }
  .utek-x--red { left: auto; right: 16px; top: 16px; }
  .utek-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utek-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .utek-facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .utek-poster { max-width: 300px; }
}
@media (max-width: 640px) {
  .utek-city { margin-top: 24px; }
  .utek-city__where {
    position: static;
    width: 100%; height: auto;
    padding: 22px var(--gutter);
    clip-path: none;
  }
  .utek-city__where p { text-align: left; }
  .utek-options { grid-template-columns: 1fr; }
  .utek-x--red { width: 24px; top: 8px; }
}
@media (max-width: 420px) {
  .utek-facts { grid-template-columns: 1fr; }
  .utek-facts > div, .utek-facts > div + div { padding-left: 0; border-left: 0; }
  .utek-facts > div + div { border-top: 1px solid var(--line); }
}

/* Galerie fotek ze hry + zvětšení po kliknutí */
.utek-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}
.utek-gallery__grid li:first-child { grid-column: span 2; grid-row: span 2; }
.utek-gallery__item {
  display: block;
  height: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #000;
}
.utek-gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .6s var(--ease);
}
.utek-gallery__item:hover img { transform: scale(1.04); opacity: .85; }
.utek-gallery__item:focus-visible { outline-color: var(--utek-yellow); }
@media (max-width: 640px) {
  .utek-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .utek-gallery__grid li:first-child { grid-row: auto; }
}

.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(10, 10, 12, .96);
  color: var(--white);
}
.lightbox::backdrop { background: rgba(10, 10, 12, .96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
}
.lightbox__btn {
  position: absolute;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.lightbox__btn:hover { background: var(--utek-yellow, var(--white)); border-color: var(--utek-yellow, var(--white)); color: var(--ink); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: .85rem; letter-spacing: .14em; color: var(--mist); }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
}

/* ---------- Publikace (Pro veřejnost) — data v src/data/knihy.json ---------- */
.books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  align-items: start;
}
.book {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
}
.book__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--line);
}
.book__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.book:hover .book__cover img { transform: scale(1.03); }
.book__cover--soon {
  display: grid;
  place-items: center;
  padding: 10%;
  background: var(--white);   /* ilustrace má bílé pozadí */
  border-bottom: 1px solid var(--line);
}
.book__cover--soon img { height: auto; object-fit: contain; }
.book:hover .book__cover--soon img { transform: none; }
.book__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(22px, 2.4vw, 32px);
}
.book__soon {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: .35em .75em;
  background: var(--red);
  color: var(--white);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.book__author {
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.book__title { margin-bottom: 14px; }
.book__body > p:not([class]) { font-size: .96rem; color: var(--slate); }
.book__rel { font-size: .92rem; }
.book__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 24px;
}
.book__price { font-weight: 800; color: var(--ink); }
.book__places {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.book__places summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 4px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.book__places summary::-webkit-details-marker { display: none; }
.book__places summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--red);
  transition: transform .35s var(--ease);
}
.book__places[open] summary::after { transform: rotate(45deg); }
.book__places summary:hover { color: var(--red); }
.book__places ul { padding: 8px 0 0 1.1em; font-size: .92rem; color: var(--slate); }
.book__places li { margin-bottom: 4px; }
.book__places li::marker { color: var(--red); }
.book__places li:first-child { font-weight: 700; color: var(--ink); }
@media (max-width: 960px) {
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .books { grid-template-columns: 1fr; }
  .book__cover { aspect-ratio: 1 / 1; }
  .book__cover--soon { aspect-ratio: 3 / 2; }
}

/* Poptávkový formulář: skryté pole proti robotům a hlášení o odeslání */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-weight: 700; color: var(--ink); }
.form__status.is-error { color: var(--red); }
.form button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Newsletter (SmartEmailing) — pruh pod programem a vyskakovací okénko ---------- */
.nl-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px 48px;
  align-items: center;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(24px, 4vw, 44px);
  background: var(--ink);
  color: var(--line);
}
.nl-band .eyebrow { color: var(--white); }
.nl-band h2 { color: var(--white); margin: 10px 0 8px; }
.nl-band p { margin: 0; }
.section--paper .nl-band, .section .nl-band { box-shadow: none; }
.section--ink .nl-band { background: var(--graphite); }

.nl-form__row { display: flex; gap: 0; }
.nl-form input[type=email] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--white);
  border-right: 0;
  border-radius: 0;
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.nl-form input[type=email]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--red); }
.nl-form input[aria-invalid=true] { box-shadow: inset 0 0 0 2px var(--red); }
.nl-form .btn { flex: 0 0 auto; }
.nl-form__note { margin: 12px 0 0; font-size: .8rem; line-height: 1.5; color: var(--mist); }
.nl-form__status { margin: 12px 0 0; font-weight: 700; color: var(--white); }
.nl-form__status.is-error { color: #ff8fab; }
.nl-form.is-done .nl-form__row, .nl-form.is-done .nl-form__note { display: none; }
.nl-form button[disabled] { opacity: .6; cursor: wait; }

.nl-popup {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: clamp(28px, 5vw, 44px);
  border: 0;
  border-top: 6px solid var(--red);
  background: var(--ink);
  color: var(--line);
  overflow: auto;
}
.nl-popup::backdrop { background: rgba(10, 10, 12, .6); }
.nl-popup[open] { animation: nl-in .6s var(--ease); }
.nl-popup .eyebrow { color: var(--white); }
.nl-popup h2 { color: var(--white); margin: 12px 0 10px; padding-right: 28px; }
.nl-popup__text { margin: 0 0 22px; }
.nl-popup__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  color: var(--white); font-size: 1.2rem; line-height: 1;
  cursor: pointer;
}
.nl-popup__close:hover { color: var(--red); }
@keyframes nl-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nl-popup[open] { animation: none; } }

@media (max-width: 860px) {
  .nl-band { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nl-form__row { flex-direction: column; }
  .nl-form input[type=email] { border-right: 1.5px solid var(--white); }
  .nl-form .btn { width: 100%; justify-content: center; }
}
.nl-ram { display: none !important; }
.nl-popup h2 { font-size: clamp(1.8rem, 4.4vw, 2.5rem); }

/* ---------- Čitelnost (kontrast textu podle WCAG AA, 11/2026) ---------- */
.section--paper .event__meta, .section--paper .event__month, .section--paper .muted { color: var(--slate); }
.footer-owner { color: var(--mist); }
.klepy-hero .eyebrow { color: var(--white); }
.nl-form__note a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { margin: 0 0 1.15em; padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.utek-book__news { margin-top: 14px; max-width: 52ch; padding: 10px 14px; background: var(--utek-yellow, #f4ce07); color: var(--ink); font-size: .95rem; }
