/* ЛОР ПРЕМИУМ — Карта сайта (embed in MODX template + legacy standalone) */
:root {
  --lp-dark: #342090;
  --lp-dark-alt: #1e2348;
  --lp-menu: #342090;
  --lp-mint: #61d2b4;
  --lp-mint-bright: #72dfc5;
  --lp-mint-soft: #e8f8f5;
  --lp-mint-grad: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
  --lp-card-head: linear-gradient(135deg, #342090 0%, #1e2348 100%);
  --lp-bg: #ffffff;
  --lp-bg-alt: #f8f9fd;
  --lp-bg-soft: #f4f6fb;
  --lp-text: #2c3049;
  --lp-muted: #7a8199;
  --lp-border: #e5e9f2;
  --lp-border-soft: #eaeff6;
  --lp-coral: #ff334b;
  --lp-shadow: 0 10px 30px rgba(26, 30, 61, 0.05);
  --lp-radius: 16px;
  --lp-container: 1180px;
  /* Desktop main menu bar is 64px; sit snug beneath sticky/fixed site chrome */
  --lp-header-offset: 72px;
  --lp-pills-offset: 64px;
  --lp-anchor-offset: calc(var(--lp-header-offset) + var(--lp-pills-offset));
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.sitemap-embed,
.sitemap-embed *,
.sitemap-embed *::before,
.sitemap-embed *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--lp-anchor-offset);
}

/* Embedded in site template (preferred) */
.sitemap-embed {
  color: var(--lp-text);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 40px;
}

.sitemap-embed a {
  color: inherit;
}

.sitemap-embed .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.sitemap-page {
  margin: 0;
  font-family: "Onest", "DIN Pro", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--lp-text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(97, 210, 180, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(168, 230, 207, 0.22), transparent 45%),
    linear-gradient(180deg, #f7fafc 0%, var(--lp-bg) 28%, var(--lp-bg-alt) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.sitemap-page img {
  max-width: 100%;
  height: auto;
}

body.sitemap-page a {
  color: inherit;
}

.sitemap-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sitemap-skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--lp-dark);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

.sitemap-container {
  width: min(100% - 32px, var(--lp-container));
  margin-inline: auto;
}

/* —— Top bar —— */
.sitemap-topbar {
  background: var(--lp-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.sitemap-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.sitemap-topbar a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sitemap-topbar a:hover {
  color: var(--lp-mint-bright);
}

.sitemap-topbar__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* —— Header —— */
.sitemap-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lp-border-soft);
  box-shadow: 0 4px 24px rgba(26, 30, 61, 0.04);
}

.sitemap-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.sitemap-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--lp-dark);
}

.sitemap-brand__mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.sitemap-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sitemap-brand__name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.sitemap-brand__tag {
  font-size: 12px;
  color: var(--lp-muted);
}

.sitemap-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--lp-coral);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 51, 75, 0.25);
  transition: transform 0.2s var(--lp-ease), box-shadow 0.2s ease;
}

.sitemap-header__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 51, 75, 0.32);
}

.sitemap-header__cta:focus-visible {
  outline: 3px solid rgba(97, 210, 180, 0.55);
  outline-offset: 3px;
}

/* —— Breadcrumbs —— */
.sitemap-breadcrumbs {
  padding: 28px 0 0;
}

.sitemap-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--lp-muted);
}

.sitemap-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #b0b7c9;
}

.sitemap-breadcrumbs a {
  color: var(--lp-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sitemap-breadcrumbs a:hover {
  color: var(--lp-mint);
}

.sitemap-breadcrumbs [aria-current="page"] {
  color: var(--lp-dark);
  font-weight: 600;
}

/* —— Hero —— */
.sitemap-hero {
  padding: 28px 0 36px;
  animation: sitemap-fade-up 0.7s var(--lp-ease) both;
}

.sitemap-hero__grid {
  display: grid;
  gap: 18px;
  align-items: end;
}

.sitemap-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sitemap-hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--lp-mint);
  border-radius: 2px;
}

.sitemap-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--lp-dark);
  letter-spacing: -0.02em;
}

.sitemap-hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 17px;
  color: var(--lp-muted);
}

/* —— Toolbar —— */
.sitemap-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  animation: sitemap-fade-up 0.7s var(--lp-ease) 0.08s both;
}

