.home-offers {
    --home-offers-blue: #2077ba;
    --home-offers-blue-dark: #145b91;
    --home-offers-yellow: #ffbe5f;
    --home-offers-text: #17212b;
    --home-offers-muted: #61717f;
    background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
    padding: clamp(42px, 6vw, 78px) 0 24px;
    overflow: hidden;
}

.home-offers *,
.home-offers *::before,
.home-offers *::after {
    box-sizing: border-box;
}

.home-offers__container {
    width: 100%;
    margin-inline: auto;
    padding-inline: clamp(28px, 4vw, 72px);
}

.home-offers__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.home-offers__eyebrow {
    margin: 0 0 7px;
    color: var(--home-offers-blue);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.home-offers__heading h2 {
    max-width: 760px;
    margin: 0;
    color: var(--home-offers-text);
    font-size: clamp(1.75rem, 3.3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.home-offers__intro {
    max-width: 700px;
    margin: 12px 0 0;
    color: var(--home-offers-muted);
    font-size: clamp(1.55rem, 1.7vw, 1.75rem);
    line-height: 1.6;
}

.home-offers__all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid rgba(32, 119, 186, 0.28);
    border-radius: 999px;
    background: #ffffff;
    color: var(--home-offers-blue-dark);
    font-size: 1.55rem;
    font-weight: 750;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-offers__all:hover {
    border-color: var(--home-offers-blue);
    color: var(--home-offers-blue-dark);
    box-shadow: 0 9px 24px rgba(32, 119, 186, 0.13);
    text-decoration: none;
    transform: translateY(-1px);
}

.home-offers__carousel {
    position: relative;
}

.home-offers__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 66px) / 4);
    gap: 22px;
    margin: 0;
    padding: 4px 3px 22px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.home-offers__track::-webkit-scrollbar {
    display: none;
}

.home-offer-card {
    min-width: 0;
    border: 1px solid #e6edf2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(20, 48, 70, 0.08);
    overflow: hidden;
    scroll-snap-align: start;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-offer-card:hover {
    border-color: rgba(32, 119, 186, 0.28);
    box-shadow: 0 15px 34px rgba(20, 48, 70, 0.14);
    transform: translateY(-3px);
}

.home-offer-card__link {
    display: flex;
    height: 100%;
    color: inherit;
    flex-direction: column;
    text-decoration: none;
}

.home-offer-card__link:hover,
.home-offer-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.home-offer-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eaf1f5;
    overflow: hidden;
}

.home-offer-card__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.home-offer-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.home-offer-card:hover .home-offer-card__image {
    transform: scale(1.025);
}

.home-offer-card__badge {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 12px rgba(20, 48, 70, 0.14);
    color: var(--home-offers-blue-dark);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.home-offer-card__body {
    display: flex;
    flex: 1;
    padding: 17px 17px 19px;
    flex-direction: column;
}

.home-offer-card__title {
    display: -webkit-box;
    min-height: 2.75em;
    margin: 0;
    color: var(--home-offers-text);
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1.36;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-offer-card__location {
    margin: 7px 0 14px;
    color: var(--home-offers-muted);
    font-size: 1.55rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-offer-card__price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: auto;
    color: var(--home-offers-text);
}

.home-offer-card__price strong {
    color: var(--home-offers-blue-dark);
    font-size: 1.8rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.home-offer-card__price span {
    color: var(--home-offers-muted);
    font-size: 1.55rem;
}

.home-offer-card__date {
    margin: 5px 0 0;
    color: var(--home-offers-muted);
    font-size: 1.55rem;
    line-height: 1.35;
}

.home-offers__nav {
    position: absolute;
    top: 42%;
    z-index: 3;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dce6ed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 5px 18px rgba(20, 48, 70, 0.17);
    color: var(--home-offers-text);
    cursor: pointer;
    place-items: center;
    transform: translateY(-50%);
    transition: opacity 160ms ease, transform 160ms ease;
}

.home-offers__nav--previous {
    left: -18px;
}

.home-offers__nav--next {
    right: -18px;
}

.home-offers__nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.home-offers__nav:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.05);
}

.home-offers__nav:disabled {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

.home-offers__mobile-cta {
    display: none;
    margin-top: 16px;
    text-align: center;
}

.home-offers__track:focus-visible,
.home-offers__all:focus-visible,
.home-offers__nav:focus-visible,
.home-offer-card__link:focus-visible {
    outline: 3px solid var(--home-offers-yellow);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .home-offers__track {
        grid-auto-columns: calc((100% - 44px) / 3);
    }
}

@media (max-width: 800px) {
    .home-offers {
        position: relative;
        z-index: 1;
        display: block !important;
        clear: both;
        width: 100%;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .home-offers__container {
        width: 100%;
        padding-inline: 18px;
    }

    .home-offers__heading {
        position: relative;
        z-index: 2;
        display: block !important;
        width: 100%;
        align-items: flex-start;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .home-offers__eyebrow,
    .home-offers__heading h2,
    .home-offers__intro {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .home-offers__heading > .home-offers__all {
        display: none;
    }

    .home-offers__track {
        grid-auto-columns: calc((100% - 18px) / 2);
        gap: 18px;
        padding-bottom: 14px;
    }

    .home-offers__nav {
        display: none;
    }

    .home-offers__mobile-cta {
        display: block;
    }
}

@media (max-width: 560px) {
    .home-offers {
        padding: 38px 0 20px;
    }

    .home-offers__container {
        width: 100%;
        padding-inline: 0;
    }

    .home-offers__heading {
        padding-inline: 18px;
        margin-bottom: 20px;
    }

    .home-offers__eyebrow {
        margin-bottom: 8px;
        font-size: 1.55rem;
        line-height: 1.3;
    }

    .home-offers__heading h2 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .home-offers__intro {
        margin-top: 10px;
        font-size: 1.55rem;
        line-height: 1.45;
    }

    .home-offers__track {
        grid-auto-columns: 84vw;
        gap: 13px;
        padding: 3px 18px 14px;
        scroll-padding-inline: 18px;
    }

    .home-offer-card {
        border-radius: 16px;
    }

    .home-offer-card__body {
        padding: 15px 15px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-offers__track {
        scroll-behavior: auto;
    }

    .home-offer-card,
    .home-offer-card__image,
    .home-offers__all,
    .home-offers__nav {
        transition: none;
    }
}
