/* old-standard-tt-regular - latin - analog font for 'Georgia' */
@font-face {
    font-family: 'Old Standard TT';
    font-style: normal;
    font-weight: 400;
    src: local(''),
         url('../../assets/fonts/old-standard-tt-v18-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../../assets/fonts/old-standard-tt-v18-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* source-sans-pro-regular - latin - analog font for 'Arial' */
@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    src: local(''),
         url('../../assets/fonts/source-sans-pro-v21-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../../assets/fonts/source-sans-pro-v21-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* source-sans-pro-italic - latin */
@font-face {
    font-family: 'Source Sans Pro';
    font-style: italic;
    font-weight: 400;
    src: local(''),
         url('../../assets/fonts/source-sans-pro-v21-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('../../assets/fonts/source-sans-pro-v21-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* border-box model for all elements */

html {
    box-sizing: border-box;
}

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

body {
    width: 100%;
    display: flex;
    flex-direction: column;
}

body.opened-popup {
    overflow-y: hidden;
}

.container_centered {
    width: 1280px;
    height: inherit;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section, footer {
    min-width: 1280px;
}
.dark-section {
    background: url("../../assets/images/gradient-noise.png"), radial-gradient(110.67% 538.64% at 5.73% 50%, #513D2F 0%, #1A1A1C 100%, #211F20);
}

.white-section {
    background: #FFFFFF;

}

.gray-section {
    background: #F6F6F6;
}

img {
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
}

#page-start {
    height: 120px;
    position:-webkit-sticky;
    position:sticky;
    top: 0;
}

header {
    width: 1200px;
    height: 60px;
    margin: 0 40px 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo, .logo-menu {
    width: 184px;
    height: 60px;
}

.logo-menu {
    visibility: hidden;
    position: fixed;
    top: 30px;
    right: -184px;
    z-index: 9;
    transition: all 0.5s ease-out;
}

h1, .logo-menu h2 {
    width: 190px;
    height: 35px;
    margin:0;
    font-family: 'Old Standard TT', serif;
    font-size: 32px;
    line-height: 110%;
    letter-spacing: 0.06em;
    color: #545454;
    display: block;
}

h2 {
    font-family: 'Old Standard TT', serif;
    font-size: 44px;
    line-height: 130%;
}

h3 {
    font-family: 'Old Standard TT', serif;
    font-size: 35px;
    line-height: 130%;
    letter-spacing: 0.06em;
}

h4 {
    font-family: 'Old Standard TT', serif;
    font-size: 20px;
    line-height: 115%;
    letter-spacing: 0.06em;
}

.button {
    transition-duration: 0.4s;
}

#logo h2, .logo-menu h3 {
    width: 179px;
    height: 15px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 13px;
    line-height: 15px;
    letter-spacing: 0.1em;
    color: #292929;
    display: block;
    margin: 10px 0 0 4px;
}

.drop-button {
    width: 30px;
    height: 22px;
    display: none;
    z-index: 9;
}

nav {
    width: 443px;
    height: 27px;
    padding: 0;
    align-items: center;
}

ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header li {
    display: flex;
    align-items: center;
}

header a {
    text-decoration: none;
    text-align: center;
    display: block;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15px;
    line-height: 160%;
    color: #545454;
}

nav a:hover {
    color: #292929;
}

nav a:active {
    padding-top: 3px;
    border-bottom: 3px solid #F1CDB3;
}

.active-link {
    padding-top: 3px;
    border-bottom: 3px solid #F1CDB3;
    color: #545454;
}

#pets-screen {
    min-height: 1342px;
}

#pets-screen .container_centered {
    padding: 80px 40px 100px 40px;
    align-items: center;
    justify-content: normal;
}
#pets-screen h3{
    width: 400px;
    height: 90px;
    text-align: center;
    color: #545454;
}

.cards-container {
    width: 100%;
    height: 930px;
    margin: 45px 0;
    padding: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-between;
}

.card {
    width: 270px;
    height: 435px;
    background: #FAFAFA;
    border-radius: 9px;
}

.card:hover {
    background: #FFFFFF;
    cursor: pointer;
}

.card:hover .button-light {
    background: #FDDCC4;
    border-color: #00000000;
}

.card p {
    height: 23px;
    margin: 30px auto;
    font-family: 'Old Standard TT', serif;
    font-size: 20px;
    line-height: 23px;
    text-align: center;
    letter-spacing: 0.06em;
    color: #545454;
}

.button-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 35px;
    margin: 0 auto;
    width: 187px;
    height: 52px;
    border: 2px solid #F1CDB3;
    border-radius: 100px;
    font-family: 'Old Standard TT', serif;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0.06em;
    color: #292929;
    text-decoration: none;
}

.card img {
    border-radius: 9px 9px 0px 0px;
    display: block;
}

#pagination-container {
    width: 340px;
    height: 52px;
    display: flex;
    justify-content: space-between;
}

.page-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    background-color: #F6F6F6;
    border: 2px solid #F1CDB3;
    border-radius: 100px;
    text-align: center;
    font-family: 'Old Standard TT', serif;
    font-size: 13px;
    line-height: 115%;
    color: #292929;
}

