/* =====================================================================
   ПРАЙД ФИТНЕС — Trainer & Program Schedule, FAQ, Matrix & Filter Styles
   Использует токены из assets/css/tokens.css
   ===================================================================== */

/* =====================================================================
   1. SINGLE TRAINER: CLICKABLE PROGRAM TAGS & FACTUAL INTRO
   ===================================================================== */

.trainer-single__tags li.trainer-single__tag-item {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.trainer-single__tag-link,
.trainer-single__tag-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: var(--pf-radius, 8px);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                border-color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                transform var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.trainer-single__tag-link {
    background: var(--pf-yellow, #FDC700);
    color: var(--pf-ink, #161616);
    border: 1px solid transparent;
}

.trainer-single__tag-link:hover,
.trainer-single__tag-link:focus-visible {
    background: var(--pf-ink, #161616);
    color: var(--pf-white, #FFFFFF);
    transform: translateY(-1px);
}

.trainer-single__tag-link::after {
    content: '→';
    font-size: 12px;
    opacity: 0.7;
    transition: transform var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.trainer-single__tag-link:hover::after {
    transform: translateX(2px);
    opacity: 1;
}

.trainer-single__tag-text {
    background: var(--pf-stone-100, #F5F5F3);
    color: var(--pf-ink, #161616);
    border: 1px solid #E8E9E3;
}

.trainer-single__rental-summary {
    list-style: none;
}

.trainer-single__rental-summary::-webkit-details-marker,
.trainer-single__rental-summary::marker {
    display: none;
    content: '';
}

.trainer-single__cadence {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px 28px;
    margin: 0 0 28px;
    padding: 14px 18px;
    border-radius: var(--pf-radius-md, 12px);
    background: var(--pf-stone-50, #FAFAF8);
    border: 1px solid #E8E9E3;
}

.trainer-single__position + .trainer-single__cadence {
    margin-top: -12px;
}

.trainer-single__cadence-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    margin: 0;
}

.trainer-single__cadence-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pf-stone-muted, #62655C);
}

.trainer-single__cadence-value {
    margin: 0;
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pf-ink, #161616);
}

/* =====================================================================
   2. PERSONAL & PROGRAM UPCOMING SCHEDULE BLOCK (.pf-trainer-schedule & .sp-schedule)
   ===================================================================== */

.pf-trainer-schedule__head,
.sp-schedule__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pf-trainer-schedule__head .trainer-single__block-title {
    margin: 0;
}

.pf-trainer-schedule__count,
.sp-schedule__count {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--pf-radius-pill, 9999px);
    background: var(--pf-amber-50-warm, #FFF8DD);
    border: 1px solid var(--pf-amber-200, #FDE68A);
    color: var(--pf-ink, #161616);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pf-trainer-schedule__list,
.sp-schedule__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-trainer-schedule__row,
.sp-schedule__row {
    display: grid;
    grid-template-columns: minmax(136px, 168px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 16px;
    border-radius: var(--pf-radius-md, 12px);
    background: var(--pf-stone-50, #FAFAF8);
    border: 1px solid #E8E9E3;
    transition: border-color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.pf-trainer-schedule__row:hover,
.sp-schedule__row:hover {
    border-color: #D4D5CD;
    background: var(--pf-white, #FFFFFF);
}

.pf-trainer-schedule__when,
.sp-schedule__when {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pf-trainer-schedule__date,
.sp-schedule__date {
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-ink, #161616);
    line-height: 1.3;
}

.pf-trainer-schedule__time,
.sp-schedule__time {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--pf-stone-muted, #62655C);
}

.pf-trainer-schedule__info,
.sp-schedule__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pf-trainer-schedule__title-line,
.sp-schedule__title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-trainer-schedule__program-link,
.sp-schedule__trainer-link {
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--pf-ink, #161616);
    text-decoration: none;
    line-height: 1.3;
}

.pf-trainer-schedule__program-link:hover,
.sp-schedule__trainer-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pf-trainer-schedule__program-name,
.sp-schedule__trainer-name {
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--pf-ink, #161616);
    line-height: 1.3;
}

.pf-trainer-schedule__badge,
.sp-schedule__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--pf-radius-xs, 4px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.4;
}

.pf-trainer-schedule__badge--studio,
.sp-schedule__badge--studio {
    background: var(--pf-yellow, #FDC700);
    color: var(--pf-ink, #161616);
}

.pf-trainer-schedule__badge--standard,
.sp-schedule__badge--standard {
    background: #EFEFE9;
    color: var(--pf-stone-muted, #62655C);
}

.pf-trainer-schedule__meta,
.sp-schedule__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 13px;
    color: var(--pf-stone-muted, #62655C);
}

.pf-trainer-schedule__spots,
.sp-schedule__spots {
    font-weight: 600;
    color: var(--pf-ink, #161616);
    font-variant-numeric: tabular-nums;
}

.pf-trainer-schedule__spots--full,
.sp-schedule__spots--full {
    color: #9A3412;
}

.pf-trainer-schedule__actions,
.sp-schedule__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pf-trainer-schedule__btn,
.sp-schedule__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: var(--pf-radius, 8px);
    background: var(--pf-yellow, #FDC700);
    color: var(--pf-ink, #161616);
    font-family: var(--pf-font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                transform var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.pf-trainer-schedule__btn:hover,
.sp-schedule__btn:hover {
    background: var(--pf-yellow-deep, #F0B100);
    transform: translateY(-1px);
}

.pf-trainer-schedule__lk,
.sp-schedule__lk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: var(--pf-radius, 8px);
    border: 1px solid #D4D5CD;
    background: var(--pf-white, #FFFFFF);
    color: var(--pf-ink, #161616);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.pf-trainer-schedule__lk:hover,
.sp-schedule__lk:hover {
    border-color: var(--pf-ink, #161616);
    background: var(--pf-stone-100, #F5F5F3);
}

.pf-trainer-schedule__footer,
.sp-schedule__footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #E8E9E3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pf-trainer-schedule__all-link,
.sp-schedule__all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-ink, #161616);
    text-decoration: none;
    transition: color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.pf-trainer-schedule__all-link:hover,
.sp-schedule__all-link:hover {
    color: var(--pf-yellow-deep, #F0B100);
}

/* =====================================================================
   3. TRAINER FAQ ACCORDION (.trainer-faq*)
   ===================================================================== */

.trainer-faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trainer-faq__item {
    border: 1px solid #E8E9E3;
    border-radius: var(--pf-radius-md, 12px);
    background: var(--pf-stone-50, #FAFAF8);
    overflow: hidden;
    transition: border-color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.trainer-faq__item[open] {
    background: var(--pf-white, #FFFFFF);
    border-color: var(--pf-amber-200, #FDE68A);
}

.trainer-faq__q {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    list-style: none;
    cursor: pointer;
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pf-ink, #161616);
}

.trainer-faq__q::-webkit-details-marker,
.trainer-faq__q::marker {
    display: none;
    content: '';
}

.trainer-faq__q::after {
    content: '+';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pf-stone-100, #F5F5F3);
    border: 1px solid #E8E9E3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--pf-ink, #161616);
    transition: transform var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.trainer-faq__item[open] .trainer-faq__q::after {
    content: '−';
    background: var(--pf-yellow, #FDC700);
    border-color: var(--pf-yellow, #FDC700);
}

.trainer-faq__a {
    padding: 0 18px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--pf-slate, #31415A);
}

.trainer-faq__a p {
    margin: 0;
}

/* =====================================================================
   4. RELATED TRAINERS SECTION (.trainer-related*)
   ===================================================================== */

.trainer-related {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #E8E9E3;
    --directory-ink: #20211d;
    --directory-muted: #74766e;
    --directory-line: #e8e9e3;
    --directory-yellow: #fdc700;
}

.trainer-related__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.trainer-related__title {
    margin: 0;
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--pf-ink, #161616);
}

.trainer-related__all {
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-stone-muted, #62655C);
    text-decoration: none;
    transition: color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.trainer-related__all:hover {
    color: var(--pf-ink, #161616);
}

.trainer-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
    align-items: start;
}

/* =====================================================================
   5. TRAINER SINGLE FOOTER BAR (replaces duplicate boilerplate)
   ===================================================================== */

.trainer-single-footer-bar {
    padding: 36px 0;
    background: var(--pf-stone-50, #FAFAF8);
    border-top: 1px solid #E8E9E3;
}

.trainer-single-footer-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    flex-wrap: wrap;
}

.trainer-single-footer-bar__info {
    flex: 1 1 380px;
}

.trainer-single-footer-bar__title {
    margin: 0 0 6px;
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--pf-ink, #161616);
}

.trainer-single-footer-bar__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pf-stone-muted, #62655C);
}

.trainer-single-footer-bar__text a {
    color: var(--pf-ink, #161616);
    font-weight: 600;
    text-decoration: none;
}

.trainer-single-footer-bar__text a:hover {
    text-decoration: underline;
}

.trainer-single-footer-bar__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.trainer-single-footer-bar__link {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: var(--pf-radius, 8px);
    border: 1px solid #D4D5CD;
    background: var(--pf-white, #FFFFFF);
    color: var(--pf-ink, #161616);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                border-color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.trainer-single-footer-bar__link:hover {
    background: var(--pf-yellow, #FDC700);
    border-color: var(--pf-yellow, #FDC700);
}

/* =====================================================================
   6. DIRECTORY BREADCRUMBS & PROGRAM FILTER PILLS
   ===================================================================== */

.trainer-directory__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--pf-stone-muted, #62655C);
}

.trainer-directory__crumbs a {
    color: var(--pf-stone-muted, #62655C);
    text-decoration: none;
    transition: color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.trainer-directory__crumbs a:hover {
    color: var(--pf-ink, #161616);
}

.trainer-directory__crumbs .current {
    color: var(--pf-ink, #161616);
    font-weight: 600;
}

.trainer-program-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -8px 0 24px;
}

.trainer-program-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: var(--pf-radius-pill, 9999px);
    border: 1px solid #E8E9E3;
    background: var(--pf-white, #FFFFFF);
    color: var(--pf-ink-warm, #20201D);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                border-color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.trainer-program-pill:hover {
    border-color: var(--pf-ink, #161616);
    background: var(--pf-stone-100, #F5F5F3);
}

.trainer-program-pill.is-active {
    background: var(--pf-yellow, #FDC700);
    border-color: var(--pf-yellow, #FDC700);
    color: var(--pf-ink, #161616);
    font-weight: 700;
}

/* =====================================================================
   7. TRAINER CARD PROGRAM PILLS (.trainer-directory-card__programs)
   ===================================================================== */

.trainer-directory-card__programs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    list-style: none;
    padding: 0;
}

.trainer-directory-card__program-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: var(--pf-radius-sm, 6px);
    background: #F1F2EC;
    border: 1px solid #E8E9E3;
    color: #3E4137;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trainer-directory-card__program-chip--more {
    background: var(--pf-amber-50-warm, #FFF8DD);
    border-color: var(--pf-amber-200, #FDE68A);
    color: var(--pf-ink, #161616);
}

/* =====================================================================
   8. DIRECTION-TO-TRAINER SEO MATRIX (.pf-dir-matrix*)
   ===================================================================== */

.pf-dir-matrix-section {
    padding: 48px 0 64px;
    background: var(--pf-white, #FFFFFF);
    border-top: 1px solid #E8E9E3;
}

.pf-dir-matrix__container {
    width: calc(100% - 64px);
    max-width: 1280px;
    margin-inline: auto;
}

.pf-dir-matrix__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.pf-dir-matrix__title {
    margin: 0 0 8px;
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--pf-ink, #161616);
}

.pf-dir-matrix__lead {
    margin: 0;
    max-width: 720px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--pf-stone-muted, #62655C);
}

.pf-dir-matrix__schedule-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--pf-radius, 8px);
    background: var(--pf-yellow, #FDC700);
    color: var(--pf-ink, #161616);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.pf-dir-matrix__schedule-cta:hover {
    background: var(--pf-yellow-deep, #F0B100);
}

.pf-dir-matrix__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pf-dir-matrix__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border-radius: var(--pf-radius-lg, 16px);
    background: var(--pf-stone-50, #FAFAF8);
    border: 1px solid #E8E9E3;
    transition: border-color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.pf-dir-matrix__card:hover {
    border-color: #D0D2C7;
}

.pf-dir-matrix__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.pf-dir-matrix__prog-link,
.pf-dir-matrix__prog-name {
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pf-ink, #161616);
    text-decoration: none;
}

.pf-dir-matrix__prog-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pf-dir-matrix__days {
    font-size: 12px;
    font-weight: 500;
    color: var(--pf-stone-muted, #62655C);
}

.pf-dir-matrix__trainers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pf-dir-matrix__trainer-link,
.pf-dir-matrix__trainer-name {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--pf-radius-pill, 9999px);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.pf-dir-matrix__trainer-link {
    background: var(--pf-white, #FFFFFF);
    border: 1px solid #DCDED6;
    color: var(--pf-ink, #161616);
    transition: background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                border-color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.pf-dir-matrix__trainer-link:hover {
    background: var(--pf-yellow, #FDC700);
    border-color: var(--pf-yellow, #FDC700);
}

.pf-dir-matrix__trainer-name {
    background: var(--pf-stone-100, #F5F5F3);
    border: 1px solid #E8E9E3;
    color: var(--pf-stone-muted, #62655C);
}

.pf-dir-matrix__links {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #E8E9E3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
}

.pf-dir-matrix__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-dir-matrix__nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: var(--pf-radius, 8px);
    border: 1px solid #E8E9E3;
    background: var(--pf-stone-50, #FAFAF8);
    color: var(--pf-ink, #161616);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                border-color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.pf-dir-matrix__nav-link:hover {
    background: var(--pf-amber-50-warm, #FFF8DD);
    border-color: var(--pf-amber-200, #FDE68A);
}

.pf-dir-matrix__club-note {
    margin: 0;
    font-size: 13px;
    color: var(--pf-stone-muted, #62655C);
}

.pf-dir-matrix__club-note a {
    color: var(--pf-ink, #161616);
    font-weight: 600;
    text-decoration: none;
}

/* =====================================================================
   9. SINGLE PROGRAM: CLICKABLE TRAINERS & UPCOMING SCHEDULE
   ===================================================================== */

.sp-content-section.sp-content-section--no-body {
    grid-template-columns: 1fr;
    max-width: 780px;
}

.sp-trainer--link {
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: var(--pf-radius-md, 12px);
    text-decoration: none;
    transition: background-color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.sp-trainer--link:hover,
.sp-trainer--link:focus-visible {
    background: var(--pf-white, #FFFFFF);
}

.sp-trainer-photo {
    width: 44px;
    height: 44px;
    border-radius: var(--pf-radius-md, 12px);
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    background: #E8E9E3;
    display: block;
}

.sp-trainer-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-trainer-name {
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--pf-ink, #161616);
    line-height: 1.3;
}

.sp-trainer--link:hover .sp-trainer-name {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sp-trainer-pos {
    font-size: 12px;
    color: var(--pf-stone-muted, #62655C);
    line-height: 1.3;
}

.sp-trainer-arrow {
    color: var(--pf-stone-muted, #62655C);
    font-size: 14px;
    flex-shrink: 0;
    transition: transform var(--pf-dur-fast, .18s) var(--pf-ease, ease),
                color var(--pf-dur-fast, .18s) var(--pf-ease, ease);
}

.sp-trainer--link:hover .sp-trainer-arrow {
    color: var(--pf-ink, #161616);
    transform: translateX(3px);
}

.sp-schedule {
    background: var(--pf-white, #FFFFFF);
    border: 1px solid #E8E9E3;
    border-radius: var(--pf-radius-xl, 20px);
    padding: 28px 30px;
    margin-bottom: 48px;
}

.sp-schedule__title {
    margin: 0;
    font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pf-ink, #161616);
}

/* =====================================================================
   10. FOCUS STATES & RESPONSIVE BREAKPOINTS (DOWN TO 360px)
   ===================================================================== */

:is(
    .trainer-single__tag-link,
    .pf-trainer-schedule__program-link,
    .pf-trainer-schedule__btn,
    .pf-trainer-schedule__lk,
    .pf-trainer-schedule__all-link,
    .trainer-faq__q,
    .trainer-program-pill,
    .pf-dir-matrix__prog-link,
    .pf-dir-matrix__trainer-link,
    .pf-dir-matrix__nav-link,
    .sp-trainer--link,
    .sp-schedule__trainer-link,
    .sp-schedule__btn,
    .sp-schedule__lk
):focus-visible {
    outline: 2px solid var(--pf-ink, #161616);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .trainer-related__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pf-dir-matrix__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .trainer-single__cadence {
        gap: 10px 18px;
        padding: 12px 14px;
        margin-bottom: 24px;
    }

    .pf-dir-matrix__container {
        width: calc(100% - 32px);
    }

    .pf-dir-matrix-section {
        padding: 36px 0 48px;
    }

    .pf-dir-matrix__grid {
        grid-template-columns: 1fr;
    }

    .trainer-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .pf-trainer-schedule__row,
    .sp-schedule__row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .pf-trainer-schedule__when,
    .sp-schedule__when {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
    }

    .pf-trainer-schedule__actions,
    .sp-schedule__actions {
        width: 100%;
    }

    .pf-trainer-schedule__btn,
    .sp-schedule__btn {
        flex: 1 1 auto;
    }

    .sp-schedule {
        padding: 20px 18px;
        border-radius: var(--pf-radius-lg, 16px);
    }

    .trainer-program-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        margin-bottom: 18px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .trainer-directory-card__programs {
        margin-top: 6px;
        gap: 4px;
    }

    .trainer-directory-card__program-chip {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 420px) {
    .trainer-single__cadence {
        flex-direction: column;
        gap: 10px;
    }

    .trainer-faq__q {
        padding: 13px 14px;
        font-size: 14px;
    }

    .trainer-faq__a {
        padding: 0 14px 14px;
        font-size: 13px;
    }

    .trainer-single-footer-bar__links {
        width: 100%;
    }

    .trainer-single-footer-bar__link {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* Монограмма-плейсхолдер на странице тренера без загруженного фото */
.trainer-single__photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #242420 0%, #161616 100%);
  border: 1px solid rgba(253, 199, 0, 0.25);
  border-radius: inherit;
}

.trainer-single__photo-initials {
  font-family: var(--pf-font-editorial, 'Onest', 'Inter', sans-serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--pf-yellow, #FDC700);
  user-select: none;
}
