/* HTML sitemap /sitemap/ — ДОРТЕХНИКА */
.map-page {
  --map-ink: #111315;
  --map-soft: #F4F5F7;
  --map-line: #EAECF0;
  --map-muted: #4B5563;
  --map-mid: #374151;
  --map-accent: #FF5000;
  --map-panel: #1A1D21;
  --map-border: #2E343E;
  font-family: var(--dt-font, 'Golos Text', sans-serif);
  color: var(--map-ink);
  background: var(--map-soft);
}

.map-page .dt-num,
.map-page .dt-num * {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* —— Hero —— */
.map-hero {
  position: relative;
  background: var(--map-ink);
  color: #fff;
  padding: 40px 0 48px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .map-hero { padding: 48px 0 56px; }
}

.map-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 1;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}

.map-hero__inner { position: relative; z-index: 1; }

.map-crumbs {
  margin: 0 0 18px;
}

.map-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #9CA3AF;
}

.map-crumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: #6B7280;
}

.map-crumbs a {
  color: #D1D5DB;
  text-decoration: none;
}

.map-crumbs a:hover { color: #fff; }

.map-hero__grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 1024px) {
  .map-hero__grid-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
  }
  .map-hero__copy { grid-column: span 7; }
  .map-hero__tiles { grid-column: span 5; }
}

.map-hero__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #fff;
}

.map-hero__lead {
  margin: 12px 0 0;
  max-width: 42em;
  color: #D1D5DB;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

.map-filter {
  position: relative;
  display: block;
  margin-top: 22px;
  max-width: 560px;
}

.map-filter__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}

.map-filter__input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  padding: 0 42px 0 44px;
  border-radius: 12px;
  border: 1px solid var(--map-border);
  background: var(--map-panel);
  color: #fff;
  font: 500 15px/1.3 var(--dt-font, 'Golos Text', sans-serif);
  outline: none;
  transition: border-color .2s ease;
}

.map-filter__input::placeholder { color: #8B939E; }
.map-filter__input:focus { border-color: var(--map-accent); }

.map-filter__clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9CA3AF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.map-filter__clear:hover { color: #fff; background: rgba(255,255,255,.08); }

.map-filter__meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: #9CA3AF;
}

.map-filter__empty {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #D1D5DB;
}

.map-filter__empty a {
  color: var(--map-accent);
  text-decoration: none;
  font-weight: 600;
}

.map-filter__empty a:hover { text-decoration: underline; }

.map-hero__tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .map-hero__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.map-hero__tile {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-hero__tile strong {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.map-hero__tile span {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.35;
}

/* —— Sticky jump —— */
.map-jump {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--map-line);
}

.map-jump__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.map-jump__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.map-jump__chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--map-line);
  background: #fff;
  color: var(--map-mid);
  font: 600 13px/1 var(--dt-font, 'Golos Text', sans-serif);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}

.map-jump__chip:hover,
.map-jump__chip.is-active {
  border-color: rgba(255, 80, 0, .45);
  color: var(--map-accent);
  background: #FFF7F3;
}

.map-jump__actions {
  display: none;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .map-jump__actions { display: inline-flex; }
}

.map-jump__btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--map-line);
  background: var(--map-soft);
  color: var(--map-ink);
  font: 600 13px/1 var(--dt-font, 'Golos Text', sans-serif);
  cursor: pointer;
}

.map-jump__btn:hover {
  border-color: rgba(255, 80, 0, .4);
  color: var(--map-accent);
}

/* —— Bento —— */
.map-bento-section {
  padding: 28px 0 8px;
}

.map-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .map-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-bento--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-bento--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .map-bento--3,
  .map-bento--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-bento--4 > .map-card:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1400px) {
  .map-bento--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-bento--4 > .map-card:last-child { grid-column: auto; }
}

.map-card {
  background: #fff;
  border: 1px solid var(--map-line);
  border-radius: 16px;
  padding: 24px;
  scroll-margin-top: 120px;
}

.map-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--map-ink);
}

.map-card__title svg { flex-shrink: 0; }

.map-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.map-card__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
  color: var(--map-mid);
  font-size: 14.5px;
  text-decoration: none;
  transition: color .15s;
}

.map-card__list li:last-child a { border-bottom: 0; }

.map-card__list a i {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s, transform .15s;
  color: var(--map-accent);
  font-style: normal;
}

