
/* =========================================
   LONDON EXPRESS ОНЛАЙН
   РЕКЛАМНЫЙ ТОПБАР — ФИОЛЕТОВЫЙ
   ========================================= */

/* Основные цвета */

.activity-promo--purple {
    --promo-bg: #663ed2;
    --promo-bg-dark: #5630b8;
    --promo-text: #ffffff;
    --promo-yellow: #ffde79;
    --promo-pink: #ffb6d0;
    --promo-badge: #ffce57;
    --promo-deep: #35176d;
    --promo-grid: rgba(255, 255, 255, .11);
}

/* Контейнер */

.activity-promo--purple,
.activity-promo--purple * {
    box-sizing: border-box;
}

/* Вся плашка — одна ссылка */

.activity-promo--purple .activity-promo__anchor {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* =========================================
   ОСНОВНАЯ ПЛАШКА
   ========================================= */

.activity-promo--purple .activity-promo__bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 22222;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    height: 40px;

    padding: 0 30px 0 78px;

    isolation: isolate;
    overflow: hidden;

    background: var(--promo-bg);

    border-bottom: 1px solid
        rgba(255, 255, 255, .16);

    box-shadow:
        0 3px 12px rgba(47, 20, 112, .18);

    transition:
        background .3s ease,
        box-shadow .3s ease;
}

/* Наведение */

.activity-promo--purple
.activity-promo__anchor:hover
.activity-promo__bar {
    background: #764ced;

    box-shadow:
        0 4px 15px rgba(47, 20, 112, .25);
}

/* =========================================
   ДЕКОРАТИВНЫЕ ЦВЕТНЫЕ ФОРМЫ
   ========================================= */

.activity-promo--purple
.activity-promo__bar::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -2;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 20% 160%,
            rgba(255, 170, 220, .20) 0 100px,
            transparent 102px
        ),
        radial-gradient(
            circle at 82% -150%,
            rgba(255, 206, 87, .19) 0 120px,
            transparent 122px
        ),
        radial-gradient(
            circle at 53% 160%,
            rgba(255, 255, 255, .09) 0 90px,
            transparent 92px
        );
}

/* =========================================
   ЛЁГКАЯ КЛЕТКА
   ========================================= */

.activity-promo--purple
.activity-promo__bar::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            var(--promo-grid) 1px,
            transparent 1px
        ),
        linear-gradient(
            0deg,
            var(--promo-grid) 1px,
            transparent 1px
        );

    background-size:
        24px 24px,
        24px 24px;
}

/* =========================================
   ДИАГОНАЛЬНАЯ ЛЕНТА «АКЦИЯ»
   ========================================= */

.activity-promo--purple .activity-promo__ribbon {
    position: absolute;

    top: 0;
    left: 0;
    z-index: 3;

    width: 76px;
    height: 40px;

    overflow: hidden;

    pointer-events: none;
}

/* Жёлтая лента */

.activity-promo--purple
.activity-promo__ribbon > span {
    position: absolute;

    top: 9px;
    left: -25px;

    display: block;
    width: 105px;

    padding: 3px 0;

    background: linear-gradient(
        105deg,
        #ffbd3b 0%,
        #ffde79 50%,
        #ffbd3b 100%
    );

    color: var(--promo-deep);

    font-size: 10px;
    font-weight: 900;
    line-height: 16px;

    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;

    transform: rotate(-39deg);

    box-shadow:
        0 2px 6px rgba(40, 15, 100, .18);

    text-shadow: none;
}

/* =========================================
   ЗНАЧОК ПОДАРКА
   ========================================= */

.activity-promo--purple .activity-promo__gift {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 20px;
    line-height: 1;
}

/* =========================================
   ДАТА АКЦИИ
   ========================================= */

.activity-promo--purple .activity-promo__date {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    margin: 0;
    padding: 5px 10px;

    background:
        rgba(255, 255, 255, .10);

    border: 1px solid
        rgba(255, 255, 255, .28);

    border-radius: 20px;

    color: #f1e4ff;

    font-size: 11px;
    font-weight: 750;
    line-height: 1;

    white-space: nowrap;
}

/* =========================================
   ОСНОВНОЙ ТЕКСТ
   ========================================= */

