/* FOOTER STYLES - з Design System */

.modern-footer {
  background: var(--c-text-main);
  color: #fff;
  font-family: var(--font);
  padding: 48px 0 0;
}

.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Заголовки меню */
.menu-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 16px;
}

/* Пункти меню */
.menu-item {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.menu-item:hover {
  color: var(--c-primary);
}

/* Контакти підтримки */
.support-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.15s;
}

.contact-item:hover {
  color: var(--c-primary);
}

.contact-item svg {
  flex-shrink: 0;
}

.support-hours {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Соціальні мережі */
.social-block {
  margin-top: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  transition: background 0.2s, transform 0.2s;
}

.social-link:hover {
  background: var(--c-primary);
  transform: translateY(-2px);
}

/* Брендова колонка */
.brand-column {
  grid-column: span 1;
}

.brand-column img {
  margin-bottom: 16px;
}

.brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* Нижня частина футера */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom > div {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.partner-link {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.partner-link:hover {
  opacity: 1;
}

.copyright-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Сучасна кнопка "Вгору" */
#scrollToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--c-primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 149, 92, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  opacity: 0;
}

#scrollToTop.show {
  display: flex;
  opacity: 1;
}

#scrollToTop:hover {
  background: var(--c-primary-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 149, 92, 0.35);
}

#scrollToTop:active {
  transform: translateY(-2px);
}

#scrollToTop svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* MOBILE */
@media (max-width: 768px) {
  .modern-footer {
    padding: 32px 0 0;
  }

  .footer-main {
    padding: 0 16px 24px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .menu-title {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .menu-item {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .contact-item {
    font-size: 14px;
  }

  .social-block {
    margin-top: 16px;
  }

  .brand-desc {
    font-size: 13px;
  }

  .footer-bottom > div {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-right {
    order: -1;
    width: 100%;
  }

  #toTop {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}
