/* PADELUNKA – styl webu
   Koncept: plakát nové sportovní značky. Obří zúžené písmo, čáry kurtu jako mřížka,
   pásy černá / papír / červená. Žlutá jen pro míček. */

@font-face { font-family: "Archivo PL"; src: url(../fonts/archivo-latin.woff2) format("woff2-variations"), url(../fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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+2212,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo PL"; src: url(../fonts/archivo-latin-ext.woff2) format("woff2-variations"), url(../fonts/archivo-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Mono PL"; src: url(../fonts/mono-latin.woff2) format("woff2"); font-weight: 100 800; font-display: swap;
  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+2212,U+FEFF,U+FFFD; }
@font-face { font-family: "Mono PL"; src: url(../fonts/mono-latin-ext.woff2) format("woff2"); font-weight: 100 800; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* barvy */
  --ink: #0d0c0c;        /* téměř černá, lehce teplá */
  --ink-2: #181616;
  --paper: #f4f1ec;      /* bílá s nádechem kurtového písku */
  --white: #ffffff;
  --red: #ec2a1e;        /* hlavní červená */
  --red-deep: #c41d13;
  --ball: #e2f53a;       /* žlutá jen pro míček */
  --mute-d: #a29b96;     /* šedá na tmavém */
  --mute-l: #5d5651;     /* šedá na světlém */
  --line-d: rgba(255,255,255,.16);
  --line-l: rgba(13,12,12,.16);
  /* hráči */
  --pA: #f0473a; --pB: #3f7cff; --pC: #9b5cff;
  /* písmo */
  --f: "Archivo PL", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "Mono PL", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* rozměry */
  --gut: clamp(16px, 5vw, 72px);
  --max: 1360px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--f); font-size: 1.0625rem; line-height: 1.55; font-stretch: 100%; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
a { color: inherit; }
button { font: inherit; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ball); color: var(--ink); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }

/* ---------- hlavička ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--ink); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(13,12,12,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-d); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.brand__name { font-weight: 900; font-stretch: 70%; font-size: 1.45rem; letter-spacing: .01em; }
.brand__by { font-family: var(--mono); font-size: .68rem; color: var(--mute-d); text-transform: uppercase; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--paper); opacity: .82; }
.nav a:hover { opacity: 1; }
.nav__liga { opacity: 1 !important; background: var(--red); color: var(--white) !important; padding: 7px 13px; border-radius: 999px; }
@media (max-width: 760px) {
  .nav a:not(.nav__liga) { display: none; }
  .brand__by { display: none; }
}

/* ---------- tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-stretch: 85%; font-size: 1.05rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-deep); }
.btn--line { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost { background: transparent; color: inherit; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding-inline: 12px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }

/* ---------- úvod ---------- */
.hero { position: relative; padding-top: clamp(20px, 3vw, 40px); background:
  radial-gradient(ellipse 60% 50% at 85% 60%, rgba(236,42,30,.16), transparent 70%), var(--ink); }
.hero__mega { font-weight: 900; font-stretch: 62%; line-height: .8; letter-spacing: -.012em; text-transform: uppercase;
  font-size: clamp(3rem, calc((min(100vw, calc(var(--max) + 2 * var(--gut))) - 2 * var(--gut)) * .244), 21rem);
  color: var(--paper); white-space: nowrap; margin-left: -.03em; }
