.b-container--events {
    width: 100%;
    max-width: 1024px;
}

.breadcrumbsWrap--events {
    margin-bottom: 34px;
}

.b-events {
    padding-bottom: 32px;
}

.b-events__title {
    font-family: 'MontBold';
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

.b-events__top-wrap {
    margin: 0 0 26px;
}

.b-filter-switch {
    display: none;
}

.breadcrumbsWrap--events {
    border-bottom: none;
}

@media (max-width: 1279px) {

    .b-container--events {
        max-width: 817px;
    }
}

@media (max-width: 767px) {

    .b-main--events {
        background: #fff;
    }

    .b-events {
        padding-bottom: 34px;
    }

    // .b-events--grid {
        // padding-bottom: 39px;
    // }

    .breadcrumbsWrap--events {
        margin: 10px 0 11px;
    }

    .b-events__title {
        font-size: 19px;
        line-height: 24px;
    }

    .b-events__top-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 0 17px;
    }

    // .b-events__top-wrap--grid {
        // margin: 0 0 24px;
    // }

    .b-filter-switch {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 46px;
        margin-top: 5px;
    }

    // .b-filter-switch--grid {
        // margin-top: -3px;
    // }

    .b-filter-switch__item {
        width: 20px;
        height: 20px;
    }

    .b-filter-switch__link.active path {
        fill: #000;
    }

    .breadcrumbsList--events {
        border-bottom: none;
    }
}

/*----------------- Датапикер от и до ---------------------*/

.b-calendar {
    display: flex;
    margin: 0 0 31px;
}

.b-calendar__input-field {
    border-bottom: 1px solid #000;
    width: 288px;
    height: 40px;
    margin-right: 16px;
    position: relative;
}

.b-calendar__input {
    height: 100%;
    width: 100%;
    padding: 0;
    background-color: transparent;
    border: none;
    outline: 0 !important;
    outline-offset: 0;
    font-size: 16px;
    line-height: 24px;
    color: #000;
}

.b-calendar__input::placeholder {
    font-size: 16px;
    line-height: 24px;
    color: #000;
}

.b-calendar__input-open {
    background: url('/img/event-page/calendar-blue.svg') no-repeat center / contain;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
}

.b-calendar__input-field.open > .b-calendar__input-open {
    background: url('/img/event-page/select-arrow.svg') no-repeat center / contain;
    width: 12px;
    height: 7px;
}

.ui-datepicker-month,
.ui-datepicker-year {
    background-color: transparent;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: 0 !important;
    outline-offset: 0;
}

.ui-datepicker-month {
    margin-right: 5px;
}

.ui-datepicker-month option,
.ui-datepicker-year option{
    font-size: 13px;
    line-height: 16px;
    color: #000;
}

.ui-datepicker-month option:hover {
    background-color: #440099;
    color: #fff;
}

.b-calendar__btn {
    width: 200px;
    height: 40px;
    background-color: transparent;
    font-family: 'MontSemiBold';
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    text-transform: uppercase;
    border: none;
    outline: 0 !important;
    outline-offset: 0;
    padding: 5px 10px;
    position: relative;
}

.b-calendar__btn--apply {
    background-color: #6033AB;
    color: #fff;
    margin-right: 13px;
    padding: 5px 20px 5px 15px;
    text-align: left;
}

.b-calendar__btn--apply::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: url('/img/lk/arrow-white.svg') no-repeat center / contain;
    width: 12px;
    height: 12px;
}
.b-calendar__btn--apply:hover {
    background-color: #7e44dd;
}

.b-calendar__btn--reset {
    color: #6033AB;
    border: 1px solid #6033AB;
    border-left: none;
}

.b-calendar__btn--reset:hover {
    background-color: #6033AB;
    color: #ffffff;
}

@media (max-width: 767px) {

    .b-calendar {
        flex-direction: column;
        margin: 0 0 33px;
    }

    .b-calendar__btn {
        min-width: 200px;
        width: 100%;
    }

    .b-calendar__btn--apply {
        margin: 0 0 16px;
        padding: 5px 32px 5px 22px;
    }

    .b-calendar__input-field {
        min-width: 288px;
        width: 100%;
        height: 36px;
        margin: 0 0 14px;
    }

    .b-calendar__input-field:last-of-type {
        margin: 0 0 24px;
    }

    .b-calendar__btn--apply::before {
        background-color: #fff;
    }
}

/* -------------------------Календарь-------------------- */

.b-events-slider {
    margin-bottom: 38px;
}

