/* ============================================
   GYM4U – Premium Design System
   ============================================ */

/* ---------- CSS Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --c-bg: #0a0a0f;
    --c-bg-alt: #12121a;
    --c-bg-card: #1a1a2e;
    --c-surface: rgba(255, 255, 255, 0.05);
    --c-border: rgba(255, 255, 255, 0.08);
    --c-text: #f0f0f5;
    --c-text-muted: #9ca3af;
    --c-primary: #3b82f6;
    --c-primary-light: #60a5fa;
    --c-primary-dark: #2563eb;
    --c-accent: #06b6d4;
    --c-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #8b5cf6 100%);
    --c-gradient-text: linear-gradient(135deg, #60a5fa, #06b6d4, #a78bfa);
    --c-glass: rgba(255, 255, 255, 0.04);
    --c-glass-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --f-body: 'Outfit', system-ui, sans-serif;
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --fs-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
    --fs-2xl: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
    --fs-3xl: clamp(2rem, 1.2rem + 4vw, 3.5rem);
    --fs-hero: clamp(2.5rem, 1.5rem + 5vw, 5rem);

    /* Spacing */
    --s-xs: 0.5rem;
    --s-sm: 0.75rem;
    --s-md: 1rem;
    --s-lg: 1.5rem;
    --s-xl: 2rem;
    --s-2xl: 3rem;
    --s-3xl: 4rem;
    --s-section: clamp(4rem, 3rem + 5vw, 8rem);

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);

    /* Transitions */
    --t-fast: 150ms ease;
    --t-base: 300ms ease;
    --t-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --max-w: 1280px;
    --nav-h: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: var(--f-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--c-primary-light);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--c-accent);
}

.hidden {
    display: none !important;
}

.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: fixed;
    top: -60px;
    left: 0;
    z-index: 10000;
    padding: 0.75em 1.5em;
    background: var(--c-primary);
    color: #fff;
    font-weight: 600;
    transition: top var(--t-base);
}

.skip-link:focus {
    top: 0;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ---------- Text Utilities ---------- */
.text-gradient {
    background: var(--c-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.75em 1.75em;
    font-family: var(--f-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--r-full);
    cursor: pointer;
    transition: all var(--t-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--c-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.btn-gold {
    background: linear-gradient(135deg, #FFDF73, #D4AF37, #FFDF73);
    color: #1a1a2e;
    font-weight: 800;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1em 2.5em;
    font-size: var(--fs-base);
    border-radius: var(--r-full);
}

.btn-outline:hover {
    border-color: var(--c-primary);
    color: var(--c-primary-light);
    background: rgba(59, 130, 246, 0.08);
}

.btn-lg {
    padding: 1em 2.25em;
    font-size: var(--fs-base);
}

.btn-full {
    width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: transparent;
    transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--c-border);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo img {
    height: 100px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--s-lg);
    list-style: none;
}

.nav-links a {
    color: var(--c-text);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.25em 0;
    position: relative;
    transition: color var(--t-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--c-gradient);
    transition: width var(--t-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--c-primary-light);
}

.nav-extras {
    display: flex;
    align-items: center;
    gap: var(--s-md);
}

.nav-social {
    color: var(--c-text-muted);
    transition: color var(--t-fast), transform var(--t-fast);
}

.nav-social:hover {
    color: var(--c-primary-light);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: all var(--t-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.5) 0%, rgba(10, 10, 15, 0.7) 50%, rgba(10, 10, 15, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 0 6rem;
    margin-top: 0;
    animation: heroFadeIn 1.2s ease-out;
}

.hero-logo {
    width: clamp(160px, 25vw, 260px);
    height: auto;
    margin: 0 auto var(--s-sm);
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
}

.hero h1 {
    font-size: var(--fs-hero);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--s-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--fs-xl);
    color: var(--c-text-muted);
    max-width: 600px;
    margin: 0 auto var(--s-2xl);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: var(--s-md);
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: scrollBounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--c-primary-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes wheelScroll {
    0% {
        opacity: 0;
        top: 6px;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: var(--s-section) 0;
    position: relative;
    overflow: hidden;
}

.dark-section {
    background: var(--c-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: var(--s-3xl);
}

.section-tag {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-primary-light);
    padding: 0.4em 1em;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--r-full);
    margin-bottom: var(--s-md);
}

.section-header h2 {
    font-size: var(--fs-3xl);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--s-md);
}

.section-desc {
    font-size: var(--fs-lg);
    color: var(--c-text-muted);
    max-width: 600px;
    margin: 0 auto;
}


/* ---------- About / Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--s-lg);
}

.feature-card {
    padding: var(--s-2xl);
    background: var(--c-glass);
    border: 1px solid var(--c-glass-border);
    border-radius: var(--r-lg);
    text-align: center;
    transition: all var(--t-slow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-gradient);
    opacity: 0;
    transition: opacity var(--t-slow);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    color: var(--c-primary-light);
    margin-bottom: var(--s-lg);
}

.feature-card h3 {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--s-sm);
}

.feature-card p {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

/* ---------- Classes Grid ---------- */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-lg);
}

.class-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    transition: all var(--t-slow);
    text-decoration: none;
    color: var(--c-text);
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--c-text);
}

