/* ============================================================
   TitanGYM — style.css
   Redesign: ostre kąty · Space Grotesk display · limonka #AAFF00
   ============================================================ */

/* ── 1. Zmienne CSS ── */
:root {
  --black:         #0D0F14;
  --white:         #ffffff;
  --dark-bg:       #111111;       /* ciemne tło: "O nas", "Opinie", footer */
  --dark-surface:  #1C1C1C;       /* karty na ciemnym tle */
  --gray-bg:       #f4f4f4;
  --gray-text:     #393c41;
  --gray-muted:    #5c5e62;
  --accent:        #AAFF00;       /* elektryczna limonka — główny akcent */
  --accent-dark:   #88CC00;       /* hover akcentu */
  --border:        #d0d1d2;
  --border-dark:   #2A2A2A;
  --header-h:      56px;
  --btn-radius:    0px;           /* ostre kąty — styl architektoniczny */
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:  'Space Grotesk', var(--font); /* grotesk display dla h1, h2, logo */
  --transition:    0.2s ease;
}

/* ── 2. Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

main { scroll-snap-type: y proximity; }

/* ── 3. Dostępność: focus-visible ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── 4. Scroll-reveal (IntersectionObserver dodaje .revealed) ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── 5. Header ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition), border-color var(--transition);
}

#header.on-light {
  background: var(--white);
  border-bottom-color: var(--border);
}

.header-inner {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── 6. Logo ── */
.logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  z-index: 2;
}

.logo-main  { color: var(--white); transition: color var(--transition); }
.logo-accent { color: var(--accent); } /* zawsze w kolorze akcentu */

#header.on-light .logo-main { color: var(--black); }

/* ── 7. Nawigacja ── */
#nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
}

#nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: opacity var(--transition);
}

#nav a:hover { opacity: 0.7; }

#header.on-light #nav a { color: var(--gray-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

#header.on-light .nav-toggle span { background: var(--black); }

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 8. Przyciski ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: var(--black); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary { background: rgba(244, 244, 244, 0.85); color: var(--gray-text); }
.btn-secondary:hover { background: var(--gray-bg); }

.btn-outline {
  background: transparent;
  color: var(--gray-text);
  border: 2px solid var(--gray-text);
  padding: 10px 26px;
}

.btn-outline:hover { background: var(--gray-text); color: var(--white); }

.btn-full { width: 100%; min-width: 0; }

/* ── 9. Panele hero / oferta ── */
.panel {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}

.panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  /* Spójny filtr: czarno-biały duotone na wszystkich zdjęciach paneli */
  filter: grayscale(0.8) contrast(1.15);
}

/* Gradient overlay — tekst lepiej kontrastuje na tle zdjęcia */
.panel-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.20) 50%,
    rgba(0,0,0,0.72) 100%
  );
}

.panel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: calc(var(--header-h) + 24px) 24px 24px;
  width: 100%;
  max-width: 800px;
}

.panel-content h1,
.panel-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.panel-sub {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 32px;
  opacity: 0.88;
  letter-spacing: 0.01em;
}

.panel-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.panel-offer .panel-content {
  padding-top: calc(var(--header-h) + 32px);
}

/* Hero: nieco większy h1 */
.panel-hero .panel-content h1 {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
}

/* ── 9b. Mikro-etykiety na panelach (inspiracja: Kern/Flexsync) ── */
.panel-label {
  position: absolute;
  z-index: 1;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
}

.panel-label-tl { top: calc(var(--header-h) + 20px); left: 24px; }
.panel-label-tr { top: calc(var(--header-h) + 20px); right: 24px; text-align: right; }
.panel-label-bl { bottom: 28px; left: 24px; }

@media (max-width: 720px) {
  .panel-label-tr { display: none; }
}

/* ── 9c. Hero: ghost-text + split-reveal nagłówka ── */
.ghost-text {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  color: rgba(255,255,255,0.16);
  letter-spacing: -0.01em;
  margin-bottom: -0.6em;
  user-select: none;
}

.split-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.split-reveal .word.shown {
  opacity: 1;
  transform: translateY(0);
}

/* ── 9d. Live badge (licznik osób trenujących teraz) ── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 28px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.25);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(170,255,0,0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(170,255,0,0); }
}

/* ── 9e. Hero: podpis zespołu (inspiracja: Day One founder signoff) ── */
.hero-signoff {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.hero-signoff .signature {
  font-family: 'Space Grotesk', cursive;
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-signoff strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.hero-signoff span {
  display: block;
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
}

/* ── 9f. Pasek informacyjny na dole hero (inspiracja: Day One "NEXT RUN") ── */
.panel-infobar {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(13,15,20,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  max-width: 480px;
}

.infobar-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.infobar-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  flex: 1;
}

.btn-mini {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: var(--black);
  flex-shrink: 0;
}

.btn-mini:hover { background: var(--accent-dark); }

@media (max-width: 640px) {
  .panel-infobar { flex-wrap: wrap; bottom: 16px; left: 16px; right: 16px; }
}

/* ── 9g. Magnetic buttons (przesunięcie w stronę kursora) ── */
.btn-primary,
.btn-secondary {
  will-change: transform;
}

/* ── 9h. Spotlight / glow na kartach cennika podążający za kursorem ── */
.price-card { position: relative; overflow: hidden; }

.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    260px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(170,255,0,0.18),
    transparent 70%
  );
}

