/* ==========================================================================
   Weedu — одиночные страницы
   ========================================================================== */

.weedu-single { padding-bottom: 64px; background: #fff; }

/* Общие секции */
.weedu-single-section {
    margin-bottom: 48px;
    scroll-margin-top: 96px;
}
.weedu-single-section__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
}
.weedu-single-section__more {
    margin-top: 20px;
    text-align: center;
}

/* ==========================================================================
   .weedu-content — стили для контента из редактора
   ========================================================================== */
.weedu-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-primary);
}

.weedu-content > *:first-child { margin-top: 0; }
.weedu-content > *:last-child  { margin-bottom: 0; }

.weedu-content h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 1.6em 0 0.6em;
}
.weedu-content h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin: 1.6em 0 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 1px dashed #E9E9E9;
}
.weedu-content h3 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.4em 0 0.4em;
}
.weedu-content h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.3em 0 0.4em;
}
.weedu-content h5 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 1.2em 0 0.3em;
}
.weedu-content h6 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 1.2em 0 0.3em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
}

.weedu-content p { margin: 0 0 1em; }

.weedu-content a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.weedu-content a:hover,
.weedu-content a:focus {
    color: var(--color-accent-hover);
    text-decoration: none;
}
.weedu-content a:visited {
    color: var(--color-accent);
}

.weedu-content ul,
.weedu-content ol {
    margin: 1em 0 1.5em;
    padding-left: 1.6em;
}
.weedu-content ul { list-style: disc; }
.weedu-content ol { list-style: decimal; }
.weedu-content li {
    margin-bottom: 0.5em;
    line-height: 1.65;
    padding-left: 0.2em;
}
.weedu-content li::marker {
    color: var(--color-accent);
    font-weight: 700;
}
.weedu-content ul ul,
.weedu-content ul ol,
.weedu-content ol ul,
.weedu-content ol ol {
    margin: 0.4em 0 0.5em;
}

.weedu-content blockquote {
    position: relative;
    margin: 1.6em 0;
    padding: 1.2em 1.6em 1.2em 3em;
    background: linear-gradient(135deg, #F5F7FF 0%, #FAFBFF 100%);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 14px 14px 0;
    color: var(--color-text-primary);
    font-size: 17px;
    line-height: 1.65;
}
.weedu-content blockquote::before {
    content: "\201C";
    position: absolute;
    left: 12px;
    top: 6px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 52px;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.35;
}
.weedu-content blockquote p { margin: 0 0 0.5em; }
.weedu-content blockquote p:last-child { margin-bottom: 0; }
.weedu-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.weedu-content blockquote cite::before {
    content: "— ";
    color: var(--color-accent);
}

.weedu-content table {
    width: 100%;
    margin: 1.8em 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.03);
    font-size: 15px;
}
.weedu-content table th,
.weedu-content table td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s;
}
.weedu-content table th {
    background: #F7F8FF;
    font-weight: 700;
    color: var(--color-text-primary);
    border-bottom: 1px solid #E5E7EB;
}
.weedu-content table tr:last-child th,
.weedu-content table tr:last-child td {
    border-bottom: none;
}
.weedu-content table tbody tr:hover td {
    background: #FAFBFF;
}
.weedu-content table tbody tr:nth-child(even) td {
    background: #FCFCFD;
}
.weedu-content table tbody tr:nth-child(even):hover td {
    background: #FAFBFF;
}

.weedu-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1em 0;
    display: block;
}
.weedu-content figure {
    margin: 1.4em 0;
    max-width: 100%;
}
.weedu-content figure img { margin: 0; }
.weedu-content figcaption,
.weedu-content .wp-caption-text {
    margin-top: 8px;
    font-size: 13px;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.5;
}
.weedu-content .wp-caption {
    max-width: 100%;
    margin: 1.4em 0;
}
.weedu-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.weedu-content .alignleft {
    float: left;
    margin: 0.4em 1.4em 1em 0;
}
.weedu-content .alignright {
    float: right;
    margin: 0.4em 0 1em 1.4em;
}

