/*reset*/
* {
  padding: 0;
  margin: 0;
  border: 0;
}
*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
:focus,
:active {
  outline: none;
}
a:focus,
a:active {
  outline: none;
}
nav,
footer,
header,
aside {
  display: block;
}
html,
body {
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 16px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
input,
button,
textarea {
  font-family: inherit;
}
input::-ms-clear {
  display: none;
}
button {
  cursor: pointer;
}
button::-moz-focus-inner {
  padding: 0;
  border: 0;
}
a,
a:visited {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
ul li {
  list-style: none;
}
img {
  vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: 400;
}
/*--------------------*/

/* fonts */
@font-face {
  font-family: 'Georgia';
  src: url(../assets/fonts/georgia.ttf) format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Georgia';
  src: url(../assets/fonts/georgiab.ttf) format('truetype');
  font-weight: bold;
}
@font-face {
  font-family: 'Georgia';
  src: url(../assets/fonts/georgiai.ttf) format('truetype');
  font-style: italic;
}

:root {
  --font-family: 'Georgia', sans-serif;
  --second-family: Arial, Helvetica, sans-serif;
  --color-white: #fff;
  --color-light-l: #f6f6f6;
  --color-light-s: #fafafa;
  --color-gray-s: #cdcdcd;
  --color-gray-l: #545454;
  --color-black: #292929;
  --color-primary: #f1cdb3;
  --color-primary-light: #fddcc4;
}
._container {
  max-width: 1200px;
  margin: 0 auto;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--color-light-l);
}
main {
  flex: 1 1 auto;
}
header,
footer {
  position: relative;
  z-index: 1;
  padding-left: 30px;
  padding-right: 30px;
}
h3 {
  font-size: 35px;
  color: var(--color-gray-l);
  line-height: 1.3;
  letter-spacing: 0.06em;
}
/* NAVBAR */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
}
.logo {
  text-align: end;
  text-wrap: nowrap;
}
.logo__title {
  margin-bottom: 11px;
  font-size: 32px;
  line-height: 110%;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}
