/* Space Grotesk (SIL OFL 1.1), self-hosted – bez externích požadavků */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f4ee;
  --surface: #efebe3;
  --text: #1c1b2d;
  --muted: #5f5d6e;
  --rule: #e0dbd0;
  --accent: #1c1b2d;
  --accent-ink: #f7f4ee;
  --highlight: #cbff00;
  --radius: 10px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b2d;
    --surface: #24233a;
    --text: #f1f0f6;
    --muted: #a9a8bd;
    --rule: #33324b;
    --accent: #cbff00;
    --accent-ink: #1c1b2d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2.5rem; } }

/* Úvod */
.hero { padding-top: 4.5rem; padding-bottom: 3.5rem; }
@media (min-width: 48rem) { .hero { padding-top: 8rem; padding-bottom: 5rem; } }
.eyebrow { margin: 0 0 1rem; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0 0 1.25rem; font-size: clamp(2.75rem, 9vw, 5.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.lead { margin: 0 0 1.25rem; max-width: 22ch; font-size: clamp(1.6rem, 4.2vw, 2.6rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.lead strong { font-weight: 600; background: linear-gradient(transparent 62%, var(--highlight) 62%); padding: 0 0.1em; }
@media (prefers-color-scheme: dark) { .lead strong { background: none; color: var(--highlight); padding: 0; } }
.bio { margin: 0 0 1rem; max-width: 40rem; color: var(--muted); }
.bio + .facts { margin-top: 2.25rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; max-width: 46rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.facts li { border-top: 2px solid var(--text); padding-top: 0.75rem; }
.facts strong { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.facts span { color: var(--muted); font-size: 0.95rem; }

.actions, .connect { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.btn { display: inline-block; padding: 0.7rem 1.4rem; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.btn:hover { filter: brightness(1.1); }
.btn-ghost:hover { border-color: var(--text); }

/* Sekce */
.section { padding-top: 3.5rem; padding-bottom: 1rem; }
@media (min-width: 48rem) { .section { padding-top: 5rem; } }
.section > h2 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.section-intro { margin: 0 0 2rem; color: var(--muted); max-width: 40rem; }
.section > h2 + .cards { margin-top: 1.5rem; }

/* Karty prací */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 2rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.card { display: block; text-decoration: none; }
.thumb { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.play { position: absolute; left: 1rem; bottom: 1rem; width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); transition: transform 0.2s ease; }
.play::after { content: ""; position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 0.5rem 0 0.5rem 0.8rem; border-color: transparent transparent transparent #1c1b2d; }
.card:hover .play { transform: scale(1.08); }
.count { position: absolute; left: 1rem; bottom: 1rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #1c1b2d; font-size: 0.85rem; font-weight: 600; }
.card-title { display: block; margin-top: 0.85rem; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 0.2em; }
.card-meta { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .thumb img, .play { transition: none; } }

/* Služby */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: s; }
.services li { counter-increment: s; border-top: 1px solid var(--rule); padding-top: 1rem; }
.services li::before { content: "0" counter(s); display: block; margin-bottom: 0.5rem; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.services h3 { margin: 0 0 0.35rem; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.services p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Patička */
footer { margin-top: 5rem; padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
footer p { margin: 0 0 0.5rem; max-width: 46rem; }

/* Okno s videem / fotkami */
.modal { width: 100%; max-width: 72rem; max-height: 100vh; margin: auto; padding: 0; border: 0; background: transparent; color: #ecebf3; }
.modal::backdrop { background: rgb(14, 14, 22); }
.modal-inner { padding: 1rem; }
.modal video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; }
.modal-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0.75rem 0; font-size: 1rem; }
.close { font: inherit; font-size: 0.95rem; color: inherit; background: none; border: 0; padding: 0.25rem 0; cursor: pointer; opacity: 0.85; }
.close:hover { opacity: 1; }
.gallery { display: grid; gap: 1rem; }
.gallery img { width: 100%; border-radius: 6px; }
#galerie-dron { overflow-y: auto; }
#galerie-dron .modal-bar { position: sticky; top: 0; z-index: 1; margin: 0; padding: 0.75rem 0; background: rgb(14, 14, 22); }

/* Úvod se zvýrazněnou upoutávkou (na širších displejích vedle textu) */
.hero-media { margin-top: 3rem; }
.hero-media .card-meta { margin-top: 0.85rem; }
.hero-media .card-title { margin-top: 0.1rem; font-size: 1.3rem; }
@media (min-width: 62rem) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
  .hero h1 { font-size: clamp(3rem, 5.6vw, 4.75rem); white-space: nowrap; }
  .hero .lead { font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: 20ch; }
  .hero-media { margin-top: 0; }
}
.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; gap: 0.75rem; } }

/* Práce ve dvou sloupcích – větší náhledy */
@media (min-width: 44rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-media .play, .cards .play { width: 3.5rem; height: 3.5rem; }
footer.wrap { margin-top: 6rem; padding-top: 2rem; padding-bottom: 3rem; }
.cards-wide { grid-template-columns: 1fr; }
.cards-wide .thumb { aspect-ratio: 21 / 9; }
