/* header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 24px 0;
  background: var(--white);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  svg {
    stroke: var(--d-navy);
  }
}

.header-logo:hover {
  svg {
    stroke: var(--navy);
  }
}

.navigation {
  display: none;
}

.modal-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg {
  fill: none;
  stroke: var(--d-navy);
  transition: stroke 0.3s ease;
}

.svg:hover {
  stroke: var(--navy);
}

.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-navy);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation-item:hover,
.navigation-item:focus {
  color: var(--navy);
}

.modal {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  border-radius: 24px;
  background: var(--white);

  border: 1px solid var(--d-navy);
  padding: 32px;
  transition: transform 1s ease;
  z-index: 8;
}

.modal-navigation-list {
  flex-direction: column;
}

.modal-click {
  transform: translateY(0) translateX(-50%);
}

@media screen and (min-width: 1437px) {
  .header {
    padding: 12px 0;
  }

  .navigation {
    display: block;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 120px;
}

.home-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 48px;
  line-height: 120%;
  color: var(--d-navy);
  margin-bottom: 24px;

  span {
    display: block;
    color: var(--navy);
  }
}

.home-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  color: var(--d-navy);
  margin-bottom: 64px;
}

.home-link {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: var(--d-navy);

  display: block;
  margin: 0 auto;
  width: 256px;
  max-width: 100%;
  text-align: center;
  border-radius: 24px;
  padding: 12px 24px;
  background: var(--orange);
  border: 2px solid var(--orange);
  transition: background-color 0.4s ease;
}

.home-link:hover {
  background: none;
}

.home-image {
  display: none;
}

@media screen and (min-width: 1437px) {
  #home {
    padding-bottom: 0;
  }

  .home-container {
    display: flex;
    align-items: flex-start;
    gap: 32px;
  }

  .home-title {
    font-size: 72px;
    margin-bottom: 32px;
  }

  .home-text {
    font-size: 20px;
    margin-bottom: 40px;
  }

  .home-link {
    margin: 0;
  }

  .home-image {
    display: block;
    flex-shrink: 0;
  }
}

/* intro-list */

.content-wrapper {
  border: 1px solid var(--l-gray);
  border-radius: 24px;
  padding: 24px;
}

.intro-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;

  li {
    border-radius: 24px;
    padding: 12px;
    /* width: 256px;
    max-width: 100%; */
    background: var(--navy);

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    text-align: center;
    color: var(--white);
  }
}

.intro-link {
  margin: 0;
  margin-left: auto;
}

@media screen and (min-width: 768px) {
  .intro-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    li {
      width: calc((100% - 32px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .intro-list {
    li {
      width: calc((100% - 96px) / 4);
    }
  }
}

/* services */

.services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 64px 0;

  li {
    border: 1px solid var(--gray);
    border-radius: 24px;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    text-align: center;
    color: var(--d-navy);
  }
}

@media screen and (min-width: 768px) {
  .services-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    li {
      width: calc((100% - 32px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .services-list {
    li {
      width: calc((100% - 64px) / 3);
    }
  }
}

/* benefits */

#benefits {
  background: var(--navy);
}

.background {
  display: none;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;

  li {
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--white);
  }

  img {
    width: 32px;
    flex-shrink: 0;
  }
}

@media screen and (min-width: 768px) {
  .benefits-list {
    flex-direction: row;
    flex-wrap: wrap;
    li {
      width: calc((100% - 16px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .benefits-list {
    gap: 16px 43px;

    li {
      width: calc((100% - 43px) / 2);
      font-size: 18px;
    }
  }

  .background {
    display: block;
    position: absolute;
    top: 60px;
    right: 0;
  }
}

/* process */

.process-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;

  li {
    border-radius: 24px;
    padding: 12px 24px;
    background: var(--orange);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--d-navy);
  }
}

.process-link {
  display: block;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  color: var(--d-navy);
  margin-top: 32px;
  transition: color 0.4s ease;
}

.process-link:hover,
.process-link:focus {
  color: var(--navy);
}

@media screen and (min-width: 768px) {
  .process-list {
    flex-direction: row;
    flex-wrap: wrap;
    li {
      width: calc((100% - 32px) / 3);
    }
  }
}

@media screen and (min-width: 1437px) {
  .process-list {
    gap: 0;

    li {
      width: calc(100% / 5);
    }
  }

  .process-link {
    font-size: 20px;
  }
}

/* plans */

.plans-list {
  display: flex;
  flex-direction: column;
  gap: 16px;

  li {
    border-radius: 24px;
    padding: 12px 24px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  h5 {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
    color: var(--d-navy);
    margin-bottom: 32px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--gray);
  }

  span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 36px;
    line-height: 120%;
    color: var(--orange);
  }
}

@media screen and (min-width: 768px) {
  .plans-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    li {
      width: calc((100% - 32px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .plans-list {
    li {
      width: calc((100% - 96px) / 4);
    }
  }
}

/* testimonials */

.testimonials-slide {
  border-radius: 24px;
  padding: 8px 16px;
  width: 327px;
  max-width: 100%;
  background: var(--navy);
  min-height: 131px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  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: 18px;
    line-height: 150%;
    text-align: right;
    color: var(--white);
  }
}

.testimonials-list {
  display: none;
}

@media screen and (min-width: 768px) {
  .testimonials-slide {
    width: 340px;
  }
}

@media screen and (min-width: 1437px) {
  .testimonials-swiper {
    display: none;
  }

  .testimonials-list {
    display: flex;
    flex-direction: row;
    gap: 32px;
    flex-wrap: wrap;
  }

  .testimonials-slide {
    border-radius: 24px;
    padding: 12px 24px;

    p {
      font-size: 18px;
    }

    span {
      font-size: 20px;
    }
  }
}

/* gallery */

.gallery-title-list {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--navy);
  margin-bottom: 32px;

  div {
    padding: 16px;
    border-bottom: 1px solid var(--white);
  }

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
    text-align: center;
    color: var(--white);
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--white);
  }
}

.gallery-slide {
  width: 330px;
  border-radius: 24px;
  overflow: hidden;
  max-width: 100%;
}

@media screen and (min-width: 768px) {
  .gallery-slide {
    width: 340px;
  }

  .gallery-title-list {
    flex-direction: row;

    div {
      width: calc(100% / 5);
      border: none;
      border-right: 1px solid var(--white);
    }

    p {
      font-size: 20px;
    }

    span {
      font-size: 14px;
    }
  }
}

@media screen and (min-width: 1437px) {
  .gallery-slide {
    width: 448px;
  }

  .gallery-title-list {
    p {
      font-size: 28px;
    }

    span {
      font-size: 18px;
    }
  }
}

/* blog  */

#blog {
  background: var(--navy);
}

.blog-img {
  width: 171px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  height: 300px;
}

.faq-item {
  cursor: pointer;
  border-radius: 24px;
  padding: 16px;
  background: var(--white);
  transition: border-color 0.3s ease;
}

.faq-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--d-navy);
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  transition: transform 0.5s ease;
}