.b-events-slider__wrapper {
    padding: 0 50px;
}

.b-events-slider__link {
    text-decoration: none;
    color: #000;
}

.b-events-slider__link:hover,
.b-events-slider__link:active,
.b-events-slider__link.active {
    color: #8775CD;
    text-decoration: none;
}

.b-events-slider__link:focus {
    outline: none;
}

.b-events-slider__link--first-day {
    margin-left: 17px;
}

.slick-current .b-events-slider__month {
    align-self: flex-start;
}

.b-events-slider__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 26px;
    margin-right: 16px;
}

.b-events-slider__month {
    font-size: 11px;
    line-height: 16px;
    color: #000;
}

.b-events-slider__month--hidden {
    opacity: 0;
}

.b-events-slider__num {
    font-family: 'MontBold';
    font-size: 19px;
    line-height: 24px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.b-events-slider__day {
    font-size: 13px;
    line-height: 16px;
}

.b-events-slider__wrapper .slick-prev, 
.b-events-slider__wrapper .slick-next {
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 20px;
    width: 12px;
    transform: translate(0, -10%);
}

.b-events-slider__wrapper .slick-prev{
    background-image: url('/img/events/arrow-back.svg');
    left: 6px;
}
 
.b-events-slider__wrapper .slick-next{
    background-image: url('/img/events/arrow-forward.svg');
    right: 4px;
}

@media (max-width: 767px) {

    .b-events-slider {
        margin-bottom: 17px;
    }

    .b-events-slider__wrapper {
        padding: 0;
    }
}

/* ------------Блок тегов---------------- */

.b-events-filter {
    padding-left: 6px;
    margin-bottom: 31px;
}

.b-events-filter__wrapper {
    display: flex;
    flex-wrap: wrap;
}

.b-events-filter__btn {
    margin-right: 8px;
    flex-shrink: 0;
}

.b-events-filter__btn input[type=checkbox] {
    display: none;
}

.b-events-filter__btn label {
    display: inline-block;
    cursor: pointer;
    user-select: none;
    font-family: 'MontSemiBold';
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    text-transform: uppercase;
    padding: 3px 6px 5px;
    border: 1px solid #000;
    border-left: none;
    min-width: 88px;
    width: 100%;
    height: 24px;
}

/* .b-events-filter__btn--big label {
    width: 121px;
} */

.b-events-filter__btn input[type=checkbox]:checked + label,
.b-events-filter__btn input[type=checkbox]:hover + label {
    border: 1px solid #8775CD;
    border-left: none;
    color: #8775CD;
}

@media (max-width: 767px) {  

    .b-events-filter {
        padding-left: 0px;
        margin-right: -15px;
        margin-bottom: 28px;
    }

    .b-events-filter__wrapper {
        flex-wrap: nowrap;
        overflow-x: scroll;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .b-events-filter__wrapper::-webkit-scrollbar {
        display: none;
    }
}

/* ---------------Блок “Мероприятия”-------------- */

.b-cards__list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -11px 21px;
}

.b-cards__link {
    text-decoration: none;
    width: 100%;
    display: block;
    transition: all 0.5s ease;
}

.b-cards__item {
    height: 340px;
    width: calc(100% / 4 - 22px);
    margin: 0 11px 39px;
    transition: all 0.5s ease;
    position: relative;
}

.b-cards__item:last-child {
    margin-bottom: 0;
}

.b-cards__category {
    font-family: 'MontSemiBold';
    font-size: 11px;
    line-height: 16px;
    text-transform: uppercase;
    text-align: center;
    color: #8775CD;
    border: 1px solid #8775CD;
    border-left: none;
    /* min-height: 24px; */
    min-width: 158px;
    display: inline-block;
    padding: 3px 5px;
    margin-bottom: 8px;
    margin-left: 5px;
    position: relative;
}

.b-cards__category::before {
	content:'';
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
    box-sizing: border-box;
    z-index: -1;
    background-color: #8775CD;
	transition: all 0.5s ease;
}

.b-cards__item:hover .b-cards__category::before {
    width: 100%;
}

.b-cards__item:hover .b-cards__category {
    color: #fff;
    z-index: 2;
}	

.b-cards__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.b-cards__wrap {
    position: relative;
    margin-bottom: 7px;
}

.b-cards__main-wrap {
    width: 100%;
    position: relative;
    padding-bottom: 100%;
}

.b-cards__image-wrap {
    /* min-height: 238px;
    display: inline-block;
    overflow: hidden; */
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    overflow: hidden;
}

.b-cards__label {
    width: 142px;
    position: absolute;
    background: #FFFFFF;
    border: 1px solid #8775CD;
    box-sizing: border-box;
    padding: 4px 6px 4px 8px;
    color: #000;
    font-size: 13px;
    line-height: 16px;
    left: 4px;
    bottom: 6px;
}

.b-cards__text {
    display: block;
    color: #828282;
    font-size: 11px;
    line-height: 16px;
}

.b-cards__title {
    font-family: 'MontBold';
    font-size: 16px;
    line-height: 22px;
    color: #000000;
    margin-left: 5px;
}

.b-cards__bonus-wrap {
    display: flex;
    align-items: flex-end;
    font-size: 12px;
    line-height: 16px;
    color: #440099;
}

.b-cards__bonus {
    font-family: 'MontBold';
    margin-right: 18px;
    position: relative;
    font-size: 13px;
}

.b-cards__bonus::after {
    content: '';
    background: url('/img/lk/bonus-purple.svg') no-repeat center / contain;
    width: 14px;
    height: 14px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -14px;
}

.b-cards__timer,
.b-cards__calendar,
.b-cards__buy,
.b-cards__bonus-wrap {
    display: none;
}

.b-cards__link:hover {
    /* position: absolute;
    z-index: 1; */
}

.b-cards__link:hover::after {
    content: '';
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.21);
    background-color: #fff;
    width: calc(100% + 32px);
    height: calc(100% + 32px);
    z-index: -1;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

.hover .b-cards__link .b-cards__timer,
.hover .b-cards__link .b-cards__calendar,
.hover .b-cards__link .b-cards__buy {
    display: block;
}

.b-cards__link:hover .b-cards__bonus-wrap {
    display: flex;
}

.b-cards__link:hover .b-cards__title {
    margin-bottom: 4px;
    margin-left: 0;
}

.b-cards__timer {
    margin-top: -3px;
}

.b-cards__timer,
.b-cards__calendar {
    position: relative;
    font-size: 12px;
    line-height: 16px;
    color: #828282;
    padding-left: 24px;
    margin-bottom: 8px;
}

.b-cards__calendar {
    margin-bottom: 8px;
}

.b-cards__timer::before,
.b-cards__calendar::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 0;
}

