* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
}

header.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #1e3a8a;  /* Updated header background */
    color: white;
    position: relative;
}

header.main-header .logo img {
    max-height: 50px;
}

header.main-header .main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav li:last-child, .mobile-menu li:last-child {
    background: #f4511e;  /* Updated accent color */
    margin-top: 0 !important;
    border-radius: 5px;
}

header.main-header .main-nav ul li {
    display: inline;
}

header.main-header .main-nav ul li a, 
header.main-header .main-nav ul li button {
    color: white;
    text-decoration: none;
    font-size: 16px;
    background: none;
    border: none;
    cursor: pointer;
}

header.main-header .main-nav ul li button:hover, 
header.main-header .main-nav ul li a:hover {
    text-decoration: underline;
}

header.main-header .mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

header.main-section {
    background: url('../img/hero.jpg') no-repeat center center;
    background-size: cover;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.main-section__overlay {
    background: rgba(0, 0, 0, 0.7); /* Updated overlay color for better contrast */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.main-section__overlay h1 {
    font-size: 55px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 400px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    border-radius: 5px;
}

.contact-form label {
    text-align: left;
    margin-top: 10px;
}

.benefits-section, 
.discount-section, 
.games-section, 
.gallery-section, 
.reviews-section, 
.contact-section, 
.about-section, 
.faq-section, 
footer {
    padding: 50px 20px;
}

.benefits-section, 
.discount-section, 
.contact-section, 
.about-section, 
.faq-section {
    display: flex;
    justify-content: space-between;
}

.benefit-item, 
.discount-text, 
.contact-text, 
.about-text, 
.faq-questions {
    flex: 1;
    width: 49%;
    margin: 10px;
}

.discount-text h3 {
    font-size: 35px;
}

.discount-section p {
    font-size: 23px;
}

.discount-image, 
.contact-image, 
.about-image, 
.faq-image {
    flex: 1;
    width: 49%;
    margin: 10px;
}

.discount-image img, 
.contact-image img, 
.about-image img, 
.faq-image img {
    max-width: 100%;
    height: auto;
}

.game-item img {
    height: 300px;
}

.benefits-section:nth-child(odd),
.discount-section:nth-child(odd),
.gallery-section:nth-child(odd),
-contact-section:nth-child(odd),
.about-section:nth-child(odd),
.faq-section:nth-child(odd) {
    background-color: #f9f9f9;
}

.reviews-section {
    position: relative;
}

.reviews-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.review-item {
    scroll-snap-align: center;
    flex: 0 0 300px;
    margin: 10px;
}

.review-item img {
    width: 70%;
    border-radius: 50%;
}

#game-order-form {
    display: flex;
    flex-direction: column;
    width: 400px;
    gap: 20px;
}

#game-order-form input {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid grey;
}

.games-section .games-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.game-item {
    width: calc(33.333% - 20px);
    margin: 10px;
    text-align: center;
    box-shadow: 6px 7px 11px grey;
    padding: 10px;
}

.gallery-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.gallery-item {
    width: calc(25% - 20px);
    margin: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
}

.faq-questions {
    max-width: 600px;
}

.faq-item {
    margin-bottom: 10px;
    padding: 0px 10px;
    border: 1px solid;
}

.faq-answer {
    display: none;
    margin-top: 5px;
}

footer {
    background: #1e3a8a;  /* Updated footer background */
    color: white;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    align-items: flex-start;
}

.footer-contact, 
.footer-map, 
.footer-links, 
.footer-rights {
    flex: 1;
    margin: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-rights {
    background: #1e3a8a;  /* Updated to match footer background */
    color: #fff;
    margin: 0;
    padding: 5px;
}

.footer-contact {
    text-align: left;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-rights {
    text-align: center;
    width: 100%;
}

button, .contact-form button {
    background-color: #f4511e;  /* Updated button color */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button:hover, .contact-form button:hover {
    background-color: #d84315;  /* Updated button hover color */
}

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 20px;
    background-color: #1e3a8a;  /* Updated cookie notice background */
    color: white;
    padding: 15px;
    border-radius: 5px;
    max-width: 250px;
    display: none;
    transition: display 0.3s ease-in-out;
}

.popup-form, .popup-thankyou {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.popup-content {
    position: relative;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}

@media (max-width: 768px) {
    /* Шапка и навигация */
    header.main-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    header.main-header .main-nav {
        display: none;
    }
    header.main-header .mobile-menu-icon {
        display: block;
    }
    
    /* Мобильное меню */
    .mobile-menu {
        display: block;
        position: absolute;
        top: 60px; /* отступ от верхней части шапки */
        left: 0;
        width: 100%;
        background: #1e3a8a;
    }
    .mobile-menu ul {
        flex-direction: column;
        padding: 10px;
        margin: 0;
    }
    .mobile-menu ul li {
        margin: 10px 0;
        text-align: center;
    }

    /* Секция героя */
    header.main-section {
        height: 40vh;
        padding: 10px;
    }
    .main-section__overlay h1 {
        font-size: 40px;
    }

    /* Формы и контент */
    .contact-form,
    #game-order-form {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .benefits-section, 
    .discount-section, 
    .contact-section, 
    .about-section, 
    .faq-section {
        flex-direction: column;
        align-items: center;
    }
    .benefit-item, 
    .discount-text, 
    .contact-text, 
    .about-text, 
    .faq-questions {
        width: 100%;
        margin: 10px 0;
    }

    /* Секция игр */
    .games-section .games-list {
        flex-direction: column;
        align-items: center;
    }
    .game-item {
        width: 90%;
        margin: 10px 0;
    }

    /* Галерея */
    .gallery-list {
        flex-direction: column;
        align-items: center;
    }
    .gallery-item {
        width: 90%;
        margin: 10px 0;
    }
}
@media (max-width: 768px) {
    footer {
        flex-direction: column;
    }
    /* Шапка и навигация */
    header.main-header {
        flex-direction: row;
        align-items: flex-start;
        padding: 10px;
    }
    header.main-header .main-nav {
        display: none;
    }
    header.main-header .mobile-menu-icon {
        display: block;
    }
    
    /* Мобильное меню */
    .mobile-menu {
        display: block;
        position: absolute;
        top: 60px; /* Отступ от верха шапки */
        left: 0;
        width: 100%;
        background: #1e3a8a;
    }
    .mobile-menu ul {
        flex-direction: column;
        padding: 10px;
        margin: 0;
    }
    .mobile-menu ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    /* Секция героя */
    header.main-section {
        height: 40vh;
        padding: 10px;
    }
    .main-section__overlay h1 {
        font-size: 40px;
    }
    
    /* Формы и прочий контент */
    .contact-form,
    #game-order-form {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .benefits-section, 
    .discount-section, 
    .contact-section, 
    .about-section, 
    .faq-section {
        flex-direction: column;
        align-items: center;
    }
    .benefit-item, 
    .discount-text, 
    .contact-text, 
    .about-text, 
    .faq-questions {
        width: 100%;
        margin: 10px 0;
    }
    
    /* Секция игр */
    .games-section .games-list {
        flex-direction: column;
        align-items: center;
    }
    .game-item {
        width: 90%;
        margin: 10px 0;
    }
    
    /* Галерея */
    .gallery-list {
        flex-direction: column;
        align-items: center;
    }
    .gallery-item {
        width: 90%;
        margin: 10px 0;
    }
}
