@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Syne:wght@400..800&display=swap');

:root {
    --light-color: #F6F6F5;
    --dark-color: #101010;
    --accent-color: #FB5201;
    --add-color: #F54329;
    --bcg-color: #0B0416;
    --overlay: rgba(56, 22, 6, 0.84);
}

body {
    background-color: var(--bcg-color);
    font-family: 'Montserrat';
}

*,
*::after,
*::before {
    box-sizing: border-box;
    border: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header__menu {
    color: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.header__menu h1 {
    font-weight: 600;
    font-size: 36px;
}

.header__menu a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;

    &:hover {
        color: var(--accent-color);
    }
}

.header__menu .burger {
    display: none;
    width: 26px;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    span {
        width: 100%;
        height: 2px;
        background-color: var(--light-color);
        transition: all 0.3s ease;
        transform-origin: center;
    }
    span:nth-child(2) {
        width: 100%;
    }
}

.header__menu .burger.active {
    span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    span:nth-child(2) {
        opacity: 0;
    }
    span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

.header__menu ul {
    font-family: 'Poppins';
    font-weight: 400;
    font-size: 18px;
    display: flex;
    gap: 56px;
}

/* Mobile menu styles for existing nav */
@media (max-width: 1024px) {
    .header__menu nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bcg-color);
        z-index: 1000;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .header__menu ul {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .header__menu nav.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    
    .header__menu nav li a {
        font-size: 24px;
        font-weight: 500;
        color: var(--light-color);
        text-decoration: none;
        transition: color 0.3s ease;
        padding: 10px 20px;
        border-radius: 8px;
    }
    
    .header__menu nav li a:hover {
        color: var(--accent-color);
        background-color: rgba(251, 82, 1, 0.1);
    }
}

/* Footer */
.footer {
    border-top: 10px solid var(--accent-color);
    padding: 20px 0;
}

.footer__info {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    
    img {
        max-width: 300px;
    }
}

/* Custom 18+ badge */
.age-badge-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    color: #1a1612;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.age-badge-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.6);
}

/* Partner badges */
.partner-badge {
    display: inline-block;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-badge:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.partner-logo {
    height: 45px;
    width: auto;
    max-width: 120px;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.partner-badge:hover .partner-logo {
    filter: brightness(1.1);
}

.footer__text {
    color: var(--light-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 10px;
    margin-bottom: 32px;
    h3 {
        text-align: center;
        color: var(--accent-color);
        font-size: 12px;
        margin-bottom: 8px;
    }
}

/* Footer Responsible Gaming Section */
.footer__responsible {
    background: linear-gradient(135deg, #1a1612 0%, #2d2418 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 2px solid rgba(251, 82, 1, 0.3);
    
    h4 {
        color: var(--accent-color);
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 12px;
        text-align: center;
        letter-spacing: 1px;
    }
    
    p {
        color: var(--light-color);
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 20px;
        text-align: center;
    }
}

.support-aware {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.support-icon {
    height: 50px;
    width: 50px;
    background: linear-gradient(135deg, #F58220 0%, #FF9500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.4);
    flex-shrink: 0;
}

.support-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-title {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.support-subtitle {
    color: var(--light-color);
    font-size: 10px;
    opacity: 0.85;
}

.support-btn {
    display: block;
    background: linear-gradient(135deg, #F58220 0%, #FF9500 100%);
    color: var(--light-color);
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 130, 32, 0.5);
}

.footer__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    ul {
        display: flex;
        gap: 20px;
        li {
            a {
                color: var(--light-color);
                text-decoration: none;
                transition: color 0.3s ease;
                &:hover {
                    color: var(--accent-color);
                }
            }
        }
    }
    .copyright {
        font-size: 14px;
        color: var(--light-color);
        font-weight: 500;
    }
}

/* promo section */
.promo, .offer {
    margin: 16px 0;
}

.promo__block {
    display: flex;
    gap: 85px;
}

.promo__text h2 {
    display: inline;
    color: var(--light-color);
    font-weight: 700;
    font-size: 48px;
}

.promo__text span {
    color: var(--accent-color);
}

.promo__text img {
    margin: 0 15px;
    max-width: 100px;
    transform: translateY(0px);
}

.promo__images {
    display: flex;
    flex-direction: column;
    gap: 20px;

    img {
        max-width: 250px;
    }
}

/* Offer section */
.offers__wrapper {
    min-height: 40vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.offer__card {
    max-width: 100%;
    width: 100%;
    background-color: var(--accent-color);
    padding: 24px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;

    .offer__img {
        max-width: 100%;
        border-radius: 30px;
    }
    
    img {
        width: 100%;
        border-radius: 30px;
    }

    .offer__info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        margin-bottom: 10px;
        div {
            display: flex;
            gap: 6px;
            align-items: center;
            justify-content: center;
            min-width: 170px;
            padding: 9px;
            background-color: var(--light-color);
            border-radius: 32px;
            span {
                font-size: 14px;
                font-weight: 700;
                color: var(--light-color);
                background-color: var(--accent-color);
                padding: 4px;
                border-radius: 4px;
            }
        }
        p {
            font-size: 32px;
            font-weight: 600;
            color: var(--accent-color);
        }
    }

    .offer__bonus {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        font-family: 'Syne';
        div {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            width: 100%;
            span {
                color: var(--light-color);
                font-size: 18px;
                font-weight: 700;
            }
        }
    }

    .offer__button {
        background-color: var(--light-color);
        font-size: 18px;
        font-weight: 700;
        padding: 10px;
        border-radius: 26px;
        max-width: 200px;
        margin: 0 auto;
        width: 100%;

        a {
            text-decoration: none;
            color: var(--accent-color);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            transition: color 0.3s ease;
            padding: 7px 0;
            &:hover {
                img {
                    transform: translateX(10px);
                }
            }

            img {
                transition: transform 0.3s ease;
                max-width: 20px;
            }
        }
    }
}

/* Modal */

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    .modal__content {
        position: relative;
        background-color: var(--light-color);
        border: 2px solid var(--accent-color);
        padding: 48px;
        border-radius: 12px;
        max-width: 670px;
        width: 100%;

        .modal__close {
            position: absolute;
            top: 20px;
            right: 20px;
            cursor: pointer;
            font-size: 24px;
            font-weight: 500;
            color: var(--dark-color);
            transition: color 0.3s ease;
        }
        .modal__close:hover {
            color: var(--accent-color);
        }

        h3 {
            font-family: 'Montserrat', sans-serif;
            text-align: center;
            color: var(--dark-color);
            font-size: 40px;
            font-weight: 700;
            max-width: 420px;
            margin: 0 auto 40px auto;
        }
    }
    .modal__buttons {
        display: flex;
        justify-content: center;
        gap: 32px;
        button {
            background-color: var(--accent-color);
            color: var(--light-color);
            max-width: 200px;
            width: 100%;
            padding: 14px 0;
            border-radius: 26px;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 2px solid var(--accent-color);
            font-weight: 500;
            font-family: 'Poppins', sans-serif;

            &:nth-child(1) {
                background-color: var(--light-color);
                color: var(--accent-color);
                border: 2px solid var(--accent-color);
            }
        }
    }
    .modal__text {
        font-size: 14px;
        color: rgba(32, 32, 32, 1);
        text-align: center;
        margin-top: 20px;
    }

    .error-message {
        display: none;
        font-size: 14px;
        color: red;
        text-align: center;
        margin-top: 20px;
    }
}

/* media queries */
@media (max-width: 1024px) {
    .promo__images {
        display: none;
    }

    .header__menu nav {
        
    }
    .header__menu .burger {
        display: flex;
    }

    /* Footer */
    .footer__info {
        & img {
            max-width: 100px;
        }
        
        .partner-logo {
            height: 35px;
            max-width: 90px;
        }
        
        .age-badge-custom {
            height: 40px;
            width: 40px;
            font-size: 14px;
        }
    }
    
    .footer__responsible {
        padding: 20px;
        
        .support-icon {
            height: 45px;
            width: 45px;
            font-size: 12px;
        }
        
        .support-title {
            font-size: 12px;
        }
        
        .support-subtitle {
            font-size: 9px;
        }
        
        .support-btn {
            font-size: 11px;
            padding: 10px 16px;
        }
    }
}


@media (max-width: 768px) {
    .promo__text h2 {
        font-size: 40px;
    }

    .promo__text img {
        margin: 0 10px;
        transform: translateY(10px);
        max-width: 48px;
    }

    .promo__text .dices {
        max-width: 110px;
    }
}

@media (max-width: 480px) {
    .header__menu h1 {
        font-size: 28px;
    }

    .footer__nav {
        flex-direction: column;
        gap: 20px;
        align-items: start;

        ul {
            flex-wrap: wrap;
        }
    }

    .offers__wrapper {
        min-height: 50vh;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .offer__card {
        max-width: 100%;
        width: 100%;

        .offer__info {
            div {
                min-width: 100px;
                span {
                    font-size: 12px;
                }
            }
            p {
                font-size: 24px;
            }
        }

    }

    #modal {
        .modal__content {
            padding: 64px 32px;
            h3 {
                font-size: 32px;
            }
            .modal__buttons {
                gap: 20px;
            }
            .modal__text {
                font-size: 12px;
            }
        }
    }
}