/* ==============================================
   # SITE FOOTER
   ============================================== */
.site-footer {
  position: relative;
  margin-top: 64px;
  padding: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(212, 163, 115, 0.13), transparent 34%),
    #f5f0ea;
  border-top: 1px solid #dfcfbf;
  color: #5d5148;
  text-align: left;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(220px, 36vw);
  height: 2px;
  transform: translateX(-50%);
  background: #b97745;
}

.site-footer .site-footer__container {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 42px;
  padding-bottom: 22px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.8fr) minmax(220px, 0.9fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.site-footer__brand {
  max-width: 470px;
}

.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #5b3b29;
  text-decoration: none;
}

.site-footer__brand-link:hover,
.site-footer__brand-link:focus-visible {
  color: #8a512f;
}

.site-footer__logo {
  width: 78px;
  height: auto;
  flex: 0 0 auto;
}

.site-footer__brand-name {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
  font-weight: 700;
  font-style: italic;
}

.site-footer__description {
  max-width: 430px;
  margin: 17px 0 0;
  color: #76685e;
  font-size: 0.93rem;
  line-height: 1.75;
}

.site-footer__title {
  margin: 5px 0 16px;
  color: #4f3729;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

.site-footer__menu {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__menu li {
  margin: 0;
  padding: 0;
}

.site-footer__menu a {
  position: relative;
  display: inline-block;
  padding: 2px 0;
  color: #66574d;
  font-size: 0.92rem;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.site-footer__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: #b97745;
  transition: right 0.2s ease;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible {
  color: #7d482b;
  transform: translateX(2px);
}

.site-footer__menu a:hover::after,
.site-footer__menu a:focus-visible::after {
  right: 0;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(115, 76, 47, 0.15);
}

.site-footer .site-footer__copyright {
  margin: 0;
  color: #88786d;
  font-size: 0.82rem;
  line-height: 1.5;
}

.site-footer .back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(115, 76, 47, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: #734c2f;
  font-size: 0.82rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.site-footer .back-to-top:hover,
.site-footer .back-to-top:focus-visible {
  border-color: rgba(115, 76, 47, 0.42);
  background: #fffaf5;
  color: #5c3722;
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .site-footer {
    margin-top: 50px;
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.8fr);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .site-footer .site-footer__container {
    padding-top: 34px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__logo {
    width: 68px;
  }

  .site-footer__description {
    margin-top: 14px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__menu a,
  .site-footer__menu a::after,
  .site-footer .back-to-top {
    transition: none;
  }
}
.site-footer__credits {
    margin: 0;
    font-size: 0.875rem;
}

.site-footer__credits a {
    color: inherit;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.site-footer__credits a:hover,
.site-footer__credits a:focus-visible {
    opacity: 1;
    text-decoration: underline;
}