/* Афиша РДК: только внутри своего модуля, не меняет оформление других страниц. */

.rdku-afisha {
    --rdku-afisha-gap: 24px;
    width: 100%;
    padding: 46px clamp(18px,4vw,64px) 60px;
    margin: 0 auto;
    background: #fff;
    color: #20242b;
    box-sizing: border-box;
}

.rdku-afisha *, .rdku-afisha *::before, .rdku-afisha *::after {
    box-sizing: border-box;
}

.rdku-afisha__heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto 40px;
    max-width: 1620px;
}

.rdku-afisha__heading h2 {
    font-family: Oswald,"Arial Narrow",sans-serif;
    font-size: clamp(28px,2.6vw,39px);
    font-weight: 700;
    color: #111;
    margin: 0 0 5px;
    line-height: 1.2;
}

.rdku-afisha__heading p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.rdku-afisha__controls {
    display: flex;
    gap: 10px;
    flex: none;
}

.rdku-afisha__arrow {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #1751a5;
    color: #fff;
    border: 1px solid #1751a5;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s,border-color .2s;
}

.rdku-afisha__arrow:hover:not(:disabled),.rdku-afisha__arrow:focus-visible {
    background: #0c3373;
    color: #fff;
}

.rdku-afisha__arrow:disabled {
    background: #f3f5f7;
    color: #9aa5b4;
    border-color: #e5e9f0;
    cursor: default;
}

.rdku-afisha__track {
    display: flex;
    gap: var(--rdku-afisha-gap);
    width: 100%;
    max-width: 1620px;
    margin: 0 auto;
}

.rdku-afisha--static .rdku-afisha__track {
    justify-content: center;
}

.rdku-afisha--carousel .rdku-afisha__track {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding-bottom: 3px;
}

.rdku-afisha--carousel .rdku-afisha__track::-webkit-scrollbar {
    display: none;
}

.rdku-afisha__card {
    flex: 0 0 calc((100% - 2 * var(--rdku-afisha-gap)) / 3);
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 18px;
    background: #fff;
    border: 0;
    border-radius: 13px;
    scroll-snap-align: start;
}

.rdku-afisha__poster-wrap {
    width: 260px;
    flex: none;
    display: flex;
    align-items: flex-start;
}

.rdku-afisha__open-image {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: 0;
    background: #f5f6f8;
    border-radius: 9px;
    cursor: zoom-in;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.rdku-afisha__open-image img {
    display: block;
    width: 100%;
    aspect-ratio: 2/3;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.rdku-afisha__poster-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    background: rgba(9,30,66,.80);
    color: #fff;
    padding: 6px 3px;
    font-size: 12px;
    opacity: 0;
    transition: opacity .2s;
}

.rdku-afisha__open-image:hover .rdku-afisha__poster-hint,.rdku-afisha__open-image:focus-visible .rdku-afisha__poster-hint {
    opacity: 1;
}

.rdku-afisha__no-image {
    display: grid;
    place-items: center;
    aspect-ratio: 2/3;
    width: 100%;
    border-radius: 9px;
    background: #ebf2fc;
    color: #7c9ac5;
    font-family: Oswald,sans-serif;
    font-size: 24px;
}

.rdku-afisha__info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3px 0 6px;
}

.rdku-afisha__date {
    font-family: Oswald,"Arial Narrow",sans-serif;
    font-weight: 700;
    font-size: clamp(23px,2vw,32px);
    line-height: 1.1;
    color: #111;
    margin: 0 0 8px;
}

.rdku-afisha__time {
    font-family: Oswald,"Arial Narrow",sans-serif;
    font-size: clamp(17px,1.4vw,22px);
    font-weight: 400;
    color: #777;
    margin: 0 0 15px;
    line-height: 1.2;
}

.rdku-afisha__title {
    font-family: Oswald,"Arial Narrow",sans-serif;
    text-transform: uppercase;
    font-size: clamp(20px,2.6vw,40px);
    line-height: 1.12;
    font-weight: 600;
    color: #bf0b4d;
    margin: 0 0 5px;
    overflow-wrap: normal;
}

.rdku-afisha__subtitle {
    font-family: Oswald,"Arial Narrow",sans-serif;
    color: #1461ad;
    font-size: clamp(16px,1.6vw,23px);
    line-height: 1.15;
    margin: 0 0 16px;
    overflow-wrap: normal;
}

.rdku-afisha__meta {
    margin-top: auto;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
}

.rdku-afisha__place,.rdku-afisha__price {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.rdku-afisha__place {
    color: #fff;
    background: linear-gradient(100deg,#385cae,#c20d58);
}

.rdku-afisha__place span {
    margin-right: 8px;
    color: #fff;
	display: flex;
    align-items: center;
}

.rdku-afisha__price {
    border: 1px solid #3976b9;
    color: #1761a6;
    background: #fff;
	font-weight: 600;
}

.rdku-afisha__price span {
    color: #c9c9c9;
    margin-right: 8px;
	display: flex;
    align-items: center;
}

.rdku-afisha__empty {
    margin: 0 auto;
    text-align: center;
    color: #777;
    padding: 20px;
}

.rdku-afisha__dialog {
    border: none;
    border-radius: 12px;
    background: #111;
    padding: 12px;
    max-width: min(94vw,1200px);
    max-height: 94vh;
    box-shadow: 0 20px 80px rgba(0,0,0,.3);
    overflow: visible;
}

.rdku-afisha__dialog::backdrop {
    background: rgba(5,13,25,.82);
}

.rdku-afisha__dialog-image {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(94vw - 24px);
    max-height: calc(94vh - 24px);
    object-fit: contain;
}

.rdku-afisha__dialog-close {
    position: absolute;
    right: -13px;
    top: -13px;
    z-index: 2;
    width: 37px;
    height: 37px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 27px;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 3px 12px rgba(0,0,0,.4);
    cursor: pointer;
}

@media (max-width:900px) {
    .rdku-afisha__card {
        flex-basis: calc((100% - var(--rdku-afisha-gap)) / 2);
    }

    .rdku-afisha--static .rdku-afisha__track {
        flex-wrap: wrap;
    }

    .rdku-afisha__poster-wrap {
        width: 41%;
    }
}

@media (max-width:700px) {
    .rdku-afisha {
        padding: 32px 16px 40px;
        --rdku-afisha-gap: 16px;
    }

    .rdku-afisha__heading-row {
        align-items: center;
        gap: 12px;
    }

    .rdku-afisha__arrow {
        width: 40px;
        height: 40px;
    }

    .rdku-afisha__card {
        flex-basis: 100%;
        gap: 14px;
    }

    .rdku-afisha--static .rdku-afisha__track {
        flex-direction: column;
        align-items: stretch;
    }

    .rdku-afisha__poster-wrap {
        width: 41%;
        max-width: 180px;
    }

    .rdku-afisha__date {
        font-size: 26px;
    }

    .rdku-afisha__title {
        font-size: 23px;
    }

    .rdku-afisha__subtitle {
        font-size: 17px;
    }
}

@media (max-width:390px) {
    .rdku-afisha__card {
        gap: 10px;
    }

    .rdku-afisha__poster-wrap {
        width: 37%;
    }

    .rdku-afisha__title {
        font-size: 20px;
    }

    .rdku-afisha__date {
        font-size: 23px;
    }
}
