/* =====================================================================
   STRONA-WIZYTÓWKA
   Ciemna, z dużą typografią jak WowTapes, ale bez zbędnych efektów.
   Treść czcionką Karla – tą samą co w portfolio.
   ===================================================================== */

@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeue-Regular.woff2') format('woff2'),
       url('../fonts/BebasNeue-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1b1d1c;
  --bg-2: #232524;
  --text: #f4f2ee;
  --muted: rgba(244,242,238,.65);
  --line: rgba(244,242,238,.14);
  --accent: #ffa858;
  --ink: #1b1d1c;

  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --body: 'Karla', system-ui, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --frame: 8px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.landing {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, p, ul { margin: 0; }

/* ===== PRZYCISKI I LINKI ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font: 600 14px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.btn--light {
  background: rgba(244,242,238,.92);
  color: var(--ink);
}

.btn--light:hover { background: #fff; }

.btn--accent {
  background: var(--accent);
  color: var(--ink);
}

.btn--accent:hover { background: #ffbb7d; }

.btn:focus-visible,
.more-link:focus-visible,
.tile:focus-visible,
.site-nav a:focus-visible,
.lang-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.more-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}

.more-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px calc(var(--frame) + var(--gutter));
  transition: background .3s, padding .3s;
}

/* po zjechaniu z hero – pełne tło, żeby header był zawsze czytelny */
.site-header.is-solid {
  background: rgba(27,29,28,.94);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.site-logo {
  font: 800 15px/1 var(--body);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  opacity: .85;
}

.site-nav a:hover { opacity: 1; color: var(--accent); }

.nav-cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 14px;
}

.lang-toggle {
  background: none;
  border: 0;
  padding: 4px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.lang-toggle .is-active { color: var(--text); }

/* ===== HERO ===== */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  padding: var(--frame);
}

.hero-frame {
  position: relative;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 45%, rgba(0,0,0,.6) 100%);
}

.hero-content {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(24px, 5vw, 48px);
}

.hero-kicker {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: .9;
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 176px);
  line-height: .86;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title span { display: block; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== SEKCJE ===== */
.section {
  padding: clamp(64px, 10vw, 120px) var(--gutter) 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: .9;
  text-transform: uppercase;
}

.section-sub {
  margin-top: 10px;
  color: var(--muted);
  max-width: 560px;
}

/* ===== SHOWREEL ===== */
.reel {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 85vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  object-fit: cover;
}

button.reel { cursor: pointer; }

.reel img,
.reel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.reel-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .25s;
}

.reel-play::after {
  content: '';
  position: absolute;
  left: 33px;
  top: 27px;
  border-style: solid;
  border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent var(--ink);
}

button.reel:hover .reel-play { transform: scale(1.08); }

/* ===== KAFELKI (foto i wideo) ===== */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tiles--wide {
  grid-template-columns: repeat(3, 1fr);
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-2);
  text-decoration: none;
  isolation: isolate;
}

.tiles--wide .tile { aspect-ratio: 16 / 10; }

.tile img,
.tile-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.19,1,.22,1), opacity .4s;
}

.tile:hover img { transform: scale(1.04); }

.tile-preview { opacity: 0; }
.tile-preview.is-playing { opacity: 1; }

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%);
  pointer-events: none;
}

.tile-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.tile-label small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: .8;
}

.tile-play {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
}

.tile-play::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 9px;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #fff;
}

/* ===== PRODUKCJA ===== */
.crew {
  position: relative;
  min-height: min(78vh, 760px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  align-items: flex-end;
}

.crew-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crew-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.7) 100%);
}

.crew-content {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  max-width: 760px;
}

.crew .section-title {
  color: var(--accent);
}

.crew .section-title span { display: block; }

.crew-intro {
  margin-top: 16px;
  font-size: 17px;
  max-width: 520px;
}

.services {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  counter-reset: service;
}

.service {
  padding: 24px 22px 26px;
  border-radius: 6px;
  background: var(--bg-2);
  counter-increment: service;
}

/* numer etapu: 01, 02... */
.service::before {
  content: counter(service, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.service h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: .95;
  text-transform: uppercase;
}

.service p {
  font-size: 14px;
  color: var(--muted);
}

.backstage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.backstage-photo {
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-2);
}

.backstage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.19,1,.22,1);
}

.backstage-photo:hover img { transform: scale(1.04); }

.crew-cta {
  margin-top: 24px;
}

/* ===== KLIENCI – jasny pas, logotypy w oryginalnych kolorach ===== */
.clients {
  margin-top: clamp(64px, 10vw, 120px);
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  background: var(--text);
  color: var(--ink);
  text-align: center;
}

.clients-title {
  margin-bottom: clamp(28px, 4vw, 48px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
}

.logos {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4vw, 44px) clamp(36px, 5vw, 64px);
}

/* jedna wysokość dla wszystkich – logotypy wyglądają na równe */
.logos img {
  display: block;
  height: calc(44px * var(--scale, 1));
  width: auto;
  max-width: calc(160px * var(--scale, 1));
  object-fit: contain;
}

/* białe logotypy: jasność odwrócona, kolory zachowane */
.logos img.is-inverted {
  filter: invert(1) hue-rotate(180deg);
}

/* ===== KONTAKT ===== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  padding-bottom: clamp(64px, 10vw, 120px);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover { color: var(--accent); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  align-content: start;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.field--full,
.contact-form .form-status,
.contact-form .btn {
  grid-column: 1 / -1;
}

.contact-form .field:nth-of-type(3) {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text);
  font: 16px/1.4 var(--body);   /* 16px = brak zoomu na iPhonie */
}

.field select option { background: var(--bg); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea { resize: vertical; min-height: 120px; }

.contact-form .btn {
  justify-self: start;
  padding: 14px 26px;
}

.contact-form .btn:disabled { opacity: .6; cursor: wait; }

/* pole-pułapka na boty – niewidoczne dla ludzi */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { display: none; font-size: 14px; }
.form-status.success { display: block; color: #8fd694; }
.form-status.error   { display: block; color: #ff8a80; }

/* ===== STOPKA ===== */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .tiles,
  .tiles--wide,
  .backstage { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .crew { min-height: 70vh; }
}

@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .logos img { height: calc(34px * var(--scale, 1)); max-width: calc(120px * var(--scale, 1)); }
  .crew-cta .btn { width: 100%; }
}

@media (max-width: 600px) {
  :root { --frame: 6px; }

  .hide-mobile { display: none; }
  .site-nav { gap: 12px; }
  .site-logo { font-size: 13px; }

  .tiles--wide { grid-template-columns: 1fr; }
  .tile-label { font-size: 14px; left: 10px; bottom: 9px; }

  .contact-form { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }

  .hero-actions .btn { padding: 11px 16px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile img, .tile-preview, .backstage-photo img { transition: none; }
  .tile:hover img, .backstage-photo:hover img { transform: none; }
}
