/* ==========================================================
   SK MG AJUR Hradec Králové – hlavní styly
   Pořadí: základ → hlavička → tlačítka → hero
   ========================================================== */

:root { --header-h: 76px; }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-body); font-weight: 700; color: var(--black); line-height: 1.08; letter-spacing: -.03em; margin: 0; }
h1 em, h2 em, h3 em { font-family: var(--font-display); font-style: italic; font-weight: 500; letter-spacing: -.01em; color: var(--red); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--black); color: var(--white);
  padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.8rem;
  font: 700 .95rem/1 var(--font-body);
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 10px 24px rgba(225, 6, 0, .25); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(17, 17, 17, .18); color: var(--black); background: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 244, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--black); }
.brand img { width: 58px; height: 58px; mix-blend-mode: multiply; }
.brand__text { display: block; font: 700 1.15rem/1 var(--font-body); letter-spacing: .02em; white-space: nowrap; }
.brand__text strong { color: var(--red); font-weight: 700; }
.brand__text small { display: block; font: 500 .7rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-top: .3rem; }

.nav ul { display: flex; align-items: center; gap: 2rem; }
.nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--black); padding: .4rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: .75rem; margin-right: -.75rem; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 26px; height: 2px; background: var(--black); border-radius: 2px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after  { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); box-shadow: var(--shadow);
    padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { display: block; padding: .9rem .25rem; font-size: 1.1rem; border-bottom: 1px solid rgba(17,17,17,.07); }
  .nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6.5rem);
  background:
    radial-gradient(55% 70% at 88% 12%, var(--blush) 0%, rgba(246, 231, 228, 0) 70%),
    var(--paper);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__text { grid-column: 1; grid-row: 1; }
.eyebrow {
  display: flex; align-items: center; gap: .8rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: var(--red); }

.hero h1 { font-size: clamp(2.5rem, 4.7vw, 4.4rem); }
.hero h1 em { display: block; font-size: 1.1em; margin-top: .05em; }
.hero__lead { font-size: 1.12rem; max-width: 36ch; margin: 1.5rem 0 2.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Aktuální info: karty sociálních sítí */
.social-box { margin-top: 2.2rem; }
.social-box__label {
  display: flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--black); margin-bottom: .9rem;
}
.social-box__label::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(225, 6, 0, .5); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 .6rem rgba(225, 6, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); } }

.social-box__cards { display: flex; flex-wrap: wrap; gap: .85rem; }
.social-card {
  flex: 1 1 13rem; display: flex; align-items: center; gap: .85rem;
  padding: .8rem 1rem; text-decoration: none;
  background: var(--white); border: 1px solid rgba(17, 17, 17, .07); border-radius: 18px;
  box-shadow: 0 6px 18px rgba(17, 17, 17, .06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.social-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17, 17, 17, .13); }
