
/* PARKBAR sitemap page (/sitemap/) */
.pb-sitemap {
  --pbs-primary: #058edc;
  --pbs-primary-dark: #0a6fb0;
  --pbs-deep: #0d2c47;
  --pbs-accent: #f37021;
  --pbs-ink: #20232b;
  --pbs-muted: #656b78;
  --pbs-soft: #f3f7fb;
  --pbs-line: #e1e8ef;
  min-width: 0;
  padding-bottom: clamp(36px, 5vw, 64px);
  color: var(--pbs-ink);
  font-size: 16px;
  line-height: 1.5;
}

.pb-sitemap *,
.pb-sitemap *::before,
.pb-sitemap *::after {
  box-sizing: border-box;
  min-width: 0;
}

.pb-sitemap h2,
.pb-sitemap h3,
.pb-sitemap p,
.pb-sitemap ul {
  margin-top: 0;
}

.pb-sitemap svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.pb-sitemap a:focus-visible,
.pb-sitemap button:focus-visible,
.pb-sitemap input:focus-visible {
  outline: 3px solid var(--pbs-accent);
  outline-offset: 2px;
}

.pb-sitemap-visually-hidden,
.pb-sitemap .pb-sitemap-search__label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pb-sitemap mark {
  padding: 0 1px;
  border-radius: 3px;
  background: #ffe2c7;
  color: inherit;
}

/* Hero */
.pb-sitemap-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .16), transparent 36%),
    linear-gradient(130deg, var(--pbs-deep) 0%, var(--pbs-primary-dark) 58%, var(--pbs-primary) 100%);
  color: #fff;
}

.pb-sitemap-hero::after {
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 64px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.pb-sitemap-hero__copy,
.pb-sitemap-stats {
  position: relative;
  z-index: 1;
}

.pb-sitemap-hero__eyebrow {
  margin: 0 0 12px;
  color: #ffd1b3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pb-sitemap .pb-sitemap-hero__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.pb-sitemap-hero__lead {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}

.pb-sitemap-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pb-sitemap-stats__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
}

.pb-sitemap-stats__item::marker {
  content: none;
}

.pb-sitemap-stats__item strong {
  color: #fff;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pb-sitemap-stats__item span {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.35;
}

/* Toolbar */
.pb-sitemap-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 24px 0 20px;
  padding: 16px;
  border: 1px solid var(--pbs-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(13, 44, 71, .06);
}

.pb-sitemap-search {
  position: relative;
  flex: 1 1 320px;
}

.pb-sitemap-search__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--pbs-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.pb-sitemap .pb-sitemap-search__input {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 48px;
  border: 1px solid var(--pbs-line);
  border-radius: 14px;
  background: var(--pbs-soft);
  color: var(--pbs-ink);
  font: inherit;
  font-size: 16px;
  box-shadow: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.pb-sitemap .pb-sitemap-search__input::-webkit-search-cancel-button {
  display: none;
}

.pb-sitemap .pb-sitemap-search__input:focus {
  border-color: var(--pbs-primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(5, 142, 220, .14);
}

.pb-sitemap-search__clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pbs-muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s ease, color .2s ease;
}

.pb-sitemap-search__clear[hidden] {
  display: none;
}

.pb-sitemap-search__clear:hover {
  background: #e6f3fb;
  color: var(--pbs-primary);
}

.pb-sitemap-search__clear svg {
  width: 18px;
  height: 18px;
}

.pb-sitemap-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pb-sitemap-toolbar__actions[hidden] {
  display: none;
}

.pb-sitemap-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--pbs-line);
  border-radius: 12px;
  background: #fff;
  color: var(--pbs-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.pb-sitemap-action svg {
  width: 18px;
  height: 18px;
}

.pb-sitemap-action:hover {
  border-color: var(--pbs-primary);
  background: #f3f9fd;
  color: var(--pbs-primary);
}

.pb-sitemap-status {
  flex: 1 0 100%;
  margin: 0;
  color: var(--pbs-muted);
  font-size: 14px;
}

.pb-sitemap-status:empty {
  display: none;
}

.pb-sitemap-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 20px;
  padding: 40px 20px;
  border: 1px dashed #c9d6e2;
  border-radius: 20px;
  background: #fff;
  color: var(--pbs-muted);
  text-align: center;
}

.pb-sitemap-empty[hidden] {
  display: none;
}

.pb-sitemap-empty svg {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  color: var(--pbs-primary);
}

.pb-sitemap-empty p {
  margin: 0;
}

.pb-sitemap .pb-sitemap-empty__title {
  margin-bottom: 4px;
  color: var(--pbs-ink);
  font-size: 20px;
  font-weight: 700;
}

.pb-sitemap-empty a {
  color: var(--pbs-primary);
}

/* Cards */
.pb-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
  align-items: start;
}

.pb-sitemap-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--pbs-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(13, 44, 71, .06);
}

.pb-sitemap-card[hidden] {
  display: none;
}

.pb-sitemap-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pb-sitemap-card__icon {
  display: flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e6f3fb;
  color: var(--pbs-primary);
}

