/*  ADAPTIVE FOR TEAM  */

#ov1,
#ov2,
#ov3,
#ov4,
#ov5,
#ov6,
#ov7,
#ov8,
#ov9,
#ov10,
#ov11,
#ov12,
#ov13,
#ov14,
#ov15,
#ov16,
#ov17,
#ov18,
#ov19,
#ov20,
#ov21 {
    display: none;
}

@media (min-width: 2123px) {
    .tema-inner-yellow {
        height: 320px;
    }
}

@media (max-width: 2122px) {
    .tema-inner-yellow {
        height: 320px;
    }
}

@media (max-width: 1797px) {
    #ilya {
        height: 320px;
    }

    .tema-inner-yellow {
        height: auto;
    }
}

@media (max-width: 1472px) {
    .team-inner,
    .team-description {
        margin-left: 262px;
    }
}

@media (max-width: 1384px) {
    .team-inner,
    .team-description {
        margin-left: 130px;
    }
}

@media (max-width: 1252px) {
    .team-inner {
        margin-left: 0px;
    }

    .team-description {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 1123px) {
    #roman {
        height: 320px;
    }

    #ilya {
        height: auto;
    }
}



/*  ADAPTIVE OUR  */

@media (max-width: 1300px) {
    .comments-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .comments-item {
        margin: 10px;
    }

    .footer-flex-bottom {
        justify-content: start;
    }

}

@media (max-width: 1150px) {
    main {
        background-size: 120%;
        
    }

    nav a {
        margin-right: 30px;
    }
}


@media (max-width: 1000px) {
    main h1 {
        font-size: 100px;
    }

    main h2 {
        font-size: 39px;
        line-height: normal;
        margin-bottom: 70px;
    }

    main p {
        font-size: 26px;
        
        margin-bottom: 10px;
    }

    .main-button button {
        font-size: 30px;
    }

    .sovet h2,
    .team h2,
    .comments h2,
    .uslugi h2,
    .footer-flex-top h2 {
        font-size: 36px;
    }

    .footer-flex__hrefs h3 {
        font-size: 24px;
    }

    .footer-flex__hrefs a {
        font-size: 18px;
    }

    .sovet-item-yellow {
        width: 100%;
    }

    .sovet-item-yellow h3 {
        font-size: 24px;
    }

    .sovet-item-yellow p {
        font-size: 18px;
        line-height: 23.2px;
    }

    .team-description {
        font-size: 20px;
        line-height: 24px;
    }

    .comments p {
        font-size: 24px;
    }

    .uslugi-item {
        display: block;
        text-align: center;
    }

    .uslugi-left,
    .uslugi-right {
        width: 100%;
    }

    .uslugi-left__name {
        margin-bottom: 10px;
    }

    .uslugi-right__button {
        position: static;
        margin-top: 20px;
        width: 100%;
    }

    nav a {
        font-size: 14px;
        margin-right: 10px;
    }

    #ficha4 {
        display: none;
    }
}

@media (max-width: 800px) {
    .container {
        margin: 0px 15px;
    }

    main {
        text-align: center;
        background-size: 150%;
    }

    main h1 {
        position: static;
        z-index: 999;
    }

    main h2 {
        width: 100%;
    }

    .main-ficha {
        display: none;
    }

    .footer-flex-bottom,
    .footer-flex-top {
        display: block;
        text-align: center;
    }

    .footer-flex-top h2 {
        margin-bottom: 20px;
    }

    .footer-flex__hrefs {
        margin-right: 0;
    }

    #ficha8 {
        height: 158px;
        position: absolute;
        bottom: 170px;
        left: 0;
    }

    .footer-text__block {
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    
    #burgerButton {
        display: block;
    }

    nav,
    .header-button {
        display: none;
    }

    main {
        background-size: 190%;
        background-image: url(../images/backMain1.png);
    }


}

@media (max-width: 678px) {

    main {
        background-size: 150%;
    }

    .team-item {
        margin-right: 0;
        
    }

    .team-item:nth-child(6) {
        display: none;
    }

    .tema-inner-yellow {
        height: auto!important;
    }

    .team-inner {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .tema-inner-yellow {
        width: 100%;
    }

    #roman {
        height: auto;
    }
}

