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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.7;
    font-size: 16px;
    display: block;
}

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

.main-header {
    background-color: rgba(10, 10, 10, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.logo-text {
    color: #ffffff;
}

.logo-accent {
    color: #e04343;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #e04343;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e04343;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
    margin-top: 22px;
}

.nav-account {
    background-color: #a10000;
    color: #fff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-account:hover {
    background-color: #800000;
    transform: translateY(-2px);
    color: #fff !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 22px;
    justify-content: space-between;
    position: relative;
    z-index: 1001;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }
}

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('путь-к-вашему-изображению.jpg') no-repeat center center/cover;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 3rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    margin: 0 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background-color: #a10000;
    color: #fff;
    border: 2px solid #a10000;

}

.btn-thank-you {
    position: relative;
    top: 37px;
    background-color: #a10000;
    color: #fff;
    border: 2px solid #a10000;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background-color: #800000;
    border-color: #800000;
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-hero-secondary:hover {
    background-color: #fff;
    color: #333;
    transform: translateY(-2px);
}

section {
    padding: 6rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    font-weight: normal;
}

.section-link {
    color: #a10000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: #800000;
    text-decoration: underline;
}

.featured-section {
    background-color: #fff;
}

.featured-grid,
.offers-grid,
.categories-grid,
.free-games-grid,
.trending-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card,
.offer-card,
.free-game-card,
.trending-card,
.feature-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.game-card:hover,
.offer-card:hover,
.free-game-card:hover,
.trending-card:hover,
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.game-image,
.offer-card img,
.free-game-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-badge,
.offer-badge,
.free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #a10000;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.game-info,
.offer-content,
.free-game-info,
.trending-info {
    padding: 1.5rem;
}

.game-title,
.offer-content h3,
.free-game-info h3,
.trending-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.game-developer,
.offer-description,
.free-period {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.game-price,
.offer-price {
    font-size: 1.1rem;
    font-weight: bold;
}

.price-current {
    color: #a10000;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.5rem;
}

.discount {
    color: #a10000;
    font-weight: bold;
    margin-right: 0.5rem;
}

.categories-section {
    background-color: #f0f0f0;
}

.category-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.category-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
}

.category-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-overlay span {
    opacity: 0.9;
    font-size: 0.9rem;
}

.free-games-section {
    background-color: #fff;
}

.free-game-image {
    position: relative;
}

.free-game-image img {
    height: 250px;
}

.upcoming .free-badge {
    background-color: #666;
}

.btn-claim,
.btn-notify {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #a10000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-claim:hover,
.btn-notify:hover {
    background-color: #800000;
}

.btn-notify {
    background-color: #333;
}

.btn-notify:hover {
    background-color: #000;
}

.trending-section {
    background-color: #f0f0f0;
}

.trending-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.trending-rank {
    background-color: #a10000;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.trending-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.trending-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.trending-price {
    margin-left: auto;
    font-weight: bold;
    color: #a10000;
    flex-shrink: 0;
}

/* Newsletter */
.newsletter-section {
    background-color: #fff;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.newsletter-text p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-group input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.btn-subscribe {
    padding: 1rem 2rem;
    background-color: #a10000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-subscribe:hover {
    background-color: #800000;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: left;
    justify-content: center;
}

.checkbox-label input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.error-message,
.success-message {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message {
    color: #d00;
}

.success-message {
    color: #0a0;
    background-color: #f0fff0;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.features-section {
    background-color: #f0f0f0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
}

.main-footer {
    background-color: #2c2c2c;
    color: #ccc;
    padding: 4rem 20px 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

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

.footer-section li {
    margin-bottom: 0.7rem;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
}

.footer-social a {
    color: #ccc;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: #a10000;
    transform: translateY(-3px);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(5px);
    color: #eee;
    padding: 1.5rem;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-accept {
    background-color: #a10000;
    color: #fff;
}

.btn-accept:hover {
    background-color: #800000;
}

.btn-reject {
    background-color: transparent;
    color: #ccc;
    border: 1px solid #777;
}

.btn-reject:hover {
    background-color: #777;
    color: #fff;
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: left 0.35s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
        color: #000;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-account {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
    }

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

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        min-height: 450px;
    }

    .section-title {
        font-size: 2rem;
    }

    .featured-grid,
    .offers-grid,
    .categories-grid,
    .free-games-grid,
    .trending-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.hidden {
    display: none;
}

.cookie-banner-link {
    color: #e04343;
}

.main-form-container {
    margin: 0 auto;
    background-color: #fff;
    padding: 2.5rem;
}