.page-button:disabled {
    border: 2px solid #CDCDCD;
    color: #CDCDCD;
}
.page-button:hover:not(:disabled, .page-number) {
    cursor: pointer;
    background-color: #FDDCC4;
    border: 2px solid #FDDCC4;
}

.page-number {
    font-size: 20px;
    background-color: #F1CDB3;
    border: 2px solid #F1CDB3;
}

.page-button:active:not(:disabled) {
    background-color: #F1CDB3;
    border: 2px solid #F1CDB3;
}

.popup-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 41, 41, 0.6);
    z-index: 8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-window:hover {
    cursor: pointer;
}

.popup-window *:hover {
    cursor:auto;
}

.popup-window .popup-button:hover, .popup-window .popup-button img:hover {
    cursor: pointer;
}

.popup-content {
    width: 900px;
    height: 500px;
    background: #FAFAFA;
    border-radius: 9px;
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 9;
    overflow: visible;
}

.popup-content:hover {
    box-shadow: 0px 2px 35px 14px rgba(13, 13, 13, 0.04);
}

.popup-image {
    width: 500px;
    height: 500px;
    border-radius: 9px 0px 0px 9px;
}

.popup-image img {
    border-radius: inherit;
}

.popup-text {
    width: 351px;
    height: 362px;
    margin: 50px 20px 88px 29px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.popup-pet-properties {
    height: 102px;
    display: flex;
    padding-left: 15px;
    flex-direction: column;
    align-items: flex-start;
    list-style: outside;
    font-size: 15px;
    line-height: 110%;
    letter-spacing: 0.06em;
    overflow:visible;
}

.popup-pet-properties li::marker {
    color: #F1CDB3;
    font-size: 10px;
  }

.popup-text h3 {
    margin-bottom: 10px;
}

.popup-text h5 {
    margin: 40px 0;
    font-size: 15px;
    line-height: 110%;
    letter-spacing: 0.06em;
}

.popup-button {
    width: 52px;
    height: 52px;
    position: absolute;
    left: 890px;
    top: -52px;
    z-index: 10;
    border: 2px solid #F1CDB3;
    border-radius: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: visible;
}

.popup-button img {
    width: 12px;
}

footer {
    min-height: 350px;
}

footer .container_centered {
    padding: 40px 40px 0 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer-flex-grid {
    width: 740px;
    display: flex;
    justify-content: space-between;
}

.block-footer {
    height: 234px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.block-footer h3 {
    height: 90px;
    color: #FFFFFF;
}

.block-footer a {
    text-decoration: none;
}

#contacts {
    width: 278px;
}

.graphic-contacts {
    width: 40px;
    height: 32px;
}

#adress {
    width: 302px;
}

.graphic-location, .graphic-location img {
    width: 22px;
    height: 32px;
    display: inline-flex
}

.block-footer h3 {
    height: 90px;
    color: #FFFFFF;
}

.block-footer h4 {
    margin-left: 20px;
    color: #F1CDB3;
}

.block-footer-item {
    height: 32px;
    display: flex;
    align-items: center;
}

#adress h3 {
    width: 270px;
}

