.site-footer {
  width: 100%;
  margin: 96px 0 0;
  padding: 34px max(20px, calc((100vw - var(--max-width)) / 2));
  background: rgba(246, 251, 247, 0.96);
  border-top: 1px solid rgba(220, 233, 225, 0.9);
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(160px, 1fr));
  gap: 28px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  box-shadow: 0 18px 45px rgba(28, 72, 45, 0.08);
}

.footer-brand img {
  width: 160px;
  margin-bottom: 16px;
}

.footer-brand p,
.footer-column p {
  margin: 0;
  line-height: 1.65;
}

.footer-column,
.footer-social,
.footer-bottom nav {
  display: grid;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-column a,
.footer-social a,
.footer-bottom a {
  color: inherit;
  font-weight: 800;
}

.footer-column a:hover,
.footer-social a:hover,
.footer-bottom a:hover {
  color: var(--accent);
}

.footer-social {
  grid-template-columns: repeat(3, max-content);
  margin-top: 18px;
}

.footer-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--primary-dark);
}

.footer-social svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-action {
  display: inline-flex;
  width: max-content;
  min-width: 118px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 9px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--primary-dark);
  text-align: center;
}

.footer-action-primary {
  background: #123e2a;
  border-color: #123e2a;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 62, 42, 0.18);
}

.footer-action-primary:hover {
  background: #0e3121;
  border-color: #0e3121;
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px 0;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  grid-auto-flow: column;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-footer {
    padding-inline: 14px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom nav {
    grid-auto-flow: row;
  }
}
