 /* =============================================
   MLYNfit — Design System v2
   Fonts: Playfair Display (headings) + Inter (body)
   Import via <link> in HTML head
   ============================================= */

:root {
  color-scheme: dark;
  --bg:          #0b0d0c;
  --panel:       #131715;
  --panel-soft:  #1a1e1b;
  --text:        #f4ede6;
  --muted:       #9a9690;
  --line:        rgba(255, 255, 255, 0.09);
  --accent:      #f26722;
  --accent-dim:  rgba(242, 103, 34, 0.18);
  --accent-glow: rgba(242, 103, 34, 0.28);
  --cream:       #f5e8d8;
  --ink:         #0f1110;
  --max:         1180px;
  --radius:      10px;
  --transition:  0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

/* ---- Scroll fade-in animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* ---- Hero entry animation ---- */
.hero-inner > * {
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-inner h1        { animation-delay: 0s; }
.hero-inner .hero-copy { animation-delay: 0.2s; }
.hero-inner .hero-actions { animation-delay: 0.4s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Image fade-in (dynamicznie dodawane przez JS) ---- */
.class-card-img img,
.schedule-item img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.class-card-img img.loaded,
.schedule-item img.loaded {
  opacity: 1;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 {
  margin-top: 0;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 5.5vw, 78px);
  font-weight: 900;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 700;
}

p {
  margin-top: 0;
}

p, li, address, .muted {
  color: var(--muted);
}

address {
  font-style: normal;
}

/* =============================================
   HEADER / NAV
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  height: 64px;
  background: rgba(11, 13, 12, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 116px;
  height: 38px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: invert(1) brightness(1.1);
}

.back-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
}

.brand:hover .back-arrow {
  color: var(--text);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

/* =============================================
   BUTTONS
   ============================================= */

.site-header--no-cta,
.site-header:has(.header-cta[style*="display:none"]),
.site-header:has(.header-cta[style*="display: none"]) {
  grid-template-columns: auto 1fr;
}

.site-header--no-cta .site-nav,
.site-header:has(.header-cta[style*="display:none"]) .site-nav,
.site-header:has(.header-cta[style*="display: none"]) .site-nav {
  justify-content: flex-end;
}

.is-hidden {
  display: none !important;
}

.style-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 13, 12, 0.86);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.style-switcher-label {
  padding: 0 8px 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.style-switcher a {
  min-width: 70px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.style-switcher a.active {
  background: var(--accent);
  color: var(--ink);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.header-cta,
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(242, 103, 34, 0.30);
}

.header-cta:hover,
.button.primary:hover {
  background: #ff7e36;
  box-shadow: 0 12px 36px rgba(242, 103, 34, 0.45);
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.button svg,
.button img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* =============================================
   HERO
   ============================================= */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 48px;
  padding: 100px max(24px, calc((100vw - var(--max)) / 2)) 80px;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Strong overlay for text readability */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(11,13,12,0.65) 0%,
      rgba(11,13,12,0.45) 55%,
      rgba(11,13,12,0.20) 100%);
  z-index: 1;
}

.hero-inner,
.hero-board {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-copy {
  margin-bottom: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---- Schedule board in hero ---- */
.hero-board {
  align-self: center;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(15, 18, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 24px 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.42), 0 0 0 1px rgba(255,255,255,0.04);
}

.hero-board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.hero-board-top span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-board-top strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-board-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.hero-board-line span {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-board-line strong {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-board a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity var(--transition);
}

.hero-board a:hover {
  opacity: 0.75;
}

/* =============================================
   PAGE HERO (terminarz, dla-firm)
   ============================================= */

.page-hero {
  min-height: 680px;
  grid-template-columns: 1fr;
  padding-top: 80px;
  padding-bottom: 64px;
}

.page-hero h1,
.page-hero > p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-intro {
  margin: 0 auto 20px;
  max-width: 720px;
  text-align: left;
}

.schedule-intro h1 {
  max-width: 10em;
  margin-bottom: 12px;
}

.schedule-intro br.mobile-only {
  display: none;
}

.schedule-intro br.split {
  display: none;
}

.page-hero .hero-inner p {
  font-size: 18px;
}

.business-hero {
  gap: 16px;
  background-image: 
    linear-gradient(110deg, rgba(11,13,12,0.60), rgba(11,13,12,0.60)),
    url('/assets/mlynfit-desktop-web.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 900px) {
  .business-hero {
    background-image: 
      linear-gradient(110deg, rgba(11,13,12,0.60), rgba(11,13,12,0.60)),
      url('/assets/mlynfit-mobile-web.jpg');
    background-attachment: scroll;
  }
}

/* =============================================
   QUICK STRIP
   ============================================= */

.quick-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: rgba(13,15,14,0.95);
  border-bottom: 1px solid var(--line);
}

.quick-strip .info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  transition: background var(--transition);
}

.quick-strip .info-item:last-child {
  border-right: 0;
}

.quick-strip .info-item:hover {
  background: rgba(255,255,255,0.03);
}

.quick-strip .info-item img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  opacity: 0.85;
}

.quick-strip strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.quick-strip span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* =============================================
   SECTIONS
   ============================================= */

.section {
  padding: 88px max(24px, calc((100vw - var(--max)) / 2));
}

.section.dark {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head.centered {
  display: block;
  text-align: center;
}

.section-head > a {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity var(--transition);
}

.section-head > a:hover {
  opacity: 0.7;
}

/* =============================================
   CLASS CARDS (today's schedule)
   ============================================= */

.class-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  scrollbar-width: none;
  min-height: 200px;
}

[data-today-classes]:empty {
  min-height: 200px;
}

.class-cards::-webkit-scrollbar {
  display: none;
}

.class-slider {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.slider-btn:hover {
  background: rgba(242, 103, 34, 0.14);
  border-color: rgba(242, 103, 34, 0.35);
}

.class-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 2;
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition);
  scroll-snap-align: start;
}

.class-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.class-card:hover img {
  transform: scale(1.05);
}

/* Bottom gradient overlay */
.class-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 13, 12, 0.88) 0%,
    rgba(11, 13, 12, 0.40) 45%,
    transparent 75%
  );
  z-index: 1;
}