.weedu-content code {
    padding: 2px 6px;
    background: #F3F4F6;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9em;
    color: #B91C1C;
}
.weedu-content pre {
    background: #1F2937;
    color: #F9FAFB;
    padding: 16px 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.55;
    margin: 1.4em 0;
}
.weedu-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.weedu-content hr {
    border: none;
    border-top: 1px dashed #E9E9E9;
    margin: 2em 0;
}

/* ==========================================================================
   Двухколоночный layout
   ========================================================================== */
.weedu-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 380px;
    gap: 32px;
    align-items: start;
}
.weedu-single__main { min-width: 0; }
.weedu-single__aside {
    position: sticky;
    top: 96px;
}

/* ==========================================================================
   Hero курса
   ========================================================================== */
.weedu-hero { margin-bottom: 24px; }

.weedu-hero--course {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 85% 10%, rgba(99, 91, 255, 0.10) 0%, rgba(99, 91, 255, 0) 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(20, 184, 166, 0.08) 0%, rgba(20, 184, 166, 0) 70%),
        linear-gradient(180deg, #F8F9FF 0%, #FFFFFF 100%);
}
.weedu-hero--course::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}
.weedu-hero--course::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.14) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}

.weedu-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 48px;
}

.weedu-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.weedu-hero__title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
}
.weedu-hero__lead {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0 0 20px;
}

.weedu-hero__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}
.weedu-hero__rating-value { color: #F59E0B; font-weight: 700; }
.weedu-hero__rating-text { color: var(--color-text-secondary); }
.weedu-hero__rating-divider { color: #D1D5DB; margin: 0 4px; }

.weedu-hero__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 24px;
}

.weedu-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.weedu-feature:hover {
    border-color: rgba(99, 91, 255, 0.35);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.08);
}

.weedu-feature__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--color-accent-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.weedu-feature__icon img {
    width: 22px;
    height: 22px;
    display: block;
}

.weedu-feature__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.weedu-feature__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    margin-bottom: 2px;
}
.weedu-feature__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.25;
}

.weedu-hero__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 24px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}
.weedu-hero__price {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: var(--color-text-primary);
}
.weedu-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.weedu-hero__school {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 12px;
}
.weedu-hero__school-label { opacity: 0.8; }
.weedu-hero__school-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.weedu-hero__school-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-light);
    text-decoration: none;
}
.weedu-hero__school-link img {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.weedu-hero__cover { position: relative; }
.weedu-hero__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.10);
    display: block;
}
.weedu-hero__img--placeholder {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.weedu-btn,
.weedu-btn:visited,
.weedu-btn:focus,
.weedu-btn:active {
    text-decoration: none;
}

.weedu-btn--primary,
.weedu-btn--primary:visited,
.weedu-btn--primary:focus,
.weedu-btn--primary:active {
    color: #ffffff !important;
    text-decoration: none;
}
.weedu-btn--primary:hover {
    color: #ffffff !important;
    text-decoration: none;
}

.weedu-btn--outline,
.weedu-btn--outline:visited {
    color: var(--color-text-primary);
    text-decoration: none;
}
.weedu-btn--outline:hover,
.weedu-btn--outline:focus,
.weedu-btn--outline:active {
    color: var(--color-accent);
    text-decoration: none;
}

/* ==========================================================================
   Бейджи
   ========================================================================== */
.weedu-badge--featured {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    font-weight: 700;
}
.weedu-badge--level { background: #F3F4F6; color: #374151; }
.weedu-badge--form  { background: #E0F2FE; color: #0369A1; }
.weedu-badge--type  { background: #F3E8FF; color: #6D28D9; }

/* ==========================================================================
   Якорная навигация
   ========================================================================== */
.weedu-anchors {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
    overflow-x: auto;
    scrollbar-width: none;
}
.weedu-anchors::-webkit-scrollbar { display: none; }
.weedu-anchors__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.weedu-anchors__link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    text-decoration: none;
}

/* ==========================================================================
   Навыки
   ========================================================================== */
.weedu-skill-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}
.weedu-skill-list__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
}
.weedu-skill-list__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-success-light);
    color: var(--color-success);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 13px;
}

/* ==========================================================================
   Инструменты
   ========================================================================== */
.weedu-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.weedu-tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.weedu-tool:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-light);
    text-decoration: none;
}
.weedu-tool__icon { font-size: 14px; }