.class-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.class-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.class-card:hover .class-card-img img {
    transform: scale(1.08);
}

.class-card-content {
    padding: var(--s-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.class-card-content h3 {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--s-xs);
}

.class-card-content p {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.6;
    flex: 1;
}

.class-cta {
    display: inline-block;
    margin-top: var(--s-md);
    font-weight: 600;
    color: var(--c-primary-light);
    font-size: var(--fs-sm);
    transition: all var(--t-fast);
}

.class-card:hover .class-cta {
    letter-spacing: 0.05em;
}

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-lg);
    align-items: stretch;
}

.pricing-card {
    padding: var(--s-lg) var(--s-xl);
    background: var(--c-glass);
    border: 1px solid var(--c-glass-border);
    border-radius: var(--r-lg);
    text-align: center;
    transition: all var(--t-slow);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, var(--c-glass) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--c-gradient);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.6em 1.5em;
    border-bottom-left-radius: var(--r-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.pricing-header h3 {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 0.15em;
}

.pricing-period {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
}

.pricing-price {
    padding: var(--s-sm) 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15em;
}

.price-amount {
    font-size: var(--fs-2xl);
    font-weight: 900;
    background: var(--c-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-currency {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--c-text-muted);
}

.price-period {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

.pricing-features {
    list-style: none;
    text-align: left;
    padding: 0 0 var(--s-md) 0;
    border-top: 1px solid var(--c-border);
    margin-top: var(--s-sm);
    flex: 1;
}

.pricing-features li {
    padding: var(--s-xs) 0;
    border-bottom: 1px solid var(--c-border);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.pricing-features li::before {
    content: '✓';
    color: var(--c-primary-light);
    font-weight: 700;
}

.pricing-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-lg);
    align-items: stretch;
    margin-bottom: var(--s-lg);
}

.pricing-row-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: var(--s-lg);
    margin-top: var(--s-xl);
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--fs-base);
}

.pricing-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.pricing-scroll-track {
    display: flex;
    gap: var(--s-lg);
    overflow-x: auto;

    scroll-snap-type: x mandatory;
    padding-bottom: var(--s-md);
}

.pricing-multisport {
    text-align: center;
    margin-top: var(--s-2xl);
}

.pricing-scroll-track::-webkit-scrollbar {
    height: 6px;
}

.pricing-scroll-track::-webkit-scrollbar-track {
    background: transparent;
}

.pricing-scroll-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.pricing-card--compact {
    width: 240px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: var(--s-md) var(--s-lg);
}

.pricing-card--compact .pricing-header h3 {
    font-size: var(--fs-base);
}

.pricing-card--compact .price-amount {
    font-size: var(--fs-xl);
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: var(--s-md);
}

.gallery-item {
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.2);
    opacity: 0;
    transition: opacity var(--t-base);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--r-sm);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------- Social Media Section ---------- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-xl);
}

