/* =========================================================
   AGRIPA – styles
   Obsah: 1 Fonty · 2 Tokeny · 3 Základ · 4 Hlavička · 5 Hero
          6 Nabídka (pásy) · 7 Program a lístek · 8 Fotopás
          9 Akce · 10 Kroky + FAQ · 11 Kontakt a formulář
          12 Patička · 13 Lightbox
   ========================================================= */

/* ---------- 1 Fonty (lokálně, jen latin + latin-ext) ---------- */
@font-face {
  font-family: 'Alfa Slab One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/AlfaSlabOne-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Alfa Slab One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/AlfaSlabOne-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/SourceSans3-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/SourceSans3-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2 Tokeny ----------
   Barvy vycházejí z toho, co AGRIPA skutečně vozí:
   žlutá heraldických štítků, laková červená, tmavě zelená a černá litina. */
:root {
  --yellow: #F4C531;
  --red: #CC3416;
  --red-deep: #A52A10;   /* plocha červeného pásu: bílý text má kontrast > 7:1 */
  --green: #1B3A2C;
  --ink: #15130F;
  --ink-soft: #3B362D;
  --paper: #FBF8F0;
  --paper-2: #F2EBD7;   /* text na tmavých plochách */

  --slab: 'Alfa Slab One', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 2px;
  --gutter: clamp(1.1rem, 4.5vw, 3rem);
  --section-pad: clamp(3.5rem, 8vw, 7rem);
  --header-h: 4.25rem;
}

/* ---------- 3 Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 40rem) { body { font-size: 1.125rem; } }

img { display: block; max-width: 100%; height: auto; }
figure, ul, ol, dl, dd, p, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--slab);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.12;
  letter-spacing: .01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

h2 {
  font-size: clamp(1.9rem, 1rem + 3.3vw, 3.6rem);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.band :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--yellow); }

.container {
  width: min(100% - 2 * var(--gutter), 82rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: .75rem; outline-color: var(--paper); }

/* Tlačítka a odkazy */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .7rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn--small { min-height: 2.6rem; padding: .45rem 1.1rem; font-size: 1rem; }
.btn--light { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .25em;
}
.link-arrow:hover { text-decoration-color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .link-arrow svg { transition: transform .18s; }
  .link-arrow:hover svg { transform: translateX(4px); }
}

/* Motiv: řetěz praporků. Visí na hraně, kde se světlá plocha mění v tmavou. */
.bunting {
  position: relative;
  z-index: 2;
  height: 40px;
  margin-bottom: -40px;
  background: url(../assets/illustrations/pennants.svg) repeat-x left top / auto 40px;
  pointer-events: none;
}
@media (min-width: 40rem) {
  .bunting { height: 56px; margin-bottom: -56px; background-size: auto 56px; }
}

/* Jarmareční štítek (popisek na fotce) */
.tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: .5rem 1rem .5rem 2.1rem;
  background: var(--ink);
  color: var(--yellow);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  transform: rotate(-1.5deg);
  transform-origin: left center;
  clip-path: polygon(1rem 0, 100% 0, 100% 100%, 1rem 100%, 0 50%);
}
.tag::before {
  content: "";
  position: absolute;
  left: .9rem;
  top: 50%;
  width: .5rem;
  height: .5rem;
  margin-top: -.25rem;
  border-radius: 50%;
  background: var(--yellow);
}

