
.footer-main {
  font-family: 'Open Sans', Roboto, sans-serif;
  background: black;
  color: white;
  overflow: hidden;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.44px;
}

.footer-main > div {
  margin-left: auto;
  margin-right: auto;
}

.footer-main a {
  color: white !important;
}

.footer-main a:hover {
  text-decoration: underline;
}

.footer-top-wrapper {
  display: flex;
  padding: 12px 50px;
  justify-content: center;
  align-items: flex-start;
  gap: 112px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 2px solid #ffffff;
  border-bottom: 0;
  position: relative;
  z-index: 1;
  max-width: calc(100vw - 20px);
  margin: 25px auto;
}

.footer-top-wrapper::before,
.footer-top-wrapper::after {
  content: "";
  position: absolute;
  top: 35px;
  width: 2px;
  height: calc(100% - 25px);
  background: linear-gradient(to bottom, white, black);
  z-index: 2;
}

.footer-top-wrapper::before {
  left: -2px;
}

.footer-top-wrapper::after {
  right: -2px;
}

.footer-slogan {
  display: grid;
  grid-template-columns: auto 115px;
  grid-template-rows: repeat(2, auto);
  grid-column-gap: 0;
  grid-row-gap: 10px;
  width: 100%;
}

.footer-slogan-title {
  grid-area: 1 / 1 / 2 / 2;
  font-size: 38px;
}

.footer-slogan-image {
  grid-area: 1 / 2 / 2 / 3;
}

.footer-slogan-image svg {
  max-width: 115px;
}

.footer-slogan-text {
  grid-area: 2 / 1 / 3 / 3;
  font-size: 16px;
}

.footer-subscribe {
  flex-grow: 1;
  width: 100%;
  max-width: 500px;
}

.footer-subscribe-title {
  font-size: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.footer-subscribe-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.footer-subscribe-form {
  grid-area: 1 / 1 / 2 / 2;
  position: relative;
  z-index: 1;
  width: 100%;
  background: black;
  overflow: hidden;
}

.footer-subscribe-form::before,
.footer-subscribe-form::after {
  content: '';
  position: absolute;
  top: 0;
  background-color: #000000;
  height: 100%;
  width: 0;
  transition: width 0.4s ease-in-out;
}

.footer-subscribe-form::before {
  left: 0;
}

.footer-subscribe-form::after {
  right: 0;
}

.footer-subscribe.thank-you .footer-subscribe-form::before,
.footer-subscribe.thank-you .footer-subscribe-form::after {
  width: 51%;
}

.footer-subscribe-form form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 100px;
  background: #ffffff;
  margin: 1px;
}

.footer-subscribe-form input {
  font-size: 16px !important;
  color: black !important;
  font-family: 'Open Sans', Roboto, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.44px !important;
  padding: 0 10px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none;
  line-height: 35px;
  width: 100%;
}

.footer-subscribe-form input,
.footer-subscribe-form input:focus,
.footer-subscribe-form input:focus-visible,
.footer-subscribe-form input:focus-within {
  outline: none;
}

.footer-subscribe-form button {
  border-radius: 100px !important;
  border: 2px solid #82d74f !important;
  color: #000000 !important;
  background: #82d74f !important;
  font-family: 'Open Sans', Roboto, sans-serif !important;
  font-size: 16px !important;
  white-space: nowrap;
  padding: 10px 32px 10px 32px;
  font-weight: 700;
}

.footer-subscribe-form button:hover {
  background: #ffffff !important;
}

.footer-subscribe-thank-you {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: 0.3s ease-in-out 0.8s;
  pointer-events: none;
}

.footer-subscribe.thank-you .footer-subscribe-thank-you {
  opacity: 1;
}

.footer-subscribe-thank-you-video {
  width: 100%;
}

.footer-subscribe-thank-you-video video {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: 125px;
  height: 125px;
}

