.main-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 22px 0;
  background: #fff;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  width: 151px;
}

.page-nav {
  display: none;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-nav-link {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #1f1534;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.page-nav-link:hover {
  opacity: 1;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.menu-svg {
  fill: none;
  stroke: #be45f6;
}

#built-link {
  display: none;
}

@media screen and (min-width: 1436px) {
  .main-section {
    padding: 30px 0;
  }

  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }

  #built-link {
    display: block;
    margin: 0;
    width: 270px;
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  padding-top: 134px;
  z-index: 8;
  background: #fff;
  transform: translateY(-100%);
  transition: transform 1s ease;
}

.menu-nav-list {
  flex-direction: column;
}

.modal-built-link {
  display: block;
  margin-top: 54px;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 10;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 40px;
  transition: transform 0.4s ease;
  background: #6e35f0;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 125%;
  text-align: center;
  color: #fff;
  margin-bottom: 18px;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  color: #f645ac;
  text-decoration: underline;
  border-radius: 5px;
  padding: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: #60b7dc;
  color: #fff;
  text-decoration: underline;
}

.popup-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
}

@media screen and (min-width: 1436px) {
  .popup-text {
    font-size: 18px;
  }

  .popup-btn {
    font-size: 16px;
    padding: 10px 30px;
  }

  .popup-wrap {
    gap: 80px;
  }
}

/* hero  */

.dashboard {
  padding-top: 125px;
  padding-bottom: 0;
}

.page-hero-title {
  text-align: start;
}

.page-hero-description {
  text-align: start;
}

.page-hero-text {
  text-align: start;
}

.page-hero-link {
  font-family: var(--font-family);
  font-weight: 1000;
  font-size: 18px;
  text-align: center;
  color: #fff;
  margin-top: 35px;
  display: block;
  width: 355px;
  border-radius: 30px;
  padding: 20px;
  background: #be45f6;
  transition: background-color 0.3s ease;
}

.page-hero-link:hover {
  background: #f645ac;
}

.hero-illustration {
  width: 413px;
  margin-left: auto;
}

@media screen and (min-width: 1436px) {
  .dashboard {
    padding-top: 220px;
    padding-bottom: 0;
  }

  .home-container {
    padding-right: 0;
    display: flex;
    align-items: flex-start;
  }

  .hero-illustration {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* core  */

.core-illustration {
  display: none;
}

.core-text {
  font-family: var(--font-family);
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  line-height: 133%;
  text-align: right;
  color: #be45f6;
  margin-top: 32px;
  margin-bottom: 12px;
}

.core-title {
  font-family: var(--font-family);
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  line-height: 133%;
  text-align: right;
  color: #7d7987;
}

@media screen and (min-width: 1436px) {
  #core {
    padding-top: 0;
  }

  .core-container {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .core-illustration {
    display: block;
    flex-shrink: 0;
  }
}

/* what  */

#what {
  background-image: url(../img/what-frame.png);
  background-position: left;
  background-repeat: no-repeat;
}

.what-swiper {
  margin-top: 37px;
}

.what-slide {
  border-radius: 20px;
  padding: 52px 37px;
  width: 350px;
  min-height: 368px;
  max-width: 100%;
  background: #fff;

  img {
    width: 32px;
    margin-bottom: 30px;
  }
  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    color: #000;
    margin-bottom: 26px;
  }

  ul {
    padding-left: 20px;
    list-style: disc;
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 16px;
    line-height: 112%;
    color: #7d7987;
  }
}

@media screen and (min-width: 768px) {
  .what-slide {
    width: calc((100% - 43px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  .what-slide {
    width: calc((100% - 86px) / 3);
  }
}

/* how */

.how-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 44px 0;

  li {
    border-radius: 30px;
    padding: 23px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 21px;
    line-height: 152%;
    text-align: center;
    color: #fff;
    background: linear-gradient(358deg, #f3f7ff 0%, #be45f6 100%);
  }
}

.how-link {
  font-family: var(--font-family);
  font-weight: 1000;
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  border-radius: 30px;
  padding: 20px;
  display: block;
  width: 411px;
  max-width: 100%;
  margin: 0 auto;
  background: #4089ed;
  transition: background-color 0.3s ease;
}

.how-link:hover {
  background-color: #f645ac;
}

@media screen and (min-width: 768px) {
  .how-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 18px) / 2);
    }
  }
}

