/* ==========================================================================
   Grupa Marketingowa — strona główna
   Struktura: 1. Fonty  2. Tokeny  3. Reset/baza  4. Narzędzia  5. Komponenty
              6. Sekcje  7. Responsywność  8. Preferencje użytkownika
   ========================================================================== */

/* 1. Fonty (self-hosted, variable 400–800) ------------------------------- */
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/google-sans-flex-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/google-sans-flex-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokeny ------------------------------------------------------------- */
:root {
  /* Kolory */
  --c-primary: #3B5FE0;
  --c-primary-hover: #2F4FC0;
  --c-primary-soft: #EEF2FC;
  --c-ink: #0F1526;
  --c-ink-strong: #0B1120;
  --c-text: #333B4D;
  --c-muted: #5B6478;
  --c-bg: #FFFFFF;
  --c-tint: #F4F6FB;
  --c-line: #EDEFF5;
  --c-line-2: #E4E8F1;

  --c-dark: #0B1120;
  --c-dark-2: #131B2E;
  --c-dark-3: #232C42;
  --c-darkest: #070B15;
  --c-on-dark: #F5F7FB;
  --c-on-dark-muted: #A6AEC2;
  --c-on-dark-soft: #D7DEF0;
  --c-accent-light: #7C93E8;
  --c-accent-pale: #8FA2D9;

  /* Typografia */
  --font: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2rem, 1.2rem + 2.6vw, 3.125rem);      /* 32 → 50 */
  --fs-h2: clamp(1.625rem, 1.2rem + 1.4vw, 2.125rem);  /* 26 → 34 */
  --fs-h2-lg: clamp(1.75rem, 1.2rem + 1.7vw, 2.375rem); /* 28 → 38 */

  /* Układ */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 8vw, 96px);
  --section-y-sm: clamp(56px, 7.5vw, 88px);
  --header-h: 84px;

  /* Promienie i cienie */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 18px;
  --r-xl: 20px;
  --r-pill: 100px;
  --shadow-card: 0 1px 2px rgba(11,17,32,.05), 0 12px 28px rgba(11,17,32,.06);
  --shadow-card-lg: 0 1px 2px rgba(11,17,32,.05), 0 16px 32px rgba(11,17,32,.07);
  --shadow-card-sm: 0 1px 2px rgba(11,17,32,.05), 0 8px 20px rgba(11,17,32,.05);
  --shadow-card-hover: 0 16px 30px 0px rgb(11 17 32 / 14%);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* 3. Reset / baza ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-hover); }

/* Nagłówki wpisywane z poziomu edytora WYSIWYG (bez własnej klasy
   komponentu) — skala i krój zgodne z projektem. Celowo bez `color`:
   ma dziedziczyć z rodzica (np. .hero, .section--dark, .contact
   ustawiają jasny kolor tekstu) — tak samo jak .hero__title,
   .section-title itd., które też nigdy same nie ustawiają koloru. */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h1 + *, h2 + *, h3 + *, h4 + *, h5 + * { margin-top: .5em; }
* + h1, * + h2, * + h3, * + h4, * + h5 { margin-top: 1em; }

:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 4. Narzędzia ---------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--c-primary); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 16px; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(900px + 2 * var(--gutter)); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 16px; }

