/* Strona główna o klubie (pomysł klienta z 22.11.2026). Układ, teksty i zdjęcia ze strony
   klubu w starej aplikacji (/accounts/dolacz/, join-landing.css w repo PoprawBieg), tła
   w odcieniach menu bocznego. Strona jest zawsze ciemna: w trybie jasnym i ciemnym zmienia
   się tylko akcent z Ustawień klubu, zakładka „Wygląd” (theme_head.html, opis w club.css).
   Kolory tylko w zmiennych poniżej. */
:root {
  /* !important, bo theme.js wpisuje tryb jasny lub ciemny w style="" na <html>; bez tego
     w trybie jasnym pasek przewijania i pola przeglądarki byłyby jasne na ciemnej stronie. */
  color-scheme: dark !important;
  --home-bg: #151417;
  --home-bg-alt: #1a191d;
  --home-bg-deep: #0e0d10;
  --home-surface: #211f24;
  --home-surface-hover: #2a282e;
  --home-line: #2f2c33;
  --home-line-strong: #4a4650;
  --home-ghost-line: rgba(244, 243, 246, .55);
  --home-text: #f4f3f6;
  --home-body: #c9c5cd;
  --home-muted: #a7a3ab;
  --home-nav-bg: rgba(21, 20, 23, .92);
  --home-photo-bg: #26242a;
  --home-photo-bar: #090909;
  --home-photo-shade: rgba(0, 0, 0, .6);
  --home-shadow: rgba(0, 0, 0, .35);
  --home-paused-bg: #2f2c33;
  --home-paused-text: #a7a3ab;
  /* Blok w kolorze akcentu przed stopką: ciemny tekst i ciemny przycisk. */
  --home-on-accent: #151417;
  --home-on-accent-body: rgba(21, 20, 23, .85);
  --home-on-accent-soft: rgba(21, 20, 23, .16);
  --home-on-accent-button-hover: #2f2c33;
  /* Akcent: domyślnie róż w trybie jasnym. */
  --home-accent: #e07db3;
  --home-accent-hover: #f29dca;
  --home-accent-rgb: 224, 125, 179;
  --home-tint: rgba(var(--home-accent-rgb), .07);
  --home-tint-strong: rgba(var(--home-accent-rgb), .12);
  --home-tint-line: rgba(var(--home-accent-rgb), .3);
}
[data-bs-theme="dark"] {
  /* Akcent fioletowy jak w panelu (club.css). */
  --home-accent: #c07de8;
  --home-accent-hover: #cf98ef;
  --home-accent-rgb: 192, 125, 232;
}
/* Akcent z Ustawień klubu, zakładka „Wygląd” (opis w club.css). */
:root[data-accent-light="purple"]:not([data-bs-theme="dark"]) {
  --home-accent: #c07de8;
  --home-accent-hover: #cf98ef;
  --home-accent-rgb: 192, 125, 232;
}
:root[data-bs-theme="dark"][data-accent-dark="pink"] {
  --home-accent: #e07db3;
  --home-accent-hover: #f29dca;
  --home-accent-rgb: 224, 125, 179;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: Inter, "Arial", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1320px; margin: auto; padding: 0 40px; }
::selection { background: var(--home-accent); color: var(--home-on-accent); }

/* Stały pasek: logo, kotwice sekcji, „Zaloguj się” i „Dołącz do nas”. */
nav {
  position: sticky;
  z-index: 40;
  top: 0;
  background: var(--home-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--home-line);
}
.navline { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; width: max-content; flex-shrink: 0; }
.brand-logo { display: block; height: 58px; width: auto; }
.footer .brand-logo { height: 46px; }
.navlinks { display: flex; gap: 40px; margin-left: auto; font-size: 12px; font-weight: 850; letter-spacing: .07em; }
.navlinks a:hover { color: var(--home-accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid transparent;
  background: var(--home-accent);
  color: var(--home-on-accent);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-transform: uppercase;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--home-accent-hover); }
.btn.ghost { border-color: var(--home-ghost-line); background: transparent; color: var(--home-text); }
.btn.ghost:hover { border-color: var(--home-text); background: var(--home-surface); }
.nav-btn { min-height: 46px; gap: 10px; padding: 0 20px; font-size: 12px; }
.arrow { font-size: 19px; font-weight: 500; }