.logo__subtitle {
  font-family: var(--second-family);
  font-size: 13px;
  margin-right: 2px;
  letter-spacing: 0.1em;
  color: var(--color-white);
}
.nav-links {
  margin-left: auto;
  display: flex;
}
.nav-links__elm {
  margin-left: 36px;
}
.nav-links__link {
  display: inline-block;
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 15px;
  line-height: 160%;
  color: var(--color-gray-s);
}
.nav-links__link:hover {
  color: var(--color-light-s);
}
._chosen {
  cursor: default;
  position: relative;
  padding-bottom: 3px;
}
._chosen::after {
  content: '';
  position: absolute;
  background: var(--color-primary);
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

/* BURGER */
.burger-btn {
  transition-duration: 0.5s;
  user-select: none;
  position: relative;
  z-index: 10;
  justify-content: space-between;
  display: none;
  flex-direction: column;
  width: 30px;
  height: 22px;
  background: none;
}
.burger-btn__elm {
  border: 2px solid var(--color-primary);
  width: 100%;
  height: 0px;
  transition: 2s;
}
.burger-btn:hover {
  background: none;
}
.burger-btn:hover .burger-btn__elm {
  border: 2px solid var(--color-primary-light);
}
.burger-btn--active {
  transform: rotate(90deg);
}
.burger-wrapper {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 4;
  top: 0;
  right: -100vw;
  background: rgba(0, 0, 0, 0.4);
  transition: 0.5s;
}
.burger-wrapper--active {
  right: 0;
}
.burger {
  position: fixed;
  z-index: 5;
  height: 100vh;
  width: 320px;
  background: var(--color-black);
  top: 0;
  right: -320px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 1s;
}
.burger--active {
  right: 0;
}
.nav-links--burger {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-links__elm--burger {
  margin: 0 0 40px 0;
}

.nav-links__link--burger {
  font-size: 32px;
}

/* PETS - SECTION */
#pets {
  padding: 80px 30px 100px;
}
.pets__box {
  gap: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pets__title {
  text-align: center;
}

.card {
  cursor: pointer;
  border-radius: 9px;
  background: var(--color-light-s);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition-duration: 0.5s;
}
.card:hover {
  background: var(--color-white);
  transition-duration: 0.7s;
}
.card:hover .card__btn {
  background-color: var(--color-primary-light);
  transition-duration: 0.7s;
}
.card__img-box {
  width: 270px;
  height: 270px;
  margin-bottom: 30px;
  user-select: none;
}
.card__title {
  margin-bottom: 33px;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--color-gray-l);
}
.card__btn {
  margin-bottom: 30px;
  background: var(--color-light-s);
  border: 2px solid var(--color-primary);
  border-radius: 100px;
  padding: 13.4px 43.4px;
  font-size: 17px;
  line-height: 130%;
  letter-spacing: 0.06em;
  color: var(--color-black);
}

/* FOOTER */
.footer {
  background:
    url(../assets/images/bg-noise-transparent.png),
    radial-gradient(100% 215.42% at 0% 0%, #5b483a 0%, #262425 100%), #211f20;
  padding-top: 40px;
}
.footer__box {
  display: flex;
  justify-content: space-between;
}
.footer__nav-wrapper {
  justify-content: space-between;
  max-width: 760px;
  padding-right: 20px;
  width: 100%;
  display: flex;
}
.footer__contacts {
  padding-right: 25px;
  max-width: 304px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer__contacts-title {
  color: var(--color-white);
}
.footer__contact-box {
  display: flex;
  align-items: center;
}
.footer__contact-img-box {
  margin-right: 20px;
  user-select: none;
}
.footer__contact-text {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}
.footer__locations-box {
  max-width: 302px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer__locations-title {
  color: var(--color-white);
}
.footer__location-box {
  align-items: center;
  display: flex;
}
.footer__location-img-box {
  margin-right: 20px;
  user-select: none;
}
.footer__location-text {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}
.footer__img-box {
  user-select: none;
}

/* POPUP */
.noscroll {
  overflow-y: hidden;
}
.wrapper-popup {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.4);
}
.wrapper-popup--active {
  z-index: 10;
  display: flex;
}
.popup {
  width: 950px;
  height: 548px;
  display: flex;
  flex-direction: column;
}
.popup__close-btn {
  align-self: end;
  margin-right: 6px;
  background: none;
  line-height: 0;
  padding: 20px;
  border-radius: 100px;
  border: 2px solid var(--color-primary);
}
.popup__close-btn:hover {
  background: var(--color-primary-light);
  transition-duration: 0.5s;
}
.popup__content {
  display: flex;
  border-radius: 9px;
  max-width: 900px;
  background: var(--color-light-s);
}
.popup__img-box {
  user-select: none;
  border-radius: 9px;
  height: 500px;
}
.popup__img-box img {
  border-radius: 9px;
  height: 100%;
}
.popup__text-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 50px 0 0 29px;
  max-width: 351px;
}
.popup__title {
  margin-bottom: 10px;
  font-size: 35px;
  line-height: 1.3;
  letter-spacing: 0.06em;
}
.popup__subtitle {
  text-wrap: nowrap;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.06em;
}
.popup__text {
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.06em;
}
.popup__list {
  padding-left: 14px;
  margin-top: 4px;
  color: var(--color-primary);
}
.popup__list-elm {
  list-style: disc;
  margin-bottom: 10px;
}
.popup__list-paragraph {
  color: #000;
}
.popup__text-emphasis {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.06em;
}
@media (max-width: 1000px) {
  .popup {
    width: 680px;
    height: 400px;
  }
  .popup__content {
    max-width: 630px;
  }
  .popup__img-box {
    height: 350px;
  }
  .popup__text-content {
    gap: 20px;
    margin: 10px 0 0 11px;
    max-width: 260px;
  }
  .popup__list-elm {
    margin-bottom: 5px;
  }
  .popup__text {
    font-size: 13px;
  }
}
@media (max-width: 730px) {
  .popup {
    width: 271px;
    height: 393px;
  }
  .popup__content {
    width: 240px;
  }
  .popup__img-box {
    display: none;
  }
  .popup__text-content {
    margin: 10px;
    max-width: 220px;
  }
  .popup__list-elm {
    margin-bottom: 5px;
  }
  .popup__text {
    text-align: justify;
  }
  .popup__title {
    text-align: center;
  }
  .popup__subtitle {
    text-align: center;
  }
}

/* For tablets */
@media (max-width: 940px) {
  /* footer */
  #footer {
    padding: 30px 30px 0;
  }
  .footer__box {
    gap: 60px;
    flex-direction: column;
    align-items: center;
  }
  .footer__contacts {
    margin: 0 0 0 32px;
    padding: 0;
  }
  .footer__locations-box {
    margin: 0;
  }
  .footer__nav-wrapper {
    padding-right: 32px;
  }
  .footer__img-box img {
    width: 100%;
  }
}

/* For mobile */
@media (max-width: 767.9px) {
  /* header */
  .nav-links {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
  .burger-wrapper {
    display: block;
  }

  /* footer */
  #footer {
    padding: 30px 10px 0 10px;
  }
  .footer__box {
    gap: 40px;
  }
  .footer__contacts {
    margin: 0;
  }
  .footer__nav-wrapper {
    padding-right: 0;
  }
}
@media (max-width: 640px) {
  /* footer */
  .footer__nav-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .footer__locations-box {
    gap: 40px;
  }
}

@media (max-width: 460px) {
  h3 {
    text-align: center;
    font-size: 25px;
  }
  /* footer */
  .footer__contact-box {
    margin: 0 auto;
  }
  .footer__locations-title {
    padding: 0 15px;
  }
  .footer__img-box {
    padding: 0 20px;
  }

  /* pets - section */
  .card__title {
    margin-bottom: 30px;
  }
}
