/* Wymiary z projektu Figma „Desktop MAIN” (1440 px): kolumna 927 px, marginesy 20 px */
:root {
  --ink: #424242;
  --muted: rgba(66, 66, 66, .5);
  --placeholder: #dedede;
  --bg: #fff;
  --col: 927px;
  --edge: 20px;
  --gap: 100px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/20px "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.col {
  width: min(var(--col), 100% - 2 * var(--edge));
  margin-inline: auto;
}

/* Nagłówek */
.top {
  position: relative;
  height: 52px;
}
.logo { position: absolute; top: 20px; left: var(--edge); display: block; line-height: 0; }
.brand {
  position: absolute; top: 32px;
  left: max(var(--edge), (100% - var(--col)) / 2);
  font-weight: 500;
}
.ig { position: absolute; top: 32px; right: var(--edge); }

/* Intro i rozwijane „o nas” */
.intro { margin-top: 31px; }
.intro > p, .about-text { max-width: 572px; }

.about {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s cubic-bezier(.4, 0, .2, 1);
}
.about-inner { overflow: hidden; min-height: 0; }
.about-text { margin-top: 45px; }
.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 926 / 581;
  object-fit: cover;
  margin-top: 60px;
  margin-bottom: 21px;
  background: var(--placeholder);
}
.intro.open .about { grid-template-rows: 1fr; }

.toggle {
  margin-top: 20px;
  display: inline-flex;
  gap: 14px;
  background: none;
  border: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
}
.toggle:hover, .toggle:focus-visible { color: var(--ink); }

/* Realizacje */
.work { margin-top: 97px; }
.heading { font: inherit; font-weight: 500; margin-bottom: 41px; }

.film + .film { margin-top: var(--gap); }

.film figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 16px;
}

.video {
  position: relative;
  background: var(--placeholder) center / cover no-repeat;
  overflow: hidden;
}
.wide .video { aspect-ratio: 16 / 9; }
.quad .video, .single .video { aspect-ratio: 9 / 16; }

.quad { padding-inline: var(--edge); }
.quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.single { width: 335px; max-width: calc(100% - 2 * var(--edge)); margin-inline: auto; }

/* Odtwarzacz: miniatura → po kliknięciu YouTube */
.video[data-ready] { cursor: pointer; }
.video[data-ready]::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23424242'/%3E%3C/svg%3E") center / 24px no-repeat;
  transition: transform .2s, background-color .2s;
}
.video[data-ready]:hover::after { transform: scale(1.08); background-color: #fff; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Kontakt */
.contact {
  margin-top: 221px;
  padding-bottom: 237px;
  text-align: center;
}
.contact p + p { margin-top: 20px; }

/* Wąskie ekrany — tymczasowo, do czasu projektu mobilnego */
@media (max-width: 820px) {
  :root { --gap: 64px; }
  .top { height: 84px; }
  .brand { top: 32px; left: 76px; }
  .intro { margin-top: 20px; }
  .work { margin-top: 64px; }
  .heading { margin-bottom: 24px; }
  .quad-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact { margin-top: 120px; padding-bottom: 120px; }
}