.social-card {
    background: var(--c-glass);
    border: 1px solid var(--c-glass-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--t-slow);
}

.social-card:hover {
    box-shadow: var(--shadow-md);
}

.social-card-link {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: var(--s-lg) var(--s-xl);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-lg);
    background: linear-gradient(135deg, #1877f2, #0d5bbf);
    transition: filter var(--t-fast);
}

.social-card-link:hover {
    filter: brightness(1.15);
    color: #fff;
}

.social-card-link--ig {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-card-toggle-wrap {
    border-top: 1px solid var(--c-border);
}

.social-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    width: 100%;
    padding: var(--s-md) var(--s-xl);
    background: transparent;
    border: none;
    color: var(--c-text-muted);
    font-family: var(--f-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--t-fast), background var(--t-fast);
}

.social-toggle-btn:hover {
    color: var(--c-primary-light);
    background: rgba(255, 255, 255, 0.03);
}

.social-toggle-icon {
    transition: transform var(--t-base);
}

.social-toggle-btn[aria-expanded="true"] .social-toggle-icon {
    transform: rotate(180deg);
}

.social-toggle-btn[aria-expanded="true"] .social-toggle-text::before {
    content: 'Ukryj posty';
}

.social-toggle-btn[aria-expanded="true"] .social-toggle-text {
    font-size: 0;
}

.social-toggle-btn[aria-expanded="true"] .social-toggle-text::before {
    font-size: var(--fs-sm);
}

.social-card-embed {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--s-md);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    max-height: 600px;
    opacity: 1;
}

.social-card-embed--collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.social-card-embed iframe {
    border: 0;
    border-radius: var(--r-md);
    max-width: 100%;
}

.instagram-media-css {
    background: #FFF;
    border: 0;
    border-radius: 12px;
    margin: 0;
    max-width: 500px;
    min-width: 280px;
    padding: 0;
    width: 100%;
}

.social-more-link {
    display: block;
    text-align: center;
    padding: var(--s-md) var(--s-lg);
    margin-top: var(--s-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: #1877f2;
    text-decoration: none;
    border-radius: var(--r-md);
    transition: all var(--t-fast);
}

.social-more-link:hover {
    background: rgba(24, 119, 242, 0.1);
    color: #4da3ff;
}

.social-more-link--ig {
    color: #e1306c;
}

.social-more-link--ig:hover {
    background: rgba(225, 48, 108, 0.1);
    color: #f77fbe;
}

/* ---------- Reviews Slider ---------- */
.reviews-slider {
    position: relative;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: var(--s-lg);
    overflow-x: auto;

    scroll-snap-type: x mandatory;
    padding: var(--s-md) 0;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 min(100%, 380px);
    scroll-snap-align: start;
    padding: var(--s-2xl);
    background: var(--c-glass);
    border: 1px solid var(--c-glass-border);
    border-radius: var(--r-lg);
    transition: all var(--t-slow);
}

.review-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-glow);
}

.review-stars {
    color: #f59e0b;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    margin-bottom: var(--s-md);
}

.review-card p {
    font-size: var(--fs-base);
    line-height: 1.7;
    font-style: italic;
    color: var(--c-text);
    margin-bottom: var(--s-md);
}

.review-author {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    font-weight: 500;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--t-fast);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.slider-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3xl);
    margin-bottom: var(--s-3xl);
}

.contact-block {
    margin-bottom: var(--s-xl);
}

.contact-block h3 {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--s-sm);
    color: var(--c-primary-light);
}

.contact-block p,
.contact-block a {
    color: var(--c-text-muted);
    font-size: var(--fs-base);
    line-height: 1.7;
}

.hours-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: var(--s-xs) var(--s-lg);
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

.social-links {
    display: flex;
    gap: var(--s-md);
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1em;
    background: var(--c-glass);
    border: 1px solid var(--c-glass-border);
    border-radius: var(--r-full);
    color: var(--c-text);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: all var(--t-fast);
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--c-primary-light);
}

