/**
 * Каталог и карта сайта Mogilev24.by — уникальные mg24-cat-* / mg24-map-* классы.
 */
body.site-mogilev.b24-home-page .site-content-fullwidth .entry-content > .mg24-map,
body.site-mogilev.b24-sitemap-page .site-content-fullwidth .entry-content > .mg24-map {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

body.site-mogilev.b24-home-page .mg24-home-catalog .mg24-cat {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ——— Главная: обёртка каталога ——— */
body.site-mogilev .mg24-home-catalog {
  background: linear-gradient(180deg, #f4f7fb 0%, #fff 55%);
  padding: 56px 0 72px;
  margin: 0;
  box-sizing: border-box;
}

body.site-mogilev .mg24-home-catalog__head {
  max-width: 1300px;
  margin: 0 auto 28px;
  padding: 0 20px;
  text-align: center;
}

body.site-mogilev .mg24-home-catalog__head h2 {
  margin: 0 0 10px;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #121824;
  letter-spacing: -0.02em;
}

body.site-mogilev .mg24-home-catalog__head p {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.55;
}

/* ——— Sitemap hero ——— */
body.site-mogilev .mg24-map-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 20px 52px;
  background: linear-gradient(135deg, #121824 0%, #1a2740 45%, #2583e5 100%);
  color: #fff;
}

body.site-mogilev .mg24-map-hero__glow,
body.site-mogilev .mg24-map-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.site-mogilev .mg24-map-hero__glow {
  background:
    radial-gradient(circle at 15% 35%, rgba(63, 162, 246, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(50, 215, 75, 0.12) 0%, transparent 42%);
}

body.site-mogilev .mg24-map-hero__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

body.site-mogilev .mg24-map-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
}

body.site-mogilev .mg24-map-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #93d4ff;
  background: rgba(63, 162, 246, 0.14);
  border: 1px solid rgba(147, 212, 255, 0.3);
  border-radius: 999px;
}

body.site-mogilev .mg24-map-hero__badge {
  font-size: 15px;
  line-height: 1;
}

body.site-mogilev .mg24-map-hero__title {
  margin: 0 0 14px;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body.site-mogilev .mg24-map-hero__title span {
  display: block;
  margin-top: 6px;
  text-transform: none;
  background: linear-gradient(90deg, #3fa2f6, #32d74b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.site-mogilev .mg24-map-hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: #a0abc0;
}

/* ——— CTA на sitemap ——— */
body.site-mogilev .mg24-map__cta {
  background: #fff;
  padding: 32px 20px 0;
}

body.site-mogilev .mg24-map__cta-card {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #eef6ff 0%, #f8fafc 100%);
  border: 1px solid #cfe4fc;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(37, 130, 229, 0.08);
}

body.site-mogilev .mg24-map__cta-text h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #121824;
}

body.site-mogilev .mg24-map__cta-text p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
  max-width: 560px;
}

body.site-mogilev .mg24-map__cta-text a {
  color: #2583e5;
  font-weight: 600;
}

body.site-mogilev .mg24-map__cta-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 13px 24px;
  background: linear-gradient(135deg, #32d74b 0%, #269837 100%);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(50, 215, 75, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

body.site-mogilev .mg24-map__cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(50, 215, 75, 0.35);
}

body.site-mogilev .mg24-map__catalog-wrap {
  background: linear-gradient(180deg, #eef2f7 0%, #fff 140px);
}

/* ——— Каталог ——— */
body.site-mogilev .mg24-cat {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 20px 72px;
  font-family: 'Inter', 'Montserrat', system-ui, sans-serif;
}

body.site-mogilev .mg24-cat__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 64px;
  z-index: 30;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(18, 24, 36, 0.07);
}

body.site-mogilev .mg24-cat__search-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 220px;
  gap: 10px;
  padding: 0 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

body.site-mogilev .mg24-cat__search-icon {
  flex-shrink: 0;
  color: #64748b;
}

body.site-mogilev .mg24-cat__search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 13px 0;
  font-size: 16px;
  color: #121824;
  outline: none;
}

body.site-mogilev .mg24-cat__search-clear {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

body.site-mogilev .mg24-cat__stats {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  white-space: nowrap;
}

body.site-mogilev .mg24-cat__stats strong {
  color: #2583e5;
  font-size: 18px;
}

body.site-mogilev .mg24-cat__stats-total {
  margin-left: 4px;
  color: #94a3b8;
}

body.site-mogilev .mg24-cat__alpha {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-start;
  margin-bottom: 16px;
  padding: 4px 2px 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #b8d9f7 transparent;
}

body.site-mogilev .mg24-cat__alpha-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: #2583e5 !important;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid #b8d9f7;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

body.site-mogilev .mg24-cat__alpha-link:hover {
  background: #3fa2f6;
  border-color: #3fa2f6;
  color: #fff !important;
}

body.site-mogilev .mg24-cat__grid {
  column-count: 3;
  column-gap: 40px;
}

body.site-mogilev .mg24-cat__section {
  break-inside: avoid;
  margin-bottom: 28px;
}

body.site-mogilev .mg24-cat__letter {
  display: block;
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
  color: #32d74b;
  line-height: 1;
  border-bottom: 2px solid rgba(50, 215, 75, 0.25);
}

body.site-mogilev .mg24-cat__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.site-mogilev .mg24-cat__item {
  margin: 0 0 6px;
}

body.site-mogilev .mg24-cat__link {
  display: block;
  color: #4b5563 !important;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none !important;
  line-height: 1.4;
  transition: color 0.15s;
}

body.site-mogilev .mg24-cat__link:hover {
  color: #2583e5 !important;
  text-decoration: underline !important;
}

body.site-mogilev .mg24-cat__section.is-hidden,
body.site-mogilev .mg24-cat__item.is-hidden {
  display: none !important;
}

body.site-mogilev .mg24-cat__empty {
  margin: 24px 0 0;
  padding: 28px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

@media (max-width: 900px) {
  body.site-mogilev .mg24-cat__grid {
    column-count: 2;
    column-gap: 28px;
  }
}

@media (max-width: 720px) {
  body.site-mogilev .mg24-map-hero {
    padding-top: 88px;
  }
  body.site-mogilev .mg24-cat__toolbar {
    top: 56px;
  }
}

@media (max-width: 600px) {
  body.site-mogilev .mg24-cat__grid {
    column-count: 1;
    column-gap: 0;
  }
}
