/* mmcmed.ru catalog redesign — base styles
   ─────────────────────────────────────────────
   Locked tokens:
   - Brand blue   #1667D9
   - Sale orange  #EA580C
   - Font Raleway (already on Impreza theme; we link a Google import as fallback)
*/

/* cyrillic-ext */

/* @font-face блоки удалены — Raleway уже подключён родительской темой Impreza. */

.mmc-root {
  --mmc-brand: #1667D9;
  --mmc-brand-700: #1052B8;
  --mmc-brand-800: #0B408F;
  --mmc-brand-50: #E8F1FD;
  --mmc-brand-100: #D2E2FB;
  --mmc-sale: #EA580C;
  --mmc-sale-50: #FFF1E6;

  --mmc-ink: #0F1A2C;          /* main text */
  --mmc-ink-2: #2C3A53;        /* secondary */
  --mmc-ink-3: #5A6679;        /* meta */
  --mmc-ink-4: #8A93A4;        /* hint */
  --mmc-line: #E3E7EE;
  --mmc-line-2: #EEF1F6;
  --mmc-bg: #F6F7FA;
  --mmc-card: #FFFFFF;
  --mmc-success: #15803D;

  --mmc-r-sm: 8px;
  --mmc-r-md: 10px;
  --mmc-r-lg: 14px;
  --mmc-r-xl: 18px;

  --mmc-sh-1: 0 1px 2px rgba(15,26,44,.04), 0 2px 6px rgba(15,26,44,.04);
  --mmc-sh-2: 0 4px 14px rgba(15,26,44,.07), 0 2px 6px rgba(15,26,44,.04);
  --mmc-sh-3: 0 14px 30px rgba(15,26,44,.10), 0 4px 10px rgba(15,26,44,.05);
  --mmc-sh-brand: 0 10px 24px rgba(22,103,217,.18), 0 2px 8px rgba(22,103,217,.10);

  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  color: var(--mmc-ink);
  background: var(--mmc-bg);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.mmc-root *, .mmc-root *::before, .mmc-root *::after { box-sizing: border-box; }
.mmc-root button { font-family: inherit; }
.mmc-root a { color: inherit; text-decoration: none; }

/* ───────────────────────── PAGE SHELL ──────────────────────── */

.mmc-page { width: 100%; background: var(--mmc-bg); position: relative; overflow: hidden; }

/* Site header — out of design scope, just visual reference */
.mmc-siteheader {
  background: #fff;
  border-bottom: 1px solid var(--mmc-line);
  padding: 14px 32px;
  display: flex; align-items: center; gap: 28px;
  position: relative;
  z-index: 5;
}
.mmc-siteheader__logo {
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  color: var(--mmc-brand); display: flex; align-items: center; gap: 8px;
}
.mmc-siteheader__logo i {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--mmc-brand);
  color: #fff; display: grid; place-items: center; font-style: normal;
  font-size: 14px; font-weight: 800;
}
.mmc-siteheader__nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; color: var(--mmc-ink-2); }
.mmc-siteheader__nav a:hover { color: var(--mmc-brand); }
.mmc-siteheader__nav a.active { color: var(--mmc-brand); }
.mmc-siteheader__right { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--mmc-ink-2); }
.mmc-siteheader__phone { font-weight: 600; color: var(--mmc-ink); }
.mmc-siteheader__cart {
  display: flex; align-items: center; gap: 6px;
  background: var(--mmc-brand-50); color: var(--mmc-brand);
  padding: 6px 12px; border-radius: 999px; font-weight: 600;
}

/* Mobile site header */
.mmc-siteheader--mobile { padding: 12px 16px; }
.mmc-siteheader--mobile .mmc-siteheader__nav,
.mmc-siteheader--mobile .mmc-siteheader__phone { display: none; }
.mmc-siteheader--mobile .mmc-burger {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--mmc-bg); display: grid; place-items: center;
  margin-left: auto;
}