/* ==========================================================================
   Таблица характеристик — с вертикальными линиями
   ========================================================================== */
.weedu-details {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(16, 24, 40, 0.04);
}

.weedu-details th,
.weedu-details td {
    padding: 16px 22px;
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    transition: background 0.15s;
}

.weedu-details th:last-child,
.weedu-details td:last-child {
    border-right: none;
}

.weedu-details tr:last-child th,
.weedu-details tr:last-child td {
    border-bottom: none;
}

.weedu-details th {
    width: 38%;
    color: var(--color-text-secondary);
    font-weight: 500;
    background: #FAFBFC;
}

.weedu-details td {
    color: var(--color-text-primary);
    font-weight: 600;
}

.weedu-details tbody tr:hover th,
.weedu-details tbody tr:hover td {
    background: #F7F8FF;
}
.weedu-details tbody tr:hover th {
    color: var(--color-accent);
}

@media (max-width: 600px) {
    .weedu-details th,
    .weedu-details td {
        padding: 12px 14px;
        font-size: 14px;
    }
    .weedu-details th { width: 45%; }
}

/* ==========================================================================
   Мини-карточки экспертов
   ========================================================================== */
.weedu-experts-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.weedu-expert-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.weedu-expert-mini:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(99, 91, 255, 0.08);
}
.weedu-expert-mini__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #EEF2FF;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.weedu-expert-mini__photo img { width: 100%; height: 100%; object-fit: cover; }
.weedu-expert-mini__placeholder { color: var(--color-accent); font-weight: 800; font-size: 20px; }
.weedu-expert-mini__info { display: flex; flex-direction: column; }
.weedu-expert-mini__name { font-weight: 700; font-size: 15px; color: var(--color-text-primary); }
.weedu-expert-mini__position { font-size: 13px; color: var(--color-text-secondary); }

/* ==========================================================================
   Карточка школы в single
   ========================================================================== */
.weedu-school-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: box-shadow 0.2s;
}
.weedu-school-card:hover {
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
}
.weedu-school-card__logo {
    width: 64px; height: 64px;
    border-radius: 14px;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-weight: 800;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
}
.weedu-school-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.weedu-school-card__info { flex: 1; min-width: 0; }
.weedu-school-card__name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s;
}
.weedu-school-card__name:hover { color: var(--color-accent); text-decoration: none; }
.weedu-school-card__rating { color: #F59E0B; font-weight: 600; font-size: 14px; }
.weedu-school-card__count { font-size: 13px; color: var(--color-text-secondary); }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.weedu-sidebar-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}
.weedu-sidebar-card--price {
    border-color: rgba(99, 91, 255, 0.3);
    box-shadow: 0 10px 32px rgba(99, 91, 255, 0.08);
}
.weedu-sidebar-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
}
.weedu-sidebar-card__price {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: var(--color-text-primary);
}
.weedu-sidebar-card__installment {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}
.weedu-sidebar-card__cta {
    width: 100%;
    margin: 16px 0;
}
.weedu-sidebar-card__meta {
    font-size: 14px;
    color: var(--color-text-secondary);
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}
.weedu-sidebar-card__disclaimer {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 8px;
}
.weedu-sidebar-card__free-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--color-success-light);
    color: var(--color-success);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weedu-sidebar-card__list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.weedu-sidebar-card__list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}
.weedu-sidebar-card__list li:last-child { border-bottom: none; }
.weedu-sidebar-card__list span { color: var(--color-text-secondary); }
.weedu-sidebar-card__list strong { color: var(--color-text-primary); font-weight: 600; text-align: right; }

