html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: .3s;
    background: #F6F6F6;
}


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

::-webkit-scrollbar {
    width: 0;
}

main {
    background: #F6F6F6;
}

.wrapp {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

.wrapper {
    padding: 0 40px;
    margin: auto;
}


h1 {
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 32px;
    line-height: 55%;
    display: flex;
    align-items: center;
    letter-spacing: 0.06em;
    color: #545454;
}

h3 {
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 0.06em;
    color: #545454;
    text-align: center;
    padding-bottom: 60px;
}


/* Header style start */

header {
    padding: 15px 0;
    background: #fff;
    position: sticky;
    top: 0;
    height: 120px;
}


header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo-active {
    display: none;
}



.subtitle {
    font-family: 'Arial';
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 15px;
    display: flex;
    align-items: center;
    letter-spacing: 0.1em;
    color: #292929;
    margin-top: 0;
}

.nav {
    margin-left: auto;
}

.nav_list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.nav_item {
    margin-right: 40px;
    list-style-type: none;
    margin-right: 36px;
}

.nav-link {
    font-family: 'Arial';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 160%;
    color: #545454;
    text-decoration: none;
}

.nav_item:last-child {
    margin-right: 0;
}

.nav_item:nth-child(2) {
    border-bottom: #F1CDB3 solid 2px;
}

.nav_item:nth-child(2):hover {
    border-bottom: none;
}

.nav_item:hover {
    border-bottom: #F1CDB3 solid 2px;
}


/* Header style end */

/* Main style start*/

/* section_pets style start*/

.section .wrapper {
    padding: 80px 40px 100px;
}

.section_pets {
    background-color: #F6F6F6;
    padding: 80px 0 100px;
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 130%;
    letter-spacing: 0.06em;
}

.title-section {
    margin: 0;
}

.pets {
    width: 400px;
    height: 90px;
    color: #545454;
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    margin-left: auto;
    margin-right: auto;
}

.pet-cards {
    display: flex;
    gap: 30px 40px;
    flex-wrap: wrap;
}

.pet-card {
    background: #FAFAFA;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.pet-card:hover {
    background: #F6F6F6;
    box-shadow: 0px 2px 35px 14px rgba(13, 13, 13, 0.04);
}



.pet-card_title {
    margin: 30px 0 30px 0;
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    letter-spacing: 0.06em;
    color: #545454;
}


.button-pet {
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 22px;
    letter-spacing: 0.06em;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 42px;
    border: 2px solid #F1CDB3;
    box-sizing: border-box;
    border-radius: 100px;
    background-color: transparent;
    color: #292929;
    cursor: pointer;
    margin-bottom: 28px;
}

.pet-card:hover .button-pet {
    background: #F1CDB3;
}

.navigation {
    padding-top: 62px;
    width: 340px;
    display: flex;
    justify-content: space-between;
    margin: auto;
}

.button-navigation {
    width: 52px;
    height: 52px;
    border: 2px solid #F1CDB3;
    box-sizing: border-box;
    border-radius: 100px;
    background-color: transparent;
    margin-top: auto;
    margin-bottom: auto;
    cursor: pointer;
}

.button-navigation:nth-child(3) {
    background: #F1CDB3;
    border: none;
}

.button-navigation:nth-child(1),
.button-navigation:nth-child(2) {
    border-color: #CDCDCD;
    color: #CDCDCD;
    cursor: default;
}

.button-navigation:nth-child(3):hover {
    cursor: default;
}


.button-navigation:nth-child(4):hover,
.button-navigation:nth-child(5):hover {
    background: #FDDCC4;
    border: none;
}

/* Modal window start */

.modal {
    position: fixed;
    z-index: 1;
    padding-top: 104px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: rgba(41, 41, 41, 0.6);
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-content.modal-open {
    display: inline;
    opacity: 0;
}


.modal-content {
    display: none;
    background: #FAFAFA;
    margin: auto;
    border-radius: 9px;
    opacity: none;
    cursor: default;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 82%;
    height: 350px;
    margin-top: 50px;
}

.modal-close {
    color: #292929;
    border: 2px solid #F1CDB3;
    border-radius: 50px;
    width: 52px;
    height: 52px;
    position: fixed;
    margin-left: 40%;
}

.modal-close:hover {
    background: #FDDCC4;
    cursor: pointer;
}

.modal-pet-img {
    width: 350px;
    height: 350px;
    background: url('../../assets/images/pets-katrine.png');
    background-size: cover;
    border-radius: 9px;
}

.modal-pet-img:nth-child(2) {
    background: url('../../assets/images/pets-jennifer.png');
}

.nonscroll {
    overflow: hidden;
    height: 100vh;
}

.modal-description {
    max-width: 260px;
    height: 330px;
    text-align: left;
    margin-left: 10px;
}

.name {
    font-size: 35px;
    line-height: 130%;
    letter-spacing: 0.06em;
}

.type {
    margin-top: 10px;
}

.modal-list {
    padding-left: 16px;
}

.modal-list::marker {
    color: #F1CDB3;
}

.about-pet {
    font-size: 13px;
    line-height: 110%;
    margin-bottom: 0;
}

.list {
    font-size: 15px;
    line-height: 110%;
    margin: 0;
}



/* Modal window end */


/* section_pets style end*/




/* Footer style start*/

footer {
    background-image: url('../../assets/images/footer-background.png');
    background-repeat: no-repeat;
    padding-top: 40px;
}

footer .wrapper {
    display: flex;
    justify-content: space-between;
}

.contacts,
.location {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #F1CDB3;
    padding-bottom: 60px;
}

.location {
    margin-right: 10px;
}

.footer-puppy {
    background-image: url('../../assets/images/footer-puppy.png');
    width: 300px;
    height: 310px;
}

.title-contacts,
.title-location {
    color: #fff;
    margin: 0;
    text-align: left;
    padding-bottom: 0;
}

.title-contacts {
    width: 279px;
}

.title-location {
    width: 293px;
}

.icon {
    margin-right: 20px;
    width: 40px;
    height: 32px;
}

.icon:hover {
    filter: invert(26%) sepia(15%) saturate(638%) hue-rotate(7deg) brightness(92%) contrast(87%);
}


.link {
    text-decoration: none;
    color: #F1CDB3;
    font-family: 'Georgia';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
}

.link:hover {
    color: #FDDCC4;
}

.mail_icon {
    background-image: url('../../assets/icons/icon-email.svg');

}

.phone_icon {
    background-image: url('../../assets/icons/icon-phone.svg');
}

.map_icon {
    background: url('../../assets/icons/icon-marker.svg');
    background-repeat: no-repeat;
    margin-right: 0;
}


/* footer style end*/

@media (min-width: 768px) and (max-width: 1279px) {
    h1 {
        margin: 22px 0;
    }

    .wrapper {
        padding: 0 30px;
    }

    .section .wrapper {
        padding-bottom: 76px;
    }

    .title-section {
        padding-bottom: 30px;
    }

    .pet-cards {
        justify-content: center;
        max-width: 768px;
        margin: 0 auto;
    }

    .pet-card:nth-child(7),
    .pet-card:nth-child(8) {
        display: none;
    }

    .navigation {
        padding-top: 40px;
    }

    footer {
        padding-top: 30px;
        background: radial-gradient(110.67% 538.64% at 5.73% 50%, #513D2F 0%, #1A1A1C 100%);
    }

    footer .wrapper {
        flex-wrap: wrap;
        justify-content: space-around;
        max-width: 768px;
    }

    .contacts,
    .location {
        padding-top: 0;
        padding-bottom: 64px;
        justify-content: flex-start;
    }

    .link {
        margin-top: 40px;
    }

    .location .link {
        margin-top: 32px;
    }

}

@media (min-width: 319px) and (max-width: 767px) {

    h1 {
        margin: 22px 0;
    }

    h3 {
        font-size: 25px;
        line-height: 130%;
    }


    .wrapper {
        padding: 0 10px;
    }


    .section .wrapper {
        padding: 42px 0px 42px;
    }

    .title-section {
        padding-bottom: 40px;
    }

    .hamburger {
        margin-right: 14%;
        transition: 2s all;
    }

    .wrapp.active {
        width: 100vw;
        height: 100vh;
        background-color: #000;
        z-index: 1;
    }


    .hamburger .line {
        width: 30px;
        height: 2px;
        background-color: #000;
        display: block;
        margin: 8px auto;
        -webkit-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
    }

    .line:nth-child(3) {
        margin-bottom: 0;
    }

    .line:nth-child(1) {
        margin-top: 0;
    }

    .hamburger:hover {
        cursor: pointer;
    }

    #hamburger.active {
        position: fixed;
        right: 5px;
        top: 45px;
        -webkit-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        -o-transform: rotate(90deg);
        transform: rotate(90deg);
    }

    .logo-active {
        z-index: 1;
        position: absolute;
        top: 10px;
        margin-right: 112px;
        display: block;
    }


    .nav {
        display: flex;
        position: fixed;
        height: 100%;
        padding: 0;
        top: 0;
        left: 0;
        right: -320px;
        justify-content: center;
        max-width: 320px;
        background: #fff;
    }

    .nav.show {
        animation-duration: 2s;
        animation-name: slidein;
        animation-iteration-count: 1;
        animation-fill-mode: forwards;
    }

    .disable-scroll {
        overflow: hidden;
        height: 100vh;
    }

    @keyframes slidein {
        from {
            right: -320px;
        }

        to {
            right: 0;
        }
    }

    .nav_list {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 210px;
    }

    .nav-link {
        font-size: 32px;
        line-height: 160%;
    }

    .nav_item {
        margin-bottom: 40px;
    }

    .pet-cards {
        justify-content: center;
    }

    .pet-card:nth-child(4),
    .pet-card:nth-child(5),
    .pet-card:nth-child(6),
    .pet-card:nth-child(7),
    .pet-card:nth-child(8) {
        display: none;
    }

    .modal-pet-img {
        display: none;
    }

    .modal-content {
        max-width: 80%;
    }

    .navigation {
        padding-top: 43px;
        width: 300px;
    }

    footer {
        padding-top: 30px;
        background: radial-gradient(110.67% 538.64% at 5.73% 50%, #513D2F 0%, #1A1A1C 100%);
    }

    footer .wrapper {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .contacts,
    .location {
        padding-top: 0;
        padding-bottom: 42px;
        justify-content: flex-start;
    }

    .footer-puppy {
        width: 260px;
        height: 269px;
        background-size: cover;
    }

    .title-contacts,
    .title-location {
        text-align: center;
    }

    .contacts .link {
        margin: 0 auto;
        margin-top: 39px;
    }

    .title-location {
        padding-left: 10px;
    }

    .location .link {
        margin-left: 0.8px;
        margin-top: 38px;
    }

}

@media (max-width: 318px) {

    h1 {
        margin: 22px 0;
    }

    h3 {
        font-size: 25px;
        line-height: 130%;
    }


    .wrapper {
        padding: 0 10px;
    }


    .section .wrapper {
        padding: 42px 0px 42px;
    }

    .title-section {
        padding-bottom: 40px;
    }

    .hamburger {
        margin-right: 14%;
        transition: 2s all;
    }


    .hamburger .line {
        width: 30px;
        height: 2px;
        background-color: #000;
        display: block;
        margin: 8px auto;
        -webkit-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
    }

    .line:nth-child(3) {
        margin-bottom: 0;
    }

    .line:nth-child(1) {
        margin-top: 0;
    }

    .hamburger:hover {
        cursor: pointer;
    }

    #hamburger.active {
        position: fixed;
        right: 5px;
        top: 45px;
        -webkit-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        -o-transform: rotate(90deg);
        transform: rotate(90deg);
    }



    c.nav {
        display: none;
    }

    .nav.show {
        display: flex;
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #fff;
        padding: 0;
        top: 0;
        left: 0;
        justify-content: center;
    }

    .nav_list {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-link {
        font-size: 32px;
        line-height: 160%;
    }

    .nav_item {
        margin-bottom: 40px;
    }

    .pet-cards {
        justify-content: center;
    }

    .pet-card:nth-child(4),
    .pet-card:nth-child(5),
    .pet-card:nth-child(6),
    .pet-card:nth-child(7),
    .pet-card:nth-child(8) {
        display: none;
    }

    .navigation {
        padding-top: 43px;
        width: 300px;
    }

    footer {
        padding-top: 30px;
        background: radial-gradient(110.67% 538.64% at 5.73% 50%, #513D2F 0%, #1A1A1C 100%);
    }

    footer .wrapper {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .contacts,
    .location {
        padding-top: 0;
        padding-bottom: 42px;
        justify-content: flex-start;
    }

    .footer-puppy {
        max-width: 260px;
        max-height: 269px;
        background-size: cover;
    }

    .title-contacts,
    .title-location {
        text-align: center;
    }

    .contacts .link {
        margin: 0 auto;
        margin-top: 39px;
    }

    .title-location {
        padding-left: 10px;
    }

    .location .link {
        margin-left: 0.8px;
        margin-top: 38px;
    }


}