/* =====================================================================
   Airflow Performance — strona rekrutacyjna trenerów oddechu
   Brand: AirFlow Performance (logo)
   Navy #1A2D45  |  Orange #FD6B34
   Scoped pod .af-page, żeby nie kolidować z motywem Neve.
   ===================================================================== */

.af-page {
  --af-navy:      #1A2D45;
  --af-navy-900:  #0E1B2C;
  --af-navy-800:  #16263C;
  --af-navy-700:  #24374F;
  --af-orange:    #FD6B34;
  --af-orange-600:#E7561F;
  --af-ink:       #182634;
  --af-muted:     #566577;
  --af-mist:      #F3F6FA;
  --af-line:      #E3E9F0;
  --af-paper:     #FFFFFF;
  --af-on-dark:   #EAF1F8;
  --af-on-dark-muted:#9CB0C4;

  --af-display: "Space Grotesk", "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --af-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --af-wrap: 1140px;
  --af-radius: 14px;

  font-family: var(--af-body);
  color: var(--af-ink);
  background: var(--af-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Chroni przed poziomym overflow na mobile (poświaty/dekoracje wychodzące poza viewport).
     clip zamiast hidden — nie tworzy scroll-containera, nie rusza pionowego scrolla. */
  overflow-x: clip;
}

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

.af-page img { max-width: 100%; height: auto; display: block; }

.af-wrap {
  width: 100%;
  max-width: var(--af-wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ---------- Typografia ---------- */
.af-page h1, .af-page h2, .af-page h3 {
  font-family: var(--af-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--af-navy);
}
.af-eyebrow {
  font-family: var(--af-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--af-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.1rem;
}
.af-eyebrow::before {
  content: "";
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--af-orange);
  display: inline-block;
}
.af-h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.af-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--af-muted);
  max-width: 60ch;
  margin: 1.1rem 0 0;
}

/* ---------- Sekcje ---------- */
.af-section { padding-block: clamp(56px, 9vw, 104px); }
.af-section--mist { background: var(--af-mist); }
.af-section--dark { background: var(--af-navy); color: var(--af-on-dark); }
.af-section--dark .af-h2,
.af-section--dark h3 { color: #fff; }
.af-section--dark .af-lead { color: var(--af-on-dark-muted); }

/* ---------- Przyciski ---------- */
.af-btn {
  --_bg: var(--af-orange);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font-family: var(--af-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.af-btn--primary { background: var(--_bg); color: #fff; box-shadow: 0 8px 22px -8px rgba(253,107,52,.7); }
.af-btn--primary:hover { background: var(--af-orange-600); transform: translateY(-2px); }
.af-btn--ghost { background: transparent; color: var(--af-on-dark); border-color: rgba(255,255,255,.28); }
.af-btn--ghost:hover { border-color: #fff; transform: translateY(-2px); }
.af-btn--lg { padding: 1.15rem 2rem; font-size: 1.06rem; }

/* ---------- Top bar (logo) ---------- */
.af-topbar { background: #fff; border-bottom: 1px solid var(--af-line); }
.af-topbar .af-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px;
}
.af-topbar__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.af-topbar__logo img { height: 46px; width: auto; }
.af-topbar__tag {
  font-family: var(--af-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .06em; color: var(--af-muted); text-transform: uppercase;
}
.af-topbar__cta { font-size: .92rem; padding: .7rem 1.1rem; }
@media (max-width: 620px){ .af-topbar__tag, .af-topbar__cta { display:none; } }

/* ---------- Hero ---------- */
.af-hero {
  background:
    radial-gradient(120% 100% at 85% -10%, rgba(253,107,52,.16), transparent 55%),
    linear-gradient(180deg, var(--af-navy) 0%, var(--af-navy-900) 100%);
  color: var(--af-on-dark);
  position: relative;
  overflow: hidden;
}
.af-hero .af-wrap { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(64px, 11vw, 128px); position: relative; z-index: 2; }
/* Wyższa specyficzność (0,2,0) — bije .af-page img { height:auto } (0,1,1). Responsywnie pod mobile. */
.af-hero .af-hero__logo { height: clamp(34px, 6vw, 48px); width: auto; margin-bottom: 24px; filter: brightness(0) invert(1); opacity: .92; }
.af-hero__eyebrow { color: #FFB79A; }
.af-hero__eyebrow::before { border-bottom-color: var(--af-orange); }
.af-hero .af-hero__title {
  font-size: clamp(2.3rem, 6vw, 4.05rem);
  color: #fff;
  max-width: 16ch;
}
.af-hero .af-hero__title em { color: var(--af-orange); font-style: normal; }
.af-hero__sub {
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  color: var(--af-on-dark-muted);
  max-width: 54ch;
  margin: 1.4rem 0 2.2rem;
}
.af-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* ambient triangle */
.af-hero__tri {
  position: absolute; right: -80px; bottom: -120px; z-index: 1;
  width: 460px; height: 400px; opacity: .12; pointer-events: none;
}
.af-hero__tri svg { width: 100%; height: 100%; }

/* ---------- Stats strip ---------- */
.af-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 34px);
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(255,255,255,.14);
}
.af-stat__num {
  font-family: var(--af-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.1rem); color: #fff; line-height: 1;
}
.af-stat__num span { color: var(--af-orange); }
.af-stat__label { color: var(--af-on-dark-muted); font-size: .95rem; margin-top: .5rem; }
@media (max-width: 640px){
  .af-stats { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Sekcja "luka" (60 klubów) ---------- */
.af-gap__quote {
  font-family: var(--af-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 20ch;
}
.af-gap__quote b { color: var(--af-orange); font-weight: 600; }
.af-gap__body { max-width: 46ch; margin-top: 1.6rem; color: var(--af-on-dark-muted); font-size: 1.08rem; }
.af-gap__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,5vw,64px); align-items: center; }
@media (max-width: 820px){ .af-gap__grid { grid-template-columns: 1fr; } }
.af-clublist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.af-clublist li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; color: var(--af-on-dark); font-weight: 500;
}
.af-clublist li::before { content: "—"; color: var(--af-orange); font-weight: 700; }
/* Zdjęcie w prawej kolumnie sekcji "luka" (60 klubów) */
.af-gap__media { position: relative; margin: 0; width: 100%; }
.af-page .af-gap__media img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover; object-position: center top;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.7);
  display: block;
}

/* ---------- Sekcja intro / lead na jasnym tle ---------- */
.af-head { max-width: 62ch; }
.af-head--center { margin-inline: auto; text-align: center; }
.af-head--center .af-eyebrow { justify-content: center; display: flex; }
.af-head--center .af-lead { margin-inline: auto; }

/* ---------- Dowody wiarygodności ---------- */
.af-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 820px){ .af-proof { grid-template-columns: 1fr; } }
.af-proof__item {
  background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius);
  padding: 26px 24px;
}
.af-proof__k { font-family: var(--af-display); font-weight: 700; font-size: 1.15rem; color: var(--af-navy); }
.af-proof__t { color: var(--af-muted); margin-top: 8px; font-size: .98rem; }

/* ---------- Dla kogo ---------- */
.af-aud { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,48px); }
@media (max-width: 820px){ .af-aud { grid-template-columns: 1fr; } }
.af-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.af-tag {
  font-family: var(--af-display); font-weight: 500; font-size: .92rem;
  padding: 9px 15px; border-radius: 999px;
  background: var(--af-mist); border: 1px solid var(--af-line); color: var(--af-navy);
}
.af-tag--all { background: var(--af-navy); color: #fff; border-color: var(--af-navy); }
.af-photo {
  height: 100%;
  min-height: clamp(320px, 40vw, 460px);
  border-radius: var(--af-radius);
  border: 1px dashed #C9D4E0;
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(253,107,52,.10), transparent 58%),
    var(--af-mist);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.af-photo__mark {
  width: 0; height: 0;
  border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-bottom: 22px solid rgba(26,45,69,.28);
}
.af-photo__label {
  font-family: var(--af-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--af-muted);
}
/* Wariant z realnym zdjęciem — wysokość równa kolumnie tekstu.
   Obraz absolutny nie napędza wysokości wiersza → to tekst ją wyznacza, a zdjęcie ją wypełnia. */
.af-photo--filled {
  position: relative;
  padding: 0; border: none; background: none; overflow: hidden; margin: 0;
  min-height: 0; height: auto;
  aspect-ratio: 4 / 3;               /* daje wysokość, gdy zdjęcie stackuje się pod tekstem (mobile) */
}
.af-page .af-photo--filled img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 50%;
}
@media (min-width: 821px){
  .af-photo--filled { aspect-ratio: auto; height: 100%; }   /* desktop: wypełnij wiersz = wysokość tekstu */
}

/* ---------- Founder (Maciej Szyszka) ---------- */
.af-founder__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}
@media (max-width: 880px){ .af-founder__grid { grid-template-columns: 1fr; gap: 44px; } }

