.container-width {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
}

.mb-page-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
}

.mb-section-title {
    margin: 0 0 20px;
    font-size: 28px;
}

.mb-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.mb-section-head .mb-section-title {
    margin-bottom: 0;
}

.mb-grid-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce6ff;
    border-radius: 999px;
    padding: 4px;
    background: #f5f8ff;
}

.mb-grid-toggle-btn {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 12px;
    color: #3c4a60;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.mb-grid-toggle-btn.is-active {
    color: #1b4dff;
    background: #fff;
    box-shadow: 0 4px 10px rgba(17, 49, 150, .14);
}

.mb-program-page {
    color: #0f172a;
}

.mb-card-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff3ff 0%, #eef6ff 100%);
    color: #1b4dff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid #dce6ff;
}

.mb-card-badge--top {
    position: absolute;
    top: 12px;
    left: 12px;
    margin-bottom: 0;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.mb-card-badge--new {
    background: linear-gradient(135deg, #edfff5 0%, #e7fff1 100%);
    border-color: #a6f4c5;
    color: #067647;
}

.mb-card-badge--popular {
    background: linear-gradient(135deg, #fff5ec 0%, #fff1e6 100%);
    border-color: #ffd6a8;
    color: #c2410c;
}

.mb-card-badge--special {
    background: linear-gradient(135deg, #f5edff 0%, #f0e7ff 100%);
    border-color: #d9c2ff;
    color: #6d28d9;
}

.mb-card-badge--default {
    background: linear-gradient(135deg, #eff3ff 0%, #eef6ff 100%);
    border-color: #dce6ff;
    color: #1b4dff;
}

.mb-program-hero,
.mb-lesson-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 28px;
    align-items: start;
    margin-bottom: 30px;
}

.mb-program-hero {
    grid-template-columns: 1fr;
    align-items: center;
}

.mb-program-hero-media img,
.mb-cover-shell img,
.mb-card-image {
    display: block;
    width: 100%;
    height: auto;
}

.mb-program-hero-media img,
.mb-cover-shell img {
    border-radius: 20px;
}

.mb-program-hero-media {
    position: relative;
}

.mb-program-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(7, 18, 48, 0) 25%, rgba(7, 18, 48, .14) 100%);
    pointer-events: none;
}

.mb-program-type,
.mb-program-price,
.mb-sidebar-meta {
    margin-bottom: 12px;
    color: #555;
}

.mb-program-content,
.mb-rich-content {
    line-height: 1.7;
}

.mb-program-type {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5eaf4;
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #3c4a60;
}

.mb-program-price {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    color: #0b1220;
}

.mb-program-grid,
.mb-lesson-grid {
    display: grid;
    gap: 24px;
}

.mb-program-grid.columns-3,
.mb-lesson-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mb-program-grid.columns-4,
.mb-lesson-grid.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mb-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e9edf4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(11, 18, 32, .08);
    transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.mb-card:hover {
    transform: translateY(-6px);
    border-color: #d5def0;
    box-shadow: 0 20px 42px rgba(11, 18, 32, .14);
}

.mb-card-image-link {
    display: block;
    position: relative;
}

.mb-card-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f3f5f9;
    transition: transform .5s ease;
}

.mb-card:hover .mb-card-image {
    transform: scale(1.04);
}

.mb-card-image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 8, 20, 0) 40%, rgba(3, 8, 20, .56) 100%);
}

.mb-card-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: rgba(8, 14, 28, .66);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(5px);
}

.mb-card-chip--type {
    left: 12px;
    right: auto;
}

.mb-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mb-card-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.mb-card-title a {
    color: inherit;
    text-decoration: none;
}

.mb-card-title a:hover {
    color: #175cff;
}

.mb-card-text {
    margin-bottom: 2px;
    color: #606a78;
    line-height: 1.6;
    min-height: 52px;
}

.mb-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
    color: #495364;
    font-size: 13px;
}

.mb-card-meta-item {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e3eaf7;
    border-radius: 999px;
    padding: 4px 10px;
    background: #f8fbff;
    font-weight: 600;
}

.mb-card-meta-price {
    color: #1749e6;
    border-color: #cfe0ff;
    background: #edf3ff;
}

.mb-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.mb-card-price {
    margin-bottom: 0;
    color: #0b1220;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
}

.mb-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1b4fff 0%, #1656ff 45%, #0d65ff 100%);
    border: 1px solid #1552ff;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 8px 20px rgba(23, 92, 255, .32);
}

