/* ─────────────────────────────────────────────
   TÉMA · IVORY & BLUSH  — светлая, без чёрного
   ───────────────────────────────────────────── */
:root {
  --bg: #f7f3ec;
  --bg-soft: #efe8dd;
  --card: #fffdf9;
  --ink: #55493d;
  --ink-soft: #8f8172;
  --ink-faint: #b6a996;
  --rose: #d9b9a9;
  --rose-deep: #c39a86;
  --rose-ghost: rgba(217, 185, 169, 0.38);
  --line: rgba(85, 73, 61, 0.14);
  --glass-bg: rgba(255, 253, 249, 0.42);
  --glass-line: rgba(255, 255, 255, 0.65);
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Inter", -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.amp { font-family: var(--serif); font-style: italic; color: var(--rose-deep); }
.ic { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Navigace ─────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(14px + env(safe-area-inset-top)) clamp(20px, 4vw, 56px) 14px;
  transition: background 0.5s var(--ease), box-shadow 0.5s;
}
.nav.is-scrolled {
  background: rgba(247, 243, 236, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.35em;
  font-weight: 400;
}
.nav__link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav__link:hover { color: var(--rose-deep); }

/* ── Hero: текст слева ~60% + видео заполняет правую часть до краёв ── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 42vw, 640px);
  align-items: stretch;
  gap: 0;
}
.hero__text {
  min-width: 0;
  align-self: center;
  padding: calc(80px + env(safe-area-inset-top)) clamp(24px, 5vw, 88px) clamp(32px, 6vh, 64px);
}
.hero__kicker {
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: clamp(14px, 2.5vh, 26px);
}
.hero__names {
  display: inline-flex;
  flex-direction: column;
  font-family: "Bodoni Moda", var(--serif);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.hero__name {
  display: block;
  font-size: clamp(52px, 9.6vw, 164px);
  letter-spacing: 0.1em;
}
.hero__amp {
  align-self: center;
  z-index: 2;
  font-family: var(--script);
  text-transform: none;
  font-size: clamp(46px, 6.6vw, 112px);
  line-height: 0.8;
  color: var(--rose-deep);
  margin: -0.34em 0 -0.3em;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 253, 249, 0.6);
}
.hero__sub {
  margin-top: clamp(20px, 3.5vh, 32px);
  color: var(--ink-soft);
  font-size: clamp(14px, 1.5vw, 16px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3.5vh, 34px);
}
.hero__date {
  margin-top: clamp(26px, 5vh, 48px);
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--ink-faint);
}

.hero__media {
  height: 100svh;
  width: 100%;
  background: var(--bg-soft);
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Tlačítka ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn--fill {
  border: none;
  background: var(--ink);
  color: #fffdf9;
  box-shadow: 0 14px 30px -14px rgba(85, 73, 61, 0.55);
}
.btn--fill:hover { background: var(--rose-deep); }
.btn--line {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.btn--line:hover { border-color: var(--rose-deep); color: var(--rose-deep); }

/* ── Sekce filmů ──────────────────────────── */
.films {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 11vh, 120px) clamp(20px, 4vw, 56px) clamp(56px, 9vh, 100px);
}
.films__intro {
  text-align: center;
  margin-bottom: clamp(40px, 7vh, 72px);
}
.films__script {
  font-family: var(--script);
  font-size: clamp(34px, 4.5vw, 54px);
  color: var(--rose-deep);
  line-height: 1;
  margin-bottom: 2px;
}
.films__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 58px);
  margin-bottom: 16px;
}
.films__note {
  color: var(--ink-soft);
  font-size: clamp(14px, 1.5vw, 15px);
}