.dojazd-video {
    border-radius: var(--r-md);
    margin-top: var(--s-sm);
    max-height: 300px;
    background: #000;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--s-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--s-xs);
}

.form-group label {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85em 1.2em;
    background: var(--c-glass);
    border: 1px solid var(--c-glass-border);
    border-radius: var(--r-md);
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: var(--fs-base);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.map-container {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--c-border);
}

.map-container iframe {
    display: block;
    filter: brightness(0.8) contrast(1.1) saturate(0);
}

/* ---------- Newsletter ---------- */
.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin-bottom: var(--s-md);
}

.newsletter-content p {
    color: var(--c-text-muted);
    margin-bottom: var(--s-xl);
}

.newsletter-form {
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: var(--s-sm);
}

.newsletter-input-group input {
    flex: 1;
    padding: 0.85em 1.2em;
    background: var(--c-glass);
    border: 1px solid var(--c-glass-border);
    border-radius: var(--r-full);
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: var(--fs-base);
    transition: border-color var(--t-fast);
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--c-primary);
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ---------- Footer ---------- */
.footer {
    padding: var(--s-md) 0 var(--s-sm);
    background: var(--c-bg);
    border-top: 1px solid var(--c-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--s-md);
    margin-bottom: var(--s-md);
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--s-lg);
}

.footer-brand img {
    height: 100px;
    width: auto;
    margin-bottom: 0;
}

.footer-brand p {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--s-lg);
}

.footer-links a {
    color: var(--c-text-muted);
    font-size: var(--fs-xs);
    transition: color var(--t-fast);
}

.footer-links a:hover {
    color: var(--c-primary-light);
}

.cookie-settings-btn {
    background: none;
    border: none;
    color: var(--c-text-muted);
    font-family: var(--f-body);
    font-size: var(--fs-xs);
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: color var(--t-fast);
}

.cookie-settings-btn:hover {
    color: var(--c-primary-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--s-md);
    border-top: 1px solid var(--c-border);
}

.footer-bottom p {
    color: var(--c-text-muted);
    font-size: var(--fs-xs);
}

.footer-socials {
    display: flex;
    gap: var(--s-md);
}

.footer-socials a {
    color: var(--c-text-muted);
    transition: color var(--t-fast), transform var(--t-fast);
}

.footer-socials a:hover {
    color: var(--c-primary-light);
    transform: scale(1.15);
}

.footer-credit {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: var(--s-sm);
}

.footer-credit p {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-credit-logo {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity var(--t-base);
}

.footer-credit-logo:hover {
    opacity: 1;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    animation: slideUp 0.4s ease-out;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--s-lg) clamp(1rem, 3vw, 2rem);
    background: rgba(18, 18, 26, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-lg);
    flex-wrap: wrap;
}

.cookie-content p {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    flex: 1;
    min-width: 280px;
}

.cookie-content a {
    color: var(--c-primary-light);
}

.cookie-buttons {
    display: flex;
    gap: var(--s-sm);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Class Enrollment Page ---------- */
.enroll-page {
    min-height: 100vh;
    padding-top: var(--nav-h);
}

.enroll-hero {
    position: relative;
    height: 45vh;
    min-height: 320px;
    display: flex;
    align-items: end;
    overflow: hidden;
}

.enroll-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-contain {
    object-fit: contain !important;
    object-position: center;
    background-color: #000;
}

.hero-img-top {
    object-position: top;
}

.enroll-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.9) 100%);
}

.enroll-hero-content {
    position: relative;
    z-index: 1;
    padding: var(--s-2xl);
}

.enroll-hero-content h1 {
    font-size: var(--fs-3xl);
    font-weight: 900;
}

.enroll-hero-content .instructor {
    color: var(--c-primary-light);
    font-size: var(--fs-sm);
    margin-top: var(--s-xs);
}

.enroll-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3xl);
    padding: var(--s-3xl) 0;
}

.enroll-info h2 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--s-lg);
}

