/* header */

.ev-t--header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 26px 0;
  background: var(--dark);
}

.header-logo {
  width: 180px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.header-logo:hover {
  color: var(--titile);
}

.ev-t--navigation {
  display: none;
}

.modal-button {
  display: block;
}

.close-modal {
  margin-left: auto;
}

.svg {
  stroke: #f5f5f5;
}

.ev-t--navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.navigation-item {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  text-align: center;
  color: var(--dark);

  border: 2px solid var(--coral);
  border-radius: 16px 0;
  padding: 10px;
  display: block;
  width: 100%;
  transition: border-color 0.3s ease;
}

.navigation-item:hover {
  color: var(--coral);
  text-decoration: underline;
}

.modal {
  position: fixed;
  top: 0;
  left: 50%;
  padding: 21px;
  padding-top: 120px;
  background: var(--grey-light);
  transform: translateY(-100%) translateX(-50%);
  transition: transform 1s ease;
  z-index: 8;
}

.modal-navigation-list {
  flex-direction: column;
  align-items: normal;
  gap: 32px;
}

.modal-click {
  transform: translateY(0) translateX(-50%);
}

@media screen and (min-width: 1437px) {
  .ev-t--header {
    padding: 21px 0;
  }

  .header-logo {
    position: static;
    width: 224px;
    transform: translateX(0) translateY(0);
  }

  .ev-t--header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navigation-item {
    color: var(--grey-light);
    padding: 0;
    border: 0;
  }

  .ev-t--navigation {
    display: block;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 104px;
}

.ev-t--home-title-wrap {
  border-radius: 0 0 100px 0;
  padding: 12px;
  background: var(--dark);
  margin-bottom: 16px;

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    color: var(--grey-light);
    margin-bottom: 26px;
  }

  span {
    border: 2px solid var(--coral);
    border-radius: 16px 0;
    padding: 10px;
  }
}

.hero-image {
  margin: 0 auto;
  margin-bottom: 16px;
}

.home-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: var(--dark);
  padding-top: 10px;
  border-top: 2px solid var(--coral);
  margin-bottom: 16px;
}

.home-link {
  display: block;
  text-align: center;
  border: 2px solid var(--coral);
  border-radius: 16px 0;
  padding: 10px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  text-align: center;
  color: var(--dark);

  transition: background-color 0.4s ease, color 0.4s ease;
}

.home-link:hover {
  background-color: var(--coral);
  color: var(--grey-light);
}

@media screen and (min-width: 1437px) {
  #home {
    padding-top: 148px;
  }

  .home-container {
    position: relative;
  }

  .ev-t--home-title-wrap {
    padding: 20px;
    border-radius: 0 0 178px 0;
    margin-bottom: 78px;

    p {
      font-size: 48px;
    }
  }

  .home-link {
    position: absolute;
    top: 0;
    left: 50%;
    width: 652px;
    font-size: 40px;
  }

  .home-text {
    font-size: 32px;
    margin: 0;
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .ev-t--home-flex {
    display: flex;
    align-items: flex-end;
  }

  .hero-image {
    margin: 0;
    flex-shrink: 0;
  }
}

/* about */

.about-img {
  margin: 0 auto;
}

@media screen and (min-width: 1437px) {
  .about-container {
    display: flex;
    align-items: flex-end;
  }

  .about-img {
    margin: 0;
    flex-shrink: 0;
  }

  .about-text {
    max-width: 80%;
    padding-bottom: 0;
  }
}

/* services */

.services-list {
  display: flex;
  flex-direction: column;
  gap: 20px;

  li {
    border: 2px solid var(--coral);
    border-radius: 24px 0;
    padding: 10px;
    min-height: 81px;
    display: flex;
    align-items: center;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    color: var(--grey-light);
  }

  img {
    display: none;
  }
}

.img-wrap {
  display: none;
}

@media screen and (min-width: 1437px) {
  .services-list {
    width: 100%;

    li {
      width: 90%;
      font-size: 32px;
      padding: 21px;
      cursor: pointer;
    }

    p {
      width: 538px;
    }

    .services-click {
      background: var(--coral);
      width: 125%;
    }
  }

  .img-wrap {
    display: block;
    border-radius: 178px 0 0 0;
    padding: 10px;
    width: 650px;
    height: 726px;
    background: var(--coral);
    flex-shrink: 0;
    position: relative;

    img {
      position: absolute;
      bottom: 80px;
      right: 60px;
      border-radius: 12px;
    }
  }

  .services-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
  }
}

/* why */

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;

  li {
    border-top: 2px solid var(--coral);
    padding: 10px 24px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    color: var(--dark);
  }
}