.af-founder__media { position: relative; margin: 0; width: 100%; max-width: 460px; }
@media (max-width: 880px){ .af-founder__media { max-width: 380px; margin-inline: auto; } }

/* Miękka pomarańczowa poświata za portretem — echo hero.
   Duży box + gradient wygasa w środku, żeby żadna krawędź się nie ucinała. */
.af-founder__media::before {
  content: ""; position: absolute; inset: -32%;
  background: radial-gradient(44% 40% at 44% 40%, rgba(253,107,52,.22), transparent 72%);
  z-index: 0; pointer-events: none;
}
.af-page .af-founder__media img {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center top;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 36px 68px -30px rgba(0,0,0,.72);
  display: block;
}

.af-founder .af-h2 { font-size: clamp(2.05rem, 4vw, 3rem); margin-top: .45rem; }
.af-founder__role {
  font-family: var(--af-display); font-weight: 600;
  color: var(--af-orange); font-size: 1.05rem; margin: .7rem 0 0;
}
.af-founder__rule {
  border: 0; height: 3px; width: 56px; border-radius: 3px;
  background: var(--af-orange); margin: 26px 0;
}
.af-founder__lead {
  color: var(--af-on-dark);
  font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.6;
  margin: 0 0 1.2rem; max-width: 54ch;
}
.af-founder__text {
  color: var(--af-on-dark-muted);
  font-size: 1.05rem; line-height: 1.7;
  margin: 0 0 2rem; max-width: 54ch;
}
.af-founder__quote {
  position: relative;
  margin: 0 0 2rem; padding: 4px 0 4px 30px;
  border-left: 3px solid var(--af-orange);
  font-family: var(--af-display); font-weight: 500;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.36;
  letter-spacing: -0.01em; color: #fff; max-width: 34ch;
}
.af-founder__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.af-founder__meta .af-tag {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--af-on-dark);
  font-size: .86rem; padding: 8px 14px;
}

