/* header */

.ev-t--header {
  position: fixed;
  top: 0;
  left: 50%;
  width: 341px;
  transform: translateX(-50%);
  z-index: 9;
  padding: 20px 16px;
  background: #fcf7e1;
}

.header-logo {
  width: 44px;
}

.ev-t--header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ev-t--navigation {
  display: none;
}

.modal-button {
  display: block;
}

.close-modal {
  margin-left: auto;
}

.svg {
  stroke: #1e2a27;
}

.ev-t--navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.navigation-item {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 130%;
  color: var(--d-green-bg);
  transition: color 0.3s ease;
}

.navigation-item:hover {
  color: #268f71;
}

.modal {
  position: fixed;
  top: 96px;
  left: 50%;
  width: 343px;
  border-radius: 16px;
  padding: 32px;
  background: #fcf7e1;
  transform: translateY(-140%) translateX(-50%);
  transition: transform 1s ease;
  z-index: 8;
}

.modal-navigation-list {
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.modal-click {
  transform: translateY(0) translateX(-50%);
}

@media screen and (min-width: 768px) {
  .ev-t--header {
    width: 704px;
    padding: 20px 32px;
  }

  .modal {
    width: 704px;
  }
}

@media screen and (min-width: 1437px) {
  .ev-t--header {
    width: 1118px;
    padding: 10px 64px;
  }

  .ev-t--header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navigation-item {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: var(--d-green-bg);
  }

  .ev-t--navigation {
    display: block;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 0;
}

.home-content {
  padding-top: 96px;
  padding-bottom: 0;
  border-radius: 0 0 32px 16px;
  background: #fcf7e1;
}

.home-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 48px;
  line-height: 120%;
  color: var(--d-green-bg);
  margin-bottom: 24px;
}

.home-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--d-green-bg);
  margin-bottom: 13px;
}

.hero-image {
  width: 244px;
  margin: 0 auto;
}

.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-content {
    padding-top: 98px;
    padding-bottom: 80px;
    padding-right: 50px;
    display: flex;
    align-items: center;
    gap: 35px;
    border-radius: 0 0 64px 24px;
  }

  .home-title {
    font-size: 64px;
    margin-bottom: 40px;
  }

  .home-text {
    font-size: 18px;
  }

  .hero-image {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* about */

.about-content {
  border-radius: 32px 0 16px 32px;
  background: #d4e07d;
}

@media screen and (min-width: 1437px) {
  .about-content {
    border-radius: 64px 0 24px 64px;
  }
}

/* key */

.key-content {
  border-radius: 0 32px 32px 16px;
  background: #dd7339;
}

.key-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  li {
    display: flex;
    align-items: center;
    gap: 16px;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--d-green-bg);
  }

  img {
    width: 32px;
    flex-shrink: 0;
  }
}

@media screen and (min-width: 1437px) {
  .key-content {
    border-radius: 0 64px 64px 24px;
  }

  .key-list {
    gap: 24px 32px;
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 32px) / 2);
      font-size: 18px;
    }
  }
}

/* visual */

.visual-list-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 150%;
  color: var(--yellow);
  margin-bottom: 16px;
}

.visual-list {
  display: flex;
  flex-direction: column;
  gap: 40px;

  li {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--l-pink);
  }

  img {
    margin-bottom: 8px;
  }
}

@media screen and (min-width: 768px) {
  .visual-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 40px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .visual-title-wrap {
    display: flex;
    align-items: center;
    gap: 193px;
    margin-bottom: 40px;

    .second-title,
    .text {
      margin: 0;
    }

    div {
      flex-shrink: 0;
    }
  }

  .visual-list-title {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .visual-list {
    gap: 32px;

    li {
      width: calc((100% - 96px) / 4);
      font-size: 18px;
    }
  }
}

/* how */

.how-content {
  border-radius: 32px 0 16px 32px;
  background: #d4e07d;
  position: relative;
}

.how-list-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 150%;
  color: var(--d-green-bg);
  margin-bottom: 40px;
}

.how-list {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 150%;
  color: var(--d-green-bg);
}

.granpa-2 {
  position: absolute;
  top: 24px;
  right: 16px;
  width: 117px;
}

