/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #f1f2f5; /* lekko szare tło */
  line-height: 1.6;
}

/* Kolory klubu */
:root {
  --club-black: #050509;
  --club-navy: #0b1b3b;
  --accent: #1674ff;
  --accent-soft: rgba(22, 116, 255, 0.12);
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --border-soft: rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* Layout */

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  max-width: 620px;
  margin-inline: auto;
}

/* Typografia */

h1, h2, h3 {
  margin-top: 0;
  color: var(--club-black);
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.1rem);
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.4rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

p {
  margin-top: 0;
  color: var(--text-main);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(241, 242, 245, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #dbeafe, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-name {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--club-black);
}

.logo-accent {
  color: var(--club-navy);
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.3rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--club-black);
  position: relative;
  padding-block: 0.2rem;
}

.main-nav a span[data-lang] {
  display: none;
}

html[data-lang="pl"] .main-nav a span[data-lang="pl"],
html[data-lang="en"] .main-nav a span[data-lang="en"] {
  display: inline;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--club-navy), var(--accent));
  transition: width 0.18s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Language switch */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.15rem;
  background-color: rgba(15, 23, 42, 0.06);
}

.lang-btn {
  border-radius: 999px;
  border: none;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  background: transparent;
  color: #374151;
}

.lang-btn.active {
  background-color: #0f172a;
  color: #f9fafb;
}

/* Mobile nav toggle */

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background-color: #0f172a;
}

/* HERO */

.hero {
  position: relative;
  min-height: 85vh;
  color: #f9fafb;
  overflow: hidden;
  background-color: #020617;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.35)),
    url("https://images.pexels.com/photos/3991871/pexels-photo-3991871.jpeg");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 85vh;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  align-items: center;
  padding-block: 4.5rem;
}

.hero-panel {
  max-width: 480px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.6rem;
  padding: 2.1rem 2.3rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.85);
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d1fae5;
  margin-bottom: 0.9rem;
}

.hero-panel h1 {
  color: #f9fafb;
  margin-bottom: 0.3rem;
}

.hero-motto {
  font-size: 1.15rem;
  font-weight: 500;
  color: #bfdbfe;
  margin-bottom: 1.3rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.hero-stat {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

.hero-stat-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: #e5f0ff;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: #cbd5f5;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
  background 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--club-navy), var(--accent));
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(6, 78, 197, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(6, 78, 197, 0.8);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: rgba(15, 23, 42, 0.7);
}

.btn-full {
  width: 100%;
}

/* O klubie */

.section-about {
  background-color: #f1f2f5;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr);
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.about-photo {
  border-radius: 1.3rem;
  min-height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.65), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-photo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.about-photo:hover::after {
  opacity: 1;
}

/* zdjęcia przykładowe */
.about-photo-1 {
  grid-column: 1 / -1;
  min-height: 210px;
  background-image: url("https://images.pexels.com/photos/3991872/pexels-photo-3991872.jpeg");
}

.about-photo-2 {
  background-image: url("https://images.pexels.com/photos/3991870/pexels-photo-3991870.jpeg");
}

.about-photo-3 {
  background-image: url("https://images.pexels.com/photos/3991875/pexels-photo-3991875.jpeg");
}

/* HARMONOGRAM */

.section-schedule {
  background-color: var(--bg-card);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.schedule-card {
  background-color: #f9fafb;
  border-radius: 1.4rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.schedule-card::before {
  content: "";
  position: absolute;
  inset-inline: 1.4rem;
  top: 0.95rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--club-black), var(--club-navy));
}

.schedule-card h3 {
  margin-top: 0.6rem;
}

.schedule-time {
  font-weight: 500;
  color: var(--club-navy);
  margin-bottom: 0.4rem;
}

.schedule-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* TRENERZY */

.section-coaches {
  background-color: #f1f2f5;
}

.coaches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.coach-card {
  background-color: var(--bg-card);
  border-radius: 1.4rem;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.coach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
}

.coach-avatar {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  margin-bottom: 0.3rem;
  border: 2px solid rgba(37, 99, 235, 0.9);
}

.coach-avatar-1 {
  background-image: url("https://images.pexels.com/photos/3763871/pexels-photo-3763871.jpeg");
}

.coach-avatar-2 {
  background-image: url("https://images.pexels.com/photos/3760850/pexels-photo-3760850.jpeg");
}

.coach-avatar-3 {
  background-image: url("https://images.pexels.com/photos/3597113/pexels-photo-3597113.jpeg");
}

.coach-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--club-navy);
}

