/* Stardust originals – web. Barvy a písma podle původního stardustoriginals.eu */

:root {
  --cream: #FFFAEE;
  --brown: #301703;
  --night: #180C02;
  --sand: #ECD5BC;
  --gold: #CEBC95;
  --ink: var(--brown);
  --ink-soft: color-mix(in srgb, var(--brown) 75%, transparent);
  --ink-faint: color-mix(in srgb, var(--brown) 50%, transparent);
  --line: color-mix(in srgb, var(--brown) 18%, transparent);
  --on-dark: var(--cream);
  --on-dark-soft: color-mix(in srgb, var(--cream) 78%, transparent);
  --head-weight: 300;
  --head-bold: 600;
  --head-track: -0.1em;
  --logo-track: -0.14em;
  --danger: #9b2c1a;
  --f-display: "Lexend Mega", system-ui, sans-serif;
  --f-ui: "Unica One", system-ui, sans-serif;
  --f-text: "Lexend", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--cream); padding: 8px 14px; }

/* ---------- Horní lišta a hlavička ---------- */

.topbar { background: var(--night); color: var(--on-dark); font-size: 16px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { text-decoration: none; }
.topbar__mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar__right { display: flex; align-items: center; gap: 6px; }
.topbar__icon { display: grid; place-items: center; width: 30px; height: 30px; opacity: .9; }
.topbar__icon:hover { opacity: 1; }
.topbar__icon svg { width: 16px; height: 16px; }

.langs { display: flex; margin-right: 10px; }
.langs a {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  font-family: var(--f-text); font-size: 13px; color: var(--on-dark-soft);
}
.langs a:hover { color: var(--on-dark); }
.langs a[aria-current="true"] { background: var(--cream); color: var(--brown); }
.flag { display: inline-block; width: 18px; height: 12px; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.flag--cs { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Crect width='6' height='4' fill='%23d7141a'/%3E%3Crect width='6' height='2' fill='%23fff'/%3E%3Cpath d='M0 0l3 2-3 2z' fill='%2311457e'/%3E%3C/svg%3E"); }
.flag--en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E"); }

.header { background: var(--brown); color: var(--on-dark); position: sticky; top: 0; z-index: 40; }
.header__in { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.logo {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-display); font-weight: var(--head-weight);
  font-size: clamp(20px, 2.3vw, 28px); letter-spacing: var(--logo-track);
  text-decoration: none; white-space: nowrap;
}
.logo__tag {
  font-family: var(--f-ui); font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); padding: 1px 8px 2px; line-height: 1.3;
}
.nav { margin-left: auto; display: flex; align-items: center; }
.nav a { text-decoration: none; text-transform: uppercase; font-size: 18px; color: var(--on-dark-soft); padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav a + a::before { content: "·"; display: inline-block; margin: 0 14px; color: var(--on-dark-soft); text-decoration: none; }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--on-dark); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--cream) 35%, transparent);
  padding: 7px 12px; cursor: pointer;
  text-transform: uppercase; font-size: 17px;
  transition: border-color .2s;
}
.cart-btn:hover { border-color: var(--gold); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--gold); color: var(--brown); font-size: 14px; font-weight: 700;
}
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.35); } }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--on-dark); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Tlačítka (posunutý zlatý stín jako na původním webu) ---------- */

.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-ui); font-weight: 700; font-size: 20px; line-height: 1.2;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--brown); background: transparent;
  border: 2px solid var(--brown); padding: 16px 26px; cursor: pointer;
}
.btn::after {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: var(--gold); transform: translate(7px, 7px);
  transition: transform .2s ease;
}
.btn:hover::after, .btn.is-added::after { transform: translate(0, 0); }
.btn:disabled { cursor: progress; opacity: .65; }
.btn--small { font-size: 16px; padding: 8px 14px; }
.btn--small::after { transform: translate(4px, 4px); }
.btn--block { width: 100%; }
.btn--light { border-color: var(--cream); }

/* ---------- Úvodní část (foto + text) ---------- */

