.home-hero {
    display: grid;
    grid-template: "banner" / minmax(0, 1fr);
    min-height: min(41.667vw, 46rem);
    isolation: isolate;
    background: #fff5f8;
}

.home-slider,
.home-contact {
    grid-area: banner;
}

.home-slider .carousel-inner {
    position: absolute;
    inset: 0;
}

.home-slider .carousel-item {
    height: 100%;
}

.home-slider .carousel-item a,
.home-slider picture,
.home-slider img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-slider img {
    object-fit: cover;
    object-position: left center;
}

.home-contact {
    z-index: 2;
    align-self: center;
    padding: clamp(1rem, 3vw, 2rem) 0;
    pointer-events: none;
}

.home-contact-panel {
    width: 100%;
    max-width: 27rem;
    margin-left: auto;
    padding: clamp(1rem, 2.2vw, 1.75rem);
    border: 1px solid #ebd9e0;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 .5rem 1.5rem rgba(32, 64, 102, .18);
    pointer-events: auto;
}

.home-contact h2 {
    margin-bottom: .875rem;
    color: #204066;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.25;
}

.home-contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: .65rem .75rem;
}

.home-contact-wide {
    grid-column: 1 / -1;
}

.home-contact label {
    display: block;
    margin: 0 0 .35rem;
    color: #204066;
    font-size: .9rem;
    font-weight: 600;
}

.home-contact .form-control {
    width: 100%;
    height: auto;
    min-height: 2.75rem;
    margin: 0;
    padding: .6rem .75rem;
    border: 1px solid #aeb7c3;
    border-radius: .3rem;
    background: #fff;
    color: #26384f;
    font-size: 1rem;
    line-height: 1.45;
}

.home-contact textarea.form-control {
    min-height: 4.5rem;
    resize: vertical;
}

.home-contact .form-control:focus {
    border-color: #6352a0;
    box-shadow: 0 0 0 .2rem rgba(99, 82, 160, .2);
}

.home-contact-submit {
    margin-top: .875rem;
    padding: .65rem 1.1rem;
    border: 1px solid #204066;
    border-radius: .35rem;
    background: #204066;
    color: #fff;
    font-weight: 600;
}

.home-contact-submit:hover,
.home-contact-submit:focus {
    background: #152e4b;
    color: #fff;
}

.home-products .featured-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
}

@media (max-width: 767px) {
    .home-contact {
        padding-top: clamp(7rem, 30vw, 12rem);
    }

    .home-slider img {
        object-position: center top;
    }
}

@media (max-width: 575px) {
    .home-contact-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-contact-submit {
        width: 100%;
    }
}
