/* =============================================
   ������ ����� � �������� �����
   ============================================= */

:root {
  --primary:    #003f7f;
  --primary-lt: #0056b3;
  --blue:       #1a4fa0;
  --red:        #c0392b;
  --orange:     #d35400;
  --green:      #1e7e34;
  --purple:     #6f42c1;
  --gray:       #495057;
  --indigo:     #3949ab;
  --violet:     #7b2fbe;
  --text:       #212529;
  --text-muted: #6c757d;
  --border:     #dee2e6;
  --bg-light:   #f8f9fa;
  --radius:     6px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-lt); }
img { max-width: 100%; height: auto; }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  background: #eef2f5;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-links { display: flex; gap: 0; flex-wrap: wrap; }
.topbar-links a {
  padding: 4px 10px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.topbar-links a:hover { color: var(--primary); background: #fff; }
.topbar-search { display: flex; }
.topbar-search input {
  border: 1px solid var(--border);
  border-right: none;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  width: 180px;
}
.topbar-search button {
  border: 1px solid var(--border);
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 12px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: #fff;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  width: 52px; height: 52px;
  background: #e9f1fa;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #d7e3f0;
  flex-shrink: 0;
}
.logo-icon img {
  width: 28px;
  height: 28px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-size: 24px; font-weight: 800;
  color: #1f1f1f; letter-spacing: .01em; line-height: 1.1;
}
.logo-subtitle {
  font-size: 11px;
  color: #6d7680;
  margin-top: 3px;
  max-width: 420px;
}

.header-banner { }
.banner-exam {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  min-width: 520px;
  background: linear-gradient(135deg, #f7efe4 0%, #f1f6fb 100%);
  border: 1px solid #dde5ee;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 10px 25px rgba(19, 42, 74, .08);
}
.banner-slot-marker {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: #d99b2b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.banner-exam__glow {
  position: absolute;
  right: -40px;
  top: -30px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(69, 110, 167, .16), transparent 70%);
}
.banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dde5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.banner-icon img {
  width: 22px;
  height: 22px;
}
.banner-info {
  position: relative;
  z-index: 1;
}
.banner-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8d5b2b;
  margin-bottom: 4px;
  font-weight: 700;
}
.banner-title { font-weight: 700; color: #1f1f1f; font-size: 15px; line-height: 1.35; }
.banner-subtitle { font-size: 12px; color: #67727d; margin-top: 4px; line-height: 1.45; }

/* =============================================
   MAIN NAV
   ============================================= */
.main-nav {
  background: #ffffff;
  z-index: 100;
  border-top: 1px solid #202020;
  border-bottom: 1px solid #d9d9d9;
}
.nav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: stretch;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 31px;
  margin: 4px 8px 4px 0;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-home i {
  font-size: 12px;
}
.nav-home:hover,
.nav-home.active {
  background: #2a2a2a;
  color: #fff;
}

.nav-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 0 14px;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  gap: 0;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
  border-left: 1px solid #e5e5e5;
  border-bottom: none;
  flex-shrink: 0;
  background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
}
.nav-item:first-of-type {
  border-left: 1px solid #e5e5e5;
}
.nav-item span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.nav-item:hover, .nav-item.active {
  color: #000;
  background: #fff;
  border-left-color: #d5d5d5;
}
.nav-item--forum {
  border-right: 1px solid #e5e5e5;
}

.nav-toggle {
  background: none;
  border: none;
  color: #111;
  font-size: 22px;
  padding: 8px;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 700; font-size: 14px; color: #fff;
  text-transform: uppercase; letter-spacing: .5px;
}
.section-header__link {
  font-size: 12px; font-weight: 400; color: rgba(255,255,255,.85);
  text-transform: none; letter-spacing: 0;
  white-space: nowrap;
}
.section-header__link:hover { color: #fff; }
.section-heading-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-heading-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.section-header--blue   { background: linear-gradient(90deg,#1a4fa0,#2980b9); }
.section-header--red    { background: linear-gradient(90deg,#c0392b,#e74c3c); }
.section-header--orange { background: linear-gradient(90deg,#d35400,#e67e22); }
.section-header--green  { background: linear-gradient(90deg,#1e7e34,#27ae60); }
.section-header--purple { background: linear-gradient(90deg,#6f42c1,#9b59b6); }
.section-header--gray   { background: linear-gradient(90deg,#495057,#7f8c8d); }
.section-header--indigo { background: linear-gradient(90deg,#3949ab,#5c6bc0); }
.section-header--violet { background: linear-gradient(90deg,#7b2fbe,#9c27b0); }

/* =============================================
   BADGES
   ============================================= */
.badge-cat, .badge-type {
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 3px;
}
.badge-cat.badge-blue   { background: var(--blue);   color: #fff; }
.badge-cat.badge-red    { background: var(--red);    color: #fff; }
.badge-cat.badge-orange { background: var(--orange); color: #fff; }
.badge-cat.badge-green  { background: var(--green);  color: #fff; }
.badge-cat.badge-purple { background: var(--purple); color: #fff; }
.badge-cat.badge-gray   { background: var(--gray);   color: #fff; }
.badge-cat.badge-indigo { background: var(--indigo); color: #fff; }
.badge-type { background: rgba(0,0,0,.08); color: var(--text-muted); }

/* =============================================
   MAIN SLIDER
   ============================================= */
.slider-img {
  width: 100%; height: 460px;
  object-fit: cover; display: block;
}
.slider-img--placeholder {
  width: 100%; height: 460px;
  background: linear-gradient(135deg,#1a4fa0,#2980b9);
}
.carousel-item a { display: block; position: relative; }
.carousel-caption-custom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 72px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.68) 42%, rgba(0,0,0,.16) 78%, transparent 100%);
  border-radius: 0 0 var(--radius) var(--radius);
}
.slider-title {
  font-size: 24px; font-weight: 800; color: #fff; margin: 8px 0 6px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.slider-excerpt {
  font-size: 14px;
  color: rgba(255,255,255,.9);
  margin: 0 0 8px;
  max-width: 92%;
}
.slider-meta {
  font-size: 12px;
  color: rgba(255,255,255,.78);
  display: flex;
  gap: 12px;
}

/* =============================================
   CARD MINI (��� ���������)
   ============================================= */
.card-mini {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; height: 100%;
  transition: box-shadow .2s;
}
.card-mini:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.card-mini img, .card-mini__placeholder {
  width: 100%; height: 90px; object-fit: cover;
}
.card-mini__placeholder { background: #dee2e6; }
.card-mini__body { padding: 8px; flex: 1; }
.card-mini__title {
  font-size: 12px; font-weight: 600; color: var(--text);
  margin: 0 0 4px; line-height: 1.3;
}
.card-mini__date { font-size: 11px; color: var(--text-muted); }

/* =============================================
   SIDE NEWS
   ============================================= */
.side-news { display: flex; flex-direction: column; }
.side-news__item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.side-news__item:last-child { border-bottom: none; }
.side-news__item:hover { background: var(--bg-light); }
.side-news__img {
  width: 72px; height: 52px;
  object-fit: cover; border-radius: 4px; flex-shrink: 0;
}
.side-news__img--placeholder {
  width: 72px; height: 52px;
  background: #dee2e6; border-radius: 4px; flex-shrink: 0;
}
.side-news__body { flex: 1; min-width: 0; }
.side-news__title {
  font-size: 12px; font-weight: 600; color: var(--text);
  margin: 0 0 4px; line-height: 1.35;
}
.side-news__date { font-size: 11px; color: var(--text-muted); }

/* =============================================
   NEWS CARD
   ============================================= */
.news-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.news-card__img {
  width: 100%; height: 160px; object-fit: cover;
}
.news-card__img--placeholder {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
}
.news-card__body { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.news-card__title {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin: 4px 0; line-height: 1.35; flex: 1;
}
.news-card__excerpt { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.4; }
.news-card__meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 10px; margin-top: auto; }
.news-card--lead .news-card__img,
.news-card--lead .news-card__img--placeholder {
  height: 220px;
}
.news-card__title--lead {
  font-size: 18px;
  line-height: 1.35;
}

/* =============================================
   PRODUCT CARD
   ============================================= */
.product-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 12px; height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-2px); }
.product-card__icon { font-size: 32px; margin-bottom: 8px; }
.product-card__icon-wrap {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #f2f5f8;
  margin-bottom: 10px;
}
.product-card__icon-img {
  width: 34px;
  height: 34px;
}
.product-card__title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.product-card__desc { font-size: 12px; color: var(--text-muted); flex: 1; }
.product-card__price { font-size: 14px; font-weight: 700; color: var(--primary); margin-top: 8px; }

.section-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.section-product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.section-product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f3f6f9;
}

.section-product-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.section-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.section-product-card__title {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.section-product-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  flex: 1 1 auto;
}

.section-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.section-product-card__price {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.section-product-card__price--muted {
  color: var(--text-muted);
  font-weight: 600;
}

.section-product-card--compact {
  flex-direction: row;
  align-items: stretch;
  min-height: 220px;
}

.section-product-card--compact .section-product-card__media {
  width: 310px;
  min-width: 310px;
  height: 220px;
  aspect-ratio: auto;
  border-right: 1px solid var(--border);
}

.section-product-card--compact .section-product-card__img {
  height: 100%;
}

.section-product-card--compact .section-product-card__body {
  gap: 8px;
  padding: 12px 14px;
}

.section-product-card--compact .section-product-card__title {
  font-size: 14px;
  line-height: 1.35;
}

.section-product-card--compact .section-product-card__desc {
  font-size: 12px;
  line-height: 1.4;
}

.section-product-card--compact .section-product-card__footer {
  gap: 10px;
}

.section-product-card__link {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.section-product-card__link:hover {
  color: #08366a;
}

@media (max-width: 575.98px) {
  .section-product-card--compact {
    min-height: 180px;
  }

  .section-product-card--compact .section-product-card__media {
    width: 160px;
    min-width: 160px;
    height: 180px;
  }

  .section-product-card--compact .section-product-card__body {
    padding: 10px 12px;
  }
}

/* =============================================
   WEBINAR CARD
   ============================================= */
.webinar-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.webinar-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  display: flex; align-items: center; justify-content: center;
}
.webinar-card__body { padding: 10px; }
.webinar-card__title { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.webinar-card__meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; }

/* =============================================
   VIDEO LIST
   ============================================= */
.video-list { display: flex; flex-direction: column; gap: 8px; }
.video-list__item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 6px; border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow .2s;
}
.video-list__item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.video-list__thumb {
  position: relative; width: 90px; height: 60px;
  border-radius: 4px; overflow: hidden; flex-shrink: 0;
}
.video-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-list__thumb--placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,#6f42c1,#9b59b6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.video-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); color: #fff; font-size: 18px;
}
.video-list__body { flex: 1; min-width: 0; }
.video-list__title { font-size: 12px; font-weight: 600; color: var(--text); margin: 0 0 4px; line-height: 1.3; }
.video-list__meta { font-size: 11px; color: var(--text-muted); }

/* =============================================
   ARTICLE
   ============================================= */
.article-title { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: 8px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.article-cover { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); }
.article-excerpt {
  font-size: 15px; font-style: italic; color: #444;
  border-left: 4px solid var(--primary);
  padding: 10px 16px; background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
}
.article-content { font-size: 15px; line-height: 1.7; color: var(--text); }
.article-content h2, .article-content h3 { margin-top: 24px; font-weight: 700; }
.article-content img { border-radius: var(--radius); margin: 12px 0; max-width: 100%; }
.article-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.article-content td, .article-content th {
  border: 1px solid var(--border); padding: 6px 10px; font-size: 13px;
}
.article-content th { background: var(--bg-light); font-weight: 600; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-block { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sidebar-block--sticky {
  position: static;
}
.sidebar-cats { display: flex; flex-direction: column; }
.sidebar-cat {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; font-size: 13px; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.sidebar-cat__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.sidebar-cat:last-child { border-bottom: none; }
.sidebar-cat:hover { background: var(--bg-light); }
.sidebar-cat--blue:hover   { color: var(--blue); }
.sidebar-cat--red:hover    { color: var(--red); }
.sidebar-cat--orange:hover { color: var(--orange); }
.sidebar-cat--green:hover  { color: var(--green); }
.sidebar-cat--purple:hover { color: var(--purple); }
.sidebar-cat--gray:hover   { color: var(--gray); }
.sidebar-cat--indigo:hover { color: var(--indigo); }

/* =============================================
   EMPTY BLOCK
   ============================================= */
.empty-block {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted); border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.empty-block i { font-size: 40px; display: block; margin-bottom: 10px; }

/* =============================================
   TYPE FILTER
   ============================================= */
.type-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.section-description {
  max-width: 860px;
  color: var(--text-muted);
  font-size: 14px;
}

.section-showcase + .section-showcase {
  padding-top: 0;
}
.section-showcase__panel {
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 0 12px;
}
.section-showcase__hero {
  background: #fff;
}
.section-showcase__hero-link {
  display: block;
}
.section-showcase__hero-media {
  position: relative;
}
.section-showcase__hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.section-showcase__hero-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.section-showcase__hero-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.section-showcase__hero-actions i {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.45);
  font-size: 10px;
}
.section-showcase__hero-body {
  padding: 14px 14px 8px;
}
.section-showcase__hero-title {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
  color: #1f1f1f;
  margin: 10px 0 8px;
}
.section-showcase__hero-meta {
  font-size: 11px;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 10px;
}
.section-showcase__hero-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #2f2f2f;
}
.section-showcase__rail {
  border-left: 1px solid var(--border);
  padding-left: 14px;
  height: 100%;
}
.section-showcase__rail-header {
  padding: 8px 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2a2a2a;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.section-showcase__rail-list {
  display: flex;
  flex-direction: column;
}
.rail-news {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dotted #d6d6d6;
}
.rail-news__thumb {
  width: 64px;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eef2f6;
}
.rail-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rail-news__body {
  min-width: 0;
}
.rail-news__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.rail-news__meta .badge-type {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 82px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-news__date {
  font-size: 10px;
  color: #8f8f8f;
  text-transform: uppercase;
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
}
.rail-news__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: #1f1f1f;
}
.showcase-mini {
  display: block;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.showcase-mini__media {
  margin-bottom: 8px;
}
.showcase-mini__media img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
}
.showcase-mini__title {
  margin: 8px 0 6px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #1f1f1f;
}
.showcase-mini__meta {
  font-size: 11px;
  text-transform: uppercase;
  color: #999;
}

.portal-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 39, 73, .04);
}
.portal-panel__body { padding: 12px; }
.portal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.portal-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.portal-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.portal-link__icon { font-size: 18px; }
.portal-link__icon-img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.portal-link--blue:hover { border-color: #64b5f6; color: var(--blue); }
.portal-link--red:hover { border-color: #ef9a9a; color: var(--red); }
.portal-link--orange:hover { border-color: #ffcc80; color: var(--orange); }
.portal-link--green:hover { border-color: #a5d6a7; color: var(--green); }
.portal-link--purple:hover { border-color: #ce93d8; color: var(--purple); }
.portal-link--gray:hover { border-color: #b0bec5; color: var(--gray); }
.portal-link--indigo:hover { border-color: #9fa8da; color: var(--indigo); }

.category-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}
.category-panel__column,
.category-panel__lead {
  height: 100%;
}
.category-panel__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 700;
}
.catalog-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.catalog-list__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.catalog-list__item:last-child { border-bottom: none; }
.catalog-list__item:hover { background: var(--bg-light); }
.catalog-list__type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  font-weight: 700;
}
.catalog-list__title {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  font-weight: 600;
}
.catalog-list__meta {
  font-size: 11px;
  color: var(--text-muted);
}
.catalog-list__empty {
  padding: 14px;
  color: var(--text-muted);
  font-size: 13px;
}
.catalog-list--compact .catalog-list__item {
  padding: 10px 12px;
}
.catalog-more {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.home-news-section__panel {
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px;
}

.home-blocks-grid .home-news-section,
.home-blocks-grid .video-showcase {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-blocks-grid .home-news-section__panel,
.home-blocks-grid .video-showcase__panel {
  flex: 1 1 auto;
}

.home-blocks-grid .home-news-section__lead {
  height: 100%;
}

.section-subsections__grid .section-subsection-block {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section-subsections__grid .home-news-section__panel {
  flex: 1 1 auto;
}

.section-subsections__grid .home-news-section__lead {
  height: 100%;
}

.home-news-section__lead {
  border-radius: 0;
  box-shadow: none;
  border-color: #e2e5e9;
}

.home-news-section__lead:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.home-news-section__list {
  border-left: 1px solid var(--border);
  padding-left: 16px;
  min-height: 100%;
}

.home-news-section__list-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #202020;
  margin-bottom: 12px;
}

.banner-slot {
  position: relative;
  border: 2px dashed #d3a243;
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.95), rgba(255, 255, 255, 0.98));
  padding: 22px 24px;
}

.banner-slot__label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 8px;
  background: #d99b2b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.banner-slot__title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: #1d1d1d;
  margin-bottom: 8px;
}

.banner-slot__text {
  max-width: 920px;
  font-size: 14px;
  line-height: 1.7;
  color: #454545;
  margin: 0;
}

.banner-slot--wide { min-height: 144px; }
.banner-slot--context { min-height: 138px; }
.banner-slot--catalog { min-height: 138px; }

.home-main-sidebar {
  height: 100%;
}

.home-main-sidebar__panel {
  box-shadow: none;
}

.home-catalog-sidebar {
  height: 100%;
}

.home-catalog-sidebar .section-header {
  margin-bottom: 0;
}

.home-catalog-sidebar__intro {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #5c6670;
}

.home-catalog-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-catalog-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f7fb 100%);
}

.home-catalog-sidebar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dbe5ee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.home-catalog-sidebar__icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.home-catalog-sidebar__text {
  min-width: 0;
  line-height: 1.35;
}

.home-other-news__panel {
  border: 1px solid var(--border);
  border-top: none;
  background: #fff;
  padding: 16px;
}

.home-other-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.home-other-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e5eaf0;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-other-news-card:hover {
  transform: translateY(-3px);
  border-color: #cfd7e0;
  box-shadow: 0 10px 24px rgba(15, 39, 73, .08);
}

.home-other-news-card__thumb {
  width: 100%;
  height: 132px;
  overflow: hidden;
  background: #eef2f6;
}

.home-other-news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-other-news-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  min-width: 0;
}

.home-other-news-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  color: #1f1f1f;
}

.video-showcase__panel {
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px;
}

.video-showcase--dark .video-showcase__panel {
  border-color: #1f2937;
  background: linear-gradient(180deg, #0b0f16 0%, #111827 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.video-showcase--dark .video-showcase__lead,
.video-showcase--dark .video-card {
  border-color: #243042;
  background: #111827;
}

.video-showcase--dark .video-showcase__lead-title,
.video-showcase--dark .video-card__title {
  color: #f8fafc;
}

.video-showcase--dark .video-showcase__lead-excerpt {
  color: #cbd5e1;
}

.video-showcase--dark .video-showcase__meta,
.video-showcase--dark .video-card__meta,
.video-showcase--dark .video-card__category {
  color: #94a3b8;
}

.video-showcase--dark .video-showcase__play,
.video-showcase--dark .video-card__play {
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.video-showcase__lead {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #dde2e8;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.video-showcase__lead:hover,
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.video-showcase__lead-media,
.video-card__media {
  position: relative;
}

.video-showcase__lead-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.video-showcase__play,
.video-card__play {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 18, 28, 0.78);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.video-showcase__lead-body {
  padding: 18px 18px 20px;
}

.video-showcase__lead-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  color: #191919;
  margin: 12px 0 10px;
}

.video-showcase__lead-excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.video-showcase__meta,
.video-card__meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #dde2e8;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.video-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.video-card__play {
  left: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.video-card__body {
  padding: 12px 12px 14px;
}

.video-card__category {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
}

.video-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #1f1f1f;
}

.catalog-hero__main,
.catalog-hero__aside,
.catalog-section__frame {
  border: 1px solid var(--border);
  background: #fff;
}

.catalog-hero__main {
  min-height: 100%;
  padding: 24px 26px;
  background:
    linear-gradient(135deg, rgba(245, 248, 251, 0.98), rgba(255, 255, 255, 0.96)),
    url("/static/img/generated/safety-hero.svg") center right / cover no-repeat;
}

.catalog-hero__eyebrow,
.catalog-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: #8a5a12;
}

.catalog-hero__title {
  max-width: 780px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 800;
  margin: 10px 0 12px;
  color: #1d1d1d;
}

.catalog-hero__lead {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.68;
  color: #3a3a3a;
  margin: 0 0 18px;
}

.catalog-hero__stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.catalog-stat {
  min-width: 140px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.9);
}

.catalog-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  color: #111827;
}

.catalog-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
}

.catalog-hero__aside {
  height: 100%;
  padding: 16px 16px 18px;
}

.catalog-hero__aside--sticky {
  position: static;
}

.catalog-hero__aside-title,
.catalog-section__groups-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
  color: #212121;
}

.catalog-hero__anchors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-anchor {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #222;
  font-weight: 600;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.catalog-anchor:hover {
  background: #fff;
  border-color: #c7d2da;
  transform: translateX(3px);
}

.catalog-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog-showcase-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e5eaf0;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.catalog-showcase-card:hover {
  transform: translateY(-2px);
  border-color: #cfd7e0;
  box-shadow: 0 10px 24px rgba(15, 39, 73, .08);
}

.catalog-showcase-card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.catalog-showcase-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  min-width: 0;
}

.catalog-showcase-card__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.32;
  font-weight: 800;
  color: #191f2b;
}

.catalog-showcase-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4d5766;
}

.catalog-showcase-card__meta,
.catalog-directory__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-showcase-card__meta span,
.catalog-directory__meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #e3e7ec;
  background: #f7f9fb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #5d6470;
}

.catalog-showcase-card__link,
.catalog-directory__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  align-self: flex-start;
  border: 1px solid #d8dee5;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #253041;
}

.catalog-showcase-card__link:hover,
.catalog-directory__cta:hover {
  border-color: #c9d2db;
  color: #a96512;
}

.catalog-directory__frame {
  border: 1px solid var(--border);
  background: #fff;
  padding: 18px;
}

.catalog-directory__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 2px 0;
}

.catalog-directory__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 800;
  color: #181818;
}

.catalog-directory__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #414141;
}

.catalog-directory__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-directory__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catalog-directory-item {
  display: block;
  min-width: 0;
  height: 100%;
  padding: 14px;
  border: 1px solid #e5eaf0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.catalog-directory-item:hover {
  transform: translateY(-2px);
  border-color: #cfd7e0;
  box-shadow: 0 10px 24px rgba(15, 39, 73, .06);
}

.catalog-directory-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.catalog-directory-item__head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  color: #1c1c1c;
}

.catalog-directory-item__head span {
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9b6623;
}

.catalog-directory-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

.catalog-section__frame {
  padding: 18px;
}

.catalog-section__intro {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.catalog-section__image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.catalog-section__intro-body {
  padding: 16px 16px 10px;
}

.catalog-section__title {
  margin: 8px 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: #181818;
}

.catalog-section__subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: #414141;
  margin: 0;
}

.catalog-section__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.catalog-section__meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #e3e7ec;
  background: #f7f9fb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #5d6470;
}

.catalog-section__groups {
  padding: 0 16px 16px;
}

.catalog-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-chip {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid #d8dee5;
  background: #fff;
  font-size: 12px;
  line-height: 1.4;
  color: #3a4451;
}

.catalog-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.catalog-service-grid--tight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-service-card {
  height: 100%;
  padding: 14px 14px 15px;
  border: 1px solid var(--border);
  background: #fff;
}

.catalog-service-card--with-image {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.catalog-service-card__media {
  width: 100%;
  height: 168px;
  overflow: hidden;
  background: #eef2f6;
  border-bottom: 1px solid var(--border);
}

.catalog-service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.catalog-service-card__icon-fallback {
  object-fit: contain !important;
  padding: 24px;
}

.catalog-service-card--with-image .catalog-service-card__head,
.catalog-service-card--with-image p,
.catalog-service-card--with-image .catalog-list__meta {
  margin-left: 14px;
  margin-right: 14px;
}

.catalog-service-card--with-image .catalog-service-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.catalog-service-card--with-image .catalog-service-card__media img {
  object-fit: contain;
  object-position: center center;
  padding: 12px;
}

.catalog-service-card--with-image .catalog-service-card__head {
  margin-top: 14px;
}

.catalog-service-card--with-image p {
  margin-bottom: 12px;
}

.catalog-service-card--with-image .catalog-list__meta {
  margin-top: auto;
  margin-bottom: 15px;
}

.catalog-service-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.catalog-service-card__marker {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: #d99b2b;
  margin-top: 8px;
}

.catalog-service-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  color: #1c1c1c;
}

.catalog-service-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #474747;
}

.catalog-page__panel {
  border: 1px solid var(--border);
  background: #fff;
  padding: 16px;
}

.catalog-item-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e8edf2;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}

.catalog-item-card:hover {
  transform: translateY(-1px);
  border-color: #d9e1e8;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  background: #fffefd;
}

.catalog-item-card__media {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #eef2f6;
}

.catalog-item-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.catalog-item-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-item-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.catalog-item-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-item-card__price {
  font-size: 12px;
  font-weight: 800;
  color: #d37816;
}

.catalog-item-card .badge-type,
.catalog-item-card__price-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #e4e9ee;
  background: #f8fafb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #566273;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.catalog-item-card__price-badge {
  border-color: #eee2d1;
  background: #fcf7ef;
  color: #9b6623;
}

.catalog-item-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.32;
  font-weight: 800;
  color: #1c1c1c;
}

.catalog-item-card__title-link {
  color: inherit;
}

.catalog-item-card__title-link:hover {
  color: #a96512;
}

.catalog-item-card__excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #4a4a4a;
}

.catalog-item-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 2px;
}

.catalog-item-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--primary);
  background: linear-gradient(180deg, var(--blue) 0%, var(--primary) 100%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 63, 127, 0.18);
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.catalog-item-card__button:hover {
  background: linear-gradient(180deg, #0f4f9b 0%, #08366a 100%);
  border-color: #08366a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 63, 127, 0.24);
  transform: translateY(-1px);
}

.catalog-item-card--horizontal {
  flex-direction: row;
  align-items: stretch;
  min-height: 148px;
  position: relative;
}

.catalog-item-card--horizontal .catalog-item-card__media {
  width: 168px;
  min-width: 168px;
  height: auto;
  border-right: 1px solid #edf2f6;
}

.catalog-item-card--horizontal .catalog-item-card__body {
  flex: 1 1 auto;
  justify-content: center;
  padding: 12px 14px;
  gap: 5px;
}

.catalog-item-card--horizontal .catalog-item-card__meta {
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 2px;
}

.catalog-item-card--horizontal .catalog-item-card__title {
  font-size: 16px;
  line-height: 1.3;
}

.catalog-item-card--horizontal .catalog-item-card__excerpt {
  font-size: 12px;
  line-height: 1.5;
  color: #5b5b5b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-item-card--horizontal .catalog-item-card__button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 11px;
}

.catalog-listing {
  position: relative;
}

.catalog-listing .col-12 {
  position: relative;
}

.catalog-listing .col-12 + .col-12::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: -4px;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0) 0%, rgba(226, 232, 240, 0.9) 12%, rgba(226, 232, 240, 0.9) 88%, rgba(226, 232, 240, 0) 100%);
}

