@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Regular-400.woff2") format("woff2");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/Jakarta-Sans-500.woff2") format("woff2");
  font-style: 500;
  font-weight: normal;
}

html {
  scroll-behavior: smooth;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

body {
  font-family: "Plus Jakarta Sans";
  background-color: #0c0c0d;
}

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

.header {
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-nav a {
  color: #fafafa;
  font-family: "Outfit";
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-style: normal;
  line-height: 22px;
  letter-spacing: 0.32px;
  text-transform: capitalize;
  transition: color 0.4s ease;

  svg path {
    transition: fill 0.4s ease;
  }

  &:hover {
    color: #02ebfd;

    svg path {
      fill: #02ebfd !important;
    }
  }
}

.link-active {
  color: #02ebfd !important;
}

.header-logo {
  display: block;
  max-width: 220px;
  width: 100%;
}

.header-link {
  display: block;
  border-radius: 36px;
  background-color: #fafafa;
  display: flex;
  padding: 12px 18px;
  justify-content: center;
  align-items: center;
  color: #0c0c0d;
  font-family: "Outfit";
  font-size: 12px;
  line-height: 14px;
  gap: 12px;
  transition: background-color 0.4s ease, color 0.4s ease;

  &:hover {
    background-color: #005ed3;
    color: #fff;
  }
}

.burger-icon {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.section-common-title {
  color: #fafafa;
  text-align: center;
  font-size: 38px;
  font-weight: 500;
  line-height: 46px;
  margin-bottom: 36px;
}

.trusted {
  background-color: #141516;
  padding: 18px;
  border-radius: 12px;
}

.trusted-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer {
  background-color: #0c0c0d;
  padding-block: 74px;
}

.footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-logo {
  max-width: 416px;
  width: 100%;
}

.footer-logo img {
  margin-bottom: 24px;
  max-width: 220px;
}

.footer-logo p {
  color: #fafafa;
  font-family: "Outfit";
  font-size: 16px;
  line-height: 24px;
}

.footer-links {
  max-width: 300px;
  width: 100%;
}

.footer-links h4 {
  color: #fafafa;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: #fafafa;
  text-align: center;
  font-family: "Outfit";
  font-size: 14px;
  line-height: 20px;
  transition: color 0.4s ease;

  &:hover {
    color: #02ebfd;
  }
}

.footer-input {
  max-width: 520px;
  width: 100%;
}

.footer-form {
  text-align: right;
  color: #fafafa;
}

.footer-form-title {
  font-size: 24px;
  margin-bottom: 24px;
}

.footer-form-text {
  color: #fafafa;
  text-align: right;
  font-family: "Outfit";
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 24px;
}

.footer-form-wrapper {
  position: relative;
}

.footer-form-input {
  width: 100%;
  border-radius: 32px;
  background: rgba(66, 66, 66, 0.2);
  backdrop-filter: blur(6px);
  color: #fafafa;
  padding: 14px 16px;
  border: none;
}

#footer-form-btn {
  position: absolute;
  right: 0;
  cursor: pointer;
  top: 2px;
  display: block;
  border-radius: 36px;
  background-color: #fafafa;
  display: flex;
  padding: 12px 18px;
  justify-content: center;
  align-items: center;
  color: #0c0c0d;
  font-family: "Outfit";
  font-size: 12px;
  line-height: 14px;
  gap: 12px;
  border: none;
  transition: background-color 0.4s ease, color 0.4s ease;

  &:hover {
    background-color: #005ed3;
    color: #fff;
  }
}

#footer-form-btn:disabled {
  filter: brightness(0.2);
  cursor: not-allowed;
}

.arrow-up {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 6px;
  border-radius: 10px;
  background-color: #005ed3;
  transition: background-color 0.4s ease;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.arrow-up.visible {
  opacity: 1;
  pointer-events: auto;
}

.partners {
  z-index: 0;
  background-color: #005ed3;
}

.partners-inner {
  padding: 20px 0;
  display: flex;
  background-color: #02ebfd;
  transform: rotate(357deg);
  overflow-x: hidden;
}

.partners-images {
  z-index: 1;
  display: flex;
  gap: 74px;
  align-items: center;
  justify-content: space-between;
  animation: scroll 60s linear infinite;
}

.partner {
  margin-right: 20px;
}
.header-nav li:first-child {
  display: none;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 1320px) {
  .container {
    padding-inline: 50px;
  }

  .trusted-wrapper {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(3, auto);
    gap: 80px 40px;
  }

  .trusted-wrapper img {
    max-width: 100px;
    width: 100%;
  }

  .trusted-wrapper img:last-child {
    grid-column: 3;
  }
}

@media (max-width: 768px) {
  .burger-icon {
    display: block;
  }

  .header-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: -100%;
    top: 0;
    background: black;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    justify-content: center;
    align-items: center;
    transition: left 0.8s ease;
  }
  .header-nav li:first-child {
    display: block;
    position: absolute;
    right: 10px;
    top: 10px;
  }
  .header-nav a {
    font-size: 18px;
  }
  .header-nav.active-menu {
    left: 0;
  }
  .container {
    padding-inline: 18px;
  }

  .footer {
    padding-block: 48px;
  }

  .footer .container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer-form {
    text-align: left;
  }

  .footer-logo {
    max-width: 100%;
  }

  .footer-form-text {
    text-align: left;
  }

  .footer-logo p {
    font-size: 14px;
  }

  .footer-form-text {
    font-size: 14px;
  }

  .footer-links ul {
    gap: 20px;
  }

  .footer-links h4 {
    font-size: 18px;
  }

  .footer-form-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
}

@media (max-width: 500px) {
  .header-link {
    display: none;
  }

  .header-logo {
    max-width: 120px;
  }

  .trusted-wrapper {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(4, auto);
    gap: 40px 40px;
  }

  .footer {
    max-width: 480px;
  }

  .trusted-wrapper img {
    max-width: 80px;
    width: 100%;
  }
  .trusted {
    margin-block: 48px !important;
  }

  .trusted-wrapper img:last-child {
    grid-column: unset;
  }
}
