/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core body defaults */
body {
    max-width: 2000px;
    min-height: 100vh;
    line-height: 1.5;
    margin: 0 auto;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}


@font-face {
    font-family: Montserrat;
    src: url('fonts/Montserrat-VariableFont_wght.ttf');
    font-display: block;
}

/* site */
:root {
    --red-color: #E5222E;
    --grey-color: #433F3D;
    --off-white: #f2f2f2;
}


* {
    color: var(--grey-color);
    font-family: Montserrat;
}

.site-main, .site {
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.button {
    display: flex;
    align-items: center;
    background-color: var(--red-color);
    border: 4px solid white;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    padding: 0.625rem 1.125rem;
    position: relative;
    top:0;
    transition: all ease 0.5s;
}

.button:hover {
    top: -10px;
}

.banner {
    background: url("img/neissbau_header_1920x1080_d.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    padding-top: 6rem;
    padding-bottom: 8rem;
    margin-top: 115px;
    position: relative;
}

.title {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 48px;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.banner-block {
    max-width: 55%;
    display: flex;
    flex-direction: column;
}

.button-block {
    display: flex;
    gap: 1rem;
}

.banner-block .title {
    margin-bottom: 1.5rem;
}

.banner-block p {
    margin-bottom: 3rem;
}

.banner-block .button-block .button {
    background-color: var(--grey-color);
    border-color: var(--grey-color);
}

.banner-block .button-block .cta {
    background-color: var(--red-color);
    border-color: var(--red-color);
}

.pros {
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.pros-block {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

.single-pro {
    width: 300px;
    background: white;
    box-shadow: -4px -4px 10px #f2f2f2,
    4px -4px 10px #f2f2f2;
    border-bottom: 10px solid var(--red-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
}

.single-pro img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.single-pro h4 {
    font-weight: bold;
    text-transform: uppercase;
}

.intro {
    background: url("img/neissbau_1920x1080_a_red.jpg");
    background-size: cover;
    background-position: bottom;
}

.intro-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 6rem;
    text-align: center;
    max-width: 60%;
    margin: 0 auto;
}

.intro-block p {
    color: white;
}

.intro-block .title {
    color: white;
    margin: 1.875rem 0;
}

.intro-block .button-block {
    margin-top: 4rem;
}

.services-block {
    display: flex;
    flex-direction: column;
    padding-top: 4rem;
    padding-bottom: 6rem;
    align-items: center;
}

.services-text {
    text-align: center;
    max-width: 60%;
}

.services-text h2 {
    margin-bottom: 2rem;
}

.services-text h4 {
    margin-bottom: 1rem;
    color: var(--red-color)
}

.services-with-image {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 6rem;
    width: 100%;
    justify-content: center;
}

.single-service {
    width: 510px;
    box-shadow: -4px -4px 10px #f2f2f2,
    4px -4px 10px #f2f2f2;
    border-bottom: 10px solid var(--grey-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    text-align: center;
}

.single-service .title {
    margin-bottom: 1.5rem;
}

.single-service img {
    width: 80px;
    height: 80px;
}

.team {
    background: url("img/neissbau_1920x1080_d_BG_ONLY_red.jpg");
    background-size: cover;
    background-position: bottom;
    position: relative;
}

.banner-img {
    position: absolute;
    height: 300px;
    bottom: 23%;
    right: 13%;
}

.team-img {
    position: absolute;
    height: 600px;
    bottom: 0;
    right: 0;
}

.team-block {
    max-width: 650px;
    margin-right: auto;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.team-block h3 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
}

.team-block p {
    color: white;
    margin-top: 1.5rem;
}

.about-us {
    position: relative;
    padding-top: 12.5rem;
    padding-bottom: 7.5rem;
}

.about-us .pros-block {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translate(-50%, 0);
}


.about-us .title {
    text-align: center;
    margin-bottom: 4rem;
}

.about-us p {
    text-align: center;
    max-width: 80%;
    margin: 0 auto 1.5rem;
}

.about-us-team {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.25rem;
}

.single-person {
    display: flex;
    flex-direction: column;
    width: 300px;
    padding: 1.25rem;
    background: white;
    box-shadow: -4px -4px 10px #f2f2f2, 4px -4px 10px #f2f2f2;
    border-bottom: 10px solid var(--red-color);
}

.single-person img {
    max-height: 240px;
    object-fit: cover;
}

.name {
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 1rem;
    text-align: center;
}

.references {
    background-color: var(--grey-color);
    padding-top: 4rem;
}

.references .container {
    position: relative;
    padding-bottom: 5rem;
}

.references .title {
    color: white;
}

.references-block {
    display: flex;
}

.reference-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.reference-text .button {
    margin-top: auto;
}


.reference-text h4 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
}

.reference-text h5 {
    color: var(--red-color);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.references.white {
    background-color: white;
}

.references.white a {
    text-decoration: none;
}

.references.white p, .references.white h4 {
    color: black;
}

.reference-content p {
    padding-bottom: 2rem;
    border-bottom: solid 4px var(--red-color);
}


.articles {
    padding-top: 6rem;
    padding-bottom: 7.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
}

.single-article {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.single-article img {
    height: 320px;
    width: 100%;
    object-fit: cover;
}

.article-card {
    padding: 1rem 1.25rem;
    border-bottom: 10px solid var(--red-color);
    background-color: #f2f2f2;
    flex-grow: 1;
}

.article-date {
    color: var(--red-color);
    font-size: 1rem;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.reference .container {
    display: flex;
    gap: 7.5rem;
}

.reference .container .foogallery {
    width: 50%;
}

.reference-content {
    width: calc(50% - 7.5rem);
}

.reference-content h5 {
    margin: 0;
    color: var(--red-color);
}

.reference-content h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.subpage.reference {
    padding-top: 10rem;
    padding-bottom: 7.5rem;
}

/* slider */

.swiper .swiper-wrapper, .swiper-ref .swiper-wrapper {
    padding-left: 25%; /* visual offset */
    box-sizing: content-box;
}

.swiper, .swiper-ref {
    overflow: visible;
}

.swiper-slide-prev {
    transition: opacity 1s ease;
}

.references .swiper-slide-prev {
    opacity: 0;
}

.swiper-image img {
    aspect-ratio: 17 / 12;
    height: auto;
    object-fit: cover;
    border-bottom: 10px solid var(--red-color);
    margin-bottom: 1.5rem;
}

.swiper-image h5 {
    color: var(--red-color);
    font-size: 0.75rem;
    text-transform: lowercase;
}

.swiper-image h4 {
    color: white;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.swiper-image p {
    color: white;
}

.swiper, .swiper-ref {
    position: revert !important;
}

.swiper-button-prev,
.swiper-button-next {
    width: 44px !important;
    height: 44px !important;
    position: revert !important;
}

.swiper-button-prev {
    background-color: white;
}

.swiper-button-next {
    background-color: var(--red-color);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 1rem !important;
    padding: 0.5rem 0.75rem;
    width: 44px;
    text-align: center;
}


.swiper-button-prev:after {
    color: var(--grey-color);
    background-color: white;
}

.swiper-button-next:after {
    color: white;
}

.swiper-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row-reverse;
}


/* slider done end */

.reviews {
    padding-top: 5rem;
    padding-bottom: 9rem;
}

.reviews-block {
    display: flex;
    flex-direction: column;
}

.reviews-block .title {
    text-align: center;
    margin-bottom: 2rem;
}

.review-swiper {
    width: 60%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}


.review-card {
    display: flex;
    flex-direction: row;
    padding: 1.5rem 2.5rem;
    background: #f2f2f2;
    border-bottom: 10px solid var(--red-color);
    min-height: 240px;
}

.review-text p {
    text-align: center;
}

.review-text .review-by {
    text-align: right;
    font-style: italic;
}

.review-icon {
    font-size: 6rem;
    font-style: italic;
    font-weight: 900;
    color: var(--red-color);
    padding-right: 14px;
    line-height: 0.75;
}

.swiper-pagination {
    position: revert !important;
    margin: 2rem auto 0;
    transform: revert;
}

.swiper-pagination-bullet {
    width: 20px !important;
    height: 20px !important;
}

.site-footer {
    background-color: var(--red-color);
    padding-top: 4rem;
    padding-bottom: 6.75rem;
}

.footer-bar {
    height: 2rem;
    width: 100%;
    background-color: black;
}

.footer-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.footer-block {
    display: flex;
    gap: 6rem;
}

.footer-block > img {
    width: 150px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.single-footer-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1.5rem;
}

.single-footer-contact a {
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.single-footer-contact > img {
    width: 15px;
    height: 15px;
    margin-right: 1rem;
}

.footer-cta p {
    color: white;
    margin-bottom: 2rem;
}

.footer-bar p {
    color: white;
    text-align: right;
    font-size: 0.75rem;
}

.header-bar {
    background-color: var(--grey-color);;
    height: 50px;
}

.header-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.header-contact {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 7.5rem;
}

.contact-block {
    display: flex;
    gap: 2rem;
}

.single-header-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.single-header-contact img {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

.single-header-contact a {
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-decoration: none;
}

.header-social {
    display: flex;
    flex-direction: row;
    gap: 1.875rem;
    align-items: center;
}

.header-social img {
    width: 30px;
    height: 30px;
}
.main-navigation{
    position: fixed;
    top: 0;
    z-index: 10001;
    background: white;
    width: 100%;
}


.main-navigation-container .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.custom-logo-link {
    margin-right: auto;
    width: 120px;
    height: auto;
}

.custom-logo-link img {
    width: 120px;
    height: auto;
    padding: 0.5rem 0;
}

.primary-menu-wrapper {
}

.nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
}

.nav-menu li, .footer-menu li {
    list-style: none;
    text-transform: uppercase;
    font-size: 1.125rem;
    line-height: 1;
}

.nav-menu li a {
    text-decoration: none;
    color: #707070;
    font-size: 0.75rem;
    font-weight: bold;
}


.main-navigation li {
    position: relative;
}

.footer-bar .container {
    gap:1rem;
}

/* subpages */

.subpage-banner {
    position: relative;
    height: 200px;
    margin-top: 115px;
}

.subpage-banner-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: transparent linear-gradient(180deg, #3B3B3B00 0%, #3B3B3B99 100%) 0% 0% no-repeat padding-box;
}

.subpage-banner img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.subpage-banner .container {
    position: absolute;
    height: 100%;
    height: 100%;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.subpage-banner .title {
    position: absolute;
    bottom: 12px;
    left: 0;
    z-index: 1001;
    color: white;
}

.subpage-content {
    padding-top: 6rem;
    padding-bottom: 7.5rem;
}

.subpage-intro-block {
    display: flex;
    flex-direction: row;
    position: relative
}

.subpage-main-text {
    width: 55%;
}

.subpage-main-text h3 {
    color: var(--red-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2.75rem;
}

.subpage-main-text p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.subpage-intro-block img {
    position: absolute;
    right: 0;
    top: 0;
    /* aspect-ratio: 2 / 3;*/
    max-width: 40%;
    max-height: 200%;
    object-fit: cover;
}

.subpage-red-block {
    padding-top: 4rem;
    padding-bottom: 12.5rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
}

.subpage-red-block .subpage-main-text p {
    font-size: 1rem;
    color: white;
}


.subpage-red-block .subpage-main-text h3 {
    color: white;
}

.subpage-red-block .container {
    display: flex;
    justify-content: center;
}

.subpage-red-block .button {
    margin: 200px auto auto;
}

.subpage-red-block .single-pro {
    border-bottom-color: var(--grey-color);
    box-shadow: none;
}

.subpage-cta-block {
    position: relative;
    padding-top: 16rem;
    padding-bottom: 7.5rem;
}

.subpage-cta-block .title {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 50%;
}

.cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-block .pros-block {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translate(-50%, 0);
}

.about .subpage-red-block {
    padding-bottom: 6rem;
}

.about .subpage-cta-block {
    padding-top: 3.25rem;
}

.subpage-contact {
    padding-top: 6rem;
    padding-bottom: 0.75rem;
}

.subpage-contact-block {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
}

.single-subpage-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 3.25rem;
    background: white;
    box-shadow: -4px -4px 10px #f2f2f2, 4px -4px 10px #f2f2f2;
    border-bottom: 10px solid var(--red-color);
    text-decoration: none;
}

.single-subpage-contact img {
    height: 80px;
    margin-bottom: 2rem;
}

.single-subpage-contact p {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    color: black;
}

.subpage-blog {
    padding-top: 4rem;
    padding-bottom: 7.5rem;
}

.subpage-blog .container {
    display: flex;
    flex-direction: column;
}

.subpage-blog p {
    margin-bottom: 1rem;
}

.subpage-blog h2 {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.footer-menu-block {
    margin:0;
}

.footer-menu  {
    display: flex;
    flex-direction: column;
    gap:1rem;
    margin: 0;
    padding: 0;
}

.footer-menu li a{
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
}


/* menu */

@media (min-width: 1201px) {

    body .hamburger {
        display: none;
    }

    .primary-menu .menu-item a::after {
        content: '';
        background-color: transparent;
        transition: background-color 0.2s linear;
        position: absolute;
        height: 0.2em;
        left: 0;
        bottom: 0;
        width: 100%;
    }

    .primary-menu .sub-menu {
        position: absolute;
        right: 0;
        left: -1rem;
        line-height: 1.5;
        opacity: 0;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        background-color: white;
        font-size: 0.8rem;
        min-width: 50px;
        padding: 1rem;
        z-index: 100000;
        justify-content: center;
        gap: 1rem;
    }


    .primary-menu .sub-menu .menu-item {
        color: #404040;
    }


    .primary-menu .menu-item-has-children:hover .sub-menu {
        box-shadow: 0px 10px 10px rgb(0 0 0 / 20%);
        pointer-events: all;
        opacity: 1;
        transition: opacity .3s linear;
    }

    .primary-menu .sub-menu {
        border-radius: 0 0 5px 5px;
    }
}

@media only screen and (max-width: 1200px) {
    .primary-menu-wrapper {
        z-index: 10001;
        position: absolute;
        top: 100%;
        left: -50%;
        transition: 0.5s;
        transform: translate3d(100%, 0, 0);
        opacity: 0;
        background-color: white;
        max-width: 1200px;
        max-height: calc(100vh - 6rem);
        min-width: 290px;
        overflow-y: auto;
        padding-bottom: 3rem;
        padding-top: 3rem;
        pointer-events: none;
        width: 100%;
    }

    .primary-menu-wrapper.is-active {
        transform: translate(50%);
        opacity: 1;
        pointer-events: revert;
    }

    .primary-menu {
        flex-direction: column;
        align-items: center;
    }

    .primary-menu-container {
        width: 100%;
    }

    .primary-menu > li > a:first-of-type {
        font-size: 1.25rem;
        font-weight: 500;
    }

    .main-navigation ul {
        text-align: left;
        flex-direction: column;
        padding-left: 0;
    }

    .primary-menu li .sub-menu {
        text-align: left;
        padding-left: 1rem;
    }

    .qtranxs-lang-menu > a {
        display: none;
    }

    .qtranxs-lang-menu .sub-menu {
        flex-direction: row;
    }

    .primary-menu li a {
        font-size: 1.25rem;
        font-weight: 300;
        line-height: 1.6;
    }
}

/* reszponzivitás */

@media screen and (max-width: 1400px) {
    .container {
        padding-left: 5%;
        padding-right: 5%;
    }

    .subpage-banner .title {
        left: 5%;
    }

    .team-img {
        height: 500px;
    }

    .banner-block {
        max-width: 50%;
    }

}

@media screen and (max-width: 1200px) {
    .title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .team {
        display: flex;
        flex-direction: column-reverse;
    }

    .team-img {
        object-fit: contain;
        position: revert;
    }

    .team-block {
        text-align: center;
        max-width: revert;
    }

    .subpage-contact-block {
        grid-template-columns: 1fr 1fr;
    }

    .footer-block {
        gap: 4rem;
    }

    .qtranxs-flag {
        margin-bottom: 1.5rem;
    }

    .banner-img {
        position: revert;
        margin-top: 2rem;
    }

    .banner-block {
        max-width: 100%;
    }

    .banner {
        padding-bottom: 6rem;
    }


}

@media screen and (max-width: 900px) {
    .header-bar {
        display: none;
    }

    .articles {
        grid-template-columns: 1fr;
    }

    .footer-menu-block {
        display: none;
    }

    .reference .container {
        gap: 4rem;
        flex-direction: column-reverse;
    }

    .reference-content {
        width: 100%;
    }

    .reference .container .foogallery {
        width: 100%;
    }
}


@media screen and (max-width: 800px) {
    .banner-block {
        align-items: center;
        text-align: center;
    }

    .banner {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .pros-block {
        flex-wrap: wrap;
    }

    .intro-block {
        max-width: revert;
    }

    .services-text {
        max-width: revert;
    }

    .about-us {
        padding-top: 7.5rem;
    }

    .about-us .pros-block {
        position: revert;
        transform: revert;
        margin-bottom: 3rem;
    }

    .references-block {
        flex-direction: column;
    }

    .reference-text {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 4rem;
    }

    .swiper {
        margin-right: revert !important;
        margin-left: revert !important;
    }

    .review-swiper {
        width: 85%;
    }

    .footer-block {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .team-block {
        padding-bottom: 3rem;
    }

    .services-with-image {
        flex-wrap: wrap;
        gap: 2rem;
    }
}
@media screen and (max-width: 600px) {
    .team-img {
        height: 400px;
    }

    .banner-img {
        height: 200px;
    }

    .reference-text .button {
        display: none;
    }

    .swiper .swiper-wrapper {
        padding-left: 0;
    }

    .references-text {
        justify-content: center;
    }

    .swiper-buttons {
        transform: translate(-50%, -30px);
        left: 50%;
    }
    .footer-block > img {
        width: 120px;
        height: 120px;
    }

    .footer-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-cta p {
        text-align: center;
    }

    .site-footer {
        padding-top: 2rem;
        padding-bottom: 4rem;
    }

    .reviews {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .review-icon {
        font-size: 4rem;
    }

    .review-text p {
        font-size: 0.75rem;
    }

    .review-card{
        padding: 1rem;
    }

    .subpage-content {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .subpage-main-text p {
        font-size: 1rem;
        text-align: center;
    }
    .subpage-main-text {
        width: 100%;
    }

    .subpage-intro-block {
        flex-direction: column;
    }

    .subpage-intro-block img {
        position: revert;
        max-width: revert;
    }

    .subpage-red-block .container {
        flex-direction: column;
    }

    .subpage-red-block .subpage-main-text h3 {
        text-align: center;
    }

    .subpage-red-block .button {
        margin-top:1rem;
    }

    .subpage-cta-block .cta-block .pros-block {
        position: revert;
        transform: revert;
    }

    .subpage-cta-block .cta-block {
        gap: 2rem;
    }
    .subpage-cta-block .title {
        max-width: 100%;
        margin-bottom:0;
    }

    .subpage-cta-block {
        padding-top: 4rem;
        padding-bottom: 6rem;
    }

    .subpage-main-text h3 {
        font-size: 1.25rem;
        text-align: center;
    }

    .subpage-contact-block {
        grid-template-columns: 1fr;
    }
}


@media screen and (max-width: 500px) {
    .title {
        font-size: 1.5rem;
    }

    .banner-block {
        max-width: 100%;
    }

    .team-img {
        height: 350px;
    }

    .button-block {
        align-items: center;
        flex-direction: column;
    }

    .about-us p {
        max-width: 100%;
    }

    .article-title {
        font-size: 1.125rem;
    }
}