.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(76vh, 620px); }
.hero__media { position: relative; background: var(--night); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__text {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 64px var(--gutter);
}
.display {
  font-family: var(--f-display); font-weight: var(--head-weight);
  font-size: clamp(32px, 4.2vw, 54px); letter-spacing: var(--head-track); line-height: 1.18;
  margin: 0; max-width: 15ch;
}
.display__eyebrow {
  display: block; margin-bottom: 14px;
  font-family: var(--f-ui); font-size: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.lead { color: var(--ink-soft); font-size: 19px; margin: 10px 0 30px; }
.intro { color: var(--ink-soft); font-size: 19px; max-width: 760px; margin: -12px 0 36px; }
.intro.center { margin-left: auto; margin-right: auto; }

/* ---------- Sekce ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--sand { background: var(--sand); }
.heading {
  font-family: var(--f-display); font-weight: var(--head-weight);
  font-size: clamp(27px, 3.3vw, 41px); letter-spacing: var(--head-track); line-height: 1.2;
  margin: 0 0 36px;
}
.heading--light { color: var(--cream); }
.center { text-align: center; }
.arrows { font-family: var(--f-ui); font-size: .42em; letter-spacing: -.2em; vertical-align: .35em; margin-right: .5em; }
.eyebrow { margin: 0; font-size: 15px; text-transform: uppercase; color: var(--ink-faint); }
.eyebrow--light { color: var(--gold); letter-spacing: .2em; margin-bottom: 10px; }
.more { margin: 44px 0 0; }

/* Dvě sekce se stejným pozadím za sebou nemají dvojitou mezeru */
.section--cream + .section--cream, .section--sand + .section--sand, .section--dark + .section--dark, .section--black + .section--black { padding-top: 0; }

/* Tmavé pozadí sekce: barvy textu se převrátí */
.section--dark, .section--black, .hero--dark .hero__text {
  background: var(--brown); color: var(--cream);
  --ink: var(--cream);
  --ink-soft: color-mix(in srgb, var(--cream) 78%, transparent);
  --ink-faint: color-mix(in srgb, var(--cream) 55%, transparent);
  --line: color-mix(in srgb, var(--cream) 22%, transparent);
}
.section--black { background: #000; }   /* jen showreel – „kino“, aby u videa nebyly vidět černé pruhy */
.section--dark :focus-visible, .section--black :focus-visible, .hero--dark :focus-visible { outline-color: var(--cream); }
.section--dark .btn { border-color: var(--cream); }
.section--dark .filter.is-active { background: var(--cream); border-color: var(--cream); color: var(--brown); }
.section--dark .member__photo, .section--dark .member__photo .placeholder { background: color-mix(in srgb, var(--cream) 15%, transparent); }

/* Velká fotka s nadpisem – varianty */
.hero--right .hero__media { order: 2; }
.hero--sand .hero__text { background: var(--sand); }

/* Text */
.text-block { max-width: 820px; }
.text-block--center { margin: 0 auto; text-align: center; }
.text-block .heading { margin-bottom: 24px; }
.rich { font-family: var(--f-text); font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.rich p { margin: 0 0 14px; }
.rich p:last-child { margin-bottom: 0; }
.rich strong { font-weight: 500; color: var(--ink); }
.rich a { color: var(--ink); text-underline-offset: 3px; }

/* Fotka s textem */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--right .split__media { order: 2; }
.split__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text .heading { margin-bottom: 20px; }
.split__text .btn { margin-top: 28px; }

/* Fotky */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photos--2 { grid-template-columns: repeat(2, 1fr); }
.photos--4 { grid-template-columns: repeat(4, 1fr); }
.photos__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: color-mix(in srgb, var(--brown) 8%, transparent); cursor: zoom-in; }
.photos__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photos__item:hover img { transform: scale(1.03); }

/* Video */
.video-block { max-width: 980px; margin: 0 auto; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--night); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block__caption { margin-top: 18px; text-align: center; }

/* Výzva s tlačítkem */
.cta { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 860px; }
.cta .heading { margin-bottom: 16px; }
.cta__text { margin-bottom: 30px; }

/* Náhled skryté stránky a stránka nenalezena */
.preview-bar { background: var(--gold); color: var(--brown); text-align: center; font-size: 15px; padding: 6px 16px; }
.not-found { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0; }

/* Tým */
.team { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 40px; max-width: 1000px; }
.member { display: flex; align-items: center; gap: 18px; }
.member__photo { position: relative; flex: none; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--cream); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Fotku jde rozkliknout – otevře se celá ve velkém náhledu */
a.member__photo { cursor: zoom-in; transition: transform .3s ease, box-shadow .3s ease; }
a.member__photo:hover { transform: scale(1.06); box-shadow: 0 0 0 3px var(--gold); }
a.member__photo:focus-visible { outline-offset: 4px; }
.member__photo .placeholder { background: var(--cream); }
.member__photo .placeholder svg { width: 44px; height: 44px; }
.member__name { margin: 0; font-family: var(--f-display); font-weight: var(--head-bold); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.4; }
.member__role { margin: 2px 0 0; color: var(--ink-soft); font-size: 18px; }
.member__links { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 16px; }
.member__links a { color: var(--ink-soft); text-underline-offset: 3px; }

/* Ukázka galerie na úvodní stránce */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.strip__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.strip__item:hover img { transform: scale(1.04); }

/* Pozvánka do půjčovny */
.teaser { display: grid; grid-template-columns: 1fr 1fr; background: var(--night); color: var(--on-dark); min-height: 460px; }
.teaser__text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 64px clamp(24px, 6vw, 88px); }
.teaser__text .heading { margin-bottom: 16px; }
.teaser__lead { color: var(--on-dark-soft); font-size: 20px; margin: 0 0 32px; max-width: 30em; }
.teaser__media { position: relative; background: var(--night); }
.teaser__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teaser--left .teaser__media { order: -1; }

/* ---------- Galerie ---------- */

.gallery-page { min-height: 60vh; }
.masonry { columns: 4 260px; column-gap: 12px; }
.masonry__item { display: block; margin: 0 0 12px; break-inside: avoid; background: color-mix(in srgb, var(--brown) 8%, transparent); overflow: hidden; cursor: zoom-in; }
.masonry__item img { width: 100%; height: auto; transition: transform .6s ease; }
.masonry__item:hover img { transform: scale(1.03); }
.album-info { max-width: 760px; margin: 0 0 32px; }
.album-info__title { margin: 0 0 8px; font-family: var(--f-display); font-weight: var(--head-bold); font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.album-info__title span { font-family: var(--f-ui); font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }
.album-info p { margin: 0 0 16px; font-family: var(--f-text); font-weight: 300; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

.lightbox {
  position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--night) 96%, transparent);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: fade .2s ease;
}
.lightbox__figure { margin: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 0 20px; min-width: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox__figure figcaption { margin-top: 12px; color: var(--on-dark-soft); font-size: 16px; text-align: center; }
.lightbox__btn {
  width: 52px; height: 52px; display: grid; place-items: center; justify-self: center;
  background: transparent; border: 0; color: var(--cream); font-size: 40px; line-height: 1; cursor: pointer; opacity: .8;
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__close { position: absolute; top: 8px; right: 8px; }

/* ---------- Kontakt ---------- */

.contact-page .heading { margin-bottom: 40px; }
.contact-box { max-width: 760px; margin: 0 auto; text-align: center; }
.contact__primary { font-size: 22px; margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact__primary a, .contact__more a { text-decoration: none; }
.contact__primary a:hover, .contact__more a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__more { padding-top: 14px; }
.contact__more p { margin: 0 0 4px; font-size: 19px; }
.contact-form { margin-top: 48px; text-align: left; }
.form-done { margin-top: 48px; text-align: center; }

/* Kontakt na stránce půjčovny */
.contact { text-align: center; }
.contact .heading { margin-bottom: 24px; }
.contact__line { font-size: 22px; margin: 0 0 8px; }
.contact__line a { text-decoration: none; border-bottom: 1px solid var(--ink-faint); }
.contact__line a:hover { border-color: var(--ink); }
.contact .lead { margin: 18px 0 0; }

/* ---------- Půjčovna: postup a katalog ---------- */

.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1080px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brown); color: var(--cream);
  font-family: var(--f-display); font-weight: var(--head-bold); font-size: 14px; letter-spacing: 1px;
}
.step p { margin: 9px 0 0; color: var(--ink-soft); font-size: 19px; line-height: 1.4; }

.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.catalog-head .heading { margin: 0; }
.search { flex: 0 1 300px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="date"], textarea {
  width: 100%; font-family: var(--f-ui); font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  padding: 10px 2px; outline: none; -webkit-appearance: none; appearance: none;
}
input[type="date"] { min-height: 46px; }
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { box-shadow: 0 2px 0 0 var(--ink); }
::placeholder { color: var(--ink-faint); opacity: 1; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter {
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none;
  padding: 7px 14px; cursor: pointer; text-transform: uppercase; font-size: 16px;
  transition: border-color .15s, background .15s, color .15s;
}
.filter span { color: var(--ink-faint); margin-left: 4px; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.filter.is-active span { color: var(--gold); }
.gallery-page .filters { margin-bottom: 32px; }
.note { color: var(--ink-soft); font-size: 16px; margin: 0 0 32px; }
.empty { color: var(--ink-soft); font-size: 19px; padding: 32px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 40px 28px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--brown) 30%, transparent); background: var(--sand); }
.placeholder svg { width: 64px; height: 64px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 16px; }
.card__cat { margin: 0; font-size: 15px; text-transform: uppercase; color: var(--ink-faint); }
.card__title {
  margin: 4px 0 8px; font-family: var(--f-display); font-weight: var(--head-bold);
  font-size: 15px; letter-spacing: 1px; line-height: 1.45; text-transform: uppercase;
}
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card__short { margin: 0 0 16px; color: var(--ink-soft); font-size: 17px; line-height: 1.4; }
.card__foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.price { margin: 0; font-size: 20px; }
.price small { font-size: 15px; color: var(--ink-faint); }

/* ---------- Patička ---------- */

.footer { background: var(--brown); color: var(--on-dark-soft); text-align: center; padding: 36px 0; font-size: 16px; }
.footer__company { margin: 0 0 12px; }
.footer__details { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; }
.footer strong { color: var(--on-dark); font-weight: 400; }

/* ---------- Detail položky ---------- */

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.modal__backdrop, .drawer__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--night) 70%, transparent); animation: fade .2s ease; }
.modal__panel {
  position: relative; width: min(1060px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--cream); box-shadow: 12px 12px 0 var(--gold); animation: rise .25s ease;
}
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer; font-size: 32px; line-height: 1; color: inherit;
}
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--cream); }
.detail { display: grid; grid-template-columns: 1.15fr 1fr; }
.gallery { background: var(--night); display: flex; flex-direction: column; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; flex: 1 0 auto; }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery__main .placeholder { background: var(--sand); }
.gallery--empty { background: var(--sand); }
.gallery--empty .gallery__main { flex: 1; aspect-ratio: auto; min-height: 240px; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--cream) 90%, transparent); color: var(--brown); font-size: 22px;
}
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: none; width: 76px; height: 57px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; }
.gallery__thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail__info { padding: clamp(24px, 4vw, 48px); padding-top: clamp(32px, 4vw, 48px); }
.detail__title {
  margin: 6px 48px 10px 0; font-family: var(--f-display); font-weight: var(--head-weight);
  font-size: clamp(24px, 2.6vw, 34px); letter-spacing: var(--head-track); line-height: 1.2;
}
.detail .price { font-size: 24px; margin-bottom: 18px; }
.prose { font-family: var(--f-text); font-weight: 300; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.prose p { margin: 0 0 12px; }
.includes h3 {
  margin: 22px 0 6px; font-family: var(--f-display); font-weight: var(--head-bold);
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.includes ul { margin: 0; padding: 0; list-style: none; font-family: var(--f-text); font-weight: 300; font-size: 15px; }
.includes li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.includes li::before { content: "—"; margin-right: 10px; color: var(--ink-faint); }
.add-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.stock-note { margin: 10px 0 0; font-size: 15px; color: var(--ink-faint); }

.qty { display: inline-flex; align-items: stretch; height: 52px; border: 2px solid var(--ink); }
.qty button { width: 42px; padding: 0; background: none; border: 0; cursor: pointer; font-size: 22px; }
.qty button:disabled { opacity: .25; cursor: default; }
.qty span { min-width: 30px; display: grid; place-items: center; font-size: 20px; }
.qty--small { height: 32px; border-width: 1px; }
.qty--small button { width: 30px; font-size: 18px; }
.qty--small span { min-width: 24px; font-size: 17px; }

/* ---------- Košík (boční panel) ---------- */

.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--cream); animation: slide .25s ease;
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; background: var(--brown); color: var(--cream); padding: 8px 10px 8px 24px; }
.drawer__head h2 { margin: 0; font-family: var(--f-display); font-weight: var(--head-weight); font-size: 24px; letter-spacing: var(--head-track); }
.drawer__body { flex: 1; overflow: auto; padding: 4px 24px; }
.drawer__foot { padding: 20px 24px 28px; border-top: 1px solid var(--line); }
.drawer__sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.drawer__sum strong { font-size: 22px; font-weight: 400; }
.drawer__sum:has(+ .drawer__sum:not([hidden])) { margin-bottom: 8px; }
.drawer__sum--term { padding-top: 8px; border-top: 1px solid var(--line); }
.drawer__sum[hidden] { display: none; }
.drawer-empty { text-align: center; padding: 56px 0; color: var(--ink-soft); }