/* 5. Komponenty --------------------------------------------------------- */

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  border: 0; border-radius: var(--r-pill);
  font-weight: 600; line-height: 1.5; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--secondary { padding: 14px 26px; background: var(--c-dark-3); color: #fff; }
.btn--secondary:hover { background: var(--c-dark-2); color: #fff; }
.btn--secondary:active { transform: translateY(1px); }
.btn--ghost { color: var(--c-on-dark); }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { padding: 12px 24px; font-size: .875rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; font-weight: 700; }
.btn--ghost.btn--lg { padding-inline: 20px; font-weight: 600; }
.btn--block { width: 100%; padding: 16px; font-size: 1rem; font-weight: 700; }

/* Etykiety sekcji */
.eyebrow {
  margin-bottom: 12px;
  font-size: .875rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.eyebrow--light { color: var(--c-accent-light); }

.pill {
  display: inline-block;
  margin-bottom: 26px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(59,95,224,.16);
  color: #9DB1F0;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
}

/* Okruszki w pigułce (podstrony) — reużywa wygląd .pill */
.breadcrumb-pill a { color: inherit; text-decoration: none; }
.breadcrumb-pill a:hover { text-decoration: underline; }
.breadcrumb-pill__sep { margin: 0 4px; opacity: .6; }
.breadcrumb-pill__current { color: #fff; }

/* Kompaktowy nagłówek podstrony (bez zdjęcia, ~30% wysokości pełnego hero) */
.page-header { padding-block: 50px; background: var(--c-dark); color: var(--c-on-dark); }
.page-header__title {
  margin-bottom: 0;
  font-size: var(--fs-h1); font-weight: 800; line-height: 1.15; letter-spacing: -.01em;
}

/* Nagłówki sekcji */
.section-head { max-width: 620px; margin-bottom: 35px; }
.section-head--wide { max-width: 680px; }
.section-head--xl { max-width: 720px; }
.section-head--tight { margin-bottom: 12px; }
.section-head--short { margin-bottom: 40px; }
.section-head--xl.section-head--tight { margin-bottom: 20px; }

.section-title {
  font-size: var(--fs-h2); font-weight: 800; line-height: 1.2; letter-spacing: -.01em;
}
.section-title--loose { line-height: 1.25; margin-bottom: 20px; }
.section-title--spaced { margin-bottom: 40px; }
.section-title--sm { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 1.875rem); }

.section-lead { margin: 12px 0 40px; font-size: 1rem; color: var(--c-muted); }

/* Karty */
.card {
  padding: 32px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.card__num { display: block; margin-bottom: 16px; font-size: 1.375rem; font-weight: 800; color: var(--c-primary); }
.card__title { margin-bottom: 10px; font-size: 1.1875rem; font-weight: 700; line-height: 1.35; color: var(--c-ink-strong); }
.card__text { font-size: 1rem; color: var(--c-muted); }

/* Wyzwania: delikatny, szeroko rozproszony cień na hover */
.section[aria-labelledby="problem-title"] .card {
  transition: box-shadow .5s ease;
}
.section[aria-labelledby="problem-title"] .card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* Tagi */
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tag {
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--c-primary-soft); color: var(--c-primary);
  font-size: .8125rem; font-weight: 600;
}

.badge-num {
  flex-shrink: 0;
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--c-primary-soft); color: var(--c-primary);
  font-size: .875rem; font-weight: 800;
}

/* 6. Sekcje ------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--compact { padding-block: var(--section-y-sm); }
.section--tight-top { padding-top: 50px; }
.section--tint { background: var(--c-tint); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark); }

/* Nagłówek strony */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(11,17,32,.06);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
}
.site-header__logo img { width: auto; height: 48px; }

.main-nav__list {
  display: flex; align-items: center; gap: 36px;
  padding: 0; list-style: none;
}
.main-nav__link { color: var(--c-text); font-size: .9375rem; font-weight: 500; transition: color .2s var(--ease); }
.main-nav__link:hover { color: var(--c-primary); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r-sm);
  background: transparent;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute; left: 11px;
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--c-ink-strong);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 7vw, 88px) var(--gutter);
  background: var(--c-dark); color: var(--c-on-dark);
}
.hero::before {
  /* Zdjęcie w tle na granatowej podstawie (--c-dark), przyciemnione
     przez opacity, żeby tekst nad nim pozostał w pełni czytelny. */
  content: "";
  position: absolute; inset: 0;
  background: url("../images/hero-bg-photo.jpg") no-repeat center / cover;
  opacity: .2;
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero__title {
  margin-bottom: 22px;
  font-size: var(--fs-h1); font-weight: 800; line-height: 1.14; letter-spacing: -.01em;
}
.hero__lead { max-width: 560px; margin-bottom: 36px; font-size: 1.125rem; color: var(--c-on-dark-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero__media > picture { height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,17,32,0) 55%, rgba(11,17,32,.55) 100%);
}
.hero__caption {
  position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px;
  padding: 16px 20px; border-radius: var(--r-md);
  background: rgba(11,17,32,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 1rem; font-weight: 700;
}

/* O nas */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.about__mosaic {
  display: grid; grid-template: repeat(2, 1fr) / repeat(2, 1fr); gap: 16px;
  aspect-ratio: 1;
}
.about__tile { overflow: hidden; border-radius: var(--r-lg); min-height: 0; }
.about__tile img { width: 100%; height: 100%; object-fit: cover; }
.about__tile--accent {
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: var(--c-primary); color: #fff;
  font-size: .9375rem; font-weight: 700; line-height: 1.35; text-align: center;
}
.about__text .section-title { margin-bottom: 28px; }
.about__text .btn--secondary { margin-top: 32px; }
.prose { display: flex; flex-direction: column; gap: 22px; font-size: 1.0625rem; color: var(--c-text); }

/* Filary */
.pillar {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card-lg);
  transition: box-shadow .4s ease;
}
.pillar:hover,
.pillar:focus-within {
  box-shadow: var(--shadow-card-hover);
}
.pillar__media { aspect-ratio: 16 / 8; overflow: hidden; }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pillar:hover .pillar__media img,
.pillar:focus-within .pillar__media img {
  transform: scale(1.06);
}
.pillar__body { padding: 32px; }
.pillar__title {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
  font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--c-ink-strong);
}
.pillar__text { margin-bottom: 18px; font-size: 1rem; color: var(--c-muted); }