.price-card:hover .card-glow { opacity: 1; }

.price-card > *:not(.card-glow) { position: relative; z-index: 1; }

/* ── 9i. Hover na panelach oferty: subtelny zoom zdjęcia ── */
.panel-offer .panel-bg {
  transition: transform 0.6s ease;
}

.panel-offer:hover .panel-bg {
  transform: scale(1.06);
}

.panel-offer:hover .panel-content {
  transform: translateY(-4px);
}

.panel-content { transition: transform 0.4s ease; }

/* ── 9j. Hero: ruchome światło podążające za kursorem ── */
.panel-hero { perspective: 1200px; }

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    480px circle at var(--hx, 50%) var(--hy, 50%),
    rgba(170,255,0,0.16),
    rgba(255,255,255,0.05) 38%,
    transparent 70%
  );
  mix-blend-mode: screen;
}

.panel-hero:hover .hero-spotlight { opacity: 1; }

.panel-hero .panel-bg,
.panel-hero .panel-content {
  transition: transform 0.25s ease-out;
  will-change: transform;
}

@media (max-width: 720px) {
  .hero-spotlight { display: none; }
}

/* ── 10. Typografia nagłówków sekcji ── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--black);
}

.section-header p {
  color: var(--gray-muted);
  font-size: 15px;
}

/* Etykieta sekcji — zawsze w kolorze akcentu */
.label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ── 11. Sekcja O nas — ciemne tło, asymetryczny bleed layout ── */
.section-about {
  background: var(--dark-bg);
  padding: 0;
  overflow: hidden;
}

.about-grid {
  max-width: none;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 0;
  align-items: stretch;
  min-height: 640px;
}

.about-image {
  position: relative;
  overflow: hidden;
}

/* Grayscale + kontrast na zdjęciu "O nas" */
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  display: block;
}

/* Gradient bleed — zdjęcie "wychodzi" w kierunku tekstu */
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 55%,
    var(--dark-bg) 100%
  );
  pointer-events: none;
}

.about-text {
  padding: 80px 80px 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.about-text p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
}

/* ── 12. Bento-grid statystyk ── */
.about-stats.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 40px;
  border-top: none;
  padding-top: 0;
}

/* Kafelek rozciągnięty na całą szerokość */
.bento-full { grid-column: 1 / -1; }

.about-stats li {
  background: var(--dark-surface);
  padding: 22px 20px;
  border-left: 3px solid var(--accent);
}

.about-stats strong {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}

.bento-full strong { font-size: 4.5rem; }

.about-stats span {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── 13. Cennik — jasne tło ── */
.section-pricing {
  padding: 96px 48px;
  background: var(--gray-bg);
}

.pricing-grid {
  max-width: 1200px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start; /* pozwala wyróżnionej karcie być wyższą */
}

.price-card {
  background: var(--white);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}

/* Wyróżniona karta: ciemne tło, uniesiona, z mocnym cieniem */
.price-card-featured {
  background: var(--black);
  color: var(--white);
  padding-top: 52px;
  transform: scale(1.03) translateY(-12px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  z-index: 1;
}

.price-card-featured:hover {
  transform: scale(1.03) translateY(-18px);
  box-shadow: 0 36px 80px rgba(0,0,0,0.38);
}

.price-badge {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  white-space: nowrap;
}

.price-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--gray-muted);
  margin-bottom: 8px;
}

.price-card-featured .price-tag { color: rgba(255,255,255,0.45); }

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--black);
  letter-spacing: -0.01em;
}

.price-card-featured h3 { color: var(--white); }

.price-amount { margin-bottom: 12px; }

.price-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--black);
  letter-spacing: -0.02em;
}

.price-card-featured .price-value { color: var(--accent); }

.price-currency {
  font-size: 13px;
  color: var(--gray-muted);
  margin-left: 4px;
}

.price-card-featured .price-currency { color: rgba(255,255,255,0.45); }

.price-desc {
  font-size: 13px;
  color: var(--gray-muted);
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.65;
}

.price-card-featured .price-desc { color: rgba(255,255,255,0.55); }

.price-features { margin-bottom: 28px; }

.price-features li {
  font-size: 13px;
  padding: 6px 0 6px 16px;
  color: var(--gray-muted);
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Limonkowy myślnik zamiast bullet */
.price-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 7px;
  font-size: 10px;
  color: var(--accent);
}

.price-card-featured .price-features li {
  color: rgba(255,255,255,0.65);
  border-bottom-color: var(--border-dark);
}

.price-card .btn { margin-top: auto; min-width: 0; width: 100%; }

