: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;
} 

html, body {
  margin: 0;
  width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.container {
  margin: 0;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

a {
  text-decoration: none;
}

.wrapper__brown {
  width: 100%;
  background: var(--start-screen-gradient-background);
  background-image: url(../images/start-screen-background.jpg);  
  background-repeat: no-repeat;
  background-size: cover;
}

.wrapper__white {
  width: 100%;
  background-color: var(--color-light-xl);
}

.wrapper__grey {
  width: 100%;
  background-color: var(--color-light-l);
}


.header__container {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1280px;
  height: 120px;
  background-color: var(--color-light-xl);
}

.header {
  display: flex;
  justify-content: space-between;
  width: 1200px;
  height: 60px;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  width: 186px;
  height: 60px;
}

.logo__title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 32px;
  line-height: 35.2px;
  letter-spacing: 0.06em;
  color: var(--color-dark-l);
  transition-duration: 0.5s;
}

.logo__title:hover {
  color: var(--color-dark-3xl);  
  text-shadow: 3px -4px 5px #0D0D0D0A;
}

.logo__subtitle {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 13px;
  line-height: 35px;
  padding-left: 6px;
  letter-spacing: 0.1em;
  color: var(--color-dark-3xl);
}

.burger {
  display: none;
  position: relative;
  z-index: 50;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.burger:hover .burger__line,
.burger:hover::before,
.burger:hover::after {
  background-color: var(--color-dark-3xl);
}

.burger::before, .burger::after, .burger__line {
  content: '';
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: #000;
  transition: 0.5s ease;
}

.burger::before {
  top: 0;
}

.burger::after {
  bottom: 0;
}

.burger.active span {
  top: 10px;
  transform: rotate(90deg) translate(0px, 0px);
}

.burger.active::before {
  top: 10px;
  transform: rotate(90deg) translate(0px, 11px);
}

.burger.active::after {
  top: 10px;
  transform: rotate(90deg) translate(0px, -11px);
}

.menu {
  display: flex;
  align-self: center;
  align-items: center;
  width: 480px;
  height: 27px;
}

.menu__list {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 30px;  
}

.menu__item a {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 15px;
  line-height: 140%;
  color: var(--color-dark-l);
  transition-duration: 0.5s;
}

.menu__item a:hover {
  color: var(--color-dark-3xl);
}

#our__pets {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 15px;
  line-height: 26px;
  color: var(--color-dark-3xl);
  border-bottom: 3px solid var(--color-primary);
  cursor: auto;
} 

.main {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1280px;
  height: 1340px;
  background-color: var(--color-light-l);
}

.pets__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 1200px;
  height: 1162px;
  margin: 0 auto 66px;
}

.heading__pets {
  font-family: var(--font-family);
  font-size: 35px;
  font-weight: 400;
  line-height: 45.5px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--color-dark-l);
}

.cards__container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  overflow: hidden;
  width: 1200px;
  height: 930px;
  margin-top: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 270px;
  height: 435px;
  border-radius: 9px;
  background-color: var(--color-light-s);
  transition-duration: 0.5s;
}

.card:hover {
  box-shadow: 0px 2px 35px 14px #0D0D0D0A;
  cursor: pointer;
  background: var(--color-light-xl);
  .button__secondary {
    border: 2px solid  var(--color-primary-light);
    cursor: pointer;
    background: var(--color-primary-light);
  }
}

.pet__image {
  width: 270px;
  height: 270px;
}

.pet__name {
  padding-top: 12px;
  padding-bottom: 10px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 22.72px;
  letter-spacing: 0.06em;
  color: var(--color-dark-l);
}

.button__secondary {
  width: 187px;
  height: 52px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 17px;
  line-height: 22.1px;
  letter-spacing: 1px;
  border: 2px solid var(--color-primary);
  border-radius: 100px;
  padding: 13px 41px 15px 40px;
  background-color: var(--color-light-s);
  color: var(--color-dark-3xl);
  transition-duration: 0.5s;
}
.button__secondary:hover {
  cursor: pointer;
  background: var(--color-primary-light);
}

.navigation {
  display: flex;
  justify-content: space-between;
  width: 340px;
  height: 52px;
}

