/* ==========================================================================
   Zmienne (kolory) – tu zmienisz wygląd całej strony
   ========================================================================== */
:root {
  --ink: #26282b;
  --ink-2: #34373b;
  --yellow: #f5b800;
  --yellow-hi: #ffd23d;
  --paper: #ece3d3;
  --paper-ink: #26282b;
  --muted: #5d5a52;
  --line: #26282b33;
  --on-dark: #e9e6df;
  --on-dark-muted: #c9c5ba;
  --frame: #ece3d3;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Tryb ciemny – automatyczny (zgodnie z ustawieniem systemu) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d1f21;
    --paper-ink: #efe9dc;
    --muted: #a9a498;
    --line: #efe9dc33;
  }
}

/* Tryb ciemny – wymuszony ręcznie */
:root[data-theme="dark"] {
  --paper: #1d1f21;
  --paper-ink: #efe9dc;
  --muted: #a9a498;
  --line: #efe9dc33;
}


/* ==========================================================================
   Podstawy
   ========================================================================== */
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: Barlow, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: Archivo, Impact, sans-serif;
  margin: 0;
  line-height: 1.02;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  font-weight: 900;
  font-stretch: 80%;
  font-size: clamp(36px, 6vw, 60px);
  text-transform: uppercase;
}

.intro {
  max-width: 46ch;
  color: var(--muted);
  margin: 12px 0 40px;
}


/* ==========================================================================
   Nagłówek (hero)
   ========================================================================== */
.hero {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  padding-top: 28px;
}

.hero::before {
  content: "";
  position: absolute;
  right: -6%;
  top: 0;
  bottom: 0;
  width: 44%;
  background: var(--ink-2);
  transform: skewX(-14deg);
}

/* --- Górny pasek: logo + menu --- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
}

.logo {
  font-family: Archivo, sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: var(--yellow);
  text-decoration: none;
  line-height: 1;
}

.logo small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu a {
  text-decoration: none;
  font-weight: 500;
}

.menu a:not(.callbtn):hover {
  color: var(--yellow);
}

/* --- Przyciski --- */
.callbtn,
.cta {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 4px;
}

.callbtn:hover,
.cta:hover {
  background: var(--yellow-hi);
}

/* --- Siatka: tekst + kolaż --- */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 32px;
  align-items: center;
  padding: 56px 0 84px;
}

.hero h1 {
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(38px, 5.4vw, 72px);
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero h1 span {
  display: block;
  color: var(--on-dark);
}

.lead {
  max-width: 30ch;
  margin: 28px 0 0;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.25;
}

.sub {
  max-width: 46ch;
  margin: 14px 0 28px;
  color: var(--on-dark-muted);
}

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

.cta {
  padding: 15px 28px;
  font-size: 19px;
}

.ghost {
  padding: 13px 24px;
  border: 2px solid var(--on-dark-muted);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
}

.ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.stripe {
  height: 18px;
  background: var(--yellow);
  width: 68%;
  transform: skewX(-30deg);
  margin-left: -3%;
  position: relative;
}


/* ==========================================================================
   Kolaż zdjęć w nagłówku
   ========================================================================== */
.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  aspect-ratio: 1 / 1.12;
}

.f {
  margin: 0;
  border: 6px solid var(--frame);
  background: var(--frame);
  box-shadow: 0 14px 30px #0006;
  overflow: hidden;
}

.f img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f1 {
  grid-column: 6 / 13;
  grid-row: 1 / 8;
  transform: rotate(2deg);
}

.f2 {
  grid-column: 1 / 8;
  grid-row: 4 / 11;
  transform: rotate(-3deg);
  z-index: 1;
}

.f3 {
  grid-column: 7 / 12;
  grid-row: 8 / 13;
  transform: rotate(1.5deg);
  z-index: 2;
  border-color: var(--yellow);
  background: var(--yellow);
}


/* ==========================================================================
   Usługi
   ========================================================================== */