.social-card__icon {
  flex: none; width: 2.8rem; height: 2.8rem; border-radius: 14px; color: var(--white);
  display: grid; place-items: center;
}
.social-card__icon svg { width: 1.5rem; height: 1.5rem; }
.social-card__icon--ig { background: linear-gradient(45deg, #f9a825, #ee2a7b 55%, #6228d7); }
.social-card__icon--fb { background: #1877f2; }
.social-card__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.social-card__text strong { color: var(--black); font-size: 1rem; }
.social-card__text small { font-size: .85rem; color: var(--text); }
.social-card__arrow { flex: none; width: 1.2rem; height: 1.2rem; margin-left: auto; color: var(--text); transition: transform .25s var(--ease), color .25s var(--ease); }
.social-card:hover .social-card__arrow { transform: translate(2px, -2px); color: var(--red); }

.hero__visual { grid-column: 2; grid-row: 1; position: relative; }
.hero__photo {
  position: relative; z-index: 1; margin: 0;
  aspect-ratio: 3 / 2;               /* fotka se nikde neořezává */
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(17, 17, 17, .22);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__ribbon {
  position: absolute; z-index: 0;
  left: -10%; bottom: -16%; width: 70%;
  fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linecap: round;
}

@media (max-width: 860px) {
  .hero { padding-top: 1.25rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__visual, .hero__text { grid-column: 1; }
  .hero__visual { grid-row: 1; }       /* na mobilu je fotka úplně nahoře */
  .hero__text   { grid-row: 2; }
  .hero__lead { max-width: none; }
}

/* ---------- Sekce obecně ---------- */
.section { padding-block: var(--space-section); }

/* ---------- O nás ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.about h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.about__text p { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.8; color: var(--ink); max-width: 62ch; margin: 0; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ---------- Kategorie ---------- */
.section--white { background: var(--white); }
.section-head { max-width: 40rem; }
.section-head h2, .programs-section h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }

.programs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3.5rem);
}
.program {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--paper); border: 1px solid rgba(17, 17, 17, .06);
  border-radius: 26px; overflow: hidden;
}
.program__media { position: relative; aspect-ratio: 3 / 4; background: var(--blush); }
.program__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.program__media--empty {
  background: linear-gradient(160deg, var(--blush), var(--white));
  display: grid; place-items: center;
}
.program__media--empty svg { width: 70%; height: auto; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; opacity: .8; }

.program__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.25rem, 2.6vw, 2.2rem); }
.program__num { font-weight: 700; font-size: .82rem; letter-spacing: .2em; color: var(--red); margin-bottom: .6rem; }
.program h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); margin-bottom: 1.2rem; }
.program__facts li { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .7rem; color: var(--ink); line-height: 1.45; }
.program__facts li:last-child { margin-bottom: 0; }
.program__facts strong { color: var(--black); }
.ico { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .12rem; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1000px) { .programs { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .program { grid-template-columns: 1fr; }
  .program__media { aspect-ratio: 4 / 3; }
  .program__media img { object-position: 50% 65%; }
  .program__media--empty svg { width: 28%; }
}

/* ---------- Akce ---------- */
.events h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.events__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.events__title { font: 700 .8rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--black); margin-bottom: 1.1rem; }

.event-empty {
  position: relative; overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: 26px;
  background: var(--white); border: 2px dashed rgba(225, 6, 0, .3);
}
.event-empty svg { width: 7rem; height: auto; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; margin-bottom: 1rem; }
.event-empty p { margin-bottom: .6rem; }
.event-empty strong { color: var(--black); font-size: 1.15rem; }
.event-empty__links { display: flex; gap: 1.4rem; margin: 1rem 0 0 !important; }
.event-empty__links a { font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.event-empty__links a:hover { color: var(--red-dark); }

.event {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.2rem;
  background: var(--white); border: 1px solid rgba(17, 17, 17, .06);
  border-radius: 20px; padding: 1rem 1.3rem; margin-bottom: .8rem;
}
.event__date { display: flex; flex-direction: column; align-items: center; min-width: 4.8rem; line-height: 1; padding-right: 1.2rem; border-right: 2px solid var(--blush); }
.event__date strong { font: 700 1.7rem/1 var(--font-body); letter-spacing: -.03em; color: var(--red); white-space: nowrap; }
.event__date span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-top: .4rem; white-space: nowrap; }
.event h4 { margin: 0 0 .15rem; font: 700 1.15rem/1.25 var(--font-body); letter-spacing: -.01em; color: var(--black); }
.event__body p { margin: 0; font-size: .95rem; }
.event__link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem;
  font-size: .85rem; font-weight: 700; color: var(--red); text-decoration: none;
  padding: .3rem .8rem .3rem .55rem; border-radius: 999px; background: var(--blush);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.event__link svg { width: .9rem; height: .9rem; fill: currentColor; }
.event__link:hover { background: var(--red); color: var(--white); }
.event__tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 999px; background: rgba(17, 17, 17, .06); color: var(--text); white-space: nowrap; }

/* Nadcházející akce: zvýraznit */
.event--upcoming {
  grid-template-columns: auto minmax(0, 1fr);
  border: 2px solid rgba(225, 6, 0, .35);
  background: linear-gradient(135deg, var(--white) 60%, var(--blush));
  box-shadow: 0 14px 34px rgba(225, 6, 0, .1);
}
.event--upcoming .event__tag { grid-column: 1 / -1; justify-self: start; }
.event__tag--live { background: var(--red); color: var(--white); }
.event__place { margin-top: .5rem !important; color: var(--ink); font-weight: 500; }
.events__note { margin: 1.1rem 0 0; font-size: .95rem; }

@media (max-width: 860px) { .events__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .event { grid-template-columns: auto minmax(0, 1fr); }
  .event__tag { grid-column: 2; justify-self: start; }
}

