/* ============================================================
   produkty-dlya-kormyaschey-mamy.css
   Выборка классов из main-style.css для страницы
   «Продукты для кормящей мамы»

   Блоки:
   2.  Поиск + фильтры (hub-filter-row, hub-search-*)
   3.  Каталог (hub-grid, hub-card)
   5.  SEO-текст (seo-cats-grid, seo-callout)
   6.  PDF-материалы (mg-*, guide-tiles)
   +   Модальный фильтр (hub-modal)
   +   Модальный поиск (hub-search-modal)
   ============================================================ */

/* Уникальные стили для списков внутри card-text */
.card-text ul { margin: 4px 0 14px 0; padding-left: 20px; }
.card-text ul li { font-size: 15px; color: var(--rose-5); line-height: 1.82; font-weight: 300; margin-bottom: 4px; font-style: italic; }


/* ════════════════════════════════════════════════
   БЛОК 2. ПОИСК + ФИЛЬТРЫ
   ════════════════════════════════════════════════ */

/* Вводный блок над поиском */
.hub-catalog-intro { margin-bottom: 1.25rem; }
.hub-catalog-lead {
  font-size: 15px; color: #4b5563; font-weight: 300; line-height: 1.82; margin: .45rem 0 0;
}
.hub-catalog-heading { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; padding-top: .25rem; }
.hub-catalog-h2 { font-size: 1.35rem; font-weight: 700; color: #1a2535; margin: 0; }
.hub-catalog-count { font-size: .85rem; color: #6b7280; }

/* Иконка в кнопке (маска) */
.hub-btn-icon {
  display: inline-block; flex-shrink: 0;
  width: 16px; height: 16px;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}

/* Строка кнопок фильтра */
.hub-filter-row { }
.hub-filter-btns-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-bottom: 25px;
}
.hub-filter-right { display: flex; align-items: center; gap: 8px; }
.hub-filter-sep { border: none; border-top: 1px solid rgba(26,37,53,.09); margin: 0 0 14px; }

/* Счётчик над сеткой (вместо "Продукты при ГВ") */
.hub-catalog-count-top {
  font-family: var(--ff-body); font-size: 13px; color: var(--muted);
  margin-bottom: 16px; text-align: left;
}

/* Кнопка «Поиск» — primary, без теней */
.hub-search-open-btn {
  border-radius: 999px !important; display: inline-flex !important; align-items: center !important;
  justify-content: center !important;
  gap: 7px !important; padding: 10px 16px !important; white-space: nowrap !important;
  width: 140px !important; flex-shrink: 0 !important; background: var(--rose) !important;
  border: 1.5px solid transparent !important; color: #fff !important;
  box-shadow: none !important; font-size: 14px !important;
  font-weight: 700 !important; font-family: var(--ff-body) !important;
  cursor: pointer !important; transition: opacity .18s !important;
}
.hub-search-open-btn:hover { opacity: .88 !important; }
.hub-search-open-btn .hub-btn-icon { background-color: #fff; }

/* Кнопка «Фильтр» — outline */
.hub-filter-toggle-btn {
  border-radius: 999px !important; display: inline-flex !important; align-items: center !important;
  justify-content: center !important;
  gap: 7px !important; padding: 10px 16px !important; white-space: nowrap !important;
  width: 140px !important; flex-shrink: 0 !important; background: var(--paper) !important;
  border: 1.5px solid var(--border-2) !important; color: var(--dark) !important;
  box-shadow: none !important; font-size: 14px !important;
  font-weight: 700 !important; font-family: var(--ff-body) !important;
  cursor: pointer !important; transition: background .18s, border-color .18s, color .18s !important;
}
.hub-filter-toggle-btn .hub-btn-icon { background-color: var(--dark); transition: background-color .18s; }
.hub-filter-toggle-btn:hover { background: var(--rose-bg) !important; border-color: var(--rose-soft) !important; color: var(--rose) !important; }
.hub-filter-toggle-btn:hover .hub-btn-icon { background-color: var(--rose); }
.hub-filter-toggle-btn.has-filters {
  background: var(--rose-bg) !important; border-color: var(--rose-soft) !important; color: var(--rose) !important;
}
.hub-filter-toggle-btn.has-filters .hub-btn-icon { background-color: var(--rose); }
.hub-filter-badge {
  background: var(--rose); color: #fff; border-radius: 999px;
  padding: 1px 7px; font-size: 11px; font-weight: 700; line-height: 18px;
  display: inline-flex; align-items: center;
}

/* Кнопка «Сбросить» — icon-only outline, появляется когда есть фильтры */
.hub-filter-reset-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 12px; border-radius: 999px;
  border: 1.5px solid var(--border-2); background: var(--paper); color: var(--dark);
  font-family: var(--ff-body); font-size: 14px; font-weight: 700; cursor: pointer;
  flex-shrink: 0; transition: background .18s, color .18s, border-color .18s;
}
.hub-filter-reset-btn .hub-btn-icon { background-color: var(--dark); transition: background-color .18s; }
.hub-filter-reset-btn:hover { background: var(--rose-bg); border-color: var(--rose-soft); color: var(--rose); }
.hub-filter-reset-btn:hover .hub-btn-icon { background-color: var(--rose); }

/* Активные теги фильтров */
.hub-active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-bottom: 0; margin: 0 0 14px; }
.hub-af-label { font-size: 13px; color: var(--muted); font-family: var(--ff-body); white-space: nowrap; }
.hub-af-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-af-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  background: var(--rose-bg); border: 1px solid var(--rose-soft); border-radius: 999px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--dark); font-family: var(--ff-body);
}
.hub-af-tag--status-1 { background: #dcfce7; border-color: #bbf7d0; color: rgb(21 128 61 / 0.6); }
.hub-af-tag--status-2 { background: #fef3c7; border-color: #fde68a; color: rgb(180 83 9 / 0.6); }
.hub-af-tag--status-3 { background: #ffe4e6; border-color: #fecdd3; color: rgb(185 28 28 / 0.6); }
.hub-af-tag[data-type="letter"] { background: var(--light); border-color: var(--border); color: var(--mid); font-weight: 700; letter-spacing: .03em; }
.hub-af-remove {
  background: none; border: none; cursor: pointer; padding: 0 0 0 2px;
  display: inline-flex; align-items: center; flex-shrink: 0;
  transition: opacity .15s;
}
.hub-af-remove-icon {
  display: inline-block; width: 14px; height: 14px;
  background-color: var(--muted);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  transition: background-color .15s;
}
.hub-af-remove:hover .hub-af-remove-icon { background-color: var(--rose); }

/* Счётчик (мобилка) */
.hub-count-mobile { display: none; font-family: var(--ff-body); font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.hub-count-bar { font-size: 13px; color: var(--muted); font-family: var(--ff-body); margin-bottom: 0; }
.hub-legend { font-family: var(--ff-body); font-size: 13px; color: var(--muted); padding: 8px 0; margin-bottom: 6px; line-height: 1.6; }


/* ════════════════════════════════════════════════
   БЛОК 3. КАТАЛОГ (hub-grid, hub-card)
   ════════════════════════════════════════════════ */
.hub-grid {
  display: grid; grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important; max-width: var(--content-w); margin: 0 auto;
}

/* Карточка продукта */
.hub-card {
  display: flex !important; flex-direction: column !important; gap: 0 !important;
  padding: 16px !important; min-height: 160px; border-radius: 2rem !important;
  border: 1.5px solid rgba(26,37,53,.07) !important; background: var(--white);
  text-decoration: none; color: var(--dark);
  transition: transform .22s, box-shadow .22s; position: relative;
}
.hub-card--status-1 { background: #f0fdf4 !important; border: 1px solid rgba(34, 197, 94, 0.1) !important; }
.hub-card--status-2 { background: #fffbeb !important; border: 1px solid rgba(245, 158, 11, 0.1) !important; }
.hub-card--status-3 { background: #fef2f2 !important; border: 1px solid rgba(239, 68, 68, 0.1) !important; }
.hub-card:hover { transform: translateY(-4px) !important; box-shadow: 0 8px 24px rgba(26,37,53,.12) !important; }
.hub-card.hidden { display: none !important; }

/* Шапка карточки: иконка статуса + бейдж */
.hub-card-header { display: flex; align-items: center; justify-content: space-between; margin: 15px 0; }

.hub-card-status-icon {
  display: inline-block; flex-shrink: 0; width: 28px; height: 28px;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.hub-card-status-icon--1 {
  background-color: rgb(22 163 74);
  -webkit-mask-image: url('/icons/google_icons/check_circle.svg');
  mask-image: url('/icons/google_icons/check_circle.svg');
}
.hub-card-status-icon--2 {
  background-color: rgb(217 119 6);
  -webkit-mask-image: url('/icons/google_icons/warning.svg');
  mask-image: url('/icons/google_icons/warning.svg');
}
.hub-card-status-icon--3 {
  background-color: rgb(220 38 38);
  -webkit-mask-image: url('/icons/google_icons/cancel.svg');
  mask-image: url('/icons/google_icons/cancel.svg');
}

.hub-card-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; font-family: var(--ff-body);
  padding: 0.25rem 0.75rem; border-radius: 999px; white-space: nowrap;
}
.hub-card-badge--1 { background-color: rgb(220 252 231 / 0.5); color: rgb(21 128 61 / 0.6); }
.hub-card-badge--2 { background-color: rgb(254 243 199 / 0.5); color: rgb(180 83 9 / 0.6); }
.hub-card-badge--3 { background-color: rgb(254 226 226 / 0.5); color: rgb(185 28 28 / 0.6); }

/* Тело карточки */
.hub-card-body { flex: 1; display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.hub-card-name-wrap { height: calc(1.2rem * 1.3 * 2); display: flex; align-items: flex-end; overflow: hidden; }
.hub-card-name {
  font-family: var(--ff-body) !important; font-size: 1.2rem !important;
  font-weight: 700 !important; color: rgb(80 80 80); line-height: 1.3 !important;
  margin: 0 !important; padding: 0 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hub-card-intro-text { font-family: var(--ff-body); font-size: 12px; color: rgb(91 91 96); line-height: 1.4; margin: 6px 0 0 !important; }

/* Подвал карточки */
.hub-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.hub-card-cat-pill {
  font-size: 0.6rem; font-weight: 400; font-family: var(--ff-body);
  color: rgb(118 118 123); background: rgb(255 255 255 / 0.4);
  border-radius: 999px; padding: 2px 10px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 24px);
}
.hub-card-arrow-icon {
  display: inline-block; flex-shrink: 0; width: 18px; height: 18px;
  background-color: rgb(80 80 80);
  -webkit-mask-image: url('/icons/google_icons/arrow_forward.svg');
  mask-image: url('/icons/google_icons/arrow_forward.svg');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; transition: transform .15s;
}
.hub-card:hover .hub-card-arrow-icon { transform: translateX(2px); }

/* Кнопка «Показать ещё» */
.hub-load-more-wrap { text-align: center; padding: 20px 0 6px; }
.hub-load-more-pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 36px; border-radius: 999px; border: none;
  background: var(--rose);
  color: #fff; font-family: var(--ff-body); font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: none;
  transition: opacity .18s; text-decoration: none;
}
.hub-load-more-pill-btn:hover { opacity: .88; }
.hub-load-more-meta { margin-bottom: 14px; font-family: var(--ff-body); font-size: 13px; color: var(--muted); text-align: left; }

/* Пустое состояние */
.hub-empty { text-align: center; padding: 40px 20px; color: var(--muted); font-family: var(--ff-body); }
.hub-empty p { margin-bottom: 16px; font-size: 16px; }

/* Кнопка «Наверх» */
.hub-scroll-top {
  position: fixed; bottom: 80px; right: 20px; z-index: 300;
  width: 44px; height: 44px; border-radius: 50%; background: var(--green);
  color: var(--white); border: none; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-md); transition: opacity .2s, transform .2s;
}
.hub-scroll-top:hover { transform: translateY(-2px); }


/* ════════════════════════════════════════════════
   БЛОК 5. SEO-ТЕКСТ
   ════════════════════════════════════════════════ */
.seo-block-lead { font-size: 15px; color: var(--mid); line-height: 1.82; font-weight: 300; margin: 12px 0 20px; }
.seo-block-text  { font-size: 15px; color: var(--mid); line-height: 1.82; font-weight: 300; margin: 20px 0 16px; }

.seo-cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.seo-cat-card { border-radius: 16px; padding: 16px 14px; display: flex; flex-direction: column; gap: 5px; }
.seo-cat-icon  { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.seo-cat-name  { font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.3; }
.seo-cat-desc  { font-size: 13px; color: var(--mid); line-height: 1.5; }
.seo-cat-card--1 { background: #e0f2fe; }
.seo-cat-card--2 { background: #ffe4e6; }
.seo-cat-card--3 { background: #dcfce7; }
.seo-cat-card--4 { background: #fff7ed; }
.seo-cat-card--5 { background: #ede9fe; }

.seo-callout {
  border-left: 3px solid var(--rose-5); padding: 12px 18px;
  background: #fff5f7; border-radius: 0 10px 10px 0;
  font-size: 15px; color: var(--mid); line-height: 1.82; font-weight: 300;
}
.seo-callout strong { color: var(--dark); font-weight: 700; }


/* ════════════════════════════════════════════════
   БЛОК 6. PDF-МАТЕРИАЛЫ (mg-*)
   ════════════════════════════════════════════════ */
.mg-top {
  display: grid; grid-template-columns: 1fr 130px; gap: 32px;
  align-items: start; margin-bottom: 24px; padding-bottom: 22px;
  border-bottom: 1px solid rgba(26,37,53,.07);
}
.mg-top-left { }
.mg-stat {
  text-align: center; padding: 20px 16px; border: 1px solid rgba(26,37,53,.08);
  border-radius: 16px; background: #FFF5F7; flex-shrink: 0;
}
.mg-stat-num { font-family: var(--ff-head); font-size: 52px; font-weight: 500; color: var(--rose-5); line-height: 1; }
.mg-stat-label { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

.mg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.mg-last-row { grid-column: span 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* PDF-плитка */
.mg-tile {
  border-radius: 14px; border: 1px solid rgba(26,37,53,.09); background: #fff;
  padding: 18px 16px 14px; display: flex; flex-direction: column;
  position: relative; overflow: hidden; transition: border-color .18s, transform .18s;
  text-decoration: none; color: inherit;
}
a.mg-tile:hover { transform: translateY(-2px); border-color: rgba(26,37,53,.2); text-decoration: none; }
.mg-tile--soon { cursor: default; }

.mg-tile-bg {
  position: absolute; bottom: -6px; right: 8px; font-size: 50px; font-weight: 900;
  opacity: .05; line-height: 1; pointer-events: none; font-family: system-ui; color: #1A2535;
}
.mg-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.mg-tile-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }
.mg-tile-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.mg-tile-name  { font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.3; margin-bottom: 5px; }
.mg-tile-desc  { font-size: 12px; color: var(--muted); line-height: 1.5; font-weight: 300; flex: 1; }
.mg-tile-foot  { display: flex; align-items: center; gap: 5px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(26,37,53,.06); }
.mg-tile-dl    { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mg-tile-ic    { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mg-tile-soon  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Цветовые схемы плиток c1–c11 */
.mg-tile--c1 .mg-tile-badge { background: var(--mg-c1-bg); color: var(--mg-c1); } .mg-tile--c1 .mg-tile-dl { color: var(--mg-c1); } .mg-tile--c1 .mg-tile-ic { stroke: var(--mg-c1); }
.mg-tile--c2 .mg-tile-badge { background: var(--mg-c2-bg); color: var(--mg-c2); } .mg-tile--c2 .mg-tile-dl { color: var(--mg-c2); } .mg-tile--c2 .mg-tile-ic { stroke: var(--mg-c2); }
.mg-tile--c3 .mg-tile-badge { background: var(--mg-c3-bg); color: var(--mg-c3); } .mg-tile--c3 .mg-tile-dl { color: var(--mg-c3); } .mg-tile--c3 .mg-tile-ic { stroke: var(--mg-c3); }
.mg-tile--c4 .mg-tile-badge { background: var(--mg-c4-bg); color: var(--mg-c4); } .mg-tile--c4 .mg-tile-dl { color: var(--mg-c4); } .mg-tile--c4 .mg-tile-ic { stroke: var(--mg-c4); }
.mg-tile--c5 .mg-tile-badge { background: var(--mg-c5-bg); color: var(--mg-c5); } .mg-tile--c5 .mg-tile-dl { color: var(--mg-c5); } .mg-tile--c5 .mg-tile-ic { stroke: var(--mg-c5); }
.mg-tile--c6 .mg-tile-badge { background: var(--mg-c6-bg); color: var(--mg-c6); } .mg-tile--c6 .mg-tile-dl { color: var(--mg-c6); } .mg-tile--c6 .mg-tile-ic { stroke: var(--mg-c6); }
.mg-tile--c7 .mg-tile-badge { background: var(--mg-c7-bg); color: var(--mg-c7); } .mg-tile--c7 .mg-tile-dl { color: var(--mg-c7); } .mg-tile--c7 .mg-tile-ic { stroke: var(--mg-c7); }
.mg-tile--c8 .mg-tile-badge { background: var(--mg-c8-bg); color: var(--mg-c8); } .mg-tile--c8 .mg-tile-dl { color: var(--mg-c8); } .mg-tile--c8 .mg-tile-ic { stroke: var(--mg-c8); }
.mg-tile--c9 .mg-tile-badge { background: var(--mg-c9-bg); color: var(--mg-c9); } .mg-tile--c9 .mg-tile-dl { color: var(--mg-c9); } .mg-tile--c9 .mg-tile-ic { stroke: var(--mg-c9); }
.mg-tile--c10 .mg-tile-badge { background: var(--mg-c10-bg); color: var(--mg-c10); } .mg-tile--c10 .mg-tile-dl { color: var(--mg-c10); } .mg-tile--c10 .mg-tile-ic { stroke: var(--mg-c10); }
.mg-tile--c11 .mg-tile-badge { background: var(--mg-c11-bg); color: var(--mg-c11); } .mg-tile--c11 .mg-tile-dl { color: var(--mg-c11); } .mg-tile--c11 .mg-tile-ic { stroke: var(--mg-c11); }

.mg-bottom-note { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; margin-top: 4px; }


/* ════════════════════════════════════════════════
   МОДАЛЬНЫЙ ФИЛЬТР (hub-modal)
   ════════════════════════════════════════════════ */
.hub-modal-overlay {
  position: fixed; inset: 0; background: rgba(10,15,25,.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.hub-modal {
  background: var(--white); border-radius: var(--r-lg); max-width: 520px; width: 100%;
  max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--sh-lg); overflow: hidden;
}
.hub-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 22px; background: #f8f9fa; border-bottom: 1px solid rgba(26,37,53,.07); flex-shrink: 0;
}
.hub-modal-title { font-family: var(--ff-head); font-size: 24px; font-weight: 700; color: var(--dark); }
.hub-modal-close {
  background: none; border: none; cursor: pointer;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .15s; padding: 0; flex-shrink: 0;
}
.hub-modal-close-icon {
  display: inline-block; width: 18px; height: 18px; flex-shrink: 0;
  background-color: var(--muted);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  transition: background-color .15s;
}
.hub-modal-close:hover { background: var(--rose); }
.hub-modal-close:hover .hub-modal-close-icon { background-color: #fff; }

.hub-modal-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.hub-modal-section { margin-bottom: 22px; }
.hub-modal-section:last-child { margin-bottom: 0; }
.hub-modal-section-title {
  font-family: var(--ff-body); font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}

/* Статус-пилли */
.hub-modal-status-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hub-modal-status-pill { cursor: pointer; position: relative; display: block; }
.hub-modal-status-pill input { position: absolute; opacity: 0; pointer-events: none; }
.hub-modal-status-pill span {
  display: flex; align-items: center; justify-content: center; padding: 10px 4px;
  border-radius: 999px; font-family: var(--ff-body); font-size: 13px; font-weight: 600;
  text-align: center; border: 1.5px solid; transition: all .15s; white-space: nowrap;
}
.hub-modal-status-pill--all span  { background: #f3f4f6; border-color: #d1d5db; color: #374151; }
.hub-modal-status-pill--all input:checked ~ span  { background: #374151; border-color: #374151; color: #fff; }
.hub-modal-status-pill--1 span    { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.hub-modal-status-pill--1 input:checked ~ span    { background: #16a34a; border-color: #16a34a; color: #fff; }
.hub-modal-status-pill--2 span    { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.hub-modal-status-pill--2 input:checked ~ span    { background: #d97706; border-color: #d97706; color: #fff; }
.hub-modal-status-pill--3 span    { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.hub-modal-status-pill--3 input:checked ~ span    { background: #e11d48; border-color: #e11d48; color: #fff; }

/* Категории */
.hub-modal-cats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.hub-modal-check {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid rgba(26,37,53,.06); cursor: pointer;
  font-family: var(--ff-body); font-size: 14px; color: var(--dark); gap: 8px;
}
.hub-modal-check:last-child,
.hub-modal-check:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.hub-modal-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px;
  border-radius: 6px; border: 1.5px solid #d1d5db; background: #f9fafb;
  cursor: pointer; flex-shrink: 0; position: relative; transition: border-color .15s, background .15s;
}
.hub-modal-check input[type="checkbox"]:checked { background: var(--rose); border-color: var(--rose); }
.hub-modal-check input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 7px; height: 11px;
  border: 2.5px solid #fff; border-top: none; border-left: none; transform: rotate(45deg);
}

/* Алфавит */
.hub-modal-alphabet { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-modal-alpha-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: #f3f4f6;
  font-family: var(--ff-body); font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #4b5563;
  transition: all .15s; flex-shrink: 0;
}
.hub-modal-alpha-btn:hover { background: var(--rose-bg); color: var(--rose); }
.hub-modal-alpha-btn.active {
  background: var(--rose);
  color: #fff; box-shadow: none;
}
.hub-modal-alpha-btn[data-modal-letter=""] { width: auto; padding: 0 16px; border-radius: 999px; }

/* Кнопки действий */
.hub-modal-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 16px 22px; border-top: 1px solid rgba(26,37,53,.07); flex-shrink: 0;
}
.hub-modal-btn-apply {
  display: flex; align-items: center; justify-content: center; padding: 13px;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--rose);
  color: #fff; font-family: var(--ff-body); font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: none; transition: opacity .18s;
}
.hub-modal-btn-apply:hover { opacity: .88; }
.hub-modal-btn-reset {
  display: flex; align-items: center; justify-content: center; padding: 13px;
  border-radius: 999px; border: 1.5px solid var(--border-2); background: var(--paper); color: var(--dark);
  font-family: var(--ff-body); font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.hub-modal-btn-reset:hover { background: var(--rose-bg); border-color: var(--rose-soft); color: var(--rose); }


/* ════════════════════════════════════════════════
   МОДАЛЬНЫЙ ПОИСК (hub-search-modal)
   ════════════════════════════════════════════════ */
.hub-search-modal {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(10,15,25,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; justify-content: center; align-items: center; padding: 16px;
}
.hub-search-modal-dialog { max-width: 560px; overflow: visible !important; }
.hub-search-modal-dialog .hub-modal-header { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.hub-search-modal-dialog .hub-search-modal-body { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.hub-search-modal-body { padding: 20px 24px 28px; overflow: visible; display: flex; flex-direction: column; gap: 20px; }

/* Поле поиска (pill) */
.hub-search-wrap-pill { width: 100%; position: relative; }
.hub-search-field-wrap--pill {
  display: flex; align-items: center; position: relative; background: var(--white);
  border: 1.5px solid rgba(26,37,53,.18); border-radius: 999px !important; padding: 0 16px 0 44px;
  transition: border-radius .15s;
}
.hub-search-wrap-pill.is-open .hub-search-field-wrap--pill { border-radius: 16px 16px 0 0 !important; }
.hub-search-field-wrap--pill .hub-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hub-search-input--pill {
  flex: 1; border: none !important; outline: none !important; background: transparent !important;
  border-radius: 0 !important; box-shadow: none !important; padding: 14px 0 !important;
  font-size: 15px; color: var(--dark); font-family: var(--ff-body);
}
.hub-search-input--pill::placeholder { color: var(--muted); }
.hub-search-input--pill:focus { outline: none !important; box-shadow: none !important; border-color: transparent !important; }
.hub-search-clear {
  position: absolute; right: 12px; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 16px; padding: 4px 8px; line-height: 1;
}
.hub-search-clear:hover { color: var(--dark); }

/* Выпадающий список поиска */
.hub-search-wrap-pill .hub-search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
  border-radius: 0 0 16px 16px; border: 1.5px solid rgba(26,37,53,.18);
  border-top: none; box-shadow: 0 6px 20px rgba(26,37,53,.1);
  list-style: none; padding: 4px 0; max-height: 280px; overflow-y: auto;
  background: var(--white);
}
.hub-search-dropdown li {
  padding: 10px 16px; cursor: pointer; font-size: 14px; color: var(--dark);
  transition: background .15s; border-bottom: 1px solid var(--border);
}
.hub-search-dropdown li:last-child { border-bottom: none; }
.hub-search-dropdown li:hover,
.hub-search-dropdown li.active { background: var(--mint-bg); }
.hub-search-dropdown .dd-alias { font-size: 12px; color: var(--muted); margin-left: 6px; }

/* Рекомендации в поиске */
.hub-search-recs { }
.hub-search-recs-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.hub-search-recs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hub-search-rec-btn {
  display: flex; align-items: center; padding: 13px 18px;
  background: #f8f9fb; border: 1px solid rgba(26,37,53,.09); border-radius: 14px;
  font-size: 15px; font-weight: 500; color: #1a2535; text-decoration: none;
  transition: background .15s, border-color .15s; font-family: var(--ff-body);
}
.hub-search-rec-btn:hover { background: #eef1f6; border-color: rgba(26,37,53,.18); text-decoration: none; color: #1a2535; }
.hub-rec-emoji { margin-right: 8px; font-style: normal; line-height: 1; }


/* ════════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .mg-top { grid-template-columns: 1fr; }
  .mg-stat { display: flex; align-items: center; gap: 16px; text-align: left; }
  .mg-stat-num { font-size: 40px; }
  .mg-grid { grid-template-columns: repeat(2, 1fr); }
  .mg-last-row { grid-column: span 2; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .hub-card-name { font-size: 1rem !important; }
  .hub-card-name-wrap { height: calc(1rem * 1.3 * 2); }
  .hub-search-open-btn  { width: 44vw !important; padding: 10px 12px !important; }
  .hub-filter-toggle-btn { width: 44vw !important; padding: 10px 12px !important; }
  .hub-filter-reset-btn  { padding: 10px 11px; }
}
@media (max-width: 768px) {
  .hub-af-label { display: none !important; }
  .hub-active-filters { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .hub-active-filters::-webkit-scrollbar { display: none; }
  .hub-af-tag { flex-shrink: 0; }
}
@media (max-width: 600px) {
  .hub-modal-overlay, .hub-search-modal { align-items: stretch; padding: 0; }
  .hub-modal, .hub-search-modal-dialog { border-radius: 0 !important; max-height: 100dvh; height: 100%; max-width: 100%; }
}
@media (max-width: 580px) {
  .seo-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .mg-grid { grid-template-columns: repeat(2, 1fr); }
  .mg-last-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hub-search-row { flex-direction: column; }
  .hub-search-row .hub-filter-toggle-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   БЛОК: «Что внутри каталога» — 6 плашек 2×3
   ═══════════════════════════════════════════════════ */
.catalog-inside-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.catalog-inside-plate {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.catalog-inside-plate:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--rose-soft);
}
.catalog-inside-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.catalog-inside-plate:nth-child(1) .catalog-inside-icon { background: var(--rose-bg); }
.catalog-inside-plate:nth-child(2) .catalog-inside-icon { background: var(--mint-bg); }
.catalog-inside-plate:nth-child(3) .catalog-inside-icon { background: var(--sky-bg); }
.catalog-inside-plate:nth-child(4) .catalog-inside-icon { background: var(--peach-bg); }
.catalog-inside-plate:nth-child(5) .catalog-inside-icon { background: var(--warn-bg); }
.catalog-inside-plate:nth-child(6) .catalog-inside-icon { background: #F5F0FA; }
 
.catalog-inside-body { flex: 1; min-width: 0; }
.catalog-inside-title {
  font-family: var(--ff-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.catalog-inside-text {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}
 
@media (max-width: 900px) {
  .catalog-inside-grid { grid-template-columns: 1fr; gap: 10px; }
}