/* ── Карта сайта (page-sitemap.php) ─────────────────────────────────────── */

.page-sitemap .information-page__header {
  padding: 40px 0 24px;
  max-width: var(--max-w, 1200px);
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

.sitemap-content {
  max-width: var(--max-w, 1200px);
  margin-inline: auto;
  padding-inline: 24px;
  padding-bottom: 60px;
  box-sizing: border-box;
}

.sitemap-section {
  margin-bottom: 40px;
}

.sitemap-section__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text, #1a1a2e);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4d8fdb;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sitemap-count {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b7280;
}

.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sitemap-list--products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px 16px;
}

.sitemap-list__item {
  line-height: 1.5;
}

.sitemap-list__item a {
  color: #4d8fdb;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s;
}

.sitemap-list__item a:hover {
  color: #1a5cb5;
  text-decoration: underline;
}

/* Дочерние категории — небольшой отступ */
.sitemap-list__item--child {
  padding-left: 20px;
}

.sitemap-list__item--child::before {
  content: '└';
  margin-right: 6px;
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Родительский пункт — жирнее */
.sitemap-list__item--parent a {
  font-weight: 600;
}

/* ── Ссылка карты в подвале ──────────────────────────────────────────────── */
.footer-sitemap-link {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.15s;
}

.footer-sitemap-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Нижняя полоса подвала ──────────────────────────────────────────────── */
.footer-bottom-bar {
  background: rgba(0, 0, 0, 0.15);
  padding: 10px 0;
}

.footer-bottom-bar__inner {
  max-width: var(--max-w, 1200px);
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-bottom-bar__links a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom-bar__links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 639px) {
  .sitemap-list--products {
    grid-template-columns: 1fr;
  }

  .sitemap-content {
    padding-inline: 16px;
  }

  .page-sitemap .information-page__header {
    padding-inline: 16px;
    padding-top: 28px;
  }
}