.mb-card-button:hover {
    color: #fff;
    opacity: .94;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(23, 92, 255, .4);
}

.mb-card-button--ghost {
    background: #fff;
    color: #1749e6;
    border-color: #cfe0ff;
    box-shadow: none;
}

.mb-card-button--ghost:hover {
    color: #1749e6;
    background: #f4f8ff;
    border-color: #b5ceff;
    box-shadow: none;
}

.mb-card-button-arrow {
    display: inline-block;
    transition: transform .2s ease;
}

.mb-card-button:hover .mb-card-button-arrow {
    transform: translateX(3px);
}

.mb-video-shell {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

.mb-video-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mb-video-shell--locked {
    background: #0b1220;
}

.mb-video-shell--preview {
    background: #000;
}

.mb-preview-gate {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(180deg, rgba(6, 10, 20, .38) 0%, rgba(6, 10, 20, .72) 100%);
}

.mb-preview-gate.is-playing {
    pointer-events: none;
    align-items: flex-start;
    justify-content: flex-end;
    background: transparent;
}

.mb-preview-gate.is-playing .mb-preview-gate-card {
    padding: 8px 12px;
    border-radius: 999px;
    width: auto;
    max-width: none;
    border-color: rgba(255, 255, 255, .34);
}

.mb-preview-gate.is-playing .mb-preview-start {
    display: none;
}

.mb-preview-gate.is-ended {
    pointer-events: auto;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(180deg, rgba(6, 10, 20, 0) 0%, rgba(6, 10, 20, .22) 74%, rgba(6, 10, 20, .38) 100%);
}

.mb-preview-gate-card {
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 18px;
    background: rgba(10, 16, 30, .82);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 18px;
}

.mb-preview-gate.is-ended .mb-preview-gate-card {
    max-width: 100%;
    border-radius: 12px;
    background: rgba(10, 16, 30, .62);
}

.mb-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mb-preview-title {
    display: block;
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.mb-preview-gate.is-playing .mb-preview-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
}

.mb-preview-gate.is-ended .mb-preview-title {
    font-size: 15px;
}

.mb-preview-cta-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mb-preview-desc {
    margin: 0 0 12px;
    color: #d8e1f0;
    line-height: 1.5;
}

.mb-preview-countdown {
    margin-top: 0;
    font-size: 14px;
    font-weight: 700;
    color: #dbe7ff;
    white-space: nowrap;
}

.mb-locked-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.78) brightness(.52);
}

.mb-locked-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d7deea;
    background: radial-gradient(circle at 30% 20%, #253551 0%, #0b1220 65%);
    font-weight: 600;
}

.mb-video-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(180deg, rgba(7, 12, 24, .2) 0%, rgba(7, 12, 24, .64) 100%);
}

.mb-video-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 22px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
}

.mb-video-lock-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
}

.mb-access-panel {
    margin-top: 16px;
    border: 1px solid #e4ebfb;
    border-radius: 18px;
    background: linear-gradient(180deg, #f9fbff 0%, #f3f7ff 100%);
    padding: 18px;
}

.mb-access-panel-title {
    margin: 0 0 8px;
    font-size: 20px;
    color: #0f172a;
}

.mb-access-panel-text {
    margin: 0;
    color: #4e5d75;
    line-height: 1.6;
}

.mb-access-panel-note {
    margin: 10px 0 0;
    font-size: 14px;
    color: #2f3e58;
}

.mb-access-panel-note a {
    color: #175cff;
    text-decoration: none;
    font-weight: 600;
}

.mb-access-panel-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mb-access-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid transparent;
}

.mb-access-pill--open {
    background: #ecfdf3;
    border-color: #b8efd0;
    color: #067647;
}

.mb-access-pill--owned {
    background: #edf3ff;
    border-color: #cfe0ff;
    color: #1b4dff;
}

.mb-access-pill--preview {
    background: #fff6e9;
    border-color: #ffd9a8;
    color: #c2410c;
}

.mb-access-pill--locked {
    background: #fff2f2;
    border-color: #ffd3d3;
    color: #b42318;
}

.mb-sidebar-card,
.mb-content-card,
.mb-empty-box {
    border: 1px solid #e9edf4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(14, 24, 40, .06);
    padding: 22px;
}

.mb-sidebar-card {
    position: sticky;
    top: 18px;
}

.mb-sidebar-list-box ul,
.mb-topic-list {
    margin: 0;
    padding-left: 18px;
}

