/* ==========================================================================
   Footer - premium brand system
   ========================================================================== */

.newsletter {
  position: relative;
  z-index: 2;
  margin: 56px 0 -58px !important;
  color: #fff !important;
  background: transparent !important;
}

.newsletter-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: 28px;
  align-items: center;
  min-height: 166px;
  padding-top: 32px;
  padding-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 11% -32%, rgba(255, 238, 174, .42), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(132, 211, 151, .28), transparent 31%),
    linear-gradient(135deg, #0e5129 0%, #17743a 48%, #24974c 100%);
  box-shadow: 0 28px 80px rgba(15, 91, 45, .26);
}

.newsletter-card::after {
  content: "";
  position: absolute;
  top: -86px;
  right: 26%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, .07);
  pointer-events: none;
}

.newsletter-copy,
.newsletter-form {
  position: relative;
  z-index: 1;
}

.footer-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  color: #eaffef;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.newsletter b {
  display: block;
  max-width: 640px;
  color: #fff;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.newsletter span:not(.footer-kicker) {
  display: block;
  max-width: 620px;
  margin-top: 9px;
  color: rgba(234, 255, 239, .88);
  line-height: 1.65;
}

.newsletter-form,
.newsletter form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}

.newsletter-form input[type="email"],
.newsletter form input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .1);
}

.newsletter-form button,
.newsletter form button {
  min-width: 118px;
  border: 0;
  border-radius: 16px;
  padding: 16px 23px;
  background: #fff8e8;
  color: var(--green);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .1);
  transition: transform .2s, box-shadow .2s, background .2s;
}

.newsletter-form button:hover,
.newsletter form button:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .14);
}

.footer {
  position: relative;
  overflow: hidden;
  padding: 112px 0 30px !important;
  color: #5d5248 !important;
  background:
    linear-gradient(180deg, #f8fff9 0%, #fffaf0 22%, #fff8e8 100%) !important;
  border-top: 1px solid rgba(234, 223, 206, .72);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 7% 12%, rgba(23, 116, 58, .10), transparent 26%),
    radial-gradient(circle at 96% 5%, rgba(200, 151, 54, .14), transparent 28%),
    linear-gradient(90deg, rgba(23, 116, 58, .04), transparent 34%, rgba(23, 116, 58, .04));
}

.footer-shell {
  position: relative;
  width: min(1680px, calc(100% - 48px)) !important;
  max-width: none !important;
  padding-inline: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(280px, .92fr) minmax(520px, 1.46fr) minmax(280px, .92fr) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.footer-brand,
.footer-link-panel,
.footer-contact {
  border: 1px solid rgba(234, 223, 206, .76);
  background: rgba(255, 255, 255, .73);
  box-shadow: 0 22px 62px rgba(29, 74, 37, .08);
  backdrop-filter: blur(14px);
}

.footer-brand,
.footer-contact {
  border-radius: 28px;
  padding: 30px !important;
  min-height: 420px !important;
}

.footer-link-panel {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  border-radius: 28px;
  padding: 28px !important;
  min-height: 420px !important;
}

.footer-logo {
  align-items: center;
  margin-bottom: 16px;
}

.footer .logo {
  font-size: 21px;
  line-height: 1.05;
}

.footer .logo-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 18px;
}

.footer .logo small {
  margin-top: 5px;
}

.footer-brand p,
.footer-contact-note {
  margin: 0;
  color: #64584d;
  font-size: 15px;
  line-height: 1.76;
}

.footer-brand-contact {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.footer-brand-contact p {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid rgba(234, 223, 206, .86);
  border-radius: 18px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255, 250, 242, .88), rgba(247, 255, 248, .84));
  box-shadow: 0 14px 30px rgba(29, 74, 37, .05);
}

.footer-brand-contact p span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green);
  font-size: 17px;
  font-weight: 950;
}

.footer-brand-contact a,
.footer-brand-contact em {
  width: auto;
  min-width: 0;
  color: #4f453d;
  font-style: normal;
  font-weight: 800;
  word-break: break-word;
}

.footer-social-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(234, 223, 206, .72);
}

.footer-social-block strong {
  display: block;
  color: var(--brown);
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 10px;
}