.sitemap-search {
  position: relative;
}

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

.sitemap-search__input {
  width: 100%;
  height: 56px;
  padding: 0 120px 0 52px;
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  background: var(--lp-bg);
  box-shadow: var(--lp-shadow);
  font: inherit;
  font-size: 15px;
  color: var(--lp-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sitemap-search__input::placeholder {
  color: #9aa2b8;
}

.sitemap-search__input:focus {
  outline: none;
  border-color: var(--lp-mint);
  box-shadow: 0 0 0 4px rgba(97, 210, 180, 0.2), var(--lp-shadow);
}

.sitemap-search__meta {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-muted);
  white-space: nowrap;
}

.sitemap-search__meta[data-active="true"] {
  color: var(--lp-dark);
}

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

.sitemap-btn {
  appearance: none;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg);
  color: var(--lp-dark);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sitemap-btn:hover {
  border-color: var(--lp-mint);
  color: var(--lp-dark-alt);
  background: var(--lp-mint-soft);
}

.sitemap-btn:focus-visible {
  outline: 3px solid rgba(97, 210, 180, 0.45);
  outline-offset: 2px;
}

.sitemap-btn--ghost {
  background: transparent;
}

/* —— Sticky pills —— */
.sitemap-pills-wrap {
    position: sticky;
    top: var(--lp-header-offset);
    z-index: 30;
    margin: 0 0 28px;
    padding: 5px 10px;
    background: linear-gradient(180deg, rgba(248, 249, 253, 0.96) 0%, rgba(248, 249, 253, 0.88) 70%, transparent 100%);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    animation: sitemap-fade-up 0.7s var(--lp-ease) 0.12s both;
}

.sitemap-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--lp-mint) transparent;
}

.sitemap-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg);
  color: var(--lp-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(26, 30, 61, 0.04);
  transition: transform 0.2s var(--lp-ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sitemap-pill:hover,
.sitemap-pill.is-active {
  background: var(--lp-dark);
  border-color: var(--lp-dark);
  color: #fff;
  transform: translateY(-1px);
}

.sitemap-pill:focus-visible {
  outline: 3px solid rgba(97, 210, 180, 0.55);
  outline-offset: 2px;
}

/* —— Grid —— */
.sitemap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 72px;
}

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

@media (min-width: 1100px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

/* —— Cards —— */
.sitemap-card {
  background: var(--lp-bg);
  border: 1px solid var(--lp-border-soft);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  overflow: hidden;
  scroll-margin-top: var(--lp-anchor-offset);
  transition: opacity 0.25s ease, transform 0.25s var(--lp-ease), box-shadow 0.25s ease;
  animation: sitemap-fade-up 0.65s var(--lp-ease) both;
}

.sitemap-card:nth-child(1) { animation-delay: 0.05s; }
.sitemap-card:nth-child(2) { animation-delay: 0.1s; }
.sitemap-card:nth-child(3) { animation-delay: 0.15s; }
.sitemap-card:nth-child(4) { animation-delay: 0.2s; }
.sitemap-card:nth-child(5) { animation-delay: 0.25s; }
.sitemap-card:nth-child(6) { animation-delay: 0.3s; }
.sitemap-card:nth-child(7) { animation-delay: 0.35s; }

.sitemap-card.is-empty {
  display: none;
}

.sitemap-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--lp-card-head);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
}

.sitemap-card__head:hover {
  filter: brightness(1.05);
}

.sitemap-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(174, 236, 208, 0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

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

.sitemap-card__titles {
  flex: 1;
  min-width: 0;
}

.sitemap-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sitemap-card__badge {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(174, 236, 208, 0.18);
  color: #aeecd0;
  font-size: 12px;
  font-weight: 700;
}

.sitemap-card__toggle {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.25s var(--lp-ease);
}

.sitemap-card__toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sitemap-card__toggle:focus-visible {
  outline: 3px solid rgba(97, 210, 180, 0.55);
  outline-offset: 2px;
}

.sitemap-card__toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--lp-ease);
}

.sitemap-card.is-collapsed .sitemap-card__toggle svg {
  transform: rotate(-90deg);
}

.sitemap-card__body {
  padding: 8px 12px 16px;
}

