/* Fotografie z Ukrajiny – hlavní styl */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5d6470;
  --line: #e4e0d6;
  --blue: #0057b7;
  --blue-dark: #00408a;
  --yellow: #ffd700;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c; --surface: #1d2128; --text: #e8e6e1; --muted: #a2a8b3;
    --line: #2d323b; --blue: #5aa2ff; --blue-dark: #8bbcff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 900px; }
.section { padding: 40px 20px 56px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0 0 1.5em; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 .75em; }
.crumbs a { color: inherit; }

.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.flag { width: 28px; height: 20px; border-radius: 3px; background: linear-gradient(var(--blue) 50%, var(--yellow) 50%); box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; }
nav a:hover { background: var(--bg); }
nav a[aria-current="page"] { background: var(--blue); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: block; font: inherit; font-size: .95rem; padding: 8px 14px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
  }
  nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: 8px 12px 16px; }
  nav a { padding: 12px; }
}

/* Hero */
.hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 80%); }
.hero-text { position: relative; z-index: 1; padding-bottom: 56px; width: 100%; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .15em; font-size: .85rem; font-weight: 600;
  margin: 0 0 .8em; padding: 5px 12px; border-radius: 6px;
  color: #e6c84d; background: rgba(0,0,0,.35); border: 1px solid rgba(230,190,40,.55);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: .3em; }
.hero .lead { color: #fff; }
.hero .btn { text-shadow: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--yellow); color: #1f2328; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.15); color: #1f2328; }
.btn-ghost { background: transparent; color: var(--blue); border: 1.5px solid currentColor; }
.btn-ghost:hover { color: var(--blue-dark); }
.back { margin-top: 32px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); color: var(--text); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 16px 32px rgba(0,0,0,.12); }
.card img, .video-cover { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 20px; }
.card-body p { margin: 0 0 .6em; color: var(--muted); font-size: .95rem; }
.meta { font-size: .85rem; font-weight: 600; color: var(--blue); }
.video-cover { background: linear-gradient(135deg, var(--blue) 0 50%, #ffcc00 50% 100%); display: grid; place-items: center; }
.play { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.92); position: relative; }
.play::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 22px solid #1f2328; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tile { display: block; border-radius: 10px; overflow: hidden; background: var(--line); }
.tile img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .3s, opacity .3s; }
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,12,16,.94);
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox .lb-caption { color: #ddd; margin-top: 12px; font-size: .95rem; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 26px; line-height: 1; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.video { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.video h2 { font-size: 1.2rem; }
.video video { width: 100%; border-radius: 8px; background: #000; }
@media (max-width: 420px) { .videos { grid-template-columns: 1fr; } }

.code-form { margin-top: 40px; background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); max-width: 520px; }
.code-form label { display: block; font-weight: 600; margin-bottom: 10px; }
.code-row { display: flex; gap: 10px; flex-wrap: wrap; }
.code-row input { flex: 1; min-width: 160px; font: inherit; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); }
.code-row input:focus { outline: none; border-color: var(--blue); }
.downloads { list-style: none; padding: 0; display: grid; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }
.footer-inner p { margin: 0; }
.site-footer strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