/* ---------- 4 Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark__flags { flex: none; display: block; margin-top: -.15rem; }
.wordmark__text {
  font-family: var(--slab);
  font-size: 1.6rem;
  letter-spacing: .06em;
  line-height: 1;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.6rem;
}
.primary-nav a:not(.btn) {
  display: inline-block;
  padding: .4rem 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}
.primary-nav a:not(.btn):hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .3em;
  text-decoration-color: var(--red);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .4rem .8rem;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__cross { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__cross { display: inline; }

.js .nav-toggle { display: inline-flex; }
.js .primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
  padding: .5rem var(--gutter) 1.5rem;
}
.js .primary-nav.is-open { display: block; }
.js .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
.js .primary-nav li { border-bottom: 2px solid var(--ink); }
.js .primary-nav a:not(.btn) {
  display: block;
  padding: .85rem 0;
  font-family: var(--slab);
  font-weight: 400;
  font-size: 1.5rem;
}
.js .primary-nav .primary-nav__cta { border-bottom: 0; padding-top: 1.1rem; }
.js .primary-nav .btn { width: 100%; }

@media (min-width: 56rem) {
  .js .nav-toggle { display: none; }
  .js .primary-nav,
  .js .primary-nav.is-open {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    background: none;
  }
  .js .primary-nav ul { flex-direction: row; align-items: center; gap: .25rem 1.8rem; }
  .js .primary-nav li { border: 0; }
  .js .primary-nav a:not(.btn) { display: inline-block; padding: .4rem 0; font-family: var(--sans); font-weight: 700; font-size: 1rem; }
  .js .primary-nav .primary-nav__cta { padding-top: 0; }
  .js .primary-nav .btn { width: auto; }
}

/* ---------- 5 Hero ---------- */
.hero {
  background: var(--yellow);
  container-type: inline-size;
  scroll-margin-top: var(--header-h);
}
.hero__grid { display: grid; }
.hero__text {
  padding: clamp(1.75rem, 5vw, 3rem) var(--gutter) clamp(2rem, 5vw, 3rem);
  align-self: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 1rem + 7.4vw, 6.9rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.hero h1 em {
  display: inline-block;
  margin-block: .03em;
  padding: .02em .14em .07em;
  background: var(--red);
  color: var(--paper);
  font-style: normal;
  transform: rotate(-1.2deg);
}
.hero__lead {
  margin-top: 1.5rem;
  max-width: 31rem;
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  line-height: 1.45;
  font-weight: 500;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.9rem;
}
.hero__phone { margin-top: 1.5rem; font-size: 1rem; }
.hero__phone a { font-weight: 700; text-underline-offset: .22em; text-decoration-thickness: 2px; }

.hero__photo { position: relative; aspect-ratio: 4 / 3; background: var(--ink); }
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    /* výška se řídí šířkou, aby buňka s fotkou nebyla na širokém monitoru zploštělá */
    min-height: clamp(34rem, 42cqw, 52rem);
  }
  .hero__text {
    padding-block: 3.5rem;
    padding-left: max(var(--gutter), calc((100cqw - 82rem) / 2));
    padding-right: clamp(1.5rem, 3vw, 3.5rem);
  }
  .hero__photo { aspect-ratio: auto; }
  .tag { left: 1.5rem; bottom: 1.5rem; font-size: 1rem; }
}
@media (min-width: 120rem) {
  /* velmi široké monitory: 50/50 a blok s textem vystředěný ve své polovině */
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__text {
    display: grid;
    grid-template-columns: minmax(0, 39rem);   /* šířka nejdelšího slova nadpisu */
    justify-content: center;
    padding-inline: var(--gutter);
  }
}

