/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

/* DESIGN TOKENS */
:root {
  --color-bg: #FAFAFA;
  --color-text: #1A1A1A;
  --color-accent: #FD3232;
  --color-accent-hover: #D92727;
  --color-border: #E5E5E3;
  --color-card-bg: #FFFFFF;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-12: 96px;

  --radius: 8px;
  --content-max-width: 1200px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
}
h1 { font-size: clamp(40px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 32px); }

/* LAYOUT */
.container {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
@media (min-width: 1024px) {
  .container { padding-inline: 80px; }
}

.section {
  padding-block: var(--space-7);
}
@media (min-width: 1024px) {
  .section { padding-block: var(--space-12); }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}
@media (min-width: 1024px) {
  .eyebrow { font-size: 14px; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: var(--color-border);
}

/* CARDS: border only, never border + shadow together */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
}

/* FOCUS VISIBILITY (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
}
/* Logo ma proporcje 5:3 — po `height: auto` w resecie wysokość trzeba narzucić
   jawnie, inaczej nagłówek urósłby do naturalnej wysokości obrazu. */
.site-header__logo img { height: 68px; width: auto; }
@media (min-width: 640px) {
  .site-header__logo img { height: 80px; }
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.site-header__phone {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  display: none;
}
@media (min-width: 640px) {
  .site-header__phone { display: inline; }
}
/* Sticky header zasłania górę celu kotwicy przy smooth scroll — odsuń cele
   o mniej więcej wysokość nagłówka (logo 68px + 2 × var(--space-2) + border). */
#top, #formularz, #mecze-turnieje, #cytat-wlasciciela {
  scroll-margin-top: 108px;
}

/* HERO
   Physically separate photo band from the dark CTA band below it — NOT a
   single tall background image with a stronger gradient on top. The photo
   container has a fixed, deliberately short height so it actually crops
   the source photo vertically (removing empty grass at the bottom)
   instead of just displaying the whole tall image behind a darker tint. */
.hero { position: relative; }

.hero-photo {
  position: relative;
  height: 460px;
  overflow: hidden;
  /* Fallback so a sub-pixel rounding gap at the bottom edge (common with
     adjacent block elements at some device pixel ratios) shows dark
     instead of leaking the page background through as a visible seam. */
  background: #101010;
}
@media (min-width: 768px) {
  .hero-photo { height: 560px; }
}
/* Desktop: back to the pre-action-section look completely — one tall
   image, copy near the top and CTAs pulled up into the lower part of the
   same image via negative margin (transparent, in normal flow — NOT
   absolute, which previously collided with the top-anchored text and
   stacked both blocks on the same bottom corner). */
@media (min-width: 1024px) {
  .hero-photo {
    height: 720px;
  }
}
.hero-photo picture,
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo img {
  object-fit: cover;
  /* Starting point only, per explicit direction — tune once the crop is
     visible in a browser. Action/players should read in the lower part of
     the frame; sky/trees stay relatively clean under the text at the top. */
  object-position: 50% 35%;
}
@media (min-width: 768px) {
  .hero-photo img { object-position: center 30%; }
}
/* Gradient blends the bottom of the photo into the solid dark CTA band
   below — NOT the sole mechanism for contrast (the container's short,
   real crop does that work now). */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Doesn't need to reach full opacity itself — .hero-actions physically
     overlaps the bottom edge (see margin-top below) and covers it, so two
     independently-rendered "solid black" edges never have to meet exactly
     pixel-for-pixel (that abutment was the actual source of the seam). */
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 40%, rgba(16,16,16,0.75) 70%, rgba(16,16,16,0.97) 90%);
}
.hero-photo__content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding-top: var(--space-5);
}
@media (min-width: 1024px) {
  .hero-photo__content {
    margin-inline: auto;
    max-width: 800px;
    padding-top: 0;
    padding-bottom: var(--space-3);
  }
}
.hero-photo__content h1 { color: #fff; margin-block: var(--space-2); }

/* Solid dark action band — no photo, no gradient of its own, just the
   flat color the photo's gradient blends into. */
.hero-actions {
  position: relative;
  z-index: 1;
  background: #101010;
  color: #fff;
  /* Overlaps the bottom of .hero-photo (instead of merely abutting it) so
     there is no shared edge for a sub-pixel gap/seam to appear on. */
  margin-top: -40px;
}
.hero-actions__inner {
  padding-block: var(--space-5) var(--space-7);
  text-align: center;
}
@media (min-width: 1024px) {
  /* No separate dark band on desktop — stays in normal flow (right after
     .hero-photo__content, never overlapping it) but pulled up into the
     lower part of the same image via negative margin, transparent, so it
     visually rejoins the text as one image-backed block. */
  .hero-actions {
    background: transparent;
    margin-top: -280px;
    color: #fff;
  }
  .hero-actions__inner {
    margin-inline: auto;
    max-width: 800px;
    padding-block: 0 var(--space-7);
  }
}

.hero__highlight {
  background: var(--color-accent);
  color: #fff;
  padding: 0 10px;
  border-radius: var(--radius);
  display: inline-block;
  margin-top: 4px;
}
.eyebrow--light { color: #fff; }
.hero__lead { font-size: 16px; max-width: 38ch; margin-top: var(--space-1); margin-bottom: 0; margin-inline: auto; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); justify-content: center; }
.btn--secondary-light { color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--secondary-light:hover, .btn--secondary-light:focus-visible { background: rgba(255,255,255,0.15); }

.hero__trust {
  list-style: none;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  margin-top: var(--space-2);
}
.hero__trust li { margin-bottom: 2px; line-height: 1.35; }
@media (min-width: 1024px) {
  .hero__trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .hero__trust li { margin-bottom: 0; }
  .hero__trust li + li::before {
    content: "•";
    margin-right: var(--space-2);
    opacity: 0.5;
  }
}

/* "Zostaw kontakt..." is explanatory, not action-zone copy — keep it off
   the mobile hero (per explicit direction: action zone stays lean), show
   it again once there's room on desktop. */
.hero__note {
  font-size: 14px;
  opacity: 0.9;
  margin-top: var(--space-1);
  display: none;
}
@media (min-width: 1024px) {
  .hero__note { display: block; }
}

/* SECTION STYLES */
.section__lead { max-width: 65ch; margin-block: var(--space-2) var(--space-5); font-size: 18px; }
.section--muted { background: var(--color-card-bg); }

/* GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
/* aspect-ratio zamiast atrybutu height w HTML — po dodaniu `height: auto` do
   resetu img karty muszą trzymać jednolity kadr mimo różnych proporcji źródeł. */
.grid-3 .card img { border-radius: var(--radius); margin-bottom: var(--space-2); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.path-card img {
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.path-card .eyebrow { margin-bottom: var(--space-1); }
.path-card h3 { margin-bottom: var(--space-2); }
.path-card p:not(.eyebrow) { margin-bottom: var(--space-3); }
.path-card__list {
  list-style: none;
  text-align: center;
  margin-top: var(--space-1);
}
.path-card__list li {
  margin-bottom: var(--space-1);
  font-size: 15px;
}
.path-card__list li::before {
  content: "• ";
  color: var(--color-accent);
  font-weight: 700;
}

.partners-bar {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.partners-bar__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #777;
  margin-bottom: var(--space-3);
}
.partners-bar__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
.partners-bar__logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
  /* Quiet, uniform trust signal — not a colorful logo wall competing with
     the accent CTAs elsewhere on the page. */
  filter: grayscale(100%);
  opacity: 0.75;
}
.partners-bar__text-item {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

/* Mobile: intro text, then photo, then quote (photo sits between text and
   quote, per explicit direction). Desktop: intro+quote stacked in a left
   column, photo spans both rows on the right. */
.about {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "intro" "trainer" "quote";
  gap: var(--space-5);
}
@media (min-width: 900px) {
  .about {
    grid-template-columns: 3fr 2fr;
    grid-template-areas: "intro trainer" "quote trainer";
    align-items: start;
  }
}
.about__intro { grid-area: intro; }
.about__intro p { margin-bottom: var(--space-2); }
.about__quote {
  grid-area: quote;
  font-family: var(--font-heading);
  font-size: 24px;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-3);
}
.about__trainer { grid-area: trainer; text-align: center; }
.about__trainer img {
  border-radius: var(--radius);
  margin-inline: auto;
  /* PNG has a transparent background — tint it with the brand accent
     directly, no image edit needed. */
  background: var(--color-accent);
}
.about__trainer-name { font-weight: 600; margin-top: var(--space-2); }
.about__trainer-role { font-size: 14px; color: #555; }

/* STEPS (section 6) */
.steps { position: relative; margin-top: var(--space-5); }
.steps__line-svg { display: none; }
@media (min-width: 1024px) {
  .steps__line-svg {
    display: block;
    position: absolute;
    top: 28px;
    left: 12.5%;
    width: 75%;
    height: 40px;
    z-index: 0;
  }
}
/* Kolor w CSS, nie jako atrybut prezentacyjny stroke="var(--color-accent)" —
   podstawianie zmiennych CSS w atrybutach SVG nie działa niezawodnie. */
#steps-path { stroke: var(--color-accent); }
.steps__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .steps__list { grid-template-columns: repeat(4, 1fr); }
}
.steps__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.steps__item h3 { margin-bottom: var(--space-1); }

/* CONCERN (section 7) */
.concern { max-width: 70ch; }
.concern p { margin-bottom: var(--space-2); }
.concern__story {
  font-style: italic;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-3);
  margin-bottom: var(--space-4);
}

/* GALLERY (section 8) */
.gallery-section .container { margin-bottom: var(--space-4); }
.gallery { position: relative; }
/* Baza = zachowanie mobilne: własny scroll poziomy ze scroll-snap.
   Na desktop/tablet initGallery() nadpisuje overflow/width w gsap.matchMedia(). */
.gallery__track {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--space-3);
  padding-bottom: var(--space-2);
}
@media (min-width: 1024px) {
  .gallery__track { padding-inline: 80px; }
}
.gallery__item {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
}
.gallery__item img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* PRICING (section 9) */
.pricing__card { max-width: 480px; margin-top: var(--space-5); text-align: left; }
.pricing__amount { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: var(--color-accent); }
.pricing__amount span { font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--color-text); }
.pricing__label { font-weight: 600; margin-top: var(--space-3); margin-bottom: var(--space-1); }
.pricing__list { list-style: none; margin-bottom: var(--space-3); }
.pricing__list li { padding-left: 24px; position: relative; margin-bottom: var(--space-1); }
.pricing__list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
.pricing__note { font-size: 14px; color: #555; margin-bottom: var(--space-3); }

/* REVIEWS (section 10) */
.review cite { display: block; margin-top: var(--space-2); font-weight: 600; font-style: normal; }

/* FAQ ACCORDION (section 11) */
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-3) 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__question::after {
  content: "+";
  font-size: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: var(--space-2);
}
.faq__question[aria-expanded="true"]::after { content: "−"; }
.faq__answer { padding-bottom: var(--space-3); max-width: 70ch; }

