/* ------------------- */
/* Custom properties   */
/* ------------------- */

:root {
  /* colors */
  --clr-white: #ffffff;
  --clr-black: #000000;
  --clr-gray: #cdcdcd;
  --clr-white-active: #fafafa;
  --crl-light: #f6f6f6;
  --clr-gold: #f1cdb3;
  --clr-gold-hover: #fddcc4;
  --clr-dark-h: #545454;
  --clr-dark-p: #4c4c4c;
  --clr-btn-dark: #292929;
  --clr-dark-light: #b2b2b2;

  /* font-families */
  --ff-serif: 'Georgia', serif;
  --ff-sans-normal: 'Arial', sans-serif;
}

/* ------------------- */
/* Reset               */
/* ------------------- */

/* https://piccalil.li/blog/a-modern-css-reset/ */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
picture {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: 400;
}

/* set up the body */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-serif);
  color: var(--clr-dark-h);
  background-color: var(--clr-white);
  min-height: 100vh;
}

.body__wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* make form elements easier to work with */
input,
button,
textarea,
select {
  font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------- */
/* Basic elements      */
/* ------------------- */

h3 {
  font-size: 35px;
  line-height: 45.5px;
  letter-spacing: 0.06em;
}

h4 {
  font-size: 20px;
  line-height: 22.72px;
  letter-spacing: 0.06em;
}

/* ------------------- */
/* Components         */
/* ------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* added line */
  border: 0;
}

.header__wrapper {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
}

.wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  margin-left: 40px;
}

nav {
  margin-right: 40px;
  overflow-x: hidden;
}

.logo a {
  color: var(--clr-dark-h);
  line-height: 35.2px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.logo p {
  color: var(--clr-btn-dark);
  size: 13px;
  line-height: 14.95px;
  letter-spacing: 0.02em;
  margin-top: 10px;
}

.navigation {
  display: flex;
  list-style: none;
}

.navigation > :not(*:first-child) {
  margin-left: 35px;
}

.navigation a {
  text-decoration: none;
  color: var(--clr-dark-h);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.005em;
}

.navigation a:hover {
  color: var(--clr-btn-dark);
}

.active > a {
  color: var(--clr-dark-h);
  padding-bottom: 4px;
  border-bottom: 3px solid var(--clr-gold);
  cursor: default;
}
.active > a:hover {
  color: var(--clr-dark-h);
}

.mobile-nav-toggle {
  display: none;
}

@media (width < 769px) {
  .logo {
    margin-left: 30px;
  }

  nav {
    margin-right: 30px;
  }
}

@media (width < 768px) {
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    z-index: 1500;
    right: 30px;
    top: 46px;
    background: transparent;
    background-image: url(../assets/icons/Burger-black.svg);
    background-repeat: no-repeat;
    width: 30px;
    aspect-ratio: 1;
    border: 0;
  }

  .mobile-nav-toggle[aria-expanded='true'] {
    background-image: url(../assets/icons/Burger-pets.svg);
  }

  .navigation {
    position: fixed;
    background: #5c5c5c;
    inset: -30px 0 -100vh 17%;
    z-index: 100;
    padding: 250px 0 0 0;
    margin: 0;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 500ms ease-in-out;
  }

  .navigation[data-visible='true'] {
    transform: translateX(0);
  }

  .navigation > :not(*:first-child) {
    margin: 40px auto 0;
  }

  .navigation > :first-child {
    margin: 0 auto;
  }

  .navigation a {
    font-size: 32px;
    line-height: 51.2px;
    color: var(--clr-gray);
  }

  .navigation a:hover {
    color: var(--clr-white-active);
  }
  .active > a {
    color: var(--clr-white-active);
  }

  /* Shadow */
  #shadow-window {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 17.5vw;
    background: rgba(41, 41, 41, 0.6);
    opacity: 0.6;
    z-index: 5;
  }
}

@media (width < 400px) {
  .logo {
    margin-left: 20px;
  }

  nav {
    margin-right: 20px;
  }
  .navigation {
    inset: -30px 0 -100vh 0;
  }
  .mobile-nav-toggle {
    top: 49px;
    right: 20px;
  }

  /* Shadow */
  #shadow-window {
    height: 0vh;
    width: 0vw;
  }
}

/* OUR FRIENDS */

.friends {
  background-color: var(--crl-light);
}

.frends__wrapper {
  padding: 80px 40px 100px;
}

.frends__wrapper h3 {
  width: 400px;
  text-align: center;
  margin: 0 auto;
}

.friends-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px 40px;
  margin: 45px auto;
}

.card {
  width: 270px;
  text-align: center;
  border-radius: 9px;
  background-color: var(--clr-white-active);
}

.card > * {
  margin-bottom: 31px;
}

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

.button {
  display: inline-block;
  text-decoration: none;
  font-size: 17px;
  line-height: 22.1px;
  letter-spacing: 0.06em;
  padding: 12px 43px;
  background-color: var(--clr-gold);
  border: 2px solid var(--clr-gold);
  border-radius: 100px;
  color: var(--clr-btn-dark);
}

.button:hover {
  background-color: var(--clr-gold-hover);
  border: 2px solid var(--clr-gold-hover);
}

.light-button {
  background-color: transparent;
}