/* ---------- Filary (co dostajesz) ---------- */
.af-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
@media (max-width: 900px){ .af-pillars { grid-template-columns: 1fr; } }
.af-pillar {
  background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius);
  padding: 30px 28px; position: relative;
}
.af-pillar--star { background: var(--af-navy); border-color: var(--af-navy); color: var(--af-on-dark); }
.af-pillar--star h3 { color: #fff; }
.af-pillar--star .af-pillar__badge { background: var(--af-orange); color: #fff; }
.af-pillar__badge {
  font-family: var(--af-display); font-weight: 700; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--af-orange); background: rgba(253,107,52,.12);
  padding: 5px 10px; border-radius: 6px; display: inline-block; margin-bottom: 16px;
}
.af-pillar h3 { font-size: 1.3rem; margin-bottom: 10px; }
.af-pillar p { margin: 0; color: var(--af-muted); }
.af-pillar--star p { color: var(--af-on-dark-muted); }

/* ---------- Metodyka (trójkąt-sygnatura) ---------- */
.af-method__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,5vw,64px); align-items: center; }
@media (max-width: 860px){ .af-method__grid { grid-template-columns: 1fr; } }
.af-tri { position: relative; aspect-ratio: 1 / .9; max-width: 420px; margin-inline: auto; width: 100%; }
.af-tri svg { width: 100%; height: 100%; overflow: visible; }
.af-stagelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.af-stage { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.af-stage__n {
  font-family: var(--af-display); font-weight: 700; font-size: 1rem; color: #fff;
  background: var(--af-orange); width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.af-stage h3 { font-size: 1.16rem; }
.af-stage p { margin: 4px 0 0; color: var(--af-on-dark-muted); }

/* ---------- Jak to działa (kroki) ---------- */
.af-steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 46px; }
@media (max-width: 1000px){ .af-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .af-steps { grid-template-columns: 1fr; } }
.af-step {
  background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius);
  padding: 28px 26px; position: relative;
}
.af-step::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  font-family: var(--af-display); font-weight: 700; font-size: 1.05rem;
  color: var(--af-orange); display: block; margin-bottom: 12px; letter-spacing: .04em;
}
.af-step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.af-step p { margin: 0; color: var(--af-muted); }