.eyebrow { font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.pink { color: var(--home-accent); }

/* 00 / Początek */
.hero { padding-top: 64px; padding-bottom: 52px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); gap: 46px; align-items: center; }
.hero-copy { padding: 50px 0; }
.hero-copy h1 {
  font-family: "Inter Display", Inter, sans-serif;
  letter-spacing: -.084em;
  font-weight: 950;
  font-size: clamp(67px, 7.1vw, 110px);
  line-height: .94;
  margin: 29px 0 28px;
  text-transform: uppercase;
}
.hero-copy h1 span { color: var(--home-accent); }
.hero-copy p { max-width: 540px; font-size: 20px; line-height: 1.58; letter-spacing: -.018em; color: var(--home-body); margin: 0; }
.hero-copy .lead-bold { font-weight: 750; color: var(--home-text); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 33px 0 18px; }
.hero-copy .hero-login { margin: 0 0 40px; font-size: 15px; color: var(--home-muted); }
.hero-login a {
  color: var(--home-text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--home-accent);
  text-underline-offset: 4px;
}
.hero-login a:hover { color: var(--home-accent); }
.microline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--home-muted);
  flex-wrap: wrap;
}
.microline i { height: 5px; width: 5px; background: var(--home-accent); border-radius: 50%; }

.hero-gallery { height: 665px; position: relative; }
.hero-gallery .pic { position: absolute; overflow: hidden; background: var(--home-photo-bg); }
.hero-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-gallery img:hover { transform: scale(1.04); }
.pic.primary { left: 0; top: 0; width: 65%; height: 78%; filter: contrast(1.04); }
.pic.primary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 27px;
  background: var(--home-photo-bar);
  pointer-events: none;
}
.pic.secondary { right: 0; top: 8%; width: 38%; height: 48%; }
.pic.tertiary { right: 5%; bottom: 0; width: 39%; height: 39%; }
.hero-rotate {
  position: absolute;
  left: 30%;
  bottom: 11%;
  background: var(--home-accent);
  color: var(--home-on-accent);
  padding: 17px 21px;
  font-weight: 950;
  font-size: 21px;
  text-transform: uppercase;
  line-height: 1.05;
  transform: rotate(-9deg);
  z-index: 2;
  box-shadow: 0 8px 24px var(--home-shadow);
}
.image-note {
  position: absolute;
  right: 0;
  bottom: -23px;
  font-size: 10px;
  color: var(--home-muted);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tape {
  background: var(--home-bg-deep);
  color: var(--home-text);
  padding: 23px 0;
  overflow: hidden;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}
.tape-line {
  max-width: 1320px;
  margin: auto;
  padding: 0 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.tape .asterisk { color: var(--home-accent); font-size: 24px; }

/* 01 / O nas */
section { scroll-margin-top: 110px; }
.section-pad { padding: 116px 0; }
.section-number { color: var(--home-accent); font-size: 13px; font-weight: 950; letter-spacing: .14em; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 82px; }
.section-title {
  font-family: "Inter Display", Inter, sans-serif;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 950;
  letter-spacing: -.075em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 25px 0 0;
}
.body-copy { font-size: 20px; line-height: 1.7; color: var(--home-body); letter-spacing: -.01em; margin: 0 0 20px; }
.body-copy strong { color: var(--home-text); }
.quote-card { margin-top: 40px; background: var(--home-surface); border: 1px solid var(--home-line); padding: 28px 30px; }
.quote-card p { margin: 0; font-size: 16px; font-weight: 750; line-height: 1.5; }
.quote-card span { color: var(--home-accent); font-weight: 950; }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.problem-grid span {
  border: 1px solid var(--home-line-strong);
  padding: 17px;
  font-weight: 780;
  font-size: 13px;
  line-height: 1.35;
  background: var(--home-surface);
}

/* 02 / Co oferujemy */
.offering { background: var(--home-bg-alt); border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
.offering-head { display: flex; justify-content: space-between; gap: 60px; align-items: flex-end; margin-bottom: 45px; }
.offering-head p { max-width: 400px; color: var(--home-body); font-size: 17px; line-height: 1.62; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature {
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  padding: 32px 27px 35px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  transition: transform .18s;
}
.feature:hover { transform: translateY(-4px); }
.feature .num { color: var(--home-accent); font-size: 14px; font-weight: 950; }
.feature h3 { font-size: 27px; line-height: 1.13; letter-spacing: -.06em; text-transform: uppercase; margin: 55px 0 13px; font-weight: 900; }
.feature p { font-size: 14px; line-height: 1.65; color: var(--home-body); margin: 0; }

/* 03 / Nasi ludzie */
.portrait-section { background: var(--home-bg-deep); color: var(--home-text); overflow: hidden; padding: 95px 0 105px; }
.portrait-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 35px; }
.portrait-top .section-title { font-size: clamp(38px, 4.6vw, 60px); }
.portrait-top p { max-width: 380px; color: var(--home-body); font-size: 18px; line-height: 1.5; }
.portraits { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }
.portraits .photo { height: 400px; overflow: hidden; position: relative; background: var(--home-photo-bg); }
.portraits .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.portraits .photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, var(--home-photo-shade)); }
.portraits .photo span {
  position: absolute;
  bottom: 18px;
  left: 19px;
  z-index: 2;
  color: var(--home-text);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.portrait-bottom {
  border-top: 1px solid var(--home-line-strong);
  margin-top: 30px;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.portrait-bottom strong { font-size: 23px; letter-spacing: -.03em; }
.portrait-bottom p { font-size: 14px; color: var(--home-body); margin: 0; max-width: 480px; line-height: 1.5; }

/* 04 / Gdzie nas spotkasz */
.schedule { padding: 116px 0; }
.schedule-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 50px; margin-bottom: 38px; }
.schedule-head p { max-width: 440px; margin: 0; color: var(--home-body); line-height: 1.6; font-size: 18px; }
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.day { background: var(--home-surface); border: 1px solid var(--home-line); padding: 34px; display: grid; grid-template-columns: 135px 1fr; gap: 20px; }
.day .when span { display: block; color: var(--home-accent); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.day .when strong { font-size: 37px; font-weight: 950; letter-spacing: -.06em; }
.day h3 { font-size: 26px; font-weight: 950; letter-spacing: -.06em; margin: 0 0 12px; text-transform: uppercase; }
.day p { font-size: 15px; color: var(--home-body); line-height: 1.6; margin: 0; }
.day em { font-style: normal; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; display: block; margin-top: 21px; }
.event-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  background: var(--home-tint-strong);
  border: 1px solid var(--home-tint-line);
  padding: 22px 28px;
}
.event-line p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--home-body); }
.event-line strong { font-size: 17px; color: var(--home-text); }
.event-line a {
  white-space: nowrap;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--home-accent);
  text-underline-offset: 4px;
  font-size: 13px;
}
.event-line a:hover { color: var(--home-accent); }

