/* ================================
   Базовые стили
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f3e6d0; /* песочный фон */
    color: #3b2f1f; /* тёмно-коричневый текст */
    line-height: 1.6;
}

/* ================================
   Шапка
================================ */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-header {
    background: #3b2f1f;
    padding: 20px 30px;
    position: fixed;
    top: 30px;
    width: 100%;
    z-index: 9999;
    border-bottom: 3px solid #d4af37;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #f7e3a0;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s, transform 0.3s;
}

.main-nav a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

/* ================================
   Адаптивность для мобильных
================================ */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* скрываем на мобильных (можно добавить бургер) */
    }
}


/* ================================
   Header / Navigation
================================ */


.site-header .logo img {
    height: 50px;
}

/* Навигация */
.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #f7e3a0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #d4af37;
}

/* ================================
   Бургер меню
================================ */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #f7e3a0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Активное состояние */
.burger-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Мобильная версия */
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 70px; /* ниже шапки */
        right: 0;
        background: #3b2f1f;
        flex-direction: column;
        width: 200px;
        padding: 15px;
        border-radius: 0 0 0 8px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .burger-btn {
        display: flex;
    }
}

/* ================================
   Закреплённая плашка +18
================================ */
.age-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #b22222; /* тёмно-красный */
    color: #fff;
    text-align: center;
    padding: 5px 0;
    font-weight: bold;
    z-index: 10000;
    font-size: 16px;
}

/* ================================
   Попап проверки возраста
================================ */
.age-popup {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    animation: fadeIn 0.5s ease-in-out;
}

.popup-content {
    background: #fdf6e3; /* светлый песочный */
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 2px solid #d4af37; /* золотая рамка */
}

.popup-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #3b2f1f;
}

.popup-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #3b2f1f;
}

.btn-confirm {
    padding: 12px 25px;
    background: #d4af37; /* золотой */
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    color: #3b2f1f;
}

.btn-confirm:hover {
    background: #f7e3a0; /* светлый золотой */
}

/* Анимация появления попапа */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================================
   Hero Section
================================ */
#hero {
    margin-top: 130px; /* учёт шапки + баннера */
    text-align: center;
    padding: 60px 20px;
    background: url('../images/hero118.png') center/cover no-repeat;
    color: #fff;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

#hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #ffd700; /* золотой текст */
}

#hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    color: #f7e3a0;
}

/* ================================
   Game Section
================================ */

#game {
    text-align: center;
    padding: 50px 20px;
    background: #fdf6e3; /* светлый песочный фон */
}

#game img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

#game img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.play-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 35px;
    background: #d4af37; /* золотая кнопка */
    color: #3b2f1f;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s;
}

.play-button:hover {
    background: #ffcc00;
    transform: translateY(-3px);
}

/* ================================
   Адаптивность
================================ */
@media (max-width: 1024px) {
    #game {
        padding: 40px 15px;
    }

    .play-button {
        font-size: 16px;
        padding: 12px 30px;
    }
}

@media (max-width: 768px) {
    #game {
        padding: 35px 10px;
    }

    .play-button {
        font-size: 15px;
        padding: 10px 25px;
    }

    #game img {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    #game {
        padding: 30px 5px;
    }

    .play-button {
        width: 90%;
        font-size: 14px;
        padding: 12px 0;
    }
}


/* ================================
   Info Section
================================ */
#info {
    padding: 50px 20px;
    background: #f3e6d0; /* песочный */
    text-align: center;
}

#info h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #3b2f1f;
}

#info p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    color: #3b2f1f;
}

/* ================================
   Footer
================================ */
.site-footer {
    background: #3b2f1f;
    color: #f7e3a0;
    text-align: center;
    padding: 30px 20px;
    border-top: 3px solid #d4af37;
}

.container-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.footer-links a img {
    height: 50px;
    transition: transform 0.3s, filter 0.3s;
}

.footer-links a img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-links {
        gap: 15px;
    }

    .footer-links a img {
        height: 40px;
    }
}


/* ================================
   Адаптивность
================================ */
@media (max-width: 768px) {
    .main-nav a {
        margin-left: 10px;
        font-size: 14px;
    }

    #hero h1 {
        font-size: 28px;
    }

    #hero p {
        font-size: 16px;
    }

    #info h2 {
        font-size: 24px;
    }

    #info p {
        font-size: 14px;
    }
}

/* ================================
   Advantages Cards Section
================================ */
#advantages {
    padding: 60px 20px;
    background: #f3e6d0; /* песочный фон */
    text-align: center;
}

.container-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #d4af37; /* золотой фон */
    color: #3b2f1f;
    padding: 30px 20px;
    border-radius: 12px;
    width: 270px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.card p {
    font-size: 15px;
    line-height: 1.5;
}


/* Hover эффект */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .container-cards {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .card {
        width: 80%;
    }
}

/* ================================
   Terms & Legal Section
================================ */
#terms {
    padding: 60px 20px;
    background: #f3e6d0; /* песочный фон */
    color: #3b2f1f;
}

.container-terms {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

#terms h1 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #d4af37; /* золотой заголовок */
    text-align: center;
}

#terms h2 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #3b2f1f;
}

#terms p {
    font-size: 16px;
    margin-bottom: 15px;
}

#terms a {
    color: #ffd700;
    text-decoration: underline;
}

#terms a:hover {
    color: #fff176;
}



/* ================================
   Legal / Disclaimer Section
================================ */
#legal {
    padding: 60px 20px;
    background: #f3e6d0; /* светлый песочный фон */
    color: #3b2f1f;       /* тёмно-коричневый текст */
}

.container-terms {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

#legal h1 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #d4af37; /* золотой заголовок */
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

#legal h2 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #3b2f1f;
    border-left: 4px solid #d4af37;
    padding-left: 10px;
}

#legal p {
    font-size: 16px;
    margin-bottom: 15px;
}

#legal a {
    color: #ffd700;
    text-decoration: underline;
    transition: color 0.3s;
}

#legal a:hover {
    color: #fff176;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    #legal h1 {
        font-size: 28px;
    }

    #legal h2 {
        font-size: 20px;
    }

    #legal p {
        font-size: 15px;
    }
}

/* ================================
   Game Title
================================ */
#game-title {
    padding: 60px 20px;
    background: #f3e6d0; /* песочный фон */
    color: #3b2f1f;
    text-align: center;
}

#game-title h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #d4af37; /* золотой */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

#game-title p {
    font-size: 18px;
}

/* ================================
   Game iframe
================================ */
.iframe-wrapper {
    text-align: center;
    margin: 40px 0;
}

.iframe-wrapper iframe {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    border: 5px solid #d4af37;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.iframe-wrapper iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    #game-title h1 {
        font-size: 28px;
    }

    #game-title p {
        font-size: 16px;
    }

    .iframe-wrapper iframe {
        height: 500px;
    }
}