.activity-promo--purple .activity-promo__text {
    position: relative;
    z-index: 2;

    display: block;

    flex: 0 1 auto;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: var(--promo-text);

    font-size: clamp(15px, 1.5vw, 20px);
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: -.025em;

    white-space: nowrap;
    text-shadow: none;
}

/* Жёлтое выделение */

.activity-promo--purple
.activity-promo__text-accent {
    color: var(--promo-yellow);

    padding: 0;
    margin: 0;

    background: transparent;
    border: 0;
    border-radius: 0;

    font-weight: 850;
    text-shadow: none;
}

/* Короткое название для телефона */

.activity-promo--purple .promo-short-title {
    display: none;
}

/* =========================================
   БОНУС ДЛЯ ДРУГА
   ========================================= */

.activity-promo--purple .activity-promo__accent {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    margin: 0;
    padding: 5px 10px;

    background:
        rgba(255, 206, 87, .15);

    border: 1px solid
        rgba(255, 206, 87, .15);

    border-radius: 7px;

    color: #ffe8a5;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;

    white-space: nowrap;
    text-shadow: none;
}

/* =========================================
   ССЫЛКА «ПОДРОБНЕЕ»
   ========================================= */

.activity-promo--purple .activity-promo__link {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    flex-shrink: 0;

    margin: 0;
    padding: 0;

    color: #ffffff;

    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;

    white-space: nowrap;

    transition:
        color .25s ease;
}

/* Стрелка */

.activity-promo--purple .activity-promo__arrow {
    display: inline-block;

    color: var(--promo-yellow);

    font-size: 19px;
    line-height: 1;

    transition: transform .25s ease;
}

/* Наведение */

.activity-promo--purple
.activity-promo__anchor:hover
.activity-promo__link {
    color: var(--promo-yellow);
}

.activity-promo--purple
.activity-promo__anchor:hover
.activity-promo__arrow {
    transform: translateX(5px);
}

/* Видимый фокус при управлении с клавиатуры */

.activity-promo--purple
.activity-promo__anchor:focus-visible
.activity-promo__bar {
    outline: 3px solid #ffde79;
    outline-offset: -3px;
}

/* =========================================
   ЭКРАНЫ ДО 1100 PX
   ========================================= */

@media (max-width: 1100px) {

    .activity-promo--purple
    .activity-promo__bar {
        gap: 10px;
        padding-right: 18px;
    }

    .activity-promo--purple
    .activity-promo__accent {
        display: none;
    }

    .activity-promo--purple
    .activity-promo__text {
        font-size: 17px;
    }
}

/* =========================================
   ПЛАНШЕТЫ ДО 700 PX
   ========================================= */

@media (max-width: 700px) {

    .activity-promo--purple
    .activity-promo__bar {
        justify-content: space-between;
        gap: 8px;

        padding-left: 70px;
        padding-right: 14px;
    }

    .activity-promo--purple
    .activity-promo__gift {
        font-size: 18px;
    }

    .activity-promo--purple
    .activity-promo__date {
        display: none;
    }

    .activity-promo--purple
    .activity-promo__text {
        flex: 1 1 auto;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 15px;
    }

    .activity-promo--purple
    .activity-promo__link {
        font-size: 0;
    }

    .activity-promo--purple
    .activity-promo__arrow {
        font-size: 20px;
    }
}

/* =========================================
   МОБИЛЬНЫЕ УСТРОЙСТВА ДО 480 PX
   ========================================= */

@media (max-width: 480px) {

    .activity-promo--purple
    .activity-promo__bar {
        height: 40px;

        padding-left: 62px;
        padding-right: 12px;

        gap: 7px;
    }

    .activity-promo--purple
    .activity-promo__ribbon {
        width: 62px;
    }

    .activity-promo--purple
    .activity-promo__gift {
        font-size: 17px;
    }

    .activity-promo--purple
    .promo-long-title {
        display: none;
    }

    .activity-promo--purple
    .promo-short-title {
        display: inline;
    }

    .activity-promo--purple
    .activity-promo__text {
        font-size: 13px;
        line-height: 1.2;
    }
}

/* =========================================
   УМЕНЬШЕНИЕ АНИМАЦИЙ
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .activity-promo--purple
    .activity-promo__bar,

    .activity-promo--purple
    .activity-promo__link,

    .activity-promo--purple
    .activity-promo__arrow {
        transition: none;
    }
}