.sitemap-card.is-collapsed .sitemap-card__body,
.sitemap-card__body[hidden] {
  display: none !important;
}

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

/* Kill theme FontAwesome checkmarks (.content ul > li:before) — keep one mint dot only */
.content .sitemap-list > li,
.sitemap-embed .sitemap-list > li,
.sitemap-list > li {
  position: relative;
  margin-bottom: 0;
  padding-left: 0 !important;
  border-bottom: 1px solid var(--lp-border-soft);
  list-style: none;
}

.content .sitemap-list > li:before,
.content .sitemap-list > li::before,
.sitemap-embed .sitemap-list > li:before,
.sitemap-embed .sitemap-list > li::before,
.sitemap-list > li:before,
.sitemap-list > li::before {
  content: none !important;
  display: none !important;
  background: none !important;
  font-family: inherit !important;
}

.sitemap-list > li:last-child {
  border-bottom: none;
}

.sitemap-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  text-decoration: none;
  color: var(--lp-text);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 10px;
  transition: transform 0.2s var(--lp-ease), background 0.2s ease, color 0.2s ease;
}

.sitemap-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-mint);
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sitemap-list a:hover {
  transform: translateX(4px);
  background: var(--lp-mint-soft);
  color: var(--lp-dark);
}

.sitemap-list a:hover::before {
  transform: scale(1.25);
  background: var(--lp-mint-bright);
  opacity: 1;
}

.sitemap-list a:focus-visible {
  outline: 3px solid rgba(97, 210, 180, 0.5);
  outline-offset: 2px;
}

.sitemap-list mark {
  background: rgba(114, 223, 197, 0.55);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.sitemap-list li.is-hidden {
  display: none;
}

.sitemap-list li.is-folded {
  display: none;
}

.sitemap-card.is-expanded .sitemap-list li.is-folded {
  display: list-item;
}

.sitemap-more {
  appearance: none;
  width: calc(100% - 8px);
  margin: 10px 4px 0;
  padding: 11px 14px;
  border: 1px dashed var(--lp-border);
  border-radius: 12px;
  background: var(--lp-bg-soft);
  color: var(--lp-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sitemap-more:hover {
  background: var(--lp-mint-soft);
  border-color: var(--lp-mint);
}

.sitemap-more:focus-visible {
  outline: 3px solid rgba(97, 210, 180, 0.45);
  outline-offset: 2px;
}

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

.sitemap-subgrid {
  display: grid;
  gap: 8px;
}

@media (min-width: 900px) {
  .sitemap-card--wide .sitemap-subgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 28px;
  }
}

.sitemap-subgroup__title {
  margin: 14px 8px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lp-muted);
}

/* —— Empty / footer —— */
.sitemap-empty {
  display: none;
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--lp-border);
  border-radius: var(--lp-radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--lp-muted);
  margin-bottom: 40px;
}

.sitemap-empty.is-visible {
  display: block;
}

.sitemap-footer {
  border-top: 1px solid var(--lp-border);
  background: var(--lp-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 36px 0 28px;
}

.sitemap-footer__inner {
  display: grid;
  gap: 18px;
}

.sitemap-footer a {
  color: #fff;
  text-decoration: none;
}

.sitemap-footer a:hover {
  color: var(--lp-mint-bright);
}

.sitemap-footer__brand {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.04em;
}

.sitemap-footer__meta {
  font-size: 13px;
  line-height: 1.7;
}

.sitemap-footer__note {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1240px) {
  :root {
    /* Mobile/tablet sticky top-bar ~55–60px */
    --lp-header-offset: 60px;
    --lp-pills-offset: 58px;
  }
}

@media (max-width: 640px) {
  .sitemap-header__cta {
    padding: 10px 14px;
    font-size: 13px;
  }

  .sitemap-brand__tag {
    display: none;
  }

  .sitemap-search__input {
    padding-right: 96px;
  }

  :root {
    --lp-header-offset: 56px;
    --lp-pills-offset: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sitemap-card,
  .sitemap-hero,
  .sitemap-toolbar,
  .sitemap-pills-wrap,
  .sitemap-list a,
  .sitemap-pill,
  .sitemap-btn,
  .sitemap-header__cta {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes sitemap-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
