/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 50%, #004080 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0 20px; /* Боковые отступы для всего контента */

    @media (max-width: 400px) {
        word-break: break-all;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 20px;
    right: 20px;
    background: linear-gradient(90deg, #20B2AA, #00CED1);
    color: #003d7a;
    padding: 15px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-content p {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.cookie-content a {
    color: #003d7a;
    text-decoration: underline;
    font-weight: bold;
}

.accept-btn {
    background: #003d7a;
    color: #fff;
    border: 2px solid #00FFFF;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.accept-btn:hover {
    background: #00FFFF;
    color: #003d7a;
}

/* Header */
.header {
    background: linear-gradient(90deg, #20B2AA 0%, #4682B4 50%, #20B2AA 100%);
    padding: 20px 0;
    border-bottom: 3px solid #00FFFF;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 2.5rem;
    color: #00FFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}

.tagline {
    font-size: 1rem;
    color: #ffffff;
    font-style: italic;
}

/* Navigation */
.navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.navigation a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.navigation a:hover {
    background: rgba(0,255,255,0.2);
    color: #00FFFF;
    transform: translateY(-2px);
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00FFFF;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navigation a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(32,178,170,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0,206,209,0.2) 0%, transparent 50%),
        linear-gradient(135deg, #001f3f 0%, #003366 100%);
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.1), transparent);
    animation: wave 4s infinite;
}

@keyframes wave {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    color: #20B2AA;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    font-size: 2rem;
    color: #00FFFF;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #B0E0E6;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.play-btn {
    padding: 20px 40px;
    font-size: 1.4rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(45deg, #20B2AA, #00CED1);
    color: #003d7a;
    box-shadow: 0 5px 20px rgba(32,178,170,0.4);
    position: relative;
    overflow: hidden;
}

.play-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(32,178,170,0.6);
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.play-btn:hover::before {
    left: 100%;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #003366 0%, #001f3f 50%, #003366 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #00FFFF;
    margin-bottom: 60px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Новая сетка 2x3 вместо 1x3 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;

    @media (max-width: 400px) {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: linear-gradient(135deg, #4682B4 0%, #20B2AA 100%);
    border: 2px solid #00CED1;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,206,209,0.3);
    border-color: #00FFFF;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.feature-card h3 {
    color: #00FFFF;
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #B0E0E6;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Newsletter Section */
.newsletter {
    padding: 100px 0;
    background: linear-gradient(135deg, #20B2AA 0%, #4682B4 50%, #20B2AA 100%);
}

.newsletter-desc {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #E6F3FF;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.1rem;
    border: 2px solid #00FFFF;
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: #00CED1;
    box-shadow: 0 0 20px rgba(0,206,209,0.3);
    background: rgba(255,255,255,0.15);
}

.form-group input::placeholder {
    color: #B0E0E6;
}

.submit-btn {
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00FFFF, #20B2AA);
    color: #003d7a;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,255,255,0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,255,255,0.5);
}

/* Rating Section */
.rating {
    padding: 100px 0;
    background: linear-gradient(135deg, #001f3f 0%, #003366 50%, #001f3f 100%);
}

.rating-desc {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #B0E0E6;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.star {
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    filter: grayscale(100%);
}

.star:hover,
.star.active {
    color: #00FFFF;
    filter: grayscale(0%);
    transform: scale(1.3);
    text-shadow: 0 0 15px #00FFFF;
}

.rating-result {
    text-align: center;
    font-size: 1.3rem;
    color: #00FFFF;
    font-weight: bold;
    min-height: 40px;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #001f3f 0%, #003366 50%, #001f3f 100%);
    padding: 60px 0 40px;
    border-top: 3px solid #20B2AA;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #00FFFF;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #B0E0E6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00FFFF;
}

.footer-section p {
    color: #B0E0E6;
    line-height: 1.6;
}

/* Success Message */
.success-message {
    background: linear-gradient(45deg, #00FF7F, #20B2AA);
    color: #003d7a;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 5px 20px rgba(0,255,127,0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .navigation ul {
        gap: 15px;
        justify-content: center;
    }

    .navigation a {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .hero {
        padding: 60px 0;
    }

    .features, .newsletter, .rating {
        padding: 60px 0;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Preloader Animation for Game Elements */
.game-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #00FFFF;
    animation: pulse 1.5s infinite;
    z-index: 9999;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
