.footer {
  position: relative;
  overflow: hidden;
  color: #20211f;
  background: #eee7db;
}

.footer::after {
  position: absolute;
  top: 0;
  right: clamp(24px, 5vw, 76px);
  width: clamp(74px, 7vw, 104px);
  height: 2px;
  background: #d24840;
  content: "";
  pointer-events: none;
}

.footer__container {
  width: min(calc(100% - clamp(32px, 7vw, 96px)), 1280px);
  margin-inline: auto;
  padding-block: clamp(64px, 6vw, 88px) 26px;
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(320px, 1.5fr) minmax(180px, 0.7fr) minmax(240px, 0.9fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

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

.footer__logo {
  display: block;
  width: clamp(118px, 10vw, 154px);
  height: auto;
  margin-bottom: 24px;
}

.footer__title {
  max-width: 440px;
  margin: 0;
  color: #20211f;
  font-size: clamp(25px, 2.25vw, 36px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}

.footer__description {
  max-width: 430px;
  margin: 18px 0 0;
  color: rgba(32, 33, 31, 0.66);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 560;
  line-height: 1.48;
}

.footer__group {
  margin: 0;
  font-style: normal;
}

.footer__heading {
  margin: 0 0 22px;
  padding-top: 12px;
  color: rgba(32, 33, 31, 0.5);
  border-top: 1px solid rgba(32, 33, 31, 0.2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer__links {
  display: grid;
  gap: 13px;
}

.footer__links a {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  color: rgba(32, 33, 31, 0.78);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 220ms ease, transform 220ms ease;
}

.footer__arrow {
  color: #d24840;
  transition: transform 220ms ease;
}

.footer__social svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: #d24840;
  transition: fill 220ms ease;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(54px, 6vw, 78px);
  padding-top: 18px;
  color: rgba(32, 33, 31, 0.52);
  border-top: 1px solid rgba(32, 33, 31, 0.2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer__bottom p {
  margin: 0;
}

[data-footer-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-footer-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer a:focus-visible {
  outline: 2px solid #d24840;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover {
    color: #c7352f;
    transform: translateX(3px);
  }

  .footer__links a:hover .footer__arrow {
    transform: translate(3px, -2px);
  }

  .footer__social:hover svg {
    fill: #c7352f;
  }
}

@media (max-width: 1100px) {
  .footer__main {
    grid-template-columns: minmax(270px, 1.25fr) repeat(2, minmax(170px, 0.75fr));
  }
}

@media (max-width: 768px) {
  .footer__container {
    width: min(calc(100% - 40px), 1280px);
    padding-block: 52px 22px;
  }

  .footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 28px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__title {
    max-width: 540px;
  }

  .footer__description {
    margin-top: 14px;
  }

  .footer__bottom {
    margin-top: 46px;
  }
}

@media (max-width: 520px) {
  .footer__container {
    width: min(calc(100% - 32px), 430px);
    padding-block: 46px 20px;
  }

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

  .footer__brand {
    grid-column: auto;
  }

  .footer__logo {
    width: 116px;
    margin-bottom: 20px;
  }

  .footer__title {
    font-size: clamp(24px, 7.6vw, 32px);
  }

  .footer__heading {
    margin-bottom: 16px;
  }

  .footer__links {
    gap: 11px;
  }

  .footer__bottom {
    display: grid;
    gap: 8px;
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-footer-reveal] {
    opacity: 1;
    transform: none;
    transition-duration: 0.01ms;
  }

  .footer__links a,
  .footer__arrow {
    transition-duration: 0.01ms;
  }

  @media (hover: hover) and (pointer: fine) {
    .footer__links a:hover,
    .footer__links a:hover .footer__arrow {
      transform: none;
    }
  }
}