.location__photo { margin-top: var(--space-4); }
.location__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--color-border); }
.location__address { margin-top: var(--space-2); font-size: 14px; color: #555; }

.site-footer { background: var(--color-text); color: #fff; padding-block: var(--space-6); }
.site-footer__inner { display: flex; flex-direction: column; gap: var(--space-4); }
@media (min-width: 768px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; }
}
.site-footer__inner img { height: 35px; width: auto; }
.site-footer__address { margin-top: var(--space-2); font-size: 14px; line-height: 1.8; }
.site-footer__address a { color: #fff; }
.site-footer__links { display: flex; flex-direction: column; gap: var(--space-1); }
.site-footer__links a { color: #fff; font-size: 14px; }
.site-footer__fine-print { text-align: center; font-size: 12px; opacity: 0.6; margin-top: var(--space-5); }

/* FORM (section 13) */
.lead-form { max-width: 560px; margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field label { font-weight: 600; font-size: 14px; }
.form-field__optional { font-weight: 400; color: #777; }
.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="tel"],
.form-field input[type="email"] {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card-bg);
}
.form-field__error { color: var(--color-accent); font-size: 13px; min-height: 16px; }
.form-field--checkbox { flex-direction: row; align-items: flex-start; gap: var(--space-1); flex-wrap: wrap; }
.form-field--checkbox label { font-weight: 400; font-size: 14px; }

/* Honeypot: visually hidden but present/focusable-by-bots in the DOM, not display:none */
.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lead-form__submit { margin-top: var(--space-2); }
.lead-form__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.lead-form__note { font-size: 13px; color: #777; }
.lead-form__status { font-weight: 600; min-height: 20px; }
.gallery__nav {
  display: none;
}
@media (max-width: 1023px) {
  .gallery__nav {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    font-size: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  }
  .gallery__nav--prev { left: var(--space-2); }
  .gallery__nav--next { right: var(--space-2); }
}
.gallery__position {
  text-align: center;
  font-size: 13px;
  color: #555;
  margin-top: var(--space-1);
}
@media (min-width: 1024px) {
  .gallery__position { display: none; }
}

/* MOBILE: centered/symmetric layout by default (brief 3.2).
   Form fields and FAQ are explicitly exempt — centering interactive form
   labels/inputs and question/answer lists is a recognized usability
   anti-pattern, not a stylistic inconsistency. */
@media (max-width: 767px) {
  .section .container:not(.form-section) {
    text-align: center;
  }
  .grid-2,
  .grid-3,
  .steps__list {
    justify-items: center;
  }
  .card {
    text-align: center;
  }
  .grid-3 .card img {
    margin-inline: auto;
  }
  .about__intro,
  .concern {
    margin-inline: auto;
  }
  .pricing__card {
    margin-inline: auto;
    text-align: center;
  }
  .pricing__list {
    text-align: left;
    display: inline-block;
  }
  .site-footer__inner {
    align-items: center;
  }
  .faq {
    text-align: left;
  }
  .lead-form {
    text-align: left;
    margin-inline: auto;
  }
}
