footer {
  width: 100%;
  background-color: var(--secondary-color);
  padding: 50px 0 20px;
  border-top: 2px solid var(--primary-color-2);
  min-height: calc(100vh - 80px);
}

.footer-container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  padding: 0 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.footer-logo {
  margin: 60px 0;
}

.footer-logo img {
  height: 80px;
  width: auto;
}

.footer-text {
  color: var(--text-color-2);
  max-width: 350px;
  margin: 40px 0;
  line-height: 1.6;
  text-align: center;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-social {
  height: 100px;
}

.footer-social ul {
  display: flex;
  flex-direction: row;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.office-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.office-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 5px 0;
}

.office-contact p,
h4,
a {
  text-align: center;
  color: var(--text-color-2);
}

.office-contact p {
  font-weight: 200;
  font-size: 14px;
}

.office-contact h4 {
  margin: 5px 0;
  font-weight: 300;
}

.footer-social-item {
  width: 40px;
  height: 40px;
}

.footer-social-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: var(--text-color-2);
  transition: 0.3s;
}

.footer-social-link:hover {
  background-color: var(--primary-color-2);
  transform: translateY(-3px);
}

.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
}

.footer-right ul,
.footer-left ul {
  width: 100%;
  padding: 0;
  list-style: none;
}

.footer-center,
.footer-left,
.footer-right {
  padding: 0 20px;
}

.footer-left,
.footer-right {
  width: 30%;
}

.footer-link-item {
  margin-bottom: 15px;
  width: 100%;
  height: 25px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
}

.footer-link {
  color: var(--text-color-2);
  text-decoration: none;
  transition: 0.3s;
  font-size: 16px;
}

.footer-link:hover {
  color: var(--primary-color-2);
  padding-left: 5px;
}

.footer-center {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-center ul {
  width: 100%;
}

.footer-title {
  color: var(--text-color-2);
  margin-bottom: 20px;
  padding-bottom: 5px;
  font-size: 1.2rem;
  font-weight: 500;
  width: 100%;
  border-bottom: 2px solid var(--text-color-2);
}

.footer-bottom {
  width: 100%;
  max-width: 1400px;
  margin: 10px auto 0;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
  gap: 5px;
}

.bottom-menu-item a {
  color: var(--text-color-2);
  cursor: pointer;
  font-size: 14px;
}

.bottom-menu-item p {
  color: var(--text-color-2);
  font-size: 14px;
}

.bottom-menu-item a:hover {
  color: var(--primary-color-5);
  transition: 0.2s;
}

.bottom-divider {
  padding: 0 10px;
  color: var(--text-color-2);
  opacity: 0.5;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .footer-container {
    padding: 0 30px;
  }

  .footer-left,
  .footer-right {
    width: 25%;
  }

  .footer-center {
    width: 50%;
  }
}

@media (max-width: 992px) {
  footer {
    height: auto;
    min-height: auto;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    margin-bottom: 40px;
    padding: 0;
  }

  .footer-left {
    order: 1;
    align-items: center;
  }

  .footer-center {
    order: 3;
  }

  .footer-right {
    order: 2;
  }

  .footer-logo {
    margin: 30px 0;
  }

  .footer-link-item {
    align-items: center;
    height: auto;
    margin-bottom: 12px;
  }

  .footer-left ul,
  .footer-right ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .footer-left .footer-link-item,
  .footer-right .footer-link-item {
    width: auto;
    margin: 5px 10px;
  }

  .footer-link:hover {
    padding-left: 0;
    color: var(--primary-color-2);
  }

  .footer-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 0 20px;
  }

  .footer-social ul {
    margin: 20px 0;
  }

  .office-contacts {
    width: 100%;
  }

  .office-contact {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .office-contact:last-child {
    border-bottom: none;
  }

  .footer-bottom-menu {
    flex-direction: column;
  }

  .bottom-divider {
    display: none;
  }

  .bottom-menu-item {
    margin: 5px 0;
  }
}

@media (max-width: 576px) {
  footer {
    padding: 30px 0 10px;
  }

  .footer-logo img {
    height: 60px;
  }

  .footer-title {
    font-size: 1.1rem;
  }

  .footer-link,
  .office-contact h4 {
    font-size: 14px;
  }

  .office-contact p {
    font-size: 12px;
  }

  .footer-social-item {
    width: 35px;
    height: 35px;
  }

  .footer-bottom {
    margin-top: 20px;
  }

  .bottom-menu-item a,
  .footer-bottom-menu li {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .footer-left ul,
  .footer-right ul {
    flex-direction: column;
    gap: 5px;
  }

  .footer-social ul {
    flex-direction: row;
  }

  .footer-link-item {
    margin: 5px 0;
  }

  .footer-social ul {
    gap: 10px;
  }

  .footer-social-item {
    width: 32px;
    height: 32px;
  }
}