/* ---------- Video ---------- */
.video { margin-top: clamp(3rem, 6vw, 5rem); }
.video__head { max-width: 40rem; margin-bottom: 1.6rem; }
.video__title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin-bottom: .8rem; }
.video__head p:last-child { margin: 0; }

.video__player {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 28px; box-shadow: 0 30px 70px rgba(17, 17, 17, .18);
  background: linear-gradient(135deg, var(--blush) 0%, var(--white) 55%, #f3d3cd 100%);
}
.video__ribbon { position: absolute; left: -2%; bottom: -4%; width: 55%; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; opacity: .85; }
.video__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video__play {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: none; border: 0; cursor: pointer; color: var(--black);
}
.video__icon {
  display: grid; place-items: center; width: clamp(4.5rem, 9vw, 6.5rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--red); box-shadow: 0 16px 40px rgba(225, 6, 0, .4);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.video__icon svg { width: 42%; fill: var(--white); margin-left: 6%; }
.video__play:hover .video__icon { transform: scale(1.08); background: var(--red-dark); }
.video__label { font-weight: 700; letter-spacing: .02em; }
.video__play:disabled { cursor: default; }
.video__play:disabled .video__icon { opacity: .45; transform: none; }

/* ---------- Galerie ---------- */
.text-link { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--red-dark); }
.gallery-section h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.gallery-section .section-head p:last-child { margin: 1rem 0 0; }

.gallery { margin-top: clamp(2rem, 4vw, 3.5rem); }
.gallery:not(.is-ready) { columns: 2; column-gap: 1rem; }  /* záložní rozložení bez JavaScriptu */
.gallery:not(.is-ready) .gallery__item { margin-bottom: 1rem; break-inside: avoid; }
.gallery.is-ready { display: flex; gap: 1rem; align-items: flex-start; }
.gallery__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }

.gallery__item {
  position: relative; display: block; overflow: hidden; cursor: zoom-in;
  border-radius: 18px; background: var(--blush);
}
.gallery__item img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to top, rgba(17, 17, 17, .28), rgba(17, 17, 17, 0) 45%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }

@media (min-width: 900px) { .gallery:not(.is-ready) { columns: 3; } }

/* Zvětšená fotka */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
  background: rgba(17, 17, 17, .93);
  padding: 3.5rem 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; display: flex; justify-content: center; max-width: min(92vw, 1400px); }
.lightbox__img { max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 3rem; height: 3rem; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: var(--white); cursor: pointer;
  font: 400 2rem/1 var(--font-body); padding-bottom: .2rem;
  transition: background .25s var(--ease);
}
.lightbox__btn:hover { background: var(--red); }
.lightbox__close { top: max(1rem, env(safe-area-inset-top, 0px)); right: 1rem; }
.lightbox__prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: max(1rem, env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; margin: 0; color: rgba(255, 255, 255, .75); font-size: .9rem; letter-spacing: .08em; }

@media (max-width: 560px) {
  .gallery.is-ready, .gallery__col { gap: .6rem; }
  .lightbox { padding-inline: .25rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__prev { left: 1rem; }
  .lightbox__next { right: 1rem; }
}

/* ---------- Sponzoři ---------- */
.sponsors-section h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.sponsors-section .section-head p:last-child { margin: 1rem 0 0; }

.sponsors { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.sponsors--main { margin-top: clamp(2rem, 4vw, 3rem); }
.sponsors--more { margin-top: 1rem; }
.sponsors__note {
  max-width: 46rem; margin: 2rem auto 0; padding: 1rem 1.4rem;
  background: var(--white); border: 1px solid rgba(17, 17, 17, .06); border-left: 4px solid var(--red);
  border-radius: 14px; text-align: center; font-size: .98rem; color: var(--ink);
}
.sponsors__cta { margin: 1.5rem 0 0; text-align: center; }

.sponsors li {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--white); border: 1px solid rgba(17, 17, 17, .06); border-radius: 20px;
  padding: 1.2rem 1.6rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sponsors li:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17, 17, 17, .1); }
.sponsors img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; object-fit: contain; }

.sponsors--main li { flex: 1 1 15rem; max-width: 25rem; height: 9.5rem; }
.sponsors--more li { flex: 1 1 11rem; max-width: 16rem; height: 6.5rem; padding: 1rem 1.3rem; }

@media (max-width: 560px) {
  .sponsors--main li { flex-basis: calc(50% - .5rem); max-width: none; height: 6.5rem; }
  .sponsors--more li { flex-basis: calc(50% - .5rem); height: 5.5rem; }
}

