html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > footer {
  width: 100%;
  margin-top: auto;
}

footer {
  background: linear-gradient(135deg, var(--brand-green-700), var(--brand-green-600));
}

.footer-shell {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 28px;
  display: grid;
  gap: 22px;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.footer-shell::before {
  content: none;
}

.newsletter-row {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: 28px clamp(68px, 8vw, 132px);
  align-items: start;
  margin-bottom: 0;
}

.footer-label,
.footer-link-group h3 {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-label {
  display: block;
  margin-bottom: 8px;
}

.footer-label::before {
  content: none;
}

.footer-contact-block,
.footer-social-block,
.footer-link-group {
  display: grid;
  align-content: start;
  align-self: start;
  width: max-content;
  max-width: 100%;
}

.footer-contact-block {
  gap: 0;
  grid-column: 1;
}

.footer-contact-row {
  display: grid;
  justify-items: start;
  align-items: start;
  gap: 6px;
}

.mail {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  letter-spacing: -0.07em;
  line-height: 0.96;
  color: #ffffff;
  cursor: pointer;
  border-radius: 0;
  transition: transform 0.16s ease-out, color 0.16s ease-out, text-decoration-color 0.16s ease-out, text-shadow 0.16s ease-out, opacity 0.16s ease-out;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}

.mail:hover,
.mail:focus-visible {
  transform: translateY(-1px);
  background: transparent;
  box-shadow: none;
  color: #ffe1cb;
  text-decoration-color: rgba(232, 121, 54, 0.82);
  text-shadow: 0 0 10px rgba(232, 121, 54, 0.28);
  outline: none;
}

.mail-copy {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s ease-out, transform 0.16s ease-out, visibility 0.16s ease-out;
  pointer-events: none;
}

.mail-copy.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.footer-socials {
  display: grid;
  gap: 8px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease-out, text-shadow 0.16s ease-out;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: #ffffff;
  text-shadow: 0 0 9px rgba(232, 121, 54, 0.24);
  outline: none;
}

.footer-social-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-orange-600);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.footer-social-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.footer-social-icon rect,
.footer-social-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.footer-social-icon path,
.footer-social-icon .footer-social-dot {
  fill: currentColor;
  stroke: none;
}

.footer-link-group {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: max-content;
  max-width: 100%;
}

.footer-link-group[aria-labelledby="footer-product"] {
  grid-column: 2;
}

.footer-link-group[aria-labelledby="footer-company"] {
  grid-column: 3;
}

.footer-social-block {
  grid-column: 4;
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-link-list a,
.footer-link-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s ease-out, text-shadow 0.16s ease-out;
}

.footer-link-list a:hover,
.footer-link-list button:hover,
.footer-link-list a:focus-visible,
.footer-link-list button:focus-visible {
  color: #ffffff;
  text-shadow: 0 0 9px rgba(232, 121, 54, 0.24);
  outline: none;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding-top: 0;
  border-top: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  white-space: nowrap;
}

.footer-meta a,
.footer-meta button {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.16s ease-out, text-shadow 0.16s ease-out;
}

.footer-meta button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.footer-meta .dot {
  display: inline-block;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-meta a:hover,
.footer-meta button:hover,
.footer-meta a:focus-visible,
.footer-meta button:focus-visible {
  color: #ffffff;
  text-shadow: 0 0 9px rgba(232, 121, 54, 0.24);
  outline: none;
}

.footer-copyright {
  grid-column: 3;
  justify-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

.footer-brand-link {
  color: var(--brand-orange-600);
  transition: color 0.16s ease-out, text-shadow 0.16s ease-out;
}

.footer-brand-link:hover,
.footer-brand-link:focus-visible {
  color: var(--brand-orange-500);
  text-shadow: 0 0 10px rgba(232, 121, 54, 0.28);
  outline: none;
}

@media (max-width: 1100px) {
  .newsletter-row {
    grid-template-columns: repeat(2, minmax(220px, max-content));
    justify-content: center;
    gap: 28px 40px;
  }

  .footer-contact-block,
  .footer-social-block,
  .footer-link-group[aria-labelledby="footer-product"],
  .footer-link-group[aria-labelledby="footer-company"] {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .footer-shell {
    width: min(var(--container), calc(100% - 24px));
    padding: 24px 0 18px;
    gap: 16px;
  }

  .newsletter-row {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 20px;
  }

  .footer-contact-block,
  .footer-social-block,
  .footer-link-group {
    width: 100%;
    max-width: none;
  }

  .mail {
    font-size: clamp(1.55rem, 9vw, 2.2rem);
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-meta {
    grid-column: 1;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }

  .footer-copyright {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }
}
