/* Footer container */
.btn_primary-to-top_wrap {
  padding-top: 120px;
  display: flex;
  justify-content: center;
}


.footer__menu {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.footer__menu .header__nav {
    padding: 0;
    margin-right: 20px;
}

.btn_primary-to-top {
    width: 182px;
}
/* Main content area */
.footer__main {
  padding: 160px 0 0;
  box-sizing: border-box;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  padding: 64px 80px;
  box-sizing: border-box;
}

/* Left: Contact section */
.footer__contact {
  width: 572px;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  padding-right: 5px;
  box-sizing: border-box;
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact-address,
.footer__contact-phone {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.footer__contact-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
}

.footer__contact-address-text,
.footer__contact-phone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__contact-address-text span,
.footer__contact-phone-text span {
  color: #252525;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

.footer__headline {
  display: flex;
  flex-direction: column;
  margin-bottom: 44px;
}

.footer__headline-line1 {
  color: #353535;
  font-weight: 600;
  font-size: 52px;
  line-height: 1.125;
}

.footer__headline-line2 {
  color: #8B6E00;
  font-weight: 600;
  font-size: 52px;
  line-height: 1.125;
}

/* Right: Legal links and Navigation */
.footer__right {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__legal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #353535;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}

.footer__legal-link:hover {
  opacity: 0.8;
}

.footer__legal-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 384px;
}

.footer__nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 188px;
  height: 56px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  color: #353535;
  text-decoration: none;
  box-sizing: border-box;
}

.footer__nav-item:hover {
  opacity: 0.8;
}

.footer__nav-text {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
}

.footer__nav-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

/* Copyright bar */
.footer__copyright {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.footer__copyright-text {
  color: #707070;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
}

@media screen and (max-width: 1400px) {
    .footer__contact {
        width: auto;
    }
}

@media screen and (max-width: 1200px) {
    .footer__content {
        flex-direction: column;
        gap: 64px;
        padding: 64px 40px;
    }
    .footer__headline {
        margin-bottom: 0;
    }
    .footer__contact {
        display: flex;
        border-right: none;
        gap: 48px;
    }
    .footer__nav-item {
        width: 271px;
    }
    .footer__nav {
        width: 550px;
    }
    .header__brand-caption-line {
        display: none;
    }
}

@media (max-width: 890px) {
    .footer__content {
        padding: 64px 16px;
    }
    .footer__contact {
        flex-direction: column;
        gap: 24px;
    }
    .footer__right {
        gap: 48px;
        flex-direction: column;
    }
    .footer__nav {
        width: 100%;
    }
    .footer__nav-item {
        width: calc(100% / 3 - 5.4px);
    }
    .header__nav, .header__brand-caption {
        display: none;
    }
    .header__brand-logo {
        width: 130px;
        height: 20px;
    }
    .footer__headline-line1, .footer__headline-line2 {
        font-size: 40px;
    }
    .header__utility-label {
        font-size: 10px;
    }
    .header__utility-icon {
        width: 24px;
        height: 24px;
    }
    .header__menu-inner {
        height: 80px;
        padding-left: 16px;
    }
    .header__utility-item {
        gap: 4px;
        height: 50px;
        width: 64px;
    }
    .footer__main {
      padding-top: 120px;
    }
}

@media screen and (max-width: 480px) {
  .footer__nav-item {
    width: calc(50% - 4px);
  }
  .header__brand-logo {
    width: 100%;
  }
}
