/* Стили для футера */

.footer-header {
  background: #fff;
  padding: 24px 40px;
  font-family: "Montserrat", sans-serif;
  color: #333;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* ---------- Логотип ---------- */
.footer-logo a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.footer-logo span {
  display: block;
}

/* ---------- Навигация ---------- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
/* ---------- Контакты ---------- */
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.footer-city {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 500;
  color: #333;
}

.footer-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social-icon {
  width: 24px !important;
  height: 24px !important;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* ---------- Нижняя строка ---------- */
.footer-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 10px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom-link {
  text-decoration: none;
  color: #777a8d;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s;
}

.footer-bottom-link:hover {
  color: #333;
}

/* ---------- Планшет ---------- */
@media (max-width: 992px) {
  .footer-header {
    padding: 20px 24px;
  }

  .footer-inner {
    gap: 20px;
  }
}

/* ---------- Мобильные ---------- */
@media (max-width: 640px) {
  .footer-header {
    padding: 16px 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-nav-link {
    white-space: normal;
  }

  .footer-contacts {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    padding-top: 14px;
  }

  .footer-bottom-link {
    white-space: normal;
  }
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Логотип */
.footer-logo a {
  text-decoration: none;
  color: black;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

/* Навигация */
.footer-nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

.footer-nav-link {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

/* Контакты */
.footer-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.footer-social-icon {
  width: 24px !important;
  height: 24px !important;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.footer-phone-icon {
  width: 28px !important;
  height: 28px !important;
}

/* Бургер-иконка футера (отдельные классы) */
.footer-burger-menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  position: absolute;
  top: 24px;
  right: 40px;
  z-index: 2;
}

.footer-burger-line {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: #333;
}

/* Бургер-меню (фуллскрин) */
.footer-burger-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 11000;
  padding: 20px;
  overflow-y: auto;
}

.footer-burger-menu.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-burger-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.close-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #333;
  left: 0;
}

.close-line.first {
  transform: rotate(45deg);
}

.close-line.second {
  transform: rotate(-45deg);
}

.footer-burger-content {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 100%;
  margin-top: 40px;
  text-align: center;
}

.footer-burger-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.footer-burger-link {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 1.1rem;
}

.footer-burger-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.footer-burger-socials {
  display: flex;
  gap: 16px;
}

.footer-burger-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  margin-top: auto;
}

/* ===== Адаптивность ===== */

/* Планшеты */
@media (max-width: 1100px) {
  .footer-nav-link {
    padding: 4px 5px;
  }
}

/* Мобильные */
@media (max-width: 768px) {
  .footer-bottom-link {
    padding: 0;
  }
  .footer-logo {
    margin-left: -25px !important;
  }

  .footer-logo a {
    padding-left: 0;
  }
  .footer-header {
    padding: 16px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-logo a {
    font-size: 1rem;
  }

  .footer-nav {
    display: none;
  }

  .footer-contacts {
    justify-content: flex-start;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-burger-menu-icon {
    display: flex;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    gap: 8px;
  }

  .footer-nav-link {
    padding: 4px 4px;
  }
}