.weedu-sidebar-card__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.weedu-sidebar-card__social a {
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.weedu-sidebar-card__social a:hover { background: var(--color-accent); color: #fff; text-decoration: none; }

.weedu-sidebar-card__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.weedu-sidebar-card__meta-row + .weedu-sidebar-card__meta-row {
    border-top: 1px solid var(--color-border);
}
.weedu-sidebar-card__meta-row span { color: var(--color-text-secondary); font-size: 13px; }
.weedu-sidebar-card__meta-row strong,
.weedu-sidebar-card__meta-row a { font-size: 14px; font-weight: 600; }
.weedu-sidebar-card__meta-row a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
.weedu-sidebar-card__meta-row a:hover { color: var(--color-accent-hover); text-decoration: none; }

/* ==========================================================================
   Chip-group
   ========================================================================== */
.weedu-chip-group { margin-bottom: 20px; }
.weedu-chip-group__title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    font-weight: 700;
    margin-bottom: 10px;
}
.weedu-chip-group__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.weedu-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #F3F4F6;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.weedu-chip:hover { background: var(--color-text-primary); color: #fff; text-decoration: none; }
.weedu-chip--accent { background: var(--color-accent-light); color: var(--color-accent); }
.weedu-chip--accent:hover { background: var(--color-accent); color: #fff; }

/* ==========================================================================
   Мини-карточка школы
   ========================================================================== */
.weedu-school-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}
.weedu-school-mini:hover { border-color: var(--color-accent); transform: translateY(-2px); text-decoration: none; }
.weedu-school-mini__logo {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: #EEF2FF;
    color: var(--color-accent);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.weedu-school-mini__logo img { width: 100%; height: 100%; object-fit: cover; }
.weedu-school-mini__name { font-weight: 700; font-size: 15px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.weedu-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.weedu-faq__item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s;
}
.weedu-faq__item[open] { border-color: rgba(99, 91, 255, 0.35); }
.weedu-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.weedu-faq__question::-webkit-details-marker { display: none; }
.weedu-faq__icon {
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
}
.weedu-faq__icon::before,
.weedu-faq__icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    transition: transform 0.2s;
}
.weedu-faq__icon::before { top: 8px; left: 0; right: 0; height: 2px; }
.weedu-faq__icon::after { left: 8px; top: 0; bottom: 0; width: 2px; }
.weedu-faq__item[open] .weedu-faq__icon::after { transform: scaleY(0); }
.weedu-faq__answer {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Contacts
   ========================================================================== */
.weedu-contacts {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 8px 20px;
}
.weedu-contacts__row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
}
.weedu-contacts__row:last-child { border-bottom: none; }
.weedu-contacts__label {
    min-width: 100px;
    color: var(--color-text-secondary);
    font-weight: 500;
}
.weedu-contacts__social { display: flex; gap: 12px; flex-wrap: wrap; }
.weedu-contacts__social a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.weedu-contacts__social a:hover { color: var(--color-accent-hover); text-decoration: none; }

/* ==========================================================================
   CTA full-width
   ========================================================================== */
.weedu-cta-fullwidth {
    position: relative;
    margin: 40px 0;
    padding: 60px 0;
    background:
        radial-gradient(60% 70% at 85% 10%, rgba(99, 91, 255, 0.10) 0%, rgba(99, 91, 255, 0) 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(20, 184, 166, 0.08) 0%, rgba(20, 184, 166, 0) 70%),
        linear-gradient(180deg, #F8F9FF 0%, #FFFFFF 100%);
    overflow: hidden;
}
.weedu-cta-fullwidth::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}
.weedu-cta-fullwidth::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -100px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.14) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}

.weedu-cta-fullwidth .weedu-cta {
    position: relative;
    z-index: 1;
    margin: 0;
    background: transparent;
    padding: 0;
    color: var(--color-text-primary);
}

/* CTA: текст с ценой слева, кнопка справа */
.weedu-cta__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.weedu-cta__text {
    flex: 1;
    min-width: 0;
}
.weedu-cta__title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--color-text-primary);
}
.weedu-cta__subtitle {
    font-size: 16px;
    margin: 0 0 16px;
    color: var(--color-text-secondary);
}
.weedu-cta__price {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text-primary);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
}
.weedu-cta__price .weedu-price { color: var(--color-text-primary); font-size: inherit; font-weight: 800; }
.weedu-cta__price .weedu-price--free { color: var(--color-success); }
.weedu-cta__price .weedu-price--old {
    font-size: 20px;
    color: #9CA3AF;
    font-weight: 500;
    text-decoration: line-through;
}
.weedu-cta__price .weedu-price--discount {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-price);
    background: var(--color-price-light);
    padding: 4px 10px;
    border-radius: 999px;
}

