@media screen and (max-width: 1279px) {
    .our__friends__petscards__items {
        justify-content: center;
        gap: 30px 40px;
        max-width: 710px;
    }

    .our__friends__pop-up__wrapper {
        max-width: 630px;
        max-height: 350px;
        gap: 11px;
    }

    .our__friends__pop-up__image img {
        width: 350px;
        height: 350px;
    }

    .our__friends__pop-up__description {
        margin-top: 10px;
        margin-right: 9px;
    }
    
    .our__friends__pop-up__breed {
        padding: 10px 0 20px;
    }

    .our__friends__pop-up__about {
        font-size: 13px;
        letter-spacing: 0.04em;
        padding-bottom: 20px;  
    }
    
    .our__friends__pop-up__characteristic__item:not(:last-child) {
        margin-bottom: 5px;
    }
}

@media screen and (max-width: 1130px) {
    .app__shelter {
        height: auto;
    }

    .footer__wrapper {
        gap: 40px;
    }
}

@media screen and (max-width: 970px) {
    .footer__wrapper {
        height: 549px;
        padding-top: 30px;
        padding-bottom: 60px;
        background: url(../../assets/images/footer-puppy.png) bottom center no-repeat;
        display: flex;
        justify-content: center;
        gap: 60px;
    }
}

@media screen and (max-width: 900px) {
    .our_friends__content {
        gap: 12px;
        margin: 30px 0 40px;
    }
}

@media screen and (max-width: 774px) {
    .container {
        padding: 0 30px;
    }

    .app__section {
        padding: 80px 0 76px 0;
    }

    .header__nav__item:not(:last-child) {
        margin-right: 35px;
    }
}

@media screen and (max-width: 767px) {
    .header__btn-burger {
        display: flex;
        margin-right: 43px;
    }

    .header__nav__items {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 0px;
        top: 0;
        z-index: 1;
        width: 320px;
        height:  100vh;
        background: #ffffff;
        transform: translateX(100%);
        visibility: hidden;
        overflow-x: hidden;
        transition: visibility 1s, transform 1s;
        animation: slideOut 1s ease-out;
    }

    .openMenu {
        visibility: visible;
        transform: translateX(0);
        animation: slideOpen 1s ease-out;
    }

    .header__nav__items.openMenu .header__logo {
        position: absolute;
        top: 30px;
        left: 10px;
    }

    @keyframes slideOpen {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }

    @keyframes slideOut {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(100%);
        }
    }
    
    .header__nav__item a {
        font-size: 32px;
    }
    
    .header__nav__item:not(:last-child) {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .our_friends__content {
        margin: 42px 0;
        max-width: 320px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 80px;
    }

    .our__friends__pop-up__wrapper {
        max-width: 240px;
        max-height: 430px;
        gap: 0;
        padding: 10px;
        box-sizing: border-box;
        text-align: center;
    }

    .our__friends__pop-up__image {
        display: none;
    }

    .our__friends__pop-up__description {
        margin-top: 0px;
        margin-right: 0px;
    }

    .our__friends__pop-up__about {
        text-align: justify;
        padding-bottom: 24px;  
    }

    .our__friends__pop-up__characteristic {    
        text-align: start;
    }

    .our__friends__pop-up__btn-close {
        right: -32px;
    }

    .our__friends__pagination {
        gap: 10px;
    }
}

@media screen and (max-width: 700px) {
    .footer__wrapper {
        height: 819px;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        gap: 30px;
    }
    
    .footer__contacts,
    .footer__address {
        align-items: center;
        max-height: 268px;
    }

    .footer__contacts__title, 
    .footer__address__title {
        text-align: center;
        line-height: 128%;
    }

    .footer__contacts__items {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__address__items {
        list-style: none;
    }

    .footer__address__item:first-child {
        margin: 40px 0 39px 0;
    }
}

@media screen and (max-width: 425px) {
    .app__section {
        padding: 41px 0;
    }

    .section__title {
        font-size: 25px;
        text-align: center;
    }

    .container {
        padding: 0 10px;
    }
}

@media screen and (max-width: 326px) {
    .footer__wrapper {
        height: 719px;
        gap: 40px;
        background-size: 87%;
    }

    .footer__contacts__title, 
    .footer__address__title {
        font-size: 25px;
        max-width: 240px;
    }

    .footer__contacts, .footer__address {
        max-height: 208px;
    }

    .footer__contacts__items {
        min-height: 104px;
    }

    .footer__address__items {
        min-height: 104px;
    }
}