.mp-page {
    background: #f3f1f8;
    padding: 24px 0 64px;
}

.mp-hero {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 28px;
    background: #fff;
    border: 1px solid #e7e2f2;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 0;
}

.mp-hero__media {
    min-width: 0;
}

.mp-hero__img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.mp-hero__img--placeholder {
    background: #ece8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-hero__body {
    min-width: 0;
}

.mp-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.mp-hero__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mp-hero__rating-value {
    font-weight: 800;
    color: #f5a623;
}

.mp-hero__rating-votes {
    color: #666;
    font-size: 14px;
}

.mp-hero__provider {
    margin: 0 0 8px;
    font-size: 14px;
}

.mp-hero__provider a {
    color: #121212;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mp-hero__title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.2;
    font-weight: 800;
    color: #121212;
}

.mp-hero__meta-line {
    margin: 0 0 18px;
    color: #555;
    font-size: 14px;
}

.mp-hero__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.mp-hero__facts li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: 14px;
    color: #333;
}

.mp-hero__facts svg {
    width: 20px;
    height: 20px;
    color: #6f63b8;
    margin-top: 1px;
}

.mp-content {
    margin-top: 24px;
}

.mp-tabs {
    background: #b8aedc;
    border-radius: 16px 16px 0 0;
    padding: 14px 18px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mp-tabs__track {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 5px 6px;
    min-width: 0;
}

.mp-tabs__btn {
    border: 0;
    background: transparent;
    color: #2f2a45;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mp-tabs__btn:hover:not(.is-active) {
    color: #121212;
}

.mp-tabs__btn.is-active {
    background: #fff;
    color: #121212;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(18, 18, 18, 0.1);
}

.mp-layout {
    background: #fff;
    border: 1px solid #e7e2f2;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

.mp-main {
    min-width: 0;
}

.mp-panel[data-mp-panel="schedules"],
.mp-panel[data-mp-panel="reviews"] {
    padding: 28px 30px 34px;
}

.mp-about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 0;
}

.mp-about-main {
    padding: 28px 30px 34px;
    border-right: 1px solid #ece8f4;
    min-width: 0;
}

.mp-sidebar {
    padding: 24px 20px 28px;
    background: #faf9fd;
    min-width: 0;
}

.mp-panel[hidden] {
    display: none !important;
}

.mp-about__head {
    margin-bottom: 22px;
}

.mp-about__title,
.mp-panel__title {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #121212;
}

.mp-about__subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.mp-section {
    margin-bottom: 28px;
}

.mp-section:last-child {
    margin-bottom: 0;
}

.mp-section__title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #121212;
}

.mp-section__body {
    font-size: 15px;
    line-height: 1.65;
    color: #333;
}

.mp-section__body p:last-child {
    margin-bottom: 0;
}

.mp-competences__group {
    margin-bottom: 16px;
}

.mp-competences__label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.mp-competences__list {
    margin: 0;
    padding-left: 1.2rem;
    color: #333;
}

.mp-competences__empty {
    margin: 0;
    color: #666;
}

.mp-themes-wrap {
    overflow-x: auto;
}

.mp-themes {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mp-themes thead th {
    text-align: left;
    background: #f3f1f8;
    padding: 10px 12px;
    border: 1px solid #e7e2f2;
    font-weight: 700;
}

.mp-themes tbody td {
    padding: 12px;
    border: 1px solid #ece8f4;
    vertical-align: top;
}

.mp-group-cards {
    display: grid;
    gap: 18px;
}

.mp-group-card {
    background: #fff;
    border: 1px solid #e7e2f2;
    border-radius: 16px;
    overflow: hidden;
}

.mp-group-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #ece8f4;
}

.mp-group-card__heading {
    min-width: 0;
}

.mp-group-card__title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    color: #121212;
}

.mp-group-card__period {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: #555;
}

.mp-group-card__period svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #666;
}

.mp-group-card__period strong {
    color: #121212;
    font-weight: 700;
}

.mp-group-card__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f8ef;
    color: #1f7a45;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mp-group-card__body {
    padding: 20px 24px;
    border-bottom: 1px solid #ece8f4;
}

.mp-group-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 32px;
}

.mp-group-card__field {
    min-width: 0;
}

.mp-group-card__label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #888;
}

.mp-group-card__value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #121212;
    line-height: 1.45;
    word-break: break-word;
}

.mp-group-card__value--price {
    font-size: 15px;
    font-weight: 800;
}

.mp-group-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 24px 22px;
}

.mp-group-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.mp-group-card__btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mp-group-card__btn--secondary {
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #121212;
}

.mp-group-card__btn--secondary:hover {
    border-color: #bdbdbd;
    background: #fafafa;
}

.mp-group-card__btn--primary {
    border: 1px solid #121212;
    background: #121212;
    color: #fff;
}

a.mp-group-card__btn--primary:hover {
    background: #2a2a2a;
    border-color: #2a2a2a;
    color: #fff;
}

.mp-group-card__btn--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .mp-group-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .mp-group-card__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mp-group-card__footer {
        justify-content: stretch;
    }

    .mp-group-card__btn {
        flex: 1 1 100%;
    }
}