/* Breadcrumb */
.mmc-breadcrumb {
  padding: 16px 32px 0;
  font-size: 13px; color: var(--mmc-ink-4);
  display: flex; gap: 6px; align-items: center;
}
.mmc-breadcrumb a:hover { color: var(--mmc-brand); }
.mmc-breadcrumb span.sep { opacity: .6; }
.mmc-breadcrumb span.current { color: var(--mmc-ink-2); }

/* Page header */
.mmc-pagehead { padding: 18px 32px 22px; max-width: 1200px; }
.mmc-pagehead h1 {
  font-size: 36px; line-height: 1.12; font-weight: 800;
  letter-spacing: -0.02em; margin: 0 0 10px;
  text-wrap: balance;
}
.mmc-pagehead p {
  margin: 0; font-size: 16px; color: var(--mmc-ink-3); max-width: 720px;
  line-height: 1.5;
}
.mmc-pagehead__stats {
  display: flex; gap: 22px; margin-top: 16px; flex-wrap: wrap;
}
.mmc-pagehead__stat {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mmc-ink-2);
}
.mmc-pagehead__stat b { color: var(--mmc-ink); font-weight: 700; }
.mmc-pagehead__stat svg { color: var(--mmc-brand); }

/* mobile sizes */
.mmc-page--mobile .mmc-breadcrumb { padding: 12px 16px 0; font-size: 12px; }
.mmc-page--mobile .mmc-pagehead { padding: 12px 16px 16px; }
.mmc-page--mobile .mmc-pagehead h1 { font-size: 24px; }
.mmc-page--mobile .mmc-pagehead p { font-size: 14px; }


/* ─────────────────────────── FILTER ──────────────────────────── */

.mmcmed-courses-filter {
  background: #fff;
  border-top: 1px solid var(--mmc-line);
  border-bottom: 1px solid var(--mmc-line);
  padding: 16px 32px;
  position: sticky; top: 0;
  z-index: 4;
  box-shadow: var(--mmc-sh-1);
}
.mmcmed-courses-filter__form {
  display: grid;
  gap: 12px;
  align-items: end;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}