.mb-sidebar-list-box li,
.mb-topic-list li {
    margin-bottom: 9px;
}

.mb-breadcrumb-row {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    color: #647084;
    font-size: 14px;
}

.mb-breadcrumb-row a {
    color: #175cff;
    text-decoration: none;
}

.mb-auth-page {
    max-width: 760px;
}

.mb-auth-card,
.mb-dashboard-header-card {
    border: 1px solid #e8edf7;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(11, 18, 32, .08);
    padding: 24px;
}

.mb-auth-head h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
}

.mb-auth-head p,
.mb-dashboard-subtitle {
    margin: 8px 0 0;
    color: #56627a;
}

.mb-auth-alert {
    margin-top: 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
}

.mb-auth-alert--error {
    color: #b42318;
    background: #fff1f1;
    border-color: #ffd6d6;
}

.mb-auth-tabs {
    margin-top: 18px;
    display: inline-flex;
    border: 1px solid #e1e9fb;
    border-radius: 999px;
    padding: 4px;
    background: #f7f9ff;
}

.mb-auth-tab {
    padding: 8px 14px;
    border-radius: 999px;
    color: #445269;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mb-auth-tab.is-active {
    color: #1b4dff;
    background: #fff;
    box-shadow: 0 4px 10px rgba(17, 49, 150, .14);
}

.mb-auth-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mb-auth-form input[type="text"],
.mb-auth-form input[type="email"],
.mb-auth-form input[type="password"] {
    width: 100%;
    border: 1px solid #d8e0ee;
    border-radius: 12px;
    height: 48px;
    padding: 0 14px;
    font-size: 15px;
    color: #0f172a;
    background: #fff;
}

.mb-auth-form input:focus {
    outline: none;
    border-color: #3f6fff;
    box-shadow: 0 0 0 3px rgba(63, 111, 255, .14);
}

.mb-auth-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mb-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4e5d75;
    font-size: 14px;
}

.mb-auth-actions,
.mb-auth-actions-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mb-auth-actions-inline {
    justify-content: flex-end;
}

.mb-auth-actions-inline a {
    color: #1b4dff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.mb-auth-submit {
    justify-content: center;
    width: 100%;
}

.mb-student-dashboard {
    display: grid;
    gap: 18px;
}

.mb-dashboard-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.mb-dashboard-sidebar {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #e8edf7;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(11, 18, 32, .06);
    padding: 16px;
}

.mb-dashboard-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: #f7f9ff;
    border: 1px solid #e3eaf9;
}

.mb-dashboard-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1b4fff 0%, #0d65ff 100%);
}

.mb-dashboard-user-hello {
    font-size: 12px;
    color: #61708a;
}

.mb-dashboard-user-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.mb-dashboard-nav {
    display: grid;
    gap: 6px;
}

.mb-dashboard-nav-item {
    display: flex;
    align-items: center;
    min-height: 42px;
    border-radius: 12px;
    padding: 0 12px;
    color: #3f4b61;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
}

.mb-dashboard-nav-item:hover {
    background: #f7f9ff;
    border-color: #e2eaf9;
}

.mb-dashboard-nav-item.is-active {
    background: #edf3ff;
    border-color: #cfe0ff;
    color: #1b4dff;
}

.mb-dashboard-side-panel {
    border: 1px solid #e4ebfb;
    border-radius: 14px;
    background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
    padding: 12px;
}

.mb-dashboard-side-panel p {
    margin: 8px 0 0;
    color: #55637c;
    font-size: 13px;
}

.mb-dashboard-progress-label {
    font-size: 12px;
    color: #60708d;
    font-weight: 700;
}

.mb-dashboard-progress-value {
    margin-top: 2px;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.mb-dashboard-progress-bar {
    margin-top: 8px;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #dde8ff;
    overflow: hidden;
}

.mb-dashboard-progress-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #1b4fff 0%, #0d65ff 100%);
}

.mb-dashboard-main {
    display: grid;
    gap: 18px;
}

.mb-dashboard-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mb-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mb-dashboard-kpi-card {
    border: 1px solid #e7ecf8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(11, 18, 32, .05);
    padding: 14px;
}

.mb-dashboard-kpi-card span {
    display: block;
    color: #5d6b83;
    font-size: 13px;
}

.mb-dashboard-kpi-card strong {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    line-height: 1;
    color: #0f172a;
}

