* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-text {
    position: relative;
    left: auto;
    top: auto;
    max-width: 600px;
    padding: 3rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.social-widgets {
    position: relative;
    right: auto;
    top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0;
}

:root {
    --font-heading: 'Bebas Neue', sans-serif;
    --font-accent: 'Teko', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --primary-color: #e31837;
    --dark-bg: rgba(0, 0, 0, 0.9);
    --card-bg: rgba(0, 0, 0, 0.7);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('bg-new.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    min-height: 100vh;
}

/* Nawigacja */
nav {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    background-color: var(--dark-bg);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero section */
.hero {
    min-height: 100vh;
    padding-top: 80px;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 7rem;
    line-height: 0.9;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-text {
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.accent {
    font-family: var(--font-accent);
    font-size: 6rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.facebook-container, .instagram-container {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 380px;
    margin-bottom: 20px;
}

.facebook-container iframe,
.instagram-container iframe {
    max-width: 100%;
    display: block;
}

/* Przyciski CTA */
.cta-container {
    display: flex;
    gap: 1rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
}

.cta-button.secondary:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.heart-spinner {
    width: 100px;
    height: auto;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

#content {
    transition: opacity 0.5s ease;
}

/* Stopka */
footer {
    background-color: var(--dark-bg);
    color: #ffffff;
    text-align: center;
    padding: 1rem;
}

/* Responsywność */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
    }

    .hero-text {
        position: relative;
        left: auto;
        top: auto;
        max-width: 100%;
        margin: 0 auto 2rem;
        text-align: center;
    }

    .social-widgets {
        position: relative;
        right: auto;
        top: auto;
        margin: 0 auto;
    }

    .facebook-container,
    .instagram-container {
        margin: 0 auto;
        width: 100%;
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .accent {
        font-size: 4rem;
    }
    
    .cta-container {
        flex-direction: column;
    }

    .hero-text {
        padding: 1.5rem;
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card h2 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 3rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.gallery-card {
    height: 200px;
    width: 500px;
    margin: 100px auto;
    position: relative;
}

.gallery-card img {
    height: 100px;
    position: absolute;
    left: 0;
    offset-path: path('m 0 50 q 50-30 100-30 t 100 30 100 0 100-30 100 30');
    box-shadow: 1px 1px 3px #0008;
    transition: transform .4s ease-out, offset-path .4s cubic-bezier(.77,-1.17,.75,.84),box-shadow .3s, z-index .3s;
    z-index: 0;
}

.gallery-card img:hover {
    transform: scale(3);
    /* on hover, the path gets a bit shorter & flattened & shifted to left/bottom a bit for nicer movement */
    offset-path: path('m 5 65 q 45-0 90-0 t 90 0 90 0 90-0 90 0');
    box-shadow: 3px 4px 10px #0006;
    /* ensures that image gets on top of stack at the start of "popping" animation
       and gets back at the end of getting back. With smaller value, 2 different transitions would be needed */
    z-index: 999;
}

/* 3 images */
.gallery-card img:nth-last-child(3):first-child {
    offset-distance: 17%;
}
.gallery-card img:nth-last-child(2):nth-child(2) {
    offset-distance: 49%;
}
.gallery-card img:last-child:nth-child(3) {
    offset-distance: 81%;
}

/* 4 images */
.gallery-card img:nth-last-child(4):first-child {
    offset-distance: 10%;
}
.gallery-card img:nth-last-child(3):nth-child(2) {
    offset-distance: 35%;
}
.gallery-card img:nth-last-child(2):nth-child(3) {
    offset-distance: 65%;
}
.gallery-card img:last-child:nth-child(4) {
    offset-distance: 90%;
}

/* 5 images */
.gallery-card img:nth-last-child(5):first-child {
    offset-distance: 0%;
}
.gallery-card img:nth-last-child(4):nth-child(2) {
    offset-distance: 25%;
}
.gallery-card img:nth-last-child(3):nth-child(3) {
    offset-distance: 51%;
}
.gallery-card img:nth-last-child(2):nth-child(4) {
    offset-distance: 75%;
}
.gallery-card img:last-child:nth-child(5) {
    offset-distance: 100%;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item h3 {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.3);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.classes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.class-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.class-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.class-item h3 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.class-age {
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ffffff;
}

.class-description {
    font-size: 1rem;
    line-height: 1.6;
}

.classes-cta {
    font-size: 1.3rem;
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-item h3 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-cta {
    font-size: 1.3rem;
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
}
