/* ============================================================
   FITNESS ŚWIAT — nowoczesna wizytówka
   ============================================================ */
:root {
  --bg: #0b0d10;
  --bg-soft: #12151a;
  --bg-card: #171b21;
  --line: #242a33;
  --text: #e8ecf1;
  --text-dim: #9aa4b2;
  --accent: #c8f04c;
  --accent-ink: #11150a;
  --radius: 14px;
  --maxw: 1140px;
  --nav-h: 64px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- DOSTĘPNOŚĆ ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Treść widoczna tylko dla czytników ekranu (podpisy tabel, komunikaty o filtrze). */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  background: var(--accent); color: var(--accent-ink); padding: 12px 20px;
  border-radius: 10px; font-weight: 700;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; text-decoration: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(11,13,16,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(11,13,16,.92); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-weight: 900; letter-spacing: .14em; font-size: 1.15rem; color: var(--text); }
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--text-dim); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__links a.is-current { color: var(--text); }
.nav__links a.is-current::after {
  content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--accent);
}
.nav__links a.nav__cta.is-current::after { display: none; }
.nav__links a.nav__cta {
  color: var(--accent-ink); background: var(--accent); padding: 8px 16px; border-radius: 999px;
  font-weight: 700; letter-spacing: .02em;
}
.nav__links a.nav__cta:hover { filter: brightness(1.08); color: var(--accent-ink); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.nav__burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05);
  background-image: none; /* zapas dla przeglądarek bez image-set */
  background-image: none;
}
/* Na telefonie starczy wariant 900 px — trzy razy mniej danych na łączu komórkowym. */
@media (max-width: 900px) {
  .hero__bg {
    background-image: none;
    background-image: none;
  }
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,13,16,.55) 0%, rgba(11,13,16,.35) 40%, var(--bg) 100%),
    radial-gradient(120% 90% at 50% 10%, rgba(11,13,16,.25) 0%, rgba(11,13,16,.75) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 0 24px; max-width: 860px; }
.hero__eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; font-weight: 600;
  color: var(--accent); border: 1px solid rgba(200,240,76,.35); border-radius: 999px; padding: 7px 18px; margin-bottom: 26px;
  background: rgba(200,240,76,.06);
}
.hero__title { font-size: clamp(3rem, 9vw, 6.2rem); font-weight: 900; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.hero__title span { color: var(--accent); }
.hero__sub { margin: 22px auto 34px; max-width: 620px; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text-dim); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__meta { margin-top: 44px; color: var(--text-dim); font-size: .95rem; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--text-dim); font-size: 1.5rem; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- BUTTONS ---------- */
.btn { display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 700; font-size: .98rem; transition: transform .18s, box-shadow .18s, background .18s; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200,240,76,.28); text-decoration: none; color: var(--accent-ink); }
.btn--ghost { border: 1px solid rgba(232,236,241,.3); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); text-decoration: none; }

/* ---------- SECTIONS ---------- */
.section { padding: 104px 0; }
.section--dark { background: var(--bg-soft); border-block: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.section__title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 48px; letter-spacing: -.01em; }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.about__photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.about__photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(11,13,16,.75); backdrop-filter: blur(6px); padding: 6px 14px; border-radius: 999px; font-size: .82rem; color: var(--text-dim); }
.about__text p { color: var(--text-dim); margin-bottom: 16px; font-size: 1.04rem; }
.about__text strong { color: var(--text); }
:is(.about__points, .about__text ul) { list-style: none; margin: 22px 0 30px; display: grid; gap: 12px; }
:is(.about__points, .about__text ul) li { position: relative; padding-left: 30px; color: var(--text); }
:is(.about__points, .about__text ul) li::before { content: "✔"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- CARDS (zajęcia) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); border-color: rgba(200,240,76,.45); box-shadow: var(--shadow); }
.card__img { overflow: hidden; aspect-ratio: 4/3; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 20px 22px 24px; }
.card__body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card__body p { color: var(--text-dim); font-size: .93rem; }

/* ---------- PLAN ZAJĘĆ ---------- */
.plan__main { max-width: 880px; min-width: 0; }
.plan__table-wrap { overflow-x: auto; }
.plan__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.plan__table thead th { text-align: left; padding: 13px 11px; background: var(--bg-card); border: 1px solid var(--line); color: var(--accent); text-transform: uppercase; letter-spacing: .04em; font-size: .76rem; }
.plan__table td, .plan__table tbody th { padding: 13px 11px; border: 1px solid var(--line); background: var(--bg-soft); text-align: left; font-weight: 400; }
.plan__table .plan__time { font-weight: 800; color: var(--accent); white-space: nowrap; }
.plan__note { margin-top: 18px; color: var(--text-dim); font-size: .95rem; }
.plan__note strong { color: var(--text); }
.plan__note--warn { margin-top: 10px; font-size: .88rem; opacity: .85; }

