/* ============================================================
   CHIAROSCURO STUDIO — ARKUSZ STYLÓW

   Kolory, czcionki i odstępy całej strony sterowane są zmiennymi
   w bloku ":root" poniżej. Zmiana wartości w jednym miejscu
   aktualizuje wygląd całej strony.
   ============================================================ */

:root {
  --bg:          #09090b;   /* tło strony — jak w logo */
  --bg-soft:     #121215;   /* jaśniejsze panele */
  --text:        #f4f4f5;   /* główny tekst */
  --text-muted:  #a1a1aa;   /* tekst pomocniczy */
  --accent:      #d4d4d8;   /* srebrny akcent z logo */
  --line:        #27272a;   /* cienkie linie */

  --font-brand:   'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1400px;
  --gap: 14px;
}

/* ---------- podstawy ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0 0 3rem;
}

.section-title--left { text-align: left; }


/* ============================================================
   NAWIGACJA
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(9, 9, 11, 0.93);
  backdrop-filter: blur(12px);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  z-index: 101;
}

.nav__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav__name {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--text-muted);
}

.nav__links { display: flex; gap: 2.2rem; }

.nav__links a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.25s, border-color 0.25s;
}

.nav__links a:hover {
  opacity: 1;
  border-bottom-color: var(--accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9,9,11,0.55) 0%,
    rgba(9,9,11,0.25) 40%,
    rgba(9,9,11,0.75) 100%
  );
}

.hero__text {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 92%;
}

.hero__mark {
  width: clamp(66px, 11vw, 104px);
  height: auto;
  margin: 0 auto 1.8rem;
  opacity: 0.95;
}

.hero__text h1 {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: clamp(1.9rem, 7vw, 4.6rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
  /* letter-spacing pushes text right; nudge it back to true centre */
  text-indent: 0.2em;
}

.hero__sub {
  font-size: clamp(0.6rem, 1.6vw, 0.78rem);
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.9rem 0 0;
  text-indent: 0.52em;
}

.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-style: italic;
  color: var(--text-muted);
  margin: 2.2rem 0 0;
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 58px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}

.hero__scroll span {
  display: block;
  width: 100%;
  height: 30%;
  background: var(--text);
  animation: scrollCue 2.2s ease-in-out infinite;
}

@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(340%); }
}


/* ============================================================
   PORTFOLIO — SIATKA ZDJĘĆ
   ============================================================ */

.work {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 3vw, 2rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  /* "dense" wypełnia luki, które zostawiają większe kafelki */
  grid-auto-flow: dense;
  gap: var(--gap);
}

.shot {
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
}

.shot:hover img { transform: scale(1.04); opacity: 0.88; }

.shot--wide { grid-column: span 2; }
.shot--tall { grid-row: span 2; }


/* ============================================================
   O MNIE
   ============================================================ */

.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  border-top: 1px solid var(--line);
}

/* Zdjęcie Karola to wycinek z przezroczystym tłem (PNG), więc nie kadrujemy
   go w prostokąt — sylwetka "stoi" bezpośrednio na ciemnym tle strony. */
.about__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bardzo delikatne rozjaśnienie tła, żeby ciemna koszulka nie zlewała się
   z tłem strony. Ma być ledwo zauważalne — nie "reflektor" za postacią. */
.about__photo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle,
    rgba(228, 228, 231, 0.07) 0%,
    rgba(228, 228, 231, 0.035) 38%,
    transparent 68%);
  /* poświata gaśnie u dołu razem z sylwetką */
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 58%, transparent 92%);
}

.about__photo img {
  position: relative;
  width: 100%;
  max-width: 470px;
  height: auto;
  object-fit: contain;
  /* czarno-biały, tak jak większość zdjęć w portfolio.
     Żeby wrócić do koloru — usuń tę jedną linijkę. */
  filter: grayscale(1) contrast(1.04);
  /* dolna krawędź wycinka rozpływa się w tle, zamiast urywać ostro */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
}

.about__text p {
  color: var(--text-muted);
  margin: 0 0 1.4rem;
  max-width: 58ch;
}

.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  color: var(--text) !important;
  line-height: 1.5;
}

.about__text em { color: var(--accent); font-style: italic; }

.about__sign {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text) !important;
  margin-top: 2rem !important;
}


/* ============================================================
   OFERTA
   ============================================================ */

.offer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: 820px;
  margin: 0 auto;
}

