/**
 * Шапка и футер сайта (модуль site-chrome).
 * Подключается через include/site-chrome.php → site_chrome_styles_once()
 * или явной ссылкой в <head> (тогда задайте $GLOBALS['site_chrome_css_injected'] = true).
 */

.site-chrome {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.site-chrome--header {
  display: block;
  position: relative;
  z-index: 1;
}

.site-chrome--footer {
  display: block;
  margin-top: auto;
}

/* Футер (раньше были inline-стили в includes/footer.php) */
.site-chrome .site-footer {
  background: #1a1a2e;
  color: #aab;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.site-chrome .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.site-chrome .footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-chrome .footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin: 0 0 4px;
  font-weight: 600;
}

.site-chrome .footer-col a {
  color: #9ca3af;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.site-chrome .footer-col a:hover {
  color: #fff;
}

.site-chrome .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: #666;
}

.site-chrome .footer-other-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-chrome .footer-other-hidden {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.site-chrome .footer-other-wrap.open .footer-other-hidden {
  display: flex;
}

.site-chrome .footer-other-toggle {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  transition: color 0.2s;
}

.site-chrome .footer-other-toggle:hover {
  color: #fff;
}