#boston {
    height: 46px;
}

#img-puppy-bye {
    width: 300px;
    height: 310px;
}

/* --- RESPONSIVE LAYOUTS --- */

@media (min-width: 768px) and (max-width: 1279px) {

    .container_centered {
        width: 100%;
        height: 100%;
        margin: 0 auto;
    }

    section, footer {
        min-width: 768px;
    }

    .responsive-768-hidden {
        display: none;
    }

    header {
        width: 100%;
        height: 150px;
        margin: 0;
        padding: 30px;
    }

    #pets-screen {
        height: calc(1733vw*100/768);
        min-height: 1733px;
        max-height: 1850px;
    }

    #pets-screen .container_centered {
        padding: 80px 64px 76px 64px;
    }

    .cards-container {
        width: calc(580vw*100/768);
        max-width: 660px;
        height: 100%;
        margin: 30px 0 40px 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: space-between;
    }

    .popup-text {
        width: 260px;
        height: 303px;
        margin: 10px 9px 37px 11px;
    }

    .popup-content {
        width: 630px;
        height: 350px;
    }

    .popup-image {
        width: 350px;
        height: 350px;
    }

    .popup-text h5 {
        margin: 20px 0;
        font-size: 13px;
    }

    .popup-pet-properties {
        height: 87px;
    }

    .popup-button {
        left: 621px;
        top: -52px;
    }

    footer {
        height: calc(30vw*100/768 + 234px + 65px + 310vw*100/768 ); /*padding + text content + margin + image*/
        max-height: 700px;
    }

    footer .container_centered {
        padding: 30px calc(64vw*100/768) 0 calc(64vw*100/768);
        flex-direction: column;
        align-items: center;
    }

    .footer-flex-grid {
        width: calc(640vw*100/768);
    }

    .block-footer {
        margin: 0;
    }

    #adress {
        width: 290px;
    }

    #img-puppy-bye {
        width: calc(300vw*100/768);
        height: calc(310vw*100/768);
        max-width: 351px;
        max-height: 363px;
        margin-top: 65px;
    }
}

