/* Философия обучения. Только #education-philosophy. */
#education-philosophy,
#education-teachers {
    scroll-margin-top: 112px;
}

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

.edu-philo {
    margin: 0;
    padding: 52px 0;
    background: #ffffff;
    color: #292929;
    font-family: inherit;
}

.edu-philo__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "eyebrow"
        "title"
        "lead"
        "photo"
        "points"
        "stat"
        "action";
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    row-gap: 0;
}

.edu-philo__eyebrow { grid-area: eyebrow; }
.edu-philo__title { grid-area: title; }
.edu-philo__lead { grid-area: lead; }
.edu-philo__photo { grid-area: photo; }
.edu-philo__points { grid-area: points; }
.edu-philo__stat { grid-area: stat; }
.edu-philo__action { grid-area: action; }

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

.edu-philo__title {
    margin: 12px 0 0;
    max-width: 16em;
    color: #292929;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-wrap: balance;
}

.edu-philo__lead {
    margin-top: 16px;
    max-width: 40rem;
}

.edu-philo__lead p {
    margin: 0;
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
}

.edu-philo__lead p + p {
    margin-top: 12px;
}

.edu-philo__photo {
    margin: 24px 0 0;
    min-width: 0;
}

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

.edu-philo__points {
    display: grid;
    gap: 0;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.edu-philo__points li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px 0;
    border-top: 1px solid #e6dfd4;
}

.edu-philo__points li:last-child {
    border-bottom: 1px solid #e6dfd4;
}

.edu-philo__icon {
    width: 26px;
    height: 26px;
    margin-top: 1px;
    color: #856438;
}

.edu-philo__points h3 {
    margin: 0;
    color: #292929;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.edu-philo__points p {
    margin: 6px 0 0;
    color: #555555;
    font-size: 15px;
    line-height: 1.5;
}

.edu-philo__stat {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-top: 28px;
}

.edu-philo__stat-value {
    margin: 0;
    color: #856438;
    font-size: 52px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.edu-philo__stat-label,
.edu-philo__stat-note {
    margin: 0;
}

.edu-philo__stat-label {
    color: #292929;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.edu-philo__stat-note {
    margin-top: 4px;
    color: #555555;
    font-size: 14px;
    line-height: 1.4;
}

.edu-philo__action {
    margin-top: 24px;
}

.edu-philo__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    background: #856438;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease;
}

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

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

@media (min-width: 768px) {
    .edu-philo {
        padding: 64px 0 72px;
    }

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

    .edu-philo__inner {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
        column-gap: 32px;
        grid-template-areas:
            "eyebrow eyebrow"
            "title title"
            "photo lead"
            "photo points"
            "photo action"
            "stat stat";
        align-items: start;
    }

    .edu-philo__title {
        font-size: 36px;
    }

    .edu-philo__lead,
    .edu-philo__photo {
        margin-top: 24px;
    }

    .edu-philo__lead p {
        font-size: 17px;
    }

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

    .edu-philo__points h3 {
        font-size: 20px;
    }

    .edu-philo__points p {
        font-size: 16px;
    }

    .edu-philo__stat-value {
        font-size: 64px;
    }

    .edu-philo__cta {
        width: auto;
        min-height: 52px;
        padding: 0 28px;
    }
}

@media (min-width: 1024px) {
    .edu-philo {
        padding: 88px 0 96px;
    }

    .edu-philo__inner {
        column-gap: 48px;
    }

    .edu-philo__title {
        font-size: 44px;
    }

    .edu-philo__lead,
    .edu-philo__photo {
        margin-top: 28px;
    }

    .edu-philo__lead p {
        font-size: 18px;
    }

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

    .edu-philo__points {
        margin-top: 22px;
    }

    .edu-philo__points li {
        padding: 16px 0;
    }

    .edu-philo__action {
        margin-top: 22px;
    }

    .edu-philo__cta {
        min-height: 56px;
    }

    .edu-philo__stat {
        margin-top: 40px;
        padding-top: 8px;
    }

    .edu-philo__stat-value {
        font-size: 68px;
    }
}

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