.weedu-cta__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.weedu-cta__actions .weedu-btn--primary {
    background: var(--color-accent);
    color: #ffffff !important;
    padding: 18px 40px;
    font-size: 17px;
    border-radius: 12px;
    white-space: nowrap;
}
.weedu-cta__actions .weedu-btn--primary:hover {
    background: var(--color-accent-hover);
    color: #ffffff !important;
}

/* ==========================================================================
   Похожие курсы / Другие курсы школы
   ========================================================================== */
.weedu-related {
    margin-top: 8px;
}

.weedu-related__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.weedu-related__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px;
    color: var(--color-text-primary);
}

.weedu-related__grid {
    margin-bottom: 0;
}

.weedu-related__more {
    text-align: center;
    margin-top: 32px;
}

/* Упрощённые карточки в related и school-courses */
.weedu-card--related .weedu-card__body {
    padding: 16px;
    gap: 8px;
}
.weedu-card--related .weedu-card__title {
    font-size: 16px;
    line-height: 1.35;
}
.weedu-card--related .weedu-card__meta {
    gap: 10px;
    font-size: 13px;
}
.weedu-card--related .weedu-card__price {
    font-size: 20px;
    margin-top: 4px;
    margin-bottom: 4px;
}
.weedu-card--related .weedu-card__cover {
    aspect-ratio: 16 / 10;
}
.weedu-card--related .weedu-card__actions {
    margin-top: 8px;
}
.weedu-card--related .weedu-card__actions .weedu-btn {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   Stats школы
   ========================================================================== */
.weedu-school-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.weedu-school-stats__item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.weedu-school-stats__item:hover {
    border-color: rgba(99, 91, 255, 0.3);
    box-shadow: 0 4px 14px rgba(99, 91, 255, 0.06);
}
.weedu-school-stats__number {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.2;
}
.weedu-school-stats__label {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* ==========================================================================
   Реклама
   ========================================================================== */
.weedu-ad-disclaimer {
    margin: 40px 0 0;
    padding: 16px 20px;
    background: #FAFBFC;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-text-secondary);
}
.weedu-ad-disclaimer__label {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.weedu-ad-disclaimer__text {
    color: var(--color-text-primary);
    font-weight: 500;
}

/* ==========================================================================
   Флаги
   ========================================================================== */
.weedu-flag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.weedu-flag--yes { background: var(--color-success-light); color: var(--color-success); }
.weedu-flag--no  { background: #F3F4F6; color: #6B7280; }
.weedu-rating-value { color: #F59E0B; font-weight: 700; }

/* ==========================================================================
   Страница школы: hero, направления, эксперты, преимущества
   ========================================================================== */

/* Hero школы без баннера — фоновый градиент как у курса */
.weedu-hero--school:not(.weedu-hero--school-has-banner) {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 85% 10%, rgba(99, 91, 255, 0.10) 0%, rgba(99, 91, 255, 0) 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(20, 184, 166, 0.08) 0%, rgba(20, 184, 166, 0) 70%),
        linear-gradient(180deg, #F8F9FF 0%, #FFFFFF 100%);
}

/* Hero школы с баннером */
.weedu-hero--school-has-banner {
    background: var(--color-accent-light);
    background-image:
        linear-gradient(135deg, rgba(99, 91, 255, 0.9), rgba(81, 72, 229, 0.85)),
        var(--weedu-hero-bg, none);
    background-size: cover;
    background-position: center;
    color: #fff;
    margin: 8px 0 32px;
    border-radius: 20px;
}
.weedu-hero--school-has-banner .weedu-hero__school-card {
    background: #fff;
    color: var(--color-text-primary);
}

.weedu-hero__inner--school { display: block; }

.weedu-hero__school-card {
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: 20px;
    padding: 32px;
    max-width: 720px;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.10);
}
.weedu-hero--school:not(.weedu-hero--school-has-banner) .weedu-hero__school-card {
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.weedu-hero__school-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    color: var(--color-accent);
    overflow: hidden;
    margin-bottom: 16px;
}
.weedu-hero__school-logo img {
    width: 100%; height: 100%; object-fit: cover;
}

.weedu-hero__school-card .weedu-hero__title {
    font-size: 36px;
    margin: 12px 0 12px;
}
.weedu-hero__school-card .weedu-hero__lead {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.weedu-hero__school-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}
.weedu-hero__school-meta-sep { color: #D1D5DB; }

.weedu-hero__school-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==========================================================================
   Направления обучения
   ========================================================================== */
.weedu-directions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.weedu-direction-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.weedu-direction-card:hover {
    border-color: rgba(99, 91, 255, 0.35);
    box-shadow: 0 8px 22px rgba(99, 91, 255, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.weedu-direction-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.weedu-direction-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.weedu-direction-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}
.weedu-direction-card__count {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}
.weedu-direction-card__arrow {
    flex-shrink: 0;
    font-size: 18px;
    color: var(--color-text-secondary);
    transition: color 0.2s, transform 0.2s;
}
.weedu-direction-card:hover .weedu-direction-card__arrow {
    color: var(--color-accent);
    transform: translateX(4px);
}

/* ==========================================================================
   Эксперты школы — карточки 4 в ряд
   ========================================================================== */
.weedu-cards--4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.weedu-expert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.weedu-expert-card:hover {
    border-color: rgba(99, 91, 255, 0.35);
    box-shadow: 0 8px 22px rgba(99, 91, 255, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.weedu-expert-card__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.weedu-expert-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.weedu-expert-card__placeholder {
    color: var(--color-accent);
    font-weight: 800;
    font-size: 32px;
}

.weedu-expert-card__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}
.weedu-expert-card__position {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Преимущества школы
   ========================================================================== */
.weedu-advantages {
    background: #F1F3FF;
    padding: 48px 0;
    margin: 40px 0;
}
.weedu-advantages .weedu-single-section {
    margin-bottom: 0;
}

.weedu-advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.weedu-advantage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px;
}
.weedu-advantage__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.10);
}
.weedu-advantage__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}
.weedu-advantage__text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1024px) {
    .weedu-single__layout { grid-template-columns: 1fr; }
    .weedu-single__aside { position: static; }
    .weedu-hero__inner { grid-template-columns: 1fr; gap: 24px; }
    .weedu-hero__title { font-size: 34px; }
    .weedu-school-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weedu-cta__price { font-size: 32px; }
    .weedu-cta__title { font-size: 26px; }

    /* Школа */
    .weedu-directions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weedu-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weedu-advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weedu-advantages { padding: 32px 0; }
}

@media (max-width: 768px) {
    .weedu-hero__title { font-size: 28px; }
    .weedu-single-section__title { font-size: 22px; }
    .weedu-hero__features { grid-template-columns: 1fr; }
    .weedu-skill-list { grid-template-columns: 1fr; }
    .weedu-experts-list { grid-template-columns: 1fr; }
    .weedu-school-card { flex-direction: column; align-items: flex-start; }
    .weedu-school-stats { grid-template-columns: 1fr; }
    .weedu-hero__price-row { flex-direction: column; align-items: stretch; }
    .weedu-hero__price { font-size: 22px; }
    .weedu-hero__actions .weedu-btn { width: 100%; }
    .weedu-related__title { font-size: 20px; }
    .weedu-cta-fullwidth { padding: 40px 0; }

    .weedu-cta__inner { flex-direction: column; align-items: stretch; gap: 24px; }
    .weedu-cta__price { font-size: 28px; }
    .weedu-cta__title { font-size: 22px; }
    .weedu-cta__actions { justify-content: stretch; }
    .weedu-cta__actions .weedu-btn--primary {
        width: 100%;
        justify-content: center;
    }

    /* Стили контента на мобильных */
    .weedu-content h1 { font-size: 26px; }
    .weedu-content h2 { font-size: 22px; }
    .weedu-content h3 { font-size: 18px; }
    .weedu-content blockquote {
        padding: 1em 1.2em 1em 2.4em;
        font-size: 16px;
    }
    .weedu-content blockquote::before {
        font-size: 40px;
        left: 8px;
    }
    .weedu-content .alignleft,
    .weedu-content .alignright {
        float: none;
        margin: 1em auto;
        display: block;
    }

    /* Школа */
    .weedu-hero__school-card { padding: 24px; }
    .weedu-hero__school-card .weedu-hero__title { font-size: 26px; }
    .weedu-directions-grid { grid-template-columns: 1fr; }
    .weedu-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weedu-advantages-grid { grid-template-columns: 1fr; gap: 16px; }
    .weedu-advantage {
        flex-direction: row;
        align-items: flex-start;
    }
    .weedu-advantage__icon {
        flex-shrink: 0;
    }
    .weedu-hero__school-actions .weedu-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .weedu-cards--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Страница эксперта
   ========================================================================== */

/* --- Hero эксперта --- */
.weedu-hero--expert {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 85% 10%, rgba(99, 91, 255, 0.10) 0%, rgba(99, 91, 255, 0) 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(20, 184, 166, 0.08) 0%, rgba(20, 184, 166, 0) 70%),
        linear-gradient(180deg, #F8F9FF 0%, #FFFFFF 100%);
}
.weedu-hero__inner--expert {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.weedu-hero__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.10);
}
.weedu-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.weedu-hero__photo-placeholder {
    font-size: 96px;
    font-weight: 800;
    color: var(--color-accent);
}

.weedu-hero__position {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

/* Соцсети в hero */
.weedu-hero__socials {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}
.weedu-hero__social-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.weedu-hero__social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-light);
    text-decoration: none;
}

/* --- Об эксперте: образование + цитата --- */
.weedu-expert-education {
    margin: 28px 0 0;
    padding: 20px 24px;
    background: #FAFBFC;
    border: 1px solid var(--color-border);
    border-radius: 14px;
}
.weedu-expert-education__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
}
.weedu-expert-education p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.weedu-expert-quote {
    position: relative;
    margin: 28px 0 0;
    padding: 24px 32px 24px 72px;
    background: linear-gradient(135deg, #F5F7FF 0%, #FAFBFF 100%);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 16px 16px 0;
    font-size: 18px;
    font-style: italic;
    line-height: 1.55;
    color: var(--color-text-primary);
}
.weedu-expert-quote::before {
    content: "\201C";
    position: absolute;
    left: 20px;
    top: 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 72px;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.35;
}

/* --- Compact directions grid --- */
.weedu-directions-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Мини-карточка школы (с телом) --- */
.weedu-school-mini__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.weedu-school-mini__count {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* --- Timeline (опыт работы) --- */
.weedu-timeline {
    position: relative;
    padding-left: 32px;
}
.weedu-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-border);
}
.weedu-timeline__item {
    position: relative;
    padding: 0 0 28px 0;
}
.weedu-timeline__item:last-child {
    padding-bottom: 0;
}
.weedu-timeline__item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}
.weedu-timeline__period {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.weedu-timeline__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.35;
    margin-bottom: 6px;
}
.weedu-timeline__desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- Расширенная карточка эксперта (Похожие) --- */
.weedu-expert-card--wide {
    padding: 24px 20px;
}
.weedu-expert-card--wide .weedu-expert-card__photo {
    width: 80px;
    height: 80px;
}
.weedu-expert-card--wide .weedu-expert-card__name {
    font-size: 17px;
}
.weedu-expert-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}
.weedu-expert-card__rating {
    color: #F59E0B;
    font-weight: 700;
}
.weedu-expert-card__courses {
    font-weight: 500;
}

/* --- Sidebar эксперта: подраздел --- */
.weedu-sidebar-card__subsection {
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}
.weedu-sidebar-card__subsection-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}
.weedu-sidebar-card__subsection-text {
    font-size: 14px;
    color: var(--color-text-primary);
    line-height: 1.55;
}

/* ==========================================================================
   Адаптив для страницы эксперта
   ========================================================================== */
@media (max-width: 1024px) {
    .weedu-hero__inner--expert {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .weedu-hero__photo {
        max-width: 280px;
    }
    .weedu-directions-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .weedu-hero__photo {
        max-width: 220px;
    }
    .weedu-hero__photo-placeholder {
        font-size: 72px;
    }
    .weedu-expert-quote {
        padding: 20px 20px 20px 56px;
        font-size: 16px;
    }
    .weedu-expert-quote::before {
        font-size: 56px;
        left: 12px;
        top: 6px;
    }
    .weedu-directions-grid--compact {
        grid-template-columns: 1fr;
    }
    .weedu-timeline {
        padding-left: 24px;
    }
    .weedu-timeline__item::before {
        left: -24px;
    }
}