/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e88e5;
    --dark-blue: #0d47a1;
    --light-blue: #64b5f6;
    --accent-green: #26a69a;
    --dark-green: #00695c;
    --light-green: #80cbc4;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #757575;
    --dark-gray: #424242;
    --text-dark: #212121;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px !important;
}



.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* Games Section */
.games-section {
    background: var(--light-gray);
    padding: 4rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.game-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px var(--shadow-hover);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 100%);
}

.game-content {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.game-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-secondary {
    background: var(--gray);
}

.btn-show-more {
    display: block;
    text-align: center;
    margin: 2rem auto 0;
    max-width: 200px;
}

/* Testimonials */
.testimonials {
    padding: 4rem 2rem;
    background: var(--white);
}

.testimonial-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px var(--shadow);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 4rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    position: relative;
}

.footer-section:first-child {
    padding-right: 1rem;
}

.footer-section img {
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-section img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--light-green);
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--light-green), transparent);
    border-radius: 2px;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1rem;
    transition: opacity 0.3s;
}

.footer-section p:hover {
    opacity: 1;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.25rem;
}

.footer-links li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--light-green);
    font-weight: bold;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-links li:hover::before {
    opacity: 1;
    transform: translateX(3px);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light-green);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--light-green);
    transform: translateX(5px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-orgs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-orgs a {
    display: flex;
    opacity: 0.85;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    height: 60px;
    width: auto;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-orgs a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.footer-orgs img {
    height: auto;
    width: 120px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-orgs a:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
    transform: scale(1.05);
}

.footer-orgs img[alt="18+"] {
    filter: none;
    height: auto;
    width: 60px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-bottom p {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal h2 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.modal p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-modal {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-modal:hover {
    transform: scale(1.05);
}

.btn-accept {
    background: var(--accent-green);
    color: var(--white);
}

.btn-decline {
    background: var(--gray);
    color: var(--white);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-gray);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -4px 12px var(--shadow);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Game Page */
.game-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h1 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.game-iframe-container {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px var(--shadow);
}

.game-iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: 8px;
    background: var(--white);
}

.game-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
}

.info-card h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .burger-menu {
        display: flex;
    }

    /* Убираем nav из потока на мобильных, чтобы он не занимал место */
    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 0;
        height: 0;
        overflow: visible;
        z-index: 1000;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-menu a:hover {
        opacity: 1;
        padding-left: 1rem;
        transition: padding-left 0.3s;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
        margin: 2rem auto;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .games-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .game-content {
        padding: 1.25rem;
    }

    .game-title {
        font-size: 1.25rem;
    }

    .testimonials {
        padding: 3rem 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .game-page {
        padding: 1.5rem 1rem;
    }

    .game-header h1 {
        font-size: 2rem;
    }

    .game-iframe-container {
        padding: 0.5rem;
    }

    .game-iframe {
        min-height: 500px;
    }

    .game-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-card h2 {
        font-size: 1.25rem;
    }

    .footer {
        padding: 3rem 1.5rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section:first-child {
        padding-right: 0;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-orgs {
        justify-content: center;
        gap: 1rem;
    }

    .footer-orgs img {
        width: 100px;
    }

    .modal {
        padding: 1.5rem;
        width: 95%;
        margin: 1rem;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-modal {
        width: 100%;
    }

    .policy-page,
    .contact-page {
        padding: 2rem 1rem;
    }

    .policy-page h1,
    .contact-page h1 {
        font-size: 2rem;
    }

    .policy-page h2,
    .contact-page h2 {
        font-size: 1.25rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        width: 35px;
        height: 35px !important;
    }

    .burger-menu {
        width: 25px;
        height: 25px;
    }

    .nav-menu {
        width: 100%;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .game-header h1 {
        font-size: 1.75rem;
    }

    .game-iframe {
        min-height: 400px;
    }

    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-orgs {
        flex-direction: column;
        align-items: center;
    }

    .footer-orgs a {
        width: 100%;
        max-width: 200px;
    }

    .footer-orgs img {
        width: 90px;
    }

    .policy-page h1,
    .contact-page h1 {
        font-size: 1.75rem;
    }

    .policy-page h2,
    .contact-page h2 {
        font-size: 1.1rem;
    }
}

/* Overlay for mobile menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .menu-overlay.active {
        display: block;
    }
}

