.ag-gift-promo {
    display: block;
    text-decoration: none;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    background: #eef9fd;
    border: 1px solid #b7deef;
    border-radius: 8px;
    color: #103c55;
}

.ag-gift-promo:hover {
    color: #103c55;
    text-decoration: none;
}

.ag-gift-promo--compact {
    width: 100%;
    margin-top: 22px;
    padding: 16px;
}

.ag-gift-promo__caption {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #326582;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ag-gift-promo__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #d96b00;
}

.ag-gift-promo--compact .ag-gift-promo__icon {
    position: absolute;
    inset: 21px 17px auto auto;
    width: 27px;
    height: 27px;
    transform: rotate(-10deg);
}

.ag-gift-promo h3 {
    margin: 8px 0;
    color: inherit;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.ag-gift-promo--compact h3 {
    padding-right: 29px;
}

.ag-gift-promo p {
    margin: 0 0 14px;
    color: #38586a;
    font-size: 13px;
    line-height: 1.5;
}

.ag-gift-promo .ag-gift-promo__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-sizing: border-box;
    max-width: 100%;
    padding: 9px 16px;
    border-radius: 6px;
    background: #ff9800;
    color: #172c36;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.ag-gift-promo:hover .ag-gift-promo__link {
    background: #ffad25;
    color: #172c36;
}

.ag-gift-promo:focus-visible {
    outline: 2px solid #103c55;
    outline-offset: 3px;
}

.ag-gift-promo--compact .ag-gift-promo__link {
    width: 100%;
}

.tours-grid--listing > .ag-gift-promo--listing {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: 0 0 100%;
    width: 100%;
    min-height: 225px;
    margin: 10px 0 24px;
    padding: 25px;
    background: linear-gradient(110deg, #f1fbfe, #d8eef8);
}

.ag-gift-promo--listing h3 {
    max-width: 19ch;
    font-size: clamp(22px, 2.4vw, 32px);
}

.ag-gift-promo__art {
    position: relative;
    isolation: isolate;
    flex: 0 1 235px;
    margin: 10px 8px;
}

.ag-gift-promo__art::before {
    position: absolute;
    z-index: -1;
    inset: -10px 15px 10px -10px;
    border: 4px solid white;
    border-radius: 10px;
    background: #87c3da;
    content: "";
    transform: rotate(-8deg);
}

.ag-gift-promo__certificate {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-height: 130px;
    padding: 13px 15px;
    border: 4px solid white;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(0, 91, 142, .6), #063b60 95%), url('/upload/resize_cache/iblock/b1e/q4ofwwu24yebo17r2u8itw3o7kfx3mxb/400_400_1/Zimniy-tur-na-Kamchatku.webp') center 45% / cover;
    box-shadow: 0 9px 16px rgba(14, 60, 92, .2);
    color: white;
    transform: rotate(7deg);
}

.ag-gift-promo__certificate strong {
    font-size: clamp(16px, 1.6vw, 21px);
    line-height: 1.15;
}

.ag-gift-promo__certificate small {
    font-size: 9px;
}

.ag-gift-promo__certificate small:first-child {
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .tours-grid--listing > .ag-gift-promo--listing {
        flex-direction: column;
        align-items: stretch;
        margin: 6px 0 16px;
        padding: 18px;
    }

    .ag-gift-promo__art {
        flex: 0 0 auto;
        width: min(75%, 200px);
        margin: 8px auto 14px;
    }
}

.banner--home-gift .ag-gift-promo--compact {
    margin-top: 12px;
    padding: 10px 12px;
}

.banner--home-gift .ag-gift-promo__caption {
    line-height: 1.35;
}

.banner--home-gift .ag-gift-promo__icon {
    inset: 11px 13px auto auto;
    width: 18px;
    height: 18px;
}

.banner--home-gift .ag-gift-promo h3 {
    margin: 5px 0 3px;
    padding-right: 0;
    font-size: 16px;
}

.banner--home-gift .ag-gift-promo p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.4;
}

.banner--home-gift .ag-gift-promo__link {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
}

@media (min-width: 600px) and (max-width: 991px) {
    .banner--home-gift .ag-gift-promo__content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 20px;
    }

    .banner--home-gift .ag-gift-promo__icon {
        position: static;
        width: 16px;
        height: 16px;
    }

    .banner--home-gift .ag-gift-promo p {
        margin-bottom: 0;
    }

    .banner--home-gift .ag-gift-promo__link {
        grid-column: 2;
        grid-row: 1 / 4;
    }
}

@media (min-width: 992px) {
    .banner.banner--home-gift > .container {
        height: auto;
    }

    .banner--home-gift .banner__container {
        box-sizing: border-box;
        min-height: calc(451px + clamp(1.25rem, -.019rem + 5.42vw, 3.938rem));
        margin-bottom: 0;
        padding-bottom: 16px;
    }
}

@media (min-width: 992px) and (max-width: 1100px) {
    .banner--home-gift .filter__header {
        margin-bottom: 12px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .banner.banner--home-gift {
        /* Match the header offset already reserved below 768px. */
        padding-top: calc(30px + 92px);
    }
}
