.footer {
  --color-bg: #0E0D0B;
  --color-text: #FAF7F2;
  --color-text-muted: #C6B7A8;
  --color-accent: #C99A70;
  --footer-line: rgba(201, 154, 112, 0.5);
  --footer-contact: #E2C9B1;
  color: var(--color-text);
  background: var(--color-bg);
}

.footer_top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: var(--section-space) 0 clamp(5rem, 9vw, 8rem);
}

.footer_top::before {
  content: "";
  position: absolute;
  right: calc(-1 * var(--container-padding));
  bottom: 0;
  width: min(75%, 960px);
  aspect-ratio: 1280 / 426;
  background: url("../img/home-page/footer-mountains.webp") right bottom / cover no-repeat;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 45%),
    linear-gradient(180deg, transparent 0%, #000 40%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 45%),
    linear-gradient(180deg, transparent 0%, #000 40%);
  mask-composite: intersect;
  pointer-events: none;
}

.footer_brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.footer_tagline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(0.6875rem, 1vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.footer_tagline::before,
.footer_tagline::after {
  content: "";
  width: 1.25rem;
  height: 1px;
  background-color: var(--footer-line);
}

.footer_contacts {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: clamp(2rem, 5vw, 4.5rem);
  border-left: 1px solid var(--footer-line);
}

.footer_contact {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-title);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--color-text);
  transition: color var(--transition);
}

.footer_contact svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.footer_nav {
  border-top: 1px solid var(--footer-line);
  border-bottom: 1px solid var(--footer-line);
}

.footer_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
}

.footer_link,
.footer_contact_text {
  position: relative;
  display: inline-block;
}

.footer_contact_text {
  color: var(--footer-contact);
  transition: color var(--transition);
}

.footer_contact_text::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--footer-contact);
  transform: scaleY(0.5);
  transform-origin: bottom;
  transition: opacity var(--transition);
}

.footer_link {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--color-text);
  transition: color var(--transition);
}

.footer_bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
  padding: 1.5rem 0 2rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .footer_nav {
    display: none;
  }

  .footer_bottom {
    border-top: 1px solid var(--footer-line);
  }
}

@media (max-width: 768px) {
  .footer_top {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-bottom: clamp(6rem, 30vw, 9rem);
  }

  .footer_top::before {
    width: calc(100% + 2 * var(--container-padding));
  }

  .footer_contacts {
    padding-left: 0;
    padding-top: 2rem;
    border-left: none;
    border-top: 1px solid var(--footer-line);
  }

  .footer_contact {
    gap: 1rem;
    font-size: 1rem;
  }

  .footer_list {
    justify-content: center;
    gap: 0.75rem 1.75rem;
  }

  .footer_bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer_contact_text::after {
  bottom: -4px;
}

@media (hover: none) {
  .footer_contact:active .footer_contact_text {
    color: var(--color-accent);
    transition-duration: 0s;
  }

  .footer_contact:active .footer_contact_text::before {
    opacity: 0;
    transition-duration: 0s;
  }
}

.footer_bottom .footer_link {
  font-family: var(--font-main);
  font-size: inherit;
  color: var(--color-text-muted);
}

.footer_link[aria-current="page"] {
  color: var(--color-accent);
}