.mb-dashboard-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mb-dashboard-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #dce6ff;
    border-radius: 999px;
    padding: 0 12px;
    color: #3d4c66;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.mb-dashboard-filter-chip.is-active {
    color: #1b4dff;
    border-color: #cfe0ff;
    background: #edf3ff;
}

.mb-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mb-dashboard-card {
    overflow: hidden;
    border: 1px solid #e6ecf8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(14, 24, 40, .06);
}

.mb-dashboard-card-image-link {
    display: block;
}

.mb-dashboard-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.mb-dashboard-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mb-dashboard-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mb-dashboard-card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.mb-dashboard-card-title a {
    color: inherit;
    text-decoration: none;
}

.mb-dashboard-meta,
.mb-dashboard-reason {
    color: #5a667d;
    font-size: 13px;
}

.mb-dashboard-reason {
    color: #c2410c;
    font-weight: 600;
}

.mb-dashboard-card-footer {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mb-dashboard-price {
    font-weight: 800;
    color: #0f172a;
}

.mb-dashboard-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.mb-dashboard-pill--open {
    color: #067647;
    border-color: #b8efd0;
    background: #ecfdf3;
}

.mb-dashboard-pill--owned {
    color: #1b4dff;
    border-color: #cfe0ff;
    background: #edf3ff;
}

.mb-dashboard-pill--completed {
    color: #155724;
    border-color: #b8efd0;
    background: #e8fbef;
}

.mb-dashboard-pill--locked {
    color: #b42318;
    border-color: #ffd3d3;
    background: #fff2f2;
}

.mb-dashboard-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mb-dashboard-summary-item {
    border: 1px solid #e4ebfb;
    background: #f8faff;
    color: #3d4b62;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .mb-program-grid.columns-4,
    .mb-lesson-grid.columns-4,
    .mb-dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mb-dashboard-shell {
        grid-template-columns: 1fr;
    }

    .mb-dashboard-sidebar {
        position: static;
    }
}

@media (max-width: 900px) {
    .mb-program-hero,
    .mb-lesson-hero,
    .mb-program-grid.columns-3,
    .mb-program-grid.columns-4,
    .mb-lesson-grid.columns-3,
    .mb-lesson-grid.columns-4,
    .mb-dashboard-grid,
    .mb-auth-row,
    .mb-dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .mb-page-title {
        font-size: 28px;
    }

    .mb-sidebar-card {
        position: static;
    }

    .mb-card-price {
        font-size: 22px;
    }

    .mb-dashboard-header-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .mb-dashboard-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .container-width {
        margin: 24px auto;
        padding: 0 14px;
    }

    .mb-card-title {
        font-size: 18px;
    }

    .mb-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .mb-card-button {
        justify-content: center;
        width: 100%;
    }

    .mb-access-panel-actions {
        flex-direction: column;
    }
}

.mb-homepage-showcase.container-width {
    width: min(100%, 1040px);
    margin: clamp(16px, 2.6vw, 30px) auto;
    padding: 0 clamp(8px, 1.4vw, 16px);
}

.mb-homepage-showcase {
    display: grid;
    gap: clamp(12px, 1.8vw, 18px);
    overflow-x: clip;
    font-size: clamp(14px, .98vw, 16px);
}

.mb-homepage-showcase .mb-content-card,
.mb-homepage-showcase h1,
.mb-homepage-showcase h2,
.mb-homepage-showcase h3,
.mb-homepage-showcase h4,
.mb-homepage-showcase p,
.mb-homepage-showcase li,
.mb-homepage-showcase span,
.mb-homepage-showcase a {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mb-home-hero {
    display: block;
}

.mb-home-hero-media,
.mb-home-hero-content {
    min-width: 0;
    border: 1px solid #e4ebfb;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.mb-home-hero-media {
    aspect-ratio: 16 / 7;
    max-height: none;
}

.mb-home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mb-home-hero-content {
    padding: clamp(16px, 2vw, 26px);
}

.mb-home-hero-copy {
    text-align: center;
    border-color: #f0d7d7;
    background: #fff9f9;
}

.mb-home-hero-copy-inner {
    max-width: 860px;
    margin: 0 auto;
}

.mb-home-eyebrow {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: .02em;
    color: #a32121;
}

.mb-home-hero-content h1 {
    margin: 0;
    font-size: clamp(22px, 2vw, 34px);
    line-height: 1.16;
    color: #b71f1f;
}

.mb-home-hero-copy h1 {
    margin: 0;
    font-size: clamp(26px, 3.1vw, var(--mb-hero-title-size, 52px));
    line-height: 1.18;
    color: #b21f1f;
}

.mb-home-hero-content p {
    margin: 12px 0 0;
    color: #445069;
    font-size: clamp(15px, 1.02vw, 18px);
    line-height: 1.62;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 62ch;
}

.mb-home-hero-copy p {
    margin: 14px auto 0;
    color: #8f2a2a;
    font-size: clamp(20px, 1.6vw, 28px);
    line-height: 1.5;
    max-width: 44ch;
}

.mb-home-hero-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mb-home-hero-copy .mb-home-hero-actions {
    justify-content: center;
}

.mb-home-video-shell {
    margin-top: 12px;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.mb-home-video-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mb-home-info-grid,
.mb-home-info-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 18px);
    align-items: start;
}

.mb-home-info-stack {
    grid-template-columns: 1fr;
}

.mb-home-info-block {
    border-color: #e6ebf8;
    display: grid;
    gap: 18px;
    align-items: center;
}

.mb-home-info-block--important {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr);
}

