.main-footer {
  background-color: #333;
  color: #e6e3e1;
  padding: 20px 0;
  font-family: "Rubik", sans-serif;
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 80px;
}
.footer-description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-size: 18px;
  line-height: 1.5;
  text-align: start;
}
.footer-contract-link {
  font-family: "Rubik", sans-serif;
  text-transform: uppercase;
  font-weight: bold;
  display: block;
  color: #000;
  background-color: #ffd700;
  border-radius: 5px;
  padding: 20px;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}
.footer-contract-link:hover {
  background-color: #e6e3e1;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.4);
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 80px;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-phone,
.footer-email {
  color: #e6e3e1;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-phone:hover,
.footer-email:hover {
  color: #ffd700;
}
.footer-phone::after,
.footer-email::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background-color: #ffd700;
  transition: width 0.3s ease;
}
.footer-phone:hover::after,
.footer-email:hover::after {
  width: 100%;
}
.footer-nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 0;
  margin: 0;
}
.footer-nav-link-btn {
  color: #e6e3e1;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}
.footer-nav-link-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background-color: #ffd700;
  transition: width 0.3s ease;
}
.footer-nav-link-btn:hover::after {
  width: 100%;
}
.footer-nav-link-btn:hover {
  color: #ffd700;
}
.footer-social-links {
  display: flex;
  gap: 15px;
}
.footer-social-link {
  color: #e6e3e1;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}
.footer-social-link:hover {
  color: #ffd700;
}
.footer-social-link::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background-color: #ffd700;
  transition: width 0.3s ease;
}
.footer-social-link:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  background-color: #111;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 80px;
}
.footer-copyright {
  font-size: 14px;
  color: #888;
}
.footer-privacy {
  display: flex;
  gap: 10px;
}
.footer-privacy-link {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}
.footer-privacy-link:hover {
  color: #ffd700;
}

@media (max-width: 1024px) {
  .main-footer {
    padding: 15px 0;
  }
  .footer-top,
  .footer-middle {
    padding: 0 20px;
  }
  .footer-bottom {
    padding: 15px 20px;
  }
  .footer-description,
  .footer-nav-link-btn,
  .footer-social-link,
  .footer-contract-link,
  .footer-contact-item {
    font-size: 16px;
  }
  .footer-contract-link {
    padding: 15px;
  }
  .footer-privacy-link {
    font-size: 12px;
  }
}
@media (max-width: 768px) {
  .footer-description,
  .footer-nav-link-btn,
  .footer-social-link,
  .footer-contract-link,
  .footer-contact-item {
    font-size: 14px;
  }
  .footer-contract-link {
    padding: 15px;
  }
  .footer-content {
    gap: 20px;
  }
  .footer-top {
    flex-wrap: nowrap;
  }

  .footer-middle,
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }
  .footer-contacts,
  .footer-nav-links {
    align-items: center;
  }
}
@media (max-width: 480px) {
  .footer-top {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .footer-description {
    align-items: center;
    text-align: center;
  }
}
