.support-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 72px auto 88px auto 72px;
    gap: 0 15px;
    background: var(--color-6);
    height: auto;
    min-height: 544px;
    margin-top: 64px;
}

.p-1 {
    display: none;
}

.s-pill {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

.s-pill img {
    position: absolute;
    top: 0;
    max-width: initial !important;
    width: calc(300% + 30px);
    height: 100% !important;
    object-fit: cover;
    max-width: none;
    pointer-events: none;
}

.p-2 img { left: 0; }
.p-3 img { left: calc(-100% - 15px); }
.p-4 img { left: calc(-200% - 30px); top: auto; bottom: 0; }

.p-2 { grid-area: 1 / 1 / 6 / 2; }
.p-3 { grid-area: 1 / 2 / 6 / 3; }
.p-4 { grid-area: 1 / 3 / 6 / 4; }

.s-text {
    background: var(--color-6);
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.s-text.t-2 {
    grid-area: 2 / 1 / 3 / 3;
    position: relative;
    z-index: 5;
    /*width: 125%;*/
    /*margin: 0;*/
    width: 112%;
    margin: -11% 32%;
    border-radius: 10px;
    padding: 24px;
}

.s-text.t-4 {
    grid-area: 4 / 1 / 5 / 4;
    position: relative;
    z-index: 5;
    width: 86%;
    margin: 0;
    border-radius: 0 10px 10px 0;
    padding: 22px 0 24px 25px;
}

.support-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    background: var(--color-6);
    z-index: 1;
}

.support-row-overlay{
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    background: var(--color-6);
    z-index: 1;
}

.support-bg-img {
    grid-area: 1 / 1 / 4 / 5;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.support-window {
    border: 12px solid var(--color-6);
    border-radius: 32px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
}

.w-1 { grid-area: 1 / 1 / 4 / 2; }
.w-2 { grid-area: 1 / 2 / 3 / 3; }
.w-3 { grid-area: 1 / 3 / 4 / 4; }
.w-4 { grid-area: 2 / 4 / 4 / 5; }

.support-description {
    grid-area: 3 / 2 / 4 / 3;
    background: var(--color-6);
    padding: 16px 24px;
    z-index: 2;
    display: flex;
    align-items: center;
}

.support-description-2 {
    grid-area: 1 / 4 / 2 / 5;
    background: var(--color-6);
    padding: 16px 24px;
    z-index: 2;
    display: flex;
    align-items: center;
}

@media (min-width: 769px) {
    .support-wrap {
        grid-template-rows: repeat(3, 1fr);
        height: 473px;
        min-height: auto;
    }

    .s-pill img {
        height: 550px !important;
    }

    .p-2 { grid-area: 1 / 1 / 3 / 2; }
    .p-3 { grid-area: 1 / 2 / 4 / 3; }
    .p-4 { grid-area: 2 / 3 / 4 / 4; }

    .s-text.t-2 {
        grid-area: 3 / 1 / 4 / 2;
        width: calc(100% + 40px);
        margin: 0;
        border-radius: 0;
        border-top-right-radius: 20px;
        padding: 26px 24px 26px 0;
        min-height: 183px;
    }

    .s-text.t-4 {
        grid-area: 1 / 3 / 2 / 4;
        margin: 0 0 0 -40px;
        width: calc(100% + 40px);
        border-radius: 0;
        border-bottom-left-radius: 20px;
        padding: 23px 16px 24px 25px;
    }
}

@media (min-width: 992px) {
    .support-wrap {
        min-height: 549px;
        grid-template-columns: repeat(4, 1fr);
    }

    .p-1 {
        display: block;
        grid-area: 1 / 1 / 4 / 2;
    }

    .p-1 img {
        left: 0;
    }

    .s-pill img {
        width: calc(400% + 72px);
    }

    .p-2 img { left: calc(-100% - 24px); }
    .p-3 img { left: calc(-200% - 48px); }
    .p-4 img { left: calc(-300% - 72px); }

    .p-2 { grid-area: 1 / 2 / 3 / 3; }
    .t-2 { grid-area: 3 / 2 / 4 / 3; }
    .p-3 { grid-area: 1 / 3 / 4 / 4; }
    .t-4 { grid-area: 1 / 4 / 2 / 5; }
    .p-4 { grid-area: 2 / 4 / 4 / 5; }

    .support-wrap .s-text {
        width: 100%;
        padding: 0 24px;
        border-radius: 0;
    }

    .s-text.t-2 {
        grid-area: 3 / 2 / 4 / 2;
    }

    .s-text.t-4 {
        margin-left: 0;
        grid-area: 1 / 4 / 2 / 4;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .s-text.t-2::before {
        content: "";
        display: block;
        width: 20px;
        height: 20px;
        position: absolute;
        right: -20px;
        bottom: 0;
        box-shadow: -10px 10px 0 0 #02273e;
        border-radius: 50%;
        z-index: 2;
    }

    .s-text.t-4::before {
        content: "";
        display: block;
        width: 20px;
        height: 20px;
        position: absolute;
        top: 0px;
        left: -20px;
        box-shadow: 10px -10px 0 0 #02273e;
        border-radius: 50%;
        z-index: 2;
    }
}

@media (max-width: 767px) {
    .s-text::before,
    .s-text::after,
    .curved-corner::before,
    .curved-corner::after {
        content: "";
        position: absolute;
        display: block;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        z-index: 2;
    }

    .s-text::before,
    .curved-corner-1::before,
    .curved-corner-2::before,
    .curved-corner-1::after,
    .curved-corner-2::after {
        top: -20px;
    }

    .s-text::after,
    .curved-corner-3::before,
    .curved-corner-4::before,
    .curved-corner-3::after,
    .curved-corner-4::after {
        bottom: -20px;
    }


    .s-text.t-2::before,
    .curved-corner-1::before,
    .curved-corner-2::before {
        box-shadow: -10px 10px 0 0 var(--color-6);
    }

    .s-text.t-2::after,
    .curved-corner-3::before,
    .curved-corner-4::before {
        box-shadow: -10px -10px 0 0 var(--color-6);
    }

    .s-text.t-4::before,
    .curved-corner-1::after,
    .curved-corner-2::after,
    .curved-corner-3::after {
        box-shadow: 10px 10px 0 0 var(--color-6);
    }

    .s-text.t-4::after,
    .curved-corner-3::after,
    .curved-corner-4::after {
        box-shadow: 10px -10px 0 0 var(--color-6);
    }

    .s-text.t-2::before,
    .s-text.t-2::after {
        display: none;
    }

    .s-text.t-2 .curved-corner-1::before,
    .s-text.t-2 .curved-corner-3::before {
        left: auto;
        right: calc(82% - 20px);
    }

    .s-text.t-2 .curved-corner-1::after,
    .s-text.t-2 .curved-corner-3::after {
        right: auto;
        left: calc(16% - 27.5px);
    }

    .s-text.t-2 .curved-corner-2::before,
    .s-text.t-2 .curved-corner-4::before {
        right: auto;
        left: calc(60% + 16.5px);
    }

    .s-text.t-2 .curved-corner-2::after,
    .s-text.t-2 .curved-corner-4::after {
        right: auto;
        left: calc(61% - 21px);
    }

    .s-text.t-4 .curved-corner-1::before,
    .s-text.t-4 .curved-corner-3::before {
        right: auto;
        left: 0;
    }

    .s-text.t-4 .curved-corner-1::after,
    .s-text.t-4 .curved-corner-3::after {
        left: auto;
        right: calc(62% + 6px);
    }

    .s-text.t-4 .curved-corner-2::before,
    .s-text.t-4 .curved-corner-4::before {
        left: auto;
        right: calc(62% - 27.5px);
    }

    .s-text.t-4 .curved-corner-2::after,
    .s-text.t-4 .curved-corner-4::after {
        left: auto;
        right: calc(25% - 7.5px);
    }

    .s-text.t-4::before,
    .s-text.t-4::after {
        left: auto;
        right: calc(21% - 20px);

    }

    .s-text.t-4::before {
        box-shadow: -10px 10px 0 0 var(--color-6);
    }

    .s-text.t-4::after {
        box-shadow: -10px -10px 0 0 var(--color-6);
    }
}