.wrapper__section {
  width: 1200px;
  margin: auto;
}

@media screen and (max-width: 1279px) {
  .wrapper__section {
    width: 708px;
    margin: auto;
  }
}

@media screen and (max-width: 767px) {
  .wrapper__section {
    width: 300px;
    margin: auto;
  }
}

.navigation__section {
  background: var(--button-secondary-color);
  padding: 30px 0;
}

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

@media screen and (max-width: 1279px) {
  .header__section {
    gap: 81px;
  }
}

@media screen and (max-width: 767px) {
  .header__section {
    gap: 43px;
    justify-content: flex-start;
  }
}

.header__link-logo {
  text-decoration: none;
}

.header__logo-title {
  margin: 0;
  font-family: 'Gelasio';
  font-weight: 400;
  font-size: 32px;
  line-height: 110%;
  letter-spacing: 0.06em;
  color: var(--header-color);
}

.header__logo-subtitle {
  margin-top: 10px;
  padding-left: 4px;
  font-family: 'Arimo';
  font-size: 13px;
  line-height: 15px;
  letter-spacing: 0.1em;
  color: var(--text-color);
}

.header__burger-label {
  display: none;
}

@media screen and (max-width: 767px) {
  .header__burger-label {
    display: table;
  }

  .header__burger-button {
    display: block;
    width: 30px;
    height: 30px;
    background: url("image/burger.svg") no-repeat center;
    transition-duration: 500ms;
  }

  .header__burger-checkbox:checked ~ .header__burger-label .header__burger-button,
  .header__burger-checkbox:checked ~ .header__navigation-container .header__burger-button {
    transform: rotate(810deg);
    transition-duration: 1500ms;
  }
}

.header__navigation-blackout {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  background-color: var(--background-color-dark);
  opacity: .6;
}

@media screen and (max-width: 767px) {
  .header__burger-checkbox:checked ~ .header__navigation-blackout {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .header__navigation-container {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    row-gap: 158px;
    padding: 30px 10px;
    width: 320px;
    background: var(--background-color-dark);
    transition: all 500ms cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }

  .header__burger-checkbox:checked ~ .header__navigation-container {
    right: 0;
    transition-duration: 1500ms;
  }
}

.header__navigation-header {
  display: none;
}

@media screen and (max-width: 767px) {
  .header__navigation-header {
    display: flex;
    align-items: center;
    gap: 43px;
  }

  .header__navigation-header .header__burger-button {
    background: url("image/burger-color-light.svg") no-repeat center;
  }

  .header__navigation-header .header__logo-title{
    color: var(--button-background-color);
  }

  .header__navigation-header .header__logo-subtitle{
    color: var(--button-secondary-color);
  }
}

.header__links-list {
  list-style-type: none;
  display: flex;
  align-items: center;
  padding: 0px;
  gap: 35px;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .header__links-list {
    flex-direction: column;
    justify-content: center;
    gap: 40px;
  }

  .header__links-text {
    font-size: 32px;
    color: var(--active-link-color);
  }
  
  .header__links-text:hover {
    color: var(--active-link-color);
  }
}

.friends__section {
  background: var(--background-section);
  padding: 80px 0 100px;
}

@media screen and (max-width: 1279px) {
  .friends__section {
    padding: 80px 0 70px;
  }
}

@media screen and (max-width: 767px) {
  .friends__section {
    padding: 42px 0;
  }
}

.friends__content-container {
  display: flex;
  flex-direction: column;
  gap: 45px;
}

@media screen and (max-width: 1279px) {
  .friends__content-container {
    gap: 30px;
  }
}

@media screen and (max-width: 767px) {
  .friends__content-container {
    gap: 42px;
  }
}

.friends__header {
  margin: 0;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .friends__header {
    font-size: 25px;
  }
}

.friends__animal-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 30px;
  column-gap: 40px;
  padding: 15px 0;
}

@media screen and (max-width: 1279px) {
  .friends__animal-container {
    width: 580px;
    height: 1365px;
    padding: 0;
    margin: auto;
    overflow-y: hidden;
  }
}

@media screen and (max-width: 767px) {
  .friends__animal-container {
    width: 270px;
  }
}

.friends__animal-card {
  width: 270px;
  height: 435px;
  background: var(--active-link-color);
  border-radius: 9px;
  cursor: pointer;
}

.friends__animal-card:hover {
  background: var(--button-secondary-color);
}

.friends__animal-photo {
  display: block;
  border-radius: 9px 9px 0px 0px;
}

