*{
    box-sizing: border-box;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}
@font-face {
    font-family: 'Comfortaa';
    src: url('../fonts/Comfortaa-VariableFont_wght.ttf');
}

body{
    background-color: #f4fff1;
}
            /*   #8C5D8A  */

.header-container {
    max-width: 1384px;
    margin: 0 auto;
    width: 100%;
    position: relative;          /* Потрібно для правильного позиціонування псевдоелемента */
    background-image: url("../img/1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 350px;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 18px;
}

.header-container::before {
    content: "";
    position: absolute;
    border-radius: 18px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Чорний напівпрозорий шар */
    z-index: 1; /* Щоб псевдоелемент був під контентом */
}

.header-container * {
    position: relative;
    z-index: 2; /* Підвищує видимість тексту та інших елементів над затемненням */
}

.header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-family: 'Roboto', sans-serif;
    color: white;
}
.logo{
    font-family: Comfortaa, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    text-align: left;
    color: #FFFFFF;
    text-transform: uppercase;
}
.navigation-menu ul{
    display: flex;
}
.navigation-menu ul li{
    padding-left: 60px;
    font-family: Comfortaa, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;

}
.header-banner{
    font-family: Comfortaa, sans-serif;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-banner div{
    width: 889px;
}
.header-banner h1{
    font-size: 72px;
    font-weight: 600;
    line-height: 86.4px;

}
.header-banner p{
    font-size: 24px;
    font-weight: 500;
    line-height: 31.2px;
}
.title{
    font-family: Comfortaa, sans-serif;
    font-size: 56px;
    font-weight: 600;
    line-height: 66px;
    text-align: center;
    padding-top: 16px;
}
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 40px;
    grid-row-gap: 32px;
    padding: 20px 20px;
}
.card-img{
    background: #8C5D8A45;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 153px;
}
.card-img img{
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
.top:before{
    content: url("../img/Top (1).png");
    position: absolute;
    top: 4px;
    left: 4px;
}
.hot:before{
    content: url("../img/Hot (1).png");
    position: absolute;
    top: 4px;
    left: 4px;
}
.card{
    background-color: #F3F3F3;
    padding: 12px;
    border-radius: 16px;
    border: 2px solid #8C5D8A;
}
.card h2{
    font-family: Comfortaa, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    padding-top: 12px;
}
.title-card{
    font-family: Comfortaa, sans-serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 600;
    line-height: 32px;
    color: #8C5D8A;
    width: 239px;
}
.card-title{
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
}
.card-title p{
    font-family: Comfortaa, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 20px;
}
.card-title span{
    font-family: Comfortaa,sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;

}
.rating{
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
}
.rating p{
    font-family: Comfortaa, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    color: #5B5F62;
}
.pay{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 13px;
}
.pay p{
    font-family: Comfortaa, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 19.6px;
    text-align: center;
    color: #5B5F62;
}
.pay button{
    padding: 16px 32px;
    background-color: #8C5D8A;
    border-radius: 40px;
    font-family: Comfortaa, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    color: #FFFFFF;
    transition: 0.2s;
}
.pay button:hover{
    background-color: #8C5D8ABB;
    transform: translateY(-4px);
}
.payment{
    display: flex;
    flex-direction: column;
}
.footer-container{
    max-width: 1384px;
    margin: 0 auto;
    width: 100%;
    background: #8C5D8A45;
    border-radius: 18px;
    margin-bottom: 24px;
}
.footer-nav{
    font-family: Comfortaa, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;

}
.footer-img-section {
    justify-content: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.logo-gam img.bga {
    max-width: 80px;
}
.logo-gam img.disc {
    max-width: 80px;
}.link-section{
     padding-top: 24px;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }
.link-section a{
    padding-bottom: 8px;
    padding-right: 15px;
}

.footer__nav{
    padding-top: 24px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 25px;
}
.footer__nav a{
    padding-right: 30px;
    padding-bottom: 8px;
}
.footer-nav{
    display: flex;
    justify-content: space-evenly;
    padding-top: 24px;
}
.disclaimer{
    font-family: Comfortaa, sans-serif;
    text-align: center;
    font-size: 14px;
    line-height: 19.6px;
    margin-top: 24px;
}
.footer__copyright{
    font-family: Comfortaa, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    padding: 24px 0;
}
.disclaimer h3{
    font-weight: 600;
    padding-bottom: 16px;
}
.disclaimer p{
    font-weight: 400;
}
.title-text{
    font-family: 'Comfortaa', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 72px;
    text-align: center;
}

.text{
    padding: 16px;
    font-family: Comfortaa, sans-serif;
}
.text h2{
    font-size: 36px;
    font-weight: 700;
    padding-bottom: 6px;
}
.text p, .text ul{
    font-size: 20px;
    font-weight: 400;
    padding-bottom: 6px;
}
.text h3{
    font-size: 30px;
    font-weight: 400;
    padding-bottom: 6px;
}
.text h4{
    font-size: 25px;
    font-weight: 400;
    padding-bottom: 6px;
}
@media (max-width: 767px){
    .header{
        flex-direction: column;
        align-items: center;
    }
    .navigation-menu ul li{
        padding-left: 16px;
    }
    .navigation-menu ul{
        padding-top: 16px;
    }
    .logo{
        padding-left: 15px;
    }
    .header-banner{
        padding-top: 8px;
    }
    .header-banner h1{
        font-size: 32px;
        font-weight: 600;
        line-height: 38.4px;
    }
    .header-banner p{
        font-size: 18px;
        line-height: 23.4px;
        padding-top: 8px;
    }
    .title{
        font-size: 32px;
        font-weight: 600;
        line-height: 40px;
        padding-top: 12px;
    }
    .cards-container {
        grid-template-columns: 1fr; /* Одна колонка на мобільних */
        grid-column-gap: 0;
        grid-row-gap: 24px;
        padding: 24px 16px;
    }
    .title-card{
        /*width: 239px;*/
    }
    .footer-nav{
        flex-direction: column;
    }
    .footer__nav{
        padding-top: 0;
    }
    footer{
        padding: 16px 8px;
    }
    .footer-container{
        padding: 16px 8px;
    }
    .footer-container{
        margin-bottom: 16px;
    }
    header{
        padding: 16px;
    }
}