.Contacts {
    width: 100%;
    height: fit-content;

    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

.MainImage {
    background: white;
    height: 797px;
    
    justify-content: flex-start;
    align-items: flex-start; 
    display: inline-flex;
    align-self: stretch;
}

.ImageFrame {
    background-image: url(../media/banner3.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
}

.Content {
    align-items: center;
    align-self: stretch;

    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
}

.Slide1 {
    background: #BDBDBD;
    justify-content: center;
    
    height: fit-content;

    padding-left: 10px;
    padding-right: 10px;

    display: inline-flex;
    align-items: flex-end;
    align-self: stretch;

    overflow: hidden;
}

.Container1 {
    background: #01285A;

    width: 814px;
    height: fit-content;

    padding: 40px 20px 40px 20px;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    gap: 50px;
}

.Text1 {
    color: white;
    width: 274px;

    font-size: 30px;
    font-weight: 400;
    text-align: center;

    word-wrap: break-word;
}

.Slide2 {
    background: #BDBDBD;
    justify-content: center;

    padding-left: 10px;
    padding-right: 10px;

    height: fit-content;

    display: inline-flex;
    
    padding-top: 100px;
    padding-bottom: 20px;
    
    align-items: flex-start;
    align-self: stretch;

    overflow: hidden;
}

.Slide3 {
    background: #BDBDBD;
    justify-content: center;

    padding-left: 10px;
    padding-right: 10px;

    height: fit-content;

    display: inline-flex;
    
    padding-top: 20px;
    padding-bottom: 100px;
    
    align-items: flex-start;
    align-self: stretch;

    overflow: hidden;
}

.Container2 {
    background: white;

    width: 814px;
    height: fit-content;

    padding: 40px 20px 40px 20px;
    border-radius: 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.Text2 {
    color: #01285A;
    width: 528px;

    font-size: 30px;
    font-weight: 400;
    text-align: center;

    word-wrap: break-word
}

/* 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: 500px) {
    .Container1 {
        gap: 30px;
    }
    
    /* Text properties*/

    .carousel-header {
        font-size: 60px;
    }

    .Text1, .Text2 {
        font-size: 20px;
    }
}

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

    /* Text properties */

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

/* Modern contacts page refresh */
.Contacts {
    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(47, 125, 90, 0.24)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.36));
}

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

.carousel-height {
    height: min(70vh, 660px);
    min-height: 500px;
}

.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);
}

.Content {
    width: 100%;
    background:
        radial-gradient(circle at bottom right, rgba(47, 125, 90, 0.14), transparent 28rem),
        #f8fafc;
}

.Slide1,
.Slide2,
.Slide3 {
    width: 100%;
    padding: clamp(18px, 3vw, 28px) clamp(18px, 6vw, 96px);
    background: transparent;
}

.Slide2 {
    padding-top: clamp(58px, 8vw, 112px);
}

.Slide3 {
    padding-bottom: clamp(58px, 8vw, 112px);
}

.Container1,
.Container2 {
    width: min(100%, 980px);
    padding: clamp(30px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.Container1 {
    background:
        linear-gradient(135deg, rgba(242, 159, 5, 0.16), transparent 46%),
        var(--navy);
}

.Container2 {
    background: rgba(255, 255, 255, 0.96);
}

.Text1,
.Text2 {
    width: auto;
    max-width: 760px;
    margin: 0;
    font-size: clamp(20px, 2.7vw, 32px);
    line-height: 1.45;
}

.Text2 {
    color: var(--text);
}

.ContactLink {
    color: inherit;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.ContactLink:hover {
    color: var(--accent);
}

.MapSection {
    width: min(1180px, calc(100% - 36px));
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.4fr);
    gap: 1px;
    margin: 0 auto clamp(58px, 8vw, 112px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
    box-shadow: var(--shadow);
}

.MapInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: clamp(30px, 5vw, 58px);
    background:
        linear-gradient(135deg, rgba(242, 159, 5, 0.16), transparent 48%),
        var(--navy);
    color: var(--white);
}

.MapEyebrow {
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 800;
}

.MapTitle {
    margin: 0;
    color: var(--white);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 800;
}

.MapTitle::after {
    content: "";
    display: block;
    width: 74px;
    height: 5px;
    margin-top: 16px;
    border-radius: 8px;
    background: var(--accent);
}

.MapText {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.MapActions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.MapButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.MapButton:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.MapButtonPrimary {
    background: var(--accent);
    color: #201100;
    box-shadow: 0 14px 30px rgba(242, 159, 5, 0.26);
}

.MapButtonPrimary:hover {
    background: #ffb323;
    color: #201100;
}

.MapButtonSecondary {
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.MapButtonSecondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.MapFrame {
    min-height: 430px;
    background: var(--white);
}

.MapFrame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
}

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

    .carousel-header {
        left: 24px;
        font-size: clamp(40px, 14vw, 58px);
    }

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

    .MapSection {
        width: calc(100% - 36px);
        grid-template-columns: 1fr;
        margin-bottom: 58px;
    }

    .MapActions {
        flex-direction: column;
    }

    .MapButton {
        width: 100%;
    }

    .MapFrame,
    .MapFrame iframe {
        min-height: 340px;
    }
}

@media only screen and (min-width: 501px) and (max-width: 880px) {
    .MapSection {
        grid-template-columns: 1fr;
    }

    .MapFrame,
    .MapFrame iframe {
        min-height: 380px;
    }
}