/* ---------- Kontakt ---------- */
.contact h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.contact__col { display: flex; flex-direction: column; gap: 1rem; }

.card {
  background: var(--paper); border: 1px solid rgba(17, 17, 17, .06);
  border-radius: 26px; padding: clamp(1.4rem, 3vw, 2.2rem);
}
.card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 1.2rem; }

.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem 1.5rem; margin: 0; align-items: baseline; }
.facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.facts dd { margin: 0; color: var(--black); font-weight: 500; overflow-wrap: anywhere; }

.people { display: grid; gap: .8rem; }
.person { background: var(--paper); border: 1px solid rgba(17, 17, 17, .06); border-radius: 20px; padding: 1rem 1.3rem; }
.person__role { margin: 0 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.person__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .3rem 0; color: var(--black); font-weight: 500; }
.person__list a { flex: none; font-weight: 700; color: var(--red); text-decoration: none; }
.person__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.map-card__address { margin-bottom: 1.2rem; color: var(--ink); }
.map {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px;
  background: linear-gradient(135deg, var(--blush), var(--white));
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  background: none; border: 0; cursor: pointer; color: var(--black);
}
.map__pin {
  display: grid; place-items: center; width: 4rem; aspect-ratio: 1; border-radius: 50%;
  background: var(--red); box-shadow: 0 12px 30px rgba(225, 6, 0, .35);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.map__pin svg { width: 46%; fill: var(--white); }
.map__load:hover .map__pin { transform: scale(1.08); background: var(--red-dark); }
.map__label { font-weight: 700; }
.map-card__note { margin: .7rem 0 1rem; font-size: .82rem; color: var(--text); }
.map__link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .9rem; font-weight: 700; color: var(--red); text-decoration: none;
  padding: .5rem 1rem .5rem .8rem; border-radius: 999px; background: var(--blush);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.map__link svg { width: 1rem; height: 1rem; fill: currentColor; }
.map__link:hover { background: var(--red); color: var(--white); }

@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; gap: .15rem; } .facts dd { margin-bottom: .6rem; } }

/* ---------- Přihláška ---------- */
.section--blush { background: var(--blush); }
.apply h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.apply__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.apply__lead { font-size: 1.15rem; color: var(--ink); max-width: 38ch; margin: 1.4rem 0 1.2rem; }
.apply__alt { margin: 0; }

.form-card {
  background: var(--white); border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1rem; }
.field label { display: block; margin-bottom: .45rem; font-size: .9rem; font-weight: 700; color: var(--black); }
.req { color: var(--red); }

.field input[type="text"], .field input[type="number"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid rgba(17, 17, 17, .12); border-radius: 14px;
  padding: .85rem 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: var(--white);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, .12);
}
.field input:user-invalid, .field select:user-invalid { border-color: var(--red); }

.consent label { display: flex; align-items: flex-start; gap: .7rem; font-weight: 400; font-size: .9rem; color: var(--text); cursor: pointer; }
.consent input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--red); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { width: 100%; margin-top: .4rem; padding-block: 1.05rem; }
.form-submit:disabled { opacity: .6; cursor: progress; transform: none; }

.form-status { margin: 1rem 0 0; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: .9rem 1.1rem; border-radius: 14px; background: #e7f5ec; color: #17603a; }
.form-status.is-error { padding: .9rem 1.1rem; border-radius: 14px; background: #fdeceb; color: #9c1c14; }

@media (max-width: 860px) { .apply__grid { grid-template-columns: 1fr; } .apply__lead { max-width: none; } }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Pata ---------- */
.site-footer {
  position: relative; background: var(--paper);
  padding-top: 1.6rem;
}
.footer__wave { position: absolute; left: 0; top: -29px; width: 100%; height: 30px; display: block; }
.footer__wave-fill { fill: var(--paper); }
.footer__wave-line { fill: none; stroke: var(--red); stroke-width: 2; opacity: .45; vector-effect: non-scaling-stroke; }

.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1rem, 3vw, 2.5rem); padding-bottom: 1.1rem; align-items: start;
}
.footer__brand p { margin: .6rem 0 0; max-width: 30ch; font-size: .85rem; line-height: 1.5; }
.site-footer .brand img { width: 38px; height: 38px; }
.site-footer .brand__text { font-size: 1rem; }
.site-footer .brand__text small { font-size: .62rem; margin-top: .2rem; }
.footer__title { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text); margin-bottom: .6rem; }
.footer__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1.2rem; }
.footer__nav a { text-decoration: none; color: var(--text); font-weight: 400; font-size: .86rem; }
.footer__nav a:hover { color: var(--red); }
.footer__contact p { margin: 0 0 .6rem; font-size: .86rem; }

