@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Цветовая палитра */
:root {
    --primary-color: #bf2a52;
    /* Яркий розово-красный */
    --secondary-color: #d96c80;
    /* Мягкий розовый */
    --accent-color: #bfb74b;
    /* Горчично-желтый */
    --background-color: #f2ae2e;
    /* Светло-бежевый */
    --text-color: #333;
    --header-bg: rgba(242, 233, 206, 0.85);
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Шапка и навигация */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(191, 42, 82, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease-out;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Бургер меню */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* Главный экран */
.hero-section {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('image/banner.jpeg') no-repeat center center/cover;
    color: #fff;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
    animation: zoomIn 1s ease-out 1s;
    animation-fill-mode: backwards;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}


/* Общие стили для секций */
.content-section {
    padding: 80px 0;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}


.about-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Секция игр */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.game-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(191, 42, 82, 0.15);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-card h3 {
    color: var(--secondary-color);
    margin: 1rem 0 0.5rem;
}

.game-card p {
    padding: 0 1rem 1.5rem;
    font-size: 0.9rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Гайды */
.guides-list .guide-item {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s;
}

.guide-item:hover {
    transform: translateX(10px);
}

.guide-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Блог */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.blog-post {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('image/indie.jpg') no-repeat center center/cover;
    border-radius: 15px;
    color: #fff;
    padding: 2rem;
    display: flex;
    align-items: flex-end;
    min-height: 250px;
}

.blog-post:nth-child(2) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('image/blog2.jpg');
}

.blog-post a {
    display: inline-block;
    margin-top: 2rem;
    color: #fff;
    text-decoration: none;
    background: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.blog-post a:hover {
    background: var(--primary-color);
}

/* Призыв к действию */
.cta-section {
    background-color: var(--secondary-color);
    color: #fff;
}

.cta-section h2 {
    color: #fff;
}

.text-center {
    text-align: center;
}

.cta-button-alt {
    margin-top: 2rem;
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--background-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button-alt:hover {
    transform: scale(1.05);
    background-color: #fff;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    height: 200px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s, filter 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

a {
    text-decoration: none;
    color: inherit;
}

.gallery-item:nth-child(1) {
    background-image: url('image/indie.jpg');
}

.gallery-item:nth-child(2) {
    background-image: url('image/HollowKnight.jpg');
}

.gallery-item:nth-child(3) {
    background-image: url('image/tetris2.jpg');
}

.gallery-item:nth-child(4) {
    background-image: url('image/retro.jpg');
}

/* Контакты */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Montserrat', sans-serif;
}

.privacy-group {
    display: flex;
    align-items: center;
}

.privacy-group input {
    width: auto;
    margin-right: 10px;
}

/* Футер */
.footer {
    background-color: #333;
    color: #f2e9ce;
    padding: 50px 0;
}

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

.footer-logo .nav-logo {
    color: var(--background-color);
}

.footer h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li a {
    color: var(--background-color);
    text-decoration: none;
}

.footer-social a {
    color: var(--background-color);
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

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

    .nav-item {
        margin: 2.5rem 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}