.mp-schedule-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.mp-schedule-modal[hidden] {
    display: none;
}

.mp-schedule-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.45);
}

.mp-schedule-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(18, 18, 18, 0.18);
    padding: 28px 28px 0;
}

.mp-schedule-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 32px;
    -webkit-overflow-scrolling: touch;
}

.mp-schedule-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f5f5f5;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mp-schedule-modal__close svg {
    width: 18px;
    height: 18px;
}

.mp-schedule-modal__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #121212;
    padding-right: 40px;
}

.mp-schedule-modal__subtitle {
    margin: 0 0 24px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.mp-schedule-calendar__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mp-schedule-calendar__month {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #121212;
    text-align: center;
    flex: 1;
}

.mp-schedule-calendar__nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mp-schedule-calendar__nav-btn svg {
    width: 18px;
    height: 18px;
}

.mp-schedule-calendar__nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mp-schedule-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 0;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-bottom: 0;
}

.mp-schedule-calendar__weekdays span {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    padding: 10px 4px;
}

.mp-schedule-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-left: 1px solid #e8e8e8;
}

.mp-schedule-calendar__day {
    min-height: 92px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    padding: 8px 6px 10px;
    position: relative;
    background: #fff;
}

.mp-schedule-calendar__day.is-outside {
    background: #fafafa;
}

.mp-schedule-calendar__day.is-outside .mp-schedule-calendar__day-num {
    color: #bbb;
}

.mp-schedule-calendar__day.is-selected {
    background: #f3efff;
}

.mp-schedule-calendar__day-num {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.mp-schedule-calendar__badge {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #7b6fd6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 5px 6px;
    cursor: pointer;
    text-align: center;
}

.mp-schedule-calendar__badge:hover {
    background: #6a5ec8;
}

.mp-schedule-popover {
    position: fixed;
    z-index: 10060;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(18, 18, 18, 0.12);
    padding: 8px 0;
}

.mp-schedule-popover[hidden] {
    display: none;
}

.mp-schedule-popover__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp-schedule-popover__item {
    width: 100%;
}

.mp-schedule-popover__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    padding: 10px 14px;
    font: inherit;
    color: #222;
    cursor: pointer;
    text-align: left;
}

.mp-schedule-popover__btn:hover,
.mp-schedule-popover__btn.is-active {
    background: #f5f3ff;
}

.mp-schedule-popover__btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #666;
}

.mp-schedule-detail {
    position: fixed;
    z-index: 10061;
    width: min(360px, calc(100vw - 48px));
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(18, 18, 18, 0.14);
    padding: 16px;
    display: grid;
    gap: 14px;
}

.mp-schedule-detail[hidden] {
    display: none;
}

.mp-schedule-detail__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.mp-schedule-detail__icon {
    width: 28px;
    height: 28px;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mp-schedule-detail__icon svg {
    width: 22px;
    height: 22px;
}

.mp-schedule-detail__label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.mp-schedule-detail__value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #121212;
    line-height: 1.45;
    word-break: break-word;
}
.mp-schedule-detail__value a {
    color: #121212;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.mp-schedule-detail__value a:hover {
    color: #000;
}

.mp-duration__total {
    margin: 0 0 12px;
}
.mp-duration__item {
    margin: 0 0 4px;
}
.mp-duration__item:last-child {
    margin-bottom: 0;
}

.mp-side-card {
    background: #fff;
    border: 1px solid #e7e2f2;
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 14px;
}

.mp-side-card:last-child {
    margin-bottom: 0;
}

.mp-side-card__title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 800;
    color: #121212;
}

.mp-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.mp-side-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.mp-side-list__icon {
    width: 28px;
    height: 28px;
    color: #6f63b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mp-side-list__icon svg {
    width: 22px;
    height: 22px;
}

.mp-side-list__icon--check {
    color: #3f9a62;
}

.mp-side-list__label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 2px;
}

.mp-side-list__value {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: #121212;
    word-break: break-word;
}

.mp-side-list__value a {
    color: inherit;
    text-decoration: underline;
}

.mp-reviews__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.mp-reviews__value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f5a623;
}

.mp-reviews__votes {
    color: #666;
}

.mp-reviews__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.mp-reviews__item {
    border-top: 1px solid #ece8f4;
    padding-top: 14px;
}

.mp-reviews__item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.mp-reviews__author {
    font-weight: 600;
    color: #444;
}

.mp-empty {
    margin: 0;
    color: #666;
}

@media (max-width: 960px) {
    .mp-hero {
        grid-template-columns: 1fr;
    }

    .mp-about-layout {
        grid-template-columns: 1fr;
    }

    .mp-about-main {
        border-right: 0;
        border-bottom: 1px solid #ece8f4;
    }
}

@media (max-width: 768px) {
    .mp-page {
        padding: 16px 0 40px;
    }

    .mp-hero,
    .mp-about-main,
    .mp-sidebar,
    .mp-panel[data-mp-panel="schedules"],
    .mp-panel[data-mp-panel="reviews"] {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mp-tabs__btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}