/* ---------- CENNIK ---------- */
.pricing { max-width: 860px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.price-table thead th { text-align: left; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--line); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.price-table thead th:first-child { width: 44%; }
.price-table td, .price-table tbody th { padding: 14px 18px; border: 1px solid var(--line); background: var(--bg-soft); text-align: left; }
.price-table tbody th { font-weight: 400; }
.price-table tbody tr { transition: background .18s; }
.price-table tbody tr:hover th, .price-table tbody tr:hover td { background: rgba(200,240,76,.05); }
.price-table td { font-weight: 700; white-space: nowrap; }
.price-table .price-table__hot th, .price-table .price-table__hot td { background: linear-gradient(90deg, rgba(200,240,76,.10), rgba(200,240,76,.03)); }
.price-table .price-table__hot th { color: var(--accent); }
.price-table em { font-style: normal; color: var(--accent); font-weight: 700; }
.pricing__sauna { margin-top: 22px; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.pricing__sauna strong { color: var(--text); }
.pricing__sauna a { color: var(--accent); }
.pricing__foot { margin-top: 22px; color: var(--text-dim); }
.pricing__foot strong { color: var(--text); }

/* ---------- SAUNA ---------- */
.sauna { display: grid; grid-template-columns: 1fr 1.2fr; gap: 52px; align-items: center; }
.sauna__photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sauna__photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.sauna__text p { color: var(--text-dim); margin-bottom: 20px; font-size: 1.04rem; }
.sauna__facts { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.sauna__facts li { position: relative; padding-left: 28px; }
.sauna__facts li::before { content: "🔥"; position: absolute; left: 0; font-size: .9rem; }
.sauna__regulamin { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.sauna__regulamin summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: .95rem; }
.sauna__regulamin ol { padding: 0 20px 20px 44px; color: var(--text-dim); font-size: .88rem; display: grid; gap: 8px; }

/* ---------- GALERIA ---------- */
.gallery__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter { background: var(--bg-card); border: 1px solid var(--line); color: var(--text-dim); padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 600; transition: all .18s; font-family: inherit; }
.filter:hover { color: var(--text); border-color: rgba(200,240,76,.4); }
.filter.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item {
  position: relative; display: block; padding: 0; border: 0; background: none; font: inherit;
  border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4/3;
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .4s, transform .4s;
}
.gallery__item.is-visible { opacity: 1; transform: none; }
.gallery__item picture { display: block; width: 100%; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .25s; }
.gallery__item:hover span, .gallery__item:focus-visible span { opacity: 1; }
.gallery__empty { grid-column: 1/-1; color: var(--text-dim); text-align: center; padding: 40px; }
.gallery__noscript { color: var(--text-dim); margin-bottom: 20px; }
.gallery--static img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq__item { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq__item:hover, .faq__item[open] { border-color: rgba(200,240,76,.4); }
.faq__item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 22px 20px; color: var(--text-dim); }
.faq__item strong { color: var(--text); }

/* ---------- MAPA ---------- */
.map { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); line-height: 0; }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }
.map__links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .92rem; }

/* ---------- KONTAKT ---------- */
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact__card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.contact__card h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; }
.contact__card p { color: var(--text-dim); }
.contact__sub { margin-top: 22px; }
.contact__link { color: var(--text); font-weight: 600; }
.contact__link:hover { color: var(--accent); text-decoration: none; }
.contact__link--big { font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; }
.contact__hours { list-style: none; display: grid; gap: 12px; }
.contact__hours li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: .93rem; }
.contact__hours strong { color: var(--text); }
.contact__social { color: var(--text); }
.contact__social:hover { color: var(--accent); text-decoration: none; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; text-align: center; color: var(--text-dim); font-size: .9rem; background: var(--bg-soft); }
.footer strong { color: var(--text); }
.footer a { color: var(--accent); }
.footer__note { margin-top: 8px; font-size: .8rem; opacity: .75; }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(5,6,8,.94); padding: 24px; }
.lightbox.open { display: flex; }
.lightbox__img { max-width: min(1100px, 92vw); max-height: 84vh; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.lightbox__close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; opacity: .8; }
.lightbox__close:hover { opacity: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox__nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--text-dim); font-size: .9rem; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- OGRANICZONY RUCH ---------- */
/* Skrypt sam pomija animacje wejścia; tu wyciszamy resztę ruchu w CSS. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__bg { transform: none; }
  .card:hover, .btn:hover { transform: none; }
  .gallery__item { opacity: 1; transform: none; }
}

/* ---------- DRUK ---------- */
/* Najczęściej drukuje się cennik i plan zajęć — na papierze mają być czytelne. */
@media print {
  .nav, .hero, .hero__scroll, .gallery__filters, .gallery, .map, .map__links, .skip-link, .footer__note { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 20px 0; border: 0; }
  .section--dark { background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .eyebrow, .plan__table thead th, .price-table thead th, .contact__card h3 { color: #000; }
  .plan__table td, .plan__table tbody th, .price-table td, .price-table tbody th,
  .contact__card, .pricing__sauna { background: #fff; border-color: #999; }
  .plan__time { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  .faq__item { break-inside: avoid; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .about, .plan, .sauna { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 76px 0; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,13,16,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  /* Menu ma 9 pozycji — przy niskim ekranie musi dać się przewinąć. */
  .nav.open .nav__links { max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
  .nav__links a { padding: 15px 24px; border-top: 1px solid rgba(36,42,51,.6); }
  .nav__links a.is-current::after { display: none; }
  .nav__links a.nav__cta { margin: 12px 24px; text-align: center; }
  .nav__burger { display: flex; }
  .cards, .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .price-table { font-size: .92rem; }
  .price-table thead th, .price-table td, .price-table tbody th { padding: 11px 12px; }
  .hero__title { font-size: 3rem; }
  .map iframe { height: 300px; }
}

/* Na wąskim ekranie tabela cennika nie mieści trzech kolumn — rozkładamy każdy
   wiersz na kartę, a nagłówki kolumn wracają jako etykiety z data-label. */
@media (max-width: 560px) {
  .price-table, .price-table tbody, .price-table tr, .price-table td, .price-table tbody th { display: block; width: 100%; }
  .price-table thead { display: none; }
  .price-table tr { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
  .price-table tbody th { background: var(--bg-card); border: 0; font-weight: 700; color: var(--text); }
  .price-table td { border: 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
  .price-table td::before { content: attr(data-label); color: var(--text-dim); font-weight: 400; }
  .price-table .price-table__hot th { color: var(--accent); }
}
