/* ==========================================================================
   Bullpadel Polska B2B — landing kampanijny (bullpadel.padelmarket.pl)
   Mobile first. Bez frameworków, bez webfontów (systemowy stack = 0 requestów).
   Kolory marki wg brandbooka Bullpadel: czerwień #C8102E, czerń #0f0f01, biel.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokeny
   -------------------------------------------------------------------------- */
:root {
  /* Kolory marki — czerwień jest JEDYNYM akcentem, używana oszczędnie. */
  --c-red: #c8102e;
  --c-red-hover: #a70d26;

  --c-bg: #0d0d0e;          /* tło strony (czerń marki, lekko rozjaśniona) */
  --c-bg-deep: #000;        /* wygaszenia pod zdjęciami */
  --c-surface: #151517;     /* delikatnie wyniesione płaszczyzny */
  --c-line: rgba(255, 255, 255, .13);
  --c-line-strong: rgba(255, 255, 255, .28);

  --c-text: #f4f4f5;
  --c-muted: #a1a1a6;       /* kontrast 7.5:1 na --c-bg */
  --c-error: #ff8d8d;

  /* Typografia — systemowy stack: na telefonach (główny ruch z IG/FB)
     renderuje się jako SF Pro / Roboto, czyli dokładnie to, czego chcemy. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --section-y: clamp(72px, 13vw, 152px);

  --radius: 2px;
  --ease: cubic-bezier(.16, .84, .44, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / podstawy
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

a { color: inherit; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Widoczny, spójny focus — wymagany dla dostępności (nawigacja klawiaturą). */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: var(--radius);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 12px 18px;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --------------------------------------------------------------------------
   3. Typografia kampanii
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.eyebrow--red { color: var(--c-red); }

.h-display {
  font-size: clamp(33px, 8.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.028em;
  font-weight: 800;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(28px, 6.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.024em;
  font-weight: 800;
  text-wrap: balance;
}

.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.62;
  color: var(--c-muted);
}

.body-text p + p { margin-top: 1.1em; }
.body-text { color: var(--c-muted); max-width: 62ch; }
.body-text strong { color: var(--c-text); font-weight: 600; }

/* --------------------------------------------------------------------------
   4. Przyciski
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-red);
  color: #fff;                      /* kontrast 8.8:1 — OK dla WCAG AA */
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--c-red-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--c-line-strong);
  color: var(--c-text);
  flex: none;
  min-height: 40px;
  padding: 0 13px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .07); }

.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 5;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-lockup__bp { width: 98px; height: auto; }
.brand-lockup__sep {
  width: 1px;
  height: 20px;
  background: var(--c-line-strong);
  flex: none;
}
.brand-lockup__pm { width: 76px; height: auto; }
.brand-lockup__note {
  display: none;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--c-bg); }

.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  /* Limit wysokości, żeby na telefonie CTA mieściło się bez dużego scrollowania. */
  max-height: 54svh;
  overflow: hidden;
  background: #16202c;              /* kolor tła zdjęcia — brak „białego błysku” */
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;         /* twarz zawodnika zawsze w kadrze */
}
/* Wygaszenie dolnej krawędzi zdjęcia w tło strony — tekst nigdy nie leży na twarzy. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 42%;
  background: linear-gradient(to bottom, rgba(13, 13, 14, 0), var(--c-bg) 88%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  padding-bottom: clamp(48px, 11vw, 96px);
}

.hero__title { margin-bottom: 22px; }
.hero__title span { display: block; }
.hero__title span + span { color: var(--c-muted); }

.hero__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0 16px;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 18px;
}
.hero__brand img { width: 156px; height: auto; }
.hero__claim {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-text);
}
.hero__note { font-size: 14px; color: var(--c-muted); margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   7. Sekcje treściowe
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--line { border-top: 1px solid var(--c-line); }

.section__head { margin-bottom: clamp(28px, 5vw, 44px); }
.section__head .eyebrow { margin-bottom: 16px; }
.section__head .h-section span { display: block; }
.section__head .h-section span + span { color: var(--c-muted); }

.split { display: grid; gap: clamp(34px, 6vw, 64px); }

.figure-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #16202c;
}
.figure-media img { width: 100%; height: auto; }

/* Pełnoszerokościowy pas zdjęciowy (sekcja „od profesjonalnego padla…”). */
.band {
  position: relative;
  background: #050507;
  border-block: 1px solid var(--c-line);
}
.band img { width: 100%; height: auto; }

/* Lista obszarów oferty — typograficzna, bez ikon i kafelków. */
.rule-list { border-top: 1px solid var(--c-line); }
.rule-list li {
  border-bottom: 1px solid var(--c-line);
  padding: 15px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* Oś czasu historii marki — świadomie minimalna, bez ozdobników i ikon. */
.timeline {
  margin-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--c-line);
}
.timeline li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--c-line);
}
.timeline__year {
  flex: none;
  min-width: 4.5ch;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-red);
}
.timeline__label {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--c-text);
}

