.carousel .carousel-caption h1 {
    margin-bottom: 18px;
}

.hero-offer {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "discount label"
        "discount note";
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    max-width: min(100%, 420px);
    margin: 0 0 10px 0;
    padding: 8px 16px 8px 8px;
    color: #08233f;
    background: #d9effb;
    border: 1px solid #9bd4ee;
    border-radius: 6px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
    line-height: 1.15;
    text-align: left;
}

.carousel .hero-offer {
    animation: heroOfferPulse 2.4s ease-in-out infinite !important;
}

@keyframes heroOfferPulse {
    0%,
    100% {
        background: #d9effb;
        border-color: #9bd4ee;
    }

    50% {
        background: #eef8fd;
        border-color: #7cc7ea;
    }
}

.hero-offer span {
    grid-area: label;
    color: #08233f;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.hero-offer strong {
    grid-area: discount;
    min-width: 92px;
    min-height: 58px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #08233f;
    border-radius: 4px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.hero-offer small {
    grid-area: note;
    color: #08233f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.hero-offer-note {
    margin: 0 0 22px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

@media (max-width: 767.98px) {
    .carousel .carousel-caption h1 {
        margin-bottom: 16px;
    }

    .hero-offer {
        max-width: 100%;
        margin-bottom: 9px;
        padding: 7px 13px 7px 7px;
        column-gap: 12px;
    }

    .hero-offer-note {
        margin-bottom: 18px;
        font-size: 14px;
    }

    .hero-offer span {
        font-size: 12px;
    }

    .hero-offer strong {
        min-width: 82px;
        min-height: 52px;
        font-size: 26px;
    }

    .hero-offer small {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .carousel .carousel-caption h1 {
        min-height: 104px;
        margin-bottom: 12px;
    }

    .hero-offer {
        margin-bottom: 8px;
        padding-right: 10px;
        column-gap: 10px;
    }

    .hero-offer-note {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .hero-offer strong {
        min-width: 72px;
        min-height: 48px;
        padding: 0 10px;
        font-size: 23px;
    }

    .hero-offer span {
        font-size: 11px;
    }

    .hero-offer small {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel .hero-offer {
        animation: none !important;
    }
}
