/* Контейнер всплывающего баннера в правом нижнем углу. */
.popup-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 346px;
    display: none;
    z-index: 9999;
}

/* Модификатор для показа баннера. */
.popup-banner--visible {
    display: block;
}

/* Белый основной блок баннера. */
.popup-banner__card {
    position: relative;
    background: #f3f3f3;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    padding: 44px 18px 20px 18px;
    min-height: 163px;
}

/* Верхняя синяя шапка с логотипом. */
.popup-banner__header {
    position: absolute;
    top: -59px;
    left: 18px;
    width: 214px;
    height: 80px;
    background: #1d2548;
    border-radius: 18px 18px 18px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

/* Ссылка логотипа на всю синюю шапку. */
.popup-banner__logo-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Логотип внутри синего блока. */
.popup-banner__logo {
    max-width: 86%;
    max-height: 70%;
    display: block;
    object-fit: contain;
}

/* Кнопка закрытия баннера справа сверху. */
.popup-banner__close {
    position: absolute;
    top: -45px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #8e8e8e;
    font-size: 22px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    z-index: 3;
}

.popup-banner__close:hover {
    background: rgba(255, 255, 255, 1);
}

/* Заголовок баннера. */
.popup-banner__title {
    margin: 0 10px 10px 0;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
}

/* Описание баннера. */
.popup-banner__text {
    margin: 0 0 18px 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    color: #3b3b3b;
}

/* Желтая кнопка-ссылка. */
.popup-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 218px;
    height: 54px;
    padding-top: 7px;
    background: #f6c400;
    border-radius: 16px;
    text-decoration: none;
    color: #111111;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(246, 196, 0, 0.45);
}

.popup-banner__button:hover {
    filter: brightness(0.96);
}

/* Адаптация для маленьких экранов. */
@media (max-width: 490px) {
    .popup-banner {
        left: 12px;
        bottom: 12px;
        width: 50%;
    }

    .popup-banner__header {
        top: -30px;
        width: 100px;
        height: 50px;
        left: 14px;
    }

    .popup-banner__card {
        padding: 54px 14px 16px 14px;
    }

    .popup-banner__title {
        font-size: 16px;
        width: 100%;
    }

    .popup-banner__button {
        min-width: 150px;
        width: 50%;
        height: 37px;
        padding-top: 7px;
        font-size: 16px;
    }
}