:root {
  --navy: #16233A;
  --navy-2: #22324F;
  --navy-line: #33446A;
  --paper: #F3F2EF;
  --white: #FFFFFF;
  --line: #DEDCD6;
  --orange: #E4683F;
  --orange-ink: #B9471F; /* pomarańcz do drobnego tekstu na jasnym tle (AA) */
  --text: #16233A;
  --muted: #4E586B;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1rem/1.6 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Typografia */
.display {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 { font-size: clamp(1.45rem, 3.6vw, 2.75rem); }
.h3 { font-size: 1.125rem; font-stretch: 125%; font-weight: 800; text-transform: uppercase; }
.h4 { font-size: 0.95rem; font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange-ink);
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.body-text { color: var(--muted); max-width: 62ch; margin-top: 1.25rem; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem;
  font: 700 0.95rem/1 "Archivo", sans-serif;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px;
}
.btn--sm { min-height: 40px; padding: 0 1.1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--orange); color: var(--navy); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: #EE7A53; }
  .btn--dark:hover { background: var(--navy-2); }
  .btn--ghost:hover { background: var(--navy); color: var(--white); }
}

/* Pasek kontaktowy nad nawigacją */
.topbar { background: var(--navy); color: #B9C1D0; font-size: 0.8rem; }
.topbar__row { display: flex; align-items: center; gap: 1.75rem; min-height: 36px; }
.topbar__note { margin-right: auto; }
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .topbar a:hover { color: var(--orange); } }
@media (max-width: 600px) {
  .topbar__note, .topbar__fb { display: none; }
  .topbar__row { justify-content: space-between; gap: 1rem; }
}

/* Nawigacja */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__row { display: flex; align-items: center; gap: 2rem; height: 68px; }
.nav__logo img { height: 36px; width: auto; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding-block: 0.4rem;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat left bottom / 0 2px;
  transition: background-size 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { background-size: 100% 2px; }
}
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
}
.hero__copy { container-type: inline-size; }
/* „KOMPLEKSOWE” ma ~10,3 em szerokości: rozmiar liczony od szerokości kolumny, żeby nigdy nie wyszło poza nią */
.hero__title { font-size: min(4.4rem, 9.4cqi); margin: 1.25rem 0 1.5rem; }
.hero__title > span { display: block; }
.hl {
  color: var(--navy);
  padding: 0 0.12em;
  margin-left: -0.12em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat left / 100% 100%;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__img { aspect-ratio: 5 / 4; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__img { aspect-ratio: 4 / 3; }
}

/* Placeholder zdjęć */
.ph {
  display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, #E7E5E0 0 10px, #EEECE8 10px 20px);
  color: #6B7383; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* Liczby */
.stats { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 6vw, 4.5rem); }
.stats__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; margin-top: 2rem; }
.stats__grid > div { position: relative; padding-top: 1.25rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.5rem; }
.stats__grid > div::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--orange);
  transform-origin: left;
}
.stats dd { font-size: clamp(1.75rem, 3vw, 2.4rem); font-stretch: 125%; font-weight: 800; line-height: 1; }
.stats dt { font-size: 0.875rem; color: #B9C1D0; }
@media (max-width: 1024px) { .stats__grid { grid-template-columns: repeat(3, 1fr); row-gap: 2.25rem; } }
@media (max-width: 560px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* Sekcje */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--white { background: var(--white); }

/* Usługi */
.services {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 3rem; background: var(--white); border: 1px solid var(--line);
}
.services li { padding: 2rem 1.5rem 2.25rem; border-left: 1px solid var(--line); transition: background-color 200ms ease; }
.services li:first-child { border-left: 0; }
.services__no {
  display: block; margin-bottom: 1.5rem;
  font-size: 2rem; font-stretch: 125%; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--orange);
}
.services h3 { font-size: 1rem; font-stretch: 125%; font-weight: 800; text-transform: uppercase; margin-bottom: 0.75rem; }
.services p { color: var(--muted); font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) {
  .services li:hover { background: #FAF9F7; }
}
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services li:nth-child(3) { border-left: 0; }
  .services li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .services li { border-left: 0; }
  .services li + li { border-top: 1px solid var(--line); }
}

/* Portfolio: jedna duża + dwie mniejsze */
.portfolio {
  display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: auto auto;
  gap: 2.5rem 2rem; margin-top: 3rem;
}
.work--big { grid-row: span 2; }
.work .ph { aspect-ratio: 16 / 10; margin-bottom: 1rem; }
.work--big .ph { aspect-ratio: 4 / 3.6; }
.work .ph > * { transition: transform 600ms var(--ease-out); }
.work__meta { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-ink); }
.work h3 { font-size: 1.15rem; font-stretch: 125%; font-weight: 800; text-transform: uppercase; margin: 0.35rem 0 0.15rem; }
.work__place { color: var(--muted); font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) {
  .work:hover .ph > * { transform: scale(1.03); }
}
@media (max-width: 760px) {
  .portfolio { grid-template-columns: 1fr; }
  .work--big { grid-row: auto; }
  .work--big .ph { aspect-ratio: 16 / 10; }
}

