.meicourse-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* =========================================
   HERO
========================================= */

.course-hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.course-hero-left {
    position: sticky;
    top: 20px;
}

.course-price {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,.05);
}

.price-value {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111827;
}

.price-free {
    font-size: 32px;
    font-weight: 700;
    color: #059669;
}

.course-price .btn {
    width: 100%;
    height: 52px;
    border-radius: 7px;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.course-price .btn-primary {
    background: #2563eb;
    color: #fff;
    transition: .2s ease;
}

.course-price .btn-primary:hover {
    background: #1d4ed8;
}

.course-hero-right img {
    width: 100%;
    border-radius: 7px;
    display: block;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
}

/* =========================================
   TITLE
========================================= */

.course-header {
    margin-bottom: 30px;
}

.course-title {
    font-size: 44px;
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 20px;
    color: #111827;
}

.course-summary {
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
}

/* =========================================
   META
========================================= */

.course-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: 10px;
    margin-bottom: 50px;
}

.meta-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 22px;
}

.meta-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}

.meta-value {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    line-height: 1.5;
}

/* =========================================
   BLOCKS
========================================= */

.course-block {
    margin: 30px 0 20px;
}

.course-block h2,
.course-program h2,
.course-fields h2 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 24px;
    font-weight: 700;
    color: #111827;
}

.course-content {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

.course-content p:last-child {
    margin-bottom: 0;
}

.course-content ul {
    padding-left: 22px;
}

.course-content li {
    margin-bottom: 10px;
}

/* =========================================
   PROGRAM
========================================= */

.course-program {
    margin-bottom: 60px;
}

.program-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.program-item {
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid #e5e7eb;
    padding: 22px 26px;
    transition: .2s ease;
}



.program-number {
    width: 55px;
    height: 42px;
    min-width: 42px;
    border-radius: 7px;
    border: 2px solid #48f;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-title {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
    color: #111827;
}

/* =========================================
   CUSTOMFIELDS DEBUG
========================================= */

.course-fields {
    margin-top: 80px;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.field-item {
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 18px;
    background: #fff;
}

.field-key {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 10px;
    word-break: break-word;
}

.field-value {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    word-break: break-word;
}

/* =========================================
   TABLE
========================================= */

.course-table {
    width: 100%;
    border-collapse: collapse;
}

.course-table tr:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.course-table td {
    padding: 16px 0;
    vertical-align: top;
}

.course-table td:first-child {
    width: 320px;
    font-weight: 600;
    color: #6b7280;
    padding-right: 20px;
}

.course-table td:last-child {
    color: #111827;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 1100px) {

    .course-hero {
        grid-template-columns: 1fr;
    }

    .course-hero-left {
        position: static;
        order: 2;
    }

    .course-hero-right {
        order: 1;
    }

}

@media (max-width: 768px) {

    .meicourse-page {
        padding: 20px 15px 60px;
    }

    .course-title {
        font-size: 32px;
    }

    .course-meta {
        grid-template-columns: 1fr;
    }

    .course-block h2,
    .course-program h2,
    .course-fields h2 {
        font-size: 26px;
    }

    .price-value {
        font-size: 34px;
    }

    .program-item {
        padding: 18px;
    }

    .program-title {
        font-size: 16px;
    }

}
.program-item {
    margin-left: calc(var(--level, 0) * 40px);
}

.program-item.level-0 { --level: 0; }
.program-item.level-1 { --level: 1; }
.program-item.level-2 { --level: 2; }
.program-item.level-3 { --level: 3; }
.program-item.level-4 { --level: 4; }
.program-item.level-5 { --level: 5; }
.program-item.level-6 { --level: 6; }
.program-item.level-7 { --level: 7; }
.program-item.level-8 { --level: 8; }
.program-item.level-9 { --level: 9; }
.program-item.level-10 { --level: 10; }
