.site-footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 61px max(var(--page), calc((100vw - 1456px) / 2)) 25px;
  background: var(--plum);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgba(250, 248, 243, .18);
}

.site-footer .footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 56px;
  min-height: 181px;
  padding: 0 0 46px;
}

.site-footer .footer-identity {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.site-footer .footer-brand .brand-wordmark {
  width: 227px;
  height: auto;
}

.site-footer .footer-identity p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #e4d7e0;
}

.site-footer .footer-main nav {
  display: grid;
  gap: 15px;
  margin: 0;
  font-size: 12px;
  justify-content: start;
}

.site-footer .footer-main nav a {
  width: fit-content;
  text-underline-offset: 5px;
}

.site-footer .footer-main nav a:hover {
  text-decoration: underline;
}

.site-footer .footer-main nav span {
  display: inline-block;
  padding-left: 13px;
}

.site-footer .back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  padding-top: 1px;
  white-space: nowrap;
}

.site-footer .back-to-top span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(250, 248, 243, .4);
  border-radius: 50%;
  font-size: 18px;
  transition: background .2s, color .2s;
}

.site-footer .back-to-top:hover span {
  background: var(--paper);
  color: var(--plum);
}

.site-footer .footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid rgba(250, 248, 243, .22);
  padding-top: 21px;
  font-size: 9px;
  color: #d7c9d2;
}

.site-footer .footer-payments {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  padding: 21px 0;
  border-top: 1px solid rgba(250, 248, 243, .22);
}

.site-footer .footer-payments > p {
  margin: 0;
  font-size: 11px;
  color: #e4d7e0;
}

.site-footer .payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer .payment-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 40px;
  border-radius: 4px;
  background: #faf8f3;
  color: var(--plum);
}

.site-footer .payment-mark img {
  display: block;
  object-fit: contain;
}

.site-footer .payment-mark-labeled {
  width: auto;
  min-width: 77px;
  gap: 6px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 500;
}

.site-footer .payment-cash svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.site-footer .footer-bottom > span {
  flex-shrink: 0;
}

.site-footer .footer-bottom p {
  margin: 0;
  max-width: 740px;
  line-height: 1.8;
  text-align: right;
}

.site-footer a:focus-visible {
  outline-color: var(--butter);
}

.footer-botanical {
  position: absolute;
  z-index: 0;
  right: 24%;
  bottom: -109px;
  width: 350px;
  height: 350px;
  color: var(--butter);
  opacity: .22;
  pointer-events: none;
  stroke-width: 1.1;
}

.footer-botanical .orchid-bloom {
  transform-origin: 234px 150px;
}

@media (prefers-reduced-motion: no-preference) {
  .footer-botanical .orchid-bloom {
    animation: orchid-breathe 12s ease-in-out infinite alternate;
  }
  @keyframes orchid-breathe {
    from { transform: rotate(-1.5deg); }
    to { transform: rotate(1.5deg); }
  }
}

@media (max-width: 1100px) {
  .site-footer { padding-top: 49px; }
  .site-footer .footer-main { gap: 34px; min-height: 184px; }
  .site-footer .footer-brand .brand-wordmark { width: 200px; }
  .site-footer .back-to-top { font-size: 0; gap: 0; }
  .footer-botanical { right: 10%; width: 310px; height: 310px; bottom: -90px; opacity: .17; }
}

@media (max-width: 760px) {
  .site-footer { padding: 40px var(--page) 24px; }
  .site-footer .footer-main { grid-template-columns: 1fr auto; gap: 29px 20px; padding-bottom: 34px; min-height: 0; }
  .site-footer .footer-identity { grid-column: 1 / -1; gap: 18px; }
  .site-footer .footer-brand .brand-wordmark { width: 190px; }
  .site-footer .footer-identity p { font-size: 12px; }
  .site-footer .footer-main nav { grid-column: 1; gap: 14px; font-size: 11px; }
  .site-footer .back-to-top { grid-column: 2; align-self: end; }
  .site-footer .back-to-top span { height: 38px; width: 38px; }
  .site-footer .footer-bottom { flex-direction: column; gap: 12px; padding-top: 20px; font-size: 8px; }
  .site-footer .footer-bottom p { text-align: left; max-width: none; }
  .site-footer .footer-payments { align-items: flex-start; flex-direction: column; gap: 14px; padding: 20px 0; }
  .site-footer .payment-methods { gap: 7px; }
  .site-footer .payment-mark { width: 62px; height: 38px; }
  .site-footer .payment-mark-labeled { width: auto; min-width: 72px; padding: 0 8px; }
  .footer-botanical { width: 272px; height: 272px; right: -71px; bottom: 75px; opacity: .2; }
}