/* Oficjalny claim marki jako samodzielny element typograficzny. */
.claim-line {
  margin-top: clamp(26px, 4vw, 36px);
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--c-text);
}

/* Dyskretny odnośnik ze strzałką. */
.arrow-link { margin-top: clamp(26px, 4vw, 36px); font-size: 15.5px; }
.arrow-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-weight: 600;
  color: var(--c-text);
  text-underline-offset: 4px;
}
.arrow-link a span { transition: transform .18s var(--ease); }
.arrow-link a:hover span { transform: translateX(4px); }

/* Kroki współpracy. */
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { border-top: 2px solid var(--c-red); padding-top: 18px; }
.step__no {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--c-red);
  margin-bottom: 10px;
}
.step__title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}
.step__text { font-size: 15.5px; color: var(--c-muted); }

.note-line {
  margin-top: clamp(32px, 5vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  max-width: 62ch;
  color: var(--c-muted);
  font-size: 15.5px;
}
.note-line--small { font-size: 13px; }

/* Drobne pomocniki układu — zamiast atrybutów style w HTML. */
.section__sub { margin-top: 16px; max-width: 52ch; }
.list-heading { margin: 34px 0 14px; }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   8. Formularz
   -------------------------------------------------------------------------- */
.form { margin-top: clamp(30px, 5vw, 44px); }
.form__grid { display: grid; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-text);
}
.field__req { color: var(--c-red); }
.field__hint { font-size: 12.5px; color: var(--c-muted); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-text);
  font-size: 16px;                  /* 16px = iOS nie zoomuje przy focusie */
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.55; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--c-line-strong); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 1px #fff;
}

.field select {
  appearance: none;
  padding-right: 42px;
  /* Strzałka jako inline SVG — zero dodatkowych requestów. */
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23a1a1a6' d='M1 1.6 6 6.6l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.field select option { background: #17171a; color: #f4f4f5; }

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--c-error); }

.field__error { font-size: 13px; color: var(--c-error); }
.field__error:empty { display: none; }

/* Zgody */
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input[type="checkbox"] {
  flex: none;
  width: 24px;              /* minimalny rozmiar celu dotykowego wg WCAG 2.2 */
  height: 24px;
  margin: 0;
  accent-color: var(--c-red);
}
.consent label { font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.consent label a { color: var(--c-text); text-underline-offset: 3px; }

/* Honeypot — niewidoczny dla ludzi, ale obecny w DOM dla botów. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit { margin-top: 6px; }
.form__status { font-size: 15px; }
.form__status[data-state="error"] { color: var(--c-error); }

/* Komunikat po wysłaniu */
.form-success {
  border-top: 2px solid var(--c-red);
  padding-top: 24px;
  max-width: 56ch;
}
.form-success .eyebrow { margin-bottom: 16px; }
.form-success .h-section { margin-bottom: 14px; }
.form-success h3 {
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 800;
  margin-bottom: 12px;
}
.form-success p { color: var(--c-muted); }
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   8b. Strony prawne (polityka prywatności / cookies)
   -------------------------------------------------------------------------- */
.legal { max-width: 78ch; }
.legal__meta {
  margin: 10px 0 clamp(30px, 5vw, 46px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
  color: var(--c-muted);
}
.legal h2 {
  margin: clamp(32px, 5vw, 48px) 0 14px;
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.25;
  letter-spacing: -.015em;
  font-weight: 700;
}
.legal h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  font-weight: 700;
}
.legal p,
.legal li { color: var(--c-muted); font-size: 16px; line-height: 1.65; }
.legal p + p { margin-top: 1em; }
.legal ul,
.legal ol { margin: 12px 0; padding-left: 22px; list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--c-text); text-underline-offset: 3px; }
.legal strong { color: var(--c-text); font-weight: 600; }

/* Tabele na telefonie przewijają się w poziomie zamiast rozpychać stronę. */
.legal__table { overflow-x: auto; margin: 16px 0; }
.legal table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14.5px; }
.legal th,
.legal td {
  border: 1px solid var(--c-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--c-muted);
}
.legal th { color: var(--c-text); font-weight: 600; background: var(--c-surface); }

