@media (max-width: 1020px) {
    
    /* Hero */

    .hero-img {
        display: none;
    }

    .hero-img-mob {
        display: block;
        margin-bottom: 20px;
        max-width: 500px;
    }

    .hero-content-block {
        display: flex;
        flex-direction: column;
    }

    .hero-wrapper {
        justify-content: center;
    }

    .hero-title {
        text-align: center;
    }

    .mob-btn {
        text-align: center;
        font-size: 15px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-descr {
        text-align: center;
    }

    /* About Us */

    .content-block {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .about-us-text-decor, .about-us-text {
        text-align: center;
    }

    /* Contact Us */
    
    .contact-us-wrapper::after {
        display: none;
    }

    /* Footer */


    .footer {
        padding: 60px 0 10px 0;
    }

    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-bottom: 0;
    }

    .footer-logo {
        display: none;
    }
    
    .footer-logo-mob {
        display: block;
    }

    .contact-list-item {
        font-size: 14px;
        font-weight: 600;
    }

    .footer-list {
        align-items: center;
        gap: 15px;
        padding: 60px 0;
        border-top: 1px solid #3c4d49;
    }

    /* Pop-up */
    .pop-up-wrapper {
        padding: 30px 120px;
        max-width: 400px;
        border-radius: 10px;
    }

    .checkmark {
        max-width: 120px;
    }
    
    .pop-up-title {
        margin-bottom: 10px;
    }
}

@media (max-width:770px) {

    .main {
        margin-top: 60px;
    }

    .container {
        max-width: 740px;
        padding: 0 10px;
    }

    /* Header */

    .header {
        padding: 10px 0;
    }

    .logo {
        width: 104px;
        margin-right: auto;
    }

    .nav {
        display: none;
    }

    .hero-btn {
        font-size: 13px;
        padding: 8px 40px;
        border-radius: 5px;
    }

    .btn {
        font-size: 15px;
    }

    .header-wrapper {
        gap: 20px;
    }

    /* Hero */

    .hero {
        margin-bottom: 60px;
    }

    .hero-title {
        font-size: 32px;
        text-align: center;
    }
    
    .hero-img-mob {
        max-width: 355px;
    }

    .descr {
        font-size: 14px;
        text-align: center;
        max-width: 355px;
    }

    .hero-text {
        margin-bottom: 40px;
        max-width: 355px;
    }

    /* Services */

    .services {
        padding: 60px 0;
        margin-bottom: 80px;
    }

    .second-title {
        font-size: 36px;
        text-align: center;
        max-width: 400px;
    }

    .section-text {
        gap: 10px;
    }

    .services-wrapper {
        gap: 40px;
        flex-direction: column;
    }

    .services-item {
        padding: 25px 25px 75px 25px;
        min-width: 270px
    }

    .third-title {
        font-size: 17px;
        margin-bottom: 10px;
        max-width: 295px;
    }

    .services-item-descr {
        text-align: start;
        max-width: 270px;
        font-size: 12px;
        line-height: 22px;
    }

    .services-img {
        width: 86px;
        right: -10px;
        bottom: -10px;
    }

    .services-text::after {
        display: none;
    }

    /* About us */

    .about-us {
        margin-bottom: 80px;
    }
    

    .about-us-img {
        max-width: 300px;
    }

    .about-us-text {
        margin-bottom: 10px;
    }

    .about-us-text-decor {
        font-size: 16px;
        max-width: 300px;
    }

    .descr-block {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Cases */

    .cases {
        margin-bottom: 80px;
    }

    .cases-item {
        min-width: 355px;
    }

    .case-img {
        height: 230px;
        padding: 0;
    }

    .case-text-block {
        flex-direction: column-reverse;
        justify-content: start;
        gap: 20px;
        padding: 20px 20px 30px 20px;
    }

    .cases-title {
        font-size: 18px;
        max-width: 315px;
    }

    .tag-list {
        justify-content: start;
        max-width: 315px
    }

    /* Contact Us */

    .contact-us {
        margin-bottom: 60px;
    }

    .form-inputs {
        min-width: 300px;
        gap: 10px;
    }

    .contact-us-wrapper::after {
        display: none;
    }

    .contact-us-descr {
        max-width: 400px;
    }

    /* Burger */

    .burger-icon, .nav-mobile {
        display: block;
    }

    .menu-btn {
        width: 30px;
        height: 30px;
        position: relative;
        z-index:2;
        overflow: hidden;
    }
    
    .menu-btn .bar {
        width: 24px;
        height: 3px;
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 10px;
        transform: translate(-50%, -50%);
        background-color: #3C4E4A;
        transition: all 0.3s ease-in-out;
    }

    .menu-btn {
        padding: 5px 5px;
        background-color: #fff;
        box-shadow: 0px 0px 15px #1938321e;
        border-radius: 6px;
    }
    
    .menu-btn .bar:nth-of-type(2) {
        top: calc(50% - 7px);
    }
    .menu-btn .bar:nth-of-type(3) {
        top: calc(50% + 7px);
    }
    
    .menu-btn.active .bar:nth-of-type(1) {
      display: none;
    }
    .menu-btn.active .bar:nth-of-type(2) {
      top: 50%;
      transform: translate(-50%, 0%) rotate(45deg);  
    }
    .menu-btn.active .bar:nth-of-type(3) {
      top: 50%;
      transform: translate(-50%, 0%) rotate(-45deg); 
    }
    
    
    .nav-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 60px 40px;
        background: #F8F7FF;
        transform: translateX(100%);
        transition: transform 0.5s; 
    }
    
    .nav-mobile.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
    }
    
    .nav-link {
        font-size: 18px;
    }

    .nav-link:focus {
        border-radius: 5px;
        padding: 5px 15px;
    }

     /* Pop-up */
    .pop-up {
        padding: 0;
    }

     .pop-up-wrapper {
        padding: 60px 50px;
        max-width: 250px;
        border-radius: 10px;
    }

    .checkmark {
        max-width: 120px;
    }
    
    .pop-up-title {
        margin-bottom: 10px;
        font-size: 28px;
    }

}