.footer-bottom-wrapper {
  margin: 100px auto 15px;
  max-width: 1200px;
  width: calc(100vw - 20px);
}

.footer-menus {
  display: flex;
  gap: 60px;
  font-size: 16px;
}

.footer-logo {
  margin-bottom: 10px;
}

.footer-logo img {
  width: 280px;
}

.footer-about,
.footer-menu {
  flex-grow: 1;
  flex-basis: min-content;
  min-width: 150px;
}

.footer-about {
  width: 35%;
  flex-basis: 380px;
}

.footer-menu-title {
  font-size: 20px;
  margin-bottom: 20px;
  white-space: nowrap;
}

.footer-menu-item {
  margin-bottom: 12px;
}

.footer-icons {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-legal-icons img,
.footer-legal-icons-mobile img {
  max-width: 155px;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}

.footer-social-icon {
  width: 45px;
  height: 45px;
}

.footer-social-icon:hover rect {
  fill: #bbf19a;
}

.footer-copyright-wrapper {
  display: flex;
  justify-content: space-between;
  margin: 35px auto 60px;
  border-top: 1px solid white;
  padding: 12px 0;
  font-size: 16px;
  gap: 24px;
}

.footer-copyright-menu {
  display: flex;
  gap: 60px;
}

.footer-legal-icons-mobile {
  display: none;
}

@media (min-width: 1200px) {
  .footer-top-wrapper {
    max-width: calc(1200px - 20px);
  }

  .footer-slogan {
    grid-template-columns: auto 135px;
  }
}

@media (max-width: 650px) {
  .footer-top-wrapper {
    flex-wrap: wrap;
    max-width: calc(100vw - 15px);
    padding: 12px;
    gap: 35px;
  }

  .footer-slogan {
    grid-template-columns: 240px auto;
    grid-row-gap: 2px;
  }

  .footer-slogan-title {
    font-size: 26px;
  }

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

  .footer-slogan-image svg {
    max-width: 92px;
  }

  .footer-bottom-wrapper {
    flex-direction: column;
    max-width: calc(100vw - 35px) !important;
    margin-top: 0;
  }

  .footer-menus {
    flex-direction: column;
    gap: 32px;
  }

  .footer-menu .footer-menu-items {
    overflow: hidden;
    max-height: 0;
    transition: 0.3s ease-in-out;
  }

  .footer-menu:hover .footer-menu-items {
    max-height: 500px;
  }

  .footer-menu-title {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid white;
    position: relative;
  }

  .footer-menu-title::after {
    content: '';
    display: block;
    width: 18px;
    height: 11px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.1s ease-in-out;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12' fill='none'%3E%3Cpath d='M17.6038 1.13275C17.35 0.879061 17.0059 0.736545 16.6471 0.736545C16.2882 0.736545 15.9441 0.879061 15.6903 1.13275L8.99183 7.83125L2.29334 1.13275C2.03811 0.88625 1.69629 0.749853 1.34147 0.752936C0.98666 0.75602 0.647251 0.898337 0.396351 1.14924C0.145452 1.40014 0.00313568 1.73954 5.14984e-05 2.09436C-0.00303078 2.44917 0.133368 2.791 0.379869 3.04622L8.0351 10.7014C8.28887 10.9551 8.633 11.0977 8.99183 11.0977C9.35066 11.0977 9.6948 10.9551 9.94856 10.7014L17.6038 3.04622C17.8575 2.79245 18 2.44832 18 2.08949C18 1.73066 17.8575 1.38652 17.6038 1.13275Z' fill='white'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
  }

  .footer-menu:hover .footer-menu-title::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .footer-about {
    order: 10;
    width: 100%;
    flex-basis: auto;
    margin-bottom: 45px;
  }

  .footer-legal-icons {
    display: none;
  }

  .footer-legal-icons-mobile {
    display: block;
  }

  .footer-copyright-wrapper {
    flex-direction: column-reverse;
  }

  .footer-copyright-text {
    text-align: center;
  }
}
