/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    color: #fff;
    line-height: 1.8;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center, #7FDBDA 0%, #1ABC9C 50%, #0E6655 100%);
    background-size: 200% 200%;
    animation: bgPulse 30s ease-in-out infinite alternate, hueShift 30s linear infinite;
}

@keyframes bgPulse {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

@keyframes hueShift {
    0% {
        filter: hue-rotate(-10deg);
    }
    100% {
        filter: hue-rotate(20deg);
    }
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    max-height: 50px;
    filter: brightness(1.2);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    color: #ffe100;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-list a:hover {
    color: #fff;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffe100;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-btn.vk {
    background: linear-gradient(135deg, #0077ff, #0055cc);
    color: #fff;
}

.social-btn.tg {
    background: linear-gradient(135deg, #0088cc, #006699);
    color: #fff;
}

.social-btn.wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.12);
    box-shadow: 0 5px 20px rgba(255, 225, 0, 0.5);
}

/* Hero */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(31, 31, 31, 0.7), rgba(42, 42, 42, 0.7)), 
                url('images/s.jpg') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(31, 31, 31, 0.7), rgba(42, 42, 42, 0.7));
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-descr {
    font-size: 1.5rem;
    color: #f0f0f0;
    margin-bottom: 35px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, #ffe100, #ffcc00);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 225, 0, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 225, 0, 0.4);
    background: linear-gradient(135deg, #ffcc00, #ffe100);
}

/* Philosophy */
.philosophy {
    padding: 120px 0;
    color: #fff;
}

.philosophy .container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #ffe100;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffe100, transparent);
}

.section-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #f0f0f0;
}

/* Gallery */
.gallery {
    padding: 80px 0;
}

.gallery-container {
    width: 100%;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-grid-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
    aspect-ratio: 1/1;
}

.gallery-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.gallery-grid-item:hover img {
    transform: scale(1.08);
}

/* Contact */
.contact {
    padding: 80px 0;
}

.contact-content {
    text-align: center;
    max-width: 60%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 225, 0, 0.1);
}

.contact-info {
    font-size: 1.4rem;
    margin: 30px 0;
    line-height: 2;
    color: #f0f0f0;
}

.contact-info a {
    color: #ffe100;
    transition: color 0.3s ease;
}

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

.social-links-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.social-links-contact .social-btn {
    width: 50px;
    height: 50px;
    font-size: 14px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    color: #ffe100;
    background: rgba(255, 225, 0, 0.2);
    transform: rotate(90deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-list {
        gap: 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-descr {
        font-size: 1.2rem;
    }

    .contact-content {
        max-width: 90%;
        padding: 30px 20px;
    }

    .social-links-contact {
        gap: 15px;
    }

    .social-links-contact .social-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
