/* =========================================================
   WMaciejFoto – arkusz stylów
   Wszystko, co najczęściej zmieniasz (kolory, czcionka,
   zaokrąglenia), jest w bloku poniżej.
   ========================================================= */

/* ===== EDYTUJ: KOLORY, CZCIONKA, ZAOKRĄGLENIA ===== */
:root {
  /* Kolory */
  --black: #04060B;        /* czerń */
  --navy: #08111F;         /* bardzo ciemny granat */
  --navy-deep: #0A2342;    /* głęboki granat */
  --royal: #1243A8;        /* royal blue */
  --accent: #4C97FF;       /* niebieski akcent (przyciski, wyróżnienia) */
  --ice: #CFE2FF;          /* jasny błękit */
  --text: #E3ECFA;         /* tekst główny */
  --muted: #A8B8D0;        /* tekst przygaszony */
  --line: #1B3F73;         /* linie, ramki */
  --line-soft: #12294A;    /* delikatne linie */

  /* Czcionka (jedna dla całej strony) */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Zaokrąglenia */
  --radius-sm: 20px;
  --radius: 24px;
  --radius-lg: 28px;

  /* Układ */
  --header-h: 72px;
  --max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ===== BAZA ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7vw, 6.25rem); letter-spacing: -0.035em; line-height: 1; }
h2 { font-size: clamp(2.125rem, 5vw, 4.25rem); letter-spacing: -0.035em; }
h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
.accent { color: var(--accent); }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: var(--accent); color: var(--black); padding: 12px 20px;
  border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 16px; color: var(--black); }

/* ===== UKŁAD OGÓLNY ===== */
.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); scroll-margin-top: var(--header-h); }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.lead { font-size: 1.25rem; color: var(--muted); max-width: 32em; }

.bg-black { background: var(--black); }
.bg-navy { background: var(--navy); border-block: 1px solid var(--line-soft); }
.bg-deep { background: var(--navy-deep); }
.bg-royal { background: var(--royal); }

