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

body.site-brest.b24-home-page .site-content-fullwidth .entry-content > .brt-catalog,
body.site-brest.b24-home-page .b24-catalog-section .brt-catalog {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ——— Главная: обёртка каталога из контента ——— */
body.site-brest .b24-catalog-section {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding: 56px 0 72px;
  margin: 0;
  box-sizing: border-box;
}

body.site-brest .b24-catalog-section .b24-catalog-header {
  max-width: 1500px;
  margin: 0 auto 28px;
  padding: 0 20px;
  text-align: center;
}

body.site-brest .b24-catalog-section .b24-catalog-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

body.site-brest .b24-catalog-section .b24-catalog-header p {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
}

/* ——— SEO-блок на главной ——— */
body.site-brest .b24-seo-intro {
  background: #fff;
  padding: 48px 20px 40px;
  border-top: 1px solid #e2e8f0;
}

body.site-brest .b24-seo-intro__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

body.site-brest .b24-seo-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

body.site-brest .b24-seo-intro p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
}

body.site-brest .b24-seo-intro__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  color: #334155;
  font-size: 0.95rem;
}

body.site-brest .b24-seo-intro__list li::before {
  content: '✓ ';
  color: #16a34a;
  font-weight: 700;
}

/* ——— Sitemap hero ——— */
body.site-brest .brt-sitemap-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 20px 52px;
  background: linear-gradient(135deg, #0c1929 0%, #1e3a5f 42%, #1d4ed8 100%);
  color: #fff;
}

body.site-brest .brt-sitemap-hero__mesh,
body.site-brest .brt-sitemap-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.site-brest .brt-sitemap-hero__mesh {
  background:
    radial-gradient(circle at 18% 28%, rgba(59, 130, 246, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 82% 72%, rgba(37, 99, 235, 0.12) 0%, transparent 42%);
}

body.site-brest .brt-sitemap-hero__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.45;
}

body.site-brest .brt-sitemap-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
}

body.site-brest .brt-sitemap-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 999px;
}

body.site-brest .brt-sitemap-hero__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

body.site-brest .brt-sitemap-hero__title span {
  display: block;
  margin-top: 4px;
  background: linear-gradient(90deg, #60a5fa, #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.site-brest .brt-sitemap-hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: #cbd5e1;
}

/* ——— Intro CTA ——— */
body.site-brest .brt-sitemap__intro {
  background: #fff;
  padding: 32px 20px 0;
}

body.site-brest .brt-sitemap__intro-card {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
}

body.site-brest .brt-sitemap__intro-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

body.site-brest .brt-sitemap__intro-text h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

body.site-brest .brt-sitemap__intro-text p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.55;
}

body.site-brest .brt-sitemap__intro-text a {
  color: #2563eb;
  font-weight: 600;
}

body.site-brest .brt-sitemap__intro-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: #2563eb;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 12px;
  transition: background 0.2s, transform 0.2s;
}

body.site-brest .brt-sitemap__intro-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

body.site-brest .brt-sitemap__catalog-wrap {
  background: linear-gradient(180deg, #f1f5f9 0%, #fff 140px);
}

/* ——— Catalog ——— */
body.site-brest .brt-catalog {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 20px 72px;
  font-family: 'Inter', system-ui, sans-serif;
}

body.site-brest .brt-catalog__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.94);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

body.site-brest .brt-catalog__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: 12px;
}

body.site-brest .brt-catalog__search-icon {
  flex-shrink: 0;
  color: #64748b;
}

body.site-brest .brt-catalog__search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 13px 0;
  font-size: 16px;
  color: #0f172a;
  outline: none;
}

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

body.site-brest .brt-catalog__stats {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  white-space: nowrap;
}

body.site-brest .brt-catalog__stats strong {
  color: #1d4ed8;
  font-size: 18px;
}

body.site-brest .brt-catalog__stats-total {
  margin-left: 4px;
  color: #94a3b8;
}

body.site-brest .brt-catalog__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: #bfdbfe transparent;
}

body.site-brest .brt-catalog__alpha::-webkit-scrollbar {
  height: 4px;
}

body.site-brest .brt-catalog__alpha::-webkit-scrollbar-thumb {
  background: #bfdbfe;
  border-radius: 4px;
}

body.site-brest .brt-catalog__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: #1d4ed8 !important;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

body.site-brest .brt-catalog__alpha-link:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
}

/* 3 колонки: буквы и списки потоком, как в справочнике */
body.site-brest .brt-catalog__grid {
  column-count: 3;
  column-gap: 40px;
}

body.site-brest .brt-catalog__section {
  break-inside: avoid;
  margin-bottom: 28px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

body.site-brest .brt-catalog__letter {
  display: block;
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
  color: #22c55e;
  line-height: 1;
  border-bottom: 1px solid #e5e7eb;
}

body.site-brest .brt-catalog__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.site-brest .brt-catalog__item {
  margin: 0 0 6px;
}

body.site-brest .brt-catalog__link {
  display: block;
  padding: 0;
  margin: 0;
  border-radius: 0;
  color: #555 !important;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none !important;
  line-height: 1.4;
  transition: color 0.15s;
}

body.site-brest .brt-catalog__link:hover {
  color: #22c55e !important;
  text-decoration: underline !important;
  background: none;
  padding-left: 0;
}

body.site-brest .brt-catalog__section.is-hidden,
body.site-brest .brt-catalog__item.is-hidden {
  display: none !important;
}

body.site-brest .brt-catalog__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-brest .brt-catalog__grid {
    column-count: 2;
    column-gap: 28px;
  }
}

@media (max-width: 720px) {
  body.site-brest .brt-sitemap-hero {
    padding-top: 88px;
  }
  body.site-brest .brt-sitemap__intro-card {
    grid-template-columns: 1fr;
  }
  body.site-brest .brt-catalog__toolbar {
    top: 56px;
  }
}

@media (max-width: 600px) {
  body.site-brest .brt-catalog__grid {
    column-count: 1;
    column-gap: 0;
  }
}

/* ——— Главная: карусель блога — 3 карточки в ряд на ПК ——— */
body.site-brest.b24-home-page .site-content-fullwidth .entry-content > .home-blog-section {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

body.site-brest.b24-home-page .home-blog-section {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 64px 0 72px;
  border-top: none;
}

body.site-brest.b24-home-page .home-blog-inner {
  max-width: 1500px;
}

body.site-brest.b24-home-page .home-blog-scroller {
  grid-auto-columns: minmax(280px, calc(33.333% - 14px));
  gap: 24px;
}

body.site-brest.b24-home-page .home-blog-card-media {
  height: 200px;
}

body.site-brest.b24-home-page .home-blog-card-link:hover {
  border-color: #86efac;
}

@media (min-width: 1100px) {
  body.site-brest.b24-home-page .home-blog-scroller {
    grid-auto-columns: calc(33.333% - 16px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  body.site-brest.b24-home-page .home-blog-nav {
    display: flex;
  }
}

@media (max-width: 768px) {
  body.site-brest.b24-home-page .home-blog-section {
    padding: 44px 0 40px;
  }

  body.site-brest.b24-home-page .home-blog-scroller {
    grid-auto-columns: minmax(280px, 86vw);
  }
}
