/*
 * Правая колонка первого экрана: карусель партнёрских виджетов с резервными карточками.
 */

.rbz-ps {
    --rbz-ps-line: #dfe6ef;
    --rbz-ps-accent: #1759d5;
    min-width: 0;
    color: #111a2b;
    line-height: 1.3;
}

.rbz-ps *,
.rbz-ps *::before,
.rbz-ps *::after {
    box-sizing: border-box;
}

.rbz-ps [hidden] {
    display: none !important;
}

.rbz-ps__top {
    height: 47px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

/* template_styles.css шаблона задаёт h2 размер и регистр с !important — перебиваем только их. */
.rbz-ps .rbz-ps__title {
    margin: 0;
    padding: 0;
    color: #6f7d91;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .02em;
    text-transform: uppercase !important;
}

.rbz-ps__counter {
    color: #6f7d91;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.rbz-ps__carousel {
    position: relative;
    height: 337px;
}

.rbz-ps__slide {
    height: 100%;
    border: 1px solid var(--rbz-ps-line);
    border-radius: 15px;
    background: #fff;
    overflow: hidden;
}

.rbz-ps__slide-head {
    height: 53px;
    display: flex;
    align-items: center;
    padding: 0 90px 0 15px;
    border-bottom: 1px solid var(--rbz-ps-line);
}

.rbz-ps .rbz-ps__slide-name {
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rbz-ps__body {
    position: relative;
    height: calc(100% - 53px);
    overflow: hidden;
}

.rbz-ps__host {
    position: absolute;
    inset: 0;
    overflow: auto;
    background: #fff;
}

.rbz-ps__host iframe {
    max-width: 100%;
}

.rbz-ps__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: #edf4ff;
    color: #173a76;
}

/* Баннер из картинки анонса: текст и кнопка нарисованы на самом изображении. */
.rbz-ps__fallback--image {
    padding: 0;
    background: #fff;
}

.rbz-ps__banner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.rbz-ps__banner:focus-visible {
    outline: 3px solid #91b8f4;
    outline-offset: -3px;
}

/* Слева на баннерах текст и кнопка — при обрезке теряется правая, иллюстративная часть. */
.rbz-ps__banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.rbz-ps__badge {
    align-self: flex-start;
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.rbz-ps .rbz-ps__kicker {
    margin: auto 0 3px;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}

.rbz-ps__value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.rbz-ps .rbz-ps__note {
    margin: 5px 0 0;
    color: #4f6588;
    font-size: 13px;
    line-height: 1.35;
}

.rbz-ps__link,
.rbz-ps__link:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 10px;
    background: var(--rbz-ps-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.rbz-ps__link:hover,
.rbz-ps__link:focus {
    background: #0f47b0;
    color: #fff;
    text-decoration: none;
}

.rbz-ps__link:focus-visible,
.rbz-ps__nav-button:focus-visible {
    outline: 3px solid #91b8f4;
    outline-offset: 2px;
}

.rbz-ps__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.rbz-ps__nav {
    position: absolute;
    top: 11px;
    right: 14px;
    z-index: 5;
    display: flex;
    gap: 7px;
}

.rbz-ps__nav-button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid #cad7e7;
    border-radius: 9px;
    background: #fff;
    color: var(--rbz-ps-accent);
    font: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.rbz-ps__nav-button:hover {
    background: #edf3fb;
}

@media (max-width: 760px) {
    .rbz-ps__top {
        height: 40px;
    }

    .rbz-ps__carousel {
        height: 310px;
    }

    .rbz-ps__slide-head {
        height: 49px;
        padding-left: 13px;
    }

    .rbz-ps__body {
        height: calc(100% - 49px);
    }

    .rbz-ps__nav {
        top: 9px;
    }

    .rbz-ps__fallback {
        padding: 16px;
    }

    .rbz-ps .rbz-ps__kicker {
        font-size: 19px;
    }

    .rbz-ps__value {
        font-size: 26px;
    }
}

@media (max-width: 360px) {
    .rbz-ps__carousel {
        height: 300px;
    }
}