.b-cards__timer::before {
    background: url('/img/events/alarm.svg') no-repeat center / contain;
}

.b-cards__calendar::before {
    background: url('/img/events/calendar.svg') no-repeat center / contain;
}

.b-cards__buy-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 0 0 8px;
}

.b-cards__amount-btn {
    border: none;
    height: 16px;
    width: 16px;
    background-color: #EAEAE9;
    font-family: 'MontBold';
    font-size: 13px;
    line-height: 16px;
    color: #AFB1B5;
    padding: 0;
}

.b-cards__amount-field .product-item-amount-field {
    border: none;
    font-family: 'MontBold';
    font-size: 13px;
    line-height: 16px;
    color: #000;
    text-align: center;
    width: 10px;
    padding: 0;
}

.b-cards__amount-field .product-item-amount-field::-webkit-outer-spin-button,
.b-cards__amount-field .product-item-amount-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.b-cards__amount-description {
    font-family: 'MontBold';
    font-size: 13px;
    line-height: 16px;
    color: #AFB1B5;
    margin-left: 3px;
}

.b-cards__buy-btn {
    width: 100%;
    max-width: 400px;
    background-color: #6033AB;
    color: #fff;
    border: none;
    padding: 10px 35px 6px 8px;
    font-family: 'MontSemiBold';
    text-transform: uppercase;
    font-size: 11px;
    line-height: 16px;
    position: relative;
}

.b-cards__buy-btn::before {
    content: '';
    background: url('/img/events/cart.svg') no-repeat center / contain;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 78px;
}

.b-cards__sum {
    display: flex;
    align-items: center;
}

.b-cards__sum-text {
    font-size: 11px;
    line-height: 16px;
    color: #AFB1B5;
    margin-right: 4px;
}

.b-cards__sum-count {
    font-family: 'MontBold';
    font-size: 16px;
    line-height: 22px;
    color: #000000;
    margin-right: 5px;
}

@media (max-width: 1279px) {
    .b-cards__item {
        width: calc(100% / 3 - 22px);
    }
}

