.footer {
  position: relative;
  padding: 75px 24px 28px;
  border-top: 1px solid rgba(201, 162, 75, 0.58);
  background:
    radial-gradient(ellipse 48% 46% at 15% 0%, rgba(152, 107, 34, 0.11), transparent 78%),
    #080808;
}

.footer__inner {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.82fr) minmax(0, 0.55fr);
  gap: clamp(32px, 5vw, 72px);
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.footer__mark {
  display: block;
  width: 116px;
  flex: none;
}

.footer__mark img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(201, 162, 75, 0.17));
}

.footer__brand-name,
.footer__contact h3,
.footer__nav h3 {
  margin: 0 0 17px;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer__brand h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.footer__brand p:last-child {
  max-width: 330px;
  margin: 0;
  color: #bdbdbd;
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer__contact,
.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__contact a,
.footer__nav a,
.footer__contact p {
  margin: 0 0 12px;
  color: #e2e2e2;
  font-size: 0.86rem;
  line-height: 1.55;
  text-decoration-color: rgba(230, 230, 230, 0.26);
  text-underline-offset: 4px;
}

.footer__contact a:hover,
.footer__nav a:hover {
  color: var(--gold-light);
  text-decoration-color: rgba(245, 210, 122, 0.65);
}

.footer__contact p {
  color: #bdbdbd;
}

.footer__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 62px;
  padding: 26px 0;
  border-top: 1px solid rgba(230, 230, 230, 0.20);
  border-bottom: 1px solid rgba(230, 230, 230, 0.20);
}

.footer__action p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.5;
}

.footer__action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  flex: none;
  padding: 12px 20px;
  border: 1px solid rgba(245, 210, 122, 0.76);
  border-radius: 6px;
  color: #f5d27a;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.footer__action a:hover,
.footer__action a:focus-visible {
  background: rgba(201, 162, 75, 0.10);
  box-shadow: 0 0 23px rgba(201, 162, 75, 0.14);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 25px;
  padding-top: 23px;
}

.footer__bottom p {
  margin: 0;
  color: #9e9e9e;
  font-size: 0.72rem;
  line-height: 1.6;
}

@media (max-width: 950px) {
  .footer__top {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .footer__nav {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px 22px;
  }

  .footer__nav h3 {
    width: 100%;
    margin-bottom: 7px;
  }
}

@media (max-width: 700px) {
  .footer {
    padding: 65px 20px 28px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 37px;
  }

  .footer__brand {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .footer__mark {
    width: 110px;
  }

  .footer__brand p:last-child {
    margin-inline: auto;
  }

  .footer__contact,
  .footer__nav {
    align-items: center;
    text-align: center;
  }

  .footer__nav {
    grid-column: auto;
    justify-content: center;
  }

  .footer__action {
    flex-direction: column;
    margin-top: 48px;
    text-align: center;
  }

  .footer__action a {
    width: min(100%, 330px);
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .footer {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer__action a {
    transition: none;
  }
}
