:root {
    --pink: #ed0a60;
    --pink-hover: #ca0952;
    --ink: #212121;
    --muted: #797979;
    --line: #e2e2e2;
    --paper: #fff;
    --wash: #fff;
    --pink-wash: #fff0f5;
}

a:hover {
    text-decoration: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-align: center;
    font: 400 18px / 1.2 circe-r;
    transition: background .18s, border-color .18s, color .18s;
    cursor: pointer;
}

.button-primary {
    background: #ed0a60;
    color: white;
    border-color: #ed0a60;
}

.button-primary:hover {
    background: var(--pink-hover);
    border-color: var(--pink-hover);
}

.button-outline {
    color: var(--pink);
    background: white;
    border-color: var(--pink);
}

.more-row .button:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
}

article {
    padding-right: 0;
}

.campaign-cta {
    margin-top: 28px;
    min-width: 255px;
    min-height: 56px;
    font-size: 20px;
}

.free-section {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:minmax(0, 1.1fr) minmax(0, 2.15fr);
    align-items: center;
    gap: 30px;
    padding: 32px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    box-shadow: 0 12px 32px #50332905;
    scroll-margin-top: 28px
}

.free-intro h2 {
    font-size: 30px;
    line-height: 1.14;
    letter-spacing: -.3px
}

.free-intro > .button {
    margin-top: 24px;
    font-size: 17px;
    min-height: 50px
}

.free-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 16px
}

.free-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-self: stretch;
    transition: color .18s
}

.free-cover {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 500/357;
    background: #f8f7f6
}

.free-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .2s
}

.free-card:hover .free-cover img {
    transform: scale(1.015)
}

.free-card h3 {
    font-family: circe-b, sans-serif;
    font-size: 20px;
    line-height: 1.16;
    font-weight: 700;
    margin-top: 16px;
    color: #212121;
}

.free-card:hover h3 {
    color: var(--pink)
}

.free-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--pink);
    font-size: 13px;
    line-height: 1.2
}

.free-card-link > span {
    font: 20px/1 Arial, sans-serif
}

.programs-section {
    padding-top: 96px;
    scroll-margin-top: 0
}

.programs-heading {
    text-align: center;
    margin-bottom: 40px
}

.programs-heading h2 {
    max-width: 930px;
    margin-inline: auto;
    font-size: 42px;
    line-height: 1.13
}

.programs-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch
}

@media (min-width: 1500px) {
    .free-intro h2 {
        font-size: 32px
    }

    .programs-heading h2 {
        font-size: 44px
    }
}

@media (max-width: 1180px) {
    .free-section {
        gap: 26px;
        padding: 28px
    }

    .free-intro h2 {
        font-size: 28px
    }

    .free-grid {
        gap: 12px
    }

    .free-card h3 {
        font-size: 18px
    }

    .free-card-link {
        font-size: 12px
    }

    .free-intro > .button {
        font-size: 16px;
        padding-inline: 18px
    }

    .programs-grid {
        gap: 20px
    }

    .programs-heading h2 {
        font-size: 38px
    }

    .program-card h3 {
        font-size: 23px
    }
}

@media (max-width: 991px) {
    .free-section {
        grid-template-columns:1fr;
        margin-top: -42px;
        padding: 30px;
        gap: 28px
    }

    .free-intro {
        display: grid;
        grid-template-columns:minmax(0, 1fr) auto;
        align-items: center;
        gap: 28px
    }

    .free-intro h2 {
        max-width: 610px;
        font-size: 29px
    }

    .free-intro > .button {
        margin: 0
    }

    .free-grid {
        gap: 20px
    }

    .free-card h3 {
        font-size: 21px
    }

    .free-card-link {
        font-size: 14px
    }

    .programs-section {
        padding-top: 72px
    }

    .programs-heading h2 {
        font-size: 35px
    }

    .programs-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 768px) {
    .free-section {
        margin-top: -32px
    }

    .free-intro {
        grid-template-columns:1fr;
        gap: 20px
    }

    .free-intro > .button {
        justify-self: start
    }

    .free-intro h2 {
        font-size: 30px
    }

    .free-card h3 {
        font-size: 19px
    }

    .free-grid {
        gap: 14px
    }

    .free-card-link {
        font-size: 12px
    }

    .programs-heading h2 {
        font-size: 34px
    }

    .programs-section {
        padding-bottom: 65px
    }
}