.catalog-listing--category .catalog-item-card__meta {
  justify-content: flex-start;
}

.catalog-listing--category .catalog-item-card__actions {
  justify-content: flex-end;
}

.catalog-listing--category .badge-type {
  min-height: 20px;
  padding: 0 7px;
  font-size: 9px;
  letter-spacing: .03em;
}

.section-content-card__date,
.section-content-card__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6b7280;
}

.section-content-card__actions {
  justify-content: space-between;
}

.catalog-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.catalog-gallery__item {
  display: block;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.catalog-gallery__item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.catalog-contact-card {
  border: 1px solid #e6ebf0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #313131;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.catalog-contact-card__lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog-contact-card__title {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  color: #1f2937;
}

.catalog-contact-card__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #5b6472;
}

.catalog-contact-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.catalog-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid #e8edf2;
  background: #fff;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.catalog-contact-item:hover {
  transform: translateY(-1px);
  border-color: #d6dee7;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.catalog-contact-item--static:hover {
  transform: none;
  box-shadow: none;
}

.catalog-contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: #f4f7fa;
  color: #9b6623;
  font-size: 13px;
}

.catalog-contact-item__body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 8px;
  row-gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.catalog-contact-item__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #7a8594;
  white-space: nowrap;
}

.catalog-contact-item__value {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: #202938;
  word-break: break-word;
}

