/* Липкий баннер Rush Conf 2027. Макет: figma-backup/rush-conf-banner-desktop-2-47 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../../font/font2/Inter-ExtraBold.woff2') format('woff2'),
        url('../../font/font2/Inter-ExtraBold.woff') format('woff');
}

.rush-conf-banner-spacer {
    height: 80px;
}

.rush-conf-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--rush-conf-banner-offset, 0px);
    z-index: 998; /* под плашкой cookie (999) */
    display: block;
    height: 80px;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    text-decoration: none;
}

.rush-conf-banner.is-ready {
    transition: bottom 0.3s ease;
}

/* Глобальные a:visited (#fdb179) и a:hover (underline) перебивают класс — фиксируем все состояния */
.rush-conf-banner:link,
.rush-conf-banner:visited,
.rush-conf-banner:hover,
.rush-conf-banner:focus,
.rush-conf-banner:active {
    color: #fff;
    text-decoration: none;
}

.rush-conf-banner__inner {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 41px 0 26px;
    box-sizing: border-box;
}

.rush-conf-banner__inner > * {
    position: relative;
    z-index: 1;
}

.rush-conf-banner img {
    display: block;
    max-width: none;
    pointer-events: none;
}

.rush-conf-banner .rush-conf-banner__cloud {
    position: absolute;
    z-index: 0;
    height: 106px;
    object-fit: fill;
}

.rush-conf-banner__cloud--2 {
    left: 72px;
    top: -19px;
    width: 542px;
}

.rush-conf-banner__cloud--1 {
    left: 302px;
    top: -7px;
    width: 500px;
}

/* Спикер: фото поверх стеклянной карточки */
.rush-conf-banner__speaker {
    flex: 0 0 255px;
    height: 100%;
}

.rush-conf-banner__card {
    position: absolute;
    left: 112px;
    top: 11px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 143px;
    height: 59px;
    padding: 11px 0 0 16px;
    box-sizing: border-box;
    border-radius: 8px;
    /* В Figma opacity .3 у всего слоя вместе с blur — размытие почти не видно, фон просвечивает */
    background: rgba(158, 110, 88, 0.3);
    font-size: 15px;
    line-height: 17px;
    white-space: nowrap;
}

.rush-conf-banner__name {
    font-weight: 600;
}

.rush-conf-banner__experts {
    font-weight: 400;
}

.rush-conf-banner .rush-conf-banner__photo {
    position: absolute;
    left: 0;
    top: 3px;
    width: 128px;
    height: 110px;
    object-fit: cover;
    object-position: top;
}

.rush-conf-banner__title {
    flex: 0 0 auto;
    margin-left: 15px;
    font-size: clamp(32px, 3.572vw, 50px);
    font-weight: 800;
    line-height: 1.12;
    white-space: nowrap;
}

.rush-conf-banner__title span {
    color: #ff5c00;
}

.rush-conf-banner__desc,
.rush-conf-banner__date {
    font-size: 15px;
    font-weight: 400;
    line-height: 17px;
}

.rush-conf-banner__desc {
    flex: 0 1 255px;
    box-sizing: border-box;
    min-width: 180px;
    margin-left: 16px;
    padding: 4px 6px 4px 0;
    border-right: 1px solid rgba(155, 155, 155, 0.8);
    color: rgba(255, 255, 255, 0.8);
}

.rush-conf-banner__date {
    flex: 0 1 149px;
    min-width: 120px;
    margin-left: 14px;
}

.rush-conf-banner__cta {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 16px;
}

/* Молния — фоновый слой, привязана к правому краю (как кнопка) */
.rush-conf-banner .rush-conf-banner__lightning {
    position: absolute;
    right: 169px;
    top: -6px;
    z-index: 0;
    width: 159px;
    height: 89px;
}

.rush-conf-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 43px;
    border-radius: 39px;
    background: #ff5c00;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
    transition: background-color 0.2s ease;
}

.rush-conf-banner:hover .rush-conf-banner__btn,
.rush-conf-banner:focus-visible .rush-conf-banner__btn {
    background: #ff7a2e;
}

/* Промежуточные ширины: ужимаем и прячем второстепенное */
@media (max-width: 1199px) {
    .rush-conf-banner__date {
        display: none;
    }

    .rush-conf-banner__desc {
        padding-right: 0;
        border-right: 0;
    }
}

@media (max-width: 1099px) {
    .rush-conf-banner__desc {
        display: none;
    }
}

@media (max-width: 1023px) {
    .rush-conf-banner__inner {
        padding-right: 20px;
    }

    .rush-conf-banner .rush-conf-banner__lightning {
        display: none;
    }
}

/* Мобильная версия (макет mob-3, нода 9:29, 360×150), тянется по ширине.
   Слева текст и кнопка, справа (от правого края) карточка, фото и молния. */
@media (max-width: 767px) {
    .rush-conf-banner-spacer,
    .rush-conf-banner {
        height: 150px;
    }

    .rush-conf-banner__inner {
        display: block;
        padding: 0;
    }

    .rush-conf-banner__inner > * {
        position: absolute;
    }

    .rush-conf-banner .rush-conf-banner__cloud--1 {
        display: none;
    }

    .rush-conf-banner .rush-conf-banner__cloud--2 {
        left: 24px;
        top: 116px;
        width: 456px;
        height: 89px;
    }

    .rush-conf-banner .rush-conf-banner__lightning {
        display: block;
        right: -81px;
        top: 24px;
        width: 242px;
        height: 135px;
    }

    /* Слой спикера на весь баннер: фото над карточкой, кнопка (ниже по DOM) — над фото */
    .rush-conf-banner__speaker {
        inset: 0;
        width: auto;
        height: auto;
    }

    .rush-conf-banner__card {
        left: auto;
        right: 9px;
        top: 9px;
        align-items: flex-end;
        width: 115px;
        height: 48px;
        padding: 9px 8px 0 0;
        gap: 3px;
        font-size: 11px;
        line-height: 12px;
    }

    .rush-conf-banner .rush-conf-banner__photo {
        left: auto;
        right: 50px;
        top: 40px;
        width: 158px;
        height: 136px;
    }

    .rush-conf-banner__title {
        left: 16px;
        top: 12px;
        margin: 0;
        font-size: 24px;
        line-height: 27px;
    }

    .rush-conf-banner__desc,
    .rush-conf-banner__date {
        display: block;
        left: 16px;
        width: 191px;
        min-width: 0;
        margin: 0;
        font-size: 11px;
    }

    .rush-conf-banner__desc {
        top: 43px;
        padding: 0;
        border: 0;
        line-height: 13px;
    }

    .rush-conf-banner__date {
        top: 77px;
        padding-top: 8px;
        border-top: 1px solid rgba(155, 155, 155, 0.8);
        line-height: 12px;
    }

    .rush-conf-banner__cta {
        left: 12px;
        top: 108px;
        margin: 0;
        padding: 0;
    }

    .rush-conf-banner__btn {
        width: 181px;
        height: 28px;
        font-size: 14px;
        line-height: 15px;
    }
}
