button:focus {
    outline: none;
}

.afisha-wrapper {
    padding: 64px 0;
    background: #f9f9fb;
    position: relative;
}

.afisha-wrapper .container {
    position: relative;
    z-index: 1;
}

.afisha-wrapper:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100px;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, #FFF, transparent);
}

.afisha-title h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.afisha-categories {
    margin: 0 -8px;
}

.afisha-categories__inside {
    display: flex;
    flex-wrap: wrap;
}

.afisha-categories__item {
    padding: 0 6px;
    margin-bottom: 12px;
    white-space: nowrap;
}

.afisha-categories__item a {
    background: #FFF;
    border-radius: 6px;
    color: #5d5d60;
    padding: 12px 16px;
    display: inline-block;
    font-size: 1.125rem;
    transition: box-shadow 0.2s ease;
    line-height: 1;
}

.afisha-subcategories .afisha-categories__item a {
    padding: 10px 14px;
    font-size: 1rem;
}

.afisha-categories__item a:hover {
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .05)
}

.afisha-categories__item a:active {
    background: #fafafa;
}

.afisha-categories__item.active a {
    background: #0f2c4e;
    color: #FFF;
}

/* Afisha list */

.afisha-list {
    display: flex;
    flex-wrap: wrap;
    padding-top: 32px;
    margin: 0 -12px;
}

.afisha-card {
    width: 33.333336%;
    padding: 0 12px;
    margin-bottom: 24px;
}

.afisha-card.promo-afisha .afisha-card__image:after {
    content: "Акция";
    background: #73ac15;
    position: absolute;
    bottom: 10px;
    right: 10px;
    border-radius: 20px;
    padding: 6px 13px;
    font-weight: 600;
}

.afisha-card__inside {
    background: #FFF;
    overflow: hidden;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #FFF;
    transition: box-shadow .3s ease;
}

.afisha-card__inside:hover {
    color: #FFF;
}

.afisha-card__inside:hover {
    text-decoration: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .08);
}

.afisha-card__inside:hover .afisha-card__image img {
    text-decoration: none;
    transform: scale(1.1);
}

.afisha-card__image {
    padding-top: 55%;
    position: relative;
    overflow: hidden;
}

.afisha-card__image img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    transition: transform .3s ease;
}

.afisha-card__content {
    padding: 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.afisha-card__title {
    font-weight: 600;
    color: #1f1f30;
    font-size: 1.125rem;
    line-height: 1.1;
}

.afisha-card__date {
    padding-top: 10px;
    color: #a1a1ac;
    line-height: 1;
    font-size: .9rem;
    margin-top: auto;
}

/* Calendar */

.afisha-calendar-wrapper {
    position: relative;
    margin: 13px 0 17px 0;
}

.afisha-calendar {
    overflow: hidden;
    position: relative;
    padding: 0 10px 10px 10px;
    margin: 0 -10px;
}

.afisha-calendar__months-wrapper {
    display: inline-block;
    transform: translateX(0px);
    transition: transform 0.3s ease 0s;
}

.afisha-calendar__months {
    display: flex;
    flex-direction: row;
}

.afisha-calendar__month {
    padding-right: 32px;
}

.afisha-calendar__month:last-child {
    padding-right: 0;
}

.month-name {
    font-size: .9rem;
    color: #949494;
    position: sticky;
    left: 0;
}

.afisha-calendar__days {
    display: flex;
}

.afisha-calendar__day {
    padding: 10px 12px;
    margin-right: 8px;
    background: #FFF;
    color: #1f1f30;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    min-width: 46px;
    transition: box-shadow .3s ease;
}

.afisha-calendar__day:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .05)
}

.afisha-calendar__day.active {
    background: rgb(15, 44, 78);
    color: #FFF;
}

.afisha-calendar__day.between-active {
    background: #e6ecf4;
}

.day-text {
    font-size: 1.125rem;
    font-weight: 600;
}

.name-text {
    font-size: .7rem;
    color: #949494;
    text-transform: uppercase;
}

.afisha-calendar__day.holiday .name-text {
    color: rgb(250, 50, 50);
}

.afisha-calendar__day.active .name-text {
    color: #FFF;
}

/* Horizontal slider nav */

.afisha-calendar__slider-navigation button svg {
    width: 20px;
    height: 20px;
}

.afisha-calendar__slider-navigation button path {
    stroke: rgba(15, 44, 78, 0.7);
    transition: stroke .2s ease;
}

.afisha-calendar__slider-navigation button:hover path {
    stroke: rgba(15, 44, 78, 1);
}

.afisha-calendar__slider-navigation button.disabled {
    visibility: hidden !important;
    opacity: 0 !important;
}

.horizontal-calendar__nav-left,
.horizontal-calendar__nav-right {
    visibility: visible !important;
    opacity: 1 !important;

    position: absolute;
    display: flex;
    align-items: center;
    background: #f9f9fb;
    width: 50px;
    height: calc(100% - 34px);
    bottom: 10px;
    outline: none;
    transition: .2s ease;
}

.horizontal-calendar__nav-left {
    left: -10px;
    justify-content: flex-start;
}

