.wm-site-footer {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 48px));
  margin: 58px auto 24px;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 1px solid #dce3df;
  border-radius: 28px;
  color: #40545d;
  background:
    radial-gradient(circle at 8% 0%, rgba(203, 243, 106, 0.15), transparent 26%),
    #f8faf6;
  box-shadow: 0 24px 65px rgba(7, 29, 43, 0.08);
  font-size: 12px;
}

.wm-site-footer *,
.wm-site-footer *::before,
.wm-site-footer *::after {
  box-sizing: border-box;
}

.wm-footer-main {
  padding: 38px clamp(24px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(130px, 0.72fr));
  align-items: start;
  gap: 34px clamp(24px, 4vw, 56px);
}

.wm-footer-brand a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #071d2b;
  text-decoration: none;
}

.wm-footer-brand a > span {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 164, 37, 0.35);
  border-radius: 15px;
  background: #cbf36a;
  box-shadow: 0 10px 24px rgba(112, 148, 31, 0.2);
}

.wm-footer-brand img {
  display: block;
  width: 35px;
  height: 35px;
}

.wm-footer-brand a div,
.wm-footer-brand strong,
.wm-footer-brand small {
  display: block;
}

.wm-footer-brand a strong {
  color: #071d2b;
  font-size: 18px;
  line-height: 1.35;
}

.wm-footer-brand a small {
  margin-top: 3px;
  color: #5a6e76;
  font-size: 10px;
  font-weight: 700;
}

.wm-footer-brand p {
  max-width: 390px;
  margin: 18px 0 0;
  color: #66777d;
  font-size: 12px;
  line-height: 1.95;
}

.wm-footer-column {
  display: grid;
  align-content: start;
  gap: 5px;
}

.wm-footer-column > strong {
  margin-bottom: 9px;
  color: #071d2b;
  font-size: 13px;
}

.wm-footer-column a {
  width: fit-content;
  padding: 6px 0;
  position: relative;
  color: #607178;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.wm-footer-column a::after {
  width: 0;
  height: 2px;
  position: absolute;
  right: 0;
  bottom: 1px;
  border-radius: 999px;
  background: #8eb72b;
  content: "";
  transition: width 0.18s ease;
}

.wm-footer-column a:hover,
.wm-footer-column a.active {
  color: #253b43;
  transform: translateX(-3px);
}

.wm-footer-column a:hover::after,
.wm-footer-column a.active::after {
  width: 100%;
}

.wm-footer-bottom {
  min-height: 58px;
  padding: 15px clamp(24px, 5vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #dce3df;
  color: #718086;
  background: rgba(236, 241, 235, 0.72);
  font-size: 10px;
}

.wm-footer-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4a5f67;
  font-weight: 700;
}

.wm-footer-note i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #9cc93a;
  box-shadow: 0 0 0 4px rgba(156, 201, 58, 0.14);
}

body.dark-mode .wm-site-footer {
  border-color: #29414b;
  color: #b7c4c8;
  background:
    radial-gradient(circle at 8% 0%, rgba(203, 243, 106, 0.1), transparent 27%),
    #0b222c;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

body.dark-mode .wm-footer-brand a strong,
body.dark-mode .wm-footer-column > strong {
  color: #edf4f6;
}

body.dark-mode .wm-footer-brand a small,
body.dark-mode .wm-footer-brand p,
body.dark-mode .wm-footer-column a {
  color: #aebdc2;
}

body.dark-mode .wm-footer-column a:hover,
body.dark-mode .wm-footer-column a.active {
  color: #cbf36a;
}

body.dark-mode .wm-footer-column a::after {
  background: #cbf36a;
}

body.dark-mode .wm-footer-bottom {
  border-color: #29414b;
  color: #93a5ab;
  background: rgba(6, 22, 30, 0.56);
}

body.dark-mode .wm-footer-note {
  color: #c1cdd1;
}

@media (max-width: 880px) {
  .wm-footer-main {
    grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(130px, 1fr));
  }

  .wm-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .wm-site-footer {
    width: calc(100% - 24px);
    margin-top: 42px;
    border-radius: 22px;
  }

  .wm-footer-main {
    padding: 28px 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .wm-footer-brand {
    grid-column: 1 / -1;
  }

  .wm-footer-brand p {
    font-size: 11px;
  }

  .wm-footer-column:last-child {
    grid-column: 1 / -1;
  }

  .wm-footer-bottom {
    padding: 16px 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