.button__puginator {
  margin-top: 20px;
  width: 52px;
  height: 52px;
  padding: 23px, 19px, 23px, 19px;
  border: 2px solid var(--color-primary-light);
  border-radius: 100px;
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--color-dark-s);
  transition-duration: 0.5s;
  cursor: pointer;
}

.button__puginator:hover {
  border: 2px solid var(--color-primary-light);
  background-color: var(--color-primary-light);

}

.button__puginator.number {
  border: 2px solid var(--color-primary);
  color: var(--color-dark-3xl);
  background-color: var(--color-primary);
}

.button__puginator.number:hover {
  border: 2px solid var(--color-primary-light);
  background-color: var(--color-primary-light);
}

button[disabled] {
  background-color: var(--color-light-l) !important ;
  border: 2px solid var(--color-dark-s) !important;
  opacity: 0.5;
  cursor: not-allowed;
}


.footer {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: end;
  width: 1280px;
  height: 352px;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  width: 1200px;
  height: 310px;
}

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

.main__heading {
  margin-top: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 35px;
  line-height: 45.5px; 
  letter-spacing: 0.06em;
  color: var(--color-dark-l);
  }

.title {
  margin: 0;
  color: var(--color-light-xl);
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 251px;
}

.footer__text {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: 0.06em;
  text-align: left;
  color: var(--color-primary);
  transition-duration: 0.5s;
}

.footer__text:hover {
  color: var(--color-light-s);
  }

.location {
  width: 302px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
}

.modal__show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal__card {
  position: relative;
  display: flex;
  width: 900px;
  height: 500px;
  border-radius: 9px;
  background-color: var(--color-light-s);
}

.cards {
  display: flex;
  transition: transform 1s ease-in-out;
}

.modal__img {
  width: 500px;
  height: 500px;
}

.modal__card__content {
  display: flex;
  flex-direction: column;
  height: 362px;
  margin-top: 20px;
  font-family: var(--font-family);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.modal__pet__name {
  font-size: 35px;
  font-weight: 400;
  line-height: 45px;
  padding-left: 30px;
  margin-bottom: 0;
}

.modal__pet__breed {
  font-size: 20px;
  line-height: 23px;
  padding-left: 30px;
  margin-top: 10px;
}

.modal__pet__description {
  font-size: 15px;
  line-height: 16px;
  padding-right: 10px;
  padding-left: 30px;
  margin: 25px 0 20px;
}

ul li {
  font-size: 15px;
  line-height: 16px;
  padding: 6px;
}

li {
  color: var(--color-primary);
}

li span {
  color: black; 
 }

.modal__button__close {
  width: 52px;
  height: 52px;
  position: absolute;
  top: -55px;
  right: -40px;
  color: #292929;
  border: 2px solid var(--color-primary);
  border-radius: 100px;
  cursor: pointer;
  transition-duration: 0.5s;
}

.modal__button__close:hover {
  background-color: var(--color-primary-light);
}

.lock-scroll {
  overflow: hidden;
}

@media (min-width:768px) and (max-width:1279px) {
  .container {
    height: 2492px;
  }

  .header__container {
    width: 768px;
  }

  .header {
    width: 708px;
  }

  .logo {
    width: 186px;
  }
  
  .logo__title {
    line-height: 38px;
  }
  
  .logo__subtitle {
    line-height: 33px;
  }

  .menu {
    width: 443px;
  }
  
  .menu__list {
    gap: 35px;  
  }
  
  .menu__item a {
    line-height: 24px;
  }

  .main {
    width: 768px;
    height: 1733px;
  }
  
  .pets__content {
    width: 708px;
    height: 1603px;
    margin: 47px auto 70px;
  }

  .heading__pets {
    margin: 0 auto;
    padding-top: 28px;
  }

  .cards__container {
    width: 580px;
    height: 1365px;
    margin: -11px auto 0;
    padding: 0px;
    gap: 30px;
  }

  .navigation {
    margin: 0 auto;
  }

  .button__puginator {
    margin: 0;
    padding: 0;
  }

  .footer {
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    width: 768px;
    height: 639px;
  }
  
  .footer__content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 708px;
    height: 234px;
    margin-top: 20px;
    padding: 0;
    gap: 60px
  }

  .footer__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 13px;
    height: 234px;
  }

  .footer__contact {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 251px;
  }

  .location {
    width: 302px;
  }

  .footer__image {
    width: 300px;
    height: 310px;
    padding-top: 3px;
    margin: 0 auto;
  }

  .modal__card {
    width: 630px;
    height: 350px;
  }

  .modal__img {
    width: 350px;
    height: 350px;
  }

  .modal__card__content {
    height: 303px;
    margin-top: 0;
    font-weight: 400;
    letter-spacing: 0.06em;
  }

  .modal__pet__description {
    font-size: 13px;
    line-height: 14px;
    padding-right: 10px;
    padding-left: 30px;
    margin: 0;
  }

  ul li {
    padding: 1px;
  }
}

