@media only screen and (max-width: 768px) {
    .contact .contact__detail {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }


    .contact {
        width: 100%;
        max-width: 1441px;
        margin: 0 auto 2rem;
    }


    .contact .contact__list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 1441px;
        margin: 0 auto;
        background: #000;
        border-radius: 4px;
        padding: 5rem;
    }


    .contact .contact__list .contact__detail h2 {
        font-size: 12pt;
        font-weight: 600;
        color: #fff;
        text-align: center;
        text-transform: uppercase;
        margin-bottom: 10px;
    }


    .contact .contact__list .contact__detail a,
    .contact .contact__list .contact__detail p {
        font-size: 12pt;
        font-weight: 400;
        color: #fff;
        text-align: center;
        display: block;
    }


    .contact .contact__list .contact__detail a {
        color: var(--color-primary);
    }


    .contact:nth-of-type(1) {
        background: #000;
        padding-top: 2rem;
    }


    .contact:nth-of-type(1) .contact__text h2,
    .contact:nth-of-type(1) .contact__text p {
        color: #fff;
        text-align: center;
        margin: 0 auto;
        max-width: 80%;
    }


    .contact:nth-of-type(1) .contact__text h2 {
        font-size: 26pt;
        font-weight: 400;
        color: #fff;
        margin-top: 5rem;
        margin-bottom: 2rem;
    }


    .contact:nth-of-type(1) .contact__text p {
        font-size: 12pt;
        font-weight: 400;
        color: #fff;
        margin-bottom: 1rem;
    }


    .contact:nth-of-type(1) .contact__list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .contact:nth-of-type(1) .contact__list .contact__detail:nth-of-type(2) {
        background: var(--color-primary);
        border-radius: 5px;
        padding: 8rem 5rem;
    }


    .contact:nth-of-type(1) .contact__list .contact__detail:nth-of-type(2) h2 {
        font-size: 12pt;
        font-weight: 600;
        color: #fff;
        text-align: center;
    }


    .contact:nth-of-type(1) .contact__list .contact__detail:nth-of-type(2) p {
        font-size: 12pt;
        font-weight: 600;
        color: #fff;
        text-align: center;
    }


    .contact:nth-of-type(2) {
        background: #fff;
    }


    .contact:nth-of-type(2) .contact__list {
        background: #fff;
        padding: 0;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail {
        color: #000;
        background: transparent;
        border: 1px solid #000;
        padding: 4rem 4rem 0 4rem;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail img {
        max-width: 300px;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(1) {
        -webkit-order: 1;
        -ms-flex-order: 1;
        order: 1;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(5) {
        -webkit-order: 2;
        -ms-flex-order: 2;
        order: 2;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(2) {
        -webkit-order: 3;
        -ms-flex-order: 3;
        order: 3;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(6) {
        -webkit-order: 4;
        -ms-flex-order: 4;
        order: 4;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(3) {
        -webkit-order: 5;
        -ms-flex-order: 5;
        order: 5;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(7) {
        -webkit-order: 6;
        -ms-flex-order: 6;
        order: 6;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(4) {
        -webkit-order: 7;
        -ms-flex-order: 7;
        order: 7;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(8) {
        -webkit-order: 8;
        -ms-flex-order: 8;
        order: 8;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(5),
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(6),
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(7),
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(8) {
        background: #000;
        margin-bottom: 2rem;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(4) h2,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(4) p,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(4) a,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(5) h2,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(5) p,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(5) a,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(6) h2,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(6) p,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-of-type(6) a {
        color: #fff !important;
    }


    .contact:nth-of-type(3) {
        color: #fff;
        background: #000;
        padding: 4rem;
    }


    .contact:nth-of-type(3) .contact__text {
        color: #fff;
        text-align: center;
        background: #000;
    }


    .in-sluzby .item,
    .in-szolgaltatasok .item {
        padding: 0;
        margin-bottom: 4rem;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 4rem;
        margin-bottom: 2rem;
    }


    .in-sluzby .item .item__category,
    .in-szolgaltatasok .item .item__category {
        background: url(https://www.procarosa.hu/user/documents/upload/temp/textBlock/textBanner.png);
        position: relative;
        min-height: auto;
        padding: 4rem;
        border-radius: 10px;
    }


    .in-sluzby .item .item__category h2,
    .in-szolgaltatasok .item .item__category h2 {
        font-size: 30px;
        font-weight: 500;
        color: white;
        text-align: center;
        margin-bottom: 4rem;
    }


    .in-sluzby .item .item__category a.full__screen,
    .in-szolgaltatasok .item .item__category a.full__screen {
        display: none;
        /*
            width: 100%;
        height: 100%;
        z-index: 9;
        */
    }


    .in-sluzby .item .item__category a.more,
    .in-szolgaltatasok .item .item__category a.more {
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content;
        height: auto;
        color: #ffffff;
        background: #239ceb;
        margin: 0 auto 5rem;
        padding: 15px 30px;
        border: #239ceb;
        border-radius: 5px;
        display: block;
    }


    .in-sluzby .item .item__category a.more:hover,
    .in-szolgaltatasok .item .item__category a.more:hover {
        color: #239ceb;
        background: #ffffff;
        border: #ffffff;
    }


    .in-sluzby .item .item__category p,
    .in-szolgaltatasok .item .item__category p {
        font-size: 13pt;
        line-height: 3rem;
        color: #fff;
    }
}


@media only screen and (min-width: 768px) and (max-width: 1440px) {
    .contact .contact__detail {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }


    .contact {
        width: 100%;
        max-width: 1441px;
        margin: 0 auto 2rem;
    }


    .contact .contact__list {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
        max-width: 1441px;
        margin: 0 auto;
        background: #000;
        border-radius: 4px;
        padding: 5rem;
    }


    .contact .contact__list .contact__detail h2 {
        font-size: 12pt;
        font-weight: 600;
        color: #fff;
        text-align: center;
        text-transform: uppercase;
        margin-bottom: 10px;
    }


    .contact .contact__list .contact__detail a,
    .contact .contact__list .contact__detail p {
        font-size: 12pt;
        font-weight: 400;
        color: #fff;
        text-align: center;
        display: block;
    }


    .contact .contact__list .contact__detail a {
        color: var(--color-primary);
    }


    .contact:nth-of-type(1) {
        background: #000;
        padding-top: 2rem;
    }


    .contact:nth-of-type(1) .contact__text h2,
    .contact:nth-of-type(1) .contact__text p {
        color: #fff;
        text-align: center;
        margin: 0 auto;
        max-width: 80%;
    }


    .contact:nth-of-type(1) .contact__text h2 {
        font-size: 26pt;
        font-weight: 400;
        color: #fff;
        margin-top: 5rem;
        margin-bottom: 2rem;
    }


    .contact:nth-of-type(1) .contact__text p {
        font-size: 12pt;
        font-weight: 400;
        color: #fff;
        margin-bottom: 1rem;
    }


    .contact:nth-of-type(1) .contact__list .contact__detail:nth-of-type(2) {
        background: var(--color-primary);
        border-radius: 5px;
        padding: 8rem 5rem;
    }


    .contact:nth-of-type(1) .contact__list .contact__detail:nth-of-type(2) h2 {
        font-size: 12pt;
        font-weight: 600;
        color: #fff;
        text-align: center;
    }


    .contact:nth-of-type(1) .contact__list .contact__detail:nth-of-type(2) p {
        font-size: 12pt;
        font-weight: 600;
        color: #fff;
        text-align: center;
    }


    .contact:nth-of-type(2) {
        background: #fff;
    }


    .contact:nth-of-type(2) .contact__list {
        display: grid;
        grid-template-columns: repeat(4, 25%);
        gap: 2rem;
        max-width: 1441px;
        background: #fff;
        margin: 0 auto;
        padding: 5rem;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail {
        background: #000;
        padding: 4rem 4rem 0 4rem;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail img {
        max-width: 300px;
    }


    .contact:nth-of-type(3) {
        color: #fff;
        background: #000;
        padding: 4rem;
    }


    .contact:nth-of-type(3) .contact__text {
        color: #fff;
        text-align: center;
        background: #000;
    }


    .in-szolgaltatasok .item {
        padding: 0;
        margin-bottom: 4rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
        margin-bottom: 2rem;
    }


    .in-szolgaltatasok .item .item__category {
        background: url(https://www.procarosa.hu/user/documents/upload/temp/textBlock/textBanner.png);
        position: relative;
        min-height: 330px;
        padding: 4rem;
        border-radius: 10px;
    }


    .in-szolgaltatasok .item .item__category h2 {
        font-size: 30px;
        font-weight: 500;
        color: white;
        text-align: center;
        margin-bottom: 4rem;
    }


    .in-szolgaltatasok .item .item__category a.full__screen {
        display: none;
        /*
        position: absolute;
        top: 0;
        left: 0;

        width: 100%;
        height: 100%;
        z-index: 9;
        */
    }


    .in-szolgaltatasok .item .item__category a.more {
        position: absolute;
        top: auto;
        left: 50%;
        bottom: 10%;
        -webkit-transform: translate(-50%, 0%);
        transform: translate(-50%, 0%);
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content;
        height: auto;
        color: #ffffff;
        background: #239ceb;
        padding: 15px 30px;
        border: #239ceb;
        border-radius: 5px;
    }


    .in-szolgaltatasok .item .item__category a.more:hover {
        color: #239ceb;
        background: #ffffff;
        border: #ffffff;
    }


    .in-szolgaltatasok .item .item__category p {
        font-size: 13pt;
        line-height: 3rem;
        color: #fff;
    }
}


@media only screen and (min-width: 1440px) {
    .contact .contact__detail {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }


    .contact {
        width: 100%;
        max-width: 1441px;
        margin: 0 auto 2rem;
    }


    .contact .contact__list {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
        max-width: 1441px;
        margin: 0 auto;
        background: #000;
        border-radius: 4px;
        padding: 5rem;
    }


    .contact .contact__list .contact__detail h2 {
        font-size: 12pt;
        font-weight: 600;
        color: #fff;
        text-align: center;
        line-height: 2.5rem;
        text-transform: uppercase;
        margin-bottom: 10px;
    }


    .contact .contact__list .contact__detail a,
    .contact .contact__list .contact__detail p {
        font-size: 12pt;
        font-weight: 400;
        color: #fff;
        text-align: center;
        display: block;
    }


    .contact .contact__list .contact__detail a {
        color: var(--color-primary);
    }


    .contact:nth-of-type(1) {
        background: #000;
        padding-top: 2rem;
    }


    .contact:nth-of-type(1) .contact__text h2,
    .contact:nth-of-type(1) .contact__text p {
        color: #fff;
        text-align: center;
        margin: 0 auto;
        max-width: 80%;
    }


    .contact:nth-of-type(1) .contact__text h2 {
        font-size: 26pt;
        font-weight: 400;
        color: #fff;
        line-height: 2.5rem;
        margin-top: 5rem;
        margin-bottom: 2rem;
    }


    .contact:nth-of-type(1) .contact__text p {
        font-size: 12pt;
        font-weight: 400;
        color: #fff;
        margin-bottom: 1rem;
    }


    .contact:nth-of-type(1) .contact__list .contact__detail:nth-of-type(2) {
        background: var(--color-primary);
        border-radius: 5px;
        padding: 2rem;
    }


    .contact:nth-of-type(1) .contact__list .contact__detail:nth-of-type(2) h2 {
        font-size: 12pt;
        font-weight: 600;
        color: #fff;
        line-height: 2.5rem;
        text-align: center;
    }


    .contact:nth-of-type(1) .contact__list .contact__detail:nth-of-type(2) p {
        font-size: 12pt;
        font-weight: 400;
        color: #fff;
        text-align: center;
    }


    .contact:nth-of-type(2) {
        background: #fff;
    }


    .contact:nth-of-type(2) .contact__list {
        display: grid;
        grid-template-columns: repeat(4, 25%);
        gap: 2rem;
        max-width: 1441px;
        background: #fff;
        margin: 0 auto;
        padding: 5rem;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail {
        color: #000;
        background: #fff;
        padding: 4rem 4rem 0 4rem;
        border: 1px solid #000;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail h2 {
        color: #000;
        font-size: 18pt;
        min-height: 80px;
        margin: 0 0 10px 0;
        padding: 0;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail p,
    .contact:nth-of-type(2) .contact__list .contact__detail a {
        color: #000;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail a {
        color: var(--color-primary);
        text-decoration: underline;
        line-height: normal;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail img {
        max-width: 300px;
    }


    .contact:nth-of-type(2) .contact__list .contact__detail:nth-last-of-type(1),
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-last-of-type(2),
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-last-of-type(3),
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-last-of-type(4) {
        color: #fff;
        background: #000;
    }


    .contact:nth-of-type(2)
    .contact__list
    .contact__detail:nth-last-of-type(4)
    h2,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-last-of-type(4) p,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-last-of-type(4) a,
    .contact:nth-of-type(2)
    .contact__list
    .contact__detail:nth-last-of-type(3)
    h2,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-last-of-type(3) p,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-last-of-type(3) a,
    .contact:nth-of-type(2)
    .contact__list
    .contact__detail:nth-last-of-type(2)
    h2,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-last-of-type(2) p,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-last-of-type(2) a,
    .contact:nth-of-type(2)
    .contact__list
    .contact__detail:nth-last-of-type(1)
    h2,
    .contact:nth-of-type(2) .contact__list .contact__detail:nth-last-of-type(1) p,
    .contact:nth-of-type(2)
    .contact__list
    .contact__detail:nth-last-of-type(1)
    a {
        color: #fff;
        line-height: normal;
    }


    .contact:nth-of-type(3) {
        color: #fff;
        background: #000;
        padding: 4rem;
    }


    .contact:nth-of-type(3) .contact__text {
        color: #fff;
        text-align: center;
        background: #000;
    }


    .in-szolgaltatasok .item {
        padding: 0;
        margin-bottom: 4rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }


    .in-szolgaltatasok .item .item__category {
        background: url(https://www.procarosa.hu/user/documents/upload/temp/textBlock/textBanner.png);
        position: relative;
        min-height: 330px;
        padding: 4rem;
        border-radius: 10px;
    }


    .in-szolgaltatasok .item .item__category h2 {
        font-size: 30px;
        font-weight: 500;
        color: white;
        text-align: center;
        margin-bottom: 4rem;
    }


    .in-szolgaltatasok .item .item__category a.full__screen {
        display: none;
        /*
        position: absolute;
        top: 0;
        left: 0;

        width: 100%;
        height: 100%;
        z-index: 9;
        */
    }


    .in-szolgaltatasok .item .item__category a.more {
        position: absolute;
        top: auto;
        left: 50%;
        bottom: 10%;
        -webkit-transform: translate(-50%, 0%);
        transform: translate(-50%, 0%);
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content;
        height: auto;
        color: #ffffff;
        background: #239ceb;
        padding: 15px 30px;
        border: #239ceb;
        border-radius: 5px;
    }


    .in-szolgaltatasok .item .item__category a.more:hover {
        color: #239ceb;
        background: #ffffff;
        border: #ffffff;
    }


    .in-szolgaltatasok .item .item__category p {
        font-size: 13pt;
        line-height: 3rem;
        color: #fff;
    }
}
