.footer {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--surface);
}

.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer__bg picture,
.footer__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 64px 0 30px;
}

.footer__logo {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent);
}

.footer__logo-img img {
  display: block;
  width: 94px;
  height: 90px;
  object-fit: contain;
}

.footer__logo-text {
  font-family: 'EdgeLine', var(--font);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0em;
  color: var(--surface);
  white-space: nowrap;
}

.footer__tagline {
  color: var(--surface);
  text-transform: uppercase;
  margin-top: 20px;
}

.footer__description {
  margin-top: 40px;
  color: var(--color-muted);
}

.footer__brand {
  width: 183px;
}

.footer__col-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: var(--surface);
}

.footer__col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 68px;
  height: 1px;
  background: var(--accent);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  display: flex;
  align-items: center;
  height: 32px;
  color: color-mix(in srgb, var(--surface) 85%, transparent);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__contacts > *:not(:first-child) {
  margin-bottom: 10px;
}

.footer__contacts > *:last-child {
  margin-bottom: 0;
}

.footer__phone,
.footer__email {
  color: var(--surface);
  transition: color 0.2s ease;
}

.footer__phone:hover,
.footer__email:hover {
  color: var(--accent);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 22px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
}

.footer__legal {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.footer__legal:hover {
  color: var(--accent);
}

.footer__copyright {
  color: var(--color-muted);
}

@media (max-width: 1080px) {
  .footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 48px 0 20px;
  }
  
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    padding: 48px 30px 20px;
  }

  .footer__brand {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__logo {
    width: 100%;
  }

  .footer__link {
    padding-bottom: 10px;
    height: auto;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    border-bottom: 1px solid var(--accent);
  }

  .footer__link::after {
    display: block;
    content: '';
    background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.84467 2.96967C8.13756 2.67678 8.61244 2.67678 8.90533 2.96967L13.4053 7.46967C13.6982 7.76256 13.6982 8.23744 13.4053 8.53033L8.90533 13.0303C8.61244 13.3232 8.13756 13.3232 7.84467 13.0303C7.55178 12.7374 7.55178 12.2626 7.84467 11.9697L11.8143 8L7.84467 4.03033C7.55178 3.73744 7.55178 3.26256 7.84467 2.96967Z" fill="%23B08A4A"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2.375 8C2.375 7.58579 2.71079 7.25 3.125 7.25H12.25C12.6642 7.25 13 7.58579 13 8C13 8.41421 12.6642 8.75 12.25 8.75H3.125C2.71079 8.75 2.375 8.41421 2.375 8Z" fill="%23B08A4A"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 16px;
    height: 16px;
  }

  .footer__description {
    text-align: center;
    margin-top: 10px;
  }

  .footer__tagline {
    margin-top: 10px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 0;
    border: none;
  }
}

@media (max-width: 440px) {
  .footer__top {
    padding: 48px 0 20px;
  }
}