.mmcmed-courses-filter[data-mode="archive"] .mmcmed-courses-filter__form {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto;
}
.mmcmed-courses-filter__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.mmcmed-courses-filter__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--mmc-ink-3);
}
.mmcmed-courses-filter__select,
.mmc-input {
  appearance: none; -webkit-appearance: none;
  height: 44px; border-radius: var(--mmc-r-md);
  border: 1.5px solid var(--mmc-line);
  background: #fff; padding: 0 38px 0 14px;
  font: 500 14px/1 'Raleway', sans-serif;
  color: var(--mmc-ink);
  width: 100%;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5l5 5 5-5' stroke='%235A6679' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.mmc-input { background-image: none; padding: 0 14px 0 40px; cursor: text; }
.mmcmed-courses-filter__select:hover,
.mmc-input:hover { border-color: #B8C1D1; }
.mmcmed-courses-filter__select:focus,
.mmc-input:focus { outline: none; border-color: var(--mmc-brand); box-shadow: 0 0 0 4px rgba(22,103,217,.10); }
.mmcmed-courses-filter__field--search { position: relative; }
.mmcmed-courses-filter__field--search svg.search-ic {
  position: absolute; left: 14px; bottom: 14px; color: var(--mmc-ink-4); pointer-events: none;
}
.mmcmed-courses-filter__field--search .mmc-input { padding-left: 40px; }
.mmcmed-courses-filter__field--search .mmc-input::placeholder { color: var(--mmc-ink-4); }

.mmc-reset {
  height: 44px; padding: 0 16px; border-radius: var(--mmc-r-md);
  border: 1.5px solid var(--mmc-line);
  background: #fff;
  font: 600 13px/1 'Raleway', sans-serif;
  color: var(--mmc-ink-3);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}
.mmc-reset:disabled { opacity: 0.5; cursor: not-allowed; }
.mmc-reset:not(:disabled):hover { border-color: var(--mmc-sale); color: var(--mmc-sale); }

/* Chips */
.mmc-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 32px 0;
  align-items: center;
}
.mmc-chips__label { font-size: 12px; color: var(--mmc-ink-4); margin-right: 4px; font-weight: 600; }
.mmc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 6px 0 12px;
  border-radius: 999px;
  background: var(--mmc-brand-50);
  color: var(--mmc-brand);
  font: 600 13px/1 'Raleway', sans-serif;
  border: 1px solid transparent;
}
.mmc-chip__x {
  width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(22,103,217,.16);
  cursor: pointer;
}
.mmc-chip__x:hover { background: var(--mmc-brand); color: #fff; }

.mmc-chip--reset {
  background: transparent; color: var(--mmc-ink-3);
  padding: 0 10px; border: 1.5px solid var(--mmc-line);
  cursor: pointer;
}
.mmc-chip--reset:hover { border-color: var(--mmc-sale); color: var(--mmc-sale); }

/* Sidebar filter variant (Desktop tweak) */
.mmc-layout { display: grid; gap: 28px; padding: 0 32px 32px; }
.mmc-layout--sidebar { grid-template-columns: 280px 1fr; padding-top: 24px; }
.mmc-layout--top { grid-template-columns: 1fr; }

.mmc-sidebar {
  position: sticky; top: 24px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--mmc-line);
  border-radius: var(--mmc-r-lg);
  padding: 22px 18px;
  box-shadow: var(--mmc-sh-1);
}
.mmc-sidebar__head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.mmc-sidebar__count {
  font-size: 11px; font-weight: 700; color: var(--mmc-brand);
  background: var(--mmc-brand-50);
  border-radius: 999px; padding: 3px 8px;
}
.mmc-sidebar .mmcmed-courses-filter__form {
  display: flex; flex-direction: column; gap: 16px; grid-template-columns: none;
}
.mmc-sidebar .mmc-reset { width: 100%; justify-content: center; }


/* ─────────────────────── RESULTS / TOOLBAR ─────────────────────── */

.mmc-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px 14px;
  gap: 16px; flex-wrap: wrap;
}
.mmc-layout--sidebar > .mmc-results { padding: 0; }
.mmc-results { padding: 0 32px 32px; }
.mmc-layout--sidebar .mmc-toolbar { padding: 0 0 14px; }

.mmc-found {
  font-size: 14px; color: var(--mmc-ink-2);
}
.mmc-found b { color: var(--mmc-ink); font-weight: 700; }

.mmcmed-courses-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(var(--mmc-cols, 3), minmax(0, 1fr));
}

/* mobile filter button */
.mmc-mobilefilter-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  padding: 10px 16px;
  border-bottom: 1px solid var(--mmc-line);
  display: flex; gap: 8px; align-items: center;
}
.mmc-mobilefilter-bar .mmc-input { height: 40px; flex: 1; padding-left: 36px; font-size: 13px; }
.mmc-mobilefilter-bar svg.search-ic { position: absolute; pointer-events: none; }
.mmc-mobilefilter-bar .mmc-msearch { position: relative; flex: 1; }
.mmc-mobilefilter-bar .mmc-msearch svg.search-ic { left: 10px; top: 50%; transform: translateY(-50%); color: var(--mmc-ink-4); }

.mmc-mfilter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-radius: var(--mmc-r-md);
  background: var(--mmc-brand);
  color: #fff;
  border: none; cursor: pointer;
  font: 700 13px/1 'Raleway', sans-serif;
  position: relative;
}
.mmc-mfilter-btn__count {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  color: #fff; font-size: 11px; font-weight: 700;
}


/* ─────────────────────────── CARD ──────────────────────────── */

