.course-hero {
    padding-bottom: 1rem;
}

.course-hero__grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.course-kicker {
    margin: 0 0 .35rem;
    color: var(--primary);
    font-weight: 700;
    font-size: .92rem;
}

.course-hero h1,
.course-final h2,
.enroll-dialog h2 {
    margin-bottom: .6rem;
    font-size: 1.2rem;
}

.course-lead,
.course-doc,
.course-final p {
    color: var(--text);
}

.course-hero__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .7rem;
    margin: 1.1rem 0 0;
    color: var(--text);
}

.course-hero__price span {
    color: var(--primary);
    font-weight: 700;
}

.course-hero__price strong {
    font-size: 1.8rem;
    font-weight: 800;
}

.course-hero__price s {
    color: var(--muted);
}

.course-sheet {
    margin: .4rem 0 0;
}

.course-sheet img {
    display: block;
    width: min(100%, 28rem);
    height: auto;
    margin-left: auto;
    border-radius: .7rem;
    background: #fff;
    box-shadow: 0 14px 34px rgba(8, 32, 64, .18);
    transform: rotate(3deg);
}

.course-sheet figcaption {
    max-width: 28rem;
    margin: 1rem 0 0 auto;
    color: var(--muted);
    font-size: .85rem;
    text-align: right;
}

.course-facts {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .45rem;
}

.course-facts li {
    padding-left: 1.1rem;
    position: relative;
}

.course-facts li::before {
    content: "";
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--primary);
    position: absolute;
    left: 0;
    top: .45rem;
}

.course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.2rem;
}

.btn--line {
    background: var(--white);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.btn--line:hover {
    background: #eaf3fb;
    color: var(--primary-hover);
}


.course-about {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.3rem 1.4rem;
}

.course-about,
.course-about p,
.course-about li {
    color: var(--text);
}

.course-about p:last-child {
    margin-bottom: 0;
}

.course-about h2,
.course-about h3 {
    font-size: 1.15rem;
    margin: 1.1rem 0 .4rem;
    color: var(--text);
}

.course-about h2:first-child,
.course-about h3:first-child,
.course-about p:first-child {
    margin-top: 0;
}

.course-about ul,
.course-about ol {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.course-about li + li {
    margin-top: .35rem;
}

.course-tariff.is-current {
    box-shadow: 0 0 0 2px var(--primary);
}

.course-hours {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.course-hours:hover {
    color: var(--primary-hover);
}

.course-tariff .card__price {
    margin-top: .8rem;
}

.course-doc {
    margin: .35rem 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.course-tariff .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

.course-empty {
    margin: 0;
    color: var(--text);
}

.course-planwrap {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.course-plan {
    width: 100%;
    min-width: 46rem;
    border-collapse: collapse;
}

.course-plan th,
.course-plan td {
    text-align: center;
    padding: .75rem .7rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-weight: 400;
    vertical-align: top;
}

.course-plan th:first-child,
.course-plan td:first-child {
    text-align: left;
    width: 42%;
}

.course-plan thead th {
    font-weight: 700;
    font-size: .85rem;
    color: var(--muted);
}

.course-plan tr.is-part th,
.course-plan tr.is-part td {
    font-weight: 700;
    background: var(--surface);
}

.course-plan tr:last-child th,
.course-plan tr:last-child td {
    border-bottom: 0;
}

.course-final {
    text-align: center;
}

.enroll-dialog {
    width: min(34rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
    background: var(--white);
}

.enroll-dialog::backdrop {
    background: rgba(21, 21, 22, .45);
}

.enroll-dialog h2 {
    font-size: 1.2rem;
}

.enroll-dialog__body {
    padding: 1.3rem 1.4rem 1.5rem;
    overflow: auto;
    max-height: calc(100vh - 2rem);
}

.enroll-dialog__close {
    float: right;
    margin: 0 0 .4rem .8rem;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.enroll-dialog__offer {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .8rem;
    align-items: baseline;
    margin: 0 0 .6rem;
}

.enroll-dialog__offer s {
    color: var(--muted);
}

.enroll-errors {
    margin: .8rem 0 0;
    color: #9b1c1c;
}

@media (min-width: 900px) {
    .course-hero__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
        align-items: center;
        gap: 2rem;
    }

    .course-sheet {
        margin-top: 0;
    }

    .course-sheet img,
    .course-sheet figcaption {
        width: 100%;
        max-width: none;
    }
}
