:root {
    --primary-color: #5d06e9;
    --secondary-color: #ff8c00;
    --text-color-dark: #222;
    --text-color-medium: #444;
    --background-dark: #121212;
    --background-light: #f0f2f5;
    --font-main: 'Nunito', sans-serif;
    --font-heading: 'Nunito', sans-serif;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-color-medium);
    line-height: 1.6;
}



section.section-intro{
    padding: 40px;
    background: linear-gradient(to top, #1c083e, #2c236d);
}
section.section-intro h2{
    margin: 0px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    position: relative;
    z-index: 5;
}
/* Parallax Layers */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: bottom;
    will-change: transform; /* Hint for browser performance */
}

/* Assign images and stacking order */
.layer-1 {
    background-image: url('/img/parallax-layer-1.jpg'); /* Самый дальний слой */
    z-index: 1;
    background-position: center;
}

.layer-2 {
    background-image: url('/img/parallax-layer-2.png'); /* Средний слой */
    z-index: 2;
    background-size: 75%;
    background-repeat: no-repeat;
}

.layer-3 {
    background-image: url('/img/parallax-layer-3.png'); /* Передний слой */
    background-size: 100%;
    background-repeat: no-repeat;
    z-index: 3;
}

/* Other styles remain unchanged from your last version */
.hero-content h1 {
    font-size: 3em;
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}
.hero-content p {
    font-size: 1.5em;
    margin-top: 10px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* New Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3em;
    border: none !important;
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    box-shadow: 0 1px 5px #0003,0 2px 2px #00000024,0 3px 1px -2px #0000001f,inset 0 -1px #ffffff1a,inset 0 1px #ffffff1a,inset 0 0 0 2px #ffffff21;
    border-bottom: 3px solid rgba(0,0,0,.15) !important;
}
.btn:hover {
    transform: translateY(-3px);
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #4f05d5;
}
.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}
.btn-secondary:hover {
    background-color: #e67e00;
}

/* Main Content Sections */
.section {
    padding: 80px 20px;
    text-align: center;
}
.section-light {
    background-color: var(--background-light);
}
.section-dark-primary {
    background-color: #2c236d;
    color: #fff;
}
.section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1;
}
.section-dark h2 {
    color: var(--secondary-color);
}
.section h4 {
    margin: 16px auto;
}
.section p {
    max-width: 800px;
    margin: 0 auto 40px;
}


/* Social Links */
.social-links-promo {
    padding: 40px 20px;
    background-color: var(--background-light);
}
.social-links-promo h3 {
    font-family: var(--font-heading);
    color: var(--text-color-dark);
    margin-bottom: 20px;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 1px 5px #0003,0 2px 2px #00000024,0 3px 1px -2px #0000001f,inset 0 -1px #ffffff1a,inset 0 1px #ffffff1a,inset 0 0 0 2px #ffffff21;
    border-bottom: 3px solid rgba(0,0,0,.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.social-icon:hover {
    transform: translateY(-3px);
}
.social-icon.vk { background-color: #4a76a8; }
.social-icon.telegram { background-color: #0088cc; }


/* Image Grids */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}
.image-card {
    transition: transform 0.3s ease;
    text-align: left;
}
.image-card:hover {
    transform: translateY(-10px);
}
.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.image-card-content {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}
.image-card-content h3 {
    font-size: 1.4em;
    margin: 0;
    color: var(--primary-color);
}
.image-card-content p {
    color: var(--background-dark);
    font-size: 0.9em;
    margin: 0;
}

.text-white{
    color: #fff !important;
}
.text-dark{
    color: var(--text-color-medium) !important;
}
@media only screen and (min-width: 1600px) {
    .layer-2 {
        background-size: 65%;
        background-position-y: 150%;
    }
}
@media only screen and (max-width: 900px) {
    .layer-2 {
        background-size: 125vw;
    }
    .hero {
        height: 60vh;
    }
    .header-container{
        
    }
    .header-container .menu-container .menu{
        display: none;
    }
}
@media only screen and (max-width: 450px) {
    .layer-2 {
        background-size: 170vw !important;
    }
    .layer-3 {
        background-size: 170vw !important;
    }
}


