.footer {
  --footer-bg: #02091c;
  --footer-text: #e8eef4;
  --footer-muted: #aeb8c2;
  --footer-soft: #8995a0;
  --footer-line: #253047;

  padding: 68px max(5vw, 24px) 20px;
  color: var(--footer-text);
  background: var(--footer-bg);
}

.footer-top {
  width: min(100%, 1668px);
  min-height: 190px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: clamp(58px, 10vw, 150px);
  align-items: stretch;
}

.footer-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.footer-brand {
  width: fit-content;
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer-brand .brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.footer-disclaimer {
  max-width: 850px;
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.72;
}

.footer-disclaimer p {
  margin: 0;
}

.footer-disclaimer p + p {
  margin-top: 8px;
}

.contact-line {
  margin: auto 0 0;
  padding-top: 18px;
  color: #d8dfe8;
  font-size: 12px;
  line-height: 1.7;
}

.contact-line strong {
  color: #fff;
}

.contact-line a {
  color: inherit;
  text-decoration: none;
}

.contact-line a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter {
  width: min(100%, 320px);
  align-self: center;
  justify-self: center;
  padding: 0;
}

.newsletter__card {
  padding: 17px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 27, 44, 0.98), rgba(14, 21, 36, 0.98));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.newsletter__title {
  margin: 0 9px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.newsletter__title svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  fill: none;
  stroke: #c8d0dd;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.newsletter__title p {
  max-width: 225px;
  margin: 0;
  color: #c6cdda;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.newsletter form {
  margin: 0;
}

.newsletter__field {
  min-height: 49px;
  padding: 4px 5px 4px 19px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #f8f9fc;
  box-shadow:
    inset 0 0 0 1px rgba(5, 17, 36, 0.04),
    0 8px 19px rgba(0, 0, 0, 0.08);
}

.newsletter__field:focus-within {
  box-shadow:
    0 0 0 3px rgba(6, 122, 83, 0.22),
    0 8px 19px rgba(0, 0, 0, 0.08);
}

.newsletter input[type="email"] {
  min-width: 0;
  height: 41px;
  flex: 1;
  padding: 0;
  color: #172033;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  outline: 0;
  background: transparent;
}

.newsletter input[type="email"]::placeholder {
  color: #9aa6bc;
  opacity: 1;
}

.newsletter button {
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: #067a53;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.newsletter button:hover {
  background: #089565;
  transform: scale(1.05);
}

.newsletter button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.newsletter button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.newsletter-message {
  min-height: 0;
  margin: 0 8px;
  color: #ffbebe;
  font-size: 10px;
  line-height: 1.45;
}

.newsletter-message:not(:empty) {
  padding: 8px 0 2px;
}

.newsletter small {
  display: block;
  margin: 9px 12px 0;
  color: var(--footer-soft);
  font-size: 9px;
  line-height: 1.5;
}

.newsletter small a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  width: min(100%, 1668px);
  min-height: 55px;
  margin: 52px auto 0;
  padding-top: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  color: var(--footer-soft);
  font-size: 10px;
  line-height: 1.5;
  border-top: 1px solid var(--footer-line);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

.newsletter-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.newsletter-modal.is-visible {
  visibility: visible;
  opacity: 1;
}

.newsletter-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 9, 28, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.newsletter-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #15213a;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.newsletter-modal__dialog strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.newsletter-modal__dialog p {
  margin: 0;
  color: #687387;
  font-size: 12px;
  line-height: 1.5;
}

.newsletter-modal__spinner {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 3px solid #dce6f5;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: newsletter-spin 0.75s linear infinite;
}

body.is-newsletter-submitting {
  overflow: hidden;
}

@keyframes newsletter-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .footer-top {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .contact-line {
    margin-top: 20px;
  }

  .newsletter {
    width: min(100%, 320px);
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 52px 20px 18px;
  }

  .footer-brand {
    margin-bottom: 20px;
  }

  .footer-disclaimer {
    font-size: 11px;
    line-height: 1.68;
  }

  .contact-line {
    display: grid;
    gap: 3px;
  }

  .contact-line > span {
    display: none;
  }

  .footer-bottom {
    margin-top: 42px;
    flex-direction: column;
    gap: 14px;
  }

  .footer-bottom nav {
    justify-content: flex-start;
    gap: 11px 18px;
  }

  .newsletter-modal__dialog {
    padding: 23px 20px;
    border-radius: 17px;
  }

  .newsletter {
    width: 100%;
    max-width: 340px;
  }

  .newsletter__card {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter button,
  .newsletter-modal {
    transition: none;
  }

  .newsletter-modal__spinner {
    animation-duration: 1.5s;
  }
}
.newsletter form {
  border: 0;
  border-bottom: none;
  box-shadow: none;
}
