/* Footer – dark blue block, links, newsletter, contact */

.footer {
  width: 100%;
  margin-top: 48px;
  position: relative;
  margin-bottom: 20px;
}

.footer__bg {
  position: absolute;
  inset: 0;
  background-color: #1e386d;
  border-radius: 32px;
  max-width: 1440px;
  margin-inline: auto;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin-inline: auto;
  padding: 96px 96px 48px 96px;
}

.footer__top {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 79px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.footer__brand {
  flex: 0 0 auto;
  max-width: 358px;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.footer__logo {
  display: block;
  width: 134px;
  height: 69px;
}

.footer__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer__tagline {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(248, 246, 242, 0.8);
  max-width: 358px;
}

.footer__social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.footer__social-link {
  display: block;
  color: #f8f6f2;
  line-height: 0;
}

.footer__social-link:hover {
  color: #019255;
}

.footer__social-link img {
  width: 24px;
  height: 24px;
  display: block;
}

.footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__newsletter-title {
  font-family: 'Satoshi';
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: #ffffff;
}

.footer__newsletter-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #ffffff;
  border-radius: 32px;
  padding: 8px 8px 8px 22px;
  gap: 10px;
  max-width: 358px;
}

.footer__newsletter-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: #262627;
  opacity: 0.5;
}

.footer__newsletter-input::placeholder {
  color: #262627;
  opacity: 0.5;
}

.footer__newsletter-input:focus {
  outline: none;
  opacity: 1;
}

.footer__newsletter-btn {
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  border: none;
  border-radius: 32px;
  background-color: #019255;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.footer__newsletter-btn:hover {
  background-color: #f8f6f2;
  color: #019255;
  border: 1px solid;
}

.footer__newsletter-btn img {
  width: 8px;
  height: 13px;
}

.footer__newsletter-btn:hover img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(500%) hue-rotate(115deg);
}

.footer__cols {
  display: flex;
  flex-direction: row;
  gap: 79px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}

.footer__col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 215px;
}

.footer__col-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: #f8f6f2;
  text-transform: capitalize;
  font-family: 'Satoshi';
}

.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__links a {
  color: #f8f6f2;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
}

.footer__links a:hover {
  color: #019255;
}

.footer__middle {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 79px;
  align-items: flex-start;
  margin-bottom: 0;
  position: absolute;
  bottom: 170px;
}

.footer__brand-ext {
  flex: 0 0 auto;
  max-width: 358px;
}

.footer__image {
  width: 358px;
  max-width: 100%;
  height: 164px;
  border-radius: 32px;
  overflow: hidden;
  background-color: rgba(248, 246, 242, 0.1);
}

.footer__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__cols--second {
  flex: 1;
  min-width: 0;
}

.footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact a,
.footer__contact li {
  color: #f8f6f2;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 300;
}

.footer__contact a:hover {
  color: #019255;
}

.footer__contact li:not(:has(a)) {
  opacity: 1;
}

.footer__divider {
  height: 1px;
  width: 100%;
  background-color: rgba(248, 246, 242, 0.3);
  margin-bottom: 32px;
  margin-top: 210px;
}

.footer__bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__copyright {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(248, 246, 242, 0.8);
}

.footer__legal {
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.footer__legal a {
  color: rgba(248, 246, 242, 0.8);
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
}

.footer__legal a:hover {
  color: #019255;
}

@media (max-width: 1279px) {
  .footer__inner {
    padding: 48px 24px 32px 24px;
  }

  .footer__top {
    gap: 48px;
    margin-bottom: 40px;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__cols {
    gap: 48px;
  }

  .footer__middle {
    gap: 48px;
    margin-bottom: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .footer__bg {
    width: calc(100% - 24px);
    border-radius: 24px;
  }

  .footer__inner {
    padding: 32px 16px 24px 16px;
  }

  .footer__top {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer__newsletter-form {
    max-width: 100%;
  }

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

  .footer__middle {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer__image {
    width: 100%;
    max-width: 358px;
  }
}
