/* =========================================================
   HYROX Ostrava – hlavní styly
   Barvy a fonty se mění v :root
   ========================================================= */
:root {
  --yellow: #ffe500;
  --yellow-dark: #e6ce00;
  --black: #0a0a0a;
  --ink: #111111;
  --panel: #161616;
  --line: #2a2a2a;
  --white: #ffffff;
  --grey: #a3a3a3;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --header-h: 72px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .5px;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
.muted { color: var(--grey); }
.small { font-size: 13px; }
.hl { color: var(--yellow); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--yellow); color: var(--black); padding: 8px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 14px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); clip-path: none; }
.btn-outline:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.btn-sm { font-size: 17px; padding: 8px 20px; }

/* ---------- Hlavička ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10,10,10,.92); backdrop-filter: blur(10px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo {
  display: inline-flex; align-items: stretch; text-decoration: none;
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  text-transform: uppercase; font-size: 26px; line-height: 1;
}
.logo-mark { background: var(--yellow); color: var(--black); padding: 6px 10px 4px; transform: skewX(-10deg); }
.logo-city { padding: 6px 10px 4px; color: var(--white); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn) {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 18px; letter-spacing: .8px; text-decoration: none; color: var(--white);
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--yellow); transition: width .25s;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 0;
  overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 75% 40%, #2b2600 0%, var(--black) 60%);
}
.hero-bg::after {
  /* diagonální žluté pruhy */
  content: ""; position: absolute; right: -10%; top: 0; bottom: 0; width: 45%;
  background: repeating-linear-gradient(-60deg, transparent 0 40px, rgba(255,229,0,.07) 40px 80px);
  transform: skewX(-12deg);
}
.hero-photo {
  position: absolute; z-index: -1; margin: 0;
  top: 0; bottom: 0; right: 0; width: 46%;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,0) 40%),
              linear-gradient(0deg, rgba(10,10,10,.7) 0%, rgba(10,10,10,0) 30%),
              linear-gradient(180deg, rgba(10,10,10,.8) 0%, rgba(10,10,10,0) 18%);
}
.hero-photo::before {
  /* žlutý diagonální pruh na hraně fotky */
  content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 22%;
  background: linear-gradient(to bottom right, transparent calc(50% - 4px), var(--yellow) calc(50% - 4px), var(--yellow) calc(50% + 4px), transparent calc(50% + 4px));
}
.hero-content { padding-bottom: 60px; }
figure.is-empty img { display: none; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: 3px; font-size: 16px; color: var(--yellow);
  border-left: 4px solid var(--yellow); padding-left: 12px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(56px, 11vw, 150px); font-style: italic; margin-bottom: 28px; }
.hero h1 .block { display: block; }
.hero h1 em { color: var(--yellow); font-style: italic; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--white); }
.hero-lead { max-width: 560px; font-size: 19px; color: #d4d4d4; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 48px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-weight: 900; font-size: 48px; line-height: 1; color: var(--yellow); }
.hero-stats span { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--grey); }