.coach-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.club-structure {
  margin-top: 2.3rem;
  background-color: var(--bg-card);
  border-radius: 1.5rem;
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.club-structure ul {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
}

.club-structure li + li {
  margin-top: 0.4rem;
}

.club-structure strong {
  color: var(--club-black);
}

/* GALERIA */

.section-gallery {
  background-color: var(--bg-card);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 1.3rem;
  overflow: hidden;
  cursor: pointer;
  background-color: #e5e7eb;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item::after {
  content: "Powiększ";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.35rem 0;
  text-align: center;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  font-size: 0.78rem;
  color: #f9fafb;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  z-index: 60;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 1.1rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  border: none;
  background: none;
  color: #f9fafb;
  font-size: 2rem;
  cursor: pointer;
}

/* DOŁĄCZ */

.section-join {
  background-color: #f1f2f5;
}

.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: flex-start;
}

.join-text p {
  color: var(--text-muted);
}

.join-text ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.join-text li {
  font-size: 0.95rem;
  color: var(--text-main);
}

.join-form-card {
  background-color: var(--bg-card);
  border-radius: 1.6rem;
  padding: 2rem 1.9rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--club-black);
}

input,
textarea {
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.9);
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #f9fafb;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(22, 116, 255, 0.6);
}

textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.7rem;
}

/* FAQ */

.section-faq {
  background-color: var(--bg-card);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border-radius: 1.1rem;
  border: 1px solid var(--border-soft);
  background-color: #f9fafb;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.faq-toggle-indicator {
  font-weight: 700;
  color: var(--accent);
  margin-left: 0.8rem;
}

.faq-answer {
  padding: 0 1rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-toggle-indicator {
  transform: rotate(45deg);
}

/* KONTAKT */

.section-contact {
  background-color: #f1f2f5;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: flex-start;
}

.contact-info p {
  color: var(--text-muted);
}

.contact-details {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.contact-details li + li {
  margin-top: 0.4rem;
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-social {
  margin-top: 1.4rem;
  font-size: 0.9rem;
}

.social-links {
  display: inline-flex;
  gap: 0.6rem;
  margin-left: 0.4rem;
}

.social-links a {
  text-decoration: none;
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  font-size: 0.8rem;
}

.social-links a:hover {
  background-color: rgba(22, 116, 255, 0.2);
}

.contact-map iframe {
  width: 100%;
  min-height: 260px;
  border-radius: 1.4rem;
  box-shadow: var(--shadow-soft);
}

/* STOPKA */

.site-footer {
  background-color: #020617;
  color: #e5e7eb;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 2.4rem;
  padding-bottom: 2.1rem;
  border-bottom: 1px solid rgba(30, 64, 175, 0.7);
}

.footer-column h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #f9fafb;
}

.footer-column p {
  margin: 0;
  font-size: 0.86rem;
  color: #9ca3af;
}

.footer-nav,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
}

.footer-nav li + li,
.footer-contact li + li {
  margin-top: 0.3rem;
}

.footer-nav a,
.footer-contact a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  text-decoration: underline;
}

.footer-cta {
  margin-top: 0.6rem;
}

.footer-cta .btn {
  padding-inline: 1.1rem;
  font-size: 0.85rem;
}

.footer-bottom {
  padding: 1rem 0 2.2rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.footer-note {
  color: #9ca3af;
}

/* Scroll reveal / micro animacje */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stany formularzy */

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #b91c1c;
}

/* Dwujęzyczność – ukrywanie */

[data-lang] {
  display: none;
}

html[data-lang="pl"] [data-lang="pl"],
html[data-lang="en"] [data-lang="en"] {
  display: inline;
}

/* RWD */

@media (max-width: 960px) {
  .about-grid,
  .schedule-grid,
  .coaches-grid,
  .gallery-grid,
  .join-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 4.1rem;
    row-gap: 1.8rem;
  }

  .hero-panel {
    max-width: 100%;
  }

  .hero-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 2rem, 100%);
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: rgba(241, 242, 245, 0.98);
    transition: max-height 0.2s ease;
  }

  .main-nav.open {
    max-height: 280px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 1.5rem 1.1rem;
    gap: 0.4rem;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 3.8rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    padding: 1.8rem 1.5rem;
  }
}