@media (max-width: 767px) {

    body.opened-menu {
        overflow-y: hidden;
    }

    .container_centered {
        width: 100%;
        height: 100%;
        margin: 0 auto;
    }

    h3 {
        font-size: calc(25vw*100/320);
    }

    .logo-menu h2 {
        color: #F1CDB3;
    }

    .logo-menu h3 {
        color: #FFFFFF;
    }

    .logo-menu.opened-menu {
        visibility: visible;
        right: 126px;
    }

    nav {
        width: 320px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #292929;
        position: fixed;
        top:0;
        right: -320px;
        transition: all 0.5s ease-out;
        visibility: hidden;
        z-index: 8;
    }

    nav.opened-menu {
        visibility:visible;
        right: 0;
    }

    nav.opened-menu a:hover {
        color: #FAFAFA;
    }

    nav::before {
        content: '';
        width: calc(100vw - 320px);
        height: 100%;
        position: fixed;
        top:0;
        left:0;
        background: rgba(41, 41, 41, 0);
        transition: all 0.5s ease-in;
    }

    nav.opened-menu::before {
        background: rgba(41, 41, 41, 0.6);
    }

    nav ul {
        flex-direction: column;
        width: 320px;
        flex-basis: 327px;
        flex-shrink: 1;
        background-color: #292929;
        z-index: 10;
    }

    nav.opened-menu .menu-up {
        width: 100%;
        flex-basis: 150px;
        flex-shrink: 5;
    }

    nav.opened-menu .menu-bottom {
        width: 100%;
        flex-basis: 150px;
        flex-shrink: 5;
    }

    .active-link {
        padding-top: 3px;
        border-bottom: 3px solid #F1CDB3;
        color: #FAFAFA;
    }

    header a {
        font-size: 32px;
        line-height: 160%;
        color: #CDCDCD;
    }

    .drop-button {
        display: block;
        transition-duration: 0.5s;
    }

    .drop-button.opened-menu {
        transform: rotate(90deg);
    }

    section, footer {
        min-width: 320px;
    }

    header {
        width: 100%;
        height: 150px;
        margin: 0;
        padding: 30px 50px 30px 10px;
    }

    #pets-screen {
        min-height: 1649px;
    }

    #pets-screen .container_centered {
        padding: calc(42vw*100/320) calc(10vw*100/320);
    }

    #pets-screen h3 {
        width: calc(300vw*100/320);
        height: calc(64vw*100/320);
    }

    .cards-container {
        width: 270px;
        height: 1365px;
        margin: 42px 0;
        padding: 0;
    }

    .responsive-768-hidden, .responsive-320-hidden {
        display: none;
    }

    #pagination-container {
        width: 300px;
    }

    .popup-content {
        width: 240px;
        height: auto;
        min-height: 321px;
    }

    .popup-text {
        width: 220px;
        height: auto;
        min-height: 321px;
        margin: 10px;
        text-align: center;
    }

    .popup-image {
        display: none;
    }

    .popup-text h3 {
        font-size: 35px;
    }

    .popup-text h5 {
        margin: 20px 0;
        font-size: 13px;
        text-align: justify;
    }

    .popup-pet-properties {
        height: auto;
        min-height: 87px;
        text-align: left;
    }

    .popup-button {
        left: 218px;
        top: -52px;
    }

    footer {
        min-height: 809px;
    }

    footer .container_centered {
        padding: calc(30vw*100/320) calc(10vw*100/320) 0 calc(10vw*100/320);
        flex-direction: column;
        align-items: center;
    }

    .footer-flex-grid {
        width: calc(300vw*100/320);
        flex-direction: column;
        align-items: center;
    }

    .block-footer {
        height: auto;
        margin: 0;
        align-items: center;
    }

    .block-footer h3 {
        height: auto;
        text-align: center;
    }

    .block-footer h4 {
        font-size: calc(20vw*100/320);
        margin-left: calc(19.87vw*100/320);
    }

    .block-footer-item {
        width: 100%;
        margin-top: 40px;
        justify-content: center;
    }

    #contacts {
        width: calc(278vw*100/320);
        min-height: calc(64vw*100/320 + 40vw*100/320 + 32vw*100/320 + 40vw*100/320); /*h3 + margin + h4 + margin + h4*/
    }

    .graphic-contacts {
        width: calc(40vw*100/320);
        height: calc(32vw*100/320);
    }

    #adress {
        width: calc(290vw*100/320);
        min-height: calc(64vw*100/320 + 40vw*100/320 + 46vw*100/320 + 32vw*100/320); /*h3 + margin + h4 + margin + h4*/
        margin-top: calc(40vw*100/320);
    }

    #adress h3 {
        width: calc(270vw*100/320);
        height: calc(64vw*100/320);
    }

    #adress .block-footer-item {
        justify-content: flex-start;
    }

    .graphic-location, .graphic-location img {
        width: calc(22vw*100/320);
        height: calc(32vw*100/320);
    }

    #img-puppy-bye {
        width: calc(260vw*100/320);
        height: calc(269vw*100/320);
        max-width: 345px;
        max-height: 356px;
        margin-top: calc(40vw*100/320);
    }

}

@media (max-width: 319px) {
    #pets-screen {
        min-height: calc(1649vw*100/320);
    }

    footer {
        min-height: calc(809vw*100/320);
    }

    #pets-screen h3 {
        width: 300px;
        height: 64px;
        font-size: 25px;
    }

    .block-footer-item {
        margin-top: calc(40vw*100/320);
    }

    .popup-button {
        left: auto;
        right: 0;
    }
}

@media (max-width: 767px) and (max-height: 460px) {
    .logo-menu, .drop-button {
        z-index: 8;
    }
}
