.p-sitemap {
  position: relative;
  width: 100%;
  padding: 44px 48px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background-color: var(--color-bg-elevated);
  box-shadow: 0 40px 80px -48px rgba(47, 150, 224, 0.35);
  overflow: hidden;
}

.p-sitemap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 199, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 199, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 100% 0%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 100% 0%, black 0%, transparent 70%);
  pointer-events: none;
}

.p-sitemap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-brand-green), transparent);
  opacity: 0.6;
}

.p-sitemap__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid rgba(108, 199, 255, 0.4);
  pointer-events: none;
}

.p-sitemap__corner--tl {
  top: 18px;
  left: 18px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.p-sitemap__corner--br {
  bottom: 18px;
  right: 18px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.p-sitemap__tag {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-family-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.p-sitemap__tag-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-brand-green);
  box-shadow: 0 0 8px 1px var(--color-brand-green);
  animation: p-sitemap-pulse 1.8s ease-in-out infinite;
}

@keyframes p-sitemap-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.p-sitemap__columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.p-sitemap__group {
  position: relative;
  padding: 0 32px;
}

.p-sitemap__group:first-child {
  padding-left: 0;
}

.p-sitemap__group:last-child {
  padding-right: 0;
}

.p-sitemap__group:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--color-border) 12%, var(--color-border) 88%, transparent);
}

.p-sitemap__title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

.p-sitemap__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(108, 199, 255, 0.35);
  background: linear-gradient(135deg, rgba(47, 150, 224, 0.18), rgba(17, 33, 58, 0.5));
  color: var(--color-accent-bright);
}

.p-sitemap__icon svg {
  width: 16px;
  height: 16px;
}

.p-sitemap__list {
  position: relative;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
}

.p-sitemap__list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.p-sitemap__list li:last-child {
  border-bottom: none;
}

.p-sitemap__list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 2px;
  font-family: var(--font-family-mono);
  font-size: 0.86rem;
  color: var(--color-text-muted);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.p-sitemap__list a::before {
  content: '›';
  flex-shrink: 0;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.p-sitemap__list a:hover {
  color: var(--color-text);
  padding-left: 8px;
}

.p-sitemap__list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .p-sitemap__tag-dot {
    animation: none;
  }
}

@media (max-width: 768px) {
  .p-sitemap {
    padding: 32px 24px;
  }

  .p-sitemap__corner {
    display: none;
  }

  .p-sitemap__columns {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .p-sitemap__group {
    padding: 0;
  }

  .p-sitemap__group:not(:first-child)::before {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border) 12%, var(--color-border) 88%, transparent);
  }

  .p-sitemap__group:not(:first-child) {
    padding-top: 28px;
  }
}