@media (max-width: 767px) {

    .b-cards__list {
        margin: 0 0 24px;
    }

    // .b-cards__list--grid {
        // margin: 0 -12px 7px;
    // }

    .b-cards__item {
        width: 100%;
        margin: 0 0 17px;
        height: auto;
    }

    // .b-cards__item--grid {
        // width: calc(100% / 2 - 24px);
        // margin: 0 12px 25px;
    // }

    .b-cards__timer,
    .b-cards__calendar,
    .b-cards__buy {
        display: block;
    }

    .b-cards__bonus-wrap {
        display: flex;
    }

    .b-cards__timer {
        margin-top: 0;
        margin-bottom: 3px;
        font-size: 13px;
    }

    .b-cards__calendar {
        margin-bottom: 7px;
        font-size: 13px;
    }

    .b-cards__wrap {
        margin-bottom: 8px;
    }

    .b-cards__title {
        margin-bottom: 2px;
        margin-left: 0;
    }

    .b-cards__buy-btn::before {
        right: 98px;
    }

    .b-cards__category {
        margin-left: 0;
    }

    .b-cards__label {
        padding: 2px 6px 4px 8px;
        left: 4px;
        bottom: 4px;
    }

    .b-cards__buy-wrap {
        margin: 0 5px 7px;
    }

    .b-cards__amount-field .product-item-amount-field {
        width: 18px;
    }

    .b-cards__link:hover {
        position: static;
    }
    .b-cards__link:hover::after {
        content: none;
    }

    .b-cards__link:hover .b-cards__title {
        margin-bottom: 8px;
    }

    .b-cards__amount-description {
        margin-left: 5px;
    }

    .b-cards__bonus {
        margin-right: 27px;
    }

    .b-cards__bonus::after {
        right: -19px;
    }

    .b-cards__bonus-wrap {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .b-cards__buy-btn {
        padding: 10px 32px 6px 8px;
    }

    .b-cards__sum-count {
        margin-right: 0;
    }

    /* ---------Стили для страницы с двумя столбцами --------*/

    // .b-cards__image-wrap--grid {
        // min-height: 130px;
    // }

    // .b-cards__label--grid {
        // position: static;
        // width: 100%;
        // padding: 4px 6px 2px 8px;
    // }

    // .b-cards__timer--grid {
        // font-size: 11px;
        // padding-left: 24px;
        // margin-bottom: 2px;
    // }

    // .b-cards__timer--grid::before {
        // left: 3px;
    // }

    // .b-cards__buy-wrap--grid {
        // flex-direction: column;
        // margin: 0 0 9px;
        // align-items: flex-start;
    // }

    // .b-cards__bonus-wrap--grid {
        // order: -1;
        // margin-bottom: 3px;
        // font-size: 11px;
    // }

    // .b-cards__bonus-wrap--grid .b-cards__bonus-text {
        // font-size: 11px;
    // }

    // .b-cards__bonus--grid {
        // margin-right: 23px;
        // font-size: 13px;
    // }

    // .b-cards__bonus--grid::after {
        // transform: translateY(-50%);
        // right: -15px;
    // }

    // .b-cards__category--grid {
        // min-width: 130px;
        // width: 100%;
        // font-size: 9px;
        // padding: 4px 2px 2px;
        // margin-bottom: 8px;
        // text-transform: none;
        // font-family: 'MontRegular';
        // font-size: 11px;
        // line-height: 16px;
    // }

    // .b-cards__buy-btn--grid {
        // padding: 5px 30px 2px 5px;
        // height: 24px;
    // }

    // .b-cards__buy-btn--grid > span {
        // display: none;
    // }

    // .b-cards__buy-btn--grid::before {
        // right: 50%;
        // transform: translate(50%, -50%);
    // }

    // .b-cards__calendar--grid {
        // margin-bottom: 9px;
    // }

    // .b-cards__calendar--grid::before {
        // left: 0;
    // }

    // .b-cards__main-wrap--grid {
        // margin-bottom: 4px;
    // }

    // .b-cards__title--grid {
        // font-size: 13px;
        // line-height: 16px;
        // margin-bottom: 8px;
    // }

    // .b-cards__amount-field--grid .product-item-amount-field {
        // width: 21px;
    // }

    // .b-cards__sum-count--grid {
        // font-size: 13px;
        // line-height: 16px;
    // }

    // .b-cards__amount-field--grid {
        // margin-bottom: 5px;
    // }
}

/* ---------------Пагинация-------------- */

.b-pagination {
    margin: 0 auto;
    width: 266px;
}

.b-pagination__nav {
    display: flex;
    align-items: center;
}

.b-pagination__button {
    width: 26px;
    height: 50px;
    background-color: transparent;
    border: none;
}

.b-pagination__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-pagination__list {
    display: flex;
    margin: 0 17px 0 20px;
}

.b-pagination__link {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    line-height: 24px;
    padding: 8px 0 5px;
    height: 32px;
    width: 32px;
    display: block;
    text-align: center;
}

.b-pagination__item {
    margin-right: 4px;
}

.b-pagination__item:last-child {
    margin-right: 0;
}

.b-pagination__link:hover,
.b-pagination__link.active {
    background-color: #440099;
    color: #fff;
}

@media (max-width: 767px) {

    .b-pagination {
        width: 240px;
    }

    .b-pagination__list {
        margin: 0 21px 0 28px;
    }

    .b-pagination__link {
        font-size: 13px;
        line-height: 16px;
        width: 24px;
        height: 24px;
    }
}

.ui-state-default:hover {
    background-color: #6033AB;
    height: 100%;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ui-state-active {
    color: #440099;
}

.ui-datepicker {
    cursor: pointer;
}

.ui-datepicker-today .ui-state-default {
    border-bottom: 1px solid #440099;
}

.ui-datepicker-today .ui-state-default:hover {
    color: #fff;
    border-bottom: none;
}

.ui-datepicker-other-month .ui-state-default{
    color: #D0D0D0;
}

.ui-datepicker-other-month .ui-state-default:hover{
    color: #fff;
}

.ui-datepicker-calendar td {
    width: calc(100% / 7);
}

.b-filter-switch-wrap {
    margin: 0;
}

@media (max-width: 767px) {
    .b-filter-switch-wrap {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 0 0 19px;
    }

    .catalog-top--big .col-xs-6 {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .b-cards--grid .b-cards__list {
        margin: 0 -12px 7px;
    }

    .b-cards--grid .b-cards__item {
        width: calc(100% / 2 - 24px);
        margin: 0 12px 25px;
    }

    .b-cards--grid .b-cards__category {
        min-width: 130px;
        width: 100%;
        font-size: 9px;
        padding: 4px 2px 2px;
        margin-bottom: 8px;
        text-transform: none;
        font-family: 'MontRegular';
        font-size: 11px;
        line-height: 16px;
    }

    .b-cards--grid .b-cards__timer {
        font-size: 11px;
        padding-left: 24px;
        margin-bottom: 2px;
    }

    .b-cards--grid .b-cards__timer::before {
        left: 3px;
    }

    .b-cards--grid .b-cards__calendar--grid {
        margin-bottom: 9px;
    }

    .b-cards--grid .b-cards__calendar--grid::before {
        left: 0;
    }

    .b-cards--grid .b-cards__bonus-wrap {
        order: -1;
        margin-bottom: 3px;
        font-size: 11px;
    }

    .b-cards--grid .b-cards__bonus-wrap .b-cards__bonus-text {
        font-size: 11px;
    }

    .b-cards--grid .b-cards__bonus {
        margin-right: 23px;
        font-size: 13px;
    }

    .b-cards--grid .b-cards__bonus::after {
        transform: translateY(-50%);
        right: -15px;
    }

    .b-cards--grid .b-cards__buy-wrap {
        flex-direction: column;
        margin: 0 0 9px;
        align-items: flex-start;
    }

    .b-cards--grid .b-cards__amount-field .product-item-amount-field {
        width: 21px;
    }

    .b-cards--grid .b-cards__amount-field {
        margin-bottom: 5px;
    }

    .b-cards--grid .b-cards__buy-btn {
        padding: 5px 30px 2px 5px;
        height: 24px;
    }

    .b-cards--grid .b-cards__buy-btn > span {
        display: none;
    }

    .b-cards--grid .b-cards__buy-btn::before {
        right: 50%;
        transform: translate(50%, -50%);
    }

    .b-cards--grid .b-cards__image-wrap {
        min-height: 130px;
    }

    .b-cards--grid .b-cards__label {
        position: static;
        width: 100%;
        padding: 4px 6px 2px 8px;
    }

    .b-cards--grid .b-cards__main-wrap {
        margin-bottom: 4px;
    }

    .b-cards--grid .b-cards__title {
        font-size: 13px;
        line-height: 16px;
        margin-bottom: 8px;
    }

    .b-cards--grid .b-cards__sum-count {
        font-size: 13px;
        line-height: 16px;
    }
}