.mmcmed-course-card {
  background: var(--mmc-card);
  border-radius: var(--mmc-r-lg);
  border: 1px solid var(--mmc-line);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mmcmed-course-card__image,
.mmcmed-course-card__image-link {
  display: block; position: relative; aspect-ratio: 16/9;
  background: var(--mmc-line-2);
  overflow: hidden;
}
.mmcmed-course-card__image-link img,
.mmcmed-course-card__image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Берём ВЕРХ изображения, а не центр — на картинках курсов лица людей
     обычно в верхней трети, при object-position: center они обрезаются.
     С position: center top голова остаётся видна. */
  object-position: center top;
  transition: transform .35s ease;
}
.mmcmed-course-card__body {
  display: flex; flex-direction: column; flex: 1;
  padding: 16px 16px 18px;
  gap: 12px;
}

/* badges */
.mmcmed-course-card__badge {
  position: absolute;
  top: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font: 700 11.5px/1 'Raleway', sans-serif;
  letter-spacing: 0.01em;
  z-index: 2;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.mmcmed-course-card__badge--popular {
  left: 12px;
  background: var(--mmc-brand);
  color: #fff;
  box-shadow: 0 4px 10px rgba(22,103,217,.30);
}
.mmcmed-course-card__badge--sale {
  right: 12px;
  background: var(--mmc-sale);
  color: #fff;
  box-shadow: 0 4px 10px rgba(234,88,12,.30);
}

/* Popular plashka — default (Tweak b) */
.mmcmed-course-card--popular[data-popularstyle="bar"]::before {
  content: 'ХИТ ПРОДАЖ';
  display: block;
  text-align: center;
  background: linear-gradient(90deg, var(--mmc-brand), #2E80E8);
  color: #fff;
  font: 800 11px/1 'Raleway', sans-serif;
  letter-spacing: 0.18em;
  padding: 8px 10px;
}
.mmcmed-course-card--popular[data-popularstyle="bar"] .mmcmed-course-card__badge--popular { display: none; }

/* Popular blue ring (Tweak a) */
.mmcmed-course-card--popular[data-popularstyle="ring"] {
  border-color: var(--mmc-brand);
  box-shadow: 0 0 0 1px var(--mmc-brand) inset;
}

/* Popular shadow only (Tweak c) */
.mmcmed-course-card--popular[data-popularstyle="shadow"] {
  box-shadow: var(--mmc-sh-3), 0 12px 24px -8px rgba(22,103,217,.22);
}

/* card title */
.mmcmed-course-card__title {
  font-size: 17px; line-height: 1.25; font-weight: 700;
  margin: 0;
  color: var(--mmc-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
  min-height: 2.5em;
}
.mmcmed-course-card__title a:hover { color: var(--mmc-brand); }

/* meta */
.mmcmed-course-card__meta {
  margin: 0; display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--mmc-ink-3);
}
.mmcmed-course-card__meta-row {
  display: flex; align-items: center; gap: 8px;
  margin: 0;
}
.mmcmed-course-card__meta-row svg { color: var(--mmc-brand); flex-shrink: 0; }
.mmcmed-course-card__meta-row dt { font: inherit; color: var(--mmc-ink-3); }
.mmcmed-course-card__meta-row dd { margin: 0; color: var(--mmc-ink-2); font-weight: 500; }

/* buy block */
.mmcmed-course-card__buy {
  display: flex; align-items: baseline; gap: 8px;
  padding-top: 4px;
  border-top: 1px dashed var(--mmc-line);
  padding-top: 14px;
  margin-top: auto;
}
.mmcmed-course-card__from { font-size: 12px; color: var(--mmc-ink-4); font-weight: 600; }
.mmcmed-course-card__price-current {
  font-size: 22px; font-weight: 800; color: var(--mmc-brand); letter-spacing: -0.01em;
}
.mmcmed-course-card__price-old {
  font-size: 14px; color: var(--mmc-ink-4); text-decoration: line-through; font-weight: 600;
}

/* actions */
.mmcmed-course-card__actions {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  margin-top: 2px;
}
.mmcmed-course-card__btn {
  height: 44px;
  border-radius: var(--mmc-r-md);
  font: 700 13px/1 'Raleway', sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s, transform .12s, box-shadow .14s;
  border: 1.5px solid var(--mmc-brand);
  background: var(--mmc-brand);
  color: #fff;
}
.mmcmed-course-card__btn--ghost,
a.mmcmed-course-card__btn--ghost {
  background: #fff;
  color: var(--mmc-brand);
}
.mmcmed-course-card__btn--cart {
  /* primary action — strongest weight */
  background: var(--mmc-brand);
  color: #fff;
  border-color: var(--mmc-brand);
  box-shadow: 0 4px 12px -2px rgba(22,103,217,.35);
  letter-spacing: 0.01em;
}
.mmcmed-course-card__btn--cart svg { color: #fff; }
.mmcmed-course-card__btn:hover { transform: translateY(-1px); }
.mmcmed-course-card__btn--ghost:hover { background: var(--mmc-brand-50); }
.mmcmed-course-card__btn--cart:hover { background: #0F4FAE; border-color: #0F4FAE; box-shadow: 0 6px 16px -2px rgba(22,103,217,.45); }

/* hover state on whole card */
.mmcmed-course-card.is-hover,
.mmcmed-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mmc-sh-3);
  border-color: #D6E3F7;
}
.mmcmed-course-card.is-hover .mmcmed-course-card__image-link img,
.mmcmed-course-card:hover .mmcmed-course-card__image-link img { transform: scale(1.04); }
.mmcmed-course-card.is-hover .mmcmed-course-card__title,
.mmcmed-course-card:hover .mmcmed-course-card__title { color: var(--mmc-brand); }
.mmcmed-course-card--popular[data-popularstyle="ring"].is-hover,
.mmcmed-course-card--popular[data-popularstyle="ring"]:hover {
  box-shadow: var(--mmc-sh-3), 0 0 0 1px var(--mmc-brand) inset, 0 14px 28px -10px rgba(22,103,217,.30);
}

/* mobile card adjustments */
.mmc-page--mobile .mmcmed-course-card__title { font-size: 16px; }
.mmc-page--mobile .mmcmed-course-card__actions { grid-template-columns: 1fr 1.4fr; }
.mmc-page--mobile .mmcmed-courses-grid { grid-template-columns: 1fr; gap: 14px; }


/* ─────────────────────── SEARCHABLE SELECT ─────────────────────── */

.mmc-ss { position: relative; }
.mmc-ss__trigger {
  display: flex; align-items: center;
  height: 44px; padding: 0 14px;
  border-radius: var(--mmc-r-md);
  border: 1.5px solid var(--mmc-line);
  background: #fff;
  font: 500 14px/1 'Raleway', sans-serif;
  color: var(--mmc-ink);
  cursor: pointer;
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 38px;
}
.mmc-ss__trigger::after {
  content: '';
  width: 12px; height: 8px;
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5l5 5 5-5' stroke='%235A6679' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center;
}
.mmc-ss__trigger:hover { border-color: #B8C1D1; }
.mmc-ss--open .mmc-ss__trigger { border-color: var(--mmc-brand); box-shadow: 0 0 0 4px rgba(22,103,217,.10); }
.mmc-ss__placeholder { color: var(--mmc-ink-4); }

.mmc-ss__dropdown {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: #fff;
  border-radius: var(--mmc-r-md);
  border: 1px solid var(--mmc-line);
  box-shadow: var(--mmc-sh-3);
  z-index: 20;
  max-height: 360px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mmc-ss__search {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid var(--mmc-line-2);
}
.mmc-ss__search input {
  width: 100%; height: 36px; border-radius: 8px;
  border: 1px solid var(--mmc-line);
  padding: 0 12px 0 34px;
  font: 500 13px/1 'Raleway', sans-serif;
  outline: none;
}
.mmc-ss__search input:focus { border-color: var(--mmc-brand); }
.mmc-ss__search svg {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  color: var(--mmc-ink-4);
}
.mmc-ss__list {
  list-style: none; margin: 0; padding: 6px;
  overflow-y: auto;
  flex: 1;
}
.mmc-ss__opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--mmc-ink-2);
  cursor: pointer;
}
.mmc-ss__opt:hover { background: var(--mmc-brand-50); color: var(--mmc-brand); }
.mmc-ss__opt--active {
  background: var(--mmc-brand-50);
  color: var(--mmc-brand);
  font-weight: 600;
}
.mmc-ss__opt b { font-weight: 700; color: var(--mmc-brand); background: rgba(22,103,217,.10); padding: 0 2px; border-radius: 3px; }
.mmc-ss__check {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--mmc-line);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mmc-ss__opt--active .mmc-ss__check {
  background: var(--mmc-brand); border-color: var(--mmc-brand); color: #fff;
}


/* ─────────────────────── MOBILE FILTER STACK ─────────────────────── */

.mmc-mfilter-stack {
  background: #fff;
  border-top: 1px solid var(--mmc-line);
  border-bottom: 1px solid var(--mmc-line);
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.mmc-mfilter-stack__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2px;
}
.mmc-mfilter-stack__title {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--mmc-ink-2);
}
.mmc-mfilter-stack__title svg { color: var(--mmc-brand); }
.mmc-mfilter-stack__found {
  font-size: 12px; color: var(--mmc-brand);
  background: var(--mmc-brand-50); padding: 3px 10px;
  border-radius: 999px; font-weight: 700;
}
.mmc-mfilter-stack__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer;
  color: var(--mmc-ink-3); font: 600 13px/1 'Raleway', sans-serif;
  padding: 6px 8px; border-radius: 6px;
}
.mmc-mfilter-stack__toggle svg { transition: transform .18s; }
.mmc-mfilter-stack__toggle.collapsed svg { transform: rotate(-90deg); }
.mmc-mfilter-stack__reset {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer;
  color: var(--mmc-sale); font: 700 12px/1 'Raleway', sans-serif;
  padding: 4px 0;
}