/* Vertikální karty 9:16 */
.films__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  /* карточки не растягиваются — видео в ряду выровнены по верхнему краю */
  align-items: start;
}
.card {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 0;
  display: block;
  width: 100%;
}
.card__media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 20px 44px -22px rgba(85, 73, 61, 0.38);
}
.card__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__poster,
.card:focus-visible .card__poster { transform: scale(1.05); }
/* Liquid glass — чип времени (в стиле iOS: без обводки, блик + глубина) */
.card__chip {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.06) 65%),
    rgba(255, 255, 255, 0.12);
  border: none;
  -webkit-backdrop-filter: blur(22px) saturate(1.9);
  backdrop-filter: blur(22px) saturate(1.9);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(96, 78, 60, 0.14),
    inset 2px 0 3px -2px rgba(255, 255, 255, 0.35),
    inset -2px 0 3px -2px rgba(255, 255, 255, 0.35),
    0 8px 20px -8px rgba(85, 73, 61, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
}
.card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Liquid glass — треугольник play */
.card__tri {
  position: relative;
  width: 74px;
  height: 74px;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(85, 73, 61, 0.32));
  transition: transform 0.5s var(--ease);
}
.card:hover .card__tri,
.card:focus-visible .card__tri { transform: scale(1.1); }
.card__tri-glass {
  position: absolute;
  inset: 0;
  clip-path: path("M29.8 18.5 L54.2 32.5 Q62 37 54.2 41.5 L29.8 55.5 Q22 60 22 51 L22 23 Q22 14 29.8 18.5 Z");
  background:
    radial-gradient(120% 85% at 42% 8%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.04) 58%),
    linear-gradient(200deg, rgba(255, 255, 255, 0.1), rgba(96, 78, 60, 0.1) 90%);
  -webkit-backdrop-filter: blur(14px) saturate(1.9) brightness(1.06);
  backdrop-filter: blur(14px) saturate(1.9) brightness(1.06);
}
.card__tri svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.card__tri svg path {
  fill: none;
  stroke: url(#triRim);
  stroke-width: 1.1;
}
.card__body { padding: 14px 6px 0; }
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.15;
}
.card__meta {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.card__dl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.card__dl:hover { border-color: var(--rose-deep); }
.card__dl .ic { width: 14px; height: 14px; }

/* ── Footer ───────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: clamp(44px, 8vh, 72px) 24px calc(40px + env(safe-area-inset-bottom));
}
.footer__script {
  font-family: var(--script);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--rose-deep);
  line-height: 1;
}
.footer__names {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 30px);
  margin-top: 4px;
}
.footer__note {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}
.footer__credit {
  margin-top: 24px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ── Lightbox se skleněným přehrávačem ────── */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(243, 238, 229, 0.82);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(12px, 3vw, 32px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink);
}
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lightbox__frame {
  position: relative;
  height: min(74svh, 820px);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 40px 90px -36px rgba(85, 73, 61, 0.55);
}
.lightbox__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Skleněný ovládací panel */
.glass {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.glass.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.glass {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background:
    radial-gradient(130% 120% at 50% 0%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.04) 60%),
    rgba(255, 255, 255, 0.1);
  border: none;
  -webkit-backdrop-filter: blur(24px) saturate(1.9);
  backdrop-filter: blur(24px) saturate(1.9);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(96, 78, 60, 0.16),
    inset 2px 0 4px -2px rgba(255, 255, 255, 0.35),
    inset -2px 0 4px -2px rgba(255, 255, 255, 0.35),
    0 14px 34px -14px rgba(85, 73, 61, 0.45);
}
.glass__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.glass__btn:hover { background: rgba(255, 253, 249, 0.6); color: var(--rose-deep); }
.glass__btn .ic { width: 18px; height: 18px; }
.glass__time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 34px;
  text-align: center;
}
.glass__track {
  position: relative;
  flex: 1;
  height: 22px;
  cursor: pointer;
}
.glass__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: rgba(85, 73, 61, 0.22);
}
.glass__progress {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  width: 0;
  transform: translateY(-50%);
  border-radius: 2px;
  background: var(--ink);
}
.glass__thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fffdf9;
  border: 1px solid rgba(85, 73, 61, 0.35);
  box-shadow: 0 2px 6px rgba(85, 73, 61, 0.3);
  transform: translate(-50%, -50%);
}

.lightbox__close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 18px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05) 65%),
    rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(96, 78, 60, 0.14),
    0 10px 24px -10px rgba(85, 73, 61, 0.4);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}
.lightbox__close:hover { color: var(--rose-deep); transform: rotate(90deg); }
.lightbox__dl {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rose-deep);
  padding-bottom: 3px;
  transition: color 0.3s;
}
.lightbox__dl:hover { color: var(--rose-deep); }
.lightbox__dl-size { color: var(--ink-faint); letter-spacing: 0.08em; }

/* ── Scroll reveal ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.hero__amp.reveal { transform: scale(0.7); }
.hero__amp.reveal.is-visible { transform: scale(1); }

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

/* ── Mobil ────────────────────────────────── */
@media (max-width: 860px) {
  /* видео шапки — подложка на весь экран, текст поверх */
  .hero {
    position: relative;
    display: block;
    min-height: 100svh;
    text-align: center;
  }
  .hero__media {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 0;
  }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(247, 243, 236, 0.28) 0%,
      rgba(247, 243, 236, 0.14) 30%,
      rgba(247, 243, 236, 0.62) 55%,
      rgba(247, 243, 236, 0.94) 100%
    );
  }
  /* текст прижат к низу кадра */
  .hero__text {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: calc(84px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom));
  }
  .hero__actions { justify-content: center; }
  .hero__date { padding-top: 22px; }
  .films__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card__media { border-radius: 16px; }
  .card__tri { transform: scale(0.76); }
  .card:hover .card__tri { transform: scale(0.76); }
  .card__title { font-size: 19px; }
  .card__dl { font-size: 10px; }
  .lightbox__frame { height: auto; width: 100%; max-width: min(88vw, 46svh); }
  .glass { left: 8px; right: 8px; bottom: 8px; padding: 8px 9px; gap: 5px; }
  .glass__time { min-width: 30px; font-size: 10px; }
}
@media (max-width: 400px) {
  .hero__actions .btn { width: 100%; }
}
