/* ══════════════════════════════════════════════════════════════════════════
   ÚVODNÍ STRÁNKA v2 (refaktor F1) — nové sekce mezi hero a „Jak to funguje“
   Nejbližší kurzy (světlé karty) · Disciplíny (šikmé fotopruhy) · Cesta jezdce
   (sdílí .cd-path/.cd-ladder z 10-course-detail.css) · Jezdi s partou + Trenéři.
   ══════════════════════════════════════════════════════════════════════════ */

/* Hero: neutrálně tmavý přechod místo modrého (fotka zůstane teplá) */
.hero-v2-overlay {
  background: linear-gradient(90deg, rgba(18, 20, 23, .86) 0%, rgba(18, 20, 23, .55) 52%, rgba(18, 20, 23, .18) 100%) !important;
}

.hx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.hx-sec { padding: 72px 0; }
.hx-next { background: var(--bg); }

.hx-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.hx-eyebrow { margin: 0; font: 700 13px/1 var(--fb); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.hx-sub { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.hx-more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 700 12px/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.hx-more:hover { color: var(--orange); }

/* ── Karty kurzů (PACE: fotka, malý typ, název, údaje oddělené čarou, šipka v kroužku) ── */
.hx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hc {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: transform var(--t2), box-shadow var(--t2), border-color var(--t2);
}
.hc:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(18, 20, 23, .12); border-color: var(--border2); }
.hc:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.hc-photo { position: relative; aspect-ratio: 16 / 10; background: var(--bg3) center / cover; }
.hc-diff {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: #fff; color: var(--ink); font: 700 11px/1 var(--fb); letter-spacing: .08em; text-transform: uppercase;
}
/* Placené zvýraznění (F9) — štítek musí být vidět (zákon o ochraně spotřebitele) */
.hc-promo {
  position: absolute; top: 12px; right: 12px; padding: 6px 10px; background: var(--ink); color: #fff;
  font: 700 11px/1 var(--fb); letter-spacing: .08em; text-transform: uppercase;
}
.hc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; flex: 1; }
.hc-type { margin: 0; font: 700 11.5px/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hc-title { margin: 0; font: 400 26px/1.02 var(--fd); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.hc-meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; font-size: 13.5px; color: var(--ink2); }
.hc-meta span { padding: 0 10px; border-left: 1px solid var(--border2); }
.hc-meta span:first-child { padding-left: 0; border-left: 0; }
.hc-foot { margin-top: auto; padding-top: 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.hc-avail { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.hc-cap { height: 3px; background: var(--bg3); }
.hc-cap i { display: block; height: 100%; }
.hc-arrow {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--border2); color: var(--ink); transition: background var(--t), border-color var(--t), color var(--t);
}
.hc:hover .hc-arrow { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
/* Řádek lektora v katalogu (kcard = hcard s lektorem) */
.hc-lektor { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink2); }
.hc-av { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg3) center / cover; }
.hc-lname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.hc-rating { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-weight: 700; color: var(--ink); }
.hc-rating .ico { color: #b7791f; fill: currentColor; }
.hc-rating span { font-weight: 400; color: var(--muted); }

/* ── Disciplíny: šikmé fotopruhy, najetí rozšíří pruh ── */
.hx-disc { background: #14110e; overflow: hidden; padding: 0; }
.hx-disc-list { list-style: none; margin: 0 -48px; padding: 0; display: flex; height: clamp(360px, 46vw, 520px); }
.hx-disc-list li { flex: 1 1 0; min-width: 0; transform: skewX(-8deg); overflow: hidden; margin-right: 4px; transition: flex-grow .5s cubic-bezier(.2, .8, .2, 1); }
.hx-disc-list li:hover, .hx-disc-list li:focus-within { flex-grow: 2.1; }
.hx-disc-list a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%;
  padding: 0 34px 34px; color: #fff; text-decoration: none; transform: skewX(8deg); isolation: isolate;
}
.hx-disc-list a::before {
  content: ''; position: absolute; inset: 0 -60px; z-index: -2;
  background: var(--img) center / cover; transition: transform .6s ease;
}
.hx-disc-list a::after {
  content: ''; position: absolute; inset: 0 -60px; z-index: -1;
  background: linear-gradient(to top, rgba(18, 20, 23, .9) 0%, rgba(18, 20, 23, .35) 45%, rgba(18, 20, 23, .15) 100%);
}
.hx-disc-list li:hover a::before { transform: scale(1.06); }
.hx-disc-list a:focus-visible { outline: 3px solid var(--ember); outline-offset: -6px; }
.hx-disc-label { font: 400 clamp(30px, 3.2vw, 46px)/.95 var(--fd); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.hx-disc-sub { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-disc-list li:hover .hx-disc-label { color: var(--ember); }
/* krajní pruhy přesahují stránku (zkosení) → text odsadit, aby nebyl useknutý */
.hx-disc-list li:first-child a { padding-left: 92px; }
.hx-disc-list li:last-child a { padding-right: 92px; }
.hx-disc-list li:first-child, .hx-disc-list li:last-child { flex-grow: 1.35; }
.hx-disc-list li:first-child:hover, .hx-disc-list li:last-child:hover,
.hx-disc-list li:first-child:focus-within, .hx-disc-list li:last-child:focus-within { flex-grow: 2.4; }

/* ── Cesta jezdce na úvodní stránce: text vlevo, žebříček vpravo ── */
.hx-path { margin-top: 0; }
.hx-path-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hx-path .cd-path-sub { margin-bottom: 0; }

/* ── Jezdi s partou (vlevo) + Trenéři (vpravo) ── */
.hx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 680px; background: var(--surface); }
.hx-split-left { position: relative; display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.hx-split-left::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover; filter: grayscale(1) contrast(1.08); }
.hx-split-left::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18, 20, 23, .9) 0%, rgba(18, 20, 23, .35) 55%, rgba(18, 20, 23, .15) 100%); }
.hx-split-copy { padding: 56px 48px; max-width: 560px; }
.hx-big { margin: 0; font: 400 clamp(60px, 7vw, 116px)/.86 var(--fd); text-transform: uppercase; letter-spacing: .01em; }
.hx-big span { display: block; }
.hx-accent { color: var(--orange); }
.hx-split-text { margin: 18px 0 22px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .85); max-width: 42ch; }
.hx-play { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #fff; text-decoration: none; font: 700 13px/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; }
.hx-play-ico { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; transition: background var(--t), color var(--t); }
.hx-play:hover .hx-play-ico { background: #fff; color: #14110e; }

.hx-split-right { padding: 56px 48px; }
.hx-coaches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.hx-coach { cursor: pointer; }
.hx-coach:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.hx-coach-photo { aspect-ratio: 4 / 3; background: var(--bg3) center / cover; filter: grayscale(1); transition: filter .4s ease; }
.hx-coach:hover .hx-coach-photo, .hx-coach:focus-visible .hx-coach-photo { filter: none; }
.hx-coach-label { margin: 12px 0 4px; font: 700 11px/1.2 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hx-coach-name { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 700 17px/1.25 var(--fb); color: var(--ink); }
.hx-coach-name span { color: var(--muted); transition: color var(--t), transform var(--t); }
.hx-coach:hover .hx-coach-name span { color: var(--orange); transform: translateX(3px); }
.hx-coach-title { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }

/* ── Tablet ── */
@media (max-width: 1000px) {
  .hx-wrap { padding: 0 24px; }
  .hx-path-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hx-split { grid-template-columns: minmax(0, 1fr); }
  .hx-split-left { min-height: 460px; }
  .hx-split-copy, .hx-split-right { padding: 40px 24px; }
  .hx-disc-list { margin: 0 -24px; }
}

/* ── Mobil ── */
@media (max-width: 760px) {
  .hx-sec { padding: 52px 0; }
  /* karty: vodorovný posuv se „scroll snap“, vidět kus další karty */
  .hx-cards {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -24px; padding: 0 24px 6px; scrollbar-width: none;
  }
  .hx-cards::-webkit-scrollbar { display: none; }
  .hc { scroll-snap-align: start; }
  .hc:hover { transform: none; }
  /* disciplíny: svislé pruhy bez zkosení */
  .hx-disc-list { margin: 0; height: auto; flex-direction: column; }
  .hx-disc-list li, .hx-disc-list a { transform: none; }
  .hx-disc-list li, .hx-disc-list li:first-child, .hx-disc-list li:last-child { margin: 0 0 3px; height: 112px; flex: none; }
  .hx-disc-list a, .hx-disc-list li:first-child a, .hx-disc-list li:last-child a { padding: 0 20px 18px; }
  .hx-disc-list a::before, .hx-disc-list a::after { inset: 0; }
  .hx-disc-list a::after { background: linear-gradient(90deg, rgba(18, 20, 23, .85) 0%, rgba(18, 20, 23, .3) 70%); }
  .hx-disc-label { font-size: 34px; }
  .hx-split-left { min-height: 420px; }
  .hx-coaches { gap: 18px 12px; }
  .hx-coach-name { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .hc, .hx-disc-list li, .hx-disc-list a::before, .hx-coach-photo { transition: none; }
  .hc:hover { transform: none; }
}

/* ── APLIKACE (#aplikace) — jezdec + trenér, push notifikace; ukázka upozornění se skutečnými texty ── */
.hx-app { background: var(--bg3); scroll-margin-top: 62px; }
.hx-app-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hx-app-title { margin: 14px 0 0; font: 400 clamp(40px, 5.2vw, 72px)/.92 var(--fd); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); max-width: 14ch; text-wrap: balance; }
.hx-app-lead { margin: 18px 0 30px; font-size: 17px; line-height: 1.65; color: var(--ink2); max-width: 56ch; }
.hx-app-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 24px 0; border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2); }
.hx-app-h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 13px/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.hx-app-dot { width: 10px; height: 10px; background: var(--orange); }
.hx-app-dot.is-trainer { background: var(--ink); }
.hx-app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hx-app-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.hx-app-list li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border: solid var(--orange); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.hx-app-install { margin: 22px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.hx-app-install strong { color: var(--ink); }
.hx-app-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hx-app-cta .btn { min-height: 48px; display: inline-flex; align-items: center; }

/* stoh upozornění — tmavé karty jako na zamčené obrazovce */
.hx-app-stack { display: grid; gap: 10px; padding: 28px; background: var(--band, #121417); position: relative; }
.hx-app-stack::before { content: ''; position: absolute; left: 50%; top: 10px; width: 64px; height: 4px; margin-left: -32px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.hx-push { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 14px 13px; border-radius: 16px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.hx-push img { border-radius: 8px; background: #000; }
.hx-push-body { min-width: 0; }
.hx-push-meta { display: flex; gap: 8px; align-items: center; margin: 0 0 4px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.hx-push-meta span:last-child { margin-left: auto; }
.hx-push-who { padding: 2px 6px; border-radius: 4px; background: var(--ember); color: var(--ink); font-weight: 700; font-size: 11px; }
.hx-push-who.is-trainer { background: #fff; }
.hx-push-title { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.3; }
.hx-push-text { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-push:nth-child(2) { margin-left: 18px; }
.hx-push:nth-child(4) { margin-left: 10px; }

@media (max-width: 1024px) {
  .hx-app-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hx-app-stack { max-width: 520px; }
}
@media (max-width: 640px) {
  .hx-wrap.hx-app-grid { padding: 0 16px; }
  .hx-app-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hx-app-stack { padding: 22px 14px 16px; }
  .hx-push:nth-child(n) { margin-left: 0; }
  .hx-push:nth-child(4) { display: none; }
  .hx-app-cta .btn { flex: 1 1 100%; justify-content: center; }
}


/* ── Video ukázky (sekce #videa a pás v „Pro lektory“) — přehrávač #reel-dlg ─────────────────── */
.reels { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.reels-dark { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; margin: 0 auto 34px; }
.reel { all: unset; box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; display: flex; flex-direction: column; gap: 8px; width: 100%; cursor: pointer; border-radius: 14px; }
.reel:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.reel-poster { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #121417; }
.reel-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.reel:hover .reel-poster img { transform: scale(1.04); }
.reel-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--signal); color: var(--ink); box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
.reel-play svg { margin-left: 2px; }
.reel-t { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); }
.reel-s { font-size: 13px; color: var(--muted); margin-top: -4px; }
.reels-dark .reel-t { color: #fff; }
.reels-dark .reel-s { color: rgba(255, 255, 255, .6); }
.reels-h3 { text-align: center; color: #fff; font-family: var(--fd); text-transform: uppercase; font-size: 30px; letter-spacing: 1px; margin: 34px 0 18px; }
@media (prefers-reduced-motion: reduce) { .reel-poster img { transition: none; } .reel:hover .reel-poster img { transform: none; } }
/* mobil: vodorovný pás se scrollem uvnitř (stránka se do strany nehýbe) */
@media (max-width: 860px) {
  .reels, .reels-dark { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-left: -16px; margin-right: -16px; padding: 0 16px 8px; scroll-padding: 0 16px; max-width: none; }
  .reels > li { flex: 0 0 42%; scroll-snap-align: start; }
}

.reel-dlg { margin: auto; border: 0; padding: 0; border-radius: 16px; background: #121417; color: #fff; width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
.reel-dlg::backdrop { background: rgb(0 0 0 / .7); }
.reel-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; }
.reel-dlg-head h2 { font-size: 17px; font-weight: 700; margin: 0; }
.reel-dlg-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.reel-dlg-x:hover { background: rgb(255 255 255 / .1); }
.reel-dlg-x:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.reel-dlg video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 170px); aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.reel-dlg p { margin: 0; padding: 12px 18px 18px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .78); }

/* ── Pro lektory: co lektor potřebuje (podmínky schválení profilu, migrate_v41) ── */
.lreq { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lreq > li { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.lreq-ico { color: var(--orange); flex-shrink: 0; }
.lreq strong { display: block; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.lreq span { display: block; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.6; }
@media (max-width: 1000px) { .lreq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .lreq { grid-template-columns: 1fr; gap: 10px; }
  .lreq > li { flex-direction: row; align-items: flex-start; padding: 16px; }
}

/* právní rámec pro lektory (pod blokem Co potřebuješ) */
.lreq-legal { max-width: 1100px; margin: 28px auto 0; padding: 24px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); }
.lreq-legal h3 { margin: 0 0 16px; color: #fff; font-family: var(--fd); text-transform: uppercase; font-size: 22px; letter-spacing: 1px; font-weight: 400; }
.lreq-legal dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.lreq-legal dl > div { min-width: 0; }
.lreq-legal dt { color: var(--orange); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.lreq-legal dd { margin: 0; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.65; }
.lreq-legal-foot { margin: 18px 0 0; font-size: 14px; color: rgba(255, 255, 255, .72); }
.lreq-legal-foot a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .lreq-legal { padding: 18px 16px; }
  .lreq-legal dl { grid-template-columns: 1fr; gap: 14px; }
}