.map-card__list a:hover {
  color: var(--map-accent);
}

.map-card__list a:hover i {
  opacity: 1;
  transform: translateX(0);
}

.map-card__empty {
  padding: 8px 0;
  color: #9CA3AF;
  font-size: 13.5px;
}

/* —— Catalog tree —— */
.map-catalog {
  padding: 20px 0 64px;
  scroll-margin-top: 120px;
}

.map-catalog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.map-catalog__head h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.map-catalog__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--map-line);
  color: var(--map-muted);
  font-size: 12.5px;
  font-weight: 650;
}

.map-tree {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 768px) {
  .map-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .map-tree { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.map-tree__card {
  background: #fff;
  border: 1px solid var(--map-line);
  border-radius: 16px;
  padding: 20px;
  transition: border-color .2s ease;
}

.map-tree__card:hover {
  border-color: rgba(255, 80, 0, .5);
}

.map-tree__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.map-tree__root {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.map-tree__root a {
  color: var(--map-ink);
  text-decoration: none;
}

.map-tree__root a:hover { color: var(--map-accent); }

.map-tree__head-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.map-tree__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--map-soft);
  color: var(--map-muted);
  font-size: 12px;
  font-weight: 650;
}

.map-tree__count--sm {
  height: 20px;
  min-width: 22px;
  padding: 0 7px;
  font-size: 11px;
}

.map-tree__toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--map-line);
  background: #fff;
  color: var(--map-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .15s, color .15s;
}

.map-tree__toggle--sm {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.map-tree__toggle:hover {
  border-color: rgba(255, 80, 0, .4);
  color: var(--map-accent);
}

.map-tree__card[data-expanded="0"] > .map-tree__nav,
.map-tree__item[data-expanded="0"] > .map-tree__list {
  display: none;
}

.map-tree__card[data-expanded="0"] > .map-tree__head .map-tree__toggle,
.map-tree__item[data-expanded="0"] > .map-tree__row .map-tree__toggle {
  transform: rotate(-90deg);
}

.map-tree__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.map-tree__list--nested {
  margin: 4px 0 8px;
  padding-left: 12px;
  border-left: 2px solid var(--map-line);
}

.map-tree__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.map-tree__link {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: #1F2937;
}

.map-tree__link--l2 {
  font-size: 14px;
  font-weight: 500;
}

.map-tree__link--deep {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--map-muted);
}

.map-tree__link:hover { color: var(--map-accent); }

.map-tree__item--extra {
  display: none;
}

.map-tree__card.is-show-all .map-tree__item--extra {
  display: list-item;
}

.map-tree__more {
  margin-top: 8px;
  width: 100%;
  height: 36px;
  border: 1px dashed #D1D5DB;
  border-radius: 10px;
  background: var(--map-soft);
  color: var(--map-mid);
  font: 600 13px/1 var(--dt-font, 'Golos Text', sans-serif);
  cursor: pointer;
}

.map-tree__more:hover {
  border-color: rgba(255, 80, 0, .45);
  color: var(--map-accent);
}

.map-tree__leaf {
  margin: 8px 0 0;
}

.map-tree__leaf a {
  color: var(--map-accent);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.map-tree__leaf a:hover { text-decoration: underline; }

/* —— Filter states —— */
.map-page.is-filtering .map-tree__item--extra {
  display: list-item;
}

.map-page.is-filtering .map-tree__more {
  display: none;
}

.map-page [data-map-link].is-match mark,
.map-page mark.map-hl {
  background: rgba(255, 80, 0, .18);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.map-page [data-map-branch].is-filter-hide,
.map-page .map-card.is-filter-hide,
.map-page .map-tree__card.is-filter-hide,
.map-page .map-tree__item.is-filter-hide,
.map-page .map-card__list li.is-filter-hide {
  display: none !important;
}

.map-page [data-map-link].is-match {
  color: var(--map-accent);
}

/* Mobile sticky offset under compact header */
@media (max-width: 1023px) {
  .map-jump { top: 60px; }
}

@media (max-width: 767px) {
  .map-hero { padding: 28px 0 36px; }
  .map-card { padding: 18px; }
  .map-tree__card { padding: 16px; }
  .map-bento-section { padding-top: 20px; }
  .map-catalog { padding-bottom: 48px; }
  .map-jump__chip { height: 32px; padding: 0 12px; font-size: 12.5px; }
}
