.Products {
    width: 100%;
    height: fit-content;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    display: inline-flex
}

.MainImage {
    height: 797px;
    background: white;

    justify-content: flex-start;
    align-self: stretch;
    align-items: flex-start;
    display: inline-flex
}

.ImageFrame {
    background-image: url(../media/banner2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;

    flex: 1 1 0;
    align-self: stretch;
    padding-left: 10px;
    padding-right: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: inline-flex;
}

.MainHeader {
    color: white;
    font-size: 80px;
    font-weight: 700;

    text-align: center;
    word-wrap: break-word
}

.Slide1 {
    align-self: stretch;
    padding: 100px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    gap: 30px;
    overflow: hidden;
}

.Slide2 {
    align-self: stretch;
    padding: 100px;
    background: #01285A;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    gap: 30px;
    overflow: hidden;
}

.textbox {
    width: 960px;
    height: fit-content;
    padding: 60px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.text-header {
    color: #01285A;
    font-weight: 600;
    text-align: center;
}

.text {
    flex: 1 1 0;
    text-align: center;
    color: #01285A;
    font-size: 30px;
    font-weight: 400;
    word-wrap: break-word;
}

.line-height {
    line-height: 200%;
}

/* Buttons */

.button-contacts {
    font-size: 30px;
    color: white;

    border-radius: 20px;
    padding: 1% 7% 1% 7%;

    background: #01285A;
    text-decoration: underline;
}

/* Carousel */

.carousel-height {
    height: 700px;
}
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel header */

.carousel-header {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    
    color: white;
    font-size: 80px;
    font-weight: 700;
}

/* MEDIA PROPERTIES */

@media only screen and (max-width: 740px) {
    .Slide1, .Slide2 {
        padding: 70px;
    }

    /* Text properties */

    .button-contacts {
        font-size: 27px;
    }
    .textbox {
        padding: 40px;
    }
    .text {
        font-size: 25px;
    }
}

@media only screen and (max-width: 500px) {
    .Slide1, .Slide2 {
        padding: 50px;
    }

    /* Text properties */

    .button-contacts {
        font-size: 23px;
        padding: 2% 9% 2% 9%;
    }
    .text {
        font-size: 20px;
    }
}

@media only screen and (max-width: 370px) {

    .Slide1, .Slide2 {
        padding-right: 20px;
        padding-left: 20px;
    }

    /* Text properties */

    .textbox {
        padding: 30px;
    }
    .carousel-header {
        font-size: 50px;
    }
}

/* Modern services page refresh */
.Products {
    display: flex;
    background: transparent;
}

.carousel {
    position: relative;
}

.carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(11, 31, 58, 0.8), rgba(11, 31, 58, 0.35) 56%, rgba(242, 159, 5, 0.16)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.36));
}

.carousel-inner {
    box-shadow: none;
}

.carousel-height {
    height: min(74vh, 700px);
    min-height: 520px;
}

.carousel-header {
    z-index: 2;
    top: 50%;
    left: clamp(24px, 8vw, 112px);
    max-width: min(760px, 84vw);
    transform: translateY(-50%);
    color: var(--white);
    font-size: clamp(52px, 8vw, 98px);
    line-height: 0.95;
    font-weight: 800;
    text-align: left;
}

.carousel-header::after {
    content: "";
    display: block;
    width: 92px;
    height: 6px;
    margin-top: 22px;
    border-radius: 8px;
    background: var(--accent);
}

.Slide1,
.Slide2 {
    width: 100%;
    padding: clamp(58px, 8vw, 112px) clamp(18px, 6vw, 96px);
    gap: clamp(24px, 4vw, 42px);
}

.Slide1 {
    background: #f8fafc;
}

.Slide2 {
    background:
        linear-gradient(135deg, rgba(47, 125, 90, 0.18), transparent 40%),
        var(--navy);
}

.textbox {
    width: min(100%, 1040px);
    padding: clamp(30px, 5.4vw, 66px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.text-header {
    margin: 0;
    color: var(--navy);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 800;
}

.text-header::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 8px;
    background: var(--accent);
}

.text {
    margin: 0;
    color: var(--text);
    font-size: clamp(18px, 2.3vw, 28px);
    line-height: 1.55;
}

.line-height {
    line-height: 1.8;
}

.button-contacts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 28px;
    border-radius: 8px;
    background: var(--accent);
    color: #201100;
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(242, 159, 5, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-contacts:hover {
    color: #201100;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(242, 159, 5, 0.34);
}

@media only screen and (max-width: 500px) {
    .carousel-height {
        min-height: 450px;
    }

    .carousel-header {
        left: 24px;
        font-size: clamp(42px, 15vw, 62px);
    }

    .Slide1,
    .Slide2 {
        padding: 46px 18px;
    }
}