/* ---------- 6 Nabídka: tři plnošířkové pásy ---------- */
.offer__intro {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(3.25rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}
.offer__intro p { max-width: 34rem; font-size: 1.15rem; }
@media (min-width: 56rem) {
  .offer__intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
}

.band {
  display: grid;
  container-type: inline-size;
  color: var(--paper);
}
.band--green { background: var(--green); }
.band--red { background: var(--red-deep); }
.band--ink { background: var(--ink); }

.band__photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.band__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Ořez drží to důležité: u stánku s papírem hlavu řemeslníka, u náměstí kolo i kolotoč. */
.band--green .band__photo img { object-position: 42% 50%; }
.band--red .band__photo img { object-position: 50% 20%; }
.band__photo--art {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  aspect-ratio: auto;
  min-height: 18rem;
}
.band__photo--art img { position: static; width: min(100%, 36rem); height: auto; }

.band__body {
  display: grid;
  gap: 1.15rem;
  align-content: center;
  justify-items: start;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}
.band__body > * { max-width: 34rem; }
.band__body > h3 { max-width: 40rem; font-size: clamp(1.8rem, 1rem + 2.4vw, 3.1rem); line-height: 1.14; }
.band__body p { color: var(--paper); font-size: 1.2rem; line-height: 1.65; }

.inline-list { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.inline-list li { display: flex; align-items: baseline; gap: .5rem; }
.inline-list li::before {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  background: var(--yellow);
  transform: translateY(-.05em) rotate(45deg);
}
.band--ink .inline-list li::before { background: var(--red); }
.band .btn { margin-top: .5rem; }

@media (min-width: 56rem) {
  .band {
    grid-template-columns: 1fr 1fr;
    /* Barva pásu jde přes celou šířku, ale obsah (fotka i text) se na širokém okně
       drží uvnitř 90rem, aby k sobě patřil a lícoval se zbytkem stránky. */
    padding-inline: max(0px, calc((100% - 90rem) / 2));
  }
  /* pevný poměr buňky místo pevné výšky: na širokém okně se fotka nezplošťuje */
  .band__photo { aspect-ratio: 5 / 4; }
  .band__photo--art { min-height: 0; }
  /* přesně 50/50: fotka v jedné polovině, blok s textem vystředěný v druhé */
  .band__body {
    grid-template-columns: minmax(0, 34rem);   /* přesně šířka odstavce, aby byl text opticky uprostřed */
    justify-content: center;
    padding: clamp(2.5rem, 5vw, 5rem) var(--gutter);
  }
  .band__body > h3 { max-width: 100%; }
  .band--flip .band__photo { order: 2; }
  .band--flip .band__body { order: 1; }
}

/* ---------- 7 Poskládejte si program + lístek ---------- */
/* Lístek je běžná součást stránky: stojí na svém místě a nic ho nikam nevozí. */
.builder { padding-block: var(--section-pad); }
.builder__grid { display: grid; gap: 3rem; }
.builder__lead { margin-top: 1.25rem; max-width: 36rem; font-size: 1.15rem; }

.group { border: 0; padding: 0; margin: 2.25rem 0 0; min-inline-size: 0; }
.group legend {
  padding: 0;
  margin-bottom: .85rem;
  font-family: var(--slab);
  font-size: 1.4rem;
  line-height: 1.1;
}
.group { display: flex; flex-wrap: wrap; gap: .55rem; }
.group legend { flex: 0 0 100%; }

.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.9rem;
  padding: .4rem 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 600;
  line-height: 1.2;
}
.chip input:hover + span { background: var(--yellow); }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }
.chip input:checked + span { background: var(--ink); color: var(--yellow); }
.chip input:checked + span::before {
  content: "";
  flex: none;
  width: .5rem;
  height: .9rem;
  margin: -.2rem .1rem 0 0;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(.85);
}

.ticket {
  --notch: 1.1rem;
  position: relative;
  align-self: start;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.ticket__main { padding: 1.5rem 1.5rem 1.25rem; }
.ticket__brand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: .6rem;
  border-bottom: 3px solid var(--ink);
  font-family: var(--slab);
  font-size: 1.15rem;
  letter-spacing: .04em;
}
.ticket__brand span { font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.ticket h3 { margin-top: 1rem; font-size: 2rem; }
.ticket__list { margin-top: .75rem; counter-reset: pol; }
.ticket__list li {
  counter-increment: pol;
  display: flex;
  gap: .75rem;
  padding: .4rem 0;
  border-bottom: 1px dashed rgba(21, 19, 15, .55);
  font-weight: 700;
  line-height: 1.3;
}
.ticket__list li::before { content: counter(pol, decimal-leading-zero); font-family: var(--slab); font-weight: 400; font-size: .95rem; min-width: 1.5rem; padding-top: .05rem; }
.ticket__empty { margin-top: .75rem; font-size: 1rem; }
.ticket__list:not(:empty) + .ticket__empty { display: none; }
.ticket__stub {
  position: relative;
  display: grid;
  gap: .75rem;
  padding: 1.35rem 1.5rem 1.5rem;
  border-top: 3px dashed var(--ink);
}
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  top: -1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--paper);
}
.ticket__stub::before { left: -1.1rem; }
.ticket__stub::after { right: -1.1rem; }
.ticket__count { font-weight: 700; }
.ticket .btn:hover { background: var(--red); }

