.school-home-courses { padding-top: 48px; padding-bottom: 56px; color: #081329; }
.school-home-courses__header { border-bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.school-home-courses__header h2 { margin: 0; color: #081329; }
.school-home-courses__all { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: #075ee3; font-size: 18px; font-weight: 700; text-decoration: none; }
.school-home-courses svg { width: 22px; height: 22px; flex: 0 0 22px; }
.school-home-courses__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.school-home-course { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid #dce3ef; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(27, 46, 80, .045); }
.school-home-course__media { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1.57; border-radius: 12px; overflow: hidden; background: #edf3fc; color: #526184; font-size: 76px; text-decoration: none; }
.school-home-course__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.school-home-course__level { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; margin-top: 18px; padding: 6px 10px; border-radius: 7px; background: #e5f0ff; color: #075ee3; font-size: 14px; font-weight: 600; line-height: 1.3; }
.school-home-course__level svg { width: 19px; height: 19px; flex-basis: 19px; }
.school-home-course__title { font-family: inherit; min-height: 2.4em; margin: 14px 0 18px; overflow-wrap: anywhere; }
.school-home-course__title a { color: #081329; text-decoration: none; }
.school-home-course__description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 0 26px; color: #526184; font-size: inherit; line-height: 1.5; overflow-wrap: anywhere; }
.school-home-course__bottom { margin-top: auto; }
.school-home-course__facts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 20px; color: #526184; font-size: inherit; }
.school-home-course__facts > span { display: inline-flex; align-items: center; gap: 9px; }
.school-home-course__price { display: flex; flex-direction: column; justify-content: center; min-height: 78px; padding: 14px 0 12px; border-top: 1px solid #dfe6f0; }
.school-home-course__price strong { color: #081329; font-size: 20px; font-weight: 600; line-height: 1.4; }
.school-home-course__price small { margin-top: 3px; color: #526184; font-size: 14px; line-height: 1.35; }
.school-home-course__button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 18px; border-radius: 10px; font-size: 18px; font-weight: 400; line-height: 1.4; text-decoration: none; transition: background .15s; }
.school-home-course__button:hover { text-decoration: none; }
.school-home-courses a:focus-visible { outline: 3px solid #79aafa; outline-offset: 4px; }
@media (max-width: 991px) {
    .school-home-courses__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .school-home-courses__header { align-items: flex-start; }
}
@media (max-width: 600px) {
    .school-home-courses { padding-top: 32px; padding-bottom: 36px; }
    .school-home-courses__header { flex-direction: column; gap: 16px; margin-bottom: 24px; }
    .school-home-courses__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .school-home-course { padding: 16px; }
    .school-home-course__title { min-height: 0; }
}

.school-home-course__button svg { color: #fff; }
