/* =====================================================================
   СТИЛИ КАТАЛОГА catalog.zdravex.com
   Поверх https://zdravex.com/css/bootstrap.min.css и style.css.
   Цвета и элементы — как на странице Велакаста.
   ===================================================================== */

.is-hidden{ display:none !important; }

/* ---------- Хлебные крошки ---------- */
.cat-crumbs{ font-size:.92rem; color:#8a97a3; }
.cat-crumbs a{ color:#1a8fc1; }
.cat-crumbs span[aria-hidden]{ margin:0 6px; color:#c3ccd4; }

/* ---------- Заголовок, поиск, категории ---------- */
.cat-section{ padding-top:36px; }
.cat-hero{ margin-bottom:6px; }
.cat-hero__title{ margin:0 0 8px; font-size:2rem; font-weight:700; color:#22333f; line-height:1.2; }
.cat-hero__lead{ margin:0 0 18px; max-width:760px; color:#4a5a66; font-size:1.02rem; line-height:1.55; }

.cat-search{ display:flex; align-items:center; max-width:520px; border:1px solid #e3e8ee; border-radius:8px; background:#fff; overflow:hidden; scroll-margin-top:16px; }
.cat-search:focus-within{ border-color:#1a8fc1; box-shadow:0 0 0 3px rgba(26,143,193,.12); }
.cat-search__icon{ padding:0 4px 0 14px; color:#8a97a3; font-size:1.05rem; }
.cat-search input{ flex:1; min-width:0; border:0; padding:12px 10px; font-size:1rem; color:#22333f; outline:none; background:transparent; }
.cat-search button{ align-self:stretch; border:0; background:#1a8fc1; color:#fff; padding:0 20px; font-size:.98rem; font-weight:600; cursor:pointer; transition:background .2s ease; }
.cat-search button:hover{ background:#157aa6; }

.cat-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.cat-chip{ display:inline-flex; text-decoration:none; align-items:center; gap:6px; padding:7px 14px; border:1px solid #e3e8ee; border-radius:20px; background:#fff; color:#22333f; font-size:.93rem; font-weight:600; line-height:1.2; transition:border-color .2s ease, color .2s ease; }
.cat-chip small{ color:#8a97a3; font-weight:600; font-size:.8rem; }
.cat-chip:hover,.cat-chip:focus{ border-color:#c3d3e0; color:#1a8fc1; text-decoration:none; }
.cat-chip.is-active{ background:#1a8fc1; border-color:#1a8fc1; color:#fff; }
.cat-chip.is-active small{ color:rgba(255,255,255,.8); }

.cat-found{ margin:22px 0 0; color:#4a5a66; }
.cat-found a{ margin-left:8px; color:#1a8fc1; font-weight:600; }

/* ---------- Группы и сетка ---------- */
.cat-group{ margin-top:34px; }
.cat-group__title{ margin:0 0 16px; padding-bottom:10px; border-bottom:1px solid #eef2f6; font-size:1.32rem; font-weight:700; color:#22333f; line-height:1.25; }
.cat-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(255px, 1fr)); gap:18px; }

/* ---------- Карточка ---------- */
.cat-card{ display:flex; flex-direction:column; border:1px solid #e3e8ee; border-radius:10px; background:#fff; overflow:hidden; transition:border-color .2s ease, box-shadow .2s ease; }
.cat-card:hover{ border-color:#c3d3e0; box-shadow:0 4px 16px rgba(0,0,0,.06); }

.cat-card__img{ position:relative; display:flex; align-items:center; justify-content:center; aspect-ratio:1/1; border-bottom:1px solid #eef2f6; background:#fff; }
.cat-card__img img{ width:100%; height:100%; object-fit:contain; padding:16px; }
.cat-card__noimg{ font-size:3.6rem; color:#d3dde6; }
.cat-card--out .cat-card__img img{ opacity:.55; filter:grayscale(.6); }

.cat-badge{ position:absolute; top:10px; left:10px; display:inline-block; border-radius:14px; padding:3px 11px; font-size:.8rem; font-weight:700; line-height:1.5; white-space:nowrap; }
.cat-badge--in { background:#e8f5e9; color:#2e7d32; }
.cat-badge--req{ background:#fff4e5; color:#9a5b00; }
.cat-badge--out{ background:#f0f3f6; color:#6b7a86; }

.cat-card__body{ flex:1; display:flex; flex-direction:column; padding:16px 16px 18px; }
.cat-card__name{ margin:0 0 4px; font-size:1.15rem; font-weight:700; color:#22333f; line-height:1.25; }
.cat-card__inn{ margin:0 0 10px; color:#1a8fc1; font-weight:600; font-size:.93rem; line-height:1.35; }

.cat-card__props{ list-style:none; margin:0 0 10px; padding:0; }
.cat-card__props li{ padding:5px 0; border-top:1px solid #f0f3f6; color:#22333f; font-size:.9rem; line-height:1.4; }
.cat-card__props li:first-child{ border-top:0; }
.cat-card__props span{ display:block; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#8a97a3; }

.cat-card__text{ margin:0 0 14px; color:#4a5a66; font-size:.92rem; line-height:1.5; }

.cat-card__btn{ display:block; text-decoration:none; margin-top:auto; padding:11px 14px; border-radius:6px; background:#e8f4fb; color:#1a8fc1; text-align:center; font-size:.95rem; font-weight:600; line-height:1.25; transition:background .2s ease; }
.cat-card__btn:hover,.cat-card__btn:focus{ background:#daedf8; color:#1a8fc1; text-decoration:none; }
.cat-card__btn:focus-visible{ outline:2px solid #1a8fc1; outline-offset:2px; }

/* Мобильный и планшет: картинка сверху по центру, умеренного размера.
   Привязано к .cat-grid, чтобы не трогать предпросмотр в админке. */
@media (max-width:767px){
  .cat-hero__title{ font-size:1.55rem; }
  .cat-grid{ grid-template-columns:1fr; gap:14px; }
  .cat-grid .cat-card{ display:flex; flex-direction:column; }
  .cat-grid .cat-card__img{
    aspect-ratio:auto; min-height:0;
    flex-direction:column; justify-content:center; align-items:center; gap:8px;
    padding:14px 12px 12px; border-right:0; border-bottom:1px solid #eef2f6;
  }
  .cat-grid .cat-card__img img{
    display:block; width:170px !important; height:170px !important; max-width:100%; max-height:170px;
    object-fit:contain; padding:0; margin:0 auto;
  }
  .cat-grid .cat-card__noimg{ font-size:3rem; line-height:120px; }
  .cat-grid .cat-badge{ position:static; order:2; }
  .cat-grid .cat-card__body{ padding:14px 14px 16px; text-align:center; }
  .cat-grid .cat-card__props li{ text-align:center; }
  .cat-grid .cat-card__name{ font-size:1.1rem; }
}

/* ---------- Пусто ---------- */
.cat-empty{ margin-top:26px; padding:36px 20px; border:1px dashed #d3dde6; border-radius:10px; text-align:center; color:#4a5a66; }
.cat-empty > i{ display:block; margin-bottom:8px; font-size:2.6rem; color:#c3d3e0; }
.cat-empty p{ margin:0 0 14px; }
.cat-empty__btn{ display:inline-block; margin-bottom:14px; padding:11px 20px; border-radius:6px; background:#2e7d32; color:#fff; font-weight:600; }
.cat-empty__btn:hover,.cat-empty__btn:focus{ background:#276b2a; color:#fff; text-decoration:none; }

/* ---------- Дисклеймер ---------- */
.medical-disclaimer{ margin:34px 0 0; padding:14px 16px; border-radius:8px; background:#f7f9fb; color:#6b7a86; font-size:.87rem; line-height:1.55; }
.footer-legal{ font-size:.82rem; margin-top:10px; opacity:.7; }

/* ---------- Кнопка звонка ---------- */
.call-fab{
  position:fixed; right:18px; bottom:24px; z-index:1040;
  display:inline-flex; align-items:center; gap:9px;
  padding:14px 22px; border-radius:32px;
  background:#e53935; color:#fff;
  font-size:1rem; font-weight:700; line-height:1; white-space:nowrap;
  box-shadow:0 6px 18px rgba(229,57,53,.45);
  transition:transform .2s ease, background .2s ease;
}
.call-fab:hover,.call-fab:focus{ background:#c62828; color:#fff; transform:translateY(-2px); text-decoration:none; }
.call-fab svg{ width:19px; height:19px; fill:currentColor; flex:0 0 19px; }
.call-fab::before{
  content:''; position:absolute; inset:0; border-radius:32px;
  background:rgba(229,57,53,.45); animation:callPulse 2.2s infinite; z-index:-1;
}
@keyframes callPulse{
  0%{ transform:scale(1); opacity:.6 }
  70%{ transform:scale(1.12); opacity:0 }
  100%{ opacity:0 }
}
@media (max-width:575px){
  .call-fab{ right:14px; bottom:16px; padding:12px 18px; font-size:.94rem; }
}
@media (prefers-reduced-motion:reduce){ .call-fab::before{ animation:none; } }

/* ---------- Мобильное меню (своё, без main.js) ---------- */
.site-logo .logo-phone{ color:inherit; font-size:.9rem; white-space:nowrap; }
.mm-toggle{ display:inline-flex; align-items:center; gap:6px; height:44px; min-width:44px; padding:0 12px; margin-left:12px; border:1px solid #e3e8ee; border-radius:8px; background:#fff; color:#22333f; font-size:.95rem; font-weight:600; line-height:1; cursor:pointer; vertical-align:middle; }
.mm-toggle i{ font-size:1.5rem; line-height:1; }
.mm-toggle:focus-visible{ outline:2px solid #1a8fc1; outline-offset:2px; }
@media (min-width:992px){ .mm-toggle{ display:none; } }

.mm-overlay{ position:fixed; inset:0; z-index:2000; background:rgba(15,25,35,.5); opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s; }
.mm-panel{ position:fixed; top:0; right:0; bottom:0; z-index:2001; width:88%; max-width:380px; display:flex; flex-direction:column; background:#fff; box-shadow:-8px 0 30px rgba(0,0,0,.15); transform:translateX(100%); visibility:hidden; transition:transform .28s ease, visibility .28s; }
html.mm-open .mm-overlay{ opacity:1; visibility:visible; }
html.mm-open .mm-panel{ transform:none; visibility:visible; }
html.mm-open, html.mm-open body{ overflow:hidden; }

.mm-panel, .mm-panel *{ box-sizing:border-box; }
.mm-panel a{ text-decoration:none; }
.mm-head{ display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:1px solid #eef2f6; }
.mm-brand{ font-weight:700; font-size:1.15rem; color:#22333f; }
.mm-close{ width:44px; height:44px; border:0; border-radius:8px; background:#f3f6f9; color:#22333f; font-size:1.7rem; line-height:1; cursor:pointer; }
.mm-close:focus-visible{ outline:2px solid #1a8fc1; outline-offset:2px; }
.mm-body{ flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; padding:16px; }

.mm-cta{ display:block; padding:15px 12px; border-radius:8px; background:#2e7d32; color:#fff; text-align:center; font-size:1.05rem; font-weight:700; line-height:1.2; }
.mm-cta:hover,.mm-cta:focus{ background:#276b2a; color:#fff; text-decoration:none; }
.mm-contacts{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px; }
.mm-contact{ display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 4px; border:1px solid #e3e8ee; border-radius:8px; color:#22333f; font-size:.84rem; font-weight:600; text-align:center; line-height:1.2; }
.mm-contact:hover,.mm-contact:focus{ border-color:#c3d3e0; color:#22333f; text-decoration:none; }
.mm-contact i{ font-size:1.35rem; line-height:1; }
.mm-contact--call i{ color:#e53935; }
.mm-contact--wa i{ color:#25d366; }
.mm-contact--tg i{ color:#229ed9; }
.mm-hours{ margin:8px 0 0; color:#8a97a3; font-size:.84rem; text-align:center; }

.mm-group{ margin-top:22px; }
.mm-group__title{ margin:0 0 2px; font-size:.75rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#8a97a3; }
.mm-list{ list-style:none; margin:0; padding:0; }
.mm-list a{ display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:46px; padding:10px 2px; border-bottom:1px solid #f0f3f6; color:#22333f; font-size:1rem; line-height:1.3; }
.mm-list a::after{ content:'\203A'; color:#b6c2cc; font-size:1.35rem; line-height:1; }
.mm-list a:hover,.mm-list a:focus{ color:#1a8fc1; text-decoration:none; }
.mm-list a.is-current{ color:#1a8fc1; font-weight:600; }
.mm-list a.is-current::after{ content:'сейчас'; font-size:.75rem; font-weight:600; color:#8a97a3; }
.mm-list a.mm-catalog{ color:#1a8fc1; font-weight:700; }

.mm-foot{ padding:12px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid #eef2f6; background:#fafcfd; color:#6b7a86; font-size:.84rem; line-height:1.4; text-align:center; }

@media (prefers-reduced-motion:reduce){ .mm-overlay,.mm-panel{ transition:none; } }