@media (min-width: 64rem) {
  .builder__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* ---------- 8 Fotopás ---------- */
.gallery {
  background: var(--yellow);
  container-type: inline-size;
  padding-block: var(--section-pad);
  border-top: 2px solid var(--ink);
}
.gallery__head { display: grid; gap: 1.25rem; }
.gallery__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gallery__nav p { max-width: 20rem; font-weight: 500; }
.gallery__buttons { display: flex; gap: .5rem; flex: none; }
.strip-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.strip-btn:hover { background: var(--ink); color: var(--yellow); }
.strip-btn:disabled { opacity: .35; cursor: default; }
.strip-btn:disabled:hover { background: transparent; color: inherit; }

.strip {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding: 0 max(var(--gutter), calc((100cqw - 82rem) / 2)) 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(var(--gutter), calc((100cqw - 82rem) / 2));
  scrollbar-color: var(--ink) transparent;
}
.strip ul { display: flex; gap: 1rem; width: max-content; }
.shot { position: relative; height: clamp(19rem, 58vh, 33rem); scroll-snap-align: start; }
.shot a { display: block; height: 100%; text-decoration: none; }
.shot img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
  background: var(--ink);
}
.shot a:hover img { filter: brightness(1.05); }
.shot__caption {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  max-width: calc(100% - 1.5rem);
  padding: .3rem .7rem;
  background: var(--ink);
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.shot a:hover .shot__caption { background: var(--red); color: var(--paper); }

@media (min-width: 56rem) {
  .gallery__head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
  .gallery__nav { justify-content: flex-end; gap: 2rem; }
}

/* ---------- 9 Pro jaké akce ---------- */
.events { padding-block: var(--section-pad) calc(var(--section-pad) * .7); }
.events h2 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); }
.giant {
  margin-top: 1.25rem;
  font-family: var(--slab);
  font-size: clamp(1.75rem, .6rem + 4.3vw, 4.75rem);
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: pretty;
}
.giant .r { color: var(--red); }

/* ---------- 10 Kroky + FAQ ---------- */
.steps { padding-block: calc(var(--section-pad) * .7); border-top: 3px solid var(--ink); }
.steps__list { margin-top: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 2.25rem 2rem; counter-reset: krok; }
.steps__list li { counter-increment: krok; padding-top: 1.1rem; border-top: 8px solid var(--ink); }
.steps__list li::before {
  content: counter(krok);
  display: block;
  font-family: var(--slab);
  font-size: clamp(3.75rem, 3rem + 3vw, 5.5rem);
  line-height: 1;
  color: var(--red);
}
.steps__list h3 { margin-top: .6rem; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.9rem); }
.steps__list p { margin-top: .6rem; max-width: 24rem; }
@media (min-width: 48rem) {
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.faq { padding-bottom: var(--section-pad); }
.faq__grid { display: grid; gap: 2rem; }
.faq__list details { border-top: 3px solid var(--ink); }
.faq__list details:last-child { border-bottom: 3px solid var(--ink); }
.faq__list summary {
  position: relative;
  display: block;
  padding: 1.2rem 3.25rem 1.2rem 0;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before,
.faq__list summary::after {
  content: "";
  position: absolute;
  right: .2rem;
  top: 50%;
  width: 1.4rem;
  height: 4px;
  margin-top: -2px;
  background: var(--red);
}
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0deg); }
@media (prefers-reduced-motion: no-preference) {
  .faq__list summary::after { transition: transform .18s; }
}
.faq__list summary:hover { color: var(--red); }
.faq__list details > p { padding: 0 3.25rem 1.5rem 0; max-width: 38rem; color: var(--ink-soft); }
@media (min-width: 56rem) {
  .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 4rem; align-items: start; }
}

/* ---------- 11 Kontakt a formulář ---------- */
.contact {
  position: relative;
  background: var(--green);
  color: var(--paper);
  padding-block: calc(var(--section-pad) + 40px) var(--section-pad);
}
.contact .bunting { position: absolute; top: 0; left: 0; right: 0; margin: 0; }
.contact__grid { display: grid; gap: 2.75rem; }
.contact h2 { font-size: clamp(2rem, 1rem + 3.4vw, 3.7rem); }
.contact__intro > p:not([class]) { margin-top: 1.25rem; max-width: 30rem; font-size: 1.15rem; color: var(--paper-2); }
.contact__phone { margin-top: 2rem; }
.contact__phone a,
.contact__mail a {
  font-family: var(--slab);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__phone a { font-size: clamp(1.75rem, .8rem + 3.2vw, 2.95rem); line-height: 1.05; color: var(--yellow); white-space: nowrap; }
.contact__mail { margin-top: .75rem; }
.contact__mail a { font-size: clamp(1.3rem, 1rem + 1.5vw, 2.1rem); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .2em; text-decoration-color: var(--red); }
.contact__phone a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: .12em; }
.contact__mail a:hover { text-decoration-color: var(--yellow); }