.horizontal-calendar__nav-right {
    right: -10px;
    justify-content: flex-end;
    background: #f9f9fb;
}

.horizontal-calendar__nav-left:after,
.horizontal-calendar__nav-right:after {
    content: "";
    position: absolute;
    right: 100%;
    height: 100%;
    width: 40px;
    background: linear-gradient(to left, #f9f9fb, transparent)
}

.horizontal-calendar__nav-left:after {
    left: 100%;
    right: auto;
    background: linear-gradient(to right, #f9f9fb, transparent)
}

/* Load more */

.afisha__show-more {
    padding-top: 32px;
    text-align: center;
}

.afisha__show-more__btn {
    outline: none;
    background: rgb(15, 44, 78);
    color: #FFF;
    font-size: 1.125rem;
    padding: 12px 18px;
    border-radius: 6px;
    transition: background .3s ease;
}

.afisha__show-more__btn:hover {
    text-decoration: none;
    color: #FFF;
    background: rgb(22, 57, 100);
}

.afisha__show-more__btn:active {
    background: rgb(15, 44, 78);
}

.afisha__show-more__btn[disabled] {
    opacity: .6;
    cursor: default;
}

.load_more_container {
    position: relative;
}

.load_more_container.loader {
    opacity: .8;
    transition: .3s ease;
}

.load_more_container.loader:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Afisha detail page */

.afisha-detail {
    display: flex;
    margin-bottom: 50px;
}

.afisha-detail__left {
    width: 30%;
    flex: 0 0 30%;
}

.afisha-detail__right {
    flex-grow: 1;
    padding-left: 40px;
}

.afisha-go-back {
    display: none;
}

.afisha-banner img {
    width: 100%;
    border-radius: 14px;
}

.afisha-detail__title h1 {
    font-size: 1.7rem;
    padding-bottom: 16px;
    font-weight: 600;
}

.afisha-wrapper h2 {
    font-size: 1.7rem;
    font-weight: 600;
}

.afisha-detail__section-content {
    padding: 20px;
    background: #FFF;
    border-radius: 14px;
    margin-bottom: 32px;
}

.afisha-detail-contacts__title {
    font-weight: 600;
}

.afisha-detail-contacts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f3f3f3;
}

.afisha-detail-contacts:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.afisha-detail-contacts__items {
    display: flex;
    align-items: center;
    margin: 0 -5px;
}

.afisha-detail-contacts__item {
    padding: 0 5px;
}

.afisha-detail-contacts__item a {
    display: inline-block;
    padding: 8px 15px;
    background: #0f2c4e;
    color: #FFF;
    border-radius: 6px;
    transition: background .2s ease;
}

.afisha-detail-contacts__item a:hover {
    text-decoration: none;
    background: #183d69;
}

.afisha-detail-contacts__item a:active {
    background: #0f2c4e;
}

.afisha-detail-contacts__item a svg {
    width: 19px;
    height: 19px;
    margin-top: -2px;
}

.afisha-detail-contacts__item a .is_mobile {
    display: none;
}

@media (max-width: 991px) {
    .afisha-card {
        width: 50%;
        padding: 0 12px;
        margin-bottom: 24px;
    }

    .afisha-wrapper {
        padding: 32px 0 48px 0;
    }

    .afisha-detail {
        flex-direction: column;
    }

    .afisha-detail__left {
        width: 100%;
        flex: 0 0 100%;
    }

    .afisha-banner {
        padding-bottom: 32px;
    }

    .afisha-detail__side {
        padding: 0;
    }

    .afisha-detail__title h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    .afisha-detail__title h1 {
        font-size: 1.2rem;
    }

    .afisha-detail__section-content {
        padding: 15px;
    }

    .afisha-detail-contacts__item a .is_mobile {
        display: block;
    }

    .afisha-detail-contacts__item a .is_desktop {
        display: none;
    }

    .afisha-categories__inside {
        flex-wrap: nowrap;
    }

    .afisha-categories__item {
        margin-bottom: 0;
    }

    .afisha-categories {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .afisha-calendar-wrapper {
        margin: 20px 0 20px 0;
    }

    .afisha-calendar {
        overflow-x: auto !important;
        margin: 0 !important;
        padding: 0 0 5px 0 !important;
    }

    .afisha-calendar__slider-navigation {
        display: none !important;
    }
}

@media (max-width: 540px) {
    .afisha-detail-contacts {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-bottom: 16px;
        margin-bottom: 10px;
    }

    .afisha-detail-contacts__title {
        padding-bottom: 8px;
    }

    .afisha-detail-contacts__items {
        width: 100%;
    }

    .afisha-card {
        width: 100%;
        padding: 0 12px;
        margin-bottom: 24px;
    }

    .afisha-detail {
        margin-bottom: 32px;
    }

    .afisha-wrapper h2 {
        font-size: 1.4rem;
    }
}

.afisha-categories::-webkit-scrollbar,
.afisha-calendar::-webkit-scrollbar {
    -webkit-appearance: none;
}

.afisha-category-description {
    font-size: 1.125rem;
    padding: 20px 0 15px 0;
}