.footer__social { display: flex; gap: .7rem; }
.footer__social a {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--white); color: var(--black);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.footer__social a:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.footer__social svg { width: 1.05rem; height: 1.05rem; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding-block: .8rem calc(.8rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(17, 17, 17, .08); font-size: .78rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--text); text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--red); }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Textová stránka (ochrana osobních údajů) ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 5rem) var(--space-section); }
.legal__inner { max-width: 46rem; }
.legal__back { display: inline-block; margin-bottom: 1.5rem; font-size: .95rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.legal__meta { margin: .8rem 0 2rem; font-size: .95rem; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 2.4rem 0 .8rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1em; }
.legal li { margin-bottom: .35rem; padding-left: .2rem; }
.legal li::marker { color: var(--red); }
.legal p a, .legal li a { color: var(--red); font-weight: 600; text-underline-offset: 3px; }
.legal p a:hover, .legal li a:hover { color: var(--red-dark); }

/* ---------- Sponzoring (podstránka) ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-head__lead { font-size: 1.15rem; color: var(--ink); max-width: 46rem; margin: 1.5rem 0 0; }

.support { padding-top: clamp(2rem, 4vw, 3.5rem); }
.support__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.support-card { background: var(--white); border: 1px solid rgba(17, 17, 17, .06); border-radius: 26px; padding: clamp(1.5rem, 3vw, 2.3rem); }
.support-card h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 1.3rem; }

.checklist li { position: relative; padding-left: 2.2rem; margin-bottom: .95rem; color: var(--ink); line-height: 1.5; }
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .05rem;
  display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--red); color: var(--white); font-size: .8rem; font-weight: 700; line-height: 1;
}
.checklist strong { color: var(--black); }

.cta {
  margin-top: 1.5rem; padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: 28px; background: var(--blush);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); max-width: 30ch; margin-bottom: .6rem; }
.cta p { margin: 0; }

@media (max-width: 760px) { .support__grid { grid-template-columns: 1fr; } .cta .btn { width: 100%; } }

/* ---------- Rozbalovací položka menu ---------- */
.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem 0;
  background: none; border: 0; cursor: pointer;
  font: 500 .96rem/1.65 var(--font-body); color: var(--black);
  transition: color .25s var(--ease);
}
.sub-toggle:hover { color: var(--red); }
.sub-toggle svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }

.nav .sub a::after { display: none; }
.nav .sub a { display: block; white-space: nowrap; }

@media (min-width: 961px) {
  .nav .sub {
    position: absolute; top: 100%; left: -1rem; min-width: 15rem;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-radius: 16px; padding: .5rem;
    box-shadow: 0 18px 40px rgba(17, 17, 17, .14);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav .sub a { padding: .75rem 1rem; border-radius: 10px; }
  .nav .sub a:hover { background: var(--blush); color: var(--red); }
  .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 961px) and (hover: hover) {
  .has-sub:hover .sub { opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub-toggle svg { transform: rotate(180deg); }
}

@media (max-width: 960px) {
  .sub-toggle {
    width: 100%; justify-content: space-between; padding: .9rem .25rem;
    font-size: 1.1rem; border-bottom: 1px solid rgba(17, 17, 17, .07);
  }
  .sub-toggle svg { width: 1rem; height: 1rem; }
  .nav .sub { display: none; padding-left: 1rem; }
  .has-sub.is-open .sub { display: block; }
  .nav .sub a { padding: .8rem .25rem; font-size: 1rem; }
}

/* ---------- Stránka 404 ---------- */
.notfound { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 10vw, 8rem); text-align: center; }
.notfound__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.notfound__code { margin: 0 0 .4rem; font: 700 clamp(5rem, 18vw, 11rem)/1 var(--font-body); letter-spacing: -.05em; color: var(--red); }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.notfound__text { max-width: 36ch; margin: 1.2rem 0 2rem; font-size: 1.1rem; }
.notfound__ribbon { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(70rem, 140%); transform: translate(-50%, -50%); fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; opacity: .16; }

/* ---------- Odhalování při scrollu ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
