:root {
  --bg: #0d0d0d;
  --bg-alt: #141414;
  --surface: #191919;
  --line: #2a2a2a;
  --text: #ecebe6;
  --muted: #9a9993;
  --accent: #24407a;        /* navy: wypełnienia (przyciski) */
  --accent-text: #8da6dc;   /* jaśniejszy navy: napisy i linie na ciemnym tle */
  --accent-ink: #ffffff;

  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}
h1 { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 48px; }
h3 { font-size: 1.45rem; letter-spacing: -0.02em; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 20px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 28px 0 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 28px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--accent-text); border-color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn-small { padding: 9px 18px; font-size: 0.78rem; }
.btn-block { display: block; text-align: center; margin-top: auto; }

.link-arrow {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-text);
  border-bottom: 1.5px solid transparent;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { border-bottom-color: var(--accent-text); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 13, 13, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.site-header nav { display: flex; align-items: center; gap: 32px; }
.site-header nav a:not(.btn) {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.site-header nav a:not(.btn):hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 110px 0 0; }
.hero h1 { max-width: 900px; font-size: clamp(2.6rem, 5.6vw, 4.9rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 110px;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px solid var(--line);
}
.hero-stats li {
  padding: 28px 24px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* ---------- sections ---------- */
.block { padding: 110px 0; }
.block-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .25s;
}
.card:hover { border-color: var(--accent-text); }
.card-no {
  position: absolute;
  top: 28px; right: 32px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--muted);
}
.card-tag {
  margin: 10px 0 22px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-text);
}
.card p { color: var(--muted); margin: 0 0 24px; }
.card .card-tag { color: var(--accent-text); margin: 10px 0 22px; }

.ticks { list-style: none; margin: 0 0 36px; padding: 0; }
.ticks li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 10px; height: 2px;
  background: var(--accent-text);
}

/* steps */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.steps li { padding: 8px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-no {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.steps h3 { margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* about */
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.025) 14px 15px),
    var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.16em;
}
.about-text h2 { margin-bottom: 28px; }
.about-text p { color: var(--muted); margin: 0 0 18px; }
.about-text p a { color: var(--text); text-decoration-color: var(--accent-text); text-underline-offset: 3px; }

/* cta */
.block-cta { border-top: 1px solid var(--line); text-align: left; }
.block-cta h2 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.04em; margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); }

/* ---------- focus ---------- */
a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .block { padding: 72px 0; }
  .hero { padding-top: 64px; }
  .site-header nav a:not(.btn) { display: none; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 64px; }
  .hero-stats li { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .hero-stats li:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .steps li:nth-child(3) { padding: 0 0 0 0; border-left: 0; }
  .card { padding: 32px 24px 28px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

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

/* ---------- zdjęcia ---------- */
.hero { padding-top: 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* czarne tło portretu zlewa się z tłem strony */
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

.about-photo { display: block; overflow: hidden; margin: 0; padding: 0; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.g { grid-column: span 2; margin: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.g-wide { grid-column: span 3; aspect-ratio: 3 / 2; }
.g img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% var(--y, 50%);
  transition: transform .5s ease;
}
.g:hover img { transform: scale(1.03); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 420px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  /* galeria jako przewijany pasek */
  .gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -24px;
    padding: 0 24px 8px;
    -webkit-overflow-scrolling: touch;
  }
  .g, .g-wide { flex: 0 0 74%; aspect-ratio: 4 / 5; scroll-snap-align: center; }
  .g img { object-position: 50% var(--ym, var(--y, 50%)); }
}

@media (prefers-reduced-motion: reduce) {
  .g img { transition: none; }
  .g:hover img { transform: none; }
}