.class-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  z-index: 2;
}

.class-card-label h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.class-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.40);
}

/* ---- Class card overlay (opis ćwiczenia) ---- */
.class-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 13, 12, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.class-card:hover .class-card-overlay,
.class-card:focus .class-card-overlay,
.class-card:focus-within .class-card-overlay {
  opacity: 1;
}

/* Mobile: tap to toggle (JS will handle via class) */
.class-card.is-tapped .class-card-overlay {
  opacity: 1;
}

.class-card-overlay p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #f4ede6;
  text-align: center;
  font-weight: 400;
}

.class-card-overlay p::before {
  content: '💪 ';
  font-size: 18px;
}

/* Ensure overlay is above the gradient */
.class-card::after {
  z-index: 1;
}
.class-card-label {
  z-index: 2;
}

.class-card-time {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  background: var(--accent);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.class-card-note,
.class-card-trainer {
  margin: 4px 0 0;
  font-size: 12px;
}

.class-card-note {
  color: var(--text);
}

.class-card-trainer {
  color: var(--muted);
}

/* =============================================
   SR-ONLY (skip link / accessibility)
   ============================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* =============================================
   ERROR MESSAGE
   ============================================= */

.error-message {
  padding: 24px;
  text-align: center;
  background: rgba(255, 80, 50, 0.08);
  border: 1px solid rgba(255, 80, 50, 0.25);
  border-radius: var(--radius);
  color: #f88;
  font-size: 14px;
}

/* =============================================
   SPLIT SECTION
   ============================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.media-placeholder {
  position: relative;
  min-height: 460px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.media-placeholder picture,
.media-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.media-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =============================================
   FEATURE GRID (oferta)
   ============================================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-grid article {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-grid article:hover {
  border-color: rgba(242,103,34,0.28);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.30);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}

.feature-grid article h3 {
  font-size: 22px;
}

.feature-grid .offer-price {
  display: block;
  margin: 10px 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.feature-grid .offer-price + p {
  margin-top: 8px;
}

.feature-grid article p strong {
  display: none;
}

/* =============================================
   TIPS GRID (poradnik)
   ============================================= */

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tips-grid article {
  padding: 28px 24px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tips-grid article h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

/* =============================================
   CHECK LIST
   ============================================= */

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--muted);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

/* =============================================
   PRICING
   ============================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  padding: 32px 28px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  border-color: rgba(242,103,34,0.22);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
}

.price-card.featured {
  background: #1a1715;
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(242,103,34,0.22), 0 0 0 1px rgba(242,103,34,0.25);
  position: relative;
}

.price-card.featured::before {
  content: "Najpopularniejszy";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card.featured:hover {
  transform: translateY(-12px);
}

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

.price-card.featured p,
.price-card.featured li {
  color: var(--muted);
}

.price-card h3 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.price-card.featured h3 {
  color: #7a6a5e;
}

.price {
  display: block;
  margin: 10px 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* =============================================
   SCHEDULE (terminarz page)
   ============================================= */

.schedule-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  min-height: 200px;
  position: relative;
}