@media (max-width: 580px) {
    main {
        background-size: 150%;
    }

    main h1 {
        letter-spacing: normal;
        font-size: 76px;
    }

    main h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    main p {
        font-size: 19px;
        margin-bottom: 5px;
        line-height:normal;
    }

    .sovet-item {
        flex-direction: column;

    }

    .sovet-item img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .sovet-item-yellow {
        text-align: center;
    }


    /* FICH`S */

    .sovet-ficha {
        position: absolute;
        top: 478px;
        left: 0;
        height: 87px;
    }

    #ficha3 {
        position: absolute;
        left: 0;
        top: 374px;
        z-index: 0;
        height: 57px;
    }

    #ficha4 {
        position: absolute;
        right: 0;
        top: 827px;
        z-index: 0;
        height: 131px;
    }

    #ficha5 {
        position: absolute;
        left: 0;
        top: 1211px;
        height: 90px;
    }

    #ficha6 {
        position: absolute;
        top: 1738px;
        left: 0;
        height: 72px;
    }

    #ficha7 {
        position: absolute;
        top: 2241px;
        height: 62px;
        right: 0;
    }

    #ficha8 {
        height: 95px;
        position: absolute;
        bottom: 156px;
        left: 0;
    }

    #ficha9 {
        position: absolute;
        top: 3345px;
        right: 0;
        height: 73px;
    }

    #ficha10 {
        position: absolute;
        top: 4432px;
        left: 0;
        height: 84px;
    }

    #ficha11 {
        position: absolute;
        top: 6428px;
        right: 0;
        height: 84px;
    }


    /* OVERLAY */

    #ov1,
    #ov2,
    #ov3,
    #ov4,
    #ov5,
    #ov6,
    #ov7,
    #ov8,
    #ov9,
    #ov10,
    #ov11,
    #ov12,
    #ov13,
    #ov14,
    #ov15,
    #ov16,
    #ov17,
    #ov18,
    #ov19,
    #ov20,
    #ov21 {
        display: block;
    }

    .sovet h2 {
        position: relative;
    }

    #ov1 {
        position: absolute;
        right: 10px;
        bottom: -30px;
        height: 60px;
    }

    .sovet-item-yellow {
        position: relative;
    }

    #ov2 {
        position: absolute;
        left: 30px;
        top: -30px;
        height: 60px;
        transform: rotate(-10deg);
    }

    #ov3 {
        position: absolute;
        right: 30px;
        bottom: -20px;
        height: 40px;
        transform: rotate(10deg);
    }

    #ov4 {
        position: absolute;
        right: 30px;
        bottom: -20px;
        height: 50px;
        transform: rotate(10deg);
    }

    #ov5 {
        position: absolute;
        right: -7px;
        top: -79px;
        height: 68px;
        transform: rotate(-16deg);
    }

    .team h2 {
        position: relative;
    }

    #ov6 {
        position: absolute;
        right: 10px;
        bottom: -30px;
        height: 70px;
        transform: rotate(15deg);
    }

    .team-description {
        position: relative;
    }

    #ov7 {
        position: absolute;
        left: 0px;
        top: -40px;
        height: 40px;
        transform: rotate(-15deg);
    }

    .tema-inner-yellow {
        position: relative;
    }

    #ov8 {
        position: absolute;
        right: -46px;
        top: 30px;
        height: 32px;
        transform: rotate(24deg);
    }

    #ov9 {
        position: absolute;
        right: -46px;
        top: -27px;
        height: 48px;
        transform: rotate(10deg);
    }

    #ov10 {
        position: absolute;
        right: -48px;
        top: -40px;
        height: 63px;
        transform: rotate(-6deg);
    }

    #ov11 {
        position: absolute;
        left: -54px;
        top: -27px;
        height: 69px;
        transform: rotate(-6deg);
    }

    #ov12 {
        position: absolute;
        right: -46px;
        top: -30px;
        height: 50px;
        transform: rotate(6deg);
    }

    #ov13 {
        position: absolute;
        right: 5px;
        top: 30px;
        height: 40px;
        transform: rotate(6deg);
    }

    #ov14 {
        position: absolute;
        left: -50px;
        top: 30px;
        height: 34px;
        transform: rotate(6deg);
    }

    #ov15 {
        position: absolute;
        right: -44px;
        top: 30px;
        height: 60px;
        transform: rotate(6deg);
    }

    .comments h2 {
        position: relative;
    }

    #ov16 {
        position: absolute;
        right: -6px;
        top: -14px;
        height: 55px;
        transform: rotate(6deg);
    }

    .uslugi h2 {
        position: relative;
    }

    #ov17 {
        position: absolute;
        right: 5px;
        top: 30px;
        height: 40px;
        transform: rotate(6deg);
    }

    .uslugi-item {
        position: relative;
    }

    #ov18 {
        position: absolute;
        left: 25px;
        bottom: 25px;
        height: 40px;
        transform: rotate(-6deg);
    }

    #ov19 {
        position: absolute;
        right: 25px;
        bottom: 25px;
        height: 40px;
        transform: rotate(6deg);
    }

    #ov20 {
        position: absolute;
        left: 25px;
        bottom: 25px;
        height: 40px;
        transform: rotate(-6deg);
    }

    #ov21 {
        position: absolute;
        right: 25px;
        bottom: -84px;
        height: 81px;
        transform: rotate(-6deg);
    }


}

@media (max-width: 430px) {
    main {
        background-size: 150%;
    }

    main h1 {
        font-size: 60px;
    }

    main h2 {
        font-size: 22px;
    }

    main p {
        font-size: 15px;
    }

    .main-button button {
        font-size: 20px;
        white-space: nowrap;
        padding: 15px 50px;
    }

    main p:last-of-type {
        margin-bottom: 33px;
    }

    .uslugi-left__name {
        font-size: 24px;
    }
}

@media (max-width: 400px) {
    main p {
        font-size: 14px;
        white-space: nowrap;
    }

    .header-mobile-menu {
        width: 100%;
    }

    .pop-up__block {
        width: 247px;
    }

    .footer-flex-top button {
        width: 100%;
    }
}




