/* Link na całą kartę (technika "stretched link") + przycisk pojawiający się na hover */
.pillar__link {
  display: inline-flex; align-items: center; gap: .4em;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-ink-strong);
  font-size: .9375rem; font-weight: 700;
  transition: background-color .3s ease, color .3s ease;
}
.pillar__link::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
}
.pillar:hover .pillar__link,
.pillar:focus-within .pillar__link {
  /* Granat (--c-dark-3) zamiast jasnego tła tagów (--c-primary-soft) —
     ten sam odcień niebieskiego co marka (~223° hue), ale ciemny i pełny,
     żeby przycisk wyraźnie różnił się od nieklikalnych etykiet na kafelku. */
  background: var(--c-dark-3);
  color: #fff;
}

/* Scenariusze */
.scenario {
  padding: 28px 32px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-card-sm);
}
.scenario__title { margin-bottom: 20px; font-size: 1.0625rem; font-weight: 700; color: var(--c-ink-strong); }
.scenario__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  padding-top: 20px; border-top: 1px solid var(--c-line);
}
.scenario__grid dt {
  font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--c-primary);
}
.scenario__grid dd { margin: 4px 0 0; font-size: 1rem; color: var(--c-text); }

/* Segmenty */
.segments { gap: 18px; }
.segments > li { display: flex; }
.segment {
  display: block; width: 100%;
  padding: 24px; border-radius: var(--r-md);
  background: var(--c-tint);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.segment:hover { background: var(--c-primary-soft); transform: translateY(-2px); }
.segment__name { display: block; margin-bottom: 8px; font-size: 1rem; font-weight: 700; color: var(--c-ink-strong); }
.segment__text { display: block; font-size: 1rem; color: var(--c-muted); }

/* Dojrzałość cyfrowa */
.market__claim { margin-bottom: 16px; font-size: 1.25rem; font-weight: 700; color: #fff; }
.market__lead { max-width: 620px; font-size: 1rem; color: var(--c-on-dark-muted); }

/* Skala rynku: zdjęcie w tle na granatowej podstawie, jak w banerze */
[aria-labelledby="rynek-title"] { position: relative; overflow: hidden; }
[aria-labelledby="rynek-title"]::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/market-bg-photo.jpg") no-repeat center / cover;
  opacity: .5;
  pointer-events: none;
}
[aria-labelledby="rynek-title"] .container { position: relative; z-index: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 14px; margin: 44px 0 56px; }
.chip {
  padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--c-dark-2); color: var(--c-on-dark-soft);
  font-size: .9375rem; font-weight: 600;
}

