.wm-site-footer {
  margin-top: 72px;
  padding: 0 20px 24px;
  direction: rtl;
}

.wm-site-footer__inner {
  max-width: var(--wm-content-width, 1200px);
  margin: 0 auto;
}

.wm-site-footer__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  overflow: hidden;
  border: 1px solid var(--wm-color-border, #e5e0d8);
  border-radius: var(--wm-radius-lg, 28px);
  background: var(--wm-color-surface, #fff);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
}

.wm-site-footer__content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--wm-color-accent, #c89b3c), transparent);
}

.wm-site-footer__brand {
  min-width: 0;
}

.wm-site-footer__title {
  margin: 0 0 8px;
  color: var(--wm-color-primary, #111827);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.6;
}

.wm-site-footer__text {
  max-width: 560px;
  margin: 0;
  color: var(--wm-color-muted, #6b7280);
  font-size: 14px;
  line-height: 2;
}

.wm-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.wm-site-footer__links a {
  color: var(--wm-color-primary, #111827);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.22s ease;
}

.wm-site-footer__links a:hover,
.wm-site-footer__links a:focus {
  color: var(--wm-color-accent-dark, #9f7425);
}

.wm-site-footer__badges {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.wm-site-footer__badge {
  width: 92px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--wm-color-border, #e5e0d8);
  border-radius: 18px;
  background: #f9f8f5;
}

.wm-site-footer__badge a {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wm-color-primary, #111827);
  text-decoration: none;
}

.wm-site-footer__badge img {
  max-width: 100%;
  max-height: 76px;
  display: block;
  object-fit: contain;
}

.wm-site-footer__badge span {
  color: var(--wm-color-muted, #6b7280);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.7;
  text-align: center;
}

.wm-site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6px 0;
  color: var(--wm-color-muted, #6b7280);
  font-size: 12px;
  line-height: 1.8;
}

.wm-site-footer__developer a {
  color: var(--wm-color-primary, #111827);
  font-weight: 800;
  text-decoration: none;
}

.wm-site-footer__developer a:hover,
.wm-site-footer__developer a:focus {
  color: var(--wm-color-accent-dark, #9f7425);
}

@media (max-width: 767px) {
  .wm-site-footer,
  .wm-site-footer * {
    box-sizing: border-box;
  }

  .wm-site-footer {
    margin-top: 48px;
    padding: 0 16px 20px;
  }

  .wm-site-footer__content {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 24px 20px 22px;
    border-radius: 24px;
    text-align: right;
  }

  .wm-site-footer__brand {
    text-align: right;
  }

  .wm-site-footer__links {
    justify-content: center;
    gap: 8px 14px;
    margin-top: 16px;
  }

  .wm-site-footer__links a {
    font-size: 13px;
  }

  .wm-site-footer__title,
  .wm-site-footer__text {
    text-align: right;
  }

  .wm-site-footer__title {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.6;
  }

  .wm-site-footer__text {
    max-width: 100%;
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
  }

  .wm-site-footer__badges {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
  }

  .wm-site-footer__badge {
    width: 74px;
    min-height: 74px;
    padding: 8px;
    border-radius: 16px;
  }

  .wm-site-footer__badge a {
    min-height: 58px;
  }

  .wm-site-footer__badge img {
    max-height: 60px;
  }

  .wm-site-footer__badge span {
    font-size: 11.5px;
    line-height: 1.65;
  }

  .wm-site-footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 12px;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.8;
  }
}