.form {
  display: grid;
  gap: 1.15rem;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.25rem, 3.2vw, 2.25rem);
}
.form__program {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1rem;
  padding: .9rem 1.1rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
}
.form__program a { font-weight: 700; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.form__row { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field > label { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.req, .opt { font-weight: 400; color: var(--ink-soft); font-size: .95rem; }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form select,
.form textarea {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .85rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.4;
}
.form textarea { resize: vertical; min-height: 7rem; }
.form select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 50%, calc(100% - .85rem) 50%;
  background-size: .4rem .4rem;
  background-repeat: no-repeat;
}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 1px;
}
.form input[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.form input::placeholder, .form textarea::placeholder { color: #6E6657; opacity: 1; }
.form input[type="date"]:disabled { opacity: .5; }
.field__error { color: var(--red); font-size: .98rem; font-weight: 700; }

.check { display: flex; align-items: center; gap: .6rem; margin-top: .15rem; font-size: 1rem; cursor: pointer; font-weight: 400; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--ink); flex: none; margin: 0; }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem; margin-top: .25rem; }
.form__note { font-size: .95rem; color: var(--ink-soft); }

.form__status {
  padding: 1rem 1.15rem;
  border-left: 6px solid var(--ink);
  background: var(--yellow);
}
.form__status[hidden] { display: none; }
.form__status p + p { margin-top: .5rem; }
.form__status--ok { border-color: var(--green); background: #DDE8DF; }
.form__status--error { border-color: var(--red); background: #F7DAD2; }
.form__status .btn { margin-top: .85rem; }
.form__status:focus { outline: 3px solid var(--ink); outline-offset: 2px; }

@media (min-width: 40rem) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.25rem; }
}
@media (min-width: 64rem) {
  .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 3rem; align-items: start; }
  .contact__intro { grid-column: 1 / 6; }
  .form { grid-column: 6 / 13; }
}

/* ---------- 12 Patička ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 1rem;
}
.site-footer a { text-underline-offset: .2em; }
.site-footer__grid { display: grid; gap: 2rem; }
.wordmark--footer { color: var(--paper); margin-bottom: .9rem; }
.site-footer__brand p:not(.wordmark) { max-width: 22rem; color: var(--paper-2); }
.site-footer__nav ul { display: grid; gap: .35rem; }
.site-footer__nav a { text-decoration: none; font-weight: 600; }
.site-footer__nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.site-footer__contact { font-style: normal; display: grid; gap: .35rem; align-content: start; font-weight: 600; }
.site-footer__contact a { width: fit-content; }
.site-footer__legal {
  margin-top: 2.5rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid rgba(251, 248, 240, .25);
  font-size: .95rem;
  color: var(--paper-2);
}
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}

/* ---------- 13 Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--paper);
  max-width: min(94vw, 70rem);
  max-height: 96vh;
  margin: auto;
  overflow: visible;
}
.lightbox[open] { display: grid; gap: .75rem; justify-items: center; }
.lightbox::backdrop { background: rgba(21, 19, 15, .92); }
.lightbox__figure { display: grid; gap: .6rem; justify-items: center; }
.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  background: var(--ink-soft);
}
.lightbox__caption { font-size: 1rem; text-align: center; max-width: 40rem; }
.lightbox__bar { display: flex; align-items: center; gap: .6rem; }
.lightbox__count { min-width: 3.5rem; text-align: center; font-size: .95rem; color: var(--paper-2); }
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.lightbox__btn:hover { background: var(--paper); }
.lightbox__btn--close { margin-left: .75rem; }
.lightbox :focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
body.lightbox-open { overflow: hidden; }

/* ---------- 14 Právní stránky a 404 ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.legal__inner > * { max-width: 46rem; }   /* šířka odstavců; samotný kontejner zůstává zarovnaný s hlavičkou */
.legal__inner > * + * { margin-top: 1rem; }
.legal h1 { font-size: clamp(2.1rem, 1rem + 4vw, 3.6rem); }
.legal h2 { margin-top: 2.25rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.legal__updated { color: var(--ink-soft); }
.legal a { text-underline-offset: .2em; text-decoration-thickness: 2px; }
.site-footer__legal--solo { margin-top: 0; border-top: 0; }
.form__note a { text-underline-offset: .2em; }
.site-footer__legal a { text-underline-offset: .2em; }