.package {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 2.6rem 2.2rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.package:hover { border-color: var(--accent); transform: translateY(-4px); }

.package--featured { border-color: #3f3f46; }

.package h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.85rem;
  margin: 0 0 0.6rem;
}

.package__price {
  font-family: var(--font-display);
  color: var(--accent);
  letter-spacing: 0.06em;
  font-size: 1.75rem;
  margin: 0 0 1.8rem;
}

.package ul { list-style: none; padding: 0; margin: 0; }

.package li {
  color: var(--text-muted);
  font-size: 0.94rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}


/* ---------- ceny orientacyjne + zaproszenie do kontaktu ---------- */

.quote {
  max-width: 640px;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  text-align: center;
}

.quote__text {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 2rem;
}

.quote__text strong {
  color: var(--text);
  font-weight: 400;
}

.quote__cta {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 1rem 2.4rem;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.quote__cta:hover {
  border-color: var(--accent);
  color: var(--bg);
  background: var(--accent);
}


/* ---------- co zawiera cena ---------- */

.includes {
  max-width: 820px;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  text-align: center;
}

.includes__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 1.6rem;
}

.includes__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.4rem 2rem;
  text-align: left;
}

.includes__list li {
  color: var(--text-muted);
  font-size: 0.94rem;
  padding: 0.55rem 0 0.55rem 1.5rem;
  position: relative;
}

.includes__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}


/* ---------- warunki (rozwijane) ---------- */

.terms {
  max-width: 820px;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.terms summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
}

/* usuwa domyślny trójkącik Safari/Chrome */
.terms summary::-webkit-details-marker { display: none; }

.terms__label {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.terms__hint {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* słowo zmienia się samo, zależnie od tego czy sekcja jest otwarta */
.terms__hint::before { content: "rozwiń"; }
.terms[open] .terms__hint::before { content: "zwiń"; }

.terms__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.terms__list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 0.55rem 0 0.55rem 1.5rem;
  position: relative;
  border-top: 1px solid var(--line);
}

.terms__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--line);
}

.terms__note {
  color: var(--text);
  font-size: 0.9rem;
  font-style: italic;
  padding-bottom: 1.8rem;
  margin: 0;
}


/* ============================================================
   KONTAKT
   ============================================================ */

.contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact__intro {
  color: var(--text-muted);
  max-width: 48ch;
  margin: -1.5rem auto 3rem;
}

.contact__lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.contact__email,
.contact__phone {
  display: inline-block;
  font-family: var(--font-display);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s, color 0.3s;
  word-break: break-word;
}

.contact__email { font-size: clamp(1.05rem, 3.4vw, 2.1rem); }
.contact__phone { font-size: clamp(1.3rem, 4vw, 2.4rem); letter-spacing: 0.06em; }

.contact__email:hover,
.contact__phone:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact__place {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 3rem;
}


/* ============================================================
   STOPKA
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.footer p { margin: 0; }


/* ============================================================
   PODGLĄD ZDJĘĆ
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 8, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox__img { max-width: 90vw; max-height: 86vh; object-fit: contain; }

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.25s;
  line-height: 1;
}

.lightbox button:hover { opacity: 1; }

.lightbox__close { top: 1.2rem; right: 1.6rem; font-size: 2.6rem; }

.lightbox__prev, .lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.4rem;
  padding: 1rem;
}

.lightbox__prev { left: 0.6rem; }
.lightbox__next { right: 0.6rem; }

.lightbox__count {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  margin: 0;
}

body.is-locked { overflow: hidden; }


/* ============================================================
   TABLET (poniżej 900px)
   ============================================================ */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }

  .about { grid-template-columns: 1fr; }
  .about__photo img { max-width: 380px; }

  .nav__links { gap: 1.4rem; }
  .nav__links a { font-size: 0.7rem; letter-spacing: 0.12em; }
}


/* ============================================================
   TELEFON (poniżej 640px)
   ============================================================ */

@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(9, 9, 11, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.05rem; }

  .nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* jedno zdjęcie na wiersz — każde w pełnym rozmiarze */
  .grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .shot--wide { grid-column: span 1; }
  .shot--tall { grid-row: span 1; }

  .includes__list { grid-template-columns: 1fr; }

  .lightbox__prev, .lightbox__next { font-size: 2.4rem; padding: 0.5rem; }
  .lightbox__close { font-size: 2.2rem; top: 0.8rem; right: 1rem; }
}


/* ============================================================
   Szanujemy ustawienie "ogranicz animacje" w systemie
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