/* ─────────────────────── MOBILE BOTTOM SHEET ─────────────────────── */

.mmc-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,26,44,.55);
  z-index: 50;
  display: flex; align-items: flex-end;
}
.mmc-sheet {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 8px 18px 18px;
  max-height: 88%;
  display: flex; flex-direction: column;
  box-shadow: 0 -16px 40px rgba(0,0,0,.18);
}
.mmc-sheet__handle {
  width: 44px; height: 5px; border-radius: 999px;
  background: var(--mmc-line);
  margin: 6px auto 14px;
}
.mmc-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.mmc-sheet__title { font-weight: 800; font-size: 18px; }
.mmc-sheet__close {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--mmc-bg);
  border: none; display: grid; place-items: center; cursor: pointer;
}
.mmc-sheet__body {
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto; flex: 1; padding: 2px 0 14px;
}
.mmc-sheet__footer {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--mmc-line);
}
.mmc-sheet__footer button {
  height: 48px; border-radius: var(--mmc-r-md);
  font: 700 14px/1 'Raleway', sans-serif;
  border: 1.5px solid var(--mmc-brand);
  cursor: pointer;
}
.mmc-sheet__reset { background: #fff; color: var(--mmc-brand); }
.mmc-sheet__apply { background: var(--mmc-brand); color: #fff; }


/* ─────────────────────── HOURS MODAL ─────────────────────── */

.mmcmed-cart-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(15,26,44,.55);
  z-index: 60;
  display: grid; place-items: center;
  padding: 20px;
}
.mmcmed-cart-modal {
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 18px;
  padding: 26px 26px 22px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.30);
}
.mmcmed-cart-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--mmc-bg);
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
}
.mmcmed-cart-modal__close:hover { background: var(--mmc-line-2); }
.mmcmed-cart-modal__title {
  font-size: 19px; font-weight: 800; line-height: 1.2;
  padding-right: 40px; margin: 0 0 6px;
  text-wrap: balance;
}
.mmcmed-cart-modal__sub { font-size: 13px; color: var(--mmc-ink-3); margin: 0 0 18px; }

