* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  

  
  body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0px auto;
    padding: 0;
    min-height: 100vh;
    background: var(--color-light-l);
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); 
    transition: opacity 0.3s ease;
    z-index: 4;
}

.overlay.active-overlay {
    display: block;
    opacity: 1; 
}

main {
    flex: 1 0 auto;
}

html {
    scroll-behavior: smooth;
  }

:root {
	--color-light-xl: #fff;
	--color-light-l: #f6f6f6;
	--color-light-s: #fafafa;
	--color-dark-s: #cdcdcd;
	--color-dark-m: #b2b2b2;
	--color-dark-l: #545454;
	--color-dark-xl: #4c4c4c;
	--color-dark-2xl: #444;
	--color-dark-3xl: #292929;
	--color-primary: #f1cdb3;
	--color-primary-light: #fddcc4;
	--start-screen-gradient-background: #211f20;
	--footer-gradient-background: #211f20;
}

:root {
    --font-family: "Georgia", sans-serif;
    --second-family: "Arial", sans-serif;
    --third-family: "Inter", sans-serif;
  }

/*----------------------------------------------------------------header------------------------------------------------------------------*/

.header {
    height: 120px;
    background: var(--color-light-xl);
}

.header-content {
    margin: 0px auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 30px;
}

.menu {
    margin-bottom: 90px;
    display: flex;
    justify-content: space-between;
}

.sub-title {
    text-align: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.title {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 32px;
    line-height: 110%;
    letter-spacing: 0.06em;
    color: var(--color-dark-l);
}

.subtitle {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--color-dark-3xl);
    margin-top: 10px;
}

.header-nav {
    display: flex;
    gap: 35px;
}

.header-li {
    list-style: none;
    margin-top: 16px;
}

.header-link {
    text-decoration: none;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 160%;
    color: var(--color-dark-l);
    transition: 0.4s;
    &:hover {
        font-family: var(--second-family);
        font-weight: 400;
        font-size: 15px;
        line-height: 160%;
        color: var(--color-dark-3xl);
    }
}

.header-link-active {
    text-decoration: none;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 160%;
    color: var(--color-dark-l);
    cursor: default;
    &::before{
        content: "";
        position: absolute;
        width: 58px;
        height: 3px;
        background: var(--color-primary);
        margin-top: 24px;
        margin-right: 114px;
    }
}

/*------------------------------------------------------pets-slider-------------------------------------------------------------------*/

#Pets {
    height: 1342px;
    background: var(--color-light-l);
    padding: 80px 40px;
    margin-right: 14px;
}

.pets-content {
    margin: 0px auto;
}

.pets-head {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 35px;
    line-height: 130%;
    letter-spacing: 0.06em;
    text-align: center;
    color: var(--color-dark-l);
    margin-left: 400px;
    margin-bottom: 60px;
    width: 400px;
}

.slider {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
}

.slides-768 {
    display: none;
}

.slider-line {
    display: flex;
    position: relative;
    transition: left 2s ease;
    width: 7550px;
    display: flex;
    gap: 30px 40px;
    flex-wrap: wrap;
    height: 930px;
}

.slide {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    background: var(--color-light-s);
    border-radius: 9px;
    padding-right: 41px;
    padding-left: 41px;
    padding-bottom: 30px;
    width: 270px;
    height: 435px;
    transition: background 0.5s ease;
    &:hover {
        background: var(--color-light-xl);
    }
    &:hover .lik-slider {
        background: var(--color-primary-light);
        border: 2px solid var(--color-primary-light);
    }
}

.header-slider {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-align: center;
    color: var(--color-dark-l);
}

.lik-slider {
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 17px;
    line-height: 130%;
    letter-spacing: 0.06em;
    color: var(--color-dark-3xl);
    border: 2px solid var(--color-primary);
    border-radius: 100px;
    padding: 15px 42px;
    width: 187px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s ease;
}

.slide-img {
    border-radius: 9px 9px 0 0;
    width: 270px;
    height: 270px;
}

.novigation {
    display: flex;
    gap: 20px;
    margin-top: 58px;
    margin-left: 430px;
}

.button-slider {
    border: 2px solid var(--color-primary);
    border-radius: 100px;
    padding: 14px 21px;
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 115%;
    letter-spacing: 0.06em;
    transition: all 0.5s ease;
}

.active {
    cursor: pointer;
    transition: 0.3s;
    transition: all 0.5s ease;
    &:hover {
        background: var(--color-primary-light);
        border: 2px solid var(--color-primary-light);
    }
}

.inactive {
    border: 2px solid var(--color-dark-s);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 115%;
    letter-spacing: 0.06em;
    text-align: center;
    color: var(--color-dark-s);
    cursor: default;
    transition: all 0.5s ease;
}

.active-number {
    background: var(--color-primary-light);
    border: 2px solid var(--color-primary-light);
    cursor: default;
    transition: all 0.5s ease;
}