@media screen and (min-width: 1437px) {
  #why {
    .main-title {
      max-width: 50%;
    }
  }
  .why-container {
    border: 2px solid var(--coral);
    border-radius: 0 178px 0 0;
  }

  .why-list {
    gap: 48px 90px;
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 90px) / 2);
      font-size: 30px;
      padding: 10px;
    }
  }
}

/* testimonials */

.what-item {
  width: 343px;
  max-width: 100%;

  p {
    border-radius: 84px 0;
    background: var(--dark);
    padding: 49px 44px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    text-align: center;
    color: var(--grey-light);
    margin-bottom: 16px;
    min-height: 203px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    text-align: center;
    color: var(--dark);
    border: 2px solid var(--coral);
    border-radius: 0 84px;
    padding: 24px;
  }
}

.pagination {
  text-align: center;
  margin-top: 20px;
}

.swiper-pagination-bullet {
  border-radius: 4px;
  width: 20px;
  height: 8px;
  background: var(--coral);
}

@media screen and (min-width: 1437px) {
  #testimonials {
    .main-title {
      max-width: 50%;
    }
  }

  .what-item {
    width: 646px;
    display: flex;
    align-items: flex-start;
    gap: 16px;

    p {
      border-radius: 124px 0 0 0;
      width: 402px;
      margin: 0;
      padding: 53px;
      font-size: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 280px;
    }

    span {
      border-radius: 0 0 124px 0;
      padding: 24px;
      font-size: 24px;
      text-align: start;
    }
  }

  .pagination {
    margin-top: 56px;
  }

  .swiper-pagination-bullet {
    background: var(--dark);
  }
}

/* faq */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  width: 100%;
  cursor: pointer;
}

.faq-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  color: var(--dark);
  border: 2px solid var(--coral);
  border-radius: 24px 0;
  padding: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-text {
  border-radius: 24px 0;
  padding: 10px;
  margin-top: 20px;
  background: var(--dark);

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  color: var(--grey-light);
}

.click {
  background: var(--coral);
  color: var(--grey-light);
}

@media screen and (min-width: 1439px) {
  .faq-title {
    font-size: 32px;
  }

  .faq-content {
    width: 700px;
    height: 1000px;
    background-image: url(../images/bax.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    position: relative;
    z-index: -1;
  }

  .faq-wrap {
    display: flex;
    align-items: flex-start;
    gap: 44px;
    position: relative;
  }

  .faq-text {
    border-radius: 0 100px;
    width: 516px;
    height: 880px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(50px);
    margin: 0;
    padding: 40px;
  }

  .click {
    background: var(--dark);
    color: var(--grey-light);
    width: 140%;
    border-color: var(--dark);

    span {
      display: block;
      width: 500px;
    }
  }
}

.hidden {
  display: none;
}

/* contact */

.contact-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  text-align: center;
  color: var(--dark);
  margin-bottom: 44px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 482px;
  max-width: 100%;
  margin: 0 auto;

  li {
    padding-top: 15px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    text-align: center;
    color: var(--dark);
    border-top: 2px solid var(--coral);
  }

  a:hover {
    color: var(--coral);
    text-decoration: underline;
  }
}

@media screen and (min-width: 1439px) {
  #contact {
    .main-title {
      max-width: 70%;
    }
  }
  .contact-container {
    border: 2px solid var(--coral);
    border-radius: 0 178px 0 0;
    padding-bottom: 32px;
  }

  .contact-text {
    font-size: 32px;
    margin-bottom: 48px;
  }

  .contact-list {
    gap: 36px;
  }
}

/* footer */

.footer {
  padding: 20px 0;
}

.footer-description {
  padding-top: 5px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  color: var(--dark);
  border-top: 2px solid var(--coral);

  a:hover {
    color: var(--coral);
    text-decoration: underline;
  }
}

.footer-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  text-align: center;
  color: var(--dark);

  a {
    transition: color 0.3s ease;
  }

  a:hover {
    color: var(--coral);
    text-decoration: underline;
  }
}

@media screen and (min-width: 1437px) {
  .footer {
    padding: 25px 0;
  }

  .footer-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 84px;
  }

  .footer-list {
    margin: 0;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  padding: 50px 0;
  width: 100%;
  background: var(--grey-light);
  border-top: 2px solid var(--coral);
  transition: transform 0.5s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  color: var(--dark);
  margin-bottom: 38px;
}

.popup-btn {
  border: 1px solid var(--coral);
  padding: 20px;
  text-transform: uppercase;
  width: 100%;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  color: var(--dark);

  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: var(--coral);
  color: var(--grey-light);
}

.popup-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
}

.popup-click {
  transform: translateY(100%);
}

@media screen and (min-width: 1437px) {
  .popup {
    padding: 45px;
  }

  .popup-text {
    font-size: 24px;
    margin-bottom: 50px;
  }
  .popup-btn {
    font-size: 24px;
  }

  .popup-wrap {
    flex-direction: row;
  }
}