.footer h4 {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 12px;
  color: var(--brown);
  font-size: 16px;
  line-height: 1.25;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.footer-col {
  min-width: 0;
  border-radius: 22px;
  padding: 13px;
  transition: background .2s;
}

.footer-col:hover {
  background: rgba(244, 255, 246, .58);
}

.footer p,
.footer a,
.footer em {
  color: #5d5248;
  font-size: 14px;
  line-height: 1.62;
}

.footer a {
  display: flex !important;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 8px;
  text-decoration: none;
  transition: color .2s, transform .2s;
}

.footer-col a {
  margin-bottom: 10px;
}

.footer-col a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .72;
  flex: 0 0 6px;
}

.footer a:hover {
  color: var(--green);
  transform: translateX(3px);
}

.footer-contact .footer-kicker {
  border-color: #cfe8d4;
  background: #f4fff6;
  color: var(--green);
}

.footer-contact h4 {
  margin-bottom: 12px;
  padding-bottom: 0;
  font-size: 27px;
  letter-spacing: 0;
}

.footer-contact h4::after {
  display: none;
}

.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-contact-list,
.footer-support-points {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-line,
.footer-support-points span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(234, 223, 206, .78);
  border-radius: 18px;
  background: #fffaf2;
}

.footer-support-points span {
  align-items: center;
  min-height: 44px;
  color: #5d5248;
  font-size: 13px;
  font-weight: 800;
}

.footer-support-points span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px var(--mint);
  flex: 0 0 8px;
}

.contact-line span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  flex: 0 0 42px;
}

.contact-line a,
.contact-line em {
  padding-top: 5px;
  font-style: normal;
  font-weight: 800;
}

.footer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.footer-hotline,
.footer-secondary {
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 950;
  white-space: nowrap;
}

.footer-hotline {
  background: linear-gradient(135deg, var(--green), #2ca84f);
  color: #fff !important;
  box-shadow: 0 16px 30px rgba(23, 116, 58, .22);
}

.footer-secondary {
  border: 1px solid rgba(234, 223, 206, .9);
  background: #fff;
  color: var(--green) !important;
}

.footer-hotline:hover,
.footer-secondary:hover {
  transform: translateY(-2px);
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.socials a,
.socials span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  transition: .2s;
}

.socials img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.socials a:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

.copyright {
  background:
    linear-gradient(90deg, #063719, #0a4a23 48%, #063719) !important;
  color: #dff6e5 !important;
  padding: 15px 0 !important;
  font-size: 13px;
}

.copyright .wrap {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-bottom-menu a {
  min-height: 30px;
  border: 1px solid rgba(223, 246, 229, .22);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .06);
  color: #dff6e5;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}

.footer-bottom-menu a:hover {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .11);
  color: #fff;
}

@media (max-width: 1160px) {
  .footer-shell {
    width: min(var(--wrap-max), calc(100% - 40px)) !important;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr) !important;
    gap: 22px !important;
  }

  .footer-link-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .newsletter {
    margin-top: 42px !important;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
    gap: 18px;
    border-radius: 26px;
  }

  .newsletter b {
    font-size: 25px;
  }

  .footer-shell {
    grid-template-columns: 1fr !important;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
    min-height: auto !important;
  }

  .footer-link-panel {
    min-height: auto !important;
  }
}

@media (max-width: 720px) {
  .footer-link-panel {
    grid-template-columns: 1fr !important;
  }

  .footer-col {
    padding: 10px 8px;
  }
}

@media (max-width: 560px) {
  .newsletter {
    margin: 32px 0 -46px !important;
  }

  .newsletter-card {
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 22px;
  }

  .newsletter-form,
  .newsletter form {
    grid-template-columns: 1fr;
  }

  .newsletter-form button,
  .newsletter form button {
    min-width: 0;
  }

  .footer {
    padding-top: 86px !important;
  }

  .footer-brand,
  .footer-contact,
  .footer-link-panel {
    border-radius: 22px;
    padding: 18px !important;
  }

  .footer-actions {
    grid-template-columns: 1fr;
  }

  .footer-contact h4 {
    font-size: 24px;
  }

  .copyright .wrap {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom-menu {
    justify-content: center;
  }
}
