.mbs-courses, .mbs-classes {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
  width:100%;
  max-width:100%;
  padding:28px 0 48px;
  box-sizing:border-box;
}
.mbs-course, .mbs-class {
  background:#fff;
  border-radius:20px;
  box-shadow:0 12px 28px rgba(35,24,21,.08);
  overflow:hidden;
  padding:0 0 22px;
}
.mbs-course__img { width:100%; height:200px; object-fit:cover; display:block; }
.mbs-course__body, .mbs-class { padding:22px 24px; }
.mbs-class { padding:24px; }
.mbs-facts { list-style:none; margin:14px 0 18px; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; }
.mbs-facts li { font-size:14px; }
.mbs-seats { font-weight:600; color:#7d3821; }
.mbs-closed { color:#7d3821; font-weight:600; }
.mbs-class.is-full { opacity:.92; outline:2px solid #b84c2a; }
.mbs-hp { position:absolute; left:-9999px; height:0; width:0; opacity:0; }

.mbs-modal[hidden] { display:none; }
.mbs-modal { position:fixed; inset:0; z-index:10000; }
.mbs-modal__backdrop { position:absolute; inset:0; background:rgba(26,18,15,.62); }
.mbs-modal__dialog {
  position:relative;
  z-index:1;
  max-width:760px;
  max-height:90vh;
  overflow:auto;
  margin:5vh auto;
  background:#fffaf2;
  border-radius:18px;
  padding:28px 28px 32px;
  box-shadow:0 30px 60px rgba(0,0,0,.28);
}
.mbs-modal__x { position:absolute; right:14px; top:10px; border:0; background:none; font-size:32px; cursor:pointer; color:#231815; display:grid; place-items:center; width:36px; height:36px; }
.mbs-modal h2 { font-family:"Young Serif",serif; margin:0 0 6px; }
.mbs-modal__lead { margin:0 0 16px; color:#4f4643; }
.mbs-form__grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; }
.mbs-form label { display:block; font-size:13px; font-weight:600; }
.mbs-form input, .mbs-form select, .mbs-form textarea {
  width:100%; margin-top:4px; border:1px solid #e8e3dc; border-radius:8px; padding:9px 11px; font-family:inherit; background:#fff;
}
.mbs-form .is-invalid { border-color:#b84c2a; }
.mbs-field-error { color:#b84c2a; font-size:12px; font-weight:500; margin:4px 0 0; }
.mbs-span { grid-column:1 / -1; }
.mbs-consent { display:flex; gap:8px; align-items:flex-start; font-weight:500; margin:14px 0; font-size:13px; }
.mbs-consent input { width:auto; margin-top:3px; }
.mbs-form__error { color:#b84c2a; font-weight:600; }
.mbs-form__ok { color:#0f7b4a; font-weight:600; }
.mbs-form small { display:block; font-weight:400; color:#4f4643; margin-top:4px; }
body.mbs-lock { overflow:hidden; }

.mbs-promo[hidden] { display:none; }
.mbs-promo { position:fixed; inset:0; z-index:10020; }
.mbs-promo__backdrop { position:absolute; inset:0; background:rgba(26,18,15,.66); }
.mbs-promo__dialog {
  position:relative;
  z-index:1;
  max-width:560px;
  max-height:90vh;
  overflow:auto;
  margin:6vh auto;
  background:#fffaf2;
  border-radius:22px;
  box-shadow:0 30px 60px rgba(0,0,0,.32);
}
.mbs-promo__x {
  position:absolute; right:10px; top:8px; z-index:2;
  width:36px; height:36px; border:0; border-radius:50%;
  background:rgba(255,250,242,.92); color:#231815;
  font-size:28px; line-height:1; cursor:pointer;
}
.mbs-promo__media { line-height:0; }
.mbs-promo__img { width:100%; height:220px; object-fit:cover; display:block; border-radius:22px 22px 0 0; }
.mbs-promo__body { padding:22px 26px 28px; }
.mbs-promo__body h2 { font-family:"Young Serif",serif; margin:0 0 10px; color:#231815; font-size:clamp(26px,4vw,34px); }
.mbs-promo__text { color:#4f4643; margin:0 0 18px; }
.mbs-promo__text p { margin:0 0 10px; }
.mbs-promo__text ul { list-style: disc !important; padding-left: 1.2em; margin: 0 0 12px; }
.mbs-promo__text ol { list-style: decimal !important; padding-left: 1.2em; margin: 0 0 12px; }
.mbs-promo__text a { color:#b84c2a; }
.mbs-promo__body .mb-btn { display:inline-flex; }

@media (max-width: 800px) {
  .mbs-courses, .mbs-classes, .mbs-form__grid, .mbs-facts { grid-template-columns:1fr; }
  .mbs-modal__dialog { margin:2vh 12px; padding:20px; }
  .mbs-promo__dialog { margin:4vh 14px; }
  .mbs-promo__img { height:180px; }
}

.mbs-tcar {
  position: relative;
  margin-top: 8px;
}
.mbs-tcar__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 48px 22px;
  scrollbar-width: none;
}
.mbs-tcar__track::-webkit-scrollbar { display: none; }
.mbs-tcar__card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  background: #fffaf2;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(35,24,21,.08);
  border: 1px solid rgba(242,200,140,.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mbs-tcar__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #231815;
  overflow: hidden;
}
.mbs-tcar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.mbs-tcar__media:hover img { transform: scale(1.04); }
.mbs-tcar__play {
  position: absolute;
  inset: auto auto 12px 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #b84c2a;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(35,24,21,.28);
}
.mbs-tcar__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mbs-tcar__quote {
  font-family: "Young Serif", Georgia, serif;
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
  color: #231815;
}
.mbs-tcar__who {
  margin: auto 0 0;
  text-align: right;
  font-size: 13px;
  color: #4f4643;
}
.mbs-tcar__who strong { display: block; color: #231815; font-size: 14px; }
.mbs-tcar__who span { display: block; margin-top: 2px; }
.mbs-tcar__nav {
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,250,242,.96) !important;
  color: #b84c2a !important;
  box-shadow: 0 8px 20px rgba(35,24,21,.16);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.mbs-tcar__nav--prev { left: 0; }
.mbs-tcar__nav--next { right: 0; }
.mbs-tcar__nav:hover,
.mbs-tcar__nav:focus {
  background: #b84c2a !important;
  color: #fff !important;
}
.mbs-tcar .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .mbs-tcar__card { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 680px) {
  .mbs-tcar__track { padding: 8px 40px 18px; }
  .mbs-tcar__card { flex-basis: 86%; }
  .mbs-tcar__nav { width: 38px; height: 38px; top: 36%; }
}

.mbs-count-banner { padding: 48px 0 42px; }
.mbs-count {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 8px;
  flex-wrap: wrap;
}
.mbs-count__unit {
  min-width: 78px;
  background: rgba(255,250,242,.12);
  border: 1px solid rgba(255,250,242,.28);
  border-radius: 16px;
  padding: 14px 12px 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.mbs-count__num {
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.mbs-count__num.is-tick {
  animation: mbs-tick .4s ease;
}
@keyframes mbs-tick {
  0% { transform: translateY(-10px) scale(.94); opacity: .25; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.mbs-count__label {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,250,242,.82);
}
.mbs-count__expired { font-weight: 600; }
.mbs-count__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.mbs-count-banner .mb-btn--light,
.mbs-count-banner .js-mbs-open {
  background: #fffaf2 !important;
  color: #b84c2a !important;
}
.mbs-count-banner .mb-btn--light:hover,
.mbs-count-banner .js-mbs-open:hover {
  background: #f2c88c !important;
  color: #231815 !important;
}
.mbs-count__mail { color: #fffaf2; text-decoration: underline; text-underline-offset: 3px; }
.mbs-count__mail:hover { color: #fff; }
@media (max-width: 680px) {
  .mbs-count__unit { min-width: 64px; padding: 10px 8px; }
}
