:root {
    --primary: #FFD700;
    --accent: #FF6B6B;
    --dark: #1a1a1a;
    --light: #ffffff;
    --overlay: rgba(0,0,0,0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

/* Навигация */
nav {
    background: rgba(26, 26, 26, 0.98);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 60px;
    transition: transform 0.3s;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger .line {
    width: 25px;
    height: 3px;
    background: var(--light);
    margin: 5px;
    transition: 0.3s;
}

/* Герой секция */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 40%, transparent 100%), 
                url('/images/banners/main-banner.webp') center/cover;
    margin-top: 80px;
}

.hero-content {
    text-align: left;
    max-width: 600px;
    margin-left: 15%;
    padding: 40px;
    background: rgba(0,0,0,0.6);
    border-radius: 15px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-subtitle {
    font-size: 1.8rem;
    line-height: 1.3;
    opacity: 0.9;
}

/* Секция "О нас" */
.about {
    padding: 5rem 2rem;
    background: #252525;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--dark);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-card p {
    opacity: 0.8;
}

/* Галерея */
.gallery {
    padding: 5rem 2rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 180px;
    grid-gap: 0.8rem;
    grid-auto-flow: dense;
    max-width: 1400px;
    margin: 1rem auto;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 1/1;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.masonry-item:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Видео секция */
.video-section {
    padding: 3rem 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
    aspect-ratio: 16/9;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Футер */
footer {
    background: #121212;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-block, 
.social-block {
    width: 100%;
}

.contact-block p {
    margin: 1rem 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    color: var(--primary);
    font-size: 2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    opacity: 0.7;
}

/* Лайтбокс */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        margin-left: 10%;
    }
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-content {
        margin-left: 5%;
    }
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        transition: 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                    url('/images/banners/main-banner.webp') center/cover;
    }
    
    .hero-content {
        max-width: 90%;
        margin: 0 auto;
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .about {
        padding: 3rem 1rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .footer-container {
        gap: 2rem;
        padding: 0 1rem;
    }

    /* Мобильная галерея */
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 1rem;
    }

    .masonry-item {
        aspect-ratio: unset;
        height: auto;
    }

    .masonry-item img {
        width: 100%;
        height: auto;
        min-height: 200px;
        object-fit: contain;
    }
}

@media (max-width: 576px) {
    .hero {
        background-position: 60% center;
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .social-links a {
        font-size: 1.8rem;
    }
}