/* ---------- Cena ---------- */
.af-price__card {
  background: var(--af-navy); color: var(--af-on-dark); border-radius: 20px;
  padding: clamp(32px,5vw,52px); display: grid; grid-template-columns: 1fr auto;
  gap: 30px; align-items: center; margin-top: 44px;
}
@media (max-width: 760px){ .af-price__card { grid-template-columns: 1fr; text-align: left; } }
.af-price__amount { font-family: var(--af-display); font-weight: 700; color: #fff; font-size: clamp(2.6rem,6vw,3.6rem); line-height: 1; }
.af-price__amount span { font-size: 1.1rem; color: var(--af-on-dark-muted); font-weight: 500; }
.af-price ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.af-price li { display: flex; gap: 10px; color: var(--af-on-dark); }
.af-price li::before { content: ""; margin-top:.4em; width:0;height:0; border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:9px solid var(--af-orange); flex:0 0 auto; }

/* ---------- FAQ ---------- */
.af-faq { max-width: 780px; margin-inline: auto; margin-top: 40px; }
.af-faq details { border-bottom: 1px solid var(--af-line); }
.af-faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--af-display); font-weight: 600; font-size: 1.1rem; color: var(--af-navy);
}
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--af-orange); font-family: var(--af-body); transition: transform .2s ease;
}
.af-faq details[open] summary::after { content: "\2013"; }
.af-faq p { margin: 0 0 22px; color: var(--af-muted); max-width: 66ch; }

/* ---------- Formularz ---------- */
.af-apply__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px,5vw,60px); }
@media (max-width: 900px){ .af-apply__grid { grid-template-columns: 1fr; } }
.af-form { display: grid; gap: 16px; background: #fff; border:1px solid var(--af-line); border-radius: 18px; padding: clamp(24px,4vw,38px); }
.af-field { display: grid; gap: 7px; }
.af-field--row { grid-template-columns: 1fr 1fr; display: grid; gap: 16px; }
@media (max-width: 520px){ .af-field--row { grid-template-columns: 1fr; } }
.af-field label { font-weight: 600; font-size: .92rem; color: var(--af-navy); }
.af-field label .req { color: var(--af-orange); }
.af-form input, .af-form select, .af-form textarea {
  width: 100%; font-family: var(--af-body); font-size: 1rem; color: var(--af-ink);
  padding: 13px 15px; border: 1px solid var(--af-line); border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.af-form input:focus, .af-form select:focus, .af-form textarea:focus {
  outline: none; border-color: var(--af-orange); box-shadow: 0 0 0 3px rgba(253,107,52,.16);
}
.af-form textarea { min-height: 120px; resize: vertical; }
.af-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.af-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--af-muted); }
.af-consent input { width: auto; margin-top: 3px; }
.af-form__note { font-size: .86rem; color: var(--af-muted); }
.af-alert { border-radius: 10px; padding: 14px 16px; font-weight: 500; }
.af-alert--ok { background: #E7F6EC; color: #1B7A3D; border: 1px solid #BFE6CD; }
.af-alert--err { background: #FDECEC; color: #B42318; border: 1px solid #F7C9C6; }

/* ---------- Stopka ---------- */
.af-foot { background: var(--af-navy-900); color: var(--af-on-dark-muted); padding-block: 40px; }
.af-foot .af-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.af-foot a { color: #fff; text-decoration: none; font-weight: 600; }
.af-foot a:hover { color: var(--af-orange); }
.af-foot img { height: 40px; width:auto; filter: brightness(0) invert(1); opacity: .85; }

/* ---------- Focus / a11y / motion ---------- */
.af-page a:focus-visible, .af-page button:focus-visible, .af-page summary:focus-visible,
.af-page input:focus-visible, .af-page textarea:focus-visible, .af-page select:focus-visible {
  outline: 3px solid var(--af-orange); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .af-page * { transition: none !important; animation: none !important; }
}