/* 05 / Poza treningiem */
.extra { background-color: var(--home-bg-alt); background-image: linear-gradient(var(--home-tint), var(--home-tint)); }
.extra .section-title { font-size: clamp(38px, 4.2vw, 60px); }
.extras-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; margin-top: 40px; }
.extras-grid .picstrip { height: 425px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.extras-grid .picstrip img { width: 100%; height: 100%; object-fit: cover; background: var(--home-photo-bg); }
.extras-list { margin: 0; padding: 0; list-style: none; }
.extras-list li {
  padding: 19px 0;
  border-top: 1px solid var(--home-line-strong);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
}
.extras-list li:last-child { border-bottom: 1px solid var(--home-line-strong); }
.extras-list span { color: var(--home-accent); font-size: 12px; font-weight: 950; margin-top: 3px; }
.extras-note { margin-top: 21px; line-height: 1.65; color: var(--home-body); font-size: 16px; }

/* Blok w kolorze akcentu przed stopką. */
.final { background: var(--home-accent); color: var(--home-on-accent); padding: 118px 0 94px; text-align: center; }
.final h2 {
  font-size: clamp(47px, 7.4vw, 112px);
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: .97;
  margin: 28px auto 27px;
  text-transform: uppercase;
  max-width: 1100px;
}
/* Ciemny prostokąt zamiast tła linii, które przy niskiej interlinii zachodziło na wiersz wyżej. */
.final h2 span {
  display: inline-block;
  margin-top: .12em;
  padding: .02em .12em .08em;
  background: var(--home-on-accent);
  color: var(--home-accent);
}
.final p { font-size: 19px; color: var(--home-on-accent-body); max-width: 630px; line-height: 1.55; margin: 0 auto 34px; }
.final .btn { padding: 0 36px; min-height: 66px; background: var(--home-on-accent); color: var(--home-text); }
.final .btn:hover { background: var(--home-on-accent-button-hover); }
.final .final-small { font-size: 12px; margin: 21px auto 0; }

.footer { background: var(--home-bg-deep); color: var(--home-muted); padding: 35px 0; border-top: 1px solid var(--home-line); }
.footer-row { display: flex; gap: 30px; justify-content: space-between; align-items: center; font-size: 12px; }
.footer a:hover { color: var(--home-text); }
.footer-side { display: flex; flex-wrap: wrap; gap: 25px; align-items: center; }

/* Zgłoszenia wyłączone w Ustawieniach klubu: zamiast przycisków „Dołącz” informacja o przerwie. */
.btn.is-paused,
.btn.is-paused:hover { background: var(--home-paused-bg); color: var(--home-paused-text); cursor: default; transform: none; }
.final .btn.is-paused,
.final .btn.is-paused:hover { background: var(--home-on-accent-soft); color: var(--home-on-accent); }
.event-line .is-paused { white-space: nowrap; font-weight: 900; font-size: 13px; color: var(--home-muted); }

@media (max-width: 1180px) {
  .wrap { padding: 0 26px; }
  .hero-copy h1 { font-size: clamp(55px, 6.5vw, 80px); }
  .hero-gallery { height: 550px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature { min-height: 260px; }
  .feature h3 { margin-top: 30px; }
  .navlinks { gap: 20px; }
}

/* Kotwice nie mieszczą się obok obu przycisków. */
@media (max-width: 1040px) {
  .navlinks { display: none; }
}

@media (max-width: 760px) {
  .navline { height: 68px; gap: 12px; }
  .brand-logo,
  .footer .brand-logo { height: 44px; }
  .nav-btn { min-height: 41px; padding: 0 13px; font-size: 11px; }
  .hero { padding-top: 15px; padding-bottom: 35px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 48px 0 25px; }
  .hero-copy h1 { font-size: clamp(56px, 12vw, 88px); margin: 19px 0 21px; }
  .hero-copy p { font-size: 17px; }
  .hero-buttons { margin: 25px 0 16px; }
  .hero-copy .hero-login { margin-bottom: 24px; font-size: 14px; }
  .hero-gallery { height: 420px; margin-bottom: 20px; }
  .pic.primary { width: 64%; height: 88%; }
  .pic.secondary { top: 0; width: 39%; height: 52%; }
  .pic.tertiary { width: 39%; height: 45%; right: 0; bottom: 0; }
  .hero-rotate { font-size: 14px; left: 30%; bottom: 7%; padding: 11px; }
  .tape-line { font-size: 12px; flex-wrap: wrap; justify-content: center; gap: 8px 17px; }
  .tape { padding: 19px 0; }
  .section-pad { padding: 73px 0; }
  .section-title { font-size: clamp(41px, 10vw, 64px); }
  .two-col,
  .schedule-head,
  .extras-grid { grid-template-columns: 1fr; gap: 26px; }
  .body-copy { font-size: 17px; }
  .problem-grid { gap: 7px; }
  .problem-grid span { padding: 14px; font-size: 12px; }
  .offering-head { display: block; }
  .offering-head p { font-size: 16px; }
  .features { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature { padding: 23px 18px; min-height: 270px; }
  .feature h3 { font-size: 22px; margin-top: 31px; }
  .feature p { font-size: 12px; }
  .portrait-section { padding: 77px 0; }
  .portrait-top { display: block; }
  .portrait-top p { font-size: 16px; }
  .portraits { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .portraits .photo { height: 310px; }
  .portrait-bottom { display: block; }
  .portrait-bottom p { margin-top: 13px; }
  .schedule { padding: 75px 0; }
  .days { grid-template-columns: 1fr; }
  .day { grid-template-columns: 110px 1fr; padding: 22px; gap: 12px; }
  .day h3 { font-size: 21px; }
  .day .when strong { font-size: 30px; }
  .event-line { display: block; padding: 21px; }
  .event-line a,
  .event-line .is-paused { display: block; margin-top: 14px; }
  .extras-grid .picstrip { height: 340px; }
  .final { padding: 80px 0; }
  .final h2 { font-size: clamp(50px, 11vw, 86px); }
  .final p { font-size: 16px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .microline { font-size: 10px; }
}

/* Wąski telefon: logo, „Zaloguj się” i krótsze „Dołącz” w jednym rzędzie (od 320 px). */
@media (max-width: 430px) {
  .navline { gap: 8px; }
  .navline .brand-logo { height: 32px; }
  .nav-actions { gap: 6px; }
  .nav-btn { padding: 0 11px; }
  .nav-cta__more,
  .nav-cta.is-paused { display: none; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 18px; }
  .hero-copy h1 { font-size: 51px; }
  .hero-buttons .btn { flex: 1; padding: 0 12px; font-size: 11px; }
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 210px; }
  .feature h3 { margin-top: 20px; }
  .day { grid-template-columns: 1fr; }
  .portraits .photo { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
