.badge,
.category-pill,
.promo-value {
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}
.search-button__clear:not(.visible),
.tooltip .tooltiptext {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}
.category-pill,
.games-item,
.place-item,
.top-item {
    text-decoration: none;
}
.place-info p,
.top-item_body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dark .icon-dark-inverted {
    filter: brightness(0) invert(100%);
}
.dark .badge.green {
    background: rgba(124, 213, 132, 0.12);
    color: #7cd584;
}
.dark .badge.yellow {
    background: rgba(213, 195, 124, 0.12);
    color: #d5c37c;
}
.dark .badge.red {
    background: rgba(213, 124, 124, 0.12);
    color: #d57c7c;
}
.justify-content-center {
    justify-content: center;
}
.mt-2 {
    margin-top: 2px;
}
.btn-tertiary {
    background: #0d6efd1f;
    color: var(--states-primary-primary);
}
.btn-quaternary,
.category-pill,
.promo-value {
    color: var(--text-primary);
}
.btn-tertiary:focus,
.btn-tertiary:hover:not(:disabled) {
    background: #0d6dfd36;
}
.btn-tertiary:focus-visible {
    box-shadow: 0 0 0 3px rgba(13, 109, 253, 0.247), 0 0 0 1px #f0f2f5;
}
.btn-quaternary {
    background: var(--states-primary-tertiary);
}
.btn-quaternary:focus,
.btn-quaternary:hover:not(:disabled),
.category-pill:hover {
    background: var(--states-primary-tertiary-hover);
}
.btn-quaternary.btn-left::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M10.4714 2.86192C10.7317 3.12227 10.7317 3.54438 10.4714 3.80473L6.2761 7.99999L10.4714 12.1953C10.7317 12.4556 10.7317 12.8777 10.4714 13.1381C10.211 13.3984 9.7889 13.3984 9.52855 13.1381L4.86189 8.47139C4.60154 8.21104 4.60154 7.78893 4.86189 7.52858L9.52855 2.86192C9.7889 2.60157 10.211 2.60157 10.4714 2.86192Z' fill='%23212529'/%3E%3C/svg%3E");
}
.btn-quaternary.btn-right::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M5.52864 2.86192C5.26829 3.12227 5.26829 3.54438 5.52864 3.80473L9.7239 7.99999L5.52864 12.1953C5.26829 12.4556 5.26829 12.8777 5.52864 13.1381C5.78899 13.3984 6.2111 13.3984 6.47145 13.1381L11.1381 8.47139C11.3985 8.21104 11.3985 7.78893 11.1381 7.52858L6.47145 2.86192C6.2111 2.60157 5.78899 2.60157 5.52864 2.86192Z' fill='%23212529'/%3E%3C/svg%3E");
}
.btn-quaternary.btn-left:disabled:after,
.btn-quaternary.btn-left:disabled:before,
.dark .btn-quaternary.btn-left::before,
.dark .btn-quaternary.btn-right::after {
    filter: brightness(0) invert(71%) sepia(75%) saturate(17%) hue-rotate(163deg) brightness(84%) contrast(83%);
}
.category-block__preview__info {
    padding: 0 20px;
    margin-top: -24px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}
