.top-promo {
    position: relative;
    padding: 10px 52px;
    background: linear-gradient(90deg, #162902, #223C05 50%, #162902);
    color: #fff;
    overflow: hidden;
}

.top-promo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 40%, rgba(247, 204, 53, .18) 50%, transparent 60%);
    background-size: 250% 100%;
    animation: top-promo-shine 5s ease-in-out infinite;
    pointer-events: none;
}

.top-promo__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    text-align: center;
}

.top-promo__icon {
    display: flex;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F7CC35;
}

.top-promo__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #223C05;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.top-promo__text {
    margin: 0;
    font-size: 15px;
    line-height: 22px;
}

.top-promo__text b {
    color: #F7CC35;
}

.top-promo__cta {
    padding: 6px 18px;
    border-radius: 20px;
    background: #F7CC35;
    color: #223C05;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .15s;
}

.top-promo__cta:hover {
    color: #223C05;
    transform: translateY(-1px);
}

.top-promo__close {
    position: absolute;
    top: 50%;
    right: 12px;
    display: flex;
    width: 32px;
    height: 32px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
    transform: translateY(-50%);
}

.top-promo__close svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
}

.top-promo__close:focus-visible,
.top-promo__cta:focus-visible {
    outline: 2px solid #F7CC35;
    outline-offset: 2px;
}

header {
    top: var(--top-promo-h, 0px);
}

@media only screen and (max-width: 991.5px) {
    .middle-header {
        top: var(--top-promo-visible, 0px);
    }
}

@keyframes top-promo-shine {
    from { background-position: 150% 0; }
    to { background-position: -100% 0; }
}

@media (max-width: 640px) {
    .top-promo {
        padding: 10px 44px 10px 16px;
    }

    .top-promo__icon {
        display: none;
    }

    .top-promo__text {
        font-size: 13px;
        line-height: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-promo::before {
        animation: none;
    }
}
