/* Kamil Kurowski Portfolio – styl odwzorowany z Adobe Portfolio */

@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonty/mulish-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonty/mulish-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tlo: #191919;
  --tekst: #888888;
  --jasny: #eeeeee;
  --akcent: #008c78;
  --stopka: #555555;
  --szerokosc: 1598px;
  --kolumna: 800px;
  --margines: clamp(16px, 6vw, 460px);
  --odstep: 30px;
}

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

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

body {
  margin: 0;
  background: var(--tlo);
  color: var(--tekst);
  font-family: "Mulish", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }

.kontener {
  width: min(var(--szerokosc), calc(100% - 2 * var(--margines)));
  margin: 0 auto;
}

/* ---------- nagłówek ---------- */
.naglowek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  min-height: 63px;
  box-sizing: content-box;
}
.logo img { width: 368px; height: auto; }
.menu { display: flex; gap: 24px; }
.menu a {
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--tekst);
  transition: color .2s;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--jasny); }

.przycisk-menu {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
}
.przycisk-menu span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: transform .25s, opacity .25s;
}

main { flex: 1; }

/* ---------- strona główna: siatka projektów ---------- */
.siatka-projektow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 78px;
}
.kafel { position: relative; overflow: hidden; background: #111; }
.kafel img {
  width: 100%;
  aspect-ratio: 1.279;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s;
}
.kafel .podpis {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  background: rgba(25, 25, 25, .55);
  opacity: 0;
  transition: opacity .3s;
}
.kafel:hover .podpis, .kafel:focus-visible .podpis { opacity: 1; }
.kafel:hover img { transform: scale(1.03); }

/* ---------- podstrona projektu ---------- */
.projekt-opis {
  width: min(var(--kolumna), calc(100% - 2 * var(--margines)));
  margin: 172px auto 0;
}
.projekt-opis h1 {
  margin: 0 0 22px;
  color: var(--jasny);
  font-size: 56px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.projekt-opis p { margin: 0 0 28px; }
.projekt-opis p:last-child { margin-bottom: 0; }

.projekt-media {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--odstep);
}
.projekt-media > img,
.projekt-media > video { margin: 0 auto; }
.projekt-media video { width: 100%; background: #000; }

.zestaw { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.rzad { display: flex; gap: 8px; width: 100%; }
.rzad > * { min-width: 0; }
.rzad img, .rzad video { width: 100%; height: auto; }

/* ---------- kontakt ---------- */
.kontakt {
  width: min(var(--kolumna), calc(100% - 2 * var(--margines)));
  margin: 160px auto 0;
}
.kontakt h1 {
  margin: 0 0 32px;
  color: var(--jasny);
  font-size: 56px;
  line-height: 1.15;
  font-weight: 700;
}
.kontakt-wstep { display: flex; gap: 40px; align-items: center; margin-bottom: 48px; }
.kontakt-wstep img { width: 180px; height: 180px; border-radius: 50%; flex: none; }
.kontakt-wstep p { margin: 0 0 16px; }
.kontakt-wstep p:last-child { margin: 0; }
.kontakt-wstep a { color: var(--jasny); border-bottom: 1px solid var(--akcent); }

.formularz { display: grid; gap: 20px; }
.formularz label { display: grid; gap: 8px; font-size: 15px; color: var(--tekst); }
.formularz input,
.formularz textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: var(--jasny);
  background: #222;
  border: 1px solid #333;
  border-radius: 0;
  transition: border-color .2s;
}
.formularz textarea { min-height: 180px; resize: vertical; }
.formularz input:focus,
.formularz textarea:focus { outline: none; border-color: var(--akcent); }
.formularz button {
  justify-self: start;
  padding: 14px 36px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--akcent);
  border: 0;
  cursor: pointer;
  transition: filter .2s;
}
.formularz button:hover { filter: brightness(1.15); }
.formularz button[disabled] { opacity: .6; cursor: default; }
.ukryte { position: absolute; left: -9999px; }
.komunikat { margin: 0; color: var(--jasny); }
.komunikat.blad { color: #e57373; }

/* ---------- 404 ---------- */
.blad-404 { text-align: center; margin-top: 80px; }
.blad-404 img { margin: 0 auto; width: min(700px, 100%); }
.blad-404 a { color: var(--jasny); border-bottom: 1px solid var(--akcent); }

/* ---------- stopka ---------- */
.stopka {
  padding: 165px 0 65px;
  text-align: center;
  font-size: 12px;
  line-height: 1;
  color: var(--stopka);
}

/* ---------- responsywność ---------- */
@media (max-width: 1100px) {
  .logo img { width: 300px; }
  .siatka-projektow { grid-template-columns: repeat(2, 1fr); }
  .projekt-opis h1, .kontakt h1 { font-size: 44px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; line-height: 25px; }
  .naglowek { padding: 45px 0 44px; min-height: 0; }
  .logo img { width: 225px; }
  .przycisk-menu { display: block; position: relative; z-index: 20; }
  .menu {
    position: fixed;
    inset: 0;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    background: rgba(25, 25, 25, .97);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }
  .menu a { font-size: 22px; }
  .menu-otwarte .menu { opacity: 1; visibility: visible; }
  .menu-otwarte .przycisk-menu span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-otwarte .przycisk-menu span:nth-child(2) { opacity: 0; }
  .menu-otwarte .przycisk-menu span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .siatka-projektow { grid-template-columns: 1fr; margin: 0 calc(-1 * var(--margines)); }
  .projekt-opis, .kontakt { margin-top: 56px; }
  .projekt-opis h1, .kontakt h1 { font-size: 34px; margin-bottom: 16px; }
  .projekt-opis p { margin-bottom: 20px; }
  .projekt-media { margin: 40px calc(-1 * var(--margines)) 0; --odstep: 12px; }
  .zestaw, .rzad { gap: 4px; }
  .kontakt-wstep { flex-direction: column; align-items: flex-start; gap: 24px; }
  .kontakt-wstep img { width: 140px; height: 140px; }
  .stopka { padding-top: 80px; padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* nagłówek sekcji między obrazami (plik 05.txt itp.) */
.projekt-media .sekcja {
  width: min(1286px, 100%);
  margin: 40px 0 20px;
  color: #dddddd;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 300;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .projekt-media .sekcja { font-size: 24px; margin: 24px 0 8px; padding: 0 var(--margines); }
}

/* wideo z przyciskiem odtwarzania na kadrze startowym */
.wideo { position: relative; width: 100%; }
.wideo video { display: block; width: 100%; height: auto; }
.odtworz {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.odtworz::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 22px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #191919;
}
.odtworz:hover { transform: scale(1.08); }
.odtworz:focus-visible { outline: 2px solid var(--akcent); outline-offset: 4px; }
.wideo.gra .odtworz { display: none; }
@media (max-width: 700px) {
  .odtworz { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .odtworz::before { left: 21px; top: 16px; border-width: 10px 0 10px 16px; }
}
