.afisha-toolbar {
    margin: 50px auto 0;
    position: relative;
}

@media screen and (max-width: 1689.98px) {
    .afisha-toolbar.container {
        max-width: 1180px;
    }
}

@media screen and (max-width: 1279.98px) {
    .afisha-toolbar.container {
        max-width: 760px;
    }
}

@media screen and (max-width: 839.98px) {
    .afisha-toolbar.container {
        max-width: 480px;
    }
}

.afisha-toolbar .afisha-events-root {
    margin-top: 50px;
}

@media screen and (min-width: 1279.98px) {
    .afisha-toolbar .afisha-events-root .events-section .title {
        display: none;
    }
}

@media screen and (max-width: 1279.98px) {
    .afisha-toolbar .afisha-events-root>.events-section:first-of-type {
        margin-top: -3px;
    }

    .afisha-toolbar .afisha-events-root .events-section .title {
        font-size: 40px;
        line-height: 1;
        margin-top: -3px;
        padding: 15px 15px;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .afisha-toolbar .afisha-events-root>.events-section:first-of-type .title {
        margin-top: 0;
    }

    .afisha-toolbar .afisha-events-root .events-section .title_sticky {
        z-index: 6;
    }

    #afisha-toolbar .afisha-events-root .title_sticky {
        top: calc(60px + var(--afisha-toolbar-row-height, 76px) - 3px);
    }
}

.afisha-toolbar__row-spacer {
    height: var(--afisha-toolbar-row-height, 59px);
    pointer-events: none;
}

.afisha-toolbar__row {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 60px;
    left: var(--afisha-row-left, 0);
    width: var(--afisha-row-width, 100%);
    z-index: 8;
    background: #000;
    box-sizing: border-box;
    border-bottom: 3px solid transparent;
}

.afisha-toolbar__main {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: stretch;
}

.afisha-calendar {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.afisha-calendar__strip {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 59px;
    background: #000;
    overflow: hidden;
}

.afisha-calendar__viewport {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    touch-action: manipulation;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.afisha-calendar__viewport::-webkit-scrollbar {
    display: none;
}

.afisha-calendar__days {
    display: flex;
    height: 59px;
    min-width: min-content;
}

.afisha-calendar__fade {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0) 100%);
}