.maturity-title { margin-bottom: 28px; font-size: 1.375rem; font-weight: 800; color: #fff; }
.maturity { gap: 8px; }
.level {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 20px; border-radius: 0;
  background: rgb(147 179 255 / 14%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: background-color .5s ease, box-shadow .5s ease;
}
.level:hover {
  background: rgb(29 44 79 / 31%);
  box-shadow: 0 0 30px 10px #3b93df40;
}
.level__dots { display: flex; gap: 5px; }
.level__dots i { width: 12px; height: 12px; border-radius: 50%; background: #ffffff33; border-left: 1px solid #000000d9; }
.level__dots i.is-filled { background: var(--c-primary); }
.level__name { font-size: 1.25rem; font-weight: 700; color: #fff; }
.level__text { font-size: 1rem; line-height: 1.5; color: var(--c-accent-pale); }

/* Proces — 50/50: formularz (lewo, przyczepny) / treść + zdjęcie (prawo) */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.process__media {
  overflow: hidden; aspect-ratio: 16 / 9;
  margin-top: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 44px rgba(11,17,32,.12);
}
.process__media img { width: 100%; height: 100%; object-fit: cover; }
.steps { gap: 28px; }
.step__num {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: var(--r-sm);
  background: var(--c-ink-strong); color: #fff;
  font-size: 1rem; font-weight: 800;
}
.step__title { margin-bottom: 8px; font-size: 1.0625rem; font-weight: 700; color: var(--c-ink-strong); }
.step__text { font-size: 1rem; color: var(--c-muted); }

/* Proces — formularz: kolumna na całą wysokość wiersza (.process__form-col),
   wewnątrz niej przyczepna karta — "odczepia się" na dole kolumny ze zdjęciem. */
.process__form-col { height: 100%; }
.process__form-wrap {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.process__form-title { margin-bottom: 20px; font-size: var(--fs-h2); font-weight: 800; color: var(--c-ink-strong); }

.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.form__fieldset { border: 0; padding: 0; margin: 0; }
.form__legend { padding: 0; margin-bottom: 12px; font-size: .9375rem; font-weight: 600; color: var(--c-ink-strong); }

.service-options { display: flex; flex-wrap: wrap; gap: 10px; }
.service-option { cursor: pointer; }
.service-option span {
  display: inline-flex; align-items: center;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--c-line-2);
  font-size: .9375rem; font-weight: 600; color: var(--c-text);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.service-option input:checked + span { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.service-option input:focus-visible + span { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.form__consent {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
  font-size: .875rem; line-height: 1.5; color: var(--c-muted);
}
.form__consent input { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--c-primary); }
.form__consent a { color: var(--c-primary); }

/* Zespół */
[aria-labelledby="zespol-title"] { position: relative; overflow: hidden; }
[aria-labelledby="zespol-title"]::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/team-bg-photo.jpg") no-repeat center / cover;
  opacity: .3;
  pointer-events: none;
}
[aria-labelledby="zespol-title"] .container { position: relative; z-index: 1; }
.team { gap: 8px; border-radius: 0; }
.person {
  position: relative;
  display: flex; gap: 22px; align-items: flex-start;
  padding: 26px;
  background: rgb(147 179 255 / 14%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: background-color .5s ease, box-shadow .5s ease;
}
.person:hover,
.person:focus-within {
  background: rgb(29 44 79 / 31%);
  box-shadow: 0 0 30px 10px #3b93df40;
}
.person__photo {
  flex: 0 0 180px;
  width: 180px; height: 180px; overflow: hidden;
  border-radius: 14px;
}
.person__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.person:hover .person__photo img,
.person:focus-within .person__photo img {
  transform: scale(1.06);
}
.person__avatar {
  display: grid; place-items: center; flex: 0 0 180px;
  width: 180px; height: 180px;
  border-radius: 14px;
  background: var(--c-primary); color: #fff;
  font-size: 1.5rem; font-weight: 800;
}
.person__body { min-width: 0; }
.person__name { margin-bottom: 6px; font-size: 1.1875rem; font-weight: 700; line-height: 1.35; }
.person__role { margin-bottom: 10px; font-size: 1rem; font-weight: 600; color: var(--c-accent-pale); }
.person__text { font-size: 1rem; line-height: 1.5; color: #fff; }
.person__link { margin-top: 16px; }
.person__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* Zespół — pełne profile (podstrona "Zespół") */
.team-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 56px; padding: 0; list-style: none; }
.team-nav__link {
  display: inline-block;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--c-tint); border: 1px solid var(--c-line-2);
  font-size: .9375rem; font-weight: 600; color: var(--c-text);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.team-nav__link:hover { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary); }

.team-profiles { display: flex; flex-direction: column; gap: 40px; }
.team-profile {
  display: flex; gap: 48px; align-items: flex-start;
  padding: 40px; border-radius: 24px;
  background: #fff; box-shadow: var(--shadow-card-lg);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.team-profile__media-col { flex: 0 0 408px; }
.team-profile__media {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 20px;
}
.team-profile__media--detail { aspect-ratio: 6 / 7; }
.team-profile__media img { width: 100%; height: 100%; object-fit: cover; }
.team-profile__body { flex: 1; min-width: 0; }
.team-profile__name { margin-bottom: 6px; font-size: var(--fs-h2); font-weight: 800; color: var(--c-ink-strong); }
.team-profile__role { margin-bottom: 16px; font-size: 1.375rem; font-weight: 600; color: var(--c-primary); }
.team-profile__intro { margin-bottom: 24px; font-size: 1.0625rem; line-height: 1.6; color: var(--c-text); }

.team-profile__facts { display: flex; flex-direction: column; gap: 20px; }
.team-profile__fact h4 { margin-bottom: 4px; font-size: 1rem; font-weight: 700; color: var(--c-primary); }
.team-profile__fact p { font-size: 1rem; line-height: 1.6; color: var(--c-text); }

/* Podstrona indywidualna: zdjęcie + dane kontaktowe w lewej kolumnie, tekst w prawej (proste 2 kolumny) */

.team-profile__social {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 20px;
}
.team-profile__social-link {
  display: grid; place-items: center;
  width: 57px; height: 57px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  transition: background-color .2s ease;
}
.team-profile__social-link svg { width: 24px; height: 24px; }
.team-profile__social-link:hover { background: var(--c-primary-hover); }

/* Dane kontaktowe (podstrona indywidualna osoby) */
.person-contact { margin-top: 14px; }
.person-contact h4 { margin-bottom: 10px; font-size: 1rem; font-weight: 700; color: var(--c-ink-strong); }
.person-contact__list { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }
.person-contact__list a { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--c-primary); }
.person-contact__list a:hover { color: var(--c-primary-hover); text-decoration: underline; }
.person-contact__list svg { flex-shrink: 0; width: 18px; height: 18px; }
.team-profile__social--inline { margin-top: 18px; justify-content: flex-start; }

.team-profile__body > .btn { margin-top: 28px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item { padding: 22px 26px; border-radius: var(--r-md); background: var(--c-tint); }
.faq__q { cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--c-ink-strong); }
.faq__q::marker { color: var(--c-primary); }
.faq__q::-webkit-details-marker { color: var(--c-primary); }
.faq__a {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--c-line-2);
  font-size: 1rem; color: var(--c-text);
}

/* Kontakt */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(72px, 9vw, 110px) var(--gutter);
  color: var(--c-on-dark);
}
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,17,32,.94) 40%, rgba(11,17,32,.75) 100%);
}
.contact__inner {
  max-width: 1080px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.contact__title {
  margin-bottom: 20px;
  font-size: var(--fs-h2-lg); font-weight: 800; line-height: 1.2; letter-spacing: -.01em;
}
.contact__lead { max-width: 420px; font-size: 1rem; color: #C6CCDC; }

.form {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--r-xl);
  background: rgba(19,27,46,.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.form__control {
  display: block; width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  color: var(--c-on-dark);
  font-size: 1rem;
  transition: background-color .2s, border-color .2s;
}
.form__control::placeholder { color: #8A92A6; opacity: 1; }
.form__control:hover { background: rgba(255,255,255,.09); }
.form__control:focus { outline: none; border-color: var(--c-primary); background: rgba(255,255,255,.09); }
.form__control:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.form__control--area { min-height: 120px; resize: vertical; }
.form__status { font-size: 1rem; color: var(--c-on-dark-soft); }

/* Formularz na jasnym tle (np. sekcja Proces) */
.form--light {
  background: #fff;
  box-shadow: var(--shadow-card);
}
.form--light .form__control {
  background: var(--c-tint);
  border-color: transparent;
  color: var(--c-ink);
}
.form--light .form__control::placeholder { color: var(--c-muted); }
.form--light .form__control:hover,
.form--light .form__control:focus { background: #fff; }
.form--light .form__status { color: var(--c-muted); }

/* Stopka */
.site-footer { padding-block: 48px; background: var(--c-darkest); color: #6E7891; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.site-footer__logo { width: auto; height: 42px; margin-bottom: 8px; }
.site-footer__tagline, .site-footer__meta { font-size: .8125rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 28px; padding: 0; list-style: none; font-size: 1rem; }
.site-footer__nav a { color: var(--c-on-dark-muted); }
.site-footer__nav a:hover { color: #fff; }

/* 7. Responsywność ------------------------------------------------------ */
@media (min-width: 1700px) {
  /* Szersze ekrany: kontener bazowy (.container, .hero__inner) rośnie
     do pełnych 1440px. Bez marginesów po bokach (padding-inline: 0) —
     wcześniej --gutter (48px) odejmowało się od 1440, dając realnie
     tylko 1344px treści; teraz 1440px to faktyczna szerokość treści. */
  :root { --container: 1440px; }
  .container { max-width: var(--container); padding-inline: 0; }
  .hero { padding-inline: 0; }
  .hero__inner { max-width: var(--container); }

  /* Na Full HD (1920×1080) zdjęcie w banerze przy proporcji 4:5 robi się
     za wysokie i baner razem z nagłówkiem nie mieści się na ekranie.
     Kwadrat (1:1) przy tej samej szerokości daje ok. 20% niższe zdjęcie. */
  .hero__media { aspect-ratio: 1 / 1; }
}

@media (max-width: 1100px) {
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .segments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }

  /* Menu mobilne */
  .site-header__inner { padding-block: 12px; }
  .site-header__logo img { height: 40px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 24px rgba(11,17,32,.08);
  }
  .js .main-nav:not(.is-open) { display: none; }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav__link { display: block; padding: 12px 0; font-size: 1.0625rem; }
  .main-nav .btn { margin-top: 12px; padding-block: 14px; font-size: 1rem; }

  .hero__inner, .about, .process, .contact__inner { grid-template-columns: 1fr; }
  .hero__inner { gap: 40px; }
  .hero__media { aspect-ratio: 4 / 3; max-height: 560px; }
  .about { gap: 40px; }
  .about__mosaic { max-width: 560px; }
  .process { gap: 40px; }
  .process__form-col { height: auto; }
  .process__form-wrap { position: static; }
  .process__media { aspect-ratio: 16 / 10; margin-top: 32px; }
  .contact__inner { gap: 40px; }

  .grid--3, .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2:has(> .pillar) { grid-template-columns: 1fr; }
  .scenario__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team, .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .team-profiles { gap: 48px; }
  .team-profile { flex-direction: column; align-items: stretch; gap: 24px; }
  .team-profile__media-col { flex-basis: auto; max-width: 320px; }

  .team-profile--detail .team-profile__media-col { display: contents; }
  .team-profile--detail .team-profile__media--detail { order: 1; max-width: 320px; }
  .team-profile--detail .team-profile__body { order: 2; }
  .team-profile--detail .person-contact { order: 3; margin-top: 24px; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .grid--5,
  .team, .segments, .scenario__grid { grid-template-columns: 1fr; }
  .scenario__grid { gap: 16px; }

  .section-head { margin-bottom: 36px; }
  .hero__lead { font-size: 1rem; }
  .hero__actions .btn--primary { width: 100%; white-space: normal; text-align: center; }
  .hero__media { aspect-ratio: 4 / 5; }
  .hero__caption { left: 16px; right: 16px; bottom: 16px; }

  .card, .pillar__body, .team-profile { padding: 24px; }
  .scenario { padding: 24px; }
  .faq__item { padding: 18px 20px; }
  .form { padding: 20px; }
  .chips { gap: 10px; margin: 32px 0 44px; }
  .chip { padding: 10px 18px; font-size: .875rem; }
  .pillar__title { font-size: 1.125rem; }
  .about__mosaic { gap: 12px; }
  .about__tile--accent { padding: 12px; font-size: .8125rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .person { flex-direction: column; }
  .form__row { grid-template-columns: 1fr; }
}

/* 8. Preferencje użytkownika ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .btn, .tag, .chip, .card, .scenario, .pillar, .person, .level { border: 1px solid CanvasText; }
}

@media print {
  .site-header, .contact__bg, .form { display: none; }
  .section--dark, .hero, .contact { background: none; color: #000; }
}