.mb-home-info-block--about {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr);
}

.mb-home-info-col {
    min-width: 0;
}

.mb-home-info-image {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e6ecfb;
    margin: 0;
    object-fit: cover;
    max-height: 240px;
}

.mb-home-info-block--about .mb-home-info-image {
    max-height: none;
    height: auto;
    object-fit: contain;
}

.mb-home-info-grid p {
    color: #42526b;
    line-height: 1.68;
    font-size: clamp(15px, .98vw, 18px);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mb-home-quote-block {
    text-align: center;
    border-color: #dce6ff;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f5ff 100%);
    padding: clamp(24px, 4vw, 52px);
}

.mb-home-quote {
    margin: 0 auto;
    max-width: 980px;
    display: grid;
    gap: clamp(12px, 1.8vw, 20px);
    color: #2a3d60;
}

.mb-home-quote-text {
    display: block;
    font-size: clamp(20px, 2.4vw, var(--mb-quote-text-size, 30px));
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #3f57e8;
}

.mb-home-quote-author {
    display: block;
    font-size: clamp(14px, 1.35vw, var(--mb-quote-author-size, 18px));
    line-height: 1.25;
    font-weight: 500;
    color: #1f2868;
}

.mb-homepage-showcase.mb-quote-size-sm {
    --mb-quote-text-size: 26px;
    --mb-quote-author-size: 16px;
}

.mb-homepage-showcase.mb-quote-size-md {
    --mb-quote-text-size: 34px;
    --mb-quote-author-size: 20px;
}

.mb-homepage-showcase.mb-quote-size-lg {
    --mb-quote-text-size: 44px;
    --mb-quote-author-size: 24px;
}

.mb-home-testimonials {
    border-color: #163ea7;
    background: linear-gradient(130deg, #173ea8 0%, #5668d8 52%, #9a7de5 100%);
    color: #fff;
    overflow: hidden;
}

.mb-home-testimonials .mb-home-section-head h2 {
    color: #fff;
    font-size: clamp(28px, 2.4vw, var(--mb-testimonials-title-size, 40px));
    line-height: 1.1;
}

.mb-home-testimonials .mb-home-section-head p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(17px, 1.26vw, 24px);
    line-height: 1.5;
    max-width: 62ch;
}

.mb-home-testimonials .mb-home-slider {
    margin-top: 18px;
    padding: clamp(14px, 1.9vw, 22px);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .08);
}

.mb-home-testimonials .mb-home-slide {
    border-radius: 22px;
    background: #f5f8ff;
    border: 1px solid #dbe6ff;
    box-shadow: 0 10px 28px rgba(9, 17, 43, .24);
    padding: clamp(20px, 1.8vw, 28px);
}

.mb-home-testimonials .mb-home-slide p {
    color: #2a3448;
    font-size: clamp(16px, 1.02vw, var(--mb-testimonials-text-size, 20px));
    line-height: 1.72;
}

.mb-home-testimonials .mb-home-testimonial-author {
    color: #17306b;
    font-size: clamp(17px, 1.1vw, 21px);
}

.mb-home-testimonials .mb-home-testimonial-meta {
    color: #52678f;
    font-size: 14px;
}

.mb-home-testimonials .mb-home-slider-btn {
    border-color: rgba(255, 255, 255, .58);
    background: rgba(255, 255, 255, .2);
    width: 42px;
    height: 42px;
}

.mb-home-testimonials .mb-home-slider-btn:hover {
    background: rgba(255, 255, 255, .3);
}

