/* DWTBL Edit – barvy a písmo podle brand guidu */
:root {
  --black: #0E1015;   /* Timeline černá */
  --panel: #1A1D25;   /* Panel */
  --line: #262A34;
  --red: #E5233D;     /* Playhead červená */
  --white: #F2F2F0;   /* Off-white */
  --grey: #8A8F99;    /* Šedá */
  --radius: 14px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.35; }
p { margin: 0; }
.hidden { display: none; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .9em 1.6em;
  background: var(--red); color: #fff;
  border: 2px solid var(--red); border-radius: 999px;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: #ff2e4b; border-color: #ff2e4b; }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--white); }
.btn--small { padding: .6em 1.2em; font-size: .9rem; }
.btn--full { width: 100%; }

/* ---------- Scroll playhead ---------- */
.scrub { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.scrub__bar { height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.scrub__head {
  position: absolute; top: 0; left: calc(var(--p, 0) * 100%);
  width: 12px; height: 12px; margin-left: -6px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}

/* ---------- Navigace ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 16, 21, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--grey); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--white); }

/* ---------- Štítky s timecodem ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--grey); font-size: .85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 18px;
}
.tc {
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
  color: var(--red); border: 1px solid rgba(229, 35, 61, .4);
  padding: 3px 8px; border-radius: 6px; font-size: .78rem;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 12vh, 140px) 0 0; }
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.6rem, 8vw, 6rem); max-width: 14ch; }
.hero__title em { font-style: italic; color: var(--red); }
.hero__lead { margin-top: 28px; max-width: 56ch; color: #c9ccd2; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__sign { width: min(340px, 70%); height: auto; margin-top: 56px; opacity: .9; }

/* Timeline – stopy klipů + jezdící playhead */
.timeline {
  position: relative; margin-top: 64px; padding: 28px 0 36px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 29, 37, .6), rgba(14, 16, 21, 0));
  overflow: hidden;
}
.timeline__ruler {
  height: 14px; margin-bottom: 14px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, #1f222b 0 1px, transparent 1px 16px);
  background-size: 100% 14px, 100% 7px;
  background-repeat: no-repeat;
  background-position: 0 0, 0 100%;
}
.timeline__track { display: flex; gap: 4px; padding: 0 4px; margin-bottom: 6px; }
.timeline__track span { flex: 0 0 var(--w); height: 38px; border-radius: 6px; }
.timeline__track--v span { background: #2a2e3a; border-top: 3px solid #3a3f4d; }
.timeline__track--v span:nth-child(3n+2) { background: #232733; }
.timeline__track--a span {
  height: 30px; background-color: #1d222b;
  background-image: repeating-linear-gradient(90deg, rgba(138, 143, 153, .35) 0 2px, transparent 2px 5px);
  -webkit-mask: radial-gradient(ellipse 120% 70% at 50% 50%, #000 40%, rgba(0,0,0,.45) 100%);
          mask: radial-gradient(ellipse 120% 70% at 50% 50%, #000 40%, rgba(0,0,0,.45) 100%);
}
.timeline__playhead {
  position: absolute; top: 14px; bottom: 0; left: 0; width: 3px;
  background: var(--red);
  animation: scrubbing 9s cubic-bezier(.65, 0, .35, 1) infinite alternate;
}
.timeline__playhead::before {
  content: ""; position: absolute; top: -10px; left: 50%;
  width: 16px; height: 14px; transform: translateX(-50%);
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}
@keyframes scrubbing { from { left: 6%; } to { left: 92%; } }

/* ---------- Sekce ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0; }
.section--panel { background: var(--panel); }
.section__head { margin-bottom: 48px; max-width: 640px; }
.section__lead { margin-top: 14px; color: var(--grey); }

/* YouTube */
.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.yt h3 { margin-top: 16px; }
.meta { margin-top: 6px; color: var(--grey); font-size: .85rem; }
.yt__player {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); cursor: pointer;
}
.yt__player img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; filter: brightness(.85); }
.yt__player:hover img { transform: scale(1.04); filter: brightness(1); }
.yt__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--red); box-shadow: 0 10px 30px rgba(229, 35, 61, .45);
  transition: transform .2s;
}
.play::after {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.yt__player:hover .play { transform: translate(-50%, -50%) scale(1.1); }

/* Reels */
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 28px; justify-content: center; }
.reel { margin: 0; }
.reel video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 22px; background: #000;
  border: 6px solid #0b0c10; box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0,0,0,.4);
}
.reel figcaption { margin-top: 14px; color: var(--grey); font-size: .85rem; text-align: center; }

/* Reference */
.ref {
  display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.ref__brand {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 40px; background: var(--panel); border-right: 3px solid var(--red);
}
.ref__name { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; }
.ref__tag { color: var(--grey); font-size: .9rem; }
.ref__body { padding: 40px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.ref__body p { color: #c9ccd2; max-width: 60ch; }
.ref__body strong { color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--grey); }
.link { color: var(--red); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; flex-direction: column; }
.contact__list span { color: var(--grey); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.contact__list a { font-size: 1.15rem; font-weight: 700; text-decoration: none; word-break: break-word; }
.contact__list a:hover { color: var(--red); }

.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .85rem; font-weight: 500; color: #c9ccd2; }
.opt { color: var(--grey); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px;
  background: var(--panel); color: var(--white);
  border: 1px solid var(--line); border-radius: 10px;
  font: 400 1rem/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 35, 61, .2);
}
.form ::placeholder { color: #5d626c; }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--grey); font-size: .9rem; }
.footer__inner img { width: 120px; height: auto; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

/* Jednoduchá podstránka (děkovací, 404) */
.simple { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px 16px; }
.simple img { width: 96px; margin: 0 auto 32px; }
.simple h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.simple p { margin: 16px auto 32px; color: var(--grey); max-width: 44ch; }

/* Objevování při scrollu */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .yt-grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .ref { grid-template-columns: 1fr; }
  .ref__brand { border-right: 0; border-bottom: 3px solid var(--red); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__links a:not(.btn) { display: none; }
  .nav__logo img { height: 34px; }
  .yt-grid { grid-template-columns: 1fr; }
  .reels {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: none;
  }
  .reels::-webkit-scrollbar { display: none; }
  .reel { scroll-snap-align: center; }
  .form__row { grid-template-columns: 1fr; }
  .ref__brand, .ref__body { padding: 28px; }
  .timeline { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .timeline__playhead { animation: none; left: 38%; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hero – telefon s ukázkou reelu (jen na větších obrazovkách) */
.hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.hero__phone { position: relative; width: 300px; transform: rotate(3deg); }
.hero__phone video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 28px; border: 8px solid #07080b; background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(0,0,0,.55), 0 0 120px rgba(229,35,61,.12);
}
.hero__rec {
  position: absolute; top: 22px; left: 22px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px; background: rgba(14,16,21,.75);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
}
.hero__rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__phone { display: none; }
}
