* {
    box-sizing: border-box;
    font-family: "Inter", serif;
    color: #fff;
    padding: 0;
    margin: 0;
}

body {
    background: #000000;
}

a {
    text-decoration: none;
}


.max-width {
    max-width: 1280px;
    width: 100%;
}


.nav a, .menu-wrapper a {
    margin: 0 10px;
    font-size: 20px;
    font-style: italic;
    color: #fff;
    font-weight: 900;
}

.nav a:hover {
    color: #dedede;
}

.nav-mobile {
    display: none;
    cursor: pointer;
}

.menu-wrapper {
    position: absolute;
    width: 100%;
    background: #fff;
    top: 0;
    padding: 10px;
    display: none;
    border-top: 1px solid grey;
}

.menu-wrapper a {
    margin: 10 0;
    color: #000;
}

.opened {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: menu-open 0.5s forwards;
}

.top-header {
    text-align: center;
    padding: 10px;
    background: #fff;
    color: #000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo p {
    font-weight: 900;
    margin: 10px;
    font-size: 1.5em;
}
.logo img {
    width: 50px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid grey;
}


.menu-wrapper a {
    margin: 5px 0;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em;
}

.banner {
    width: 100%;
    background: url("../assets/images/banner.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4em 1em;
}

.banner-text {
    text-align: center;
    text-shadow: 1px 1px 1px black;
    background: rgba(39, 39, 39, 0.755);
    border-radius: 15px;
    padding: 2em 1em;
}

.popup_wrapper {
    top: 0;
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #000000b5;
    z-index: 999;
    display: none;
}

.popup_content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 96%;
    max-width: 450px;
    width: 100%;
    transform: translate(-50%, -50%) scale(1);
    animation: openPopup 0.5s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
    display: flex;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 10px 35px 10px;
    gap: 10px;
}

.popup_content * {
    color: #000;
}

.popup_actions {
    width: 100%;
    gap: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup_actions button {
    padding: 10px 15px;
    border: 1px solid #000;
    width: 100px;
    text-align: center;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
    text-shadow: 1px 1px 1px black;
    font-size: 2em;
}

.popup_actions button:first-child {
    background: rgb(0, 218, 0);
}

.popup_actions button:last-child {
    background: red;
}

.popup_content h1 {
    text-align: center;
}

.opened-popup {
    display: block;
}

.close {
    position: absolute;
    height: 20px;
    width: 20px;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
    outline: none;
}

.close img {
    width: 100%;
    height: 100%;
}

.text-left {
    text-align: left;
    width: 100%;
}

.to-header {
    padding: 10px 5px;
    text-align: center;
    background: #000;
}

.first-text {
    text-align: center;
    padding: 2em 1em;
}

.first-text * {
    margin: 10px 0;
}

.cards {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reverse {
    flex-direction: row-reverse;
}

.card img {
    width: 30%;
    border-radius: 15px;
}

.cards-text {
    text-align: left;
    width: 60%;
}

.second-cards {
    display: flex;
    justify-content: space-between;
}

.second-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    text-align: center;
}

.second-card img {
    width: 100px;
}

.faq {
    padding: 2em 1em;
    border: 1px solid #d1d1d1;
    border-radius: 15px;
    margin: 0 1em;
    box-sizing: border-box;
}

.disclaimer {
    text-align: center;
    padding: 2em 1em;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
}

.footer {
    width: 100%;
    display: flex;
    padding: 1em;
    flex-direction: column;
}

.brands {
    display: flex;
    flex-direction: column;

}

.brand {
    display: flex;
    align-items: center;
    padding: 1em;
    border: 1px solid rgb(132, 0, 132);
    box-shadow: 0px 0px 15px rgb(132, 0, 132);
    border-radius: 5px;
    height: 100px;
    margin: 1em 0;
}

.brand-logo, .brand-bonus, .brand-rate, .brand-btn {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.brand-logo img{
    width: 70%;
}

.brand-rate {
    width: 15%;
    flex-direction: column;
}

.brand-bonus {
    width: 35%;
}

.brand-btn a {
    width: 100%;
    height: 60px;
    outline: none;
    background: rgb(132, 0, 132);
    cursor: pointer;
    border: none;
    box-shadow: 0px 0px 25px rgb(132, 0, 132);
    font-size: 1.2em;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rate {
    font-weight: 800;
    font-size: 2em;
}

.footer-content {
    display: flex;
    justify-content: space-around;
}

.footer-logo {
    width: 50px;
    height: 50px;
}

.links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.links a {
    margin: 5px 0;
}

.footer-brands {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.copyright {
    width: 100%;
    text-align: center;
    font-size: 1em;
}

@media (max-width: 680px) {
    .second-cards {
       flex-direction: column;
       align-items: center; 
       padding: 0 1em;
    }

    .second-card {
        width: 100%;
        margin: 1em 0;
    }

    .brand-logo, .brand-bonus, .brand-rate, .brand-btn {
        width: 100%;
        margin: 10px 0;
    }

    .brand-logo img{
        width: 100%;
        max-width: 200px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        
    }

    .links:last-child {
        border-top: 1px solid grey;
        border-bottom: 1px solid grey;
        margin-top: 1em;
        margin-bottom: 1em;
    }
}

@media (max-width: 820px) {
    .brand {
        flex-direction: column;
        height: auto;
    }
}

@media screen and (max-width: 1024px) {
    .offer {
        height: auto;
        flex-direction: column;
        justify-content: space-between;
        
    }

    .offer-logo {
        width: 100%;
        align-items: center;
        height: auto;
    }

    .offer-bonus, .offer-notation {
        width: 100%;
    }

    .offers-header {
        display: none;
    }

    .offer-bonus, .offer-logo {
        justify-content: center;
        align-items: center;
    }

    .raiting {
        flex-direction: row;
    }

    .info-item {
        width: 100%;
    }

    .footer-links {
        justify-content: center;
    }
}

@media screen and (max-width: 900px) {
    .title-cards {
        flex-direction: column;
    }
}

@media screen and (max-width: 765px) {
    .nav {
        display: none;
    }

    .header {
        justify-content: space-between;
    }

    .nav-mobile {
        display: block;
    }

    .title h1 {
        font-size: 28px;
    }

    .title p {
        font-size: 18px;

    }

    .bonus-value {
        font-size: 28px;
    }

    .bottom-links {
        display: flex;
        flex-direction: column;
    }
}

@keyframes menu-open {
    from {
        top: -100%;
    }

    to {
        top: 60px;
    }
}