html {
    box-sizing: border-box;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: "Roboto", sans-serif;
    /*  font-family: "Montserrat", sans-serif; */
    font-size: 400px;
    font-size: 16px;
    line-height: 1.5;
    color: #2b2b2b;
    overflow-x: hidden;

}

.container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 10px;
}

.header {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #F5F5F5;
}

.header__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 22, 22, 0.85), rgba(22, 22, 22, 0.25)),
        image-set('../images/house.webp' type('image/webp'),
            '../images/house.jpg' type('image/jpeg'));
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    z-index: 0;
}

.header .container {
    position: relative;
    z-index: 1;
}

.header__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 64px 0;
}

.menu {
    justify-self: start;
}

.menu__list {
    display: flex;
    gap: 40px;
    text-transform: uppercase;
    font-weight: 300;

}



.menu__btn {
    display: none;
}

.logo {
    justify-self: center;
}

.phone {
    justify-self: end;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 9px;
}

.title {

    padding-top: 100px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-size: 85px;
    font-weight: 400;
    line-height: 100px;
    max-width: 900px;



}



.title span {
    display: block;
}

.text {
    max-width: 760px;
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.header__btn {
    padding: 20px 44px;
    background-color: #F5F5F5;
    color: #2b2b2b;
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    display: inline-block;
}

.services {
    padding: 150px 0;
    background-color: #171717;
    color: #F5F5F5;

}

ul {
    list-style-type: none;
}



.services__title,
.projects__title,
.steps__title,
.catalog__title,
.request__title {
    text-transform: uppercase;
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 300;
    line-height: 49px;
    margin-bottom: 60px;
}

.services__list {
    border-top: 1px solid #F5F5F5;
}

.services__item {
    padding: 20px 44px 20px 20px;
    border-bottom: 1px solid #F5F5F5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.services__item__title {
    text-transform: uppercase;
    font-size: 28px;
    font-weight: 300;

}

.services__item__text {
    max-width: 804px;
    width: 100%;

}

/* projects */
.projects {
    padding: 150px 0;
}


.projects__slider {
    position: relative;
    overflow: hidden;
}



.projects__item {
    border: 1px solid #D9D9D9;
    padding: 20px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.projects__item-img {
    max-width: 100%;
    margin-bottom: 40px;
}

.projects__item-title {
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
}

.projects__item-descr {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.2;
}

.projects__item-text {
    margin-bottom: 30px;
}

.project__item-btn {
    display: inline-block;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 300;
    border: 1px solid #2b2b2b;
    padding: 20px 70px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.projects__arrow {
    position: absolute;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    margin-top: 50px;



}

.projects__arrow-left {
    left: 100px;

}

.projects__arrow-right {
    right: 100px;

}

/* steps */
.steps {
    padding: 70px 0 100px;
    background-color: #171717;
    color: #F5F5F5;
    display: flex;
    gap: 45px;


}


.steps__content {
    max-width: 556px;

}

.steps__title {
    margin-bottom: 46px;
    line-height: 49px;
}

.steps__list {

    counter-reset: my-counter;
    list-style: none;
}

.steps__item {
    counter-increment: my-counter;
    position: relative;
    padding-left: 60px;

}

.steps__item::before {
    content: counter(my-counter);
    position: absolute;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 600;
    width: 40px;
    height: 40px;
    left: 0;
    border: 1px solid #F5F5F5;
    display: flex;
    justify-content: center;
    align-items: center;

}

.steps__item::after {
    content: '';
    width: 1px;
    position: absolute;
    background-color: #F5F5F5;
    left: 20px;
    top: 48px;
    bottom: 8px;

}

.steps__item:last-child::after {
    display: none;

}

.steps__item-title {
    font-weight: 300;
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 15px;
    padding-top: 7px;
}

.steps__item-text {
    padding-bottom: 40px;
    word-break: break-word;
}



.steps__img img {
    width: 100%;

}

/* catalog */

.catalog {
    padding: 150px 0;
}

.catalog__title {
    margin-bottom: 60px;
    max-width: 556px;
    line-height: 1.2;
}

.catalog__content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 150px;
}

.catalog__content img {
    max-width: 100%;
}

.catalog__form {
    max-width: 580px;
}

.catalog__form-title {
    text-transform: uppercase;
    font-size: 28px;
    line-height: 33px;
    font-weight: 300;
    margin-bottom: 20px;
}

.catalog__form-text {
    text-transform: uppercase;
    font-size: 18px;
    line-height: 21px;
    margin-bottom: 50px;
    font-weight: 300;
    max-width: 430px;
}

.catalog__form-input,
.request__input {
    width: 100%;
    display: block;
    margin-bottom: 35px;
    padding: 20px;
    border: 1px solid #171717;
    font-size: 24px;
    line-height: 28px;
    font-weight: 100;
    font-family: "Roboto", sans-serif;
}

.catalog__form-input::placeholder,
.request__input::placeholder {
    font-size: 24px;
    line-height: 28px;
    font-weight: 100;
    font-family: "Roboto", sans-serif;
}

.catalog__form-label {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 50px;
}

.catalog__form-checkbox {
    width: 17px;
    height: 17px;
    accent-color: #171717;
}

.catalog__form-labeltext {
    font-size: 14px;
    font-weight: 300;
}

.catalog__form-labeltext a {
    text-decoration: underline;
    /*  border-bottom: 1px solid #2b2b2b; */
}

.catalog__forn-btn,
.request__btn {
    display: inline-block;
    padding: 20px 40px;
    text-transform: uppercase;
    color: #F5F5F5;
    font-size: 18px;
    font-weight: 300;
    background-color: #171717;
    bottom: none;
    font-family: "Roboto", sans-serif;
    cursor: pointer;
}

.galerry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

}

.galerry img {
    max-width: 100%;
    border: 1px solid #F5F5F5;

    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.galerry img.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* request */
.request {
    padding: 184px 0;
    margin-bottom: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../images/request.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.request__inner {
    padding: 75px 120px;
    max-width: 60%;
    background-color: rgba(22, 22, 22, .85);

}

.request__title {
    color: #F5F5F5;
}

.request__form {
    display: flex;
    justify-content: center;


}

.request__input {
    background-color: #F5F5F5;
    max-width: 60%;
    border: none;
    margin-bottom: 0;
}

.request__btn {
    padding: 20px 20px;
    color: #2b2b2b;
    background-color: #FFFFFF;
    border: none;
    width: 40%;
}

/* footer */

.footer {
    padding: 100px 0;
    background-color: #171717;
    font-weight: 300;
    color: #F5F5F5;
}

.footer__inner {
    margin-bottom: 10px;
    padding-right: 175px;
    display: flex;
    gap: 100px;
}

.footer-logo {
    margin-right: auto;
}



.footer__nav-list {
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 15px;
}



.footer__social,
.footer__contacts {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}



.footer__social-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__social-link span {
    display: inline;
}



.footer__contacts-link {
    display: flex;
    gap: 10px;

}

.footer__img-map {
    align-self: flex-start;
}

.footer__contacts-time {
    display: inline-block;
    padding-left: 18%;
    max-width: 150px;
}

.footer-map {
    margin-top: 60px;
    border-radius: 24px;
    overflow: hidden;
}

.footer-map iframe {
    width: 60%;
    height: 420px;
    border: 0;
    filter: grayscale(100%) contrast(1.1);
    transition: filter .4s ease;
}

.footer-map:hover iframe {
    filter: grayscale(0);
}

.copy {
    display: flex;
    gap: 6px;
    font-size: 14px;
}

.to__up {
    position: absolute;
    display: flex;
    justify-content: center;
    text-align: center;
    right: 5%;
    padding: 10px 15px;
    background-color: #F5F5F5;
    color: #171717;
    font-weight: 600;
}

@media(max-width:1500px) {
    .footer__inner {
        padding-right: 0;
        gap: 50px;
    }
}

@media(max-width:1250px) {
    .services__item {
        display: block;
    }

    .steps {
        display: block;
    }

    .catalog__content {
        display: block;
    }

    .request__inner {
        padding: 50px 50px;
        max-width: 80%;
    }

}

@media(max-width:1140px) {
    .menu__btn {
        display: flex;
        width: 40px;
        height: 24px;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        position: relative;
        z-index: 10;
    }

    .menu__btn::before,
    .menu__btn::after,
    .menu__btn span {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #F5F5F5;
        transition: transform .3s ease, opacity .3s ease;
    }

    .menu__btn::before {
        top: 0;
    }

    .menu__btn span {
        top: 50%;
        transform: translateY(-50%);
    }

    .menu__btn::after {
        bottom: 0;
    }


    .menu__btn.is-active::before {
        transform: translateY(11px) rotate(45deg);


    }

    .menu__btn.is-active::after {
        transform: translateY(-11px) rotate(-45deg);
    }

    .menu__btn.is-active span {
        opacity: 0;
    }

    .menu__list {
        position: absolute;
        inset: 0;
        background-color: rgba(22, 22, 22, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform .3s ease;
        z-index: 9;
    }

    .menu__list.active {
        transform: translateY(0);
    }

    .request__inner {
        padding: 10px 10px;


    }


    .footer__inner {
        padding-right: 0;
        display: grid;
        grid-template-columns:
            minmax(200px, 2fr) repeat(3, minmax(140px, 2fr)) minmax(200px, 2fr);
        row-gap: 20px;
    }

    .footer-logo {
        margin-right: 0;
    }

    .footer__img-map {
        justify-self: end;
    }
}

@media(max-width:1000px) {
    .footer__inner {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 50px;
    }

    .footer__img-map {
        grid-column: span 2;
        justify-self: center;
    }

    .footer__contacts-time {
        display: inline-block;
        padding-left: 2%;
        max-width: none
    }

    .footer-map {
        margin-top: 30px;

    }

    .footer-map iframe {
        width: 100%;
        height: 420px;

    }
}

@media(max-width:640px) {
    .header__top {
        padding: 15px 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;

        gap: 15px;
    }

    .menu {
        align-self: flex-end;
    }

    .logo {
        align-self: flex-end;
    }

    .phone {
        align-self: flex-end;
    }


    .title {
        padding-top: 50px;
        margin-bottom: 20px;
        font-size: 56px;
        line-height: 1.2;
    }

    .text {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .header__btn {

        padding: 15px 44px;
        font-size: 16px;
        margin: 0 auto;
    }

    .services,
    .projects,
    .steps,
    .catalog,
    .request,
    .footer {
        padding: 50px 0;
    }

    .services__title,
    .projects__title.catalog,
    .steps__title,
    .catalog__title,
    .request__title {
        margin-bottom: 20px;
    }

    .services__title {
        font-size: 24px;
        line-height: 26px;
    }

    .services__item {
        padding: 20px 0;

    }

    .services__item__title,
    .projects__item-title,
    .steps__item-title,
    .catalog__form-title {
        font-size: 20px;
    }

    .projects__item-descr {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .project__item-btn {


        display: block;
        width: fit-content;
        margin: 0 auto;
        margin-top: 20px;
    }

    .steps__item-text {
        padding-bottom: 15px;
    }

    .catalog__form-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .catalog__form-input {
        margin-bottom: 20px;
        padding: 10px;
        font-size: 16px;
        line-height: 20px;
    }

    .catalog__form-input::placeholder,
    .request__input::placeholder {
        font-size: 16px;
        line-height: 20px;

    }

    .catalog__form-label {
        margin-bottom: 20px;
    }

    .catalog__forn-btn,
    .request__btn {
        padding: 15px, 40px;
        font-size: 16px;
    }

    .galerry {
        grid-template-columns: repeat(2, 1fr);

    }


    .request__inner {
        max-width: 90%;


    }

    .request__form {
        display: block;

    }

    .request {
        margin-bottom: 50px;
    }


    .request__input {
        max-width: 100%;
    }

    .request__btn {
        width: 100%;
    }

    .footer {
        padding: 60px 0;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }



}

@media(max-width:414px) {

    .header__top {
        padding: 40px 0;
    }

    .title {
        font-size: 48px;
        line-height: 1.1;
    }

    .text {
        font-size: 20px;
    }

    .projects__item {
        padding: 10px;
    }

    .galerry {
        grid-template-columns: repeat(1, 1fr);

    }

    .footer__social-link span {
        display: none;
    }

    .footer__social {
        flex-direction: row;
        gap: 25px;
    }



}