/* cases */

.cases-image {
  display: none;
}

.cases-swiper {
  margin-top: 84px;
}

.cases-slide {
  .title,
  .text {
    text-align: start;
  }

  ul {
    padding: 60px;
    background: #6e35f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    margin-top: 47px;

    li {
      font-family: var(--font-family);
      font-weight: 500;
      font-size: 21px;
      line-height: 100%;
      text-align: center;
      color: #fff;

      span {
        display: block;
        font-size: 64px;
        font-weight: 1000;
        line-height: 150%;
      }
    }
  }
}

@media screen and (min-width: 1436px) {
  .cases-slide {
    ul {
      flex-direction: row;
    }
  }

  .cases-image {
    display: block;
    flex-shrink: 0;
  }

  .cases-cover {
    display: flex;
    align-items: center;
    gap: 39px;
  }
}

/* insights */

.insights-swiper {
  margin-top: 65px;
}

.insights-slide {
  width: 350px;
  max-width: 100%;

  h4 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 21px;
    line-height: 105%;
    color: #000;
    margin: 18px 0;
  }

  p {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 16px;
    line-height: 112%;
    color: #7d7987;
    margin-bottom: 9px;
  }
  h5 {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 112%;
    color: #1e1e1e;
    margin-bottom: 9px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 17px;
    line-height: 165%;
    color: #be45f6;
  }
}

@media screen and (min-width: 768px) {
  .insights-slide {
    width: calc((100% - 43px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  .insights-slide {
    width: calc((100% - 86px) / 3);
  }
}

/* testimonials */

.testimonials-slide {
  padding: 60px 22px;
  border-radius: 24px;
  background: linear-gradient(358deg, #f3f7ff 0%, #be45f6 100%);

  img {
    width: 141px;
    flex-shrink: 0;
    margin: 0 auto;
    margin-bottom: 29px;
  }

  h5 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 22px;
    line-height: 218%;
    text-align: center;
    color: #fff;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 111%;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 19px;
    line-height: 158%;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 24px;
  }
}

@media screen and (min-width: 1436px) {
  .testimonials-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;

    img {
      margin: 0;
    }

    p {
      width: 420px;
      margin: 0;
    }
  }
}

/* contact  */

#contact {
  background-image: url(../img/contact.png);
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
}

.contact-mail {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 32px;

  p {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 21px;
    line-height: 152%;
    letter-spacing: -0.02em;
    color: #000;
  }

  a:hover {
    text-decoration: underline;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  margin-top: 77px;

  input,
  textarea {
    border: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: rgba(64, 137, 237, 0.3);
    border-radius: 30px;
    padding: 14px 44px;
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 21px;
    line-height: 152%;
    letter-spacing: -0.02em;
    color: #000;
    resize: none;
    outline: none;
    width: 100%;
  }
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 21px;
  line-height: 152%;
  letter-spacing: -0.02em;
  color: #000;
}

.submit-btn {
  width: 100%;
}

@media screen and (min-width: 1436px) {
  .contact-container {
    display: flex;
    align-items: flex-start;
    gap: 77px;
  }

  .contact-form {
    width: 650px;
    flex-shrink: 0;
  }
}

/* footer */

.footer {
  padding: 100px 0;
  background: #6e35f0;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  font-family: var(--font-family);
  font-weight: 800;
  font-size: 21px;
  line-height: 152%;
  letter-spacing: -0.02em;
  color: #fff;

  a:hover {
    text-decoration: underline;
  }
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 12px;
  line-height: 267%;
  color: #fff;
  text-align: center;
  margin-top: 64px;
}

@media screen and (min-width: 1436px) {
  .footer {
    padding: 44px 0;
  }

  .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-text {
    margin: 0;
  }

  .footer-list {
    margin: 0;
    flex-direction: row;
    gap: 32px;
  }
}

/* loader */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(94, 95, 147, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top-color: #f645ac;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* scroll */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f645ac;
  background-color: #fff;
  color: #f645ac;
  cursor: pointer;
  z-index: 7;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0);
}

.click {
  transform: rotate(135deg);
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
