.home-page {
    overflow: hidden;
}

.home-offers {
    padding: 28px 0 10px;
}

.home-page .boxes-offer {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(250px, 1fr) minmax(0, .8fr);
    gap: 32px;
    align-items: stretch;
    width: 100%;
    margin: 0;
}

.home-page .offer-column {
    display: flex;
    flex-direction: column;
    gap: 42px;
    min-width: 0;
    width: auto !important;
    height: auto;
    padding: 0 !important;
    float: none !important;
}

.home-page .offer-card {
    min-width: 0;
}

.home-page .offer-card-image {
    display: block;
    overflow: hidden;
    background: #f4f5f6;
}

.home-page .offer-card-image picture {
    display: block;
}

.home-page .offer-card-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--image-ratio, auto);
    object-fit: cover;
    transition: transform .25s ease;
}

.home-page .offer-card-image--natural img {
    width: auto;
    max-width: 100%;
    margin-inline: auto;
}

.home-page .offer-card-image:hover img {
    transform: scale(1.025);
}

.home-page .offer-card h2,
.home-page .full-offer-box h2,
.home-page .home-bottom-banner h2 {
    font-family: "Roboto", Arial, sans-serif;
}

.home-page .offer-card h2 {
    margin: 14px 0 8px;
    color: #303d4a;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 600;
}

.home-page .offer-card p {
    margin: 0;
    color: #6f7882;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.home-page .full-offer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: auto;
    height: auto;
    min-height: 100%;
    padding: 42px 28px;
    float: none;
    text-align: center;
    background-color: #f7f9fc;
    background-image: url("../img/boxes-offer/full-offer-box-bg.jpg");
    background-image: image-set(
        url("../img/boxes-offer/full-offer-box-bg.avif") type("image/avif"),
        url("../img/boxes-offer/full-offer-box-bg.jpg") type("image/jpeg")
    );
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.home-page .full-offer-box h2 {
    margin: 0 0 30px;
    color: #0094da;
    font-size: clamp(30px, 2.4vw, 42px);
    line-height: 1.12;
    font-weight: 300;
}

.home-page .full-offer-box p {
    float: none;
    margin: 0 0 24px;
    color: #221f1f;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
}

.home-page .full-offer-box a:not(.more) {
    color: inherit;
}

.home-page .full-offer-box .full-offer-contact {
    margin-bottom: 34px;
}

.home-page .more {
    position: static;
    width: auto;
    min-width: 169px;
    height: auto;
    margin-top: auto;
    padding: 13px 22px;
    border-radius: 4px;
    background: #034ea1;
    color: #fff;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease;
}

.home-page .more:hover,
.home-page .more:focus-visible {
    background: #0094da;
}

.home-bottom-banner {
    padding-top: 22px;
}

.home-page #boxes-bottom,
.home-page #boxes-bottom .box-1 {
    width: 100%;
}

.home-page #boxes-bottom .box-1 {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 260px;
    height: auto;
    padding: 32px;
    background: #2d3944;
    overflow: hidden;
}

.home-page .home-bottom-picture,
.home-page .home-bottom-picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-page .home-bottom-picture img {
    object-fit: cover;
}

.home-page #boxes-bottom .box-1 .content {
    position: relative;
    z-index: 1;
    float: none;
    max-width: 520px;
    margin: 0;
    padding: 18px 20px;
    border-radius: 6px;
    background: rgba(20, 32, 45, .66);
}

.home-page #boxes-bottom .box-1 .content h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 400;
}

.home-page #boxes-bottom .box-1 .content p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.45;
}

@media (max-width: 1199px) {
    .home-page .boxes-offer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 28px;
    }

    .home-page .full-offer-box {
        min-height: 520px;
    }
}

@media (max-width: 575px) {
    .home-offers {
        padding-top: 22px;
    }

    .home-page .boxes-offer {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .home-page .offer-column {
        gap: 38px;
    }

    .home-page .offer-card h2 {
        font-size: 22px;
    }

    .home-page .offer-card p {
        font-size: 16px;
    }

    .home-page .full-offer-box {
        min-height: 480px;
        padding: 38px 24px;
        background-size: cover;
    }

    .home-page #boxes-bottom .box-1 {
        justify-content: stretch;
        min-height: 300px;
        padding: 20px;
    }

    .home-page .home-bottom-picture img {
        object-position: 32% center;
    }

    .home-page #boxes-bottom .box-1 .content {
        width: 100%;
    }

    .home-page #boxes-bottom .box-1 .content h2 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .offer-card-image img {
        transition: none;
    }
}