.modal-window {
    width: 952px;
    height: 552px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex-direction: row-reverse;
    display: flex;
    z-index: 1001;
    opacity: 0; 
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

.modal-window.active-window {
    opacity: 1; 
    transform: translate(-50%, -50%);
    visibility: visible;
}

.modal-window.closing {
    opacity: 0;
    transform: translate(-50%, -50%);
}

.button-pop-up {
    width: 52px;
    height: 52px;
    border-radius: 100px;
    border: 2px solid var(--color-primary); 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -50px;
    margin-left: -10px;
    cursor: pointer;
    transition: background 0.5s ease;
    &:hover {
        background: var(--color-primary-light);
        border: 2px solid var(--color-primary-light);
    }
}

.pop-up {
    border-radius: 0.56rem;
    width: 900px;
    height: 500px;
    box-shadow: 0 2px 35px 14px rgba(13, 13, 13, 0.04);
    background: var(--color-light-s);
    display: flex;
}

.img-pop-up {
    border-radius: 9px 0 0 9px;
    width: 500px;
    height: 500px;
}

.content-pop-up {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 50px 20px 88px 29px;
}

.header-pop-up {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 35px;
    line-height: 130%;
    letter-spacing: 0.06em;
    color: #000;
    margin-bottom: 10px;
}

.sub-header-pop-up {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 115%;
    letter-spacing: 0.06em;
    color: #000;
}

.text-pop-up {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 110%;
    letter-spacing: 0.06em;
    color: #000;
}

.ul-pop-up {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 14px;
    margin-top: 5px;
}

.li-pop-up {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 15px;
    line-height: 110%;
    letter-spacing: 0.06em;
    color: #000;
}

.span-pop-up {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 110%;
    letter-spacing: 0.06em;
    color: #000;
}

/*--------------------------------------------------------footer----------------------------------------------------------------------*/

.footer {
    height: 350px;
    background: url('assets/95577108af837b8b441616746225b66e.png'), radial-gradient(110.67% 538.64% at 5.73% 50%, #513D2F 0%, #1A1A1C 100%), #211F20;
}

.footer-content {
    display: flex;
    padding-top: 40px;
    justify-content: center;
    transition: all 0.5s ease;
}

.cell-footer {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-right: 160px;
    transition: all 0.5s ease;
}

.second-footer{
    margin-left: -40px;
    transition: all 0.5s ease;
}

.head-footer {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 34px;
    line-height: 130%;
    letter-spacing: 0.06em;
    color: var(--color-light-xl);
    height: 90px;
    width: 278px;
    transition: all 0.5s ease;
}

.content-footer {
    display: flex;
    align-items: center;
    transition: all 0.5s ease;
}

.text-footer {
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 115%;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    margin-left: 20px;
    width: 260px;
    transition: 0.3s;
    &:hover {
        color: var(--color-primary-light);
    }
    transition: all 0.5s ease;
}

.icn {
    margin-top: -5px;
    transition: all 0.5s ease;
}

.icnn {
    margin-top: -7px;
    transition: all 0.5s ease;
}

.footer-puppy {
    width: 300px;
    height: 310px;
    transition: width 0.5s ease, height 0.5s ease;
}

.nav-burger {
    display: none;
}

.burger-menu {
    display: none;
}

@media (min-width: 1279px) {
    .header-content {
        width: 1280px;
        transition: all 0.5s ease;
    }

    .pets-content {
        width: 1200px;
        transition: all 0.5s ease;
    }

    .footer-content {
        width: 1280px;
        margin: 0px auto;
        transition: all 0.5s ease;
    }
}

@media (max-width: 1279px) {
    #Pets {
        height: 1733px;
        padding: 80px 30px;
    }

    .pets-content {
        width: 708px;
    }
    .slides-768 {
        display: flex;
    }

    .slider {
        width: 580px;
        margin-left: 64px;
    }

    .slider-line {
        transition: all 0.5s ease;
        width: 5070px;
        height: 1365px;
    }
   
    .slides {
        height: 1365px;
    }

    .modal-window {
        width: 682px;
        height: 402px;
    }

    .pop-up {
        width: 630px;
        height: 350px;
    }
    
    .img-pop-up {
        width: 349px;
        height: 350px;
    }
    
    .content-pop-up {
        gap: 20px;
        padding: 10px 10px 37px 10px;
    }
    
    .text-pop-up {
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 13px;
        line-height: 110%;
        letter-spacing: 0.06em;
        color: #000;
    }
    
    .ul-pop-up {
        gap: 5px;
        margin-left: 14px;
        margin-top: 0;
    }

    .footer-content {
        flex-wrap: wrap;
        padding-top: 30px;
        transition: all 0.5s ease;
    }

    .cell-footer {
        margin-right: 55px;
        margin-bottom: 65px;
        padding-top: 0;
        margin-left: 55px;
        transition: all 0.5s ease;
    }

    .second-footer {
        margin-left: -34px;
        transition: all 0.5s ease;
    }

    .footer-puppy {
        margin-top: -3px;
        transition: width 0.5s ease, height 0.5s ease;
    }

    .pets-head {
        margin-left: 154px;
        margin-bottom: 30px;
    }

    .slide-768 {
        display: none;
    }

    .novigation {
        margin-top: 38px;
        margin-left: 184px;
    }

    .header-content {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 1053px) {
    .footer {
        height: 639px;
        transition: all 0.5s ease;
    }
}

@media (max-width: 767px) {
    .header-nav {
        display: none;
    }

    .footer {
        height: 809px;
        transition: all 0.5s ease;
    } 

    .footer-content {
        padding-left: 10px;
        padding-right: 10px;
        transition: all 0.5s ease;
    }

    .footer-puppy {
        width: 260px;
        height: 269px;
        margin-top: 0;
        transition: width 0.5s ease, height 0.5s ease;
    }

    .cell-footer {
        align-items: center;
        margin: 0 0 40px 0;
        transition: all 0.5s ease;
    }

    .head-footer {
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 25px;
        line-height: 130%;
        letter-spacing: 0.06em;
        text-align: center;
        color: var(--color-light-xl);
        height: 64px;
        transition: all 0.5s ease;
    }

    .text-footer {
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 20px;
        line-height: 115%;
        letter-spacing: 0.06em;
        color: var(--color-primary);
        width: auto;
        transition: all 0.5s ease;
    }

    .icnn {
        margin-top: 0;
        transition: all 0.5s ease;
    }

    .icn {
        margin-top: 0;
        transition: all 0.5s ease;
    }

    .content-footer {
        text-align: center;
        transition: all 0.5s ease;
    }

    .t-end {
        margin-right: 27px;
        transition: all 0.5s ease;
    }

    .burger-menu {
        z-index: 22;
        display: block;
        position: relative;
        width: 30px;
        height: 22px;
        cursor: pointer;
        margin-top: 19px;
        transition: transform 0.3s ease;
    }

    .active-icon {
        transform: rotate(90deg);
    }

    .burger-menu span,
    .burger-menu::before,
    .burger-menu::after {
        left: 0;
        position: absolute;
        height: 2px;
        width: 30px;
        transition: all 0.3s ease 0s;
        background-color: #000000;
    }

    .burger-menu::before,
    .burger-menu::after {
        content: " ";
    }

    .burger-menu::before {
        top: 0;
    }

    .burger-menu::after {
        bottom: 0;
    }
    
    .burger-menu span {
        top: 50%;
        transform: scale(1) translate(0px, -50%);
    }

    .nav-burger {
        position: absolute;
        width: 320px;
        height: 100%;
        z-index: 21;
        background: var(--color-light-s);
        padding: 248px 38px;
        top: 0;
        right: 0; 
        transform: translateX(100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        display: none; 
    }
    
    .active-menu {
        transform: translateX(0);
        opacity: 1;
        display: block;
    }

    .header-ul-burger {
        display: flex;
        flex-direction: column;
        gap: 42px;
        text-align: center;
    }

    .header-li-burger {
        list-style: none;
    }

    .header-link-burger {
        text-decoration: none;
        font-family: var(--second-family);
        font-weight: 400;
        font-size: 32px;
        line-height: 160%;
        color: var(--color-dark-2xl);
        transition: 0.4s;
        &:hover {
            font-family: var(--second-family);
            font-weight: 400;
            font-size: 32px;
            line-height: 160%;
            color: var(--color-dark-3xl);
        }
    }
    
    .header-link-active-burger {
        text-decoration: none;
        font-family: var(--second-family);
        font-weight: 400;
        font-size: 32px;
        line-height: 160%;
        color: var(--color-dark-3xl);
        cursor: default;
        &::before{
            content: "";
            position: absolute;
            width: 123px;
            height: 3px;
            background: var(--color-primary);
            margin-top: 50px;
        }
    }

    .slide-320 {
        display: none;
    }

    .slider {
        width: 270px;
        margin-left: 15px;
    }

    .slider-line {
        transition: all 0.5s ease;
    }

    .slides {
        width: 270px;
        height: 1365px;
    }

    .modal-window {
        width: 270px;
        height: 393px;
    }

    .pop-up {
        border-radius: 9px;
        width: 240px;
        height: 400px;
    }
    
    .img-pop-up {
        display: none;
    }
    
    .content-pop-up {
        padding: 10px;
    }

    .header-pop-up {
        text-align: center;
    }

    .sub-header-pop-up {
        text-align: center;
    }
    
    .text-pop-up {
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 13px;
        line-height: 110%;
        letter-spacing: 0.06em;
        text-align: justify;
        color: #000;
    }
    
    .ul-pop-up {
        margin-left: 14px;
    }   

    .pets-content {
        width: 300px;
    }

    #Pets {
        height: 1649px;
        padding: 42px 10px;
    }

    .pets-head {
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 25px;
        line-height: 130%;
        letter-spacing: 0.06em;
        text-align: center;
        color: var(--color-dark-l);
        margin-left: 0;
        margin-top: 0;
        width: 300px;
        margin-bottom: 42px;
    }

    .novigation {
        margin-left: 0;
        margin-top: 42px;
        gap: 10px;
    }

    .header-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}