.line { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__img { width: 64px; height: 48px; object-fit: cover; background: var(--sand); }
.line__name {
  margin: 0 0 2px; font-family: var(--f-display); font-weight: var(--head-bold);
  font-size: 12px; letter-spacing: .5px; line-height: 1.45; text-transform: uppercase; overflow-wrap: anywhere;
}
.line__price { margin: 0; font-size: 16px; color: var(--ink-soft); }
.line__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line__remove {
  padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--ink-faint); font-size: 14px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px;
}
.line__remove:hover { color: var(--danger); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px);
  background: var(--brown); color: var(--cream); padding: 12px 12px 12px 20px;
  box-shadow: 6px 6px 0 var(--gold); font-size: 18px; animation: toast .25s ease;
}
.toast button {
  flex: none; padding: 6px 10px; background: none; cursor: pointer;
  border: 1px solid var(--gold); color: var(--gold); font-size: 15px; text-transform: uppercase;
}

/* ---------- Formuláře a stránka poptávky ---------- */

.checkout-page .heading { margin-bottom: 44px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.block { border: 0; padding: 0; margin: 0 0 44px; min-width: 0; }
.block__title {
  padding: 0; margin-bottom: 14px; font-family: var(--f-display); font-weight: var(--head-bold);
  font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.lines .line { grid-template-columns: 96px 1fr auto; }
.lines .line__img { width: 96px; height: 72px; }
.lines .line__name { font-size: 13px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { display: block; margin-bottom: 24px; }
.field__label { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--danger); }
.field.is-invalid .field__label { color: var(--danger); }
.hint { margin: -8px 0 0; color: var(--ink-soft); }
.text-link { display: inline-block; margin-top: 16px; font-size: 16px; text-transform: uppercase; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary {
  position: sticky; top: 96px; padding: 28px;
  background: var(--cream); border: 2px solid var(--brown); box-shadow: 10px 10px 0 var(--gold);
}
.summary__title { margin: 0 0 12px; font-family: var(--f-display); font-weight: var(--head-weight); font-size: 26px; letter-spacing: var(--head-track); }
.summary__rows { margin: 0; }
.summary__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary__rows dt { color: var(--ink-soft); }
.summary__rows dd { margin: 0; text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0 6px; }
.summary__total strong { font-size: 28px; font-weight: 400; text-align: right; }
.summary__note, .summary__legal { font-size: 14px; line-height: 1.4; color: var(--ink-soft); margin: 0 0 20px; }
.summary__legal { margin: 18px 0 0; }
.form-error { margin: 0 0 16px; color: var(--danger); font-size: 16px; line-height: 1.4; }

.checkout-empty, .checkout-done { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px 0 40px; }
.checkout-done .lead { max-width: 640px; }
.display-sm { margin: 0; font-family: var(--f-display); font-weight: var(--head-weight); font-size: clamp(32px, 4vw, 48px); letter-spacing: var(--head-track); }

/* ---------- Animace ---------- */

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes slide { from { transform: translateX(100%); } }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobil a tablet ---------- */

@media (max-width: 960px) {
  .hero, .teaser { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { min-height: 42vh; }
  .teaser__media { min-height: 300px; order: -1; }
  .steps { grid-template-columns: 1fr; gap: 20px; max-width: 520px; }
  .checkout { grid-template-columns: 1fr; gap: 16px; }
  .summary { position: static; margin-right: 10px; }
  .detail { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .hero--right .hero__media { order: 0; }
  .split { grid-template-columns: 1fr; }
  .split--right .split__media { order: 0; }
  .photos--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .burger { display: flex; }
  .header__in { gap: 12px; }
  .cart-btn { margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--brown); padding: 4px var(--gutter) 16px;
    border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--cream) 10%, transparent); }
  .nav a + a::before { content: none; }
  .nav a[aria-current="page"] { text-decoration: none; color: var(--gold); }
  .burger { margin-left: auto; }
  .cart-btn:not([hidden]) + .burger { margin-left: 0; }
  .row { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal__panel { max-height: 100%; height: 100%; box-shadow: none; }
  .search { flex-basis: 100%; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .lightbox__btn { width: 44px; font-size: 32px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .topbar__mail { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .topbar__in { gap: 8px; }
  .langs { margin-right: 0; }
  .langs a { padding: 4px 6px; font-size: 0; gap: 0; }
  .langs .flag { width: 20px; height: 13px; }
  .topbar__icon { width: 26px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo__tag { font-size: 11px; padding: 0 5px 1px; }
  .cart-btn { padding: 7px 9px; }
  .cart-btn__label { display: none; }
  .grid { grid-template-columns: 1fr; }
  .lines .line { grid-template-columns: 64px 1fr; }
  .lines .line__img { width: 64px; height: 48px; }
  .lines .line__side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer__details { flex-direction: column; }
  .photos--3, .photos--4 { grid-template-columns: repeat(2, 1fr); }
  .photos { gap: 8px; }
  .masonry { columns: 2; column-gap: 8px; }
  .masonry__item { margin-bottom: 8px; }
  .strip { gap: 8px; }
  .member__photo { width: 72px; height: 72px; }
}

/* =================================================================
   Půjčovna: termín, kategorie, řazení, dostupnost
   ================================================================= */

.datebar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px;
  margin: 0 0 36px; padding: 18px 22px; background: var(--cream);
  border: 2px solid var(--brown); box-shadow: 8px 8px 0 var(--gold);
}
.datebar__label { margin: 0 8px 8px 0; font-family: var(--f-display); font-weight: var(--head-bold); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.datebar__field { display: flex; flex-direction: column; min-width: 150px; }
.datebar__field span { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.datebar__info { flex: 1 1 200px; margin: 0 0 9px; color: var(--ink-soft); font-size: 17px; }
.datebar__clear {
  margin-bottom: 9px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--ink-soft); font-size: 15px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px;
}

.catalog { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.catnav { position: sticky; top: 96px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.catnav__btn {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%;
  padding: 10px 2px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left;
  color: var(--ink-soft); font-size: 17px; text-transform: uppercase; transition: padding .15s, color .15s;
}
.catnav__btn span { color: var(--ink-faint); font-size: 14px; }
.catnav__btn:hover { color: var(--ink); }
.catnav__btn.is-active { color: var(--ink); padding-left: 12px; box-shadow: inset 3px 0 0 var(--gold); }
.catnav__subs { display: none; flex-direction: column; padding-left: 14px; }
.catnav__group.is-open .catnav__subs { display: flex; }
.catnav__btn--sub { padding: 7px 2px; font-size: 15px; }

.catalog__bar { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 28px; }
.catalog__notes .note { margin: 0 0 4px; }
.note--accent { color: var(--ink); }
.catalog__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 16px; text-transform: uppercase; }
.check input { width: 18px; height: 18px; accent-color: var(--brown); }
.check:has(input:disabled) { opacity: .45; cursor: default; }
.sortbox { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; text-transform: uppercase; }
.sortbox select {
  padding: 4px 2px; background: transparent; border: 0; border-bottom: 2px solid var(--ink); cursor: pointer;
  font-family: var(--f-ui); font-size: 16px; color: var(--ink);
}

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; padding: 2px 9px;
  background: var(--brown); color: var(--cream); font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
}
.badge--sale { background: var(--gold); color: var(--brown); }
.badge--tip { background: var(--cream); color: var(--brown); border: 1px solid var(--brown); }
.badge--inline { position: static; display: inline-block; margin: 8px 0 0; }
.price__old { margin-right: 4px; color: var(--ink-faint); font-size: .8em; }
.price__vat { margin: -12px 0 18px; color: var(--ink-soft); font-size: 16px; }
.avail { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; color: var(--ink-soft); font-size: 15px; }
.avail::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #4f7d3a; }
.avail.is-low::before { background: #c08a1e; }
.avail.is-out { color: var(--danger); }
.avail.is-out::before { background: var(--danger); }
.avail:empty { display: none; }
.avail--detail { margin: 16px 0 0; }
.card.is-out .card__media img { opacity: .6; filter: grayscale(.8); }

/* Detail: drobečková navigace, parametry, kalendář, související */
.crumbs { margin: 0; color: var(--ink-faint); font-size: 15px; text-transform: uppercase; }
.specs h3, .cal h3 {
  margin: 22px 0 6px; font-family: var(--f-display); font-weight: var(--head-bold);
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.specs table { width: 100%; border-collapse: collapse; font-family: var(--f-text); font-size: 15px; }
.specs th, .specs td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 45%; padding-right: 12px; font-weight: 400; color: var(--ink-soft); }
.specs td { font-weight: 300; }

.cal { margin-top: 26px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__title { margin: 0; font-size: 17px; text-transform: uppercase; }
.cal__nav { width: 34px; height: 34px; background: none; border: 1px solid var(--line); cursor: pointer; font-size: 20px; color: var(--ink); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal__wd { padding-bottom: 2px; text-align: center; color: var(--ink-faint); font-size: 13px; text-transform: uppercase; }
.cal__day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1; min-height: 34px; padding: 0; border: 1px solid transparent; cursor: pointer;
  background: none; font-family: var(--f-ui); color: var(--ink);
}
.cal__num { font-size: 15px; line-height: 1; }
.cal__free { font-size: 11px; line-height: 1.1; opacity: .75; }
.cal__day.is-free { background: rgba(79, 125, 58, .14); }
.cal__day.is-partial { background: rgba(192, 138, 30, .22); }
.cal__day.is-busy { background: rgba(155, 44, 26, .14); color: var(--danger); }
.cal__day.is-past { opacity: .4; cursor: default; color: var(--ink-faint); }
.cal__day.is-sel { border-color: var(--brown); }
.cal__day.is-start, .cal__day.is-end { background: var(--brown); color: var(--cream); }
.cal__day:hover:not(:disabled) { border-color: var(--ink); }
.cal__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }
.cal__legend span { display: inline-block; width: 12px; height: 12px; margin-right: -8px; }
.cal__legend .is-free { background: rgba(79, 125, 58, .4); }
.cal__legend .is-partial { background: rgba(192, 138, 30, .5); }
.cal__legend .is-busy { background: rgba(155, 44, 26, .4); }
.cal__hint { margin: 4px 0 0; color: var(--ink-faint); font-size: 14px; }

.related { padding: clamp(24px, 4vw, 40px); border-top: 1px solid var(--line); }
.related__title {
  margin: 0 0 18px; font-family: var(--f-display); font-weight: var(--head-bold);
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.related__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.related__item { display: flex; flex-direction: column; gap: 6px; }
.related__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.related__media img { width: 100%; height: 100%; object-fit: cover; }
.related__name {
  font-family: var(--f-display); font-weight: var(--head-bold); font-size: 12px; letter-spacing: .5px;
  line-height: 1.4; text-transform: uppercase; text-decoration: none;
}
.related__price { margin: 0; color: var(--ink-soft); font-size: 15px; }
.related__item .btn { align-self: flex-start; }

/* Košík: upozornění na nedostupnost */
.line.is-short .line__name { color: var(--danger); }
.line__warn { margin: 2px 0 0; color: var(--danger); font-size: 14px; }
.summary__vat { margin: 0 0 14px; text-align: right; color: var(--ink-soft); font-size: 15px; }

/* =================================================================
   Otázky a odpovědi, výhody
   ================================================================= */

.faq { max-width: 860px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; cursor: pointer; list-style: none; font-size: 20px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--ink-soft); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item .rich { padding: 0 2px 18px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.feature { padding-top: 16px; border-top: 2px solid var(--ink); }
.feature__num { color: var(--gold); font-family: var(--f-display); font-weight: var(--head-bold); font-size: 13px; letter-spacing: 1px; }
.section--sand .feature__num, .section--cream .feature__num { color: var(--ink-faint); }
.feature__title {
  margin: 8px 0 6px; font-family: var(--f-display); font-weight: var(--head-bold);
  font-size: 15px; letter-spacing: 1px; line-height: 1.4; text-transform: uppercase;
}
.feature p { margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.4; }

/* =================================================================
   Showreel – filmový pás
   ================================================================= */

.showreel { overflow: hidden; }
.reel { --reel-join: 34; max-width: 1180px; margin: 0 auto; }
.reel__view { position: relative; }
.reel__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.reel__stage::before {   /* světlo promítačky */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--cream) 10%, transparent), transparent 70%);
}
/* Filmový pás se k okrajům plátna ztrácí do tmy (místo ostrého useknutí) */
.reel__frames, .reel__strip {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.reel__frames {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2.5%;
  transition: gap .6s cubic-bezier(.65, 0, .25, 1), opacity .2s;
}
.reel__frame {
  position: relative; flex: 0 0 29%; display: block; padding: 3.4% 0; margin: 0;
  background: #0c0805; border: 0; color: inherit; font: inherit;
  transition: flex-basis .6s cubic-bezier(.65, 0, .25, 1), opacity .4s;
}
.reel__frame--center { flex-basis: 40%; cursor: pointer; }
.reel__frame--left, .reel__frame--right { opacity: .75; }
/* Perforace filmu nahoře a dole */
.reel__frame::before, .reel__frame::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3%; min-height: 5px;
  background: repeating-linear-gradient(90deg, transparent 0 9px, color-mix(in srgb, var(--cream) 80%, transparent) 9px 20px, transparent 20px 29px);
}
.reel__frame::before { top: 1.2%; }
.reel__frame::after { bottom: 1.2%; }
.reel__pic { position: relative; display: block; }
.reel__pic img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.reel__pic .reel__alt { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .45s ease; }
.reel__play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: color-mix(in srgb, var(--cream) 90%, transparent); box-shadow: 4px 4px 0 var(--gold);
  transition: transform .25s, opacity .25s;
}
.reel__play::after {
  content: ""; position: absolute; left: 26px; top: 20px;
  border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--brown);
}
.reel__frame--center:hover .reel__play, .reel__frame--center:focus-visible .reel__play { transform: scale(1.08); }

/* 1) Najetí: boční snímky se promění na snímek před a za prostředním */
.reel.is-sync .reel__alt { opacity: 1; }
.reel.is-sync .reel__frame--left, .reel.is-sync .reel__frame--right { opacity: 1; }
.reel.is-sync .reel__play { opacity: 0; transform: scale(.6); }
/* 2) Snímky se spojí do souvislého pásu */
.reel.is-joined .reel__frames { gap: 0; }
.reel.is-joined .reel__frame { flex-basis: calc(var(--reel-join) * 1%); }
/* Tenká čára mezi políčky jako na skutečném filmu */
.reel.is-joined .reel__pic::after, .reel__track .reel__pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 2px 0 0 #0c0805, inset -2px 0 0 #0c0805;
}
/* 3) Pás se rozběhne jako v promítačce */
.reel__strip { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; pointer-events: none; }
.reel__track { display: flex; flex: none; filter: blur(var(--blur, 0px)); will-change: transform; }
.reel .reel__track .reel__frame { flex: none; opacity: 1; transition: none; } /* šířku a okraje nastaví skript v px */
.reel.is-running .reel__frames { opacity: 0; transition: none; }
.reel.is-running .reel__strip { opacity: 1; }
.reel.is-running .reel__stage::after {
  /* blikání promítačky – kruhové, aby na černém pozadí nebyl vidět obdélník plátna */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .04;
  background: radial-gradient(ellipse at center, #fff 0%, rgba(255, 255, 255, .4) 45%, rgba(255, 255, 255, 0) 72%);
  animation: reel-flicker .12s steps(1) infinite;
}
@keyframes reel-flicker { 0%, 100% { opacity: .02; } 50% { opacity: .08; } }
/* 4) Záblesk promítačky (přesahuje přes okraj plátna) a plynulý přechod do filmu */
/* Velký měkký ovál světla, přesahuje přes okraje plátna */
.reel__flash {
  position: absolute; inset: -38% -26%; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    color-mix(in srgb, var(--cream) 55%, #fff) 0%, color-mix(in srgb, var(--cream) 85%, #fff) 30%,
    color-mix(in srgb, var(--cream) 60%, transparent) 56%, color-mix(in srgb, var(--cream) 0%, transparent) 82%);
  transform: scale(.5);
  will-change: opacity, transform;
}
.reel.is-flash .reel__flash { animation: reel-flash 1.5s cubic-bezier(.33, 0, .2, 1) forwards; }
@keyframes reel-flash {
  0% { opacity: 0; transform: scale(.5); }
  28% { opacity: .95; transform: scale(1); }
  46% { opacity: .95; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.3); }
}
.reel__screen { position: absolute; inset: 0; z-index: 1; background: #000; animation: reel-screen-in 1.1s ease-out both; }
/* Film se vynoří z oválu světla – od středu k okrajům, takže pod zábleskem nejsou vidět rohy videa */
.reel__screen video {
  display: block; width: 100%; height: 100%; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side, #000 40%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 380% 380%; mask-size: 380% 380%;
  /* rozevírá se pomalu, dokud záblesk svítí; rohy se ukážou až po jeho odeznění */
  animation: reel-lamp 1.8s ease-out both, reel-iris 1.6s ease-in-out both;
}
.reel__screen.is-lit video { -webkit-mask-image: none; mask-image: none; }  /* po vynoření už maska není potřeba */
/* Ovládání se ukáže až po vynoření filmu */
.reel__screen.is-intro .reel__controls, .reel__screen.is-intro .reel__bar { opacity: 0; pointer-events: none; }
@keyframes reel-screen-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes reel-iris {
  from { -webkit-mask-size: 30% 30%; mask-size: 30% 30%; }
  to { -webkit-mask-size: 380% 380%; mask-size: 380% 380%; }
}
/* Obraz se „rozsvítí“ jako lampa promítačky – z přepáleného do normálu */
@keyframes reel-lamp { from { filter: brightness(1.9) saturate(.5) contrast(.85); } to { filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .reel__screen video { animation: none; -webkit-mask-image: none; mask-image: none; }
}
.reel__controls { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.reel__ctl {
  padding: 6px 12px; cursor: pointer; color: var(--cream); font-family: var(--f-ui); font-size: 15px; text-transform: uppercase;
  background: color-mix(in srgb, var(--night) 70%, transparent); border: 1px solid color-mix(in srgb, var(--cream) 50%, transparent);
}
.reel__ctl--close { padding: 2px 10px; font-size: 22px; line-height: 1; }
.reel__controls, .reel__bar { z-index: 2; transition: opacity .35s ease; }
/* Přehrávač */
.reel__bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px;
  padding: 28px 14px 10px; color: var(--cream);
  background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
}
.reel__btn {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: pointer;
  color: var(--cream); background: transparent; border: 0; border-radius: 50%; transition: background .2s, color .2s;
}
.reel__btn svg { width: 24px; height: 24px; fill: currentColor; }
.reel__btn:hover { background: rgba(255, 250, 238, .14); color: #fff; }
.reel__time { flex: none; min-width: 92px; padding: 0 6px; font-family: var(--f-ui); font-size: 15px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.reel__seek { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.reel__seek::before, .reel__seek-buf, .reel__seek-fill {
  content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; transition: height .15s, margin .15s;
}
.reel__seek::before { right: 0; background: rgba(255, 250, 238, .22); }
.reel__seek-buf { width: 0; background: rgba(255, 250, 238, .38); }
.reel__seek-fill { width: 0; background: var(--gold); }
.reel__seek-fill::after {   /* jezdec */
  content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--cream); box-shadow: 0 0 0 3px rgba(0, 0, 0, .25); transform: scale(0); transition: transform .15s;
}
.reel__seek:hover::before, .reel__seek:hover .reel__seek-buf, .reel__seek:hover .reel__seek-fill,
.reel__seek.is-active::before, .reel__seek.is-active .reel__seek-buf, .reel__seek.is-active .reel__seek-fill,
.reel__seek:focus-visible::before, .reel__seek:focus-visible .reel__seek-fill { height: 6px; margin-top: -3px; }
.reel__seek:hover .reel__seek-fill::after, .reel__seek.is-active .reel__seek-fill::after, .reel__seek:focus-visible .reel__seek-fill::after { transform: scale(1); }
.reel__seek:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
/* Bez pohybu myši se ovládání schová, při pauze je vidět vždy */
.reel__screen.is-idle { cursor: none; }
.reel__screen.is-idle .reel__bar, .reel__screen.is-idle .reel__controls { opacity: 0; pointer-events: none; }
.reel__screen video { cursor: pointer; }
.reel__screen:focus { outline: none; }
.reel__screen.is-idle video { cursor: none; }
/* Celá obrazovka */
.reel__screen:fullscreen { background: #000; }
.reel__screen:fullscreen .reel__bar { padding: 40px 28px 22px; }
.reel.is-playing .reel__frames { visibility: hidden; }
.reel__title { margin: 18px 0 0; text-align: center; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.reel__title span { margin-left: 6px; color: var(--ink-faint); }
.reel__dots { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.reel__dot {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; border: 2px solid var(--ink-soft); transition: background .2s, transform .2s;
}
.reel__dot:hover { transform: scale(1.2); }
.reel__dot.is-active { background: var(--gold); border-color: var(--gold); }

@media (max-width: 960px) {
  .catalog { grid-template-columns: 1fr; gap: 20px; }
  .catnav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; border-top: 0; }
  .catnav__group { display: contents; }
  .catnav__btn { width: auto; padding: 7px 12px; border: 1px solid var(--line); font-size: 16px; }
  .catnav__btn.is-active { padding-left: 12px; background: var(--brown); border-color: var(--brown); color: var(--cream); box-shadow: none; }
  .catnav__btn.is-active span { color: var(--gold); }
  .catnav__subs, .catnav__group.is-open .catnav__subs { display: contents; }
  .catnav__btn--sub { display: none; font-size: 14px; border-style: dashed; }
  .catnav__group.is-open .catnav__btn--sub { display: flex; }
}

@media (max-width: 560px) {
  .datebar { padding: 14px 16px; }
  .datebar__label { flex-basis: 100%; margin-bottom: 0; }
  .datebar__field { flex: 1 1 120px; min-width: 0; }
  .datebar__field input { min-width: 0; width: 100%; }
  .reel { --reel-join: 40; }
  .reel__stage { aspect-ratio: 16 / 10; }
  .reel__frame { flex-basis: 30%; }
  .reel__frame--center { flex-basis: 44%; }
  .reel__play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .reel__bar { gap: 2px; padding: 18px 6px 4px; }
  .reel__btn { width: 34px; height: 34px; }
  .reel__btn svg { width: 21px; height: 21px; }
  .reel__time { min-width: 0; font-size: 13px; padding: 0 4px; }
  .reel__ctl { padding: 4px 8px; font-size: 13px; }
  .reel__play::after { left: 18px; top: 14px; border-width: 9px 0 9px 14px; }
}
