/* ===== ROOT ===== */
:root {
  --footer-bg: linear-gradient(135deg, #0b1626 0%, #13233a 100%);
  --footer-glow: rgba(0, 115, 198, 0.2);

  --footer-text: #cfd8e3;
  --footer-muted: #8fa3b8;

  --footer-link: #4da3ff;
  --footer-link-hover: #ffffff;

  --footer-heading: #ffffff;
  --footer-border: rgba(255,255,255,0.08);

  --footer-icon-size: 20px; 
}

/* ===== ФУТЕР ===== */
.site-footer {
  position: relative;
  width: 100%;
  padding: 20px 0;
  font-family: 'Inter', sans-serif;
  color: var(--footer-text);
  overflow: hidden;
}

/* Glow эффект */
.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 400px;
  background: radial-gradient(circle, var(--footer-glow), transparent 70%);
  z-index: 0;
}

/* ===== КОНТЕЙНЕР ===== */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* сохраняем 4 блока */
  gap: 30px;
  padding: 20px 35px;

  background: var(--footer-bg);
  border-radius: 18px;
  border: 1px solid var(--footer-border);
  backdrop-filter: blur(14px);
  box-shadow: 
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  z-index: 1;

  overflow-x: auto; /* горизонтальный скролл для маленьких экранов */
  -webkit-overflow-scrolling: touch;
}

/* ===== КОЛОНКИ ===== */
.footer-column {
  transition: none;
}

/* Заголовки */
.footer-column h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--footer-heading);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Текст */
.footer-column p {
  font-size: 14px;
  color: var(--footer-muted);
  margin-bottom: 6px;
  line-height: 1.6;
}

/* Списки */
.footer-column ul {
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 6px;
}

/* Ссылки */
.footer-column a {
  position: relative;
  color: var(--footer-link);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.25s ease, color 0.3s ease;
}

.footer-column a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--footer-link-hover);
  transition: width 0.3s ease;
}

.footer-column a:hover {
  transform: translateY(-4px);
  color: var(--footer-link-hover);
}

.footer-column a:hover::after {
  width: 100%;
}

/* Специальные стили для продукции */
.footer-products a {
  font-size: 16px;
  font-weight: 600;
}

/* Иконки футера */
.footer-icon {
  width: var(--footer-icon-size);
  height: var(--footer-icon-size);
  flex-shrink: 0;
  fill: var(--footer-link);
  transition: all 0.3s ease;
}

/* Контакты */
.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--footer-muted);
}

.footer-contact a {
  color: var(--footer-link);
}

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

.footer-contact:hover .footer-icon {
  transform: scale(1.1);
  fill: var(--footer-link-hover);
}

/* Логотип */
.footer-logo-column img {
  max-width: 140px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

/* Нижняя часть футера */
.footer-bottom {
  max-width: 1200px;
  margin: 15px auto 0;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--footer-muted);
  border-top: 1px solid var(--footer-border);
}

/* ===== АДАПТИВ ===== */
.footer-container {
  display: grid;
  grid-template-columns: min-content 1fr 1fr 1fr; /* как в старой версии */
  gap: 30px;
  overflow-x: auto; /* для мобильных */
}

@media (max-width: 1000px) {
  .footer-container {
    grid-template-columns: minmax(120px, min-content) 1fr 1fr 1fr;
    gap: 20px;
    padding: 15px;
  }
}
  .footer-column {
    text-align: left;
  }

  .footer-contact {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: repeat(4, minmax(120px, 1fr)); /* минимальная ширина для очень маленьких экранов */
  }
}