/* O nas */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about .h4 { margin: 2.25rem 0 1rem; }
.why li { position: relative; padding-left: 1.4rem; font-weight: 600; }
.why li + li { margin-top: 0.6rem; }
.why li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; background: var(--orange); }
.process { border-top: 2px solid var(--navy); padding-top: 1.5rem; }
.process__title { margin-bottom: 0.5rem; color: var(--muted); }
.process li { display: grid; grid-template-columns: 3rem 1fr; padding: 1.4rem 0; }
.process li + li { border-top: 1px solid var(--line); }
.process li > span { font-stretch: 125%; font-weight: 800; color: var(--orange-ink); }
.process h4 { font-size: 0.95rem; font-stretch: 125%; font-weight: 800; text-transform: uppercase; margin-bottom: 0.35rem; }
.process p { color: var(--muted); font-size: 0.95rem; }
.about__img { aspect-ratio: 16 / 10; margin-top: 2.5rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Opinie */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.quotes figure { border-top: 2px solid var(--navy); padding-top: 1.5rem; }
.quotes blockquote { font-size: 1.05rem; line-height: 1.55; }
.quotes blockquote::before {
  /* „ siedzi na linii bazowej: podciągamy go, żeby nie wchodził na tekst */
  content: "„"; display: block; height: 3.3rem; margin: -1.8rem 0 0.6rem;
  font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--orange);
}
.quotes figcaption { margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* Kariera */
.career { background: var(--navy); color: var(--white); padding-block: clamp(3.5rem, 7vw, 5rem); }
.career__row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.career p { color: #B9C1D0; max-width: 56ch; margin: 1rem 0 2rem; }
.career__img { aspect-ratio: 16 / 10; }
@media (max-width: 760px) { .career__row { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { background: var(--orange); color: var(--navy); padding-block: clamp(4rem, 9vw, 6.5rem); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.contact__lead { margin-top: 1.5rem; max-width: 44ch; font-size: 1.05rem; }
.contact__data { margin-top: 2rem; display: grid; gap: 0.4rem; font-weight: 700; }
.contact__data li:not(:last-child) { font-size: 1.25rem; }
.contact__data a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 100% 2px; }
.form { background: var(--navy); color: var(--white); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.85rem; font-weight: 700; }
.field input, .field textarea {
  font: inherit; color: var(--white);
  background: var(--navy-2); border: 1px solid var(--navy-line);
  padding: 0.8rem 0.9rem; border-radius: 0;
  transition: border-color 200ms ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { border-color: var(--orange); }
.form .btn { margin-top: 0.5rem; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* Stopka */
.footer { background: var(--navy); color: #B9C1D0; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.9rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer img { width: 190px; margin-bottom: 1rem; }
.footer h3 { color: var(--white); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.6rem; }
.footer a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--white); } }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  border-top: 1px solid var(--navy-line); margin-top: 3rem; padding-block: 1.5rem; font-size: 0.8rem;
}
.footer__legal a { color: var(--white); font-weight: 700; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* Ruch: tylko gdy użytkownik go nie wyłączył, tylko gdy działa JS */
@media (prefers-reduced-motion: no-preference) {
  .js .load {
    animation: rise 700ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms + 80ms);
  }
  .js .hl { animation: mark 650ms var(--ease-out) 420ms both; }

  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js [data-reveal].in { opacity: 1; transform: none; }

  /* listy w odsłanianych blokach: kaskada elementów */
  .js .stats__grid > div, .js .services li, .js .quotes figure, .js .process li {
    opacity: 0; transform: translateY(12px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 60ms + 120ms);
  }
  .js .in .stats__grid > div, .js .stats__grid.in > div, .js .services.in li, .js .quotes.in figure, .js .in li[style] {
    opacity: 1; transform: none;
  }
  .js .stats__grid > div::before { transform: scaleX(0); transition: transform 900ms var(--ease-out); transition-delay: inherit; }
  .js .stats__grid.in > div::before { transform: scaleX(1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes mark { from { background-size: 0% 100%; } }
