body {
    background: linear-gradient(to bottom right, #e0f7fa, #b2ebf2, #80deea, #4dd0e1, #26c6da, #00bcd4, #00acc1, #0097a7, #00838f, #006064);
    font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2C3E50;
    color: #fff;
    padding: 4px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}


.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header .logo {
    display: block;
    margin: 5px auto;
    text-align: center;
}

.header .menu {
    display: flex;
    gap: 10px;
}

.header .menu-item {
    position: relative;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.header .menu-item a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.header .menu-item:hover {
    background-color: #3498DB;
}

.header .has-submenu > a::after {
    content: ' ▼';
    font-size: 12px;
}

.header .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    min-width: 200px;
    z-index: 1000;
}

.header .has-submenu:hover .submenu {
    display: block;
}

.header .submenu a {
    display: block;
    padding: 10px;
    color: #2C3E50;
    text-decoration: none;
    transition: background-color 0.3s;
}

.header .submenu a:hover {
    background-color: #f0f0f0;
}

.header .button {
    background-color: #3498DB;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.header .button:hover {
    background-color: #2980B9;
}

/* Геройский блок */
.hero {
    min-height: 100vh;
    background-image: url('assets/img/c93e0667-6f55-431d-9afd-56623709318f-12848236.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

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

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.title {
    font-family: 'Rubik', sans-serif;
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
}

.text {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
}

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

.button-primary {
    background-color: #2ECC71;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button-primary:hover {
    background-color: #27AE60;
}

.button-secondary {
    background-color: transparent;
    color: #fff;
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,0.56);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
}

.button-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Новости */

.section-title {
    font-family: 'Rubik', sans-serif;
    font-size: 28px;
    color: #2C3E50;
    margin-bottom: 20px;
    text-align: center;
}
/* Карусель игр */
.games {
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
}

.games-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.game-item {
    flex: 0 0 auto;
    width: 300px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    scroll-snap-align: start;
}

.game-item h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    color: #2C3E50;
    margin-bottom: 10px;
}

.game-poster {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.game-poster:hover {
    transform: scale(1.05);
}

.game-item .button-primary {
    margin-top: 15px;
    margin-bottom: 25px;
}

/* Футер */
.footer {
    background-color: #2C3E50;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    margin: 0;
}

/* Мобильный хедер */
.burger-menu {
    display: none;
    position: relative;
    z-index: 1100;
}

.burger-icon {
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 10px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background: #2C3E50;
    transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 1050;
    padding: 20px;
}

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

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.mobile-search {
    width: 100%;
    padding: 12px 15px;
    margin: 20px 0;
    border-radius: 25px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.mobile-search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu li a {
    display: block;
    padding: 15px 0;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.mobile-menu li a:hover {
    color: #3498DB;
}

.has-submenu {
    position: relative;
}

.arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
    background: rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
}

.submenu li {
    border-bottom: none;
}

.submenu li a {
    padding: 12px 15px;
    font-size: 16px;
    color: #bdc3c7;
}

.submenu li a:hover {
    color: #3498DB;
    background: rgba(0, 0, 0, 0.1);
}

.has-submenu.active .arrow {
    transform: rotate(180deg);
}

.has-submenu.active .submenu {
    display: block;
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.mobile-button {
    display: block;
    padding: 15px;
    background: #3498DB;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.mobile-button:hover {
    background: #2980B9;
}

/* Анимация затемнения фона */
/* .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.overlay.active {
    display: block;
} */


.news-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 10px;
  
    display: flex;
    flex-direction: column;
    gap: 40px; /* расстояние между верхним и нижним блоком */
  }
  
  .section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0;
    text-align: center;
  }
  
  .news-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  .news-top-block {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }
  
  .news-bottom-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .news-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
  }
  
  .news-item h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #333;
  }
  
  .news-item p {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #555;
  }
  
  .news-cover {
    width: 100%;
    max-height: 200px;
    border-radius: 4px;
    margin: 12px 0;
    object-fit: cover;
  }
  
  .news-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
  }
  

.news-item .button-primary {
    align-self: flex-start;
    text-decoration: none;
    padding: 8px 14px;
    font-size: 0.95rem;
}


.media-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
  }
  
  .media-carousel .carousel-item {
    display: none;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
  }
  
  .media-carousel .carousel-item.active {
    display: block;
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255 255 255 / 0.7);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
  
  .news-video {
    width: 100%;
    max-height: 300px;
    background: black;
  }
  
  .header .logo img {
    height: 36px;
    max-width: 100%;
}
/* Адаптивность */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
    justify-content: center;
        gap: 10px;
        padding: 10px;
    }

    .header .menu {
        flex-direction: column;
        align-items: center;
    }

    .header .menu-item {
        width: 100%;
        text-align: center;
    }

    .header .submenu {
        position: static;
        width: 100%;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-content {
        padding: 10px;
    }

    .title {
        font-size: 24px;
    }

    .text {
        font-size: 16px;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .button-primary, .button-secondary {
        width: 100%;
        text-align: center;
    }

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

    .news-cover {
        max-height: 150px; /* Уменьшим высоту для мобильных */
    }

    .game-item {
        width: 100%;
    }

    .header .menu, .header .button {
        display: none;
    }
    
    .burger-menu {
        display: block;
    padding: 0 24px 0 0;
    }
    
    .header {
        justify-content: space-around;
        padding: 10px 15px;
    }
    
    .header .logo img {
        height: 50px;
        max-width: 100%;
    }
      /* Мобильный дизайн для новостей */
  .news-top-block {
    display: flex;
    flex-direction: column ;
    gap: 15px ;
  }

  .news-bottom-block {
    display: flex;
    flex-direction: column ;
    gap: 15px ;
  }

  .news-item {
    padding: 12px ;
  }

  .news-cover {
    max-height: 150px ;
    width: 100% ;
  }
  .logo img {
    height: 40px;
}

.header-tagline {
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    margin: 5px 0;
    font-weight: 300;
}

.hero .title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.hero .text {
    font-size: 1rem;
    margin-bottom: 20px;
}
.hero .buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.button-primary, 
.button-secondary {
    width: 90%;
    max-width: 300px;
    padding: 12px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

  .game-item {
    background: #f7f7f7;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border: #bdc3c7;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform 0.3s ease;
  	width:80%;
  }

}

/* Общая сетка и отступы */
.games-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
  }
  
  .game-item {
    background: #f7f7f7;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border: #bdc3c7;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform 0.3s ease;
  }
  
  .game-item:hover {
    transform: translateY(-4px);
  }
  
  .game-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    text-align: center;
  }
  
  /* Квадратная обертка с центровкой постера */
  .game-poster-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .game-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Описание (если нет — сохраняется отступ) */
  .game-description {
    flex-grow: 1;
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
    min-height: 40px;
  }
  
  /* Кнопка */
  .game-item .button {
    align-self: stretch;
    text-align: center;
    padding: 10px;
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .games-carousel {
    display: flex;
    flex-direction: column;
    align-items:center;
/*       grid-template-columns: 1fr; */
      padding: 20px 0;
    }
  
    .game-title {
      font-size: 18px;
    }
  
    .game-description {
      font-size: 14px;
    }
  }