.friends__animal-name {
  padding: 30px 0;
  font-family: 'Gelasio';
  font-size: 20px;
  line-height: 23px;
  text-align: center;
  letter-spacing: 0.06em;
  color: var(--header-color);
}

.friends__button-card {
  display: block;
  margin: 0 auto 30px;
}

.friends__animal-card:hover .friends__button-card {
  background: var(--button-hover-color);
  border: 2px solid var(--button-hover-color);
}

.friends__buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media screen and (max-width: 1279px) {
  .friends__buttons-container {
    width: 340px;
    margin: auto;
    padding-top: 10px;
    padding-bottom: 6px;
  }
}

@media screen and (max-width: 767px) {
  .friends__buttons-container {
    width: 300px;
    padding: 0;
    gap: 10px;
  }
}

.pagination__button {
  background-position: center;
  background-repeat: no-repeat;
}

.pagination__button--first-page {
  background-image: url('image/pagination-icons/double-button.svg');
}

.pagination__button--first-page[disabled] {
  background-image: url('image/pagination-icons/double-button-disabled.svg');
}

.pagination__button--previous-page {
  background-image: url('image/pagination-icons/button.svg');
}

.pagination__button--previous-page[disabled] {
  background-image: url('image/pagination-icons/button-disabled.svg');
}

.pagination__button--next-page {
  background-image: url('image/pagination-icons/button.svg');
  transform: rotate(180deg);
}

.pagination__button--next-page[disabled] {
  background-image: url('image/pagination-icons/button-disabled.svg');
}

.pagination__button--last-page {
  background-image: url('image/pagination-icons/double-button.svg');
  transform: rotate(180deg);
}

.pagination__button--last-page[disabled] {
  background-image: url('image/pagination-icons/double-button-disabled.svg');
}

.footer__section {
  padding-top: 40px;
  background-image: url('image/noise_transparent@2x.svg'), radial-gradient(100% 215.42% at 0% 0%, rgb(91, 72, 58) 0%, rgb(38, 36, 37) 100%, rgb(33, 31, 32));
}

@media screen and (max-width: 1279px) {
  .footer__section {
    padding-top: 30px;
  }
}

.footer__content-container {
  display: flex;
  justify-content: space-between;
  gap: 160px;
}

@media screen and (max-width: 1279px) {
  .footer__content-container {
    flex-direction: column;
    gap: 65px;
  }
}

@media screen and (max-width: 767px) {
  .footer__content-container {
    gap: 40px;
  }
}

.footer__wrapper-content {
  display: flex;
  gap: 160px;
}

@media screen and (max-width: 1279px) {
  .footer__wrapper-content {
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin: 0 34px;
  }
}

@media screen and (max-width: 767px) {
  .footer__wrapper-content {
    flex-direction: column;
    gap: 40px;
    margin: 0;
  }
}

.footer__contacts-container {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 16px;
}

@media screen and (max-width: 1279px) {
  .footer__contacts-container {
    margin-top: 0;
    width: 285px;
  }
}

@media screen and (max-width: 767px) {
  .footer__contacts-container {
    margin: auto;
    text-align: center;
  }
}

.footer__header,
.footer__header-local {
  margin: 0;
  color: var(--button-secondary-color);
}

@media screen and (max-width: 767px) {
  .footer__header,
  .footer__header-local {
    font-size: 25px;
  }
}

@media screen and (max-width: 767px) {
  .footer__header-local {
    width: 275px;
    text-align: center;
    align-self: center;
  }
}

.footer__mail-container,
.footer__phone-container,
.footer__boston-container,
.footer__london-container {
  display: flex;
  gap: 20px;
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .footer__mail-container,
  .footer__phone-container {
    justify-content: center;
  }
}

.footer__mail-image,
.footer__puppy-image {
  display: block;
}

@media screen and (max-width: 1279px) {
  .footer__puppy-image {
    margin: auto;
  }
}

@media screen and (max-width: 767px) {
  .footer__puppy-image {
    width: 260px;
  }
}

.footer__contact-text {
  margin: 0;
  align-self: center;
  color: var(--button-background-color);
}

.footer__location-container {
  width: 305px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 16px;
}

@media screen and (max-width: 1279px) {
  .footer__location-container {
    margin-top: 0;
  }
}

@media screen and (max-width: 767px) {
  .footer__location-container {
    margin: auto;
    gap: 40px;
    width: auto;
  }
}