.schedule-board.is-loading::after {
  content: "Ładowanie…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #9a9690;
  font-weight: 600;
  letter-spacing: 0.06em;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

body[data-page="schedule"] .section {
  padding-top: 48px;
}

.schedule-footnote {
  margin: 34px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.schedule-footnote strong {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pricing-footnote {
  margin: 34px 0 0;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

.pricing-footnote strong {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.schedule-day {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.schedule-day h2 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.schedule-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.schedule-time {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
  padding-top: 0;
  font-variant-numeric: tabular-nums;
}

.schedule-content {
  min-width: 0;
}

.schedule-item h3 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 4px;
  color: var(--text);
  word-break: normal;
  overflow-wrap: break-word;
}

.schedule-item p {
  font-size: 13px;
  margin: 0;
}

.schedule-note {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px !important;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 !important;
}

.schedule-trainer {
  color: var(--muted);
}

/* =============================================
   REGULAMIN
   ============================================= */

.regulamin-content {
  display: grid;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.regulamin-section {
  padding: 28px 32px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.regulamin-section h2 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.regulamin-section ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.regulamin-section ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  counter-increment: item;
}

.regulamin-section ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}

.regulamin-section ol li:last-child {
  margin-bottom: 0;
}

.regulamin-content a[href^="mailto:"] {
  color: var(--accent);
  transition: color var(--transition);
}

.regulamin-content a[href^="mailto:"]:hover {
  color: #ff7e36;
  text-decoration: underline;
}

/* =============================================
   CONTACT / NOTICE
   ============================================= */

.notice {
  padding: 22px 24px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.schedule-notice {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 48px;
  align-items: stretch;
  background:
    linear-gradient(105deg, rgba(0,0,0,0.18), transparent),
    var(--accent);
  color: #fff;
  padding: 72px max(24px, calc((100vw - var(--max)) / 2));
}

.contact-copy {
  display: grid;
  align-content: center;
}

.contact-section h2 {
  color: #fff;
}

.contact-section .eyebrow {
  color: rgba(255,255,255,0.70);
}

.contact-section p,
.contact-section address,
.contact-section a {
  color: rgba(255,255,255,0.82);
}

.contact-section a:hover {
  color: #fff;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.map-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  min-height: 320px;
}

.map-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* Contact band for other pages */
.contact-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.20), transparent),
    var(--accent);
  padding: 56px max(24px, calc((100vw - var(--max)) / 2));
  color: #fff;
}

.contact-band p,
.contact-band address,
.contact-band a {
  color: rgba(255,255,255,0.82);
}

address a[href^="mailto:"] {
  color: var(--accent) !important;
  transition: color var(--transition);
}

address a[href^="mailto:"]:hover {
  color: #ff7e36 !important;
  text-decoration: underline;
}

/* =============================================
   FOOTER BAND (pomarańczowa karta z danymi)
   ============================================= */

.footer-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 48px;
  align-items: start;
  background:
    linear-gradient(105deg, rgba(0,0,0,0.18), transparent),
    var(--accent);
  color: #fff;
  padding: 48px max(24px, calc((100vw - var(--max)) / 2));
}

@media (min-width: 700px) {
  .footer-band {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer-band .band-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-band .band-col .band-heading {
  margin: 0 0 4px;
}

.footer-band .band-col h2 {
  color: #fff;
  font-size: clamp(20px, 2.5vw, 28px);
  margin: 0 0 4px;
}

.footer-band .band-col .eyebrow {
  color: rgba(255,255,255,0.70);
  margin: 0 0 4px;
}

.footer-band .band-col p,
.footer-band .band-col address,
.footer-band .band-col a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 4px;
}

.footer-band .band-col a:hover {
  color: #fff;
}

.footer-band .band-col .band-label {
  display: block;
  margin: 0 0 6px;
  padding-bottom: 6px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.30);
}

.footer-band .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
  transition: all var(--transition);
  width: fit-content;
}

.footer-band .nav-btn:hover {
  background: rgba(0,0,0,0.50);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.30);
}