/* btn-outline na ciemnej wyróżnionej karcie */
.price-card-featured .btn-outline {
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.price-card-featured .btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

/* ── 14. Opinie — ciemne tło ── */
.section-opinions {
  padding: 96px 48px;
  background: var(--dark-bg);
  overflow: hidden;
}

/* Nagłówek sekcji na ciemnym tle */
.section-opinions .section-header h2 { color: var(--white); }
.section-opinions .section-header p  { color: rgba(255,255,255,0.45); }

.opinions-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.opinions-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.opinions-track::-webkit-scrollbar { display: none; }

.opinion-card {
  flex: 0 0 min(360px, 85vw);
  scroll-snap-align: start;
  background: var(--dark-surface);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.opinion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.opinion-stars {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.opinion-text {
  font-size: 14px;
  color: rgba(255,255,255,0.70);
  margin-bottom: 24px;
  line-height: 1.75;
}

.opinion-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
}

.opinion-role {
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  margin-top: 2px;
}

/* Nawigacja karuzeli: strzałki + kropki */
.opinions-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.opinions-prev,
.opinions-next {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-dark);
  background: var(--dark-surface);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.opinions-prev:hover,
.opinions-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.opinions-dots { display: flex; align-items: center; gap: 8px; }

.opinions-dot {
  width: 6px;
  height: 6px;
  background: var(--border-dark);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width 0.3s ease;
}

/* Aktywna kropka: szersza */
.opinions-dot.active {
  background: var(--accent);
  width: 22px;
}

/* ── 15. Kontakt — jasne tło ── */
.section-contact {
  padding: 96px 48px;
  background: var(--gray-bg);
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--black);
  letter-spacing: -0.02em;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-item strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--gray-muted);
  margin-bottom: 4px;
}

.contact-item p { font-size: 14px; color: var(--gray-text); }

/* Linki w kontakcie: podkreślenie w kolorze akcentu */
.contact-item a {
  color: var(--gray-text);
  border-bottom: 1px solid var(--accent);
  transition: color var(--transition);
}

.contact-item a:hover { color: var(--black); }

.contact-map { min-height: 420px; }

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* ── 16. Stopka — ciemne tło ── */
footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.4);
  padding: 24px 48px;
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-footer .logo-main  { color: var(--white); }
.logo-footer .logo-accent { color: var(--accent); }

.footer-copy { font-size: 12px; text-align: right; line-height: 1.6; }

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

/* ── 17. Modalne okna ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}

.modal-box {
  position: relative;
  background: var(--white);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-training { max-width: 560px; }

/* Grayscale na zdjęciu w modalu treningu */
.modal-training img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 24px;
  filter: grayscale(0.7) contrast(1.1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-bg);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-muted);
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover { background: var(--border); color: var(--black); }

.modal-box h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
  letter-spacing: -0.01em;
}

.modal-sub { color: var(--gray-muted); margin-bottom: 24px; font-size: 14px; }

#trainingDesc {
  color: var(--gray-muted);
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 14px;
}

#trainingDesc ul { list-style: none; margin-top: 12px; }

#trainingDesc li {
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

#trainingDesc li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── 18. Formularz ── */
.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: var(--gray-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  background: var(--white);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(170,255,0,0.18);
}

.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid { border-color: #b74134; }

.error {
  display: block;
  color: #b74134;
  font-size: 12px;
  margin-top: 4px;
  min-height: 1.2em;
}

.form-msg { text-align: center; margin-top: 16px; font-size: 14px; min-height: 1.4em; }
.form-msg.success { color: var(--black); }
.form-msg.error   { color: #b74134; }

/* ── 19. Responsive ── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* About: stack pionowo na tablecie */
  .about-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .about-image { min-height: 360px; max-height: 50vh; }

  /* Gradient zmienia kierunek: fade w dół */
  .about-image::after {
    background: linear-gradient(
      to bottom,
      transparent 45%,
      var(--dark-bg) 100%
    );
  }

  .about-text { padding: 48px 32px 64px; }

  .about-stats.bento-grid { grid-template-columns: 1fr 1fr; }
  .about-stats strong     { font-size: 2.75rem; }
  .bento-full strong      { font-size: 3.5rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  #nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    transform: none;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border-dark);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  #nav.open { opacity: 1; pointer-events: auto; }

  #nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-dark);
    color: var(--white) !important;
  }

  #nav a:last-child { border-bottom: none; }

  .panel-actions { flex-direction: column; align-items: center; }

  .btn { min-width: 240px; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  /* Na mobile scale jest za mały — tylko translateY */
  .price-card-featured {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  }
  .price-card-featured:hover {
    transform: translateY(-14px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.32);
  }

  .contact-grid { grid-template-columns: 1fr; }

  .about-text    { padding: 40px 24px 56px; }
  .about-stats.bento-grid { grid-template-columns: 1fr 1fr; }

  .section-pricing,
  .section-opinions,
  .section-contact { padding: 64px 24px; }

  footer          { padding: 24px; }
  .footer-inner   { flex-direction: column; text-align: center; }
  .footer-copy    { text-align: center; }
  .footer-social  { order: 2; }
}