.hero__mega::after { content: ""; display: block; height: .055em; width: 100%; margin-top: .06em; background: linear-gradient(90deg, var(--red) 0 62%, transparent 62% 64%, var(--ball) 64% 66.5%, transparent 66.5%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(22px, 2.6vw, 36px) clamp(36px, 5vw, 72px); }
.hero__claim { font-weight: 800; font-stretch: 75%; font-size: clamp(2.1rem, 4.6vw, 4.3rem); line-height: .98; letter-spacing: -.005em; text-wrap: balance; }
.hero__claim em { font-style: normal; color: var(--red); display: block; }
.hero__mix { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__mix span { background: var(--paper); color: var(--ink); font-weight: 800; font-stretch: 80%; font-size: clamp(1.05rem, 1.7vw, 1.35rem); padding: 6px 12px; line-height: 1.2; }
.hero__mix span:first-child { background: var(--red); color: var(--white); }
.hero__lead { margin-top: 22px; max-width: 34ch; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: #e6e1db; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; min-width: 0; }
.trio__svg { width: 100%; max-width: 520px; display: block; margin-inline: auto; overflow: visible; }
.trio__court rect, .trio__court line { fill: none; stroke: var(--line-d); stroke-width: 2; }
.trio__court .trio__net { stroke: rgba(255,255,255,.55); stroke-width: 5; stroke-dasharray: 2 6; }
.trio__edges line { stroke: rgba(255,255,255,.14); stroke-width: 4; stroke-linecap: round; transition: stroke .6s, stroke-width .6s; }
.trio__edges line.on { stroke: var(--paper); stroke-width: 8; }
.trio__node circle { stroke: var(--ink); stroke-width: 6; transition: opacity .6s, transform .6s var(--ease); }
.trio__node text { fill: var(--white); font-weight: 900; font-stretch: 75%; font-size: 36px; text-anchor: middle; font-family: var(--f); }
.trio__node[data-p="A"] circle { fill: var(--pA); }
.trio__node[data-p="B"] circle { fill: var(--pB); }
.trio__node[data-p="C"] circle { fill: var(--pC); }
.trio__node.rest { opacity: .45; }
.trio__ball { fill: var(--ball); filter: drop-shadow(0 0 10px rgba(226,245,58,.6)); }
.trio__cap { text-align: center; margin-top: 10px; color: var(--mute-d); display: flex; gap: 8px; justify-content: center; align-items: baseline; flex-wrap: wrap; }
.trio__cap b { color: var(--paper); font-weight: 800; font-size: 1.15rem; }

.hero__photo { position: relative; aspect-ratio: 4 / 5; max-height: 640px; width: 100%; overflow: hidden; border-radius: 4px; background: var(--ink-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(13,12,12,.65)); }
.hero__photo-tag { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: var(--paper); }

.ticker { background: var(--red); color: var(--white); overflow: hidden; border-block: 1px solid rgba(0,0,0,.2); }
.ticker__run { display: flex; align-items: center; gap: 28px; width: max-content; padding-block: 14px; animation: tick 38s linear infinite; }
.ticker__run span { font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1; white-space: nowrap; }
.ticker__run i { width: 14px; height: 14px; border-radius: 50%; background: var(--ball); flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- pásy ---------- */
.band { padding-block: clamp(64px, 9vw, 128px); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--red { background: var(--red); color: var(--white); }
.eyebrow { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.eyebrow--y { color: var(--ball); }
.h2 { font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: clamp(2.8rem, 8vw, 7.4rem); line-height: .86; letter-spacing: -.005em; text-wrap: balance; }
.h3 { font-weight: 850; font-stretch: 72%; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: .95; text-wrap: balance; }

/* ---------- jak se hraje ---------- */
.steps { list-style: none; padding: 0; margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 2px solid var(--ink); }
.step { position: relative; padding: 26px 24px 30px 0; display: flex; flex-direction: column; gap: 12px; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line-l); }
.step__n { font-family: var(--mono); font-weight: 700; font-size: .85rem; color: var(--red); }
.step__pic { width: 120px; height: 60px; overflow: visible; }
.step__pic .pA { fill: var(--pA); } .step__pic .pB { fill: var(--pB); } .step__pic .pC { fill: var(--pC); }
.step__pic .court { fill: none; stroke: var(--ink); stroke-width: 2; }
.step__pic .team { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 4 5; }
.step__pic .swap { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; marker-end: none; }
.step h3 { font-weight: 850; font-stretch: 75%; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; }
.step p { color: var(--mute-l); max-width: 30ch; }

.rot { margin-top: clamp(48px, 7vw, 88px); display: flex; align-items: center; flex-wrap: wrap; gap: clamp(10px, 2vw, 28px); }
.rot__pair { display: inline-flex; font-weight: 900; font-stretch: 62%; font-size: clamp(4.2rem, 13vw, 11rem); line-height: .82; }
.rot__pair b { font-weight: 900; }
.cA { color: var(--pA); } .cB { color: var(--pB); } .cC { color: var(--pC); }
.arr { display: inline-block; width: clamp(28px, 5vw, 72px); height: clamp(18px, 3vw, 40px); background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 40'%3E%3Cpath d='M0 17h56L42 3l4-3 26 20-26 20-4-3 14-14H0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 40'%3E%3Cpath d='M0 17h56L42 3l4-3 26 20-26 20-4-3 14-14H0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.rot__note { margin-top: 24px; max-width: 62ch; font-size: 1.15rem; color: var(--mute-l); }

/* ---------- ukázka ---------- */
.demo { background:
  linear-gradient(var(--line-d) 1px, transparent 1px) 0 0 / 100% 96px, var(--ink); background-blend-mode: normal; }
.demo { background: var(--ink); }
.demo__intro { margin-top: 18px; max-width: 58ch; color: #d9d3cc; font-size: 1.15rem; }
.demo__grid { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "stage seg" "stage panel" "legend panel"; grid-template-rows: auto auto 1fr; column-gap: clamp(24px, 4vw, 64px); row-gap: 20px; align-items: start; }
.demo__stage { grid-area: stage; } .demo__seg { grid-area: seg; } .demo__panel { grid-area: panel; } .demo__legend { grid-area: legend; }
.demo__stage { min-width: 0; }
.court { width: 100%; height: auto; display: block; overflow: visible; }
.c-floor { fill: #142a3d; }
.c-wall { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 3; }
.c-line { stroke: rgba(255,255,255,.85); stroke-width: 3; }
.c-net { stroke: var(--paper); stroke-width: 5; }
.c-netbg { opacity: .9; }
.mesh { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.c-zone { fill: transparent; transition: fill .6s; }
.c-zone.hl { fill: rgba(226,245,58,.12); }
.c-lab { fill: var(--mute-d); font-family: var(--mono); font-size: 14px; letter-spacing: .08em; }
.c-side { fill: rgba(255,255,255,.5); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.b-box { fill: var(--ink-2); stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-dasharray: 6 6; }
.pl { transition: transform 1.25s var(--ease), opacity .5s; }
.pl__dot { stroke: var(--ink); stroke-width: 4; }
.pl[data-p="A"] .pl__dot { fill: var(--pA); }
.pl[data-p="B"] .pl__dot { fill: var(--pB); }
.pl[data-p="C"] .pl__dot { fill: var(--pC); }
.pl text { fill: var(--white); font-family: var(--f); font-weight: 900; font-stretch: 75%; font-size: 40px; text-anchor: middle; pointer-events: none; }
.pl__ring { fill: none; stroke: var(--paper); stroke-width: 4; opacity: 0; transition: opacity .4s; }
.pl.out .pl__ring { opacity: 1; stroke: var(--paper); stroke-dasharray: 8 7; animation: spin 6s linear infinite; }
.pl.in .pl__ring { opacity: 1; stroke: var(--ball); }
.pl.stay .pl__ring { opacity: 1; stroke: var(--paper); }
.pl.dim { opacity: .55; }
@keyframes spin { to { stroke-dashoffset: -150; } }
.ball { transition: transform 1.1s var(--ease), opacity .5s; }
.ball circle { fill: var(--ball); stroke: var(--ink); stroke-width: 3; }
.ball__seam { fill: none; stroke: rgba(13,12,12,.55); stroke-width: 1.6; }
.ball.off { opacity: 0; }
.court.jump .pl, .court.jump .ball { transition: none !important; }
.ball.pulse circle { animation: ballpulse 1.2s ease-in-out 2; }
@keyframes ballpulse { 50% { r: 15; } }
.demo__legend { margin-top: 0; color: var(--mute-d); font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.demo__legend b { color: var(--paper); }
.ball-ico { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ball); margin-top: 4px; }

.demo__panel { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-d); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; color: var(--mute-d); padding: 10px 8px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .92rem; line-height: 1.2; }
.seg button[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.narr { border-top: 2px solid var(--paper); padding-top: 16px; min-height: 206px; }
.narr__step { color: var(--ball); }
.narr__title { margin-top: 10px; font-weight: 850; font-stretch: 72%; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; }
.narr__text { margin-top: 12px; font-size: 1.15rem; line-height: 1.5; color: #e9e4de; }
.narr__text b { color: var(--white); }
.status { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.status div { background: var(--ink); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.status .status__srv { flex-direction: row; justify-content: space-between; align-items: baseline; }
.status dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mute-d); }
.status dd { font-weight: 900; font-stretch: 75%; font-size: 1.6rem; line-height: 1; }
.status .status__srv { grid-column: 1 / -1; }
.status .status__srv dd { color: var(--ball); }
.status dd[data-p="A"] { color: var(--pA); } .status dd[data-p="B"] { color: var(--pB); } .status dd[data-p="C"] { color: var(--pC); }
.ctrl { display: flex; flex-wrap: wrap; gap: 10px; }
.ctrl .btn { min-height: 48px; padding-inline: 20px; }
.ctrl__play { min-width: 128px; }

.tl { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.tl button { all: unset; box-sizing: border-box; cursor: pointer; border-top: 3px solid var(--line-d); padding: 10px 6px 4px; display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: border-color .3s; }
.tl button:focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; }
.tl button.now { border-color: var(--ball); }
.tl button.done { border-color: rgba(255,255,255,.5); }
.tl__g { font-family: var(--mono); font-size: .72rem; color: var(--mute-d); text-transform: uppercase; white-space: nowrap; }
.tl__pair { font-weight: 900; font-stretch: 66%; font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 1; }
.tl__rl { font-family: var(--mono); font-size: .7rem; color: var(--mute-d); white-space: nowrap; }
.tl__srv { font-family: var(--mono); font-size: .7rem; color: var(--ball); white-space: nowrap; min-height: 1em; }

.rule { margin-top: clamp(40px, 6vw, 72px); border-left: 6px solid var(--red); padding: 4px 0 4px clamp(18px, 3vw, 32px); max-width: 980px; }
.rule p { font-weight: 800; font-stretch: 78%; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.1; text-wrap: balance; }
.rule .rule__add { margin-top: 14px; font-weight: 500; font-stretch: 100%; font-size: 1.15rem; color: var(--ball); }

/* ---------- proč ---------- */
.why__list { list-style: none; padding: 0; margin-top: clamp(36px, 5vw, 64px); border-top: 2px solid var(--ink); }
.why__list li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 12px 40px; padding-block: clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--line-l); align-items: baseline; }
.why__list b { font-weight: 850; font-stretch: 70%; font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1; }
.why__list span { color: var(--mute-l); font-size: 1.1rem; max-width: 42ch; }
.why__list li:nth-child(2) b { color: var(--red); }

/* ---------- pilot ---------- */
.pilot__date { color: var(--ball); margin-bottom: 14px; }
.pilot__body { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.pilot__text { font-size: clamp(1.15rem, 1.6vw, 1.4rem); max-width: 40ch; color: #e6e1db; }
.pilot__big { display: flex; justify-content: flex-end; gap: .12em; font-weight: 900; font-stretch: 62%; font-size: clamp(5rem, 15vw, 14rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.4); }
.pilot__big span:first-child { color: var(--red); -webkit-text-stroke: 0; }
.gallery { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 10px; }
.gallery figure { position: relative; overflow: hidden; background: var(--ink-2); min-width: 0; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 10px; bottom: 8px; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; background: rgba(13,12,12,.75); padding: 4px 8px; }
.gallery figure:nth-child(1) { grid-column: span 7; aspect-ratio: 4/3; }
.gallery figure:nth-child(2) { grid-column: span 5; aspect-ratio: auto; }
.gallery figure:nth-child(3) { grid-column: span 5; aspect-ratio: 4/3; }
.gallery figure:nth-child(4) { grid-column: span 7; aspect-ratio: auto; }
.gallery figure:nth-child(n+5) { grid-column: span 6; aspect-ratio: 3/2; }

/* ---------- liga ---------- */
.liga { position: relative; overflow: hidden; }
.liga::before { content: ""; position: absolute; top: -2px; bottom: -2px; right: -6%; width: min(46%, 640px); pointer-events: none;
  border: 2px solid rgba(255,255,255,.2); border-right: 0;
  background:
    linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)) 0 69.5% / 100% 2px no-repeat,
    linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)) 50% 0 / 2px 69.5% no-repeat; }
@media (max-width: 960px) { .liga::before { display: none; } }
.liga .wrap { position: relative; }
.liga__badge { display: inline-block; background: var(--ink); color: var(--ball); padding: 7px 12px; }
.liga__h { margin-top: 22px; font-weight: 900; font-stretch: 64%; text-transform: uppercase; font-size: clamp(3rem, 9vw, 8.6rem); line-height: .86; text-wrap: balance; max-width: 17ch; }
.liga__lead { margin-top: 28px; font-weight: 700; font-stretch: 85%; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.25; max-width: 40ch; }
.liga__note { margin-top: 14px; max-width: 56ch; color: rgba(255,255,255,.88); }
.interest { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border-top: 2px solid var(--white); }
.interest__item { padding: 24px 28px 8px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.interest__item + .interest__item { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.35); }
.interest h3 { font-weight: 850; font-stretch: 72%; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.interest p { max-width: 40ch; }

.contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 6px; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__tel { font-family: var(--mono); font-size: .9rem; text-decoration: none; }
.contact__tel:hover { text-decoration: underline; }
.contact__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.contact__mail { font-family: var(--mono); font-size: .9rem; user-select: all; word-break: break-all; }
.contact__copy { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: .85rem; font-weight: 600; }
.contact__todo { font-family: var(--mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; border: 1px dashed currentColor; padding: 10px 14px; opacity: .9; }

/* ---------- pravidla ---------- */
.rules__grid { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.rules__list { border-top: 2px solid var(--ink); }
.rules__list div { display: grid; grid-template-columns: 9.5rem minmax(0,1fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line-l); }
.rules__list dt { font-weight: 850; font-stretch: 75%; font-size: 1.35rem; line-height: 1.15; }
.rules__list dd { color: #2f2a27; }
.rules__side { display: flex; flex-direction: column; gap: 22px; }
.rules__fip { font-size: 1rem; color: var(--mute-l); border-left: 4px solid var(--red); padding-left: 16px; }
.dl { display: flex; flex-direction: column; gap: 8px; }
.dl__meta { font-family: var(--mono); font-size: .78rem; color: var(--mute-l); text-transform: uppercase; }
.video video { width: 100%; aspect-ratio: 16/9; background: var(--ink); display: block; }
.video p { margin-top: 8px; font-size: .9rem; color: var(--mute-l); }

/* ---------- původ ---------- */
.origin__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(3.4rem, 11vw, 10.5rem); line-height: .84; }
.origin__by2 { color: var(--red); }
.origin__pilot { margin-top: 18px; color: var(--ball); }
.origin__grid { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line-d); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); }
.origin__text { display: flex; flex-direction: column; gap: 14px; font-size: 1.15rem; color: #e6e1db; max-width: 58ch; }

/* ---------- patička ---------- */
.foot { background: #070606; color: var(--mute-d); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: baseline; }
.foot__brand { color: var(--paper); font-weight: 900; font-stretch: 70%; font-size: 1.3rem; margin-right: auto; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__brand span { font-family: var(--mono); font-size: .7rem; font-weight: 500; color: var(--mute-d); text-transform: uppercase; }

/* ---------- mobil ---------- */
@media (max-width: 960px) {
  .hero__grid, .demo__grid, .pilot__body, .rules__grid, .origin__grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line-l); }
  .pilot__big { justify-content: flex-start; }
  .trio__svg { max-width: 420px; }
  .demo__grid { grid-template-columns: minmax(0,1fr); grid-template-areas: "seg" "stage" "panel" "legend"; grid-template-rows: auto; row-gap: 18px; }
  .narr { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 22px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line-l); }
  .why__list li { grid-template-columns: minmax(0,1fr); }
  .interest { grid-template-columns: minmax(0,1fr); }
  .interest__item + .interest__item { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.35); margin-top: 18px; }
  .rules__list div { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .tl { grid-template-columns: repeat(4, minmax(0,1fr)); row-gap: 14px; }
  .rot { gap: 8px; flex-wrap: nowrap; }
  .rot__pair { font-size: 12.4vw; }
  .arr { width: 22px; height: 14px; }
  .narr { min-height: 240px; }
  .gallery figure:nth-child(n) { grid-column: span 12; aspect-ratio: 4/3; }
  .hero__cta .btn { flex: 1 1 140px; }
  .ctrl .btn { flex: 1 1 auto; }
  .trio__svg { max-width: 300px; }
  .hero__photo { aspect-ratio: 4 / 3; }
}

/* ---------- omezení pohybu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__run { animation: none; }
}
