/* HTML-карта сайта (/html-sitemap), BEM: html-sitemap */
.text-page__main:has(.html-sitemap) {
  max-width: min(1180px, 100%);
}

.html-sitemap {
  margin-top: 0;
}

.html-sitemap__page-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 2.4vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.html-sitemap__lead {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.html-sitemap__lead a {
  font-weight: 600;
}

.html-sitemap__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 22px);
  margin-top: clamp(8px, 2vw, 16px);
}

.html-sitemap__card {
  background: linear-gradient(145deg, var(--white) 0%, var(--cream) 100%);
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 20px;
  padding: clamp(16px, 3vw, 22px);
  box-shadow: 0 10px 28px rgba(11, 37, 69, 0.05);
}

.html-sitemap__card--wide {
  grid-column: 1 / -1;
}

.html-sitemap__title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(62, 207, 178, 0.35);
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.html-sitemap__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.html-sitemap__list li {
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(11, 37, 69, 0.1);
  line-height: 1.45;
}

.html-sitemap__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.html-sitemap__list a {
  font-weight: 600;
  color: var(--mint-deep);
  text-decoration: none;
  text-underline-offset: 3px;
}

.html-sitemap__list a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .html-sitemap__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .html-sitemap__card--wide {
    grid-column: 1 / -1;
  }

  .html-sitemap__list--cols {
    columns: 2;
    column-gap: clamp(24px, 4vw, 40px);
  }

  .html-sitemap__list--cols li {
    break-inside: avoid;
  }
}

@media (max-width: 560px) {
  .html-sitemap__grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .html-sitemap__card {
  background: linear-gradient(145deg, var(--white) 0%, #132032 100%);
  border-color: rgba(232, 240, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .html-sitemap__list li {
  border-bottom-color: rgba(232, 240, 255, 0.1);
}