.afisha-calendar__nav {
    flex: 0 0 59px;
    width: 59px;
    min-width: 59px;
    height: 59px;
    padding: 0;
    border: none;
    background: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afisha-calendar__nav img {
    display: block;
    width: auto;
    height: 25px;
}

.afisha-calendar__nav_hidden {
    display: none;
}

.afisha-calendar__nav_disabled {
    opacity: 0.35;
    pointer-events: none;
}

.afisha-day {
    flex: 0 0 59px;
    width: 59px;
    min-width: 59px;
    max-width: 59px;
    height: 59px;
    min-height: 59px;
    max-height: 59px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: Graphik, sans-serif;
    appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.afisha-day:active {
    transform: none;
}

.afisha-day__num {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #f4f4f4;
    letter-spacing: -0.01em;
}

.afisha-day__wd {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    color: #f4f4f4;
    letter-spacing: -0.01em;
}

.afisha-day_weekend .afisha-day__num,
.afisha-day_weekend .afisha-day__wd {
    color: #de2727;
}

.afisha-day_scroll-active:not(.afisha-day_range-start):not(.afisha-day_range-end) {
    outline: 1px solid #fff;
    outline-offset: -1px;
    box-shadow: none;
}

.afisha-toolbar_has-range .afisha-day_range-start,
.afisha-toolbar_has-range .afisha-day_range-end {
    background: #fff;
    border: 1px solid #fff;
    box-shadow: none;
}

.afisha-toolbar_has-range .afisha-day_range-start.afisha-day_scroll-active,
.afisha-toolbar_has-range .afisha-day_range-end.afisha-day_scroll-active {
    border: 1px solid #fff;
    outline: none;
    box-shadow: none;
}

.afisha-toolbar_has-range .afisha-day_range-start .afisha-day__num,
.afisha-toolbar_has-range .afisha-day_range-start .afisha-day__wd,
.afisha-toolbar_has-range .afisha-day_range-end .afisha-day__num,
.afisha-toolbar_has-range .afisha-day_range-end .afisha-day__wd {
    color: #000;
}

.afisha-toolbar_has-range .afisha-day_range-start.afisha-day_weekend .afisha-day__num,
.afisha-toolbar_has-range .afisha-day_range-start.afisha-day_weekend .afisha-day__wd,
.afisha-toolbar_has-range .afisha-day_range-end.afisha-day_weekend .afisha-day__num,
.afisha-toolbar_has-range .afisha-day_range-end.afisha-day_weekend .afisha-day__wd {
    color: #000;
}

.afisha-toolbar_has-range .afisha-day_in-range:not(.afisha-day_range-start):not(.afisha-day_range-end) {
    background: transparent;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    border-left: none;
    border-right: none;
}

.afisha-search__toggle {
    display: none;
    flex: 0 0 59px;
    width: 59px;
    height: 59px;
    align-items: center;
    justify-content: center;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
}

.afisha-search {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 6;
    align-items: stretch;
    height: 59px;
    background: #000;
    border: 1px solid #fff;
}

.afisha-search__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 0 16px;
    border: none;
    background: transparent;
    color: #fff;
    font-family: Graphik, sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    appearance: none;
}

.afisha-search__input::-webkit-search-cancel-button,
.afisha-search__input::-webkit-search-decoration,
.afisha-search__input::-ms-clear {
    display: none;
}

.afisha-search__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.afisha-search__close {
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    box-sizing: border-box;
    padding: 0;
    border: none;
    border-left: 1px solid #fff;
    background: #000;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afisha-search__submit {
    flex: 0 0 auto;
    min-width: 175px;
    height: 59px;
    padding: 0 16px;
    border: 1px solid #fff;
    background: #000;
    color: #fff;
    font-family: Graphik, sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.afisha-toolbar_search-open .afisha-search {
    display: flex;
}

.afisha-toolbar_search-open .afisha-calendar__fade {
    display: none;
}

.afisha-toolbar__selected {
    display: none;
    margin: 50px 0 0;
    font-family: Rainer, Graphik, sans-serif;
    font-size: 75px;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-align: left;
}

.afisha-toolbar__selected_hidden {
    visibility: hidden;
}

.afisha-events-root_loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.afisha-empty {
    padding: 40px 0;
    font-size: 18px;
    opacity: 0.7;
}

.afisha-comics {
    margin-bottom: 40px;
}

.afisha-comics .title {
    margin-bottom: 24px;
}

@media screen and (max-width: 1279.98px) {
    .afisha-toolbar {
        margin-top: 0;
    }

    .afisha-toolbar .afisha-events-root {
        margin-top: 0;
    }

    .afisha-toolbar__selected {
        margin: 0;
    }

    .afisha-calendar__fade {
        width: 20px;
        background: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0) 100%);
    }

    .afisha-search__toggle {
        display: flex;
        flex: 0 0 52px;
        width: 52px;
        border: 1px solid #fff;
        box-sizing: border-box;
    }

    .afisha-search {
        left: 0;
        right: 0;
        height: 52px;
    }

    .afisha-calendar__nav,
    .afisha-day {
        flex: 0 0 52px;
        flex-basis: 52px;
        width: 52px;
        min-width: 52px;
        max-width: 52px;
        height: 52px;
        min-height: 52px;
        max-height: 52px;
    }

    .afisha-calendar__strip,
    .afisha-calendar__days {
        height: 52px;
    }

    .afisha-search__toggle,
    .afisha-search__submit {
        height: 52px;
    }

    .afisha-calendar__nav {
        display: none;
    }

    .afisha-calendar__strip {
        flex: 1 1 auto;
        min-width: 0;
    }

    .afisha-toolbar_search-open .afisha-search {
        right: -52px;
    }

    .afisha-toolbar_search-open .afisha-search__toggle {
        visibility: hidden;
        pointer-events: none;
    }

    .afisha-toolbar_search-open .afisha-search__submit {
        display: none;
    }

    .afisha-toolbar__row {
        left: 0;
        width: 100%;
        max-width: none;
        padding: 12px 15px;
        min-height: 76px;
        border-bottom-color: #fff;
    }

    .afisha-toolbar__row .afisha-search__toggle {
        align-self: stretch;
        height: auto;
    }

    .afisha-toolbar__row-spacer {
        height: var(--afisha-toolbar-row-height, 76px);
    }
}

@media screen and (min-width: 1279.98px) {
    .afisha-toolbar {
        margin: 0 auto 0;
        position: relative;
    }

    .afisha-toolbar .afisha-events-root {
        margin-top: 0;
    }

    .afisha-toolbar .afisha-events-root>.events-section:first-of-type {
        margin-top: 0;
    }

    .afisha-toolbar__selected {
        margin: 0;
    }

    .afisha-toolbar__row {
        padding: 20px 0;
        background: transparent;
        border-bottom-color: transparent;
    }

    .afisha-calendar__strip {
        background: transparent;
    }

    .afisha-calendar__nav {
        background: transparent;
    }

    .afisha-search__submit {
        background: transparent;
    }

    .afisha-calendar__fade {
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0) 100%);
    }

    #afisha-toolbar.afisha-toolbar_scrolled .afisha-toolbar__row {
        background: #000;
        border-bottom-color: #fff;
    }

    #afisha-toolbar.afisha-toolbar_scrolled .afisha-calendar__strip {
        background: #000;
    }

    #afisha-toolbar.afisha-toolbar_scrolled .afisha-calendar__nav {
        background: #000;
    }

    #afisha-toolbar.afisha-toolbar_scrolled .afisha-search__submit {
        background: #000;
    }

    #afisha-toolbar.afisha-toolbar_scrolled .afisha-calendar__fade {
        background: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0) 100%);
    }

    main .events-section.desktop-clone {
        margin-top: 0;
    }

    main .events-section.desktop-clone:first-of-type .events>* {
        border-top: 1px solid #fff;
    }
}

@media screen and (max-width: 479.98px) {
    .afisha-toolbar__selected {
        font-size: 55px;
    }

    .afisha-search__submit {
        display: none;
    }
}