/* глобальные стили */

:root {
    --blakc: #212529;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}


.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.2em 3.2em 1.6em;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

a,
p,
h1,
h2,
h3 {
    color: var(--blakc);
    margin: 0;
}

img {
    object-fit: cover;
}

/* --- */

/* стили header */

.menu {
    font-size: 1.8rem;
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.menu__list {
    flex-grow: 1;
    flex-basis: 0;
    margin-left: 62.75%;
}

.title {
    font-size: 7.2rem;
    line-height: 120%;
    text-transform: uppercase;
}

.subtitle {
    font-size: 2rem;
    line-height: 140%;
}

.home__link {
    max-width: 168px;
    position: relative;
    font-size: 1.8rem;
    grid-column: 11/13;
    grid-row: 1/2;
    align-self: end;
    text-align: center;
    margin-bottom: 4rem;
    text-align: left;
    text-decoration: none;
}

.home-screen {
    position: relative;
    overflow: hidden;
}

.home-screen__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    column-gap: 2rem;
}

.title {
    margin: 4rem 0;
    grid-column: 1 / 7;
    grid-row: 1;
}


.subtitle {
    margin: 0;
    grid-row: 2;
    grid-column: span 5;
    margin-bottom: 11.6em;
}

.home__img {
    grid-row: 3;
    margin: 0;
}

.home__img__small {
    grid-column: 1/3;
    align-self: end;
}

.home__img__big {
    grid-row: 2/4;
    position: absolute;
    width: 100%;
    max-width: 678px;
    left: 100%;
    transform: translateX(-100%);
}

header {
    margin-bottom: 12em;
}

/* --- */

/* стили about-us */
.about-us {
    margin-bottom: 11.6rem;
}

.about-us__flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about-us__part {
    max-width: 50%;
}

.about-us__title {
    font-size: 4.8rem;
    max-width: 562px;
    margin: 0;
}

.mobile-title {
    display: none;
}

.about-us__desc {
    font-size: 1.6rem;
    line-height: 140%;
    max-width: 678px;
    margin: 0 0 1.6rem;
}



.gurantees__big-text {
    font-size: 3.6rem;
    margin: 0;
}

.gurantees_smal-text {
    font-size: 1.6rem;
    max-width: 146px;
    margin: 0 0 2.4rem;
}

.gurantees_smal-text:last-child {
    margin: 0;
}

.about-us__desc:last-child {
    margin-bottom: 5.5rem;
}

.how-work {
    margin-bottom: 7.6em;
}

.how-work,
.right-part__item {
    display: flex;
}

.how-work__left-part,
.how-work__right-part {
    min-width: 50%;
}

.left-part__title {
    font-size: 4.8rem;
}

.how-work__description,
.item__description {
    font-size: 1.6rem;
}

.how-work__description {
    max-width: 325px;
    margin-bottom: 4.4em;
    margin-top: 1.3rem;
}

.item__description {
    max-width: 329px;
}

.right-part__item {
    align-items: start;
    justify-content: space-between;
    padding-bottom: 2.2rem;
    margin-bottom: 2.4em;
    border-bottom: 2px solid var(--blakc);
}

.item__title {
    font-size: 3.6rem;
    max-width: 300px;
}

.right-part__item:last-child {
    margin: 0;
}

/* --- */

/* стили projects */
.projects {
    margin-bottom: 16.8em;
}

.projects__title {
    font-size: 4.8rem;
    margin-bottom: 3.2rem;
}

.project__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2em;

}

.projects__item {
    min-width: 252px;
    width: 100%;
    height: 100vw;
    max-height: 580px;
    position: relative;
    overflow: hidden;
}

.projects__item-1 {
    background: url(../img/project-img1.jpg);
    background-position: center;
    background-size: cover;
}

.projects__item-2 {
    background: url(../img/project-img2.jpg);
    background-position: center;
    background-size: cover;
}

.projects__item-3 {
    background: url(../img/project-img3.jpg);
    background-position: center;
    background-size: cover;
}

.projects__item-4 {
    background: url(../img/project-img4.jpg);
    background-position: center;
    background-size: cover;
}

.projects__item-5 {
    background: url(../img/project-img5.jpg);
    background-position: center;
    background-size: cover;
}

.projects__item-6 {
    background: url(../img/project-img6.jpg);
    background-position: center;
    background-size: cover;
}