.light-button:hover {
  background-color: var(--clr-gold-hover);
  border: 2px solid var(--clr-gold-hover);
  cursor: pointer;
}

@media (width < 770px) {
  .frends__wrapper {
    padding: 60px 30px 70px;
  }
}

@media (width < 500px) {
  .frends__wrapper {
    padding: 42px 10px;
  }

  .frends__wrapper h3 {
    width: 300px;
    font-size: 25px;
    line-height: 32.5px;
    letter-spacing: 0.06em;
  }
}
.button-container {
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  column-gap: 20px;
}
.arrow {
  width: 52px;
  height: 52px;
  padding: 14px 12px;
  background-size: cover;
  border: 2px solid var(--clr-gold);
  border-radius: 50%;
}

.arrow-short {
  padding: 14px 19px;
}

.arrow:hover {
  background-color: var(--clr-gold-hover);
  border: 2px solid var(--clr-gold-hover);
  cursor: pointer;
}

.arrow__not-active {
  border: 2px solid var(--clr-gray);
}

.arrow__not-active:hover {
  background-color: transparent;
  border: 2px solid var(--clr-gray);
  cursor: inherit;
}

.pagination-number {
  font-size: 20px;
  line-height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--clr-btn-dark);
  background-color: var(--clr-gold);
  border-radius: 50%;
}

@media (width < 500px) {
  .button-container {
    max-width: 300px;
    column-gap: 10px;
  }
}

/* FOOTER */
.footer-container {
  padding: 40px 40px 0;
  background: url(../assets/images/footer-gradient-background.svg) no-repeat
    center center / cover;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-text {
  max-width: 302px;
  margin-top: 16px;
}
.footer-info div:first-child {
  max-width: 279px;
}

.footer-text h3 {
  color: var(--clr-white);
  letter-spacing: 0.06em;
}
.footer-text a {
  display: flex;
  text-decoration: none;
  color: var(--clr-gold);
  gap: 20px;
  align-items: center;
  font-size: 20px;
  line-height: 23px;
  letter-spacing: 0.06em;
  margin-top: 40px;
}

.footer-text__second a {
  margin-top: 32px;
}

@media (width < 1070px) {
  .footer-container {
    padding: 30px 30px 0;
  }

  .footer-text {
    margin: 0 auto;
  }

  .footer-info__img {
    margin: 62px auto 0;
  }
}

@media (width < 660px) {
  .footer-container {
    padding: 30px 10px 0;
  }

  .footer-info {
    flex-direction: column;
  }

  .footer-text h3 {
    max-width: 270px;
    margin: 0 auto;
  }

  .footer-text__first a {
    max-width: 251px;
    margin: 40px auto 0;
  }

  .footer-text__first a:last-child {
    gap: 26px;
  }

  .footer-text {
    text-align: center;
  }

  .footer-text__second {
    margin-top: 38px;
  }

  .footer-text__second a {
    margin-top: 40px;
    text-align: start;
  }

  .footer-info__img {
    max-width: 260px;
    margin-top: 40px;
  }
}
/* SCROLL */
.unscroll {
  overflow: hidden;
}

/* MODAL */
.popup .overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(41, 41, 41, 0.6);
  z-index: 2000;
  display: none;
}

.popup.active .overlay {
  display: block;
}

.popup .modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 945px;
  height: 552px;
  padding-top: 52px;
  padding-right: 45px;
  margin-left: 16px;
  z-index: 2100;
}

.popup .close-btn {
  position: absolute;
  right: 0;
  top: 0;
  padding: 18px;
  border: 2px solid var(--clr-gold);
  border-radius: 100px;
}

.popup .close-btn:hover {
  cursor: pointer;
  background-color: var(--clr-gold-hover);
  border: 2px solid var(--clr-gold-hover);
}

.modal-card {
  display: flex;
  width: 900px;

  border-radius: 9px;

  background-color: var(--clr-white-active);
}

.modal-card__text > * {
  color: var(--clr-black);
}

.modal-card img {
  width: 500px;
  height: 500px;
}

.modal-card__text {
  padding: 50px 20px 64px 29px;
}

.modal-card__text h3 {
  margin-bottom: 10px;
}

.modal-card__text h5 {
  margin: 40px 0;
}
.modal-list {
  font-size: 15px;
  line-height: 16.5px;
  letter-spacing: 0.06em;
  color: var(--clr-gold);
}

.modal-list li span {
  color: var(--clr-black);
}

.modal-list > :not(*:last-child) {
  margin-bottom: 10px;
}

@media (width < 1050px) {
  .modal-card img {
    width: 350px;
    height: 350px;
  }
  .modal-card__text {
    padding: 10px 8px 26px 11px;
  }

  .modal-card__text h5 {
    font-size: 13px;
    line-height: 14.3px;
    margin: 20px 0;
  }

  .modal-list > :not(*:last-child) {
    margin-bottom: 5px;
  }

  .popup .modal-container {
    width: 682px;
  }

  .modal-card {
    width: 630px;
  }
}

@media (width < 730px) {
  .modal-card__text {
    padding: 10px;
  }
  .modal-card img {
    display: none;
  }
  .popup .modal-container {
    width: 270px;
  }

  .modal-card {
    width: 240px;
  }
}
