.aferra-footer {
  display: block;
  position: relative;
  isolation: isolate;
  margin-top: clamp(42px, 7vw, 92px);
  padding: clamp(42px, 6vw, 82px) 0 0;
  color: #f8eee8;
  background:
    linear-gradient(180deg, rgba(255, 249, 243, 0) 0%, rgba(76, 38, 50, 0.06) 100%),
    linear-gradient(135deg, #4c2632 0%, #36242b 58%, #241a1f 100%);
  overflow: hidden;
}

.aferra-footer::before {
  content: "AFERRA";
  position: absolute;
  right: clamp(-18px, 3vw, 56px);
  bottom: 18px;
  z-index: -1;
  color: rgba(255, 253, 249, 0.035);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(5.6rem, 14vw, 16rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: 0;
  pointer-events: none;
}

.aferra-footer a {
  color: inherit;
  text-decoration: none;
}

.aferra-footer__wrap {
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
}

.aferra-footer__partner-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  margin-bottom: clamp(34px, 5vw, 62px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(199, 170, 120, 0.26);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.08), rgba(250, 232, 236, 0.035)),
    rgba(255, 253, 249, 0.035);
}

.aferra-footer__partner-strip h2 {
  margin: 0;
  color: #fffaf5;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 2.8vw, 2.65rem);
  line-height: 1.02;
}

.aferra-footer__partner-strip p,
.aferra-footer__brand p,
.aferra-footer__contact p,
.aferra-footer__legal {
  margin: 0;
  color: rgba(255, 253, 249, 0.74);
  line-height: 1.65;
}

.aferra-footer__partner-copy {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.aferra-footer__partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.aferra-footer__button,
.aferra-footer__text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.aferra-footer__button {
  padding: 11px 18px;
  border: 1px solid rgba(199, 170, 120, 0.58);
  background: rgba(255, 253, 249, 0.1);
  color: #fffdf9;
}

.aferra-footer__text-link {
  padding: 11px 4px;
  color: rgba(255, 253, 249, 0.8);
}

.aferra-footer__button:hover,
.aferra-footer__button:focus-visible,
.aferra-footer__text-link:hover,
.aferra-footer__text-link:focus-visible {
  transform: translateY(-1px);
  color: #fffdf9;
}

.aferra-footer__button:hover,
.aferra-footer__button:focus-visible {
  border-color: rgba(233, 191, 203, 0.72);
  background: rgba(255, 253, 249, 0.16);
}

.aferra-footer__main {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(150px, 0.8fr)) minmax(220px, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(34px, 5vw, 62px);
}

.aferra-footer__brand,
.aferra-footer__group,
.aferra-footer__contact {
  min-width: 0;
}

.aferra-footer__group {
  margin: 0;
}

.aferra-footer__logo {
  width: min(210px, 76vw);
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 18px 34px rgba(15, 9, 12, 0.14);
}

.aferra-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.aferra-footer__brand {
  display: grid;
  gap: 10px;
}

.aferra-footer__region {
  color: rgba(239, 227, 207, 0.86);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aferra-footer__heading {
  margin: 0 0 14px;
  color: rgba(239, 227, 207, 0.9);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

summary.aferra-footer__heading {
  display: block;
  cursor: default;
  list-style: none;
}

summary.aferra-footer__heading::-webkit-details-marker {
  display: none;
}

.aferra-footer__chevron {
  display: none;
  width: 12px;
  height: 12px;
  align-items: center;
  justify-content: center;
}

.aferra-footer__chevron::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.aferra-footer__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aferra-footer__links a,
.aferra-footer__contact-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: rgba(255, 253, 249, 0.78);
  font-size: 0.94rem;
  line-height: 1.35;
  transition:
    color 200ms ease,
    transform 200ms ease;
}

.aferra-footer__links a::after,
.aferra-footer__contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: rgba(233, 191, 203, 0.78);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.aferra-footer__links a:hover,
.aferra-footer__links a:focus-visible,
.aferra-footer__contact-link:hover,
.aferra-footer__contact-link:focus-visible {
  color: #fffdf9;
  transform: translateX(3px);
}

.aferra-footer__links a:hover::after,
.aferra-footer__links a:focus-visible::after,
.aferra-footer__contact-link:hover::after,
.aferra-footer__contact-link:focus-visible::after {
  transform: scaleX(1);
}

.aferra-footer__contact {
  display: grid;
  gap: 12px;
}

.aferra-footer__contact strong {
  display: block;
  color: #fffdf9;
  font-size: 1rem;
}

.aferra-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  margin-top: 2px;
  padding: 8px 12px;
  border: 1px solid rgba(199, 170, 120, 0.28);
  border-radius: 999px;
  color: rgba(255, 253, 249, 0.84);
  font-size: 0.86rem;
  font-weight: 800;
  transition:
    color 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    transform 200ms ease;
}

.aferra-footer__social svg {
  width: 16px;
  height: 16px;
}

.aferra-footer__social:hover,
.aferra-footer__social:focus-visible {
  color: #fffdf9;
  border-color: rgba(233, 191, 203, 0.62);
  background: rgba(255, 253, 249, 0.08);
  transform: translateY(-1px);
}

.aferra-footer__bottom {
  border-top: 1px solid rgba(255, 253, 249, 0.12);
}

.aferra-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
  padding: 18px 0 22px;
  font-size: 0.82rem;
}

.aferra-footer__legal span {
  display: inline-flex;
}

@media (max-width: 1120px) {
  .aferra-footer__main {
    grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(180px, 1fr));
  }

  .aferra-footer__contact {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .aferra-footer {
    margin-top: 34px;
    padding-top: 32px;
  }

  .aferra-footer__wrap,
  .aferra-footer__legal {
    width: min(100% - 32px, 1320px);
  }

  .aferra-footer__partner-strip {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .aferra-footer__partner-actions {
    justify-content: flex-start;
  }

  .aferra-footer__button,
  .aferra-footer__text-link {
    width: 100%;
  }

  .aferra-footer__main {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .aferra-footer__contact {
    grid-column: auto;
  }

  .aferra-footer__logo {
    width: min(194px, 72vw);
  }

  .aferra-footer__group {
    border-top: 1px solid rgba(255, 253, 249, 0.12);
  }

  summary.aferra-footer__heading {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    cursor: pointer;
  }

  .aferra-footer__chevron {
    display: inline-flex;
    color: rgba(239, 227, 207, 0.86);
    transition: transform 200ms ease;
  }

  .aferra-footer__group[open] .aferra-footer__chevron {
    transform: rotate(180deg);
  }

  .aferra-footer__links {
    gap: 6px;
    padding-bottom: 14px;
  }

  .aferra-footer__links a,
  .aferra-footer__contact-link {
    min-height: 34px;
    align-items: center;
  }

  .aferra-footer__legal {
    display: grid;
    justify-content: start;
  }
}

@media (max-width: 390px) {
  .aferra-footer__wrap,
  .aferra-footer__legal {
    width: min(100% - 24px, 1320px);
  }

  .aferra-footer__partner-strip {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aferra-footer *,
  .aferra-footer *::before,
  .aferra-footer *::after {
    transition-duration: 0.01ms !important;
  }
}