.mb-home-inline-links {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mb-home-inline-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d9e3fb;
    color: #1b3f95;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    background: #f8faff;
}

.mb-home-section-head h2 {
    margin: 0;
}

.mb-home-section-head p {
    margin: 6px 0 0;
    color: #54627a;
}

.mb-home-slider {
    margin-top: 14px;
    border-radius: 28px;
    background: linear-gradient(130deg, #3b82f6 0%, #8b5cf6 100%);
    padding: clamp(10px, 1.4vw, 14px);
    overflow: hidden;
}

.mb-home-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.mb-home-slider-track::-webkit-scrollbar {
    display: none;
}

.mb-home-slide {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    scroll-snap-align: start;
    border-radius: 20px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .65);
    box-shadow: 0 8px 28px rgba(16, 24, 40, .12);
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mb-home-slide p {
    margin: 0;
    color: #243147;
    line-height: 1.72;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mb-home-testimonial-author {
    margin-top: 12px;
    font-weight: 800;
    color: #1b2c4d;
    font-size: clamp(15px, 1.05vw, 20px);
    line-height: 1.3;
}

.mb-home-testimonial-meta {
    margin-top: 4px;
    color: #5e6f89;
    font-size: 13px;
}

.mb-home-slider-controls {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.mb-home-slider-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mb-home-slider-btn:hover {
    background: rgba(255, 255, 255, .34);
}

.mb-home-faq-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.mb-home-faq-item {
    border: 1px solid #e2e9fb;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.mb-home-faq-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    padding: 14px 16px;
    font: inherit;
}

.mb-home-faq-question {
    font-weight: 700;
    color: #1a2840;
    font-size: 20px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mb-home-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 1px solid #cddcff;
    border-radius: 999px;
    background: #f4f8ff;
    color: #1546dd;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.mb-home-faq-item p {
    margin: 0;
    border-top: 1px solid #edf2ff;
    padding: 12px 16px 14px;
    color: #4e5d75;
    line-height: 1.7;
}

.mb-home-faq-answer {
    border-top: 1px solid #edf2ff;
    padding: 12px 16px 14px;
}

.mb-home-faq-answer p {
    margin: 0;
    color: #4e5d75;
    line-height: 1.68;
    overflow: visible !important;
    text-overflow: clip !important;
}

.mb-home-faq-answer p + p {
    margin-top: 10px;
}

.mb-home-faq-answer,
.mb-home-faq-answer * {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mb-home-faq-item[hidden],
.mb-home-faq-answer[hidden] {
    display: none !important;
}

.mb-home-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    font-weight: 700;
    color: #1a2840;
}

.mb-home-faq-item summary::-webkit-details-marker {
    display: none;
}

@media (max-width: 1100px) {
    .mb-home-hero {
        grid-template-columns: 1fr;
    }

    .mb-home-hero-media {
        aspect-ratio: 16 / 9;
    }

    .mb-home-slide {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (max-width: 800px) {
    .mb-home-info-grid,
    .mb-home-info-stack {
        grid-template-columns: 1fr;
    }

    .mb-home-info-block--important,
    .mb-home-info-block--about {
        grid-template-columns: 1fr;
    }

    .mb-home-hero-content h1 {
        font-size: 28px;
    }

    .mb-home-faq-question {
        font-size: 18px;
    }

    .mb-home-quote-text {
        font-size: clamp(18px, 7vw, var(--mb-quote-text-size, 30px));
    }

    .mb-home-quote-author {
        font-size: clamp(13px, 4vw, var(--mb-quote-author-size, 18px));
    }

    .mb-home-testimonials .mb-home-section-head h2 {
        font-size: clamp(24px, 7.5vw, var(--mb-testimonials-title-size, 40px));
    }

    .mb-home-testimonials .mb-home-section-head p {
        font-size: clamp(16px, 4.8vw, 20px);
    }

    .mb-home-testimonials .mb-home-slide p {
        font-size: clamp(15px, 4.2vw, var(--mb-testimonials-text-size, 20px));
    }

    .mb-home-hero-copy h1 {
        font-size: clamp(24px, 7.5vw, var(--mb-hero-title-size, 52px));
    }

    .mb-home-hero-copy p {
        font-size: clamp(17px, 4.4vw, 22px);
    }

    .mb-home-slide {
        flex-basis: 100%;
        min-width: 100%;
    }

    .mb-home-slider-controls {
        display: none;
    }
}
