/* ==========================================================
   Mikołaj Kleta designer – style strony
   Kolory i czcionki wzięte z poglądu (folder poglad/).
   ========================================================== */

:root {
  /* Kolory */
  --forest-950: #0B1F17; /* tło strony */
  --forest-900: #11291F; /* panele, karty */
  --forest-800: #1B3B2E; /* obramowania */
  --forest-700: #2D5A4C; /* ciemny akcent */
  --sage:       #8FA89B; /* przyciski główne */
  --sage-light: #C5D4CC; /* tekst akapitów */
  --cream:      #E0E6E1; /* nagłówki, główny tekst */
  --gold:       #D4AF37; /* drobne akcenty */

  /* Czcionki */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Wymiary */
  --max: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --radius: 16px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--forest-950);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sage); color: var(--forest-950); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--cream);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.4rem; }
h1 em { font-style: italic; color: var(--sage); font-weight: 400; }
p { margin: 0 0 16px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 96px 0; }
.section--alt {
  background: rgba(17, 41, 31, 0.4);
  border-block: 1px solid rgba(27, 59, 46, 0.6);
}

.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head h2 { margin-bottom: 0; }

/* Złota etykieta nad nagłówkiem sekcji */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.lead, .muted {
  color: var(--sage-light);
  font-weight: 300;
}
.lead { font-size: 1.15rem; max-width: 36em; }

/* Miejsca do uzupełnienia – złota przerywana ramka (usuniemy, gdy będą treści) */
.todo {
  outline: 1px dashed rgba(212, 175, 55, 0.6);
  outline-offset: 4px;
  color: var(--gold);
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.btn--primary { background: var(--sage); color: var(--forest-950); }
.btn--primary:hover { background: var(--gold); }
.btn--ghost { border-color: var(--forest-700); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--sage); }
.btn--block { width: 100%; border-radius: var(--radius-sm); padding: 16px; }

.pill {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 14px;
  border: 1px solid var(--forest-700);
  border-radius: 999px;
  background: var(--forest-800);
  color: var(--sage-light);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- Menu ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 31, 23, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--forest-800);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.brand__logo {
  width: auto;
  height: 40px;
}
.brand__sub {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--sage);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a {
  color: var(--sage-light);
  text-decoration: none;
  transition: color .3s;
}
.nav a:hover { color: var(--gold); }
.nav .nav__cta {
  padding: 10px 20px;
  border: 1px solid var(--sage);
  border-radius: 999px;
  color: var(--cream);
}
.nav .nav__cta:hover { background: var(--forest-700); border-color: var(--gold); color: var(--cream); }

.menu-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--cream);
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menu na telefonie */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: var(--forest-900);
    border-bottom: 1px solid var(--forest-800);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.1rem; }
  .nav .nav__cta {
    margin-top: 8px;
    text-align: center;
    border: 0;
    background: var(--forest-700);
  }
}

/* ---------- Start ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
}
.hero__glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__glow--1 { top: 20%; left: 5%; background: rgba(27, 59, 46, 0.5); }
.hero__glow--2 { bottom: 5%; right: 5%; background: rgba(143, 168, 155, 0.12); }

.hero__grid {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }

.hero__media { display: flex; justify-content: center; }
.hero__frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--forest-700);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 23, 0.85), transparent 55%);
  pointer-events: none;
}
.hero__note {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--forest-800);
  border-radius: var(--radius-sm);
  background: rgba(11, 31, 23, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__note p { margin: 0; }
.hero__note-label {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__note-text { font-size: 0.9rem; font-weight: 500; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__frame { max-width: 380px; }
}

/* ---------- Portfolio ---------- */
.filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--forest-800);
  border-radius: 999px;
  background: var(--forest-900);
}
.filter {
  padding: 8px 22px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--sage-light);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.filter:hover { color: var(--cream); }
.filter.is-active { background: var(--sage); color: var(--forest-950); }

