.tb-catalog {
  --blue: #0959f6;
  --navy: #061b62;
  --ink: #07164a;
  --muted: #65708f;
  --line: #dfe5f2;
  --bg: #f7f9fd;
  --green: #169b62;
  --orange: #ef8c0a;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  min-height: calc(100vh - var(--tb-layout-top, 70px));
}
.tb-catalog *,
.tb-catalog *::before,
.tb-catalog *::after { box-sizing: border-box; }
.tb-catalog button,
.tb-catalog input,
.tb-catalog select { font: inherit; }
.tb-catalog button { cursor: pointer; }
.tb-catalog a { color: inherit; }

.tb-catalog .layout {
  display: grid;
  grid-template-columns: 286px 1fr;
  min-height: calc(100vh - var(--tb-layout-top, 70px));
}
.tb-catalog .sidebar {
  border-right: 1px solid #e5eaf3;
  padding: 18px 14px 24px;
  box-shadow: 6px 0 16px #10276005;
  position: sticky;
  top: var(--tb-layout-top, 70px);
  height: calc(100vh - var(--tb-layout-top, 70px));
  overflow: auto;
  background: #fff;
}
.tb-catalog .tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e7eaf2;
  margin-bottom: 18px;
}
.tb-catalog .tab {
  border: 0;
  background: #fff;
  padding: 13px 4px 15px;
  color: #07164a;
  font-weight: 700;
}
.tb-catalog .tab.active {
  color: var(--blue);
  border-bottom: 3px solid var(--blue);
}
.tb-catalog .filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 4px 12px;
}
.tb-catalog .filters-head h2 {
  font-size: 13px;
  margin: 0;
  font-weight: 700;
}
.tb-catalog .reset-mini {
  border: 0;
  background: none;
  color: #47608f;
  font-size: 11px;
}
.tb-catalog .filter-group {
  padding: 0 4px 13px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e7eaf2;
}
.tb-catalog .filter-group:last-of-type { border: 0; }
.tb-catalog .filter-group h4 {
  font-size: 11px;
  margin: 0 0 8px;
  font-weight: 700;
}
.tb-catalog label.field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin: 8px 0 5px;
  color: #16265f;
}
.tb-catalog .field,
.tb-catalog select {
  width: 100%;
  height: 34px;
  border: 1px solid #ccd5e6;
  border-radius: 5px;
  background: #fff;
  padding: 0 10px;
  color: #132154;
  outline: none;
}
.tb-catalog .field:focus,
.tb-catalog select:focus {
  border-color: #6795ff;
  box-shadow: 0 0 0 2px #1c65ff18;
}
.tb-catalog .taxonomy-wrap { position: relative; z-index: 6; }
.tb-catalog .taxonomy-field { position: relative; }
.tb-catalog .taxonomy-input { padding-right: 28px; }
.tb-catalog .taxonomy-field::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #7180a4;
  border-bottom: 1.5px solid #7180a4;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.tb-catalog .taxonomy-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #e4eaf5;
  border-radius: 12px;
  box-shadow: 0 12px 28px #1027601a;
  z-index: 4000;
  max-height: 280px;
  overflow: auto;
  padding: 6px 0;
}
.tb-catalog .taxonomy-menu.open { display: block; }
.tb-catalog .taxonomy-option {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 10px 14px;
  border-radius: 0;
  color: #16265f;
  font-size: 13px;
  line-height: 1.4;
}
.tb-catalog .taxonomy-option:hover,
.tb-catalog .taxonomy-option.active {
  background: #f4f7ff;
  color: var(--tb-primary, #456fb8);
}
.tb-catalog .taxonomy-empty {
  padding: 10px;
  color: #6b7898;
  font-size: 10px;
}
.tb-catalog .taxonomy-hint {
  font-size: 9px;
  color: #7a86a3;
  margin: 6px 1px 0;
  line-height: 1.35;
}
.tb-catalog .location-fields.hidden,
.tb-catalog .location-search.hidden {
  display: none;
}
.tb-catalog .taxonomy-picks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 7px;
}
.tb-catalog .taxonomy-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #eef3ff;
  border: 1px solid #d8e3ff;
  border-radius: 5px;
  color: #173a82;
  font-size: 9.5px;
  line-height: 1.35;
}
.tb-catalog .taxonomy-pick span { flex: 1; }
.tb-catalog .taxonomy-pick .clear-tax {
  margin-left: auto;
  border: 0;
  background: none;
  color: #4e6595;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.tb-catalog .check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.tb-catalog .check-grid.one { grid-template-columns: 1fr; }
.tb-catalog .check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #16265f;
  margin: 0;
  font-weight: 500;
}
.tb-catalog input[type=checkbox] {
  accent-color: var(--blue);
  width: 14px;
  height: 14px;
  margin: 0;
}
.tb-catalog .dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tb-catalog .date-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.tb-catalog .advanced { display: block; }
.tb-catalog .apply {
  display: none;
  width: 100%;
  height: 37px;
  border: 0;
  border-radius: 5px;
  background: var(--tb-primary-gradient, linear-gradient(135deg, #456fb8, #5f86c7));
  color: #fff;
  font-weight: 750;
  margin: 4px 0 8px;
}
.tb-catalog .reset-link {
  display: block;
  text-align: center;
  color: var(--blue);
  font-size: 10px;
  text-decoration: none;
}
.tb-catalog .content {
  padding: 19px 25px 30px 15px;
  background: linear-gradient(180deg, #fff 0, #fbfcff 100%);
}
.tb-catalog .search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 20;
}
.tb-catalog .searchbox {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
  max-width: 520px;
}
.tb-catalog .location-search,
.tb-catalog .search-btn {
  display: none;
}
.tb-catalog .commune-combo {
  width: 100%;
}
.tb-catalog .searchbox span {
  position: absolute;
  left: 13px;
  top: 10px;
  font-size: 16px;
}
.tb-catalog .searchbox input { padding-left: 42px; }
.tb-catalog .search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b7a90;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.tb-catalog .search-clear.is-visible { display: flex; }
.tb-catalog .search-clear:hover {
  background: #eef2f8;
  color: #334155;
}
.tb-catalog .search-input {
  height: 44px;
  border: 1px solid #cbd5e7;
  border-radius: 6px;
  width: 100%;
  min-width: 0;
  outline: none;
  padding-right: 40px;
  text-overflow: ellipsis;
}
.tb-catalog .search-btn {
  height: 44px;
  width: 48px;
  flex: 0 0 48px;
  border: 0;
  border-radius: 6px;
  background: var(--tb-primary, #456fb8);
  color: #fff;
  font-size: 20px;
}
.tb-catalog .search-btn:hover {
  background: var(--tb-primary-hover, #3a5f9e);
}
.tb-catalog .sort {
  display: none !important;
}
.tb-catalog .views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 44px;
  width: 88px;
  flex: 0 0 88px;
  border: 1px solid #d4dbea;
  border-radius: 6px;
  overflow: hidden;
}
.tb-catalog .views button {
  border: 0;
  background: #fff;
  color: #24417f;
  font-size: 19px;
}
.tb-catalog .views button.active {
  color: var(--blue);
  background: #f1f5ff;
}
.tb-catalog .selection-btn {
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--tb-primary, #456fb8);
  border-radius: 6px;
  background: #fff;
  color: var(--tb-primary, #456fb8);
  font-weight: 700;
  font-size: 13px;
  padding: 0 14px;
  white-space: nowrap;
  cursor: pointer;
}
.tb-catalog .selection-btn.is-share {
  background: var(--tb-primary, #456fb8);
  border-color: var(--tb-primary, #456fb8);
  color: #fff;
}
.tb-catalog .selection-btn.is-share:hover {
  background: var(--tb-primary-hover, #3a5f9e);
  border-color: var(--tb-primary-hover, #3a5f9e);
}
.tb-catalog .selection-btn.hidden { display: none; }
.tb-catalog .select-pick {
  display: none;
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 4;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px #10276022;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tb-catalog.is-selecting .select-pick { display: flex; }
.tb-catalog .select-pick input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.tb-catalog .trainer-card.is-picked {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #0b57f133;
}
.tb-catalog .results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 11px 2px 13px;
  gap: 12px;
}
.tb-catalog .results-head h1 {
  font-size: 16px;
  margin: 0;
  letter-spacing: -.1px;
  font-weight: 700;
}
.tb-catalog .applied {
  font-size: 11px;
  color: #5f6f98;
}
.tb-catalog .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(225px, 1fr));
  gap: 12px;
  background: #f3f6fc;
  border: 1px solid #e1e8f4;
  border-radius: 12px;
  padding: 14px;
  align-items: stretch;
}
.tb-catalog .grid:has(.photo-wrap.is-calendar) {
  align-items: start;
}
.tb-catalog .trainer-card {
  background: #fff;
  border: 1px solid #e0e5ef;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 3px 12px #10276008;
  display: flex;
  flex-direction: column;
  min-width: 0;
  user-select: none;
}
.tb-catalog .trainer-card.hidden { display: none; }
.tb-catalog .photo-wrap {
  height: 185px;
  position: relative;
  background: #e7ecf7;
  overflow: hidden;
}
.tb-catalog .photo-wrap.is-calendar { height: 220px; }
.tb-catalog .media-panel {
  width: 100%;
  height: 100%;
}
.tb-catalog .media-panel[hidden] { display: none !important; }
.tb-catalog .photo-wrap img,
.tb-catalog .trainer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border: 0;
  display: block;
  background: #111;
}
.tb-catalog .trainer-calendar {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.tb-catalog .media-empty {
  margin: 0;
  height: 100%;
  display: grid;
  place-items: center;
  color: #5c6b86;
  font-size: 13px;
  font-weight: 600;
  background: #f4f7fc;
}
.tb-catalog .photo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #d9e4fb, #c5d3f0);
  color: #1757c9;
  font-size: 42px;
  font-weight: 800;
}
.tb-catalog .heart {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #fffdf0d9;
  font-size: 24px;
  line-height: 20px;
  color: #16316a;
  cursor: pointer;
}
.tb-catalog .heart.is-on {
  color: #c0153a;
}
.tb-catalog .verified {
  display: none;
}
.tb-catalog .card-body {
  padding: 10px 12px 11px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}
.tb-catalog .name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin: -10px -6px 2px 0;
  position: relative;
  z-index: 5;
}
.tb-catalog .card-body h3 {
  font-size: 15px;
  margin: 0;
  padding-top: 14px;
  line-height: 1.05;
  font-weight: 700;
  min-width: 0;
}
.tb-catalog .media-switch {
  position: static;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  background: rgba(229, 232, 237, 0.96);
  border: 0;
  border-left: 1px solid rgba(105, 113, 125, 0.55);
  border-right: 1px solid rgba(105, 113, 125, 0.55);
  border-bottom: 1px solid rgba(105, 113, 125, 0.55);
  border-radius: 0 0 9px 9px;
  overflow: hidden;
  box-shadow: none;
}
.tb-catalog .media-switch button {
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #737b88;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
}
.tb-catalog .media-switch button + button {
  border-left: 1px solid #e2e5ea;
}
.tb-catalog .media-switch button:first-child {
  border-radius: 0 0 0 8px;
}
.tb-catalog .media-switch button:last-child {
  border-radius: 0 0 8px 0;
}
.tb-catalog .media-switch button:hover {
  background: rgba(255, 255, 255, 0.45);
  color: #4f5865;
}
.tb-catalog .media-switch button.is-active {
  background: rgba(255, 255, 255, 0.72);
  color: #4d5865;
  box-shadow: none;
}
.tb-catalog .media-switch-icon,
.tb-catalog .media-switch button svg {
  width: 14px;
  height: 14px;
  display: block;
  line-height: 0;
}
.tb-catalog .media-switch button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tb-catalog .trainer-name {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.tb-catalog .trainer-name:hover {
  color: var(--blue);
  text-decoration: underline;
}
.tb-catalog .trainer-title {
  font-size: 11px;
  line-height: 1.45;
  margin: 0 0 10px;
  min-height: 32px;
}
.tb-catalog .meta {
  font-size: 10px;
  margin: 4px 0;
  color: #15265d;
}
.tb-catalog .experience {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10px;
  margin: 7px 0;
}
.tb-catalog .experience b { color: #b9c3d9; }
.tb-catalog .rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10px;
}
.tb-catalog .rating {
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
}
.tb-catalog .rating-star { color: #f5b301; }
.tb-catalog .rating b {
  color: #111;
  font-weight: 700;
}
.tb-catalog .chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 2px 0 10px;
}
.tb-catalog .chip {
  background: #edf1ff;
  color: #123785;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 9px;
  white-space: nowrap;
}
.tb-catalog .modes {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  font-size: 9px;
  margin: 0 0 10px;
  color: #25325a;
}
.tb-catalog .profile-btn,
.tb-catalog a.profile-btn {
  height: 34px;
  border: 1px solid #89adff;
  background: #fff;
  color: var(--blue);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: auto;
  flex-shrink: 0;
}

.tb-catalog .mode-panel.hidden { display: none; }
.tb-catalog #trainerGrid.hidden,
.tb-catalog #formationGrid.hidden { display: none !important; }
.tb-catalog .formation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  background: #f3f6fc;
  border: 1px solid #e1e8f4;
  border-radius: 12px;
  padding: 14px;
}
.tb-catalog .formation-card {
  background: #fff;
  border: 1.5px solid #cbd7ea;
  border-radius: 10px;
  box-shadow: 0 5px 16px #10276012;
  padding: 15px 15px 13px;
  display: flex;
  flex-direction: column;
  min-height: 286px;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tb-catalog .formation-card:hover {
  border-color: #91b2f2;
  box-shadow: 0 8px 22px #0b57f61a;
  transform: translateY(-1px);
}
.tb-catalog .formation-card.hidden { display: none; }
.tb-catalog .formation-top {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-right: 31px;
  margin-bottom: 10px;
}
.tb-catalog .f-badge {
  border: 1px solid #d4deed;
  border-radius: 6px;
  background: #fff;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
  color: #243867;
  white-space: nowrap;
}
.tb-catalog .f-badge.green {
  background: #eaf8e9;
  border-color: #cbe9c9;
  color: #197334;
}
.tb-catalog .formation-card .heart {
  top: 10px;
  right: 10px;
  background: #fff;
  border: 1px solid #dce3ee;
  width: 26px;
  height: 26px;
  font-size: 21px;
}
.tb-catalog .formation-card h3 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 7px;
  color: #07164a;
  font-weight: 700;
}
.tb-catalog .formation-card h3 a {
  color: #07164a;
  text-decoration: none;
}
.tb-catalog .formation-card h3 a:hover { color: var(--blue); }
.tb-catalog .f-rating {
  font-size: 10px;
  margin-bottom: 9px;
  color: #596685;
}
.tb-catalog .stars {
  color: #ff9800;
  letter-spacing: 1px;
  font-size: 12px;
}
.tb-catalog .f-rating b { color: #0d4ca8; }
.tb-catalog .f-desc {
  font-size: 10.5px;
  line-height: 1.55;
  color: #35415f;
  margin: 0 0 10px;
  min-height: 48px;
}
.tb-catalog .f-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 9.5px;
  color: #26365e;
  margin-bottom: 10px;
}
.tb-catalog .f-trainer {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  border-top: 1px solid #eef1f6;
  padding-top: 9px;
  margin-top: 1px;
}
.tb-catalog .avatar-mini {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #e8eefb;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1757c9;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 9px;
}
.tb-catalog .avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.tb-catalog .f-trainer .sep { color: #c6cedd; }
.tb-catalog .f-trainer .trainer-rating { color: #f18b00; }
.tb-catalog .f-trainer a {
  color: #173a82;
  text-decoration: none;
  font-weight: 750;
}
.tb-catalog .f-trainer a:hover { color: var(--blue); }
.tb-catalog .formation-card .chips { margin: 9px 0 11px; }
.tb-catalog .formation-card .chip {
  border-radius: 5px;
  padding: 5px 9px;
  background: #eef3ff;
  font-size: 9px;
}
.tb-catalog .program-btn,
.tb-catalog a.program-btn {
  margin-top: auto;
  height: 34px;
  border: 1px solid var(--tb-primary, #456fb8);
  background: #fff;
  color: var(--tb-primary, #456fb8);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.tb-catalog .empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: #5f6f98;
  font-size: 14px;
}
.tb-catalog .empty-msg.hidden { display: none; }
.tb-catalog .trainer-card.page-off,
.tb-catalog .formation-card.page-off,
.tb-catalog .grid.list-view .trainer-card.page-off,
.tb-catalog .formation-grid.list-view .formation-card.page-off {
  display: none !important;
}
.tb-catalog .pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 2px 8px;
}
.tb-catalog .pager.hidden { display: none; }
.tb-catalog .pager-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tb-catalog .pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  background: #fff;
  color: #16316a;
  font-weight: 650;
  font-size: 14px;
}
.tb-catalog .pager-btn.is-active {
  background: var(--tb-primary, #456fb8);
  border-color: var(--tb-primary, #456fb8);
  color: #fff;
}
.tb-catalog .pager-btn.is-disabled {
  opacity: 0.45;
  cursor: default;
}
.tb-catalog .pager-gap {
  min-width: 24px;
  text-align: center;
  color: #16316a;
  font-weight: 650;
}
.tb-catalog .pager-size {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
  color: #16316a;
  font-size: 14px;
  font-weight: 500;
}
.tb-catalog .pager-size select {
  height: 36px;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  background: #fff;
  color: #16316a;
  padding: 0 28px 0 12px;
  font-weight: 600;
}

.tb-catalog .grid.list-view,
.tb-catalog .formation-grid.list-view { grid-template-columns: 1fr !important; }
.tb-catalog .grid.list-view .trainer-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 190px;
}
.tb-catalog .grid.list-view .trainer-card.hidden { display: none; }
.tb-catalog .grid.list-view .photo-wrap {
  height: 100%;
  min-height: 190px;
}
.tb-catalog .grid.list-view .trainer-card:has(.photo-wrap.is-calendar) {
  grid-template-columns: minmax(340px, 55%) minmax(0, 1fr);
  align-items: start;
}
.tb-catalog .grid.list-view .photo-wrap.is-calendar {
  height: 260px;
  min-height: 260px;
}
.tb-catalog .grid.list-view .card-body { padding: 15px 18px; }
.tb-catalog .grid.list-view .name-row {
  margin-top: -15px;
  margin-right: -12px;
}
.tb-catalog .grid.list-view .trainer-title {
  min-height: 0;
  margin-bottom: 7px;
}
.tb-catalog .grid.list-view .modes { margin-top: 7px; }
.tb-catalog .formation-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tb-catalog .formation-grid.list-view .formation-card {
  min-height: 72px;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) 150px 105px minmax(210px, 1fr) 145px;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px #1027600d;
  transform: none;
}
.tb-catalog .formation-grid.list-view .formation-card.hidden { display: none; }
.tb-catalog .formation-grid.list-view .formation-card:hover { transform: none; }
.tb-catalog .formation-grid.list-view .heart,
.tb-catalog .formation-grid.list-view .f-desc,
.tb-catalog .formation-grid.list-view .f-meta,
.tb-catalog .formation-grid.list-view .chips { display: none; }
.tb-catalog .formation-grid.list-view .formation-top {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  grid-column: 2;
  grid-row: 1;
}
.tb-catalog .formation-grid.list-view .formation-top .f-badge { display: none; }
.tb-catalog .formation-grid.list-view .formation-top .f-badge:nth-child(1),
.tb-catalog .formation-grid.list-view .formation-top .f-badge:nth-child(2) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  font-size: 10.5px;
  padding: 5px 8px;
}
.tb-catalog .formation-grid.list-view .formation-top .f-badge:nth-child(2) {
  background: #eef3ff;
  color: #173a82;
  border: 1px solid #d9e3fb;
}
.tb-catalog .formation-grid.list-view .formation-card h3 {
  font-size: 14px;
  margin: 0;
  line-height: 1.25;
  grid-column: 1;
  grid-row: 1;
}
.tb-catalog .formation-grid.list-view .f-rating {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 10.5px;
  white-space: nowrap;
  color: #59657f;
}
.tb-catalog .formation-grid.list-view .f-trainer {
  grid-column: 4;
  grid-row: 1;
  border-top: 0;
  padding: 0;
  margin: 0;
  gap: 9px;
  font-size: 10.5px;
}
.tb-catalog .formation-grid.list-view .f-trainer .sep,
.tb-catalog .formation-grid.list-view .f-trainer .trainer-rating,
.tb-catalog .formation-grid.list-view .f-trainer .trainer-rating + span { display: none; }
.tb-catalog .formation-grid.list-view .avatar-mini {
  width: 36px;
  height: 36px;
  min-width: 36px;
}
.tb-catalog .formation-grid.list-view .program-btn {
  grid-column: 5;
  grid-row: 1;
  margin: 0;
  width: 100%;
  height: 34px;
}

.tb-catalog .mobile-filter {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--tb-primary, #456fb8);
  color: #fff;
  border: 0;
  border-radius: 24px;
  padding: 12px 17px;
  font-weight: 700;
  box-shadow: 0 7px 25px rgba(69, 111, 184, 0.28);
}
.tb-catalog .share-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0b245f66;
  display: grid;
  place-items: center;
  padding: 16px;
}
.tb-catalog .share-modal.hidden { display: none; }
.tb-catalog .share-dialog {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 40px #10276033;
}
.tb-catalog .share-dialog h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.tb-catalog .share-summary {
  margin: 0 0 14px;
  color: #5f6f98;
  font-size: 13px;
}
.tb-catalog .share-message {
  height: auto;
  min-height: 92px;
  padding: 10px;
  resize: vertical;
  line-height: 1.45;
  font-family: inherit;
}
.tb-catalog .share-error {
  color: #c0392b;
  font-size: 12px;
  margin: 8px 0 0;
}
.tb-catalog .share-error.hidden { display: none; }
.tb-catalog .share-success {
  color: #1a7f4b;
  font-size: 13px;
  margin: 8px 0 0;
  font-weight: 650;
}
.tb-catalog .share-success.hidden { display: none; }
.tb-catalog .share-send:disabled {
  opacity: .65;
  cursor: wait;
}
.tb-catalog .share-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.tb-catalog .share-auth-copy {
  margin: 0 0 4px;
  color: #24417f;
  font-size: 14px;
  line-height: 1.45;
}
.tb-catalog .share-login-hint {
  margin: 12px 0 0;
  color: #5f6f98;
  font-size: 13px;
  text-align: right;
}
.tb-catalog .share-login-hint a {
  color: #24417f;
  font-weight: 650;
}
.tb-catalog .share-cancel,
.tb-catalog .share-send {
  height: 40px;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}
.tb-catalog a.share-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.tb-catalog .share-cancel {
  border: 1px solid #d4dbea;
  background: #fff;
  color: #24417f;
}
.tb-catalog .share-send {
  border: 0;
  background: var(--tb-primary, #456fb8);
  color: #fff;
}
.tb-catalog .share-send:hover:not(:disabled) {
  background: var(--tb-primary-hover, #3a5f9e);
}

@media (max-width: 1600px) {
  .tb-catalog .formation-grid { grid-template-columns: repeat(3, 1fr); }
  .tb-catalog .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .tb-catalog .layout { grid-template-columns: 1fr; }
  .tb-catalog .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e4e8f0;
    display: none;
  }
  .tb-catalog .sidebar.open { display: block; }
  .tb-catalog .grid { grid-template-columns: repeat(2, 1fr); }
  .tb-catalog .formation-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-catalog .sort,
  .tb-catalog .views { display: none; }
  .tb-catalog .mobile-filter { display: inline-flex !important; }
}
@media (max-width: 900px) {
  .tb-catalog .formation-grid.list-view .formation-card {
    grid-template-columns: 1fr 120px;
    gap: 14px;
    padding: 15px 16px;
    min-height: 118px;
  }
  .tb-catalog .formation-grid.list-view .formation-card h3 { grid-column: 1; grid-row: 1; }
  .tb-catalog .formation-grid.list-view .formation-top { grid-column: 2; grid-row: 1; }
  .tb-catalog .formation-grid.list-view .f-rating { display: none; }
  .tb-catalog .formation-grid.list-view .f-trainer { grid-column: 1; grid-row: 2; }
  .tb-catalog .formation-grid.list-view .program-btn { grid-column: 2; grid-row: 2; }
}
@media (max-width: 700px) {
  .tb-catalog .content { padding: 12px; }
  .tb-catalog .grid,
  .tb-catalog .formation-grid { grid-template-columns: 1fr; }
  .tb-catalog .search-row > .searchbox:not(.location-search) {
    flex: 1 1 100%;
    max-width: none;
  }
  .tb-catalog .location-search { display: none; }
  .tb-catalog .search-btn {
    width: 44px;
    flex-basis: 44px;
  }
  .tb-catalog .selection-btn {
    flex: 1 1 auto;
  }
  .tb-catalog .grid.list-view .trainer-card { grid-template-columns: 1fr; }
  .tb-catalog .grid.list-view .trainer-card:has(.photo-wrap.is-calendar) {
    grid-template-columns: 1fr;
  }
  .tb-catalog .grid.list-view .photo-wrap {
    height: 185px;
    min-height: 0;
  }
  .tb-catalog .grid.list-view .photo-wrap.is-calendar {
    height: 240px;
    min-height: 240px;
  }
}
