/* ----------------- Общие стили ----------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
     overflow-x: hidden;
}

/* ----------------- Контейнер ----------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ----------------- Header ----------------- */
/* ---------- Header ---------- */
.site-header {
    background: #001f36;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.logo img {
    display: block;
    height: 50px;
}

/* ---------- Navigation ---------- */
.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #1e88e5;
}

/* ---------- Burger Button ---------- */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-lines {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ---------- Burger Active State ---------- */
.burger-btn.active .burger-lines:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}
.burger-btn.active .burger-lines:nth-child(2) {
    opacity: 0;
}
.burger-btn.active .burger-lines:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* ---------- Mobile Styles ---------- */
@media (max-width: 768px) {
    .burger-btn {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 60px;
        right: 0;
        flex-direction: column;
        background: #001f36;
        width: 200px;
        padding: 15px;
        border-radius: 0 0 0 8px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        gap: 15px;
    }

    .main-nav.open {
        transform: translateX(0);
    }
}



/* ----------------- Footer ----------------- */
.site-footer {
    background: #001f36;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.site-footer a:hover {
    color: #1e88e5;
}


/* ----------------- Попап 18+ ----------------- */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
}

.popup-content {
    background: #fff;
    color: #000;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
}

.popup-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.popup-content button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #1e88e5;
    border: none;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s;
}

.popup-content button:hover {
    background: #1565c0;
}

/* ----------------- Баннер cookies ----------------- */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #333;
    color: #fff;
    padding: 12px;
    text-align: center;
    z-index: 999;
}

.cookie-banner button {
    padding: 6px 12px;
    margin-left: 10px;
    background: #1e88e5;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-banner button:hover {
    background: #1565c0;
}

/* ----------------- Мобильная адаптивность ----------------- */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .games-overview {
        flex-direction: column;
    }
}

/* Верхний красный баннер 18+ */
.top-banner {
    width: 100%;
    background: #c0392b; /* насыщенный красный */
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-weight: bold;
    font-size: 16px;
}

/* ----------------- Hero Block с тёмным градиентом ----------------- */
.hero-block {
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #0d1b2a, #1b263b, #415a77);
    background-size: 600% 600%;
    animation: gradientAnimation 20s ease infinite;
}

/* Плавная анимация градиента */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Кнопка */
.hero-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #1e88e5; /* яркий акцент на тёмном фоне */
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #1565c0;
    transform: scale(1.05);
}

/* Анимация появления текста */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 32px; }
    .hero-content p { font-size: 16px; }
}

/* ----------------- Games Overview ----------------- */
.games-overview h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    color: #001f36;
}

/* Сетка для карточек игр */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.game-card {
    background: #0d1b2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
    display: flex;
    flex-direction: column; /* вертикальный блок */
    color: white;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.game-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.game-card h3 {
    font-size: 20px;
    margin: 10px 0;
}

.game-card p {
    font-size: 14px;
    flex-grow: 1; /* текст занимает оставшееся пространство */
}

.game-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #1e88e5;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: auto; /* прижимает кнопку к низу карточки */
    transition: all 0.3s ease;
}

.game-btn:hover {
    background: #1565c0;
    transform: scale(1.05);
}


/* Адаптивность */
@media (max-width: 768px) {
    .games-overview h2 { font-size: 28px; }
    .game-card h3 { font-size: 16px; }
    .game-card p { font-size: 13px; }
}

#sg{
  text-align: center;
  margin: auto;
}

/* ----------------- Кнопки “Play” в карточках ----------------- */
/* ----------------- Game Cards Button ----------------- */
.game-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #1e88e5;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.game-btn:hover {
    background: #1565c0;
    transform: scale(1.05);
}


.about-us {
    background: #f0f4f8;
    color: #1b263b;
    padding: 60px 20px;
    text-align: center;
}

.about-us h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #001f36;
}

.about-us p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-us h2 { font-size: 28px; }
    .about-us p { font-size: 16px; }
}



/* ----------------- Offers / What We Offer ----------------- */
.offers {
    background: #1b263b;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.offers h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #1e88e5;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.offer-card {
    background: #0d1b2a;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.offer-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1e88e5;
}

.offer-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .offers h2 { font-size: 28px; }
    .offer-card h3 { font-size: 18px; }
    .offer-card p { font-size: 14px; }
}

/* ----------------- Contact Us ----------------- */
.contact-us {
    background: #f0f4f8;
    color: #1b263b;
    padding: 60px 20px;
    text-align: center;
}

.contact-us h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #001f36;
}

.contact-us p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

/* Форма */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 100%;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 5px rgba(30,136,229,0.5);
}

/* Кнопка */
.contact-form button {
    padding: 12px 25px;
    background: #1e88e5;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #1565c0;
    transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-us h2 { font-size: 28px; }
    .contact-us p { font-size: 16px; }
    .contact-form button { font-size: 14px; }
}


/* ----------------- Footer ----------------- */
.site-footer {
    background: #ffffff;
    color: #06025d;
    padding: 40px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a img {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-links a img:hover {
    transform: scale(1.1);
}

.site-footer p {
    font-size: 14px;
    color: #aaa;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ----------------- Legal Pages (Privacy, GDPR, Terms, Legal Notice) ----------------- */
.legal-page {
  text-align: center;
    background: #f0f4f8; /* светлый фон для лучшей читаемости */
    color: #1b263b;      /* тёмный текст */
    padding: 60px 20px;
    min-height: 80vh;
}

.legal-page h1 {
    font-size: 36px;
    margin-bottom: 25px;
    text-align: center;
    color: #001f36;
}

.legal-page h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1e88e5;
}

.legal-page p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 15px auto;
}

/* Ссылки внутри текстов */
.legal-page a {
    color: #1e88e5;
    text-decoration: underline;
}

.legal-page a:hover {
    color: #1565c0;
}

/* Списки */
.legal-page ul {
    max-width: 800px;
    margin: 0 auto 15px auto;
    padding-left: 20px;
}

.legal-page li {
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .legal-page h1 { font-size: 28px; }
    .legal-page h2 { font-size: 20px; }
    .legal-page p, .legal-page li { font-size: 14px; }
}

/* ----------------- Game Page ----------------- */
.game-page {
    padding: 60px 20px;
    background: #0d1b2a;
    color: #fff;
    min-height: 80vh;
    text-align: center;
}

.game-page h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #1e88e5;
}

/* Обертка для iframe */
.game-iframe-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .game-page h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .game-iframe-wrapper iframe {
        height: 400px;
    }
}