.project__link {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.2rem 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.project__link>a {
    color: #fff;
}

.project-swiper {
    display: none;
}

.swiper-pagination-bullet-active {
    background-color: var(--blakc);
}

/* --- */

/* стили feedback */
.feedback {
    margin-bottom: 12em;
}

.feedback__title {
    font-size: 4.8rem;
    margin-bottom: 3.2rem;
}

.feedback__flex {
    display: flex;
    justify-content: space-between;
    gap: 2em;
}

.feedback__item {
    max-width: 445px;
    padding: 4rem 4rem 9.2rem;
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    border: 1px solid var(--blakc);
}

.feedback-img {
    max-width: 4rem;
    margin-bottom: 3.2em;
}

.feedback-author {
    font-size: 1.8rem;
    margin-bottom: 2em;
}

.feedback-text {
    font-size: 1.6rem;

    line-height: 140%
}

/* --- */

/* стили для footer */
.order {
    margin-bottom: 12rem;
}

.order__title {
    font-size: 4rem;
    color: #000;
    margin-bottom: 3.2rem;
}

.order__description {
    font-size: 1.6rem;
    line-height: 140%;
    margin-bottom: 7.2rem;
}

::placeholder {
    font-size: 1.6rem;
    color: var(--blakc);

}

input {
    width: 100%;
    max-width: 562px;
    border: 0;
    border-bottom: 1.5px solid var(--blakc);
    font-size: 1.6rem;
    display: block;
    margin-bottom: 1.6rem;
    padding-bottom: 1.2rem;
}

.order__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.order__img {
    grid-column: 1/6;
}

.order-right {
    grid-column: 7/12;
}

.order__title {
    font-size: 4.8rem;
    margin-bottom: 3.2rem;
}

.order__description {
    margin-bottom: 7.2rem;
}

.tel {
    margin-bottom: 2.4rem;
}

input {
    outline: none;
    transition: all 0.3s ease;
}


.order__button {
    padding: 12px 20px;
    width: 176px;
    height: 46px;
    background: #212529;
    font-size: 16px;
    line-height: 140%;
    text-align: center;
    color: #fff;
    margin-bottom: 4rem;
    transition: all 0.3s ease;
    border: none;
}

.footer__text {
    display: flex;
    justify-content: space-between;
}

.app-store {
    margin-right: 8px;
}

.copy {
    font-size: 1.8rem;
    text-transform: uppercase;
    max-width: 210px;
}

.politic {
    font-size: 1.6rem;
    line-height: 140%;
}

.politic__mobile {
    display: none;
}

.social-media__link {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}

.vk {
    margin-right: 4rem;
}

/* --- */

/* шрифты */
h1,
h2,
h3 {
    font-family: "Roboto", sans-serif;
}

p,
a,
ul,
form {
    font-family: Helvetica, Arial, sans-serif;
}

/* --- */

/* анимации */


.link {
    transition: 0.3s ease
}

.link:hover {
    color: #ddd7c0;
}

.home__link::after {
    content: '';
    width: 100%;
    height: 0.5px;
    position: absolute;
    top: 2.3rem;
    left: 0;
    background: var(--blakc);
    transition: all 0.4s ease;
}

.home__link:hover::after {
    width: 0;
    right: 100%;
}

.home__link:hover {
    color: var(--blakc);
    text-decoration: none;
}

input:focus {
    outline: none;
    border-color: #ddd7c0;
}

input:focus::placeholder {
    color: transparent;
    transition: 0.3 ease;
}

.projects__item:hover .project__link {
    transform: translateY(0%);
}

.order__button:hover {
    background-color: #ddd7c0;
    border-color: #ddd7c0;
    color: #212529;
}

a:hover {
    text-decoration: underline;
}

/* --- */

/* слайдер */

.swiper {
    width: 100%;
    height: auto;
}


/* --- */

/* адоптив */

@media (max-width: 1260px) {

    .title {
        font-size: 5.5rem;
    }

    .home-screen {
        display: block;
        height: 100%;
    }

    .subtitle {
        grid-column: 1 / 6;
        margin-bottom: 4.8em;
    }

    .home__img__small {
        display: none;
    }

    .home__link {
        display: block;
        grid-row: 2;
        grid-column: 1 / 12;
        margin: 0 0 2.4rem 0;
        padding: 0;
        text-align: left;
        margin-bottom: 2.4rem;
    }

    .home__img__big {
        max-width: 100%;
        display: block;
        position: relative;
        grid-row: 3;
        grid-column: 1 / 13;
        max-width: 100%;
    }

    .about-us {
        margin-bottom: 3.2rem;
    }

    .about-us__flex {
        flex-direction: column;
    }

    .about-us__title {
        margin-bottom: 2rem;
    }

    .desctop-title {
        display: none;
    }

    .mobile-title {
        display: block;
    }

    .how-work {
        flex-direction: column;
    }

    .left-part__title {
        margin-bottom: 2rem;
    }

    .how-work__description {
        margin-top: 0;
        margin-bottom: 2.8rem;
    }

    .right-part__item {
        flex-wrap: wrap;
    }

    .order-right {
        grid-column: 8 / 13;
    }


}

@media (max-width: 950px) {

    .title{
        font-size: 3.2rem;
    }

    .container {
        padding: 0.8rem 1.2rem;
    }

    .menu {
        display: none;
    }

    .home-screen {
        margin-bottom: -5.5rem;
    }

    .title {
        margin-bottom: 2rem;
    }

    .subtitle {
        margin-bottom: 2.4rem;
    }

    .about-us__title,
    .left-part__title,
    .projects__title,
    .feedback__title,
    .order__title {
        font-size: 2.8rem;
    }

    .projects {
        display: none;
    }

    .project-swiper {
        max-width: 100%;
        margin: 0 auto;
        margin-bottom: 4.8rem;
    }

    .projects__item {
        max-width: 100%;
        min-width: 252px;
        margin-bottom: 4rem;
    }

    .projects__item:hover .project__link {
        transform: translateY(0%);
    }

    .project__link {
        transform: translateY(0%);
        font-size: 1.6rem;
        background-color: rgba(0, 0, 0, 0.6);
    }

    .project-swiper {
        display: block;
    }

    .feedback__flex {
        flex-direction: column;
    }

    .feedback__item {
        max-width: 100%;
        min-width: 343px;
        align-items: center;
        padding: 3.2rem 3.2rem 3.7rem;
    }

    .feedback__item>h3 {
        margin-bottom: 2rem;
    }

    .order__img {
        display: none;
    }

    .order-right {
        grid-column: 2 / 12;
    }

    .order {
        margin-bottom: 6rem;
    }

    .order-right {
        grid-template-columns: repeat(4, 1fr);
    }

    .order__title,
    .order__description {
        grid-column: 1 / 4;
    }

    .footer__text {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.6rem;
    }

    .social-media__link {
        text-align: center;
        justify-content: center;
        grid-column: 2 / 4;
        grid-row: 1;
    }

    .politic {
        display: none;
    }

    .politic__mobile {
        display: block;
        grid-column: 2 / 4;
        grid-row: 2;
        text-align: center;
    }

    .politic__mobile2 {
        grid-row: 3;
        transform: translateY(-50%);

    }

    .copy {
        line-height: 4rem;
        position: relative;
        left: 50%;
        grid-column: 2 / 4;
        grid-row: 4;
        text-align: center;
        transform: translateX(-50%);
    }
}

@media (max-width: 515px) {
    .home-screen__grid {
        display: block;
    }

    .subtitle {
        font-size: 1.6rem;
    }

    .home__link {
        display: block;
        margin-bottom: 3.2rem;
    }

    .about-us__flex {
        display: block;
        margin-bottom: 3.2rem;
    }

    .about-us__right {
        max-width: 100%;

    }

    .right-part__item {
        flex-direction: column;
    }

    .item__title {
        margin-bottom: 2rem;
    }

    .about-us__desc:last-child {
        margin: 0;
    }

    .social-media__link {
        grid-column: 1 / 5;
    }

    .vk.link {
        grid-column: 1 / 3;
        margin-right: 3.2rem;
    }

    .telegram.link {
        grid-column: 3 / 5;
    }

    .politic__mobile1 {
        grid-column: 1 / 5;
    }

    .copy {
        grid-column: 1 / 5;
    }

    .home__link,
    .order__button {
        font-size: 1.2rem;

    }

    .home__link{
        display: inline-block;
        max-width: 16.5rem;
    }

    .order__button{
        width: 180px;
        padding: 1.2rem 1.6rem ;
    }
    
}


@media (max-width: 450px) {
    .feedback__item {
        padding: 1.6rem 1.6rem 2.7rem;
    }

    .home__link,
    .order__button {
        font-size: 1.2rem;

    }

    .home__link{
        max-width: 16.5rem%;
    }

    .order__button{
        width: 180px;
        padding: 1.2rem 1.6rem ;
    }
}


/* --- */