/* ===== PRZYCISKI ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 32px; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--black); }
.btn-primary:hover { background: #fff; color: var(--black); }
.btn-ghost { border-color: #2F6FDB; color: #fff; font-weight: 600; }
.btn-ghost:hover { border-color: var(--ice); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.link-arrow { font-weight: 700; font-size: 1rem; }

/* ===== NAGŁÓWEK I MENU ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(4, 6, 11, .74);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { color: var(--accent); flex: none; }
.brand-name { font-size: 1.125rem; letter-spacing: 0.01em; }
.brand-name b { font-weight: 700; }
.brand-name i { font-style: normal; font-weight: 300; }

.nav { display: flex; align-items: center; gap: 8px 32px; }
.nav a:not(.btn) {
  color: var(--text); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a.active:not(.btn) { color: #fff; border-bottom-color: var(--accent); }
.nav .btn { min-height: 44px; padding: 10px 24px; font-size: 0.9375rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 16px var(--gutter) 28px;
    background: rgba(4, 6, 11, .96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { font-size: 1rem; padding: 12px 0; width: 100%; }
  .nav .btn { margin-top: 12px; }
}

/* ===== HERO ===== */
.hero { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px)); padding-bottom: clamp(72px, 10vw, 128px); }
.hero-grid {
  display: grid; gap: clamp(32px, 5vw, 72px); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.hero .lead { font-size: 1.3125rem; }
.hero-photo { margin: 0; min-width: 0; }
.hero-photo .ph { border-radius: var(--radius-lg); max-height: min(80vh, 760px); width: 100%; }

/* ===== ZDJĘCIA + ZASTĘPNIKI ===== */
.ph {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: var(--ar, 4 / 5);
  background: var(--ph-bg, radial-gradient(110% 70% at 50% 0%, #2F6FDB 0%, #0A2342 52%, #04060B 100%));
  border: 1px solid var(--line-soft);
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.35;
  color: var(--ice); opacity: .9; text-align: left;
}
.ph img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* ===== OBAWY (3 kolumny) ===== */
.cols-3 { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.col { display: flex; flex-direction: column; gap: 8px; min-width: 0; border-top: 2px solid #2F6FDB; padding-top: 20px; }
.col h3 { font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.col p { color: #B7C8E2; }

/* ===== GALERIA (masonry) ===== */
.gallery { columns: 260px; column-gap: 16px; }
.gallery li { break-inside: avoid; margin: 0 0 16px; }
.g-item {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: var(--radius-sm);
  transition: transform .3s ease;
}
.g-item:hover { transform: scale(1.015); }
.gallery li:nth-child(3n+1) .ph { --ph-bg: linear-gradient(160deg, #CFE2FF 0%, #4C97FF 60%, #1E57C8 100%); }
.gallery li:nth-child(3n+1) .ph::after { color: var(--black); }
.gallery li:nth-child(3n+2) .ph { --ph-bg: radial-gradient(90% 80% at 70% 25%, #143A6B 0%, #08111F 60%, #02040A 100%); }
.gallery li:nth-child(3n+3) .ph { --ph-bg: linear-gradient(200deg, #2F6FDB 0%, #0A2342 70%); }

/* ===== PAKIETY ===== */
.cards { display: grid; gap: 24px; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.card .pack { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 1.75rem; }
.card .desc { color: var(--muted); }
.card ul { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; font-size: 1rem; color: var(--text); }
.card li { position: relative; padding-left: 22px; }
.card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.price { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.card-featured { border: 2px solid var(--accent); background: var(--navy-deep); }
.card-featured .desc { color: #B7C8E2; }

/* ===== JAK TO WYGLĄDA ===== */
.steps { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { display: flex; flex-direction: column; gap: 10px; min-width: 0; border-top: 2px solid #2F6FDB; padding-top: 20px; }
.step .num { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.03em; }
.step p { color: var(--muted); }

/* ===== POZNAJMY SIĘ ===== */
.about-grid {
  display: grid; gap: clamp(32px, 6vw, 88px); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.about-grid p { color: #B7C8E2; }
.about-photo { margin: 0; min-width: 0; }
.about-photo .ph { border-radius: var(--radius-lg); --ph-bg: linear-gradient(200deg, #4C97FF 0%, #1E57C8 40%, #04060B 100%); }

/* ===== OPINIE ===== */
.eyebrow-ice { color: var(--ice); }
.quotes { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; border-top: 2px solid var(--ice); padding-top: 24px; }
.quote blockquote { margin: 0; font-size: 1.3125rem; line-height: 1.5; font-weight: 500; color: #fff; }
.quote figcaption { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice); }

/* ===== FAQ ===== */
.faq-grid { display: grid; gap: clamp(32px, 6vw, 88px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.faq-list { min-width: 0; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: #fff;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-size: 1.75rem; font-weight: 400; color: var(--accent); line-height: 1; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { padding: 0 0 24px; color: var(--muted); max-width: 36em; }

/* ===== KONTAKT ===== */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 88px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.contact-grid h2 { font-size: clamp(2.25rem, 5.4vw, 4.75rem); line-height: 1.02; }
.contact-data { display: flex; flex-direction: column; gap: 6px; font-size: 1.25rem; font-weight: 600; }
.contact-data a { color: #fff; }
.contact-data a:hover { color: var(--accent); }
.contact-data span { color: #B7C8E2; font-weight: 400; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 700; font-size: 1rem; }

.form {
  min-width: 0; display: flex; flex-direction: column; gap: 20px;
  padding: clamp(24px, 3vw, 44px); background: var(--black);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.field input, .field textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 1.0625rem; color: #fff;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76, 151, 255, .25); }
.field input::placeholder, .field textarea::placeholder { color: #6F83A1; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--muted); }
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 1rem; min-height: 1.5em; }
.form-status[data-state="ok"] { color: #7FE0A8; }
.form-status[data-state="error"] { color: #FF9AA2; }
.form-status[data-state="info"] { color: var(--ice); }
.form .btn { align-self: flex-start; }

/* ===== STOPKA ===== */
.site-footer { background: var(--black); border-top: 1px solid var(--line-soft); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-block: 32px; font-size: 0.9375rem; color: #8FA6C4; }
.footer-inner a { color: #8FA6C4; text-decoration: underline; }
.footer-inner a:hover { color: #fff; }

/* ===== LIGHTBOX ===== */
.lb {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(2, 4, 10, .95); padding: 24px;
}
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.lb-fig img { max-width: min(92vw, 1100px); max-height: 80vh; width: auto; height: auto; border-radius: 16px; object-fit: contain; }
.lb-fig figcaption { font-size: 0.9375rem; color: var(--muted); }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(10, 35, 66, .85); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.lb-btn:hover { background: var(--accent); color: var(--black); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb { padding: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
}

/* ===== POJAWIANIE SIĘ SEKCJI ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== STRONA POLITYKI PRYWATNOŚCI ===== */
.prose { max-width: 46rem; display: flex; flex-direction: column; gap: 20px; }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 16px; }
.prose p, .prose li { color: #C4D3E8; }
.prose ul { list-style: disc; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.prose .note { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; background: var(--navy); color: var(--ice); font-size: 1rem; }

/* ===== RUCH OGRANICZONY ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