.subfilters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 24px;
}
.subfilters[hidden] { display: none; }
.subfilter {
  padding: 6px 16px;
  border: 1px solid var(--forest-800);
  border-radius: 999px;
  background: none;
  color: var(--sage-light);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.subfilter:hover { border-color: var(--sage); color: var(--cream); }
.subfilter.is-active { border-color: var(--gold); color: var(--gold); }

/* Układ „cegiełek”: prace zachowują swoje proporcje (pion, poziom, relacje 9:16) */
.works {
  columns: 3 280px;
  column-gap: 24px;
  margin-top: 24px;
}
.work {
  display: block;
  margin: 0 0 24px;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid var(--forest-800);
  border-radius: var(--radius);
  background: var(--forest-900);
  transition: border-color .4s;
}
.work:hover { border-color: var(--sage); }
.work[hidden] { display: none; }
.work__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}
.work__open img {
  width: 100%;
  height: auto;
  transition: transform .5s;
}
.work:hover .work__open img { transform: scale(1.05); }
/* Znaczek „folder” z liczbą zdjęć w projekcie */
.work__count {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--forest-700);
  border-radius: 999px;
  background: rgba(11, 31, 23, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
}
.work figcaption { padding: 16px 20px 20px; }
.work__tag {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.work__title {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

/* „Wszystkie”: równa siatka – każda okładka przycięta do 4:5 */
.works--even {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.works--even .work { margin: 0; }
.works--even .work__open { aspect-ratio: 4 / 5; }
.works--even .work__open img { height: 100%; object-fit: cover; }
/* Szerokie okładki (data-fit="contain"): całe zdjęcie + rozmyte tło z tego samego zdjęcia */
.works--even .work[data-fit="contain"] .work__open::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: var(--cover) center / cover;
  filter: blur(22px) brightness(0.55);
}
.works--even .work[data-fit="contain"] .work__open img {
  position: relative;
  object-fit: contain;
}

.works__more { text-align: center; margin-top: 8px; }

@media (max-width: 640px) {
  .subfilters { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .filter { padding: 8px 14px; }
}

/* ---------- Oferta ---------- */
.offer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.offer__card {
  padding: 32px;
  border: 1px solid var(--forest-800);
  border-radius: var(--radius);
  background: var(--forest-900);
}
.offer__card--soon { border-style: dashed; }
.offer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.offer__list li {
  position: relative;
  padding: 14px 0 14px 20px;
  border-top: 1px solid var(--forest-800);
  color: var(--sage-light);
  font-weight: 300;
  font-size: 0.95rem;
}
.offer__list li:first-child { border-top: 0; }
.offer__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.offer__list strong {
  display: block;
  color: var(--cream);
  font-weight: 600;
}
.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.offer__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
  padding: 28px 32px;
  border: 1px solid var(--forest-700);
  border-radius: var(--radius);
}
.offer__note p { margin: 0; max-width: 40em; color: var(--sage-light); }

@media (max-width: 960px) {
  .offer { grid-template-columns: 1fr; }
}

/* ---------- O mnie ---------- */
.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.about__media img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--forest-700);
  border-radius: var(--radius);
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: 2; }
}

/* ---------- Zaufali mi ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 12px;
  border: 1px solid var(--forest-800);
  border-radius: var(--radius);
  background: var(--forest-900);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity .3s, border-color .3s;
}
.clients__item:hover { opacity: 1; border-color: var(--sage); }
.clients__item img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
@media (max-width: 1100px) {
  .clients { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .clients { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
}
.contact__list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--forest-800);
  border-radius: 50%;
  background: var(--forest-900);
  color: var(--gold);
}
.contact__label {
  display: block;
  color: var(--sage);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.contact__value {
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__value:hover { color: var(--gold); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--forest-800);
  border-radius: 999px;
  background: var(--forest-900);
  color: var(--sage-light);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color .3s, color .3s;
}
.socials a:hover { border-color: var(--sage); color: var(--gold); }

.form {
  display: grid;
  gap: 20px;
  padding: 36px;
  border: 1px solid var(--forest-800);
  border-radius: var(--radius);
  background: var(--forest-900);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label {
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--forest-800);
  border-radius: var(--radius-sm);
  background: var(--forest-950);
  color: var(--cream);
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--sage); }
.field ::placeholder { color: var(--forest-700); }
.form__status {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  color: var(--sage-light);
  font-size: 0.9rem;
}
.form__status--error { border-color: var(--gold); color: var(--gold); }
.form__note {
  margin: 0;
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.5;
}
.form__note a { color: var(--sage-light); }
.form__note a:hover { color: var(--gold); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.6; cursor: wait; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 520px) {
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- Stopka ---------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--forest-800);
  color: var(--sage);
  font-size: 0.8rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* ---------- Polityka prywatności ---------- */
.legal { padding-top: calc(var(--header-h) + 64px); }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--sage-light); font-weight: 300; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--cream); font-weight: 600; }
.legal a { color: var(--gold); }
.legal__back {
  color: var(--sage-light);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.legal__back:hover { color: var(--gold); }
@media (max-width: 520px) {
  .legal__back { font-size: 0.8rem; }
  .page-legal .brand__sub { display: none; }
}

/* ---------- Powiększenie zdjęcia ---------- */
.lightbox {
  max-width: min(1100px, 94vw);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(11, 31, 23, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.lightbox__caption {
  margin: 12px 0 0;
  text-align: center;
  color: var(--sage-light);
  font-size: 0.95rem;
}
.lightbox__close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--forest-700);
  border-radius: 50%;
  background: var(--forest-800);
  color: var(--cream);
  cursor: pointer;
}
.lightbox__close:hover { background: var(--forest-700); }
.lightbox__counter { color: var(--gold); margin-left: 6px; }
.lightbox__nav {
  position: absolute;
  z-index: 1;
  top: calc(50% - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--forest-700);
  border-radius: 50%;
  background: rgba(27, 59, 46, 0.85);
  color: var(--cream);
  cursor: pointer;
}
.lightbox__nav:hover { background: var(--forest-700); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
body.no-scroll { overflow: hidden; }

/* ---------- Telefon: mniejsze odstępy ---------- */
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .section { padding: 72px 0; }
  .offer__card { padding: 24px; }
  .offer__note { padding: 24px; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand__logo { height: 34px; }
}

/* Dla osób, które wyłączyły animacje w systemie */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