@media (max-width: 600px) {
    .free-grid {
        grid-template-columns:1fr;
        gap: 26px
    }

    .free-card {
        display: grid;
        grid-template-columns:116px minmax(0, 1fr);
        grid-template-rows:auto auto;
        gap: 8px 16px;
        align-items: start
    }

    .free-cover {
        grid-row: 1/3;
        width: 116px
    }

    .free-card h3 {
        font-size: 20px;
        margin: 0;
        align-self: end
    }

    .free-card-link {
        font-size: 13px;
        margin: 0;
        padding: 0;
        align-self: start;
        justify-content: flex-start
    }

    .free-card-link > span {
        font-size: 18px
    }

    .free-section {
        padding: 26px;
        gap: 28px
    }

    .free-intro h2 {
        font-size: 28px
    }

    .free-intro > .button {
        width: 100%;
        justify-self: stretch
    }

    .programs-grid {
        grid-template-columns:1fr
    }

    .programs-section {
        padding-top: 56px
    }

    .programs-heading {
        margin-bottom: 28px
    }

    .programs-heading h2 {
        font-size: 32px
    }

    .program-card h3 {
        font-size: 26px
    }

    .program-copy p {
        font-size: 17px;
        line-height: 1.35
    }

    .program-action .button {
        font-size: 17px
    }

    .more-row .button {
        width: 100%
    }
}

@media (max-width: 408px) {
    .free-section {
        padding: 24px;
        gap: 26px
    }

    .free-intro h2 {
        font-size: 26px;
        line-height: 1.15
    }

    .free-card {
        grid-template-columns:105px minmax(0, 1fr);
        gap: 7px 13px
    }

    .free-cover {
        width: 105px
    }

    .free-card h3 {
        font-size: 18px
    }

    .free-card-link {
        font-size: 12px;
        gap: 5px
    }

    .programs-heading h2 {
        font-size: 29px
    }

    .program-card h3 {
        font-size: 24px
    }

    .program-copy p {
        font-size: 16px
    }
}

@media (max-width: 350px) {
    .free-card {
        grid-template-columns:88px minmax(0, 1fr);
        gap: 7px 11px
    }

    .free-cover {
        width: 88px
    }

    .free-card h3 {
        font-size: 17px
    }

    .free-card-link {
        font-size: 11px
    }

    .free-intro h2 {
        font-size: 25px
    }
}

@media (max-width: 600px) {
    .free-card {
        grid-template-rows:auto;
        align-items: center
    }

    .free-cover {
        grid-row: auto
    }

    .free-card h3 {
        align-self: center
    }
}

.program-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s, box-shadow .18s
}

.program-card:hover {
    border-color: #eca6be;
    box-shadow: 0 6px 24px #63334407
}

.program-cover {
    display: block;
    width: 100%;
    aspect-ratio: 500/357;
    overflow: hidden;
    background: #fff;
    flex: none
}

.program-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top
}

.program-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 20px 20px 0
}

.program-format {
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 20px;
    background: #f5f5f5;
    color: var(--muted);
    margin-bottom: 12px
}

.program-card h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.12;
    overflow-wrap: break-word
}

.program-card h3 a:hover {
    color: var(--pink)
}

.program-card h3 a {
    color: #212121;
}

.program-copy p {
    font-size: 16px;
    line-height: 1.38;
    color: #696460;
    margin: auto 0 0;
    padding-top: 12px
}

.program-action {
    padding: 20px;
    flex: none
}

.program-action .button {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 10px;
    font-size: 16px;
    color: #fff;
}

.more-row {
    display: flex;
    justify-content: center;
    margin-top: 34px
}

.more-row .button {
    min-width: 240px;
    min-height: 52px
}

.more-row .button:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff
}

#free-dialog {
    width: min(640px, 92vw);
    max-height: 85vh;
    padding: 0;
    border: none;
    border-radius: 16px;
    overflow: auto;
    box-shadow: 0 20px 60px #0003
}

#free-dialog::backdrop {
    background: #0009
}

.dialog-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line)
}

.dialog-header h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15
}

.dialog-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #696460;
    cursor: pointer;
    transition: background .18s
}

.dialog-close:hover {
    background: #f5f5f5
}

.dialog-course {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line)
}

.dialog-course:last-child {
    border-bottom: none
}

.dialog-course img {
    width: 100%;
    aspect-ratio: 500/357;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f7f6
}

.dialog-course h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.16;
    color: #212121
}

.dialog-course p {
    font-size: 15px;
    line-height: 1.38;
    color: #696460;
    margin: 8px 0 14px
}

.dialog-course .button {
    min-height: 44px;
    font-size: 15px;
    padding: 10px 18px
}

@media (max-width: 480px) {
    .dialog-course {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .dialog-course img {
        max-width: 200px
    }
}