.footer-band .contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
}

/* =============================================
   FOOTER STRIP (karty + baner)
   ============================================= */

.footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(24px, calc((100vw - var(--max)) / 2));
  background: #0f1210;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-strip .strip-copy {
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-strip .strip-copy strong {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.footer-strip .strip-copy p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-strip .strip-copy a {
  color: var(--muted);
  transition: color var(--transition);
}

.footer-strip .strip-copy a:hover {
  color: var(--text);
}

.footer-strip .strip-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-strip .strip-badges img {
  height: 50px;
  width: auto;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.10);
  display: block;
  background: rgba(0,0,0,0.20);
}

.footer-strip .strip-badges .strip-eu {
  height: 40px;
}

/* =============================================
   FOOTER (copyright + regulamin)
   ============================================= */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px max(24px, calc((100vw - var(--max)) / 2));
  background: #080a09;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.site-footer a {
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer .footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer .footer-cards {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer .footer-cards img {
  height: 36px;
  width: auto;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
  background: rgba(0,0,0,0.15);
}

.site-footer .footer-cards .footer-eu {
  height: 48px;
}

/* =============================================
   RESPONSIVE — mobile ≤ 900px
   ============================================= */

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    height: 58px;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-self: end;
  }

  .site-nav {
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 0px;
  }

  .site-nav.is-open {
    max-height: none !important;
    display: grid;
    grid-column: 1 / -1;
    justify-items: start;
    gap: 0;
    padding: 0;
    background: rgba(11, 13, 12, 0.97);
    border-bottom: 1px solid var(--line);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
  }

  .site-nav.is-open a {
    width: 100%;
    padding: 18px max(24px, calc((100vw - var(--max)) / 2));
    font-size: 15px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    opacity: 0;
    animation: navFadeIn 0.3s ease forwards;
  }

  .site-nav.is-open a:nth-child(1) { animation-delay: 0.05s; }
  .site-nav.is-open a:nth-child(2) { animation-delay: 0.10s; }
  .site-nav.is-open a:nth-child(3) { animation-delay: 0.15s; }
  .site-nav.is-open a:nth-child(4) { animation-delay: 0.20s; }
  .site-nav.is-open a:nth-child(5) { animation-delay: 0.25s; }
  .site-nav.is-open a:nth-child(6) { animation-delay: 0.30s; }

  @keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero,
  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 56px;
    gap: 32px;
  }

  .hero-board {
    align-self: auto;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(11,13,12,0.50), rgba(11,13,12,0.20));
  }

  .quick-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-strip .info-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .quick-strip .info-item:nth-child(even) {
    border-right: 0;
  }

  .class-slider {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    display: none;
  }

  .feature-grid,
  .tips-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .media-placeholder {
    min-height: 300px;
  }

  .schedule-board {
    grid-template-columns: 1fr;
  }

  .schedule-intro h1 {
    max-width: none;
  }

  .schedule-intro br.mobile-only {
    display: inline;
  }

  .section-head {
    display: block;
  }

  .section-head > a {
    display: inline-block;
    margin-top: 12px;
  }

    .site-footer {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }

    .site-footer .footer-left {
      gap: 12px;
    }

    .site-footer .footer-cards {
      display: grid;
      grid-template-columns: repeat(4, auto);
      gap: 8px;
      justify-content: center;
      margin: 0 auto;
      width: 100%;
    }

    .site-footer .footer-cards img {
      height: 28px;
      width: auto;
    }

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

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 520px) {
  .class-cards {
    grid-auto-columns: minmax(86%, 1fr);
  }

  h1 {
    font-size: clamp(36px, 10vw, 52px);
  }
}
