/* Separation Films – styl převzatý ze stávajícího webu (Poppins, tmavě modrá, červený akcent) */
:root {
  --bg: #233142;
  --bg-2: #1c2836;
  --panel: #2b3b4f;
  --secondary: #455D7A;
  --text: #E3E3E3;
  --muted: #A0A9B4;
  --accent: #EB2727;
  --accent-2: #D55353;
  --white: #fff;
  --radius: 4px;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 15px/1.7 "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--white); }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.2em; }
.section h2 { text-align: center; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.sr, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); color: var(--bg); padding: 8px 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .55em 1.5em; border: 1px solid rgba(255,255,255,.85); border-radius: 30px;
  background: transparent; color: var(--white); font: 400 .9rem "Poppins", sans-serif;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); }
.btn svg { width: 16px; height: 16px; }
.link { color: var(--accent-2); font-size: .85rem; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; padding: 22px 0; }
.is-sub .site-header { position: sticky; top: 0; background: rgba(35,49,66,.92); backdrop-filter: blur(8px); padding: 14px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 170px; }
.nav { display: flex; gap: 34px; align-items: center; flex: 1; justify-content: center; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 300; color: var(--white); transition: color .2s; }
.nav a:hover { color: var(--accent); }
.nav .nav-contact { margin-left: auto; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: #111 center/cover no-repeat; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,49,66,.55) 0%, rgba(35,49,66,.35) 45%, var(--bg) 100%); }
.hero-video { position: absolute; top: 50%; left: 50%; width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%); border: 0; pointer-events: none; filter: grayscale(.35); }
.hero-content { position: relative; z-index: 1; padding-top: 80px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18em; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 200; max-width: 40em; margin-bottom: 2em; }

/* sections */
.section { padding: 90px 0; }
.page-top { padding-top: 50px; }
.section-lead { text-align: center; color: var(--muted); font-weight: 300; max-width: 640px; margin: -1em auto 2.5em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-inline: 4%; }
.friend h3 { font-size: 1.1rem; }
.friend p { color: var(--muted); font-size: .9rem; }

/* slider */
.slider { position: relative; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 24px; scroll-behavior: smooth; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; flex: 0 0 auto; }
.slider-btn { position: absolute; top: 40%; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(35,49,66,.7); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.slider-btn:hover { background: var(--accent); border-color: var(--accent); }
.slider-btn.prev { left: -20px; } .slider-btn.next { right: -20px; }

/* directors */
.director-card { width: calc((100% - 72px) / 4); text-decoration: none; text-align: center; }
.director-photo { aspect-ratio: 5/9; overflow: hidden; border-radius: var(--radius); background: var(--panel); margin-bottom: 16px; }
.director-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .5s, filter .5s; }
.director-card:hover .director-photo img { transform: scale(1.04); filter: grayscale(0); }
.director-card h3 { margin-bottom: .3em; }
.director-card h3 span { font-weight: 300; }
.director-card p { font-size: .8rem; color: var(--muted); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--panel); text-decoration: none; }
.card-img, .card-img img { width: 100%; height: 100%; }
.card-img img { object-fit: cover; transition: transform .6s; }
.card-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 16px; background: rgba(35,49,66,.78); opacity: 0; transition: opacity .3s; }
.card-overlay h3 { margin: 0; font-size: 1.1rem; }
.card-overlay span { font-size: .8rem; color: var(--muted); }
.card:hover .card-overlay, .card:focus-visible .card-overlay { opacity: 1; }
.card:hover img { transform: scale(1.05); }
.card.is-hidden { display: none; }
#reference .center { margin-top: 40px; }
/* barevný gradient z původního webu pod referencemi, nahoře a dole se ztrácí do pozadí */
#reference { position: relative; isolation: isolate; }
#reference::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/bg-gradient.jpg") center/cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { background: transparent; border: 1px solid rgba(255,255,255,.25); color: var(--text); border-radius: 30px;
  padding: .35em 1.1em; font: 300 .85rem "Poppins", sans-serif; cursor: pointer; }