.mmcmed-cart-modal__chips {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 18px;
}
.mmc-hours-chip {
  height: 56px;
  border-radius: 12px;
  border: 1.5px solid var(--mmc-line);
  background: #fff;
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  font-family: 'Raleway', sans-serif;
  transition: all .15s ease;
}
.mmc-hours-chip b { font-size: 18px; font-weight: 800; color: var(--mmc-ink); }
.mmc-hours-chip span { font-size: 11px; color: var(--mmc-ink-4); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.mmc-hours-chip:hover { border-color: var(--mmc-brand); transform: translateY(-1px); }
.mmc-hours-chip--active {
  background: var(--mmc-brand); border-color: var(--mmc-brand);
}
.mmc-hours-chip--active b { color: #fff; }
.mmc-hours-chip--active span { color: rgba(255,255,255,.85); }

.mmcmed-cart-modal__price {
  background: var(--mmc-bg);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.mmcmed-cart-modal__price-left { display: flex; align-items: baseline; gap: 10px; }
.mmcmed-cart-modal__price-current {
  font-size: 28px; font-weight: 800; color: var(--mmc-brand);
  transition: opacity .2s;
}
.mmcmed-cart-modal__price-old {
  font-size: 14px; color: var(--mmc-ink-4); text-decoration: line-through; font-weight: 600;
}
.mmcmed-cart-modal__price-discount {
  background: var(--mmc-sale); color: #fff;
  padding: 5px 10px; border-radius: 999px;
  font: 700 13px/1 'Raleway', sans-serif;
}
.mmcmed-cart-modal__submit {
  width: 100%; height: 52px;
  border-radius: var(--mmc-r-md);
  background: var(--mmc-brand); color: #fff;
  font: 800 15px/1 'Raleway', sans-serif;
  border: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
}
.mmcmed-cart-modal__submit:hover { background: var(--mmc-brand-700); }
.mmcmed-cart-modal__footnote {
  text-align: center; font-size: 12px; color: var(--mmc-ink-4);
  margin: 10px 0 0;
}


/* ─────────────────────── EMPTY STATE ─────────────────────── */

.mmcmed-courses-empty {
  background: #fff;
  border: 1px dashed var(--mmc-line);
  border-radius: var(--mmc-r-lg);
  padding: 48px 30px;
  text-align: center;
  max-width: 520px;
  margin: 12px auto;
}
.mmcmed-courses-empty__illo {
  width: 96px; height: 96px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: var(--mmc-brand-50);
  color: var(--mmc-brand);
  display: grid; place-items: center;
}
.mmcmed-courses-empty h3 {
  font-size: 22px; font-weight: 800; margin: 0 0 8px;
}
.mmcmed-courses-empty p {
  font-size: 14px; color: var(--mmc-ink-3); margin: 0 0 20px;
}
.mmcmed-courses-empty__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mmcmed-courses-empty__btn-primary {
  height: 44px; padding: 0 22px;
  background: var(--mmc-brand); color: #fff; border: none;
  border-radius: var(--mmc-r-md);
  font: 700 14px/1 'Raleway', sans-serif;
  cursor: pointer;
}
.mmcmed-courses-empty__btn-link {
  height: 44px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--mmc-brand); font: 700 14px/1 'Raleway', sans-serif;
}


/* ─────────────────────── PAGINATION ─────────────────────── */

.mmc-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 14px 0 4px;
}
.mmc-pagination button,
.mmc-pagination a {
  min-width: 40px; height: 40px;
  border-radius: var(--mmc-r-md);
  border: 1.5px solid var(--mmc-line);
  background: #fff;
  font: 700 14px/1 'Raleway', sans-serif;
  color: var(--mmc-ink-2);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
}
.mmc-pagination .active {
  background: var(--mmc-brand); color: #fff; border-color: var(--mmc-brand);
}
.mmc-pagination button:hover:not(:disabled):not(.active) { border-color: var(--mmc-brand); color: var(--mmc-brand); }
.mmc-pagination .gap { border: none; background: transparent; color: var(--mmc-ink-4); }


/* ─────────────────────── PROMO STRIP IN HEAD ─────────────────────── */

.mmc-hero-strip {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 8px 32px 0;
  align-items: center;
}
.mmc-hero-strip__pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff;
  border: 1px solid var(--mmc-line);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; color: var(--mmc-ink-2); font-weight: 600;
}
.mmc-hero-strip__pill svg { color: var(--mmc-brand); }