@media (min-width:320px) and (max-width:767px) {
  html.lock-scroll, body.lock-scroll {
    overflow: hidden;
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
  }
  
  .overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .container {
    height: 2586px;
    position: relative;
    z-index: 1;
  }

  .header__container {
    width: 320px;
    height: 120px;
  }
  
  .header {
    margin: 40px auto 0px;
    width: 280px;
  }

  .logo {
    width: 186px;
  }
  
  .logo__title {
    line-height: 15px;
  }
  
  .logo__subtitle {
    line-height: 42px;
  }
  
  .burger {
    display: flex;
  }

  .menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed;
    width: 320px;
    height: 100vh;
    top: 0;
    right: -320px;
    z-index: 40;
    background-color: var(--color-light-l);
    transition: right 0.5s ease; 
  }

  .menu.open {
    right: 0;
  }

  .menu ul {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .menu__item a, #our__pets {
    font-size: 32px;
    line-height: 51.2px;
  }

  .main {
    width: 320px;
    height: 1649px;
  }
  
  .pets__content {
    width: 300px;
    height: 1565px;
    margin: 50px auto 35px;
  }

  .heading__pets {
    margin: 0 auto;
    padding: 0;
    font-size: 25px;
    line-height: 32.5px;
  }

  .cards__container {
    width: 270px;
    height: 1365px;
    margin: 0 auto;
    padding: 0px;
    gap: 30px;
  }

  .navigation {
    margin: 0 auto;
    max-width: 300px;
    height: 52px;
  }

  .button__puginator {
    margin: 0;
    padding: 0;
  }


   .wrapper__brown {
    margin: 10px auto 0;
    padding: 0;
   }


  .footer {
    display: flex;
    margin: 0 auto;
    align-items: flex-start;
    width: 320px;
    height: 809px;
  }

  .footer__content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 300px;
    height: 779px;
    margin: 30px auto;
    padding: 0;
  }

  .footer__info {
    margin: 0 auto;
    padding-bottom: 35px;
  }

  .footer__info.contact {
    height: 208px;
  }

  .footer__contact.phone {
    width: 240px;
  }

  .footer__info.location {
    height: 222px;
  }

  .main__heading.title {
    margin: 0 auto;
    width: 278px;
    height: 64px;
    font-size: 25px;
    line-height: 32.5px;
    letter-spacing: 0.06em;
    text-align: center;
  }

  .main__heading.title.location {
    width: 270px;
  }

  .footer__contact {
    margin: 0 auto;
    width: 251px;
    height: 32px;
  }

  .location {
    margin: 0 auto;
    width: 300px;
  }

  .footer__image {
    width: 260px;
    height: 269px;
    margin: 0 auto;
    padding-top: 2px;
  }

  .footer__image img {
    width: 260px;
    height: 269px;
    margin: 0 auto;
    padding-top: 2px;
  }

  .modal__card {
    width: 240px;
    height: 341px;
  }

  .modal__img {
    display: none;
  }

  .modal__card__content {
    height: 341px;
    margin: 0;
    padding: 0;
    font-weight: 400;
    letter-spacing: 0.06em;
  }

  .modal__pet__name {
    text-align: center;
    margin: 0;
  }
  
  .modal__pet__breed {
    padding: 0;
    margin: 0p;
    text-align: center;
  }

  .modal__pet__description {
    font-size: 13px;
    line-height: 14px;
    padding: 0 10px;
    margin: 0;
    text-align: justify;
  }

  ul li {
    padding: 0;
    margin: 0;
  }
}