.filter:hover { border-color: var(--white); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* awards */
.award { width: 100%; text-align: center; padding: 0 60px; }
.award-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.award-head img { width: 64px; height: 64px; object-fit: contain; }
.award-head div { text-align: left; }
.award-head strong { display: block; font-size: 1.3rem; font-weight: 600; color: var(--white); }
.award-head span { font-size: .8rem; }
.award p { font-size: .85rem; font-style: italic; color: var(--muted); max-width: 620px; margin: 0 auto .6em; }

/* services */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.service { position: relative; isolation: isolate; aspect-ratio: 3/5; overflow: hidden; text-decoration: none; background: var(--panel); }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
/* gradient z původního webu přes 90 % fotky, v každé dlaždici jinak otočený */
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/bg-gradient.jpg") center/cover; opacity: .9; transition: opacity .4s; }
.service:nth-child(5n+2)::before { transform: scaleY(-1); }
.service:nth-child(5n+3)::before { transform: scaleX(-1); }
.service:nth-child(5n+4)::before { transform: scale(-1, -1); }
.service-text { padding: 40px 28px; }
.service-text h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: 700; line-height: 1.15; margin: 0 0 1.4em; }
.service-text p { font-size: .82rem; line-height: 1.75; color: var(--text); margin: 0; }
.service:hover img { transform: scale(1.05); }
.service:hover::before, .service:focus-visible::before { opacity: .8; }
.service-detail { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; margin-bottom: 80px; }
.service-detail img { border-radius: var(--radius); }

/* location + contact */
.map { display: block; }
.map img { width: 100%; height: auto; max-height: 460px; object-fit: cover; object-position: 50% 10%; } /* špendlík je v horní části obrázku, ať ho ořez neusekne */
.contacts { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px 80px; }
.contact { display: flex; gap: 20px; align-items: center; }
.contact img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.contact h3 { margin-bottom: .2em; }
.contact p { font-size: .85rem; color: var(--muted); margin: 0; }
.contact a { text-decoration: none; }
.contact a:hover { color: var(--accent); }

/* project detail */
.ratio { position: relative; aspect-ratio: 16/9; background: #000; }
.ratio iframe, .ratio img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video { margin-bottom: 24px; }
.project-awards { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin: 32px 0; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; width: 130px; font-size: .75rem; color: var(--muted); }
.badge img { width: 90px; height: 90px; object-fit: contain; margin-bottom: 8px; }
.badge strong { display: block; color: var(--white); font-weight: 500; font-size: .9rem; }
.project-head { text-align: center; margin: 40px 0 24px; }
.project-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.meta { color: var(--muted); font-size: .85rem; }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 24px; margin: 0 0 32px; padding: 24px; background: rgba(255,255,255,.03); border-radius: var(--radius); }
.credits div { font-size: .85rem; }
.credits dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.credits dd { margin: 0; color: var(--white); }
.project-text { font-size: .95rem; }
.project-text a { color: var(--accent-2); word-break: break-word; }
.project-directors { color: var(--muted); }
.project-directors a { color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 40px; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.project-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 60px; }

.director-profile { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; margin-bottom: 70px; }
.director-big { border-radius: var(--radius); filter: grayscale(1); }
.nick { font-weight: 300; }

/* footer */
.site-footer { padding: 40px 0 30px; }
.site-footer .wrap { border-top: 1px solid rgba(255,255,255,.15); padding-top: 30px; text-align: center; }
.social { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.copy { font-size: .75rem; color: var(--muted); margin: 0; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: url("../img/bg-gradient.jpg") center/cover, rgba(0,0,0,.9); }
.modal[hidden] { display: none; }
.modal-body { width: min(1100px, 100%); }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: var(--white); font-size: 2.4rem; cursor: pointer; line-height: 1; }
.lightbox img { max-height: 90vh; width: auto; margin: auto; }

/* responsive */
@media (max-width: 1000px) {
  .director-card { width: calc((100% - 48px) / 3); }
  .services { grid-template-columns: repeat(3, 1fr); }
  .service { aspect-ratio: auto; min-height: 340px; }
}
@media (max-width: 760px) {
  #reference::before { background-position: 8% 60%; }
  body { font-size: 14px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: block; position: relative; z-index: 31; }
  .nav { position: fixed; inset: 0; z-index: 30; flex-direction: column; justify-content: center; gap: 28px; background: var(--bg-2);
    opacity: 0; pointer-events: none; transition: opacity .25s; }
  .nav a { font-size: 1.3rem; }
  .nav .nav-contact { margin-left: 0; }
  body.menu-open .nav { opacity: 1; pointer-events: auto; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .logo img { width: 140px; }
  .grid-3 { grid-template-columns: 1fr; gap: 24px; padding: 0; }
  .director-card { width: 72%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-overlay { opacity: 1; background: linear-gradient(0deg, rgba(28,40,54,.9), rgba(28,40,54,0) 70%); justify-content: flex-end; }
  .card-overlay h3 { font-size: .85rem; }
  .card-overlay span { display: none; }
  .services { grid-template-columns: 1fr; gap: 14px; }
  .service { min-height: 0; }
  .service-text { padding: 28px 24px; }
  .service-text h3 { margin-bottom: .8em; }
  .award { padding: 0 44px; }
  .slider-btn.prev { left: 0; } .slider-btn.next { right: 0; }
  .service-detail, .director-profile { grid-template-columns: 1fr; gap: 24px; }
  .service-detail img, .director-big { max-width: 260px; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