.services {
  padding: 88px 0 72px;
}

.list {
  border-top: 3px solid var(--paper-ink);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.row h3 {
  font-weight: 800;
  font-stretch: 90%;
  font-size: clamp(24px, 3.4vw, 34px);
  display: inline;
  justify-self: start;
  transition: box-shadow 0.2s;
}

.row:hover h3 {
  box-shadow: inset 0 -0.38em 0 var(--yellow);
}

.row p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}


/* ==========================================================================
   Strona „Realizacje"
   ========================================================================== */
.menu a.current {
  color: var(--yellow);
}

.page-title {
  position: relative;
  padding: 56px 0 72px;
}

.page-title .sub {
  margin-bottom: 24px;
}

.ghost {
  display: inline-block;
}

/* --- Galeria --- */
.gallery {
  padding: 72px 0 88px;
}

.shots {
  columns: 3 280px;
  column-gap: 22px;
}

.shots figure {
  margin: 0 0 22px;
  break-inside: avoid;
  background: #f6f0e3;
  padding: 6px;
  border-radius: 2px;
  box-shadow: 0 10px 24px #0003;
}

.shots img {
  width: 100%;
  height: auto;
}

.shots figcaption {
  padding: 10px 6px 6px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

/* --- Żółty pasek z wezwaniem do działania --- */
.band {
  background: var(--yellow);
  color: var(--ink);
  padding: 56px 0;
}

.band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.band h2 {
  font-size: clamp(28px, 4.4vw, 44px);
}

.bandbtn {
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 4px;
}

.bandbtn:hover {
  background: #000;
}


/* ==========================================================================
   Dlaczego my
   ========================================================================== */
.trust {
  background: var(--ink);
  color: var(--on-dark);
  padding: 80px 0;
}

.trust h2 {
  color: var(--yellow);
  margin-bottom: 40px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.cols div {
  border-left: 6px solid var(--yellow);
  padding-left: 20px;
}

.cols h3 {
  font-weight: 800;
  font-stretch: 90%;
  font-size: 28px;
  margin-bottom: 8px;
}

.cols p {
  margin: 0;
  color: var(--on-dark-muted);
}


/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact {
  padding: 88px 0 96px;
}

.zadzwon {
  font-family: Archivo, sans-serif;
  font-weight: 900;
  font-stretch: 80%;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}

.cgrid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
  margin-top: 10px;
}

.phone {
  font-family: Archivo, sans-serif;
  font-weight: 900;
  font-stretch: 80%;
  font-size: clamp(36px, 5.5vw, 64px);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
  justify-self: start;
  margin: 0;
  box-shadow: inset 0 -0.18em 0 var(--yellow);
}

.phone:hover {
  background: var(--yellow);
  color: var(--ink);
}

.details {
  font-style: normal;
  display: grid;
  gap: 14px;
}

.details b {
  display: block;
  font-weight: 600;
}

.details a {
  text-underline-offset: 4px;
}


/* ==========================================================================
   Stopka
   ========================================================================== */
footer {
  background: var(--ink);
  color: #a9a498;
  padding: 24px 0;
  font-size: 15px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}


/* ==========================================================================
   Telefony i tablety
   ========================================================================== */
@media (max-width: 960px) {
  .menu a:not(.callbtn) {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 44px 0 64px;
  }

  .hero::before {
    width: 80%;
    right: -20%;
  }

  .collage {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(30px, 8.4vw, 76px);
  }
}

@media (max-width: 760px) {
  .row,
  .cgrid {
    grid-template-columns: 1fr;
  }

  .cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .shots {
    columns: 2 140px;
    column-gap: 12px;
  }

  .shots figure {
    margin-bottom: 12px;
  }

  .shots figcaption {
    font-size: 14px;
  }

  .band .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   Dostępność i duże ekrany
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

@media (min-width: 1200px) {
  .collage {
    margin-right: -48px;
  }
}