/* ─────────────────────── SECTION HEADS in canvas ─────────────────────── */

.mmc-canvas-note {
  background: #FFFBEB; border: 1px solid #FCE7A2;
  color: #614408; font: 500 12px/1.45 'Raleway', sans-serif;
  padding: 10px 14px; border-radius: 10px;
  max-width: 560px;
}


/* ---------- next style block ---------- */


    html, body { margin:0; padding:0; background:#f0eee9; font-family:'Raleway',system-ui,sans-serif; height:100%; }
    #app { height:100vh; }
    /* artboard background lighter */
    .mmc-page { background:#F6F7FA; }

/* ════════════════════════════════════════════════════════════════════ */
/* OVERRIDES — гарантированно перебивают courses-filter.css (Impreza).   */
/* Двойной scope: body.mmcmed-filter-active (есть на 3 целевых страницах)*/
/* + .mmc-page--catalog. Плюс !important на критичных свойствах потому   */
/* что шорткод может вызывать wp_enqueue_style в footer и менять каскад. */
/* ════════════════════════════════════════════════════════════════════ */

/* Контейнер фильтра — снять Impreza-margin/border-radius/etc. */
body.mmcmed-filter-active .mmc-page--catalog .mmcmed-courses-filter,
body.mmcmed-filter-active .mmcmed-courses-filter {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* Форма — точная сетка 4 поля + кнопка auto в одну строку (макет JSX). */
body.mmcmed-filter-active .mmcmed-courses-filter__form {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto !important;
  gap: 12px !important;
  align-items: end !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

/* Archive-режим: 2 select'а + поиск + кнопка. */
body.mmcmed-filter-active .mmcmed-courses-filter[data-mode="simple-pk"] .mmcmed-courses-filter__form,
body.mmcmed-filter-active .mmcmed-courses-filter[data-mode="simple-pp"] .mmcmed-courses-filter__form {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto !important;
}

/* Поля — снять старые font-size/padding которые мешают новому стилю. */
body.mmcmed-filter-active .mmcmed-courses-filter__select,
body.mmcmed-filter-active .mmcmed-courses-filter__input,
body.mmcmed-filter-active .mmc-input {
  height: 44px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

/* Адаптив: tablet ≤ 900px — 2 колонки, кнопка во всю ширину снизу. */
@media (max-width: 900px) {
  body.mmcmed-filter-active .mmcmed-courses-filter__form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.mmcmed-filter-active .mmcmed-courses-filter__form .mmc-reset {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

/* Mobile ≤ 600px: 1 колонка (handoff Изольды — раскрытый стек). */
@media (max-width: 600px) {
  body.mmcmed-filter-active .mmcmed-courses-filter__form {
    grid-template-columns: 1fr !important;
  }
  body.mmcmed-filter-active .mmcmed-courses-filter__form .mmc-reset {
    grid-column: 1;
    justify-self: stretch;
  }
}

  