body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.footer {
    margin-top: auto;
}
.hot-games-section {
    padding: 110px 0 100px
}
.hot-games-swiper {
    height: 392px;
}
.hot-games-swiper {
    position: relative;
    padding: 60px 0;
    width: 100%;
    overflow: hidden;
}

.hot-games-swiper .swiper-wrapper {
    align-items: flex-start;
    
}

.hot-games-swiper .swiper-slide {
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    height: auto;
}

.game-cat {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 2px solid #27F5D1;
    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.hot-games-swiper .swiper-slide-active .game-cat {
    box-shadow: 0px 0px 20px 2px rgba(255, 38, 99, 0.50);
}

.game-card-bg {
    width: 100%;
    height: 100%;
    background-image: url('../img/games/card.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 14px;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.swiper-slide-active .game-card-bg {
    background-image: url('../img/games/card-active.svg');
}

.game-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}

.game-image {
    position: relative;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
    border-radius: 0 0 14px 14px;
    max-width: 269px;
    transition: all 0.7s ease;
}

.game-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
}
.hot-games-swiper * {
    user-select: none;
    -webkit-user-drag: none;
    outline: none;
}
.swiper-slide-active .game-image {
    transform: translate(-50%, -52px);
    border-radius: 0;
    position: absolute;
    max-width: 100%;
}

.game-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
    position: absolute;
}

.game-logo img {
    max-height: 64px;
    width: auto;
    transition: all 0.7s ease;
}

.top-games-badge {
    display: none;
    color: #0B0413;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 128%;
    letter-spacing: 0.16px;
    padding: 16px 8px;
    border-radius: 0 0 14px 14px;
    background: #27F5D1;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
}

.swiper-slide-active .top-games-badge {
    opacity: 1;
    display: block;
}

.swiper-slide-active .game-logo {
    margin-bottom: 8px;
    bottom: 52px;
}
.swiper-slide-active .game-logo img {
    max-height: 70px;
}

.game-card-bg:after {
    content: '';
    position: absolute;
    height: 37%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    transition: all 0.3s ease;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(0deg, rgba(11, 4, 19, 0.80) 11.84%, rgba(70, 25, 121, 0.00) 91.12%);
}
.swiper-slide-active .game-card-bg:after {
    height: 100%;
}
.game-image img {
    height: 331px;
    object-fit: cover;
}
@media screen and (max-width: 1440px) {
    .game-cat {
        height: 165px;
    }
    .swiper-slide-active .game-cat {
        height: 230px;
    }
}
@media screen and (max-width: 1024px) {
    .game-cat {
        height: 155px;
    }
    .swiper-slide-active .game-cat {
        height: 215px;
    }
}

.hot-games-swiper .swiper-button-prev,
.hot-games-swiper .swiper-button-next {
    color: #fff;
    width: 56px;
    height: 56px;
    z-index: 20;
}

.hot-games-swiper .swiper-button-prev:after,
.hot-games-swiper .swiper-button-next:after {
    font-size: 15px;
    font-weight: bold;
}

.swiper-button-next, .swiper-button-prev {
    border-radius: 16px;
    color: #fff;
    background: #2C173C;
    padding: 18px;
    width: 56px !important;
    height: 56px !important;
    top: unset;
    bottom: 52px;
}
.hot-games-swiper .swiper-button-next {
    right: 0;
}
.hot-games-swiper .swiper-button-prev {
    left: 0;
}
.header-search-section {
    position: relative;
    z-index: 1041;
}




.hot-games-section {
    width: 100%;
    overflow: hidden;
}

.hot-games-swiper {
    width: 100%;
}


.swiper-slide-active {
    opacity: 1;
    z-index: 2;
}

.hot__container {
    margin: 0 auto;
    position: relative;
}

.game-cat {
    height: 209px;
}
.swiper-slide-active .game-cat {
    height: 272px;
}

