html,
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 0;
}
.custom-footer {
  background-color: #f9f9f9;
  color: #000;
  padding: 40px;
  width: 100%; /* чтобы футер подстраивался под экран */
  margin: 35px auto 0 auto; /* чтобы центрировать футер */
  box-sizing: border-box; /* чтобы padding учитывался в ширине */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-left: 80px;
}

.footer-left {
  flex: 0 0 auto;
}

.footer-left img {
  width: 334px;
  height: 65px;
  max-width: 100%;
  margin-top: 30px;
}

.footer-right {
  flex: 1;
  display: flex;
  gap: 40px;
  min-width: 300px;
}

.footer-left-group {
  display: flex;
  gap: 69px; /* расстояние между колонками Каталога */
  font-weight: 400;
  font-size: 19px;
  flex-wrap: wrap;
}

.footer-right-group {
  display: flex;
  gap: 29px; /* расстояние между Покупцю и Контакти */
  font-weight: 400;
  font-size: 19px;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 200px;
  max-width: 300px;
}

.footer-column h5 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 129%;
  letter-spacing: 0%;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  font-size: var(--fs-md);
  line-height: 1.5;
}

.footer-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

.work-time {
  font-weight: 400;
  font-size: 19px;
  color: #515151;
}

.footer-column ul li.work-number {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 15px;
}

.send-us {
  font-size: var(--fs-lg);
  font-weight: 500;
  transition: all 0.3s ease;
}
.send-us:hover {
  color: var(--accent-color);
}

/* красная страница (у body стоит класс red-theme) */
.red-theme .send-us {
  color: var(--accent-color); /* например, красный */
}

.work-info-small {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 10px;
}
.image-and-text {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  margin-bottom: 15px;
}
.image-and-text img {
  width: 40px;
  height: 40px;
}
.mobile-footer {
  display: none;
}
.mobile-footer-menu {
  display: none;
}

/* Адаптация для экранов до 1200px */
@media (max-width: 1200px) {
  .footer-container {
    padding: 0 20px;
  }

  .footer-left-group {
    gap: 40px;
  }

  .footer-right-group {
    gap: 20px;
  }

  .footer-column h5 {
    font-size: 24px;
  }

  .footer-column ul li {
    font-size: 17px;
  }
}

@media (max-width: 1024px) {
  .custom-footer {
    padding: 30px 20px;
  }

  .footer-container {
    gap: 30px;
  }

  .footer-left-group {
    flex: 1 1 100%;
    gap: 30px;
  }

  .footer-right-group {
    flex: 1 1 100%;
    gap: 30px;
  }

  .footer-column {
    flex: 1 1 calc(50% - 15px);
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  /* Скрываем обычный футер на мобильных */
  .footer-left,
  .footer-right {
    display: none;
  }

  /* Мобильный футер */
  .custom-footer {
    padding: 0;
    margin-top: 0;
    background-color: #f9f9f9;
  }

  .footer-container {
    padding: 0;
    flex-direction: column;
    gap: 0;
  }

  .mobile-footer {
    display: block;
    width: 100%;
  }

  .mobile-footer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #cfcfcf;
  }

  .mobile-footer-header img {
    width: 200px;
    height: auto;
  }

  /* Мобильное меню */
  .mobile-footer-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .mobile-footer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #cfcfcf !important;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    color: #000;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
  }

  .mobile-footer-item img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
  }

  .mobile-footer-item.active img {
    transform: rotate(90deg);
  }

  /* Скрытый контент */
  .mobile-footer-content {
    display: none;
    padding: 15px 20px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #cfcfcf;
  }

  .mobile-footer-content.active {
    display: block;
  }
  .mobile-contacts p {
    padding-left: 5px;
  }

  .mobile-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-links-list li {
    margin-bottom: 10px;
  }

  .mobile-links-list a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: block;
    padding: 5px 0;
  }

  .mobile-footer-bottom {
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
  }
  .mobile-footer-number {
    text-decoration: none;
    color: #333;
  }

  footer .mobile-contacts {
    text-align: start;
    margin-top: 10px;
    padding-top: 20px;
  }

  footer .mobile-contacts p {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: block;
    padding: 5px 0;
  }

  footer .mobile-contact-btn {
    display: flex;
    gap: 10px;
    border: none !important;
  }
  footer .mobile-contact-btn img {
    width: 40px;
    height: 40px;
  }
  footer .mobile-contact-btn span {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: block;
    padding: 5px 0;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .mobile-footer-item {
    padding: 15px;
    font-size: 15px;
  }

  .mobile-footer-content {
    padding: 12px 15px;
  }

  .mobile-links-list a {
    font-size: 13px;
  }
  footer .mobile-contact-btn img {
    width: 30px;
    height: 30px;
  }
}
