/* Первый экран страницы обучения. Только #education-hero. */
#education-courses,
#education-process {
    scroll-margin-top: 112px;
}

.edu-hero,
.edu-hero *,
.edu-hero *::before,
.edu-hero *::after {
    box-sizing: border-box;
}

.edu-hero {
    margin: 0;
    padding: 36px 0 40px;
    background: #faf8f3;
    color: #292929;
    font-family: inherit;
    max-width: 100%;
}

.edu-hero__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.edu-hero__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-width: 0;
}

.edu-hero__eyebrow {
    margin: 0;
    color: #856438;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.edu-hero__title {
    margin: 14px 0 0;
    color: #292929;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.12;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.edu-hero__subtitle {
    margin: 14px 0 0;
    color: #856438;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    text-wrap: balance;
}

.edu-hero__lead {
    margin: 14px 0 0;
    max-width: 38rem;
    color: #666666;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.edu-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 24px 0 0;
    max-width: 28rem;
}

.edu-hero__cta,
.edu-hero__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.edu-hero__cta {
    border: 0;
    background: #856438;
    color: #ffffff;
}

.edu-hero__cta:hover {
    background: #6d502c;
    color: #ffffff;
}

.edu-hero__cta:active {
    background: #5c4324;
}

.edu-hero__more {
    border: 1px solid #856438;
    background: transparent;
    color: #856438;
}

.edu-hero__more:hover {
    background: #f3eee6;
    color: #6d502c;
}

.edu-hero__more:active {
    background: #ebe4d8;
}

.edu-hero__cta:focus-visible,
.edu-hero__more:focus-visible {
    outline: 2px solid #292929;
    outline-offset: 3px;
}

.edu-hero__photo {
    margin: 28px 0 0;
    min-width: 0;
}

.edu-hero__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    background: #f5f1ea;
}

.edu-hero__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 28px 0 0;
    padding: 4px 0 0;
    border-top: 1px solid #e6dfd4;
    list-style: none;
}

.edu-hero__facts li {
    min-width: 0;
    padding: 18px 16px 0 0;
}

.edu-hero__facts li:nth-child(odd) {
    border-right: 1px solid #e6dfd4;
    padding-right: 16px;
}

.edu-hero__facts li:nth-child(even) {
    padding-left: 16px;
}

.edu-hero__fact-value {
    display: block;
    color: #856438;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.edu-hero__fact-label {
    display: block;
    margin-top: 6px;
    color: #555555;
    font-size: 14px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .edu-hero {
        padding: 56px 0 60px;
    }

    .edu-hero__inner {
        width: min(1180px, calc(100% - 48px));
    }

    .edu-hero__stage {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
        column-gap: 32px;
        align-items: center;
    }

    .edu-hero__title {
        font-size: 38px;
    }

    .edu-hero__actions {
        max-width: none;
    }

    .edu-hero__photo {
        margin: 0;
        justify-self: end;
        width: 100%;
    }

    .edu-hero__subtitle {
        font-size: 24px;
    }

    .edu-hero__lead {
        font-size: 17px;
    }

    .edu-hero__cta,
    .edu-hero__more {
        min-height: 52px;
    }

    .edu-hero__photo img {
        border-radius: 20px;
    }

    .edu-hero__fact-value {
        font-size: 32px;
    }
}

@media (min-width: 1024px) {
    .edu-hero {
        padding: 72px 0 80px;
    }

    .edu-hero__stage {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
        column-gap: 44px;
        align-items: center;
    }

    .edu-hero__title {
        font-size: 50px;
        line-height: 1.1;
    }

    .edu-hero__subtitle {
        font-size: 26px;
    }

    .edu-hero__lead {
        font-size: 18px;
    }

    .edu-hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        max-width: none;
    }

    .edu-hero__cta,
    .edu-hero__more {
        width: auto;
        min-height: 56px;
        padding: 0 28px;
    }

    .edu-hero__photo {
        margin: 0;
        justify-self: end;
        width: 100%;
        max-width: 520px;
    }

    .edu-hero__photo img {
        border-radius: 24px;
    }

    .edu-hero__facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 36px;
    }

    .edu-hero__facts li,
    .edu-hero__facts li:nth-child(odd),
    .edu-hero__facts li:nth-child(even) {
        border-right: 1px solid #e6dfd4;
        padding: 22px 28px 0 0;
    }

    .edu-hero__facts li + li {
        padding-left: 28px;
    }

    .edu-hero__facts li:last-child {
        border-right: 0;
        padding-right: 0;
    }
}

@media (min-width: 1280px) {
    .edu-hero__stage {
        column-gap: 48px;
    }

    .edu-hero__title {
        font-size: 52px;
    }

    .edu-hero__photo {
        max-width: 560px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .edu-hero__cta,
    .edu-hero__more {
        transition: none;
    }
}