.games-item,
.games-item__content {
    flex-direction: column;
    display: flex;
}
.category-block__preview__info__img {
    width: 64px;
    height: 64px;
}
.games-search {
    border-radius: 9999px;
    border: 1px solid var(--border-alpha-subtle);
    position: relative;
}
.games-search_input {
    border: none;
    background: 0 0;
    padding: 7px 14px 7px 46px;
    max-width: 228px;
}
.games-item,
.promo-block {
    background: var(--background-bg-primary);
}
.games-search .search-button {
    left: 8px;
}
.games-list {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
}
.games-item {
    border-radius: 16px;
}
.games-item__cover {
    padding: 6px 6px 0;
}
.games-item__img {
    border-radius: 12px;
    width: 100%;
}
.games-item__content {
    padding: 16px;
    gap: 8px;
    height: 100%;
}
#games-counter,
#promos-counter {
    margin-left: 6px;
}
.promos-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.promo-block,
.promo-block__content {
    gap: 24px;
    display: flex;
}
.promo-block {
    padding: 24px;
    flex-direction: column;
    border-radius: 16px;
}
.promo-info,
.top-item {
    flex-direction: column;
}
.promo-game__cover {
    max-width: 106px;
}
.promo-game__img {
    width: 100%;
    border-radius: 12px;
}
.promo-info {
    width: 100%;
    display: flex;
    gap: 16px;
}
.promo-title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    width: 100%;
    gap: 2px;
}
.badge {
    display: flex;
    padding: 2px 12px;
    font-size: 13px;
    border-radius: 6px;
    white-space: nowrap;
}
.category-list.swiper,
.category-pill {
    display: flex !important;
}
.badge.green {
    background: rgba(48, 148, 57, 0.12);
    color: #309439;
}
.badge.yellow {
    background: rgba(148, 128, 48, 0.12);
    color: #948030;
}
.badge.red {
    background: rgba(148, 48, 48, 0.12);
    color: #943030;
}
.promo-value__label {
    width: 100%;
}
.promo-value {
    width: 100%;
    border: none;
    background: 0 0;
    border-radius: 9999px;
    border: 1px solid var(--border-alpha-subtle);
    padding: 7px 14px;
    font-size: 14px;
}
.placesSwiper,
.promosSwiper {
    padding-bottom: 25px !important;
}
.placesSwiper .swiper-pagination,
.promosSwiper .swiper-pagination {
    bottom: 0 !important;
}
.swiper-pagination-bullet-active {
    background: var(--states-primary-primary);
}
.promosSwiper .swiper-slide {
    width: 106px;
}
.placesSwiper .swiper-slide {
    width: 136px;
}
.category-pill {
    padding: 7px 15px;
    border-radius: 9999px;
    background: var(--states-primary-tertiary);
    text-align: center;
    font-size: 14px;
    align-items: center;
    gap: 8px;
    width: auto !important;
}
.category-icon {
    width: 20px;
    height: 20px;
}
.category-pill.active {
    background: #343a40;
    color: var(--text-fixed-inverted);
}
.dark .category-pill.active {
    background: #fff;
    color: var(--text-inverted);
}
.place-image,
.places-list,
.top-item_head,
.top-list {
    border-radius: 16px;
}
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #0366d6;
    font-weight: 600;
}
.tooltip .tooltiptext {
    width: max-content;
    background-color: #333;
    max-width: 100%;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
    font-size: 14px;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent;
}
.promo-block--new {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
}
.top-list {
    background: var(--background-bg-primary);
    position: relative;
}
.top-list.top-promos .top-item_head {
    padding: 7px;
}
.top-items_container {
    display: flex;
    gap: 16px;
}
.top-item {
    display: flex;
    gap: 8px;
}
.swiper-pagination-bullet {
    background: var(--states-primary-primary-disabled);
    opacity: 1;
}
.top-item_head {
    background: #f8fafd;
    overflow: hidden;
}
.dark .top-item_head {
    background: #d0d9fb12;
}
.top-list.top-promos .top-item_head__img {
    max-width: 92px;
    width: 100%;
}
.top-list.top-games .top-item_head__img {
    max-width: 136px;
    width: 100%;
}
.top-item_body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.top-item_body p {
    -webkit-line-clamp: 1;
}
.game-players {
    display: flex;
    align-items: center;
    gap: 2px;
}
.text-pink {
    color: #d73997;
}
.active-promo,
.text-green {
    color: #28ac50;
}
.pt-24 {
    padding-top: 24px;
}
.px-24 {
    padding-left: 24px !important;
    padding-right: 24px !important;
}
.pb-24 {
    padding-bottom: 24px;
}
.places-list {
    background: var(--background-bg-primary);
}
.places-list .games-search {
    border-radius: 8px;
}
.places-list .games-search .search-button {
    left: 5px;
}
.places-list .games-search .games-search_input {
    padding-left: 40px;
}
.places-list .games-search .search-button__clear {
    right: 5px;
}
.places-list__container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.place-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.place-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.place-info p {
    -webkit-line-clamp: 2;
}
.place-image {
    width: 88px;
    overflow: hidden;
    min-width: 88px;
    height: 88px;
}
.active-promo,
.expired-promo {
    padding: 7px 15px;
    border-radius: 9999px;
    display: flex;
}
.place-image__img {
    width: 100%;
    height: auto;
}
.h20,
.promo-icon {
    height: 20px;
}
.active-promo {
    background: rgba(61, 219, 109, 0.12);
    align-items: center;
}
.expired-promo {
    align-items: center;
}
.expired-label,
.promo-label {
    margin-left: 3px;
}
.promo-icon {
    width: 20px;
    display: none;
}
.w20 {
    width: 20px;
}
@media (max-width: 500px) {
    .games-list {
        display: flex;
        flex-direction: column;
    }
    .games-item__cover {
        width: 100%;
        padding: 16px 16px 0;
    }
    .games-item__img {
        max-width: 80px;
    }
    .games-search:not(.place-search) {
        width: 100%;
        margin-top: 16px;
    }
    .games-search_input {
        max-width: unset;
        width: 100%;
    }
}
.promo-tag {
    display: none;
}
@media (max-width: 600px) {
    .promo-block__content,
    .promo-info .d-flex.gap-10 {
        flex-direction: column;
    }
    .promo-title {
        flex-direction: column-reverse;
        gap: 8px;
        align-items: unset;
    }
    .promo-game__cover {
        display: none;
    }
    .promo-tag {
        border-radius: 6px;
        background: var(--states-primary-tertiary);
        display: flex;
        display: inline-flex;
        min-height: 24px;
        max-height: 24px;
        padding: 2px 4px;
        justify-content: center;
        align-items: center;
        gap: 2px;
        text-decoration: none;
    }
    .promo-tag .tag__img {
        border-radius: 8px;
    }
}
@media (max-width: 1400px) {
    .main-container {
        grid-template-columns: 220px minmax(0, 640px) 280px;
    }
}
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 280px minmax(0, 640px);
        gap: 20px;
    }
    .aside__right {
        display: none;
    }
}
@media (min-width: 992px) {
    .footer,
    .mobile-only {
        visibility: hidden;
        position: absolute;
        z-index: -999;
        height: 0;
        width: 0;
        pointer-events: none;
        user-select: none;
        opacity: 0;
        left: -999px;
    }
    .footer {
        display: none;
    }
}
@media (max-width: 991px) {
    .header-content .logo,
    .pc-only {
        position: absolute;
    }
    .pc-only {
        visibility: hidden;
        z-index: -999;
        height: 0;
        width: 0;
        pointer-events: none;
        user-select: none;
        opacity: 0;
        left: -999px;
    }
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
        display: flex;
        flex-direction: column;
        min-height: calc(100dvh - calc(var(--header-height) + 1px) - var(--footer-height));
    }
    .aside__left {
        display: none;
    }
    .categories-list__content {
        grid-template-columns: repeat(auto-fill, minmax(183px, 1fr));
        gap: 8px;
    }
    .header-content {
        display: flex;
        justify-content: space-between;
    }
    .logo__link {
        padding-left: 0;
    }
    .feed {
        grid-template-columns: 1fr;
    }
    .post__big {
        grid-column: unset;
    }
    .footer {
        border-top: 1px solid var(--border-alpha-light);
        background: var(--background-bg-header);
        backdrop-filter: blur(12px);
        display: grid;
        height: var(--footer-height);
        padding: 0 8px;
        grid-template-columns: 1fr 1fr 1fr;
        position: sticky;
        bottom: 0;
        z-index: 9;
    }
    .block-404,
    .not-found__block {
        height: 100%;
        justify-content: center;
    }
    .container:has(.blog),
    .container:has(.blog) .main__content {
        padding: 0;
    }
    .container:has(.blog) .main__content .feed {
        padding: 0 10px 10px;
    }
    .blog {
        border-radius: 0;
        padding: 16px;
    }
    .main__content {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
    }
    .header .container,
    .header-content {
        height: 100%;
    }
    .header-actions {
        width: 100%;
    }
    .search-wrapper:has(.main-search.expanded) {
        width: 100%;
    }
    .main-search.expanded {
        width: 100vw;
        max-width: 100%;
    }
    .search-content:has(.main-search.expanded) {
        width: 100%;
    }
}
@media (max-width: 576px) {
    .mb\:bottom {
        position: absolute;
        bottom: 24px;
        left: 24px;
        right: 24px;
    }
    .mb\:pb80 {
        padding-bottom: 80px;
    }
    .blog__footer,
    .mb\:column {
        flex-direction: column;
    }
    .mb\:align-none {
        align-items: unset;
    }
    .promo-icon {
        display: block;
        margin-right: 8px;
    }
    .expired-label,
    .promo-label {
        display: none;
    }
    .dropdown .dropdown__menu,
    .dropdown__button#shareButton {
        width: 100%;
    }
}