.pb-sitemap-card__icon svg {
  width: 24px;
  height: 24px;
}

.pb-sitemap .pb-sitemap-card__title {
  flex: 1 1 auto;
  margin: 0;
  color: var(--pbs-ink);
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.25;
}

.pb-sitemap-badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pbs-soft);
  color: var(--pbs-primary-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pb-sitemap .pb-sitemap-card__all {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--pbs-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pb-sitemap .pb-sitemap-card__all:hover {
  color: var(--pbs-primary-dark);
}

.pb-sitemap-card__all .pb-sitemap-link__arrow {
  opacity: 1;
}

.pb-sitemap .pb-sitemap-subtitle {
  margin: 18px 0 6px;
  color: var(--pbs-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pb-sitemap-subtitle[hidden] {
  display: none;
}

/* Link lists */
.pb-sitemap-list,
.pb-sitemap-contacts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pb-sitemap-list > li,
.pb-sitemap-contacts > li {
  margin: 0;
  padding: 0;
}

.pb-sitemap-list > li::before,
.pb-sitemap-contacts > li::before {
  content: none;
  display: none;
}

.pb-sitemap-list > li::marker,
.pb-sitemap-contacts > li::marker {
  content: none;
}

.pb-sitemap-list > li {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eef2f6;
}

.pb-sitemap-list > li:first-child {
  border-top: 0;
}

.pb-sitemap-list > li[hidden],
.pb-sitemap-contacts > li[hidden] {
  display: none;
}

.pb-sitemap .pb-sitemap-link {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  color: var(--pbs-ink);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

.pb-sitemap .pb-sitemap-link:hover {
  color: var(--pbs-primary);
}

.pb-sitemap-link__arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--pbs-primary);
  opacity: .45;
  transition: transform .2s ease, opacity .2s ease;
}

.pb-sitemap a:hover .pb-sitemap-link__arrow,
.pb-sitemap a:focus-visible .pb-sitemap-link__arrow {
  opacity: 1;
  transform: translateX(4px);
}

.pb-sitemap-count {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pbs-soft);
  color: var(--pbs-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pb-sitemap-list--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pb-sitemap-list--chips > li {
  border-top: 0;
}

.pb-sitemap .pb-sitemap-list--chips .pb-sitemap-link {
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--pbs-line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.pb-sitemap .pb-sitemap-list--chips .pb-sitemap-link:hover {
  border-color: var(--pbs-primary);
  background: #f3f9fd;
}

/* Catalog tree */
.pb-sitemap-tree {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 12px;
}

.pb-sitemap-group {
  padding: 12px 14px;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  background: #fbfcfe;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pb-sitemap-group:hover {
  border-color: #d3e6f4;
  box-shadow: 0 6px 18px rgba(13, 44, 71, .05);
}

.pb-sitemap-group[hidden] {
  display: none;
}

.pb-sitemap-group__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pb-sitemap .pb-sitemap-group__title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.pb-sitemap .pb-sitemap-link--strong {
  display: flex;
  padding: 4px 0;
  font-size: 16px;
  font-weight: 700;
}

.pb-sitemap-group__toggle {
  display: flex;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--pbs-line);
  border-radius: 10px;
  background: #fff;
  color: var(--pbs-muted);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}

.pb-sitemap-group__toggle:hover {
  border-color: var(--pbs-primary);
  color: var(--pbs-primary);
}

.pb-sitemap-group__toggle svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.pb-sitemap-group__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.pb-sitemap-list--sub {
  margin-top: 6px;
  padding-left: 2px;
}

.pb-sitemap-list--sub[hidden] {
  display: none;
}

.pb-sitemap .pb-sitemap-list--sub .pb-sitemap-link {
  padding: 7px 0;
  font-size: 14px;
}

/* Contacts */
.pb-sitemap-contacts {
  display: grid;
  gap: 10px;
}

.pb-sitemap-contacts > li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--pbs-ink);
  font-size: 15px;
  line-height: 1.45;
}

.pb-sitemap-contacts svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--pbs-primary);
}

.pb-sitemap-contacts a {
  color: var(--pbs-ink);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.pb-sitemap-contacts a:hover {
  color: var(--pbs-primary);
}

@media (min-width: 720px) {
  .pb-sitemap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pb-sitemap-card--catalog {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1280px) {
  .pb-sitemap-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pb-sitemap-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .pb-sitemap-hero {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .pb-sitemap-stats {
    gap: 8px;
  }

  .pb-sitemap-stats__item {
    padding: 12px 14px;
  }

  .pb-sitemap-toolbar {
    padding: 12px;
  }

  .pb-sitemap-search {
    flex-basis: 100%;
  }

  .pb-sitemap-toolbar__actions {
    width: 100%;
  }

  .pb-sitemap-action {
    flex: 1 1 0;
    justify-content: center;
    padding: 10px 12px;
  }

  .pb-sitemap-card {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-sitemap *,
  .pb-sitemap *::before,
  .pb-sitemap *::after {
    transition: none !important;
  }
}