@media print {
  .site-header, .site-footer, .consent-bar { display: none; }
  body { background: #fff; color: #000; }
  .legal p, .legal li, .legal th, .legal td { color: #000; }
  .legal { max-width: none; }
}

/* --------------------------------------------------------------------------
   9. Stopka
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--c-line);
  padding-block: 48px 40px;
  font-size: 14px;
  color: var(--c-muted);
}
.site-footer__grid { display: grid; gap: 30px; }
.site-footer a { color: var(--c-muted); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--c-text); }
/* Odstępy i padding dobrane tak, żeby linki spełniały minimalny cel dotykowy. */
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer__links a,
.site-footer__links button { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer__legal {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  font-size: 12.5px;
  line-height: 1.65;
}
/* Wariant bez kreski — na stronie podziękowania stopka jest jednoczęściowa. */
.site-footer__legal--plain { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img:first-child { width: 112px; }
.footer-brand img:last-child { width: 88px; }

/* --------------------------------------------------------------------------
   10. Baner zgód (cookies)
   -------------------------------------------------------------------------- */
.consent-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: #121214;
  border-top: 1px solid var(--c-line-strong);
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
}
.consent-bar__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  gap: 16px;
}
.consent-bar p { font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.consent-bar a { color: var(--c-text); }

/* Trzy opcje równorzędne wizualnie — bez „wyróżnionej" zgody (dark pattern).
   Na wąskich ekranach dwie decyzje końcowe stoją obok siebie w jednym rzędzie,
   a neutralne „Dostosuj" zajmuje rząd niżej. */
.consent-bar__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-bar__actions .btn {
  min-height: 44px;
  padding-inline: 10px;
  font-size: 13.5px;
  background: transparent;
  border: 1px solid var(--c-line-strong);
}
.consent-bar__actions [data-consent="necessary"] { order: 1; }
.consent-bar__actions [data-consent="all"] { order: 2; }
.consent-bar__actions [data-consent="customize"] { order: 3; grid-column: 1 / -1; }
.consent-bar__actions .btn:hover { background: rgba(255, 255, 255, .07); }

.consent-prefs {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
}
.consent-prefs .consent label { color: var(--c-text); font-size: 13.5px; }
.consent-prefs .consent span { display: block; color: var(--c-muted); font-size: 12.5px; }

/* --------------------------------------------------------------------------
   11. Delikatne wejście sekcji (wyłączone przy prefers-reduced-motion)
   -------------------------------------------------------------------------- */
/* Klasę `js-reveal` dodaje skrypt — bez JS treść jest widoczna od razu. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
  }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --------------------------------------------------------------------------
   12. Breakpointy
   -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  /* Od tej szerokości hero korzysta z kadru poziomego (patrz <picture> w HTML),
     więc pudełko obrazu też musi zmienić proporcje — inaczej kadr byłby przycięty. */
  .hero__media { aspect-ratio: 16 / 9; max-height: 62svh; }
  .hero__media img { object-position: 50% 26%; }

  .form__grid { grid-template-columns: 1fr 1fr; }
  .form__grid .field--full,
  .form__grid .consent,
  .form__grid .form__submit,
  .form__grid .form__status { grid-column: 1 / -1; }
  /* Przycisk na szerszych ekranach nie musi ciągnąć się przez całą kolumnę. */
  .form__submit .btn--block { width: auto; min-width: 280px; }
  .consent-bar__actions { grid-template-columns: repeat(3, auto); justify-content: start; }
  .consent-bar__actions [data-consent="customize"] { order: 2; grid-column: auto; }
  .consent-bar__actions [data-consent="all"] { order: 3; }
  .consent-bar__actions .btn { padding-inline: 20px; }
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .rule-list { columns: 2; column-gap: 48px; }
  .rule-list li { break-inside: avoid; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  html { scroll-padding-top: 24px; }

  .brand-lockup__note { display: block; }
  .site-header__inner { min-height: 74px; }

  /* Hero desktop: zdjęcie jako pełne tło, tekst w lewej, pustej części kadru. */
  .hero { min-height: 86svh; display: flex; align-items: flex-end; }
  .hero__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    max-height: none;
  }
  .hero__media img { object-position: 50% 32%; }
  .hero__media::after {
    inset: 0;
    height: auto;
    background:
      linear-gradient(100deg, rgba(5, 5, 7, .92) 0%, rgba(5, 5, 7, .78) 34%, rgba(5, 5, 7, .1) 66%, rgba(5, 5, 7, 0) 82%),
      linear-gradient(to bottom, rgba(13, 13, 14, .55), rgba(13, 13, 14, 0) 30%, rgba(13, 13, 14, .85));
  }
  .hero__inner {
    margin-top: 0;
    padding-block: clamp(80px, 10vw, 128px);
    max-width: 660px;
  }
  .hero__brand { align-items: flex-start; }

  .split--media-right { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .split--media-right > .figure-media { order: 2; }
  .split--list { grid-template-columns: 1fr 1fr; align-items: start; }

  .site-footer__grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .site-footer__links { justify-content: flex-end; }

  .consent-bar__inner { grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
  .consent-bar__inner .consent-prefs { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .hero__title { max-width: 14ch; }
}
