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

body {
    background-color: #030303;
    color: #ffffff;
    font-family: 'Unbounded', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ФОН */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/background.jfif");
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: -1;
}

.glow {
    position: fixed;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.103) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.glow-tr {
    top: -10%;
    right: -10%;
}

.glow-bl {
    bottom: -10%;
    left: -10%;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 3.5%;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1002; /* Выше оверлея */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 22px;
}

.logo img {
    height: 60px;
}

/* NAV */
.nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav a {
    color: #8c8c8c;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #ffffff;
}

.lang-switch {
    color: #8c8c8c;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* MAIN */
.main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0%;
    max-width: 1600px;
    margin: 90px auto 0;
    width: 100%;
    flex: 1;
    position: relative;
    z-index: 2;
}

.left-col {
    max-width: 550px;
}

.main-title {
    font-weight: 600;
    font-size: 62px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 16px;
    margin: 0px 0 23px;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 60px;
}

.btn {
    padding: 14px 36px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-secondary {
    border: 1px solid #ffffffc5;
    color: #ffffff;
}

/* PROMO */
.promo-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promo-card {
    max-width: 580px;
    height: 235px;
    border-radius: 24px;
    overflow: hidden;
}

.promo-fit-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* RIGHT */
.right-col {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: -220px;
    margin-right: 50px;
}

.hero-image {
    max-width: 500px;
    width: 100%;
}

/* БУРГЕР */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1005; /* Чтобы кнопка всегда была сверху */
    position: relative;
}

.burger span {
    width: 26px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* крестик */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* OVERLAY */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Затемнение */
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1000;
    
    /* БЛЮР контента ПОД меню */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* 📱 МОБИЛКА */
@media (max-width: 768px) {

    .header {
        padding: 20px;
    }

    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: auto;
        background: transparent; 
        flex-direction: column;
        align-items: center;
        padding: 100px 20px 40px;
        gap: 25px;
        transition: all 0.4s cubic-bezier(.77, 0, .18, 1);
        z-index: 1001; 
    }

    .nav a {
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.3s;
    color: #ffffff80;

    font-variation-settings: 'wght' 100; 
    font-weight: 100;
}
    .nav.active {
        top: 0;
    }

    .nav.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .header:has(.burger.active) .logo {
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    /* задержка для “каскада” */
    .nav.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav.active a:nth-child(2) { transition-delay: 0.15s; }
    .nav.active a:nth-child(3) { transition-delay: 0.2s; }
    .nav.active a:nth-child(4) { transition-delay: 0.25s; }

    .main-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        margin: 0;
        padding: 20px;
        margin-top: 60px;
    }

    .right-col {
        order: -1;
        margin: 0;
    }

    .left-col {
        order: 1;
    }

    .hero-image {
        max-width: 300px;
        margin-bottom: 20px;
        z-index: 1; /* Картинка не должна перекрывать меню */
    }

    .main-title {
        font-size: 41px;
    }

    .subtitle {
        font-size: 13px;
    }

    .buttons {
        justify-content: center;
    }

    .promo-container {
        display: none;
    }
}