.hero-ticker { background: var(--yellow); color: var(--black); overflow: hidden; transform: rotate(-1.5deg); margin: 0 -20px -10px; padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 35s linear infinite; }
.ticker-track span {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: 28px; text-transform: uppercase; padding: 0 28px; white-space: nowrap;
}
.ticker-track span::after { content: "✦"; margin-left: 56px; font-style: normal; font-size: 18px; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sekce obecně ---------- */
.section { padding: 120px 0; position: relative; }
.section-dark { background: var(--ink); }
.section-dark::before {
  content: ""; position: absolute; top: 0; left: 0; width: 120px; height: 6px; background: var(--yellow);
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(44px, 7vw, 88px); font-style: italic; }
.section-lead { font-size: 19px; color: #cfcfcf; }

/* ---------- Co je HYROX ---------- */
.format {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  border: 2px solid var(--yellow); padding: 32px 40px; margin-bottom: 40px;
}
.format-rule { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-family: var(--font-display); text-transform: uppercase; font-weight: 800; font-size: 22px; }
.format-rule .big { font-size: 56px; font-weight: 900; color: var(--yellow); line-height: 1; }
.format-rule .plus { font-size: 40px; color: var(--grey); }
.format p { margin: 0; color: #cfcfcf; }

.stations {
  list-style: none; padding: 0; margin: 0 0 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line);
  counter-reset: station;
}
.station { background: var(--black); padding: 28px 24px; position: relative; transition: background .25s, color .25s; }
.station .num::before { counter-increment: station; content: counter(station, decimal-leading-zero); }
.station .num { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--yellow); letter-spacing: 2px; }
.station h3 { font-size: 30px; margin: 10px 0 4px; }
.station p { margin: 0; color: var(--grey); font-weight: 600; }
.station:hover { background: var(--yellow); color: var(--black); }
.station:hover .num, .station:hover p { color: var(--black); }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.benefit { border-top: 4px solid var(--yellow); padding-top: 20px; }
.benefit h3 { font-size: 30px; }
.benefit p { color: #cfcfcf; margin: 0; }

/* ---------- Rozvrh ---------- */
.schedule-tabs { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.schedule-tabs button {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase;
  background: transparent; color: var(--white); border: 2px solid var(--line);
  padding: 10px 0; width: 72px; cursor: pointer; transition: all .2s;
}
.schedule-tabs button:hover { border-color: var(--yellow); }
.schedule-tabs button[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

.schedule-list { min-height: 120px; }
.schedule-slots { display: grid; gap: 10px; }
.schedule-slots:has(.slot) + .schedule-empty { display: none; }
.slot {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: center;
  background: var(--panel); border-left: 6px solid var(--yellow); padding: 20px 24px;
  animation: fadeUp .35s ease both;
}
.slot.type-race { border-left-color: #ff4d2e; }
.slot.type-strength { border-left-color: #ffffff; }
.slot-time { font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 1; }
.slot-time > span { display: block; }
.slot-time small { display: block; font-size: 14px; font-weight: 600; color: var(--grey); letter-spacing: 1px; margin-top: 4px; }
.slot-name { font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.slot-coach { font-size: 14px; color: var(--grey); }
.slot-cap { font-size: 14px; color: var(--grey); white-space: nowrap; }
.slot-cap strong { color: var(--white); }
.slot-cap.full strong { color: #ff4d2e; }
.slot .btn { font-size: 17px; padding: 10px 22px; }
.slot .btn[aria-disabled="true"] { background: var(--line); color: var(--grey); pointer-events: none; }
.schedule-empty { color: var(--grey); padding: 32px; background: var(--panel); text-align: center; }

.legend { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; font-size: 14px; color: var(--grey); }
.dot { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.dot-base { background: var(--yellow); }
.dot-race { background: #ff4d2e; }
.dot-strength { background: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Ceník ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--panel); border: 2px solid var(--line); padding: 40px 32px;
  display: flex; flex-direction: column; position: relative; transition: border-color .25s, transform .25s;
}
.price-card:hover { border-color: var(--yellow); transform: translateY(-4px); }
.price-card h3 { font-size: 30px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 28px; margin-bottom: 24px; }
.price strong { font-size: 72px; font-weight: 900; line-height: 1; color: var(--yellow); }
.price small { font-size: 20px; color: var(--grey); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.price-card li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: var(--yellow); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.price-card.featured { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.price-card.featured .price strong { color: var(--black); }
.price-card.featured li { border-color: rgba(0,0,0,.15); }
.price-card.featured li::before { background: var(--black); }
.price-card.featured .btn-primary, .price-card.featured .btn-outline { background: var(--black); color: var(--yellow); border-color: var(--black); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.price-card.featured .btn-primary:hover { background: var(--white); color: var(--black); }
.badge {
  position: absolute; top: -16px; left: 32px;
  background: var(--black); color: var(--yellow);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 14px; font-size: 16px;
}
.price-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); margin-top: 32px; }
.price-extra div { background: var(--black); padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price-extra span { color: var(--yellow); font-weight: 600; }

/* ---------- Kde trénujeme ---------- */
.place { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-bottom: 48px; }
.place-photo { position: relative; margin: 0; min-height: 420px; background: repeating-linear-gradient(-45deg, #1c1c1c 0 20px, #222 20px 40px); overflow: hidden; }
.place-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place--nophoto { grid-template-columns: 1fr; }
.place--nophoto .info-blocks { grid-template-columns: repeat(4, 1fr); }
.place-info { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.info-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; width: 100%; }
.info-block h3 { font-size: 22px; color: var(--yellow); margin-bottom: 8px; }
.info-block p { margin: 0; color: #cfcfcf; font-size: 16px; }
.map { border: 2px solid var(--line); line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- Trenéři ---------- */
.coaches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.coach { display: grid; grid-template-columns: 1fr 1.1fr; }
.coach .coach-body { border-top: 0; border-left: 6px solid var(--yellow); display: flex; flex-direction: column; justify-content: flex-end; }

.race-gallery {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 12px; margin-top: 64px; align-items: stretch;
}
.race-gallery-text { background: var(--yellow); color: var(--black); padding: 32px 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.race-gallery-text .eyebrow { color: var(--black); border-color: var(--black); }
.race-gallery-text h3 { font-size: 44px; font-style: italic; }
.race-gallery-text p:last-child { margin: 0; font-size: 15px; }
.race-gallery figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #1c1c1c; }
.race-gallery figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .5s; }
.race-gallery figure:hover img { transform: scale(1.04); }
.coach { background: var(--panel); overflow: hidden; transition: transform .25s; }
.coach:hover { transform: translateY(-6px); }
.coach-photo { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #1c1c1c; }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(.15) contrast(1.05); transition: transform .5s, filter .5s; }
.coach:hover .coach-photo img { transform: scale(1.04); filter: none; }
.coach-body { padding: 28px; border-top: 6px solid var(--yellow); }
.coach-body h3 { font-size: 32px; margin-bottom: 4px; }
.coach-role { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); }
.coach-body p:last-child { color: #cfcfcf; font-size: 15px; margin: 0; }

/* ---------- FAQ ---------- */
.faq details, .faq .faq-item { border-bottom: 1px solid var(--line); }
.faq summary, .faq .faq-q {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1.15;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--yellow); color: var(--black); font-size: 28px; font-weight: 900;
  transition: transform .25s;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--yellow); }
.faq details p, .faq .faq-item p { color: #cfcfcf; padding-bottom: 24px; margin: 0; max-width: 680px; }

/* ---------- Patička ---------- */
.site-footer { background: var(--black); border-top: 6px solid var(--yellow); padding: 96px 0 32px; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 64px; border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.footer-cta h2 { font-size: clamp(48px, 8vw, 104px); font-style: italic; margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-grid h3 { font-size: 20px; color: var(--yellow); }
.footer-grid .logo { margin-bottom: 16px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 4px 0; color: #cfcfcf; }
.contact-list a { text-decoration: none; transition: color .2s; }
.contact-list a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; color: var(--grey); }
.footer-bottom p { margin: 0; }
.credit a { color: inherit; text-decoration: none; }
.credit a:hover { color: var(--yellow); }

/* ---------- Animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responzivita ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 18px; }
  .main-nav a:not(.btn) { font-size: 16px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100vh - var(--header-h));
    background: var(--black); flex-direction: column; justify-content: center; gap: 22px;
    transform: translateX(100%); transition: transform .35s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav a:not(.btn) { font-size: 30px; }
  .site-header:has(.main-nav.open) { background: var(--black); }

  .stations { grid-template-columns: repeat(2, 1fr); }
  .benefits, .pricing { grid-template-columns: 1fr; }
  .pricing { max-width: 480px; }
  .price-card.featured { order: -1; }
  .price-extra { grid-template-columns: 1fr; }
  .place--nophoto .info-blocks { grid-template-columns: 1fr 1fr; }
  .place { grid-template-columns: 1fr; }
  .format { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .coaches { grid-template-columns: 1fr; max-width: 640px; }
  .race-gallery { grid-template-columns: 1fr 1fr; }
  .race-gallery-text { grid-column: 1 / -1; }
  .hero-photo { width: 100%; clip-path: none; opacity: .45; }
  .hero-photo::before { display: none; }
  .hero-photo::after { background: linear-gradient(90deg, rgba(10,10,10,.9), rgba(10,10,10,.4)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 38px; }
  .format-rule .big { font-size: 42px; }
  .station h3 { font-size: 24px; }
  .slot { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .slot-main { grid-column: 1 / -1; order: -1; }
  .slot-time { font-size: 28px; }
  .slot-time small { display: inline; margin-left: 8px; }
  .slot .btn { grid-column: 1 / -1; }
  .schedule-tabs button { width: calc((100% - 36px) / 7); font-size: 18px; }
  .info-blocks, .place--nophoto .info-blocks { grid-template-columns: 1fr; }
  .place-photo { min-height: 260px; }
  .faq summary { font-size: 21px; }
  .footer-grid { grid-template-columns: 1fr; }
  .coach { grid-template-columns: 1fr; }
  .coach .coach-body { border-left: 0; border-top: 6px solid var(--yellow); padding: 22px; }
  .coach-photo { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