.catalog-contact-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-contact-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d6a14f;
  background: linear-gradient(180deg, #f3c97d 0%, #d8a04c 100%);
  color: #2b2111;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(191, 133, 38, 0.2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.catalog-contact-card__cta--secondary {
  border-color: #dde4ea;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  color: #253041;
  box-shadow: none;
}

.catalog-contact-card__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 28px rgba(191, 133, 38, 0.24);
}

.catalog-contact-card__cta--secondary:hover {
  border-color: #cfd8e1;
  color: #a96512;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.catalog-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.search-select {
  max-width: 260px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1a2744;
  margin-top: 40px;
  border-top: 3px solid var(--primary);
}
.footer-brand__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-brand__icon {
  width: 24px;
  height: 24px;
}
.footer-brand__title {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .06em;
}
.footer-brand__text {
  color: #9aa6b4;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.footer-heading { color: #adb5bd; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a, .footer-links li { font-size: 13px; color: #6c757d; }
.footer-links a:hover { color: #adb5bd; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 0;
  font-size: 12px; color: #6c757d;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .logo-title { font-size: 18px; }
  .slider-img, .slider-img--placeholder { height: 280px; }
  .carousel-caption-custom { padding: 48px 16px 14px; }
  .slider-title { font-size: 18px; }
  .slider-excerpt { font-size: 13px; max-width: 100%; }
  .article-title { font-size: 18px; }
  .main-nav { overflow-x: hidden; }
  .topbar-inner { gap: 10px; }
  .nav-inner.nav-open { flex-direction: column; overflow: visible; }
  .nav-home {
    width: 100%;
    margin: 0;
    height: 42px;
  }
  .nav-item {
    justify-content: flex-start;
    padding: 11px 14px;
    font-size: 13px;
    width: 100%;
    min-height: 42px;
    border-left: none;
    border-top: 1px solid #e5e5e5;
  }
  .nav-item--forum {
    border-right: none;
  }
  .portal-links { grid-template-columns: 1fr; }
  .portal-actions { grid-template-columns: 1fr; }
  .search-select { max-width: none; }
  .section-showcase__hero-img { height: 240px; }
  .section-showcase__hero-title { font-size: 18px; }
  .section-showcase__rail {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 10px;
  }
  .catalog-hero__main,
  .catalog-hero__aside,
  .catalog-section__frame {
    padding: 16px;
  }
  .home-news-section__panel { padding: 12px; }
  .video-showcase__panel { padding: 12px; }
  .video-showcase__lead-img { height: 220px; }
  .banner-slot { padding: 16px; }
  .banner-slot__title { font-size: 20px; }
  .home-other-news__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .home-news-section__list {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 14px;
  }
  .catalog-hero__title { font-size: 26px; }
  .catalog-service-grid,
  .catalog-service-grid--tight { grid-template-columns: 1fr; }
  .catalog-section__title { font-size: 24px; }
  .catalog-section__image { height: 180px; }
  .catalog-item-card__media { height: 180px; }
  .catalog-showcase__grid,
  .catalog-directory__list { grid-template-columns: 1fr; }
  .catalog-item-card--horizontal {
    flex-direction: column;
    min-height: 0;
  }
  .catalog-item-card--horizontal .catalog-item-card__media {
    width: 100%;
    min-width: 0;
    height: 180px;
    border-right: none;
  }
  .catalog-item-card--horizontal .catalog-item-card__body {
    padding: 12px;
  }
  .catalog-gallery { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
  .sidebar-block--sticky {
    position: sticky;
    top: 18px;
  }
  .catalog-hero__aside--sticky {
    position: sticky;
    top: 18px;
  }
}


/* =============================================
   SECTION BANNER (прямоугольный тематический баннер)
   ============================================= */
.section-banner {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.section-banner__link {
  display: block;
  transition: opacity .2s;
}
.section-banner__link:hover { opacity: .92; }
.section-banner__link--nolink { cursor: default; }

/* Если загружена картинка */
.section-banner__img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: center;
}

/* Если картинки нет — текстовый fallback с цветом раздела */
.section-banner__fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  height: 80px;
}
.section-banner__fallback--blue   { background: linear-gradient(90deg,#1a4fa0,#2980b9); }
.section-banner__fallback--red    { background: linear-gradient(90deg,#c0392b,#e74c3c); }
.section-banner__fallback--orange { background: linear-gradient(90deg,#d35400,#e67e22); }
.section-banner__fallback--green  { background: linear-gradient(90deg,#1e7e34,#27ae60); }
.section-banner__fallback--purple { background: linear-gradient(90deg,#6f42c1,#9b59b6); }
.section-banner__fallback--gray   { background: linear-gradient(90deg,#495057,#7f8c8d); }
.section-banner__fallback--indigo { background: linear-gradient(90deg,#3949ab,#5c6bc0); }

.section-banner__fallback-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex: 1;
  line-height: 1.3;
}
.section-banner__fallback-sub {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(0,0,0,.18);
  padding: 4px 12px;
  border-radius: 20px;
}

@media (max-width: 576px) {
  .section-banner__img { height: 70px; }
  .section-banner__fallback { height: 64px; padding: 10px 14px; }
  .section-banner__fallback-title { font-size: 13px; }
  .section-banner__fallback-sub { display: none; }
}

/* Заглушка баннера (когда нет записи в БД) */
.section-banner__placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  height: 80px;
  border: 2px dashed rgba(255,255,255,.35);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.section-banner__placeholder--blue   { background: linear-gradient(90deg,rgba(26,79,160,.18),rgba(41,128,185,.12)); border-color: #2980b9; }
.section-banner__placeholder--red    { background: linear-gradient(90deg,rgba(192,57,43,.18),rgba(231,76,60,.12)); border-color: #e74c3c; }
.section-banner__placeholder--orange { background: linear-gradient(90deg,rgba(211,84,0,.18),rgba(230,126,34,.12)); border-color: #e67e22; }
.section-banner__placeholder--green  { background: linear-gradient(90deg,rgba(30,126,52,.18),rgba(39,174,96,.12)); border-color: #27ae60; }
.section-banner__placeholder--purple { background: linear-gradient(90deg,rgba(111,66,193,.18),rgba(155,89,182,.12)); border-color: #9b59b6; }
.section-banner__placeholder--gray   { background: linear-gradient(90deg,rgba(73,80,87,.18),rgba(127,140,141,.12)); border-color: #7f8c8d; }
.section-banner__placeholder--indigo { background: linear-gradient(90deg,rgba(57,73,171,.18),rgba(92,107,192,.12)); border-color: #5c6bc0; }

.section-banner__placeholder-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.section-banner__placeholder-hint {
  font-size: 11px;
  color: #adb5bd;
  white-space: nowrap;
  background: #f8f9fa;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px dashed var(--border);
}
@media (max-width: 576px) {
  .section-banner__placeholder { height: 56px; padding: 8px 12px; }
  .section-banner__placeholder-hint { display: none; }
}


/* =============================================
   HEADER BANNER SLOT (правый блок шапки)
   ============================================= */
.header-banner-wrap {
  flex-shrink: 0;
}
.header-banner-slot {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  transition: opacity .2s, box-shadow .2s;
  line-height: 0;
}
a.header-banner-slot:hover {
  opacity: .93;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.header-banner-slot--nolink { cursor: default; }

/* Картинка в натуральный размер */
.header-banner-slot__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* Если картинки нет — текстовый вид */
.header-banner-slot__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f0f4fa, #e8f0fb);
  width: 100%; height: 100%;
}
.header-banner-slot__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.header-banner-slot__sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Заглушка (нет записи в БД) */
.header-banner-slot--placeholder {
  border: 2px dashed #c8d6e8;
  background: #f7fafd;
  flex-direction: column;
  gap: 4px;
  cursor: default;
}
.header-banner-slot__placeholder-label {
  font-size: 13px;
  font-weight: 600;
  color: #7b8fa8;
}
.header-banner-slot__placeholder-hint {
  font-size: 11px;
  color: #adb5bd;
  background: #edf2f7;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px dashed #c8d6e8;
}

@media (max-width: 1200px) {
  .header-banner-slot { min-width: 340px; }
}

/* =============================================
   HOME SIDEBAR — переопределения
   ============================================= */
.home-main-sidebar {
  overflow: hidden;
}
.portal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.portal-panel__body {
  padding: 10px;
  overflow: hidden;
}


/* =============================================
   SECTION SIDEBAR (правый сайдбар блока раздела)
   ============================================= */
.section-sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.section-sidebar__link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity .2s;
  height: 100%;
}
.section-sidebar__link:hover { opacity: .9; }

/* Картинка — на всю ширину колонки, высота авто */
.section-sidebar__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Текстовый fallback */
.section-sidebar__fallback {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 20px 12px;
  min-height: 120px;
  border-radius: var(--radius);
  color: #fff;
}
.section-sidebar__fallback span { font-size: 14px; font-weight: 700; }
.section-sidebar__fallback small { font-size: 12px; opacity: .85; }

.section-sidebar__fallback--blue   { background: linear-gradient(160deg,#1a4fa0,#2980b9); }
.section-sidebar__fallback--red    { background: linear-gradient(160deg,#c0392b,#e74c3c); }
.section-sidebar__fallback--orange { background: linear-gradient(160deg,#d35400,#e67e22); }
.section-sidebar__fallback--green  { background: linear-gradient(160deg,#1e7e34,#27ae60); }
.section-sidebar__fallback--purple { background: linear-gradient(160deg,#6f42c1,#9b59b6); }
.section-sidebar__fallback--gray   { background: linear-gradient(160deg,#495057,#7f8c8d); }
.section-sidebar__fallback--indigo { background: linear-gradient(160deg,#3949ab,#5c6bc0); }

/* Заглушка (нет баннера в БД) */
.section-sidebar__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  height: 100%;
  border-radius: var(--radius);
  border: 2px dashed rgba(0,0,0,.12);
  padding: 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,.3);
  line-height: 1.5;
}
.section-sidebar__placeholder--blue   { border-color: #2980b9; color: #2980b9; background: rgba(26,79,160,.04); }
.section-sidebar__placeholder--red    { border-color: #e74c3c; color: #c0392b; background: rgba(192,57,43,.04); }
.section-sidebar__placeholder--orange { border-color: #e67e22; color: #d35400; background: rgba(211,84,0,.04); }
.section-sidebar__placeholder--green  { border-color: #27ae60; color: #1e7e34; background: rgba(30,126,52,.04); }
.section-sidebar__placeholder--purple { border-color: #9b59b6; color: #6f42c1; background: rgba(111,66,193,.04); }
.section-sidebar__placeholder--gray   { border-color: #7f8c8d; color: #495057; background: rgba(73,80,87,.04); }
.section-sidebar__placeholder--indigo { border-color: #5c6bc0; color: #3949ab; background: rgba(57,73,171,.04); }

@media (max-width: 991px) {
  .home-other-news__panel {
    padding: 12px;
  }
  .home-other-news__grid {
    grid-template-columns: 1fr;
  }
  .home-other-news-card {
    flex-direction: row;
  }
  .home-other-news-card__thumb {
    width: 110px;
    min-width: 110px;
    height: auto;
  }
  .home-other-news-card__body {
    padding: 10px;
  }
  .section-sidebar { flex-direction: row; gap: 8px; }
  .section-sidebar__img { max-height: 100px; width: auto; }
  .section-sidebar__placeholder { min-height: 80px; }
  .rail-news__meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 8px;
  }
  .rail-news__meta .badge-type {
    max-width: 100%;
  }
  .rail-news__date {
    text-align: left;
  }
}

/* =============================================
   SECTION SIDEBAR — вертикальный баннер
   ============================================= */
.section-sidebar {
  height: 100%;
}
.section-sidebar__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 160px;
  border-radius: var(--radius);
  padding: 20px 14px;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  writing-mode: horizontal-tb;
}
.section-sidebar__placeholder--blue   { background: linear-gradient(180deg,#1a4fa0,#2980b9); }
.section-sidebar__placeholder--red    { background: linear-gradient(180deg,#c0392b,#e74c3c); }
.section-sidebar__placeholder--orange { background: linear-gradient(180deg,#d35400,#e67e22); }
.section-sidebar__placeholder--green  { background: linear-gradient(180deg,#1e7e34,#27ae60); }
.section-sidebar__placeholder--purple { background: linear-gradient(180deg,#6f42c1,#9b59b6); }
.section-sidebar__placeholder--gray   { background: linear-gradient(180deg,#495057,#7f8c8d); }
.section-sidebar__placeholder--indigo { background: linear-gradient(180deg,#3949ab,#5c6bc0); }

.section-sidebar__placeholder-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .7;
  background: rgba(0,0,0,.2);
  padding: 2px 8px;
  border-radius: 20px;
}
.section-sidebar__placeholder-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.section-sidebar__placeholder-hint {
  font-size: 11px;
  opacity: .75;
}