.hot-games-swiper {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hot-games-swiper.swiper-initialized {
    opacity: 1;
}

@media screen and (max-width: 1500px) {
    .game-cat {
        height: 190px;
    }
    .swiper-slide-active .game-cat {
        height: 250px;
    }
}
@media screen and (max-width: 1199px) {
    .game-cat {
        height: 175px;
    }
    .swiper-slide-active .game-cat {
        height: 233px;
    }
}
@media screen and (max-width: 767px) {
    .hot__container {
        padding: 0;
    }
    .hot-games-swiper .swiper-button-prev {
        left: 16px;
    }
    .hot-games-swiper .swiper-button-next {
        right: 16px;
    }
}



.header-section {
    background: linear-gradient(135deg, #0B0413 0%, #1A0B2E 50%, #2D1B69 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(39, 245, 209, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.header-content h1 {
    color: #FFFFFF;
    font-family: Metropolitano;
    font-size: 48px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 32px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.search-container {
    position: relative;
    max-width: 554px;
    width: 100%;
    margin: 32px auto 0;
    border-radius: 32px;
    border: 1px solid #6501A1;
    background: rgba(255, 255, 255, 0.20);
    display: flex;
    padding-right: 8px;
}

.search-input {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 128%;
    letter-spacing: 0.16px;
}

.search-input::placeholder {
    color: #B2AEBD;
}
.search-button {
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #27F5D1;
    font-size: 20px;
    pointer-events: none;
}

.categories-section {
    padding: 60px 0;
    position: relative;
    z-index: 1041;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(202px, 1fr));
    gap: 64px 8px;
    justify-content: flex-start;
}

.categories-grid--limited .category-card:nth-child(n + 13) {
    display: none;
}
.categories-grid--limited .category-card {
    display: block;
}

.category-item {
    background: linear-gradient(135deg, rgba(39, 245, 209, 0.1) 0%, rgba(255, 38, 99, 0.1) 100%);
    border: 2px solid #27F5D1;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(39, 245, 209, 0.05) 0%, rgba(255, 38, 99, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item:hover::before {
    opacity: 1;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(39, 245, 209, 0.2);
    border-color: #27F5D1;
}
.category-card {
    text-decoration: none;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
    max-width: 241px;
}

.category-card.category-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.category-card.category-hidden.hidden-complete {
    display: none;
}
.category-image {
    width: 100%;
    overflow: hidden;
    height: 298px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: url('../img/games/game-item.svg');
    background-position: top center;
    background-size: cover;
}
.category-image::before {
    content: url('../img/games/purplr.svg');
    position: absolute;
    top: -30%;
    left: 0;
    right: 0;
    z-index: 2;
    max-height: 188px;
    max-width: 100%;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.category-card:hover .category-image::before {
    top: 0%;
}
.category-logo {
    position: relative;
    padding-top: 24px;
    right: 0;
    left: 0;
    text-align: center;
    z-index: 2;
    opacity: 0.7;
    transition: all 0.3s ease;
}
.category-card:hover .category-logo {
    opacity: 1;
}
.category-logo img {
    width: auto;
    max-height: 55px;
    display: inline-block;
}
.category-poster {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 176px;
    overflow: hidden;
    z-index: 2;
    margin-top: auto;
    transition: all 0.3s ease;
    opacity: 0.7;
}
.category-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}
.category-item h3 {
    color: #FFFFFF;
    font-family: Metropolitano;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}
.category-card:hover .category-poster {
    max-height: 190px;
    opacity: 1;
}

.category-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 150%;
    position: relative;
    z-index: 2;
}
h3.category-title {
    color: #FFF;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 136%;
    letter-spacing: 0.18px;
    padding: 8px;
}
h1 {
    color: var(--white);
    font-size: 68px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    text-align: center;
}
@media (max-width: 1500px) {
    .categories-grid--limited .category-card:nth-child(n + 11) {
        display: none;
    }
    .categories-grid.categories-grid--limited {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 1439px) {
    .category-image {
        height: 249px;
    }
    .category-poster, .category-card:hover .category-poster {
        max-height: 169px;
    }
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 1199px) {
    .categories-grid,.categories-grid.categories-grid--limited {
        grid-template-columns: repeat(4, 1fr);
    }
    .category-image {
        height: 289px;
    }
    .category-poster, .category-card:hover .category-poster {
        max-height: 179px;
    }
    .categories-grid--limited .category-card:nth-child(n + 9) {
        display: none;
    }
}
@media (max-width: 860px) {
    .categories-grid,.categories-grid.categories-grid--limited {
        grid-template-columns: repeat(3, 1fr);
    }
    .categories-grid--limited .category-card:nth-child(n + 7) {
        display: none;
    }
    .categories-section {
        padding-top: 42px;
    }
    .search-container {
        margin-top: 16px;
    }
    .category-image {
        height: 283px;
    }
    .category-poster, .category-card:hover .category-poster {
        max-height: 170px;
    }
    .hot-games-section {
        padding-bottom: 0;
    }
}
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 36px;
    }
    
    .categories-grid {
        gap: 8px;
        padding: 0
    }
    .category-image {
        height: 283px;
    }

    .category-poster, .category-card:hover .category-poster {
        max-height: 175px;
    }
    
    .category-item {
        padding: 24px;
    }

    .category-logo {
        top: 0;
        padding-top: 10px;
        max-height: 72px;
    }
    .category-logo img {
        max-height: 100%;
    }
}

@media (max-width: 600px) {
    .categories-grid,.categories-grid.categories-grid--limited {
        grid-template-columns: repeat(2, 1fr);
    }
    h1 {font-size: 40px;line-height: 114%;}
    .category-poster {
        text-align: center;
    }
    .category-poster img {
        height: unset;
        object-fit: unset;
        object-position: top;
        max-height: 100%;
        width: auto;
        max-width: 100%;
    }
    .hot-games-swiper .swiper-button-prev,
    .hot-games-swiper .swiper-button-next {
        display: none;
    }
}
@media (max-width: 500px) {
    .header-content h1 {
        font-size: 28px;
    }
    .search-input {
        padding: 12px 16px;
        font-size: 16px;
        line-height: 122%;
        letter-spacing: 0.16px;
    }
    .search-button {
        padding: 13px;
    }
    .search-icon {
        left: 16px;
        font-size: 18px;
    }
    .category-poster {
        max-height: 100%;
        display: flex;
        align-items: end;
        justify-content: center;
    }
    .category-logo {
        max-height: 53px;
    }
}
@media (max-width: 480px) {
    .category-logo img {
        max-height: 42px;
    }
    .category-image {
        height: auto;
        min-height: 207px;
    }
    .category-card {
        max-width: unset;
    }
}
@media (max-width: 374px) {
    .categories-grid, .categories-grid.categories-grid--limited {
        grid-template-columns: repeat(1, 1fr);
    }
}