.enroll-info p {
    color: var(--c-text-muted);
    font-size: var(--fs-base);
    line-height: 1.8;
    margin-bottom: var(--s-md);
}

.enroll-info ul {
    color: var(--c-text-muted);
    padding-left: 1.5rem;
    line-height: 2;
}

.enroll-info .mt-md {
    margin-top: 1rem;
}

.instructor a {
    color: var(--c-primary-light);
}

.map-container iframe {
    border: 0;
}

.enroll-form-section h2 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--s-lg);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    margin-top: var(--s-2xl);
    transition: color var(--t-fast);
}

.back-link:hover {
    color: var(--c-primary-light);
}

/* ---------- Thank-you / Legal Pages ---------- */
.legal-page,
.thank-page {
    min-height: 100vh;
    padding: calc(var(--nav-h) + var(--s-3xl)) 0 var(--s-3xl);
}

.legal-page h1,
.thank-page h1 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin-bottom: var(--s-2xl);
}

.legal-page h2 {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin: var(--s-2xl) 0 var(--s-md);
}

.legal-page p,
.legal-page li {
    color: var(--c-text-muted);
    line-height: 1.8;
    margin-bottom: var(--s-md);
}

.legal-page ul {
    padding-left: var(--s-lg);
    margin-bottom: var(--s-md);
}

.thank-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thank-content {
    max-width: 500px;
}

.thank-content .thank-icon {
    font-size: 4rem;
    margin-bottom: var(--s-lg);
}

.thank-content p {
    color: var(--c-text-muted);
    margin-bottom: var(--s-xl);
}

/* ---------- 404 Page ---------- */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-404 h1 {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    background: var(--c-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.page-404 p {
    color: var(--c-text-muted);
    font-size: var(--fs-lg);
    margin: var(--s-lg) 0 var(--s-xl);
}

/* ============== RESPONSIVE ============== */

@media (max-width: 1024px) {
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .enroll-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
        gap: var(--s-md);
        transition: right var(--t-slow);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: var(--fs-lg);
    }

    .nav-extras .nav-social,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery-large,
    .gallery-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .pricing-top-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--s-xl);
    }

    .footer-credit {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--s-md);
        text-align: center;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .enroll-hero {
        height: 35vh;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

/* ---------- Wide Class Card (Treningi Personalne) ---------- */
.class-card--wide {
    display: flex;
    flex-direction: row;
    margin-top: var(--s-lg);
    height: 220px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    transition: all var(--t-slow);
    text-decoration: none;
    color: var(--c-text);
}

.class-card--wide:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--c-text);
}

.class-card-img--wide {
    position: relative;
    overflow: hidden;
    width: 340px;
    flex-shrink: 0;
    aspect-ratio: unset;
}

.class-card-img--wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.class-card--wide:hover .class-card-img--wide img {
    transform: scale(1.06);
}

.class-card-content--wide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-2xl) var(--s-3xl);
}

.class-card-content--wide h3 {
    font-size: var(--fs-2xl);
    font-weight: 900;
    margin-bottom: var(--s-sm);
    letter-spacing: -0.02em;
}

.class-card-content--wide p {
    color: var(--c-text-muted);
    font-size: var(--fs-base);
    line-height: 1.6;
    flex: 1;
    max-width: 600px;
}

@media (max-width: 640px) {
    .class-card--wide {
        flex-direction: column;
        height: auto;
    }

    .class-card-img--wide {
        width: 100%;
        aspect-ratio: 16/7;
    }
}

/* ---------- Q&A Section (enroll subpages) ---------- */
.enroll-qa {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--s-3xl) 0 var(--s-2xl);
}

.enroll-qa h2 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin-bottom: var(--s-xl);
    color: var(--c-text);
    text-align: center;
}

.qa-item {
    border-bottom: 1px solid var(--c-border);
    padding: var(--s-lg) 0;
}

.qa-item:first-of-type {
    border-top: 1px solid var(--c-border);
}

.qa-question {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--c-primary-light);
    margin-bottom: var(--s-xs);
}

.qa-answer {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    line-height: 1.7;
}