@media screen and (min-width: 768px) {
  .granpa-2 {
    width: 157px;
  }
}

@media screen and (min-width: 1437px) {
  .how-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 64px 0 24px 64px;
  }

  .how-list-title {
    font-size: 22px;
    margin: 0;
  }

  .how-list {
    font-size: 22px;
  }

  .granpa-2 {
    width: auto;
    top: 50%;
    right: auto;
    left: 50%;
    transform: translateX(-260px) translateY(-50%);
  }
}

/* testimonials */

.testimonials-item {
  width: 343px;
  border-radius: 16px 16px 0 16px;
  padding: 16px;
  background: #764135;
  min-height: 294px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--white);
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    text-align: right;
    color: var(--yellow);
  }
}

.swiper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.swiper-btn:hover,
.swiper-btn:focus {
  opacity: 1;
}

.testimonials-btn-wrap {
  display: flex;
  gap: 32px;
  justify-content: flex-end;
  margin-top: 21px;
}

.testimonials-right {
  transform: scaleX(-1);
}

@media screen and (min-width: 1437px) {
  .testimonials-item {
    width: 544px;
    border-radius: 24px 24px 0 24px;
    padding: 16px 24px;

    p {
      font-size: 18px;
    }

    span {
      font-size: 22px;
    }
  }

  .testimonials-btn-wrap {
    margin-top: 32px;
  }
}

/* faq */

.faq-content {
  border-radius: 16px;
  background: #e0bfd9;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  width: 100%;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--d-green-bg);
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;

  background-image: url(../images/plus.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease, transform 0.3s ease;
}

.faq-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 130%;
  color: var(--d-green-bg);
}

.faq-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--d-green-bg);
  margin-top: 8px;
}

.click {
  background-image: url(../images/minus.png);
  transform: rotate(180deg);
}

@media screen and (min-width: 1439px) {
  .faq-content {
    border-radius: 24px;
  }

  .faq-title {
    font-size: 28px;
  }

  .faq-text {
    font-size: 18px;
  }
}

.hidden {
  display: none;
}

/* footer */

.footer {
  padding-top: 60px;
}

.footer-description {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 130%;
  color: var(--yellow);
  margin-bottom: 40px;
}

.footer-mail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    color: var(--l-pink);
  }

  a,
  span {
    font-weight: 400;
    font-size: 16px;
  }

  a:hover {
    text-decoration: underline;
  }
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--l-pink);

  a:hover {
    text-decoration: underline;
  }
}

.footer-domain {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 11px;
  line-height: 150%;
  color: var(--l-pink);
}

@media screen and (min-width: 1437px) {
  .footer-description {
    font-size: 28px;
  }

  .footer-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-mail {
    margin: 0;

    p {
      font-size: 22px;
    }

    a,
    span {
      font-size: 18px;
    }
  }

  .footer-list {
    font-size: 18px;
    align-items: flex-end;
  }

  .footer-domain {
    font-size: 12px;
    text-align: end;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 32px;
  left: 50%;
  border-radius: 32px;
  padding: 32px;
  background: var(--d-green-bg);
  width: 340px;
  max-width: 100%;
  transform: translateX(-50%);
  transition: transform 0.5s ease;
}

.popup-text {
  font-family: var(--third-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  text-align: center;
  color: var(--l-pink);
  margin-bottom: 40px;
}

.popup-btn {
  border: 1px solid var(--white);
  padding: 14px;
  width: 100%;
  border-radius: 28px;

  font-family: var(--second-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 150%;
  color: var(--white);

  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: var(--white);
  color: var(--d-green-bg);
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

@media screen and (min-width: 768px) {
  .popup {
    width: 660px;
  }
}

@media screen and (min-width: 1437px) {
  .popup {
    padding: 32px;
    width: 1100px;
  }

  .popup-container {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .popup-text {
    font-size: 18px;
    margin: 0;
    text-align: start;
  }
  .popup-btn {
    font-size: 20px;
    width: 256px;
  }

  .popup-wrap {
    flex-direction: row;
    gap: 32px;
    flex-shrink: 0;
  }
}