.faq-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--d-navy);
  margin-top: 16px;
}

@media screen and (min-width: 768px) {
  .blog-container {
    display: flex;
    align-items: center;
    align-items: center;
    gap: 32px;
  }

  .blog-img {
    width: 171px;
    margin: 0;
  }
}

@media screen and (min-width: 1437px) {
  .blog-container {
    justify-content: space-between;
    gap: 148px;
  }
  .faq-list {
    margin: 0;
    /* height: 400px; */
  }

  .faq-item {
    border-radius: 24px;
    padding: 16px;
  }

  .faq-title {
    font-size: 18px;
  }
}

.hidden {
  display: none;
}

.click {
  transform: rotate(180deg);
}

/* footer */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--white);
  background: var(--navy);
}

.footer-mail {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--white);
  margin-bottom: 32px;

  a:hover {
    text-decoration: underline;
  }
}

.footer-social {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;

  a {
    width: 32px;
    transition: transform 0.35s ease;
  }

  a:hover {
    transform: scale(1.1);
  }
}

.footer-list {
  display: flex;
  gap: 16px;
  flex-direction: column;
  margin-bottom: 40px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--white);

  a:hover {
    text-decoration: underline;
  }
}

.footer-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 11px;
  line-height: 150%;
  text-align: center;
  color: var(--white);
}

@media screen and (min-width: 1437px) {
  .footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
  }

  .footer-mail {
    font-size: 18px;
  }

  .footer-social {
    margin: 0;
  }

  .footer-list {
    font-size: 18px;
    margin: 0;
    align-items: flex-end;
  }

  .footer-description {
    font-size: 12px;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 24px;
  padding: 32px;
  background: var(--d-navy);
  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(--white);
  margin-bottom: 40px;
}

.popup-btn {
  border: 1px solid var(--white);
  border-radius: 28px;
  padding: 8px 24px;
  width: 256px;
  max-width: 100%;

  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 {
  color: var(--d-navy);
  background: var(--white);
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

@media screen and (min-width: 768px) {
  .popup-wrap {
    flex-direction: row;
    gap: 32px;
    justify-content: center;
  }
}

@media screen and (min-width: 1437px) {
  .popup {
    padding: 32px;
  }

  .popup-text {
    font-size: 18px;
    text-align: start;
    margin: 0;
  }

  .popup-btn {
    font-size: 20px;
  }

  .popup-wrap {
    flex-direction: row;
    flex-shrink: 0;
  }

  .popup-container {
    display: flex;
    align-items: center;
    gap: 32px;
  }
}
