* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e63946;
    --primary-dark: #b91c2c;
    --primary-light: #ff6b7a;
    --dark: #0a0a1a;
    --darker: #050510;
    --gray: #1a1a2e;
    --light: #f8f9fa;
    --text: #2d2d3a;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #e63946 0%, #b91c2c 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(230, 57, 70, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    position: absolute;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.navbar {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
}

.navbar.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(5, 5, 16, 0.98);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.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(7px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover {
    color: var(--primary);
}

.hero {
    min-height: 100vh;
    background: url('../assets/main.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 26, 0.7);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(230,57,70,0.15) 0%, rgba(10,10,26,0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(230, 57, 70, 0.2);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230,57,70,0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    color: var(--white);
}

.stat span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.scroll-indicator span {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-top: none;
    border-right: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; transform: rotate(45deg) translate(0, 0); }
}

.section {
    padding: 100px 20px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(230, 57, 70, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
}

.section-title span {
    color: var(--primary);
}

.title-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    margin-top: -20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-icon i {
    font-size: 2rem;
    color: var(--white);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.features-list div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: var(--primary);
}

.about-img .img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-img .img-wrapper:hover img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230,57,70,0.2) 0%, transparent 100%);
    pointer-events: none;
}

.pricing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.card {
    background: var(--white);
    border-radius: 28px;
    padding: 2rem 1.5rem;
    flex: 1 1 280px;
    max-width: 320px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow);
}

.card.featured {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a1a 100%);
    color: var(--white);
    transform: scale(1.02);
}

.card.featured .price span,
.card.featured h3,
.card.featured ul li {
    color: var(--white);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.price span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.price small {
    font-size: 0.8rem;
    color: var(--text-light);
}

.card ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.card ul li {
    margin: 0.8rem 0;
    font-size: 0.85rem;
}

.card ul li i {
    color: var(--primary);
    margin-right: 8px;
}

.card-btn {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.card-btn:hover {
    transform: scale(1.05);
}

.individual-note {
    text-align: center;
    margin-top: 40px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(230,57,70,0.1) 0%, rgba(230,57,70,0.05) 100%);
    border-radius: 50px;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    color: var(--primary);
    border: 1px dashed var(--primary);
}

.individual-note i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.schedule-section {
    background: var(--white);
}

.schedule-note {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1rem;
}

.schedule-note i {
    color: var(--primary);
    margin-right: 8px;
}

.schedule-table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem 1rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.schedule-table th {
    background: var(--dark);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
}

.schedule-table .time-col {
    background-color: var(--gray);
    color: white;
    font-weight: 700;
    text-align: center;
}

.schedule-table .morning {
    background-color: rgba(23, 162, 184, 0.15);
    color: #0c5460;
    font-weight: 500;
}

.schedule-table .beginner {
    background-color: rgba(40, 167, 69, 0.15);
    color: #155724;
    font-weight: 500;
}

.schedule-table .advanced {
    background-color: rgba(255, 193, 7, 0.15);
    color: #856404;
    font-weight: 500;
}

.schedule-table .kids {
    background-color: rgba(76, 154, 255, 0.15);
    color: #004085;
    font-weight: 500;
}

.schedule-table .combined {
    background-color: rgba(23, 162, 184, 0.15);
    color: #0c5460;
    font-weight: 500;
}

.schedule-table .no-trainings {
    background-color: #f8f9fa;
    color: #adb5bd;
    font-style: italic;
}

.schedule-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.legend-badge {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-badge.morning { background-color: #17a2b8; }
.legend-badge.beginner { background-color: #28a745; }
.legend-badge.advanced { background-color: #ffc107; }
.legend-badge.kids { background-color: #4c9aff; }

/* === NOWOCZESNY WIDGET FACEBOOK === */
.news-section {
    background: var(--dark);
    color: var(--white);
}

.news-section .section-title,
.news-section .section-title span {
    color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.fb-widget-container {
    background: linear-gradient(145deg, #1e1e2e 0%, #161622 100%);
    border-radius: 32px;
    padding: 20px;
    border: 1px solid rgba(230, 57, 70, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fb-widget-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(230, 57, 70, 0.5);
}

.fb-page {
    width: 100% !important;
    background: transparent !important;
    border-radius: 24px;
    overflow: hidden;
}

.fb-page span,
.fb-page iframe {
    width: 100% !important;
    border-radius: 20px !important;
}

/* Stylizacja nagłówka widgetu - jeśli Facebook pozwoli */
.fb-page .fb_iframe_widget {
    border-radius: 20px;
}

.news-info {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(230,57,70,0.3);
    transition: transform 0.3s ease;
}

.news-info:hover {
    transform: translateY(-5px);
    border-color: rgba(230,57,70,0.5);
}

.news-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.news-info h3 i {
    color: var(--primary);
    margin-right: 10px;
}

.news-info ul {
    list-style: none;
    margin: 1.5rem 0;
}

.news-info ul li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-info ul li i {
    width: 30px;
    color: var(--primary);
    font-size: 1.2rem;
}

.btn-fb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #1877f2;
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-fb:hover {
    background: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.map-container {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-link {
    display: block;
    text-align: center;
    padding: 1rem;
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.map-link:hover {
    background: var(--primary);
}

footer {
    background: var(--darker);
    color: rgba(255,255,255,0.7);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 968px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .about-grid,
    .contact-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        max-width: 350px;
    }
    
    .logo-text {
        font-size: 0.85rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .schedule-legend {
        gap: 15px;
    }
    
    .individual-note {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .fb-widget-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo-text {
        font-size: 0.7rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .legend-item {
        font-size: 0.7rem;
    }
    
    .fb-widget-container {
        padding: 10px;
    }
}