/* === ANTS HEALTH — Catalog (guest) === */

/* Guest sidebar override: keep header + footer only, no nav items */
.layout .sidebar.guest .nav-section,
.layout .sidebar.guest .sidebar-nav-back { display: none; }
.layout .sidebar.guest .sidebar-bottom-cta {
  margin: auto 16px 16px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
}
.layout .sidebar.guest .sidebar-bottom-cta h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
}
.layout .sidebar.guest .sidebar-bottom-cta p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.layout .sidebar.guest .sidebar-bottom-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  padding: 9px 14px;
  background: #fff;
  color: #14543f;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: transform .12s, background .15s;
}
.layout .sidebar.guest .sidebar-bottom-cta .btn-cta:hover { background: #f0f7f4; }
.layout .sidebar.guest .sidebar-bottom-cta .btn-cta:active { transform: scale(0.97); }
.layout .sidebar.guest .sidebar-bottom-cta .btn-cta svg { width: 14px; height: 14px; }

/* Topbar — guest variant */
.topbar-guest { padding: 14px 28px; }
.topbar-guest .topbar-actions {
  gap: 10px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.topbar-guest .topbar-spacer { width: 160px; flex-shrink: 0; }

/* Compact guest sidebar (208px) */
.layout .sidebar.guest { padding: 26px 18px 22px !important; }
.layout .sidebar.guest .sidebar-top { padding: 0 0 22px !important; }
.layout .sidebar.guest .sidebar-top .logo { width: 72px !important; height: 80px !important; margin: 0 auto 10px !important; }
.layout .sidebar.guest .sidebar-top .brand-name { font-size: 15.5px !important; letter-spacing: 0.09em !important; }
.layout .sidebar.guest .sidebar-top .brand-sub { font-size: 11.5px !important; letter-spacing: 0.04em !important; line-height: 1.4 !important; }
.layout .sidebar.guest .sidebar-bottom-cta {
  padding: 16px 14px !important;
  border-radius: 12px !important;
  margin: 0 -10px !important;
}
.layout .sidebar.guest .sidebar-bottom-cta h4 {
  font-size: 13.5px !important;
  margin: 0 0 6px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
.layout .sidebar.guest .sidebar-bottom-cta p {
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin: 0 0 12px !important;
  word-spacing: 0.5px !important;
}
.layout .sidebar.guest .sidebar-bottom-cta .btn-cta {
  font-size: 12.5px !important;
  padding: 10px 12px !important;
  white-space: nowrap !important;
}
.layout .sidebar.guest .sidebar-bottom-cta .btn-cta svg { width: 13px !important; height: 13px !important; }

/* ===== Student sidebar ===== */
.layout .sidebar.student { padding: 26px 0 22px !important; }
.layout .sidebar.student .sidebar-top {
  padding: 0 14px 20px !important;
  text-align: center;
}
/* R4-4: подпись прижата к эмблеме (текстового .brand-name больше нет). */
.layout .sidebar.student .sidebar-top .logo { width: auto !important; height: auto !important; margin: 0 auto 2px !important; }
.layout .sidebar.student .sidebar-top .logo-img { width: 96px !important; }
.layout .sidebar.student .sidebar-top .brand-name { font-size: 14.5px !important; letter-spacing: 0.09em !important; }
.layout .sidebar.student .sidebar-top .brand-sub { font-size: 11px !important; line-height: 1.4 !important; margin-top: -2px !important; }
.layout .sidebar.student .sidebar-nav {
  padding: 16px 10px !important;
  gap: 4px !important;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.layout .sidebar.student .sidebar-nav-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 0 12px 10px;
  font-weight: 600;
}
.layout .sidebar.student .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  line-height: 1.3;
  transition: all 0.15s;
}
.layout .sidebar.student .nav-item:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  text-decoration: none;
  transform: translateX(2px);
}
.layout .sidebar.student .nav-item.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}
.layout .sidebar.student .nav-item .nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.85);
}
.layout .sidebar.student .nav-item.active .nav-icon { color: #fff; }
.layout .sidebar.student .nav-item > span:not(.nav-badge):not(.nav-icon) {
  flex: 1;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.layout .sidebar.student .nav-badge {
  min-width: 22px;
  height: 19px;
  padding: 0 7px;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.95);
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.layout .sidebar.student .nav-item.active .nav-badge {
  background: var(--accent, #d4a657);
  color: #3a2a0f;
}
.layout .sidebar.student .nav-badge.nav-badge-dot {
  background: #d4a657;
  color: #3a2a0f;
  box-shadow: 0 0 0 3px rgba(212, 166, 87, 0.18);
}

/* ===== Student topbar ===== */
.topbar-student {
  padding: 14px 28px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-student .topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #14543f;
  margin: 0;
  letter-spacing: -0.01em;
}
.topbar-student .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-iconbtn {
  width: 38px; height: 38px;
  border: 1px solid #e3e6df;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a5650;
  position: relative;
  transition: all 0.15s;
}
.topbar-iconbtn:hover {
  border-color: #c8d4cc;
  color: #14543f;
  background: #f7faf6;
}
.topbar-iconbtn svg { width: 18px; height: 18px; }
.topbar-iconbtn .bell-dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d4a657;
  border: 2px solid #fff;
}
.topbar-divider {
  width: 1px;
  height: 26px;
  background: #e3e6df;
  margin: 0 4px;
}
.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border: 1px solid #e3e6df;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: all 0.15s;
}
.topbar-user:hover {
  border-color: #c8d4cc;
  background: #f7faf6;
}
.topbar-user .user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f6b52, #2e8a6b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(20, 84, 63, 0.25);
}
.topbar-user .user-avatar svg { width: 18px; height: 18px; }
.topbar-user .user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}
.topbar-user .user-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a2520;
}
.topbar-user .user-role {
  font-size: 11px;
  color: #7a8278;
  margin-top: 1px;
}
.topbar-user .user-chevron {
  width: 14px; height: 14px;
  color: #9aa49d;
  margin-left: 2px;
}
.topbar-guest .topbar-link {
  font-size: 13.5px;
  color: #4a5650 !important;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.15s;
}
.topbar-guest .topbar-link:hover { background: #f3efe6; color: #14543f !important; }

/* Compact main padding */
.catalog-page { padding: 18px 28px 28px !important; gap: 14px !important; }
.catalog-hero { padding: 22px 28px !important; gap: 22px !important; }
.catalog-hero-left h1 { font-size: 30px !important; margin-bottom: 10px !important; }
.catalog-hero-left p { font-size: 14px !important; margin-bottom: 14px !important; }
.catalog-hero-eyebrow { margin-bottom: 12px !important; padding: 5px 11px !important; font-size: 11px !important; }
.catalog-stat { padding: 10px 12px !important; }
.catalog-stat .stat-num { font-size: 21px !important; }
.hero-illustration { padding: 16px !important; }
.hero-illustration .ill-row { padding: 8px 0 !important; }
.hero-illustration .ill-icon { width: 32px !important; height: 32px !important; }
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(180deg, #2e8a6b 0%, #1f6b52 100%);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid #14543f;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 2px rgba(20, 84, 63, 0.18);
  transition: transform .12s, background .15s;
}
.btn-login:hover { background: linear-gradient(180deg, #1f6b52 0%, #14543f 100%); }
.btn-login:active { transform: scale(0.97); }
.btn-login svg { width: 14px; height: 14px; }

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #fff;
  color: #14543f;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid #c5d9cb;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, background .15s;
}
.btn-register:hover { background: #f3f8f4; border-color: #1f6b52; }
.btn-register:active { transform: scale(0.97); }
.btn-register svg { width: 14px; height: 14px; }

/* === Catalog page === */
.catalog-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 36px 40px;
}

/* Hero / intro */
.catalog-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px 36px;
  background: linear-gradient(135deg, #fafaf3 0%, #f5f0df 60%, #f0e9c8 100%);
  border: 1px solid #e8dfb8;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.catalog-hero::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(31, 107, 82, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.catalog-hero-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 600;
  color: #14543f;
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.catalog-hero-left p {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5650;
  margin: 0 0 20px;
  max-width: 540px;
}
.catalog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(31, 107, 82, 0.10);
  border: 1px solid rgba(31, 107, 82, 0.18);
  color: #14543f;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.catalog-hero-eyebrow svg { width: 13px; height: 13px; }

.catalog-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.catalog-stat {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(31, 107, 82, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
}
.catalog-stat .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: #14543f;
  line-height: 1;
}
.catalog-stat .stat-label {
  display: block;
  font-size: 11px;
  color: #5a6a60;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.catalog-hero-right {
  position: relative;
  z-index: 1;
}
.hero-illustration {
  background: #fff;
  border: 1px solid #e8dfb8;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(20, 84, 63, 0.10);
}
.hero-illustration .ill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0eddf;
}
.hero-illustration .ill-row:last-child { border-bottom: none; padding-bottom: 0; }
.hero-illustration .ill-row:first-child { padding-top: 0; }
.hero-illustration .ill-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-illustration .ill-icon svg { width: 18px; height: 18px; }
.hero-illustration .ill-icon.i-green { background: linear-gradient(180deg, #ecf4ee, #dcebe1); border: 1px solid #c5d9cb; color: #1f6b52; }
.hero-illustration .ill-icon.i-gold { background: linear-gradient(180deg, #fbf3df, #f5e6bf); border: 1px solid #e8d6a8; color: #7a5a14; }
.hero-illustration .ill-icon.i-blue { background: linear-gradient(180deg, #eef0fb, #dee2f3); border: 1px solid #c8cee8; color: #4a59a8; }
.hero-illustration .ill-icon.i-rose { background: linear-gradient(180deg, #fce8ef, #f7d7e1); border: 1px solid #e8c4d2; color: #8a3658; }
.hero-illustration .ill-text { display: flex; flex-direction: column; min-width: 0; }
.hero-illustration .ill-title { font-weight: 600; color: #14543f; font-size: 14px; }
.hero-illustration .ill-sub { font-size: 12px; color: #7a8278; }

/* === Filters === */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #ebe7df;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 84, 63, 0.04);
  align-items: stretch;
}
/* Search grows widest (≈2fr), 3 selects share the rest equally (≈1fr each),
   button hugs its content on the right. min-width keeps the longest option
   ("Любая длительность") from clipping; flex-wrap prevents overlap/overflow
   on narrower viewports instead of squeezing the text. */
.catalog-filters .search-field { flex: 2 1 240px; }
.catalog-filters .filter-select-wrap { flex: 1 1 185px; min-width: 185px; }
.catalog-filters .btn-search { flex: 0 0 auto; }
.catalog-filters .filter-row-extra { flex: 1 1 100%; }
.search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.search-field svg.search-icon {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  color: #7a8278;
}
.search-field input {
  width: 100%;
  padding: 11px 14px 11px 44px;
  border: 1px solid #d8d4cb;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #fafaf6;
  color: #1a2520;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-field input::placeholder { color: #a8aea4; }
.search-field input:focus {
  outline: none;
  background: #fff;
  border-color: #1f6b52;
  box-shadow: 0 0 0 3px rgba(31, 107, 82, 0.12);
}

.filter-select-wrap {
  position: relative;
}
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 11px 38px 11px 14px;
  border: 1px solid #d8d4cb;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #fafaf6;
  color: #1a2520;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.filter-select:focus { outline: none; background: #fff; border-color: #1f6b52; box-shadow: 0 0 0 3px rgba(31, 107, 82, 0.12); }
.filter-select-wrap::after {
  content: "";
  position: absolute; right: 14px; top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid #4a5650;
  border-bottom: 2px solid #4a5650;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Toggle pills (cert / free) */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fafaf6;
  border: 1px solid #d8d4cb;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #4a5650;
  cursor: pointer;
  user-select: none;
  transition: background .15s, border-color .15s, color .15s;
}
.toggle-pill input { display: none; }
.toggle-pill .pill-check {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid #c5d9cb;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.toggle-pill .pill-check svg { width: 10px; height: 10px; opacity: 0; color: #fff; transition: opacity .15s; }
.toggle-pill input:checked ~ .pill-check {
  background: linear-gradient(180deg, #2e8a6b 0%, #1f6b52 100%);
  border-color: #14543f;
}
.toggle-pill input:checked ~ .pill-check svg { opacity: 1; }
.toggle-pill:has(input:checked) {
  background: linear-gradient(180deg, #ecf4ee 0%, #dcebe1 100%);
  border-color: #1f6b52;
  color: #14543f;
}
.toggle-pill svg.pill-icon { width: 14px; height: 14px; color: #7a8278; }
.toggle-pill:has(input:checked) svg.pill-icon { color: #14543f; }

.btn-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(180deg, #2e8a6b 0%, #1f6b52 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #14543f;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 2px rgba(20, 84, 63, 0.18);
  transition: transform .12s, background .15s;
  white-space: nowrap;
}
.btn-search:hover { background: linear-gradient(180deg, #1f6b52 0%, #14543f 100%); }
.btn-search:active { transform: scale(0.97); }
.btn-search svg { width: 14px; height: 14px; }

.filter-row-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.filter-row-extra .filter-label {
  font-size: 12px;
  color: #7a8278;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* === Section header === */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 4px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: #14543f;
  margin: 0;
  letter-spacing: -0.005em;
}
.section-head .section-count {
  font-size: 13px;
  color: #7a8278;
}

/* Tabs */
.catalog-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #ebe7df;
  margin: 4px 0 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.catalog-tab {
  flex-shrink: 0;
  padding: 12px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #7a8278;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.catalog-tab:hover { color: #14543f; }
.catalog-tab.active {
  color: #14543f;
  border-bottom-color: #1f6b52;
  font-weight: 600;
}

/* === Course cards grid === */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1180px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .courses-grid { grid-template-columns: 1fr; } }

.course-card {
  background: #fff;
  border: 1px solid #ebe7df;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
  cursor: pointer;
}
.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 84, 63, 0.10);
  border-color: #c5d9cb;
}

.course-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ecf4ee 0%, #dcebe1 100%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.course-cover.cover-rose { background: linear-gradient(135deg, #fce8ef 0%, #f7d7e1 100%); }
.course-cover.cover-gold { background: linear-gradient(135deg, #fbf3df 0%, #f5e6bf 100%); }
.course-cover.cover-blue { background: linear-gradient(135deg, #eef0fb 0%, #dee2f3 100%); }
.course-cover.cover-cream { background: linear-gradient(135deg, #faf6e8 0%, #f3eccd 100%); }
.course-cover.cover-green { background: linear-gradient(135deg, #e6f3ec 0%, #d2e9db 100%); }

.course-cover .cover-mark {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 600;
  color: rgba(20, 84, 63, 0.20);
  line-height: 1;
}
.course-cover.cover-rose .cover-mark { color: rgba(138, 54, 88, 0.22); }
.course-cover.cover-gold .cover-mark { color: rgba(122, 90, 20, 0.25); }
.course-cover.cover-blue .cover-mark { color: rgba(74, 89, 168, 0.22); }
.course-cover.cover-cream .cover-mark { color: rgba(122, 90, 20, 0.20); }
.course-cover.cover-green .cover-mark { color: rgba(20, 84, 63, 0.22); }

.cover-badges {
  position: absolute;
  z-index: 2;
  top: 10px; left: 10px;
  display: flex;
  gap: 6px;
}
.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(20, 84, 63, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #14543f;
}
.cover-badge svg { width: 11px; height: 11px; }
.cover-badge.bg-cert { color: #7a5a14; border-color: rgba(122, 90, 20, 0.20); }

.fav-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(20, 84, 63, 0.12);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #7a8278;
  transition: color .15s, transform .12s;
}
.fav-btn:hover { color: #8a3658; }
.fav-btn:active { transform: scale(0.93); }
.fav-btn svg { width: 14px; height: 14px; }
.fav-btn.is-active { color: #8a3658; border-color: rgba(138, 54, 88, 0.30); }
.fav-btn.is-active svg { fill: currentColor; }

.course-body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.course-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: #14543f;
  line-height: 1.25;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-author {
  font-size: 13px;
  color: #5a6a60;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.course-author .author-name { font-weight: 500; }
.course-org {
  font-size: 12px;
  color: #7a8278;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.course-org svg { width: 12px; height: 12px; flex-shrink: 0; color: #1f6b52; }

.course-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #f0eddf;
  margin-top: auto;
  font-size: 12px;
  color: #5a6a60;
}
.course-stats .stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.course-stats .stat svg { width: 12px; height: 12px; color: #7a8278; }
.course-stats .stat.s-rating { color: #7a5a14; font-weight: 600; }
.course-stats .stat.s-rating svg { color: #d4a657; fill: #d4a657; }

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fafaf6;
  border-top: 1px solid #f0eddf;
}
.course-price {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: #14543f;
}
.course-price.price-old {
  text-decoration: line-through;
  color: #a8aea4;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  margin-right: 8px;
}
.course-price.price-free {
  color: #1f6b52;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.course-price.price-free svg { width: 16px; height: 16px; }

.btn-enroll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #c5d9cb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #14543f;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.btn-enroll:hover { background: #f3f8f4; border-color: #1f6b52; }
.btn-enroll:active { transform: scale(0.97); }
.btn-enroll svg { width: 12px; height: 12px; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 8px;
}
.pg-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #ebe7df;
  background: #fff;
  border-radius: 8px;
  color: #4a5650;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-family: 'Inter', sans-serif;
}
.pg-btn:hover { background: #f3f8f4; border-color: #1f6b52; color: #14543f; }
.pg-btn.active {
  background: linear-gradient(180deg, #2e8a6b 0%, #1f6b52 100%);
  border-color: #14543f;
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.pg-btn svg { width: 14px; height: 14px; }
.pg-dots { padding: 0 6px; color: #7a8278; }

/* Responsive */
@media (max-width: 980px) {
  .catalog-hero { grid-template-columns: 1fr; }
  .catalog-hero-right { display: none; }
  .catalog-hero-left h1 { font-size: 30px; }
  .catalog-filters { grid-template-columns: 1fr 1fr; }
  .catalog-filters .search-field { grid-column: 1 / -1; }
  .catalog-filters .btn-search { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .catalog-page { padding: 18px; }
  .catalog-hero { padding: 22px; }
  .catalog-stats { grid-template-columns: 1fr 1fr; }
  .catalog-filters { grid-template-columns: 1fr; }
  .catalog-hero-left h1 { font-size: 26px; }
  .section-head h2 { font-size: 22px; }
}
