.row-ourservices {
    margin: 0 auto;
}

body:not(.home) main > div {
    margin-top: 200px;
}

@media (max-width: 768px) {
    body:not(.home) main > div {
        margin-top: 0;
    }
}

.ourservices-outer {
    width: 100%;
}

.ourservices-wrap {
    margin-bottom: 50px;
}

.ourservices-title-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    padding-left: 5%;
}

.ourservices-title-text span {
}

@media (max-width: 630px) {
    .ourservices-title-text {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.ourservices-title-text strong {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    display: block;
    color: #2d2f60;
}

.ourservices-title-text p {
    font-size: 16px;
    display: inline-block;
    color: #444444;
    text-align: left;
    padding: 0;
    margin: 0;
    max-width: 613px;
    z-index: 4;
    position: relative;
}

.ourservices-pictures {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    overflow: hidden;
}

.services-photo {
    width: 672px;
    height: 400px;
    border-radius: 24px;
    position: relative;
    background-position: center;
    background-color: #2d2f607a;
    background-blend-mode: overlay;
    background-position: center;
    background-size: auto 114%; 
    transition: background-size 0.2s ease;
    background-repeat: no-repeat;
}

.services-photo:hover {
    background-size: auto 119%;
}

.ourservices-texts {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.ourservices-text {
    width: 83%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ourservices-text span {
    font-size: 20px;
    color: #444444;
    font-weight: 600;
}

.ourservices-text li {
    font-size: 17px;
    color: #444444;
    font-weight: 400;
    margin: 20px 0;
    font-weight: 300;
}

.ourservices-inner {
    display: flex;
    flex-wrap: wrap;
    z-index: 4;
    position: relative;
}

.services-photo-text-wrap {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 45px;
    width: 100%;
    padding-bottom: 30px;
    padding-left: 50px;
    padding-right: 50px;
}

.services-photo-text-up {
    font-size: 40px;
    color: white;
    font-weight: 700;
    text-shadow: 0px 3px 6px #00000029;
    position: absolute;
    bottom: 116px;
    left: 58px;
    transition: 0.2s;
}

.services-photo-text-down {
    font-size: 30px;
    color: white;
    font-weight: 700;
    text-shadow: 0px 3px 6px #00000029;
    position: absolute;
    bottom: 25px;
    right: 58px;
    transition: 0.2s;
}

.services-photo-text-up:hover {
    transform: scale(1.05);
}

.services-photo-text-down:hover {
    transform: scale(1.05);
}

/* .services-photo-1 {
    background-image: url("/wp-content/uploads/2021/03/uslugi-ciecie-laserem-1.png");
    
}

.services-photo-2 {
    background-image: url("/wp-content/uploads/2021/03/uslugi-malowanie-proszkowe-2.png");
    background-color: #2d2f607a;
    background-blend-mode: overlay;
}

.services-photo-3 {
    background-image: url("/wp-content/uploads/2021/03/uslugi-giecie-3.png");
    background-color: #2d2f607a;
    background-blend-mode: overlay;
}

.services-photo-4 {
    background-image: url("/wp-content/uploads/2021/03/uslugi-ciecie-gilotyna-4.png");
    background-color: #2d2f607a;
    background-blend-mode: overlay;
}

.services-photo-5 {
    background-image: url("/wp-content/uploads/2021/03/uslugi-giecie-rur-5.png");
    background-color: #2d2f607a;
    background-blend-mode: overlay;
}

.services-photo-6 {
    background-image: url("/wp-content/uploads/2021/03/uslugi-pozostale-uslugi-6.png");
    background-color: #2d2f607a;
    background-blend-mode: overlay;
} */

.ourservices-button {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.ourservices-button2 {
    background-color: #2d2f60;
    width: 300px;
    height: 50px;
    border-radius: 21px;
    border: 0px;
    color: white;
    font-size: 17px;
    font-weight: 600;
}

.ourservices-button2:hover {
    border: 0px;
    background-color: #444444;
}

ul.dotsvg {
    list-style: none;
}

ul.dotsvg li::before {
    content: url(/wp-content/uploads/2021/03/li-icon.svg);
    margin-right: 20px;
    display: flex;
    align-items: center;
    position: relative;
    top: 4px;
}

ul.dotsvg li {
    display: flex;
}

a.serviceslink {
    color: white;
}

a.serviceslink:hover {
    text-decoration: none;
}

.extend {
    width: 100%;
    height: 100%;
}

@media (max-width: 1399px) {
    .ourservices-pictures {
        justify-content: space-evenly;
    }

    /* .services-photo {
        width: 47%;
    } */
}

.services-icons-wrap img {
    height: 60px;
}

@media (max-width: 480px) {
    .services-photo-text-up {
        left: 30px;
        font-size: 26px;
    }

    .services-photo {
        height: 330px;
    }

    .services-photo-text-down {
        font-size: 22px;
        right: 30px;
    }
}

.new-box {
    padding-top: 80px;
}

@media (max-width: 991px) {
    .new-box {
        padding-top: 40px;
    }
}

.new-box__outer {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.new-box__inner {
    width: 100%;
    max-width: 1240px;
}

.new-box__wrapper {
    /* display: flex;
    justify-content: space-between; */

    /* display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 16px; */

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0 16px;
    margin: 0 auto;
    /* max-width: 960px;  */
}

@media (max-width: 991px) {
    .new-box__wrapper {
        display: grid;
        gap: 16px;
    }
}

/* @media (max-width: 1100px) {
    .new-box__wrapper {
        display: grid;
        gap: 16px;
        grid-template-columns: none;
        justify-content: center;
    }
} */

.new-box__box-border {
    /* width: 350px; */
    width: 100%;
    max-width: 350px;
    min-width: 350px;
    /* height: 100%; */

    width: calc(33.333% - 16px); /* 3 kolumny */
    min-width: 280px;
}

@media (max-width: 1100px) {
    .new-box__box-border {
        width: calc(50% - 16px);
    }
}

@media (max-width: 991px) {
    .new-box__box-border {
        min-width: 100%;
    }
}

.new-box__box-wrapper {
    max-width: 350px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.new-box__box-top-border {
    padding: 20px;
    display: flex;
    justify-content: center;
    background-color: #24816c;
    color: white;
    width: 100%;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    /* height: 60px; */
}

.new-box__box-top {
    font-size: 20px;
    text-align: center;
}

.new-box__box-bottom-border {
    height: 100%;
    display: flex;
    height: 100%;
    padding: 30px 25px;
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.1),
        10px 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 30px 30px;
    /* min-height: 260px; */
    /* min-height: 350px; */

    /* kazdy box ma wysokosc poprzedniego */
    /* min-height: 260px; */
}

@media (max-width: 796px) {
    .new-box__box-bottom-border {
        min-height: 0;
    }
}

.new-box__box-bottom p {
    text-align: center;
}

.new-info {
    /* padding-top: 80px; */
    padding-top: 25px;
    z-index: 3;
    position: relative;
}

@media (max-width: 991px) {
    .new-info {
        padding-top: 40px;
    }
}

.new-info__outer {
    display: flex;
    justify-content: center;
}

.new-info__inner {
    width: 100%;
    max-width: 1240px;
}

.new-info__wrapper {
    padding: 0 16px;
    /* display: flex;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background-color: #24816c; */
}

.new-info__inside {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 50px 40px;
    background-color: #24816c;
    border-radius: 30px;
}

.new-info__txt {
    width: 100%;
    max-width: 970px;
}

.new-info__txt h4 {
    color: white;
    font-size: 32px;
    margin-bottom: 2rem;
}

.new-info__txt p {
    color: white;
    margin-bottom: 2rem;
}

.new-info__txt p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .new-info__txt h4 {
        margin-bottom: 1rem;
    }

    .new-info__txt p {
        margin-bottom: 1rem;
    }

    .new-box__inside {
        padding: 20px;
    }

    .new-info__txt p:last-of-type {
        margin-bottom: 0;
    }
}
