/* Главная страница: первый экран.
   Внешний ориентир — действующая Tilda-страница, но без зависимости от Tilda CDN. */

.home-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 78%, rgba(215, 82, 44, .24) 0, rgba(215, 82, 44, 0) 26%),
        linear-gradient(107deg, #0c1a2a 0%, #102239 56%, #14263c 100%);
    isolation: isolate;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(4, 11, 21, .34), rgba(4, 11, 21, .04) 64%),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,.012) 0,
            rgba(255,255,255,.012) 1px,
            transparent 1px,
            transparent 4px
        );
}

.home-hero__decor {
    position: absolute;
    z-index: -2;
    top: 0;
    right: max(0px, calc((100vw - 1180px) / 2 - 30px));
    width: min(58vw, 760px);
    height: 100%;
    opacity: .98;
    pointer-events: none;
}

.home-hero__decor img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.home-hero__inner {
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 56px;
    padding-bottom: 58px;
}

.home-hero__content {
    width: min(610px, 62%);
}

.home-hero__audience {
    display: inline-flex;
    align-items: stretch;
    margin-bottom: 43px;
    padding: 3px;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 3px;
    background: rgba(7, 19, 34, .28);
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
}

.home-hero__audience-item {
    min-width: 98px;
    padding: 7px 15px 8px;
    color: #fff;
    border-radius: 2px;
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.home-hero__audience-item--active {
    color: #0f1e31;
    background: #fff;
    font-weight: 700;
}

a.home-hero__audience-item:hover,
a.home-hero__audience-item:focus-visible {
    background: rgba(255,255,255,.16);
    outline: none;
}

.home-hero h1 {
    max-width: 590px;
    margin: 0;
    color: #fff;
    font-size: clamp(45px, 4.15vw, 64px);
    font-weight: 400;
    line-height: .99;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.home-hero__subtitle {
    max-width: 600px;
    margin: 27px 0 0;
    color: rgba(255,255,255,.92);
    font-size: 19px;
    line-height: 1.48;
    font-style: italic;
}

.home-hero__cta {
    width: min(100%, 310px);
    min-height: 51px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 35px;
    padding: 11px 24px;
    color: #fff;
    background: #c5072d;
    border: 1px solid #c5072d;
    border-radius: 1px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(197,7,45,.18);
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.home-hero__cta:hover,
.home-hero__cta:focus-visible {
    color: #fff;
    background: #a90025;
    border-color: #a90025;
    transform: translateY(-1px);
    outline: none;
}


/* На планшете визуал остаётся справа, но становится менее доминирующим. */
@media (max-width: 1100px) {
    .home-hero {
        min-height: 500px;
    }

    .home-hero__inner {
        min-height: 500px;
        padding-top: 46px;
        padding-bottom: 50px;
    }

    .home-hero__content {
        width: min(650px, 68%);
    }

    .home-hero__decor {
        width: 62vw;
        right: -70px;
        opacity: .74;
    }

    .home-hero h1 {
        font-size: clamp(43px, 5.6vw, 59px);
    }
}

@media (max-width: 760px) {
    .home-hero {
        min-height: 590px;
    }

    .home-hero::before {
        background:
            linear-gradient(90deg, rgba(5, 13, 24, .48), rgba(5, 13, 24, .18)),
            linear-gradient(180deg, rgba(7, 18, 32, .08), rgba(7, 18, 32, .38));
    }

    .home-hero__inner {
        min-height: 590px;
        align-items: flex-start;
        padding-top: 52px;
        padding-bottom: 54px;
    }

    .home-hero__content {
        width: 100%;
        max-width: 610px;
    }

    .home-hero__decor {
        top: auto;
        right: -120px;
        bottom: -55px;
        width: 680px;
        height: 470px;
        opacity: .36;
    }

    .home-hero__audience {
        margin-bottom: 42px;
    }

    .home-hero h1 {
        max-width: 560px;
        font-size: clamp(41px, 10.8vw, 58px);
    }

    .home-hero__subtitle {
        max-width: 570px;
        font-size: 18px;
    }
}

@media (max-width: 500px) {
    .home-hero {
        min-height: 565px;
    }

    .home-hero__inner {
        min-height: 565px;
        padding-top: 36px;
        padding-bottom: 42px;
    }

    .home-hero__audience {
        width: 100%;
        max-width: 245px;
        margin-bottom: 34px;
    }

    .home-hero__audience-item {
        min-width: 0;
        flex: 1 1 50%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .home-hero h1 {
        font-size: clamp(36px, 11.5vw, 48px);
        line-height: 1.02;
    }

    .home-hero__subtitle {
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.5;
    }

    .home-hero__cta {
        width: 100%;
        max-width: 320px;
        min-height: 50px;
        margin-top: 30px;
    }

    .home-hero__decor {
        right: -210px;
        bottom: -82px;
        width: 650px;
        opacity: .28;
    }

}

/* ---------- Преимущества: восстановлено по экспорту Tilda ---------- */

.home-benefits {
    padding: 74px 0 88px;
    background: #fff;
}

.home-benefits__title {
    width: 100%;
    max-width: 993px;
    margin: 0 0 46px;
    color: #101e31;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.home-benefits__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.home-benefits__viewport::-webkit-scrollbar {
    display: none;
}

.home-benefits__viewport:active {
    cursor: grabbing;
}

.home-benefits__track {
    width: max-content;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.home-benefit-tilda {
    position: relative;
    width: 373px;
    height: 576px;
    flex: 0 0 373px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
}

.home-benefit-tilda--price {
    color: #fff;
    background: #101e31;
}

.home-benefit-tilda--groups {
    color: #fff;
    background: #328354;
}

.home-benefit-tilda--location {
    color: #101e31;
    background: #cadfd3;
}

.home-benefit-tilda--probnik {
    width: 530px;
    flex-basis: 530px;
    color: #fff;
    background: #537294;
}

.home-benefit-tilda__text {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 30px 40px 0;
}

.home-benefit-tilda--price .home-benefit-tilda__text,
.home-benefit-tilda--groups .home-benefit-tilda__text {
    height: 303px;
}

.home-benefit-tilda--location .home-benefit-tilda__text {
    height: 228px;
}

.home-benefit-tilda--probnik .home-benefit-tilda__text {
    height: 350px;
}

.home-benefit-tilda h3 {
    margin: 0;
    color: inherit;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.18;
    text-transform: uppercase;
}

.home-benefit-tilda p {
    margin: 14px 0 0;
    color: inherit;
    font-size: 18px;
    line-height: 1.48;
    font-style: italic;
}

.home-benefit-tilda__image {
    width: 100%;
    display: block;
    margin-top: auto;
    object-fit: cover;
    pointer-events: none;
}

.home-benefit-tilda--price .home-benefit-tilda__image {
    height: 273px;
}

.home-benefit-tilda--groups .home-benefit-tilda__image {
    height: 272px;
}

.home-benefit-tilda--location .home-benefit-tilda__image {
    height: 348px;
}

.home-benefit-tilda--probnik .home-benefit-tilda__image {
    height: 226px;
}

@media (max-width: 1199px) {
    .home-benefits {
        padding-top: 68px;
        padding-bottom: 82px;
    }
}

@media (max-width: 959px) {
    .home-benefits {
        padding-top: 50px;
        padding-bottom: 62px;
    }

    .home-benefits__title {
        max-width: 940px;
        margin-bottom: 32px;
        font-size: 30px;
    }

    .home-benefits__track {
        gap: 10px;
    }

    .home-benefit-tilda {
        width: 230px;
        height: 364px;
        flex-basis: 230px;
    }

    .home-benefit-tilda--probnik {
        width: 310px;
        flex-basis: 310px;
    }

    .home-benefit-tilda__text {
        padding: 20px 20px 0;
    }

    .home-benefit-tilda--price .home-benefit-tilda__text,
    .home-benefit-tilda--groups .home-benefit-tilda__text {
        height: 196px;
    }

    .home-benefit-tilda--location .home-benefit-tilda__text {
        height: 150px;
    }

    .home-benefit-tilda--probnik .home-benefit-tilda__text {
        height: 270px;
    }

    .home-benefit-tilda h3 {
        font-size: 18px;
        line-height: 1.2;
    }

    .home-benefit-tilda p {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.35;
    }

    .home-benefit-tilda--price .home-benefit-tilda__image,
    .home-benefit-tilda--groups .home-benefit-tilda__image {
        height: 168px;
    }

    .home-benefit-tilda--location .home-benefit-tilda__image {
        height: 214px;
    }

    .home-benefit-tilda--probnik .home-benefit-tilda__image {
        height: 94px;
    }
}

@media (max-width: 620px) {
    .home-benefits__title {
        margin-bottom: 27px;
        font-size: 27px;
        line-height: 1.12;
    }
}

/* ---------- Подготовка по предметам: восстановлено по экспорту Tilda ---------- */

.home-subjects {
    padding: 150px 0 100px;
    background: #fff;
}

.home-subjects > .es-container {
    max-width: 1202px;
}

.home-subjects__title {
    width: 100%;
    max-width: 993px;
    margin: 0;
    color: #101e31;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.home-subjects__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    margin-top: 60px;
}

.home-subjects__tab {
    min-height: 37px;
    padding: 7px 16px 8px;
    color: #101e31;
    background: #e7eaf1;
    border: 0;
    border-radius: 2px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.home-subjects__tab:hover,
.home-subjects__tab:focus-visible {
    color: #101e31;
    background: #dce2e9;
    outline: none;
}

.home-subjects__tab.is-active {
    color: #fff;
    background: #537294;
}

.home-subjects__panel {
    margin-top: 60px;
}

.home-subjects__panel[hidden] {
    display: none;
}

.home-subjects__grid {
    display: grid;
    grid-template-columns: repeat(3, 374px);
    gap: 20px;
    width: 1162px;
}

.home-subjects__grid--school {
    grid-template-columns: repeat(2, 374px);
    width: 768px;
}

.home-subject-card {
    position: relative;
    width: 374px;
    height: 470px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    color: #101e31;
    background: #fff;
    border: 1px solid #b9c6d3;
}

.home-subject-card--school {
    height: 520px;
}

.home-subject-card__badge {
    position: absolute;
    z-index: 2;
    top: -1px;
    right: -1px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 40px);
    padding: 4px 10px 5px;
    color: #101e31;
    background: #dcebd8;
    font-size: 14px;
    line-height: 1.15;
}

.home-subject-card__image {
    width: 312px;
    height: 172px;
    flex: 0 0 172px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.home-subject-card--school .home-subject-card__image {
    height: 270px;
    flex-basis: 270px;
}

.home-subject-card h3 {
    margin: 20px 0 0;
    color: #101e31;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.28;
}

.home-subject-card p {
    margin: 10px 0 0;
    color: #475b73;
    font-size: 18px;
    line-height: 1.55;
    font-style: italic;
}

.home-subject-card__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    color: #101e31;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.home-subject-card__link span {
    font-size: 20px;
    line-height: 1;
    transition: transform .15s ease;
}

.home-subject-card__link:hover,
.home-subject-card__link:focus-visible {
    color: #537294;
    outline: none;
}

.home-subject-card__link:hover span,
.home-subject-card__link:focus-visible span {
    transform: translateX(4px);
}

@media (max-width: 1199px) {
    .home-subjects > .es-container {
        max-width: 960px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .home-subjects__grid {
        grid-template-columns: repeat(3, 300px);
        width: 940px;
    }

    .home-subjects__grid--school {
        grid-template-columns: repeat(2, 300px);
        width: 620px;
    }

    .home-subject-card {
        width: 300px;
        height: 470px;
        padding: 20px;
    }

    .home-subject-card--school {
        height: 430px;
    }

    .home-subject-card__image {
        width: 258px;
        height: 172px;
        flex-basis: 172px;
    }

    .home-subject-card--school .home-subject-card__image {
        height: 172px;
        flex-basis: 172px;
    }
}

@media (max-width: 959px) {
    .home-subjects {
        padding-top: 150px;
        padding-bottom: 72px;
    }

    .home-subjects > .es-container {
        width: 100%;
        max-width: none;
        padding-left: 10px;
        padding-right: 10px;
    }

    .home-subjects__title {
        max-width: 940px;
        font-size: 34px;
    }

    .home-subjects__tabs {
        gap: 6px;
        margin-top: 30px;
        max-width: 300px;
    }

    .home-subjects__tab {
        min-height: 25px;
        padding: 5px 10px 6px;
        font-size: 12px;
    }

    .home-subjects__panel {
        margin-top: 28px;
    }

    .home-subjects__grid,
    .home-subjects__grid--school {
        grid-template-columns: 300px;
        gap: 10px;
        width: 300px;
    }

    .home-subject-card {
        width: 300px;
        height: 360px;
        padding: 20px;
    }

    .home-subject-card--school {
        height: 400px;
    }

    .home-subject-card__badge {
        min-height: 24px;
        padding: 3px 8px 4px;
        font-size: 11px;
    }

    .home-subject-card__image {
        width: 258px;
        height: 144px;
        flex-basis: 144px;
    }

    .home-subject-card--school .home-subject-card__image {
        height: 196px;
        flex-basis: 196px;
    }

    .home-subject-card h3 {
        margin-top: 16px;
        font-size: 20px;
    }

    .home-subject-card p {
        margin-top: 6px;
        font-size: 15px;
        line-height: 1.35;
    }

    .home-subject-card__link {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .home-subjects {
        padding-top: 92px;
    }

    .home-subjects__title {
        font-size: 32px;
    }
}

/* ---------- Путь до поступления: восстановлено по экспорту Tilda ---------- */

.home-path {
    padding: 72px 0 78px;
    color: #101e31;
    background: #fff;
}

.home-path > .es-container {
    max-width: 1320px;
}

.home-path__title-wrap {
    width: 100%;
    max-width: 900px;
}

.home-path__title {
    margin: 0;
    color: #101e31;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.home-path__title > span:first-child {
    display: block;
}

.home-path__title-second {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 3px;
    margin-left: 355px;
    white-space: nowrap;
}

.home-path__title-second img {
    width: 28px;
    height: 23px;
    flex: 0 0 auto;
}

.home-path__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 53px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-path__viewport::-webkit-scrollbar {
    display: none;
}

.home-path__track {
    width: max-content;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.home-path-card {
    width: 290px;
    flex: 0 0 290px;
}

.home-path-card--three,
.home-path-card--five {
    width: 326px;
    flex-basis: 326px;
}

.home-path-card__step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 12px;
    align-items: center;
    column-gap: 13px;
    min-height: 46px;
    color: #6a829e;
    font-size: 16px;
    line-height: 1;
}

.home-path-card__step::after {
    content: "";
    height: 1px;
    background: #ccd7e1;
}

.home-path-card__step i {
    grid-column: 1;
    width: 0;
    height: 0;
    margin-top: 6px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid #79a96b;
}

.home-path-card__body {
    position: relative;
    height: 393px;
    overflow: hidden;
    padding: 23px 24px 22px;
    color: #3f5064;
    background: #f3f5f7;
    border-radius: 4px 4px 0 0;
}

.home-path-card--two .home-path-card__body {
    background: #deead9;
}

.home-path-card--five .home-path-card__body {
    color: #fff;
    background: #537294;
}

.home-path-card h3 {
    margin: 0;
    color: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
}

.home-path-card p {
    margin: 17px 0 0;
    color: inherit;
    font-size: 15px;
    line-height: 1.48;
    font-style: italic;
}

.home-path-card__art {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 128px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.home-path-card__button {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 18px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #101e31;
    background: #fff;
    border-radius: 2px;
    font-size: 13px;
    text-decoration: none;
}

.home-path-card__button:hover,
.home-path-card__button:focus-visible {
    color: #101e31;
    background: #eef3ea;
    outline: none;
}

.home-path-card__separator {
    height: 1px;
    margin: 24px 0 0;
    background: #ccd7e1;
}

.home-path-card__secondary {
    margin-top: 20px !important;
    font-style: normal !important;
}

.home-path-card__checks {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-path-card__checks span {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: 13px;
    font-style: italic;
}

.home-path-card__checks img {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

@media (min-width: 1200px) {
    .home-path__viewport {
        overflow-x: auto;
    }

    .home-path__track {
        padding-right: 120px;
    }
}

@media (max-width: 959px) {
    .home-path {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .home-path > .es-container {
        max-width: none;
        padding-left: 10px;
        padding-right: 10px;
    }

    .home-path__title {
        font-size: 30px;
    }

    .home-path__title-second {
        margin-left: 126px;
        gap: 9px;
    }

    .home-path__title-second img {
        width: 20px;
        height: 17px;
    }

    .home-path__viewport {
        margin-top: 35px;
    }

    .home-path__track {
        gap: 10px;
    }

    .home-path-card {
        width: 230px;
        flex-basis: 230px;
    }

    .home-path-card--three,
    .home-path-card--five {
        width: 300px;
        flex-basis: 300px;
    }

    .home-path-card__step {
        min-height: 35px;
        font-size: 13px;
    }

    .home-path-card__body {
        height: 311px;
        padding: 19px 20px 18px;
    }

    .home-path-card h3 {
        font-size: 15px;
    }

    .home-path-card p {
        margin-top: 12px;
        font-size: 12px;
        line-height: 1.42;
    }

    .home-path-card__art {
        height: 100px;
    }

    .home-path-card__button {
        left: 20px;
        right: 20px;
        bottom: 15px;
        min-height: 36px;
        font-size: 12px;
    }

    .home-path-card__separator {
        margin-top: 16px;
    }

    .home-path-card__secondary {
        margin-top: 14px !important;
    }

    .home-path-card__checks {
        left: 20px;
        right: 20px;
        bottom: 14px;
    }

    .home-path-card__checks span {
        min-height: 33px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .home-path__title {
        font-size: 27px;
    }

    .home-path__title-second {
        margin-left: 80px;
    }
}

/* ---------- О нас: восстановлено по текущему виду Tilda ---------- */

.home-about {
    padding: 78px 0 84px;
    background: #fff;
}

.home-about > .es-container {
    max-width: 1180px;
}

.home-about__top {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: start;
    gap: 52px;
}

.home-about__main-photo {
    width: 100%;
}

.home-about__main-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.home-about__content {
    min-width: 0;
    padding-top: 4px;
}

.home-about__title {
    margin: 0;
    color: #101e31;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

.home-about__lead {
    max-width: 505px;
    margin: 34px 0 0;
    color: #40546c;
    font-size: 18px;
    line-height: 1.55;
    font-style: italic;
}

.home-about__line {
    width: 100%;
    max-width: 520px;
    height: 1px;
    margin: 40px 0 34px;
    background: #aebdca;
}

.home-about__quality {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    max-width: 520px;
}

.home-about__quality img {
    width: 160px;
    height: auto;
    display: block;
}

.home-about__quality p {
    margin: 0;
    color: #40546c;
    font-size: 17px;
    line-height: 1.5;
    font-style: italic;
}

.home-about__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.home-about-card {
    position: relative;
    min-height: 270px;
    padding: 54px 20px 24px;
    color: #40546c;
    background: #fff;
    border: 1px solid #b9c6d3;
    border-radius: 3px;
}

.home-about-card__check {
    position: absolute;
    top: 17px;
    left: 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #78a3d2;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.home-about-card p {
    margin: 0;
    color: #40546c;
    font-size: 16px;
    line-height: 1.5;
    font-style: italic;
}

@media (max-width: 1000px) {
    .home-about {
        padding-top: 66px;
        padding-bottom: 72px;
    }

    .home-about__top {
        gap: 36px;
    }

    .home-about__title {
        font-size: 31px;
    }

    .home-about__lead {
        margin-top: 25px;
        font-size: 16px;
    }

    .home-about__line {
        margin-top: 28px;
        margin-bottom: 25px;
    }

    .home-about__quality {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 20px;
    }

    .home-about__quality img {
        width: 125px;
    }

    .home-about__quality p {
        font-size: 15px;
    }

    .home-about__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-about-card {
        min-height: 220px;
    }
}

@media (max-width: 700px) {
    .home-about {
        padding-top: 52px;
        padding-bottom: 58px;
    }

    .home-about__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-about__main-photo {
        order: 1;
    }

    .home-about__content {
        order: 2;
    }

    .home-about__lead,
    .home-about__line,
    .home-about__quality {
        max-width: none;
    }

    .home-about__cards {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 36px;
    }

    .home-about-card {
        min-height: 0;
        padding: 49px 18px 22px;
    }
}

@media (max-width: 430px) {
    .home-about__quality {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 16px;
    }

    .home-about__quality img {
        width: 100px;
    }

    .home-about__quality p {
        font-size: 14px;
    }
}

/* ---------- Преподаватели: восстановлено по текущему виду Tilda ---------- */

.home-teachers {
    padding: 32px 0 78px;
    color: #101e31;
    background: #f1f3f6;
}

.home-teachers > .es-container {
    max-width: 1180px;
}

.home-teachers__head {
    position: relative;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    padding: 0 38px;
}

.home-teachers__title {
    margin: 0;
    color: #101e31;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.home-teachers__lead {
    margin: 2px 0 0;
    color: #475b73;
    font-size: 18px;
    line-height: 1.45;
}

.home-teachers__pixels {
    position: absolute;
    right: 34px;
    top: 52px;
    width: 47px;
    height: 47px;
}

.home-teachers__pixels i {
    position: absolute;
    width: 13px;
    height: 13px;
}

.home-teachers__pixels i:nth-child(1) {
    left: 0;
    bottom: 0;
    background: #101e31;
}

.home-teachers__pixels i:nth-child(2) {
    left: 15px;
    bottom: 13px;
    background: #537294;
}

.home-teachers__pixels i:nth-child(3) {
    left: 29px;
    bottom: 0;
    background: #7991aa;
}

.home-teachers__pixels i:nth-child(4) {
    left: 29px;
    bottom: 26px;
    background: #78a96d;
}

.home-teachers__list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 54px;
    padding: 0 38px;
}

.home-teacher-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 38px;
    min-height: 575px;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
}

.home-teacher-card--reverse {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.home-teacher-card--reverse .home-teacher-card__photo {
    grid-column: 2;
    grid-row: 1;
}

.home-teacher-card--reverse .home-teacher-card__content {
    grid-column: 1;
    grid-row: 1;
}

.home-teacher-card__photo {
    position: relative;
    width: 320px;
    height: 515px;
    overflow: hidden;
    border-radius: 3px;
    background: #e8edf2;
}

.home-teacher-card__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.home-teacher-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #101e31;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 20px rgba(16,30,49,.18);
}

.home-teacher-card__play i {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}

.home-teacher-card__content {
    min-width: 0;
    padding-top: 5px;
}

.home-teacher-card h3 {
    margin: 0;
    color: #101e31;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.2;
}

.home-teacher-card blockquote {
    max-width: 520px;
    margin: 30px 0 0;
    color: #475b73;
    font-size: 18px;
    line-height: 1.45;
    font-style: normal;
}

.home-teacher-card__highlight {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-top: 27px;
    padding: 7px 12px 8px;
    color: #315036;
    background: #dcebd8;
    font-size: 14px;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-teacher-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 58px;
}

.home-teacher-stat {
    position: relative;
    min-height: 137px;
    overflow: hidden;
    padding: 24px 21px 20px;
    background:
        radial-gradient(circle at 93% 77%, rgba(207,215,224,.44), transparent 34%),
        linear-gradient(135deg, #f7f8fa 0%, #eef1f4 100%);
    border-radius: 8px;
}

.home-teacher-stat::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -34px;
    width: 140px;
    height: 85px;
    border: 1px solid rgba(151,166,183,.18);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.home-teacher-stat strong {
    position: relative;
    z-index: 1;
    display: block;
    color: #101e31;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
}

.home-teacher-stat span {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 30px;
    color: #617288;
    font-size: 12px;
    line-height: 1.35;
}

.home-teachers__footer {
    display: flex;
    justify-content: flex-end;
    padding: 24px 38px 0;
}

.home-teachers__footer a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #101e31;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-teachers__footer a:hover,
.home-teachers__footer a:focus-visible {
    color: #537294;
    outline: none;
}

@media (max-width: 1000px) {
    .home-teachers__head {
        grid-template-columns: 300px minmax(0, 1fr);
        padding-left: 24px;
        padding-right: 24px;
    }

    .home-teachers__title {
        font-size: 30px;
    }

    .home-teachers__lead {
        font-size: 16px;
    }

    .home-teachers__pixels {
        display: none;
    }

    .home-teachers__list {
        padding-left: 24px;
        padding-right: 24px;
    }

    .home-teacher-card,
    .home-teacher-card--reverse {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 28px;
        min-height: 0;
        padding: 30px;
    }

    .home-teacher-card--reverse .home-teacher-card__photo,
    .home-teacher-card--reverse .home-teacher-card__content {
        grid-column: auto;
        grid-row: auto;
    }

    .home-teacher-card__photo {
        width: 250px;
        height: 405px;
    }

    .home-teacher-card__stats {
        margin-top: 34px;
    }
}

@media (max-width: 760px) {
    .home-teachers {
        padding-top: 52px;
        padding-bottom: 58px;
    }

    .home-teachers__head {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .home-teachers__lead br {
        display: none;
    }

    .home-teachers__list {
        margin-top: 36px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .home-teacher-card,
    .home-teacher-card--reverse {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .home-teacher-card--reverse .home-teacher-card__photo {
        grid-column: 1;
        grid-row: auto;
    }

    .home-teacher-card--reverse .home-teacher-card__content {
        grid-column: 1;
        grid-row: auto;
    }

    .home-teacher-card__photo {
        width: 100%;
        height: 430px;
    }

    .home-teacher-card h3 {
        font-size: 24px;
    }

    .home-teacher-card blockquote {
        margin-top: 18px;
        font-size: 16px;
    }

    .home-teacher-card__highlight {
        margin-top: 20px;
    }

    .home-teacher-card__stats {
        margin-top: 25px;
    }

    .home-teachers__footer {
        justify-content: flex-start;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .home-teacher-card__photo {
        height: 360px;
    }

    .home-teacher-card__stats {
        grid-template-columns: 1fr;
    }

    .home-teacher-stat {
        min-height: 105px;
    }

    .home-teacher-stat span {
        margin-top: 17px;
    }
}

/* ---------- Истории учеников: восстановлено по текущему виду Tilda ---------- */

.home-stories {
    padding: 70px 0 82px;
    background: #fff;
}

.home-stories > .es-container {
    max-width: 1320px;
}

.home-stories__title {
    max-width: 820px;
    margin: 0 0 56px;
    color: #101e31;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.home-stories__title span {
    display: block;
}

.home-stories__title span + span {
    margin-left: 180px;
}

.home-stories__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    overscroll-behavior-x: contain;
}

.home-stories__viewport::-webkit-scrollbar {
    display: none;
}

.home-stories__viewport.is-dragging {
    cursor: grabbing;
}

.home-stories__track {
    width: max-content;
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding-right: 160px;
}

.home-story-card {
    position: relative;
    width: 294px;
    height: 520px;
    flex: 0 0 294px;
    overflow: hidden;
    color: #fff;
    background: #1a2738;
    border-radius: 3px;
}

.home-story-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.home-story-card__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(10,22,38,.00) 0%,
            rgba(10,22,38,.03) 40%,
            rgba(10,22,38,.38) 64%,
            rgba(10,22,38,.86) 100%
        );
}

.home-story-card__play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 47%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #101e31;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 7px 18px rgba(0,0,0,.16);
}

.home-story-card__play i {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
}

.home-story-card__content {
    position: absolute;
    z-index: 3;
    left: 17px;
    right: 17px;
    bottom: 17px;
}

.home-story-card h3 {
    margin: 0 0 13px;
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.18;
}

.home-story-card__scores {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    padding-right: 56px;
}

.home-story-card__scores span {
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    padding: 3px 7px 4px;
    color: rgba(255,255,255,.92);
    background: rgba(16,30,49,.46);
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 13px;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
}

.home-story-card__scores strong {
    margin-left: 3px;
    color: #fff;
    font-weight: 700;
}

.home-story-card__year {
    position: absolute;
    right: 0;
    bottom: 0;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    padding: 4px 7px 5px;
    color: #fff;
    background: #6589af;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1;
}

@media (max-width: 1000px) {
    .home-stories {
        padding-top: 60px;
        padding-bottom: 68px;
    }

    .home-stories__title {
        margin-bottom: 40px;
        font-size: 31px;
    }

    .home-stories__title span + span {
        margin-left: 120px;
    }

    .home-story-card {
        width: 260px;
        height: 470px;
        flex-basis: 260px;
    }
}

@media (max-width: 620px) {
    .home-stories {
        padding-top: 52px;
        padding-bottom: 60px;
    }

    .home-stories__title {
        margin-bottom: 32px;
        font-size: 27px;
    }

    .home-stories__title span + span {
        margin-left: 55px;
    }

    .home-stories__track {
        gap: 10px;
        padding-right: 80px;
    }

    .home-story-card {
        width: 242px;
        height: 430px;
        flex-basis: 242px;
    }

    .home-story-card h3 {
        font-size: 20px;
    }

    .home-story-card__play {
        width: 52px;
        height: 52px;
    }
}

/* ---------- Вузы: Tilda-подобная бесконечная лента ---------- */

.home-universities {
    padding: 86px 0 90px;
    background: #fff;
}

.home-universities > .es-container {
    max-width: 1180px;
}

.home-universities__title {
    margin: 0;
    color: #101e31;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.home-universities__viewport {
    width: 100%;
    overflow: hidden;
    margin-top: 56px;
    user-select: none;
}

.home-universities__marquee {
    width: max-content;
    display: flex;
    animation: home-universities-marquee 48s linear infinite;
    will-change: transform;
}

.home-universities__viewport:hover .home-universities__marquee,
.home-universities__viewport:focus-within .home-universities__marquee {
    animation-play-state: paused;
}

.home-universities__track {
    display: flex;
    align-items: flex-start;
    gap: 38px;
    flex: 0 0 auto;
    padding-right: 38px;
}

.home-university-item {
    width: 118px;
    flex: 0 0 118px;
    color: #516174;
    text-align: center;
}

.home-university-item__logo {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-university-item__logo img {
    max-width: 94px;
    max-height: 72px;
    display: block;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .76;
}

.home-university-item__name {
    min-height: 44px;
    margin-top: 8px;
    color: #5d6d80;
    font-size: 11px;
    line-height: 1.28;
}

@keyframes home-universities-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Пользовательская настройка ОС "уменьшить движение". */
@media (prefers-reduced-motion: reduce) {
    .home-universities__viewport {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .home-universities__viewport::-webkit-scrollbar {
        display: none;
    }

    .home-universities__marquee {
        animation: none;
    }
}

@media (max-width: 1000px) {
    .home-universities {
        padding-top: 68px;
        padding-bottom: 72px;
    }

    .home-universities__title {
        font-size: 31px;
    }

    .home-universities__viewport {
        margin-top: 43px;
    }

    .home-universities__marquee {
        animation-duration: 44s;
    }

    .home-universities__track {
        gap: 30px;
        padding-right: 30px;
    }

    .home-university-item {
        width: 105px;
        flex-basis: 105px;
    }

    .home-university-item__logo {
        height: 78px;
    }

    .home-university-item__logo img {
        max-width: 84px;
        max-height: 65px;
    }
}

@media (max-width: 620px) {
    .home-universities {
        padding-top: 56px;
        padding-bottom: 60px;
    }

    .home-universities__title {
        font-size: 27px;
    }

    .home-universities__viewport {
        margin-top: 34px;
    }

    .home-universities__marquee {
        animation-duration: 38s;
    }

    .home-universities__track {
        gap: 22px;
        padding-right: 22px;
    }

    .home-university-item {
        width: 92px;
        flex-basis: 92px;
    }

    .home-university-item__logo {
        height: 70px;
    }

    .home-university-item__logo img {
        max-width: 76px;
        max-height: 60px;
    }

    .home-university-item__name {
        font-size: 10px;
    }
}

/* ---------- Отзывы и видео: восстановлено по текущему виду Tilda ---------- */

.home-reviews {
    padding: 78px 0 88px;
    background: #fff;
}

.home-reviews > .es-container {
    max-width: 1180px;
}

.home-reviews__title {
    margin: 0 0 52px;
    color: #101e31;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.home-reviews__layout {
    display: grid;
    grid-template-columns: 640px minmax(0, 1fr);
    gap: 58px;
    align-items: start;
}

.home-reviews__students-video {
    position: relative;
    width: 640px;
    height: 360px;
    overflow: hidden;
    background: #e9edf2;
}

.home-reviews__students-video > img,
.home-reviews__director-video > img,
.home-reviews__press-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-reviews__play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: #101e31;
    border: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(16,30,49,.18);
}

.home-reviews__play i {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}

.home-reviews__play:hover,
.home-reviews__play:focus-visible {
    background: #244260;
    outline: 2px solid rgba(83,114,148,.35);
    outline-offset: 3px;
}

.home-reviews__right {
    min-width: 0;
    padding-top: 0;
}

.home-reviews__director-row {
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.home-reviews__director-video {
    position: relative;
    width: 265px;
    height: 158px;
    overflow: hidden;
    background: #e9edf2;
}

.home-reviews__play--small {
    width: 58px;
    height: 58px;
}

.home-reviews__director-text {
    margin: 1px 0 0;
    color: #40546c;
    font-size: 17px;
    line-height: 1.45;
    font-style: italic;
}

.home-reviews__pixels {
    position: relative;
    width: 50px;
    height: 38px;
    margin: 34px 0 29px 0;
}

.home-reviews__pixels i {
    position: absolute;
    width: 11px;
    height: 11px;
}

.home-reviews__pixels i:nth-child(1) {
    left: 0;
    bottom: 0;
    background: #101e31;
}

.home-reviews__pixels i:nth-child(2) {
    left: 13px;
    bottom: 11px;
    background: #537294;
}

.home-reviews__pixels i:nth-child(3) {
    left: 26px;
    bottom: 0;
    background: #7991aa;
}

.home-reviews__pixels i:nth-child(4) {
    left: 26px;
    bottom: 22px;
    background: #78a96d;
}

.home-reviews__press-row {
    display: grid;
    grid-template-columns: 1fr 267px;
    gap: 34px;
    align-items: center;
}

.home-reviews__press-text {
    margin: 0;
    color: #40546c;
    font-size: 17px;
    line-height: 1.45;
}

.home-reviews__press-image {
    width: 267px;
    height: 158px;
    overflow: hidden;
    background: #e9edf2;
}

/* Generic Rutube inline target shared by teacher and reviews. */
.js-rutube-target {
    position: relative;
}

.js-rutube-target__player {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: #000;
}

.js-rutube-target__player iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.js-rutube-target.is-playing > img,
.js-rutube-target.is-playing > .home-reviews__play,
.js-rutube-target.is-playing > .home-teacher-card__play {
    visibility: hidden;
}

@media (max-width: 1050px) {
    .home-reviews__layout {
        grid-template-columns: 56% minmax(0, 1fr);
        gap: 36px;
    }

    .home-reviews__students-video {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .home-reviews__director-row {
        grid-template-columns: 58% minmax(0, 1fr);
        gap: 20px;
    }

    .home-reviews__director-video {
        width: 100%;
        height: auto;
        aspect-ratio: 265 / 158;
    }

    .home-reviews__press-row {
        grid-template-columns: 1fr 58%;
        gap: 20px;
    }

    .home-reviews__press-image {
        width: 100%;
        height: auto;
        aspect-ratio: 267 / 158;
    }
}

@media (max-width: 760px) {
    .home-reviews {
        padding-top: 58px;
        padding-bottom: 64px;
    }

    .home-reviews__title {
        margin-bottom: 36px;
        font-size: 29px;
    }

    .home-reviews__layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home-reviews__director-row,
    .home-reviews__press-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .home-reviews__director-text,
    .home-reviews__press-text {
        font-size: 15px;
    }

    .home-reviews__pixels {
        margin-top: 6px;
        margin-bottom: 14px;
    }
}

/* ---------- Государственная лицензия: восстановлено по текущему виду Tilda ---------- */

.home-license {
    padding: 80px 0 92px;
    background: #fff;
}

.home-license > .es-container {
    max-width: 1180px;
}

.home-license__card {
    position: relative;
    min-height: 365px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    padding: 0 64px 0 0;
    background: #e7eaf1;
    border-radius: 9px;
}

.home-license__visual {
    position: relative;
    align-self: stretch;
    min-height: 365px;
    overflow: hidden;
}

.home-license__visual img {
    position: absolute;
    left: -70px;
    bottom: -125px;
    width: 360px;
    height: auto;
    display: block;
    transform: rotate(-33deg);
    transform-origin: center center;
}

.home-license__content {
    position: relative;
    min-width: 0;
    padding: 52px 0 48px;
}

.home-license__title {
    margin: 0;
    color: #101e31;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.home-license__lead {
    max-width: 620px;
    margin: 35px 0 0;
    color: #40546c;
    font-size: 18px;
    line-height: 1.5;
}

.home-license__button {
    min-width: 325px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 46px;
    padding: 12px 27px;
    color: #fff;
    background: #537294;
    border: 1px solid #537294;
    border-radius: 2px;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.home-license__button:hover,
.home-license__button:focus-visible {
    color: #fff;
    background: #405f80;
    border-color: #405f80;
    outline: none;
}

.home-license__pixels {
    position: absolute;
    right: 4px;
    bottom: 9px;
    width: 47px;
    height: 47px;
}

.home-license__pixels i {
    position: absolute;
    width: 12px;
    height: 12px;
}

.home-license__pixels i:nth-child(1) {
    left: 0;
    bottom: 0;
    background: #101e31;
}

.home-license__pixels i:nth-child(2) {
    left: 14px;
    bottom: 11px;
    background: #537294;
}

.home-license__pixels i:nth-child(3) {
    left: 28px;
    bottom: 0;
    background: #7991aa;
}

.home-license__pixels i:nth-child(4) {
    left: 28px;
    bottom: 23px;
    background: #78a96d;
}

@media (max-width: 1000px) {
    .home-license {
        padding-top: 68px;
        padding-bottom: 76px;
    }

    .home-license__card {
        grid-template-columns: 330px minmax(0, 1fr);
        gap: 32px;
        padding-right: 44px;
    }

    .home-license__visual img {
        left: -80px;
        bottom: -108px;
        width: 330px;
    }

    .home-license__title {
        font-size: 30px;
    }

    .home-license__lead {
        margin-top: 27px;
        font-size: 16px;
    }

    .home-license__button {
        min-width: 280px;
        min-height: 56px;
        margin-top: 34px;
        font-size: 16px;
    }
}

@media (max-width: 720px) {
    .home-license {
        padding-top: 56px;
        padding-bottom: 62px;
    }

    .home-license__card {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .home-license__visual {
        min-height: 235px;
    }

    .home-license__visual img {
        left: -35px;
        bottom: -120px;
        width: 300px;
    }

    .home-license__content {
        padding: 34px 24px 38px;
    }

    .home-license__title {
        font-size: 27px;
    }

    .home-license__lead {
        margin-top: 22px;
        font-size: 15px;
    }

    .home-license__button {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        margin-top: 28px;
        font-size: 15px;
    }

    .home-license__pixels {
        right: 20px;
        bottom: 17px;
        transform: scale(.8);
        transform-origin: right bottom;
    }
}

/* ---------- Telegram / коммьюнити: восстановлено по текущему виду Tilda ---------- */

.home-community {
    padding: 82px 0 96px;
    background: #fff;
}

.home-community > .es-container {
    max-width: 1180px;
}

.home-community__grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
}

.home-community__visual {
    width: 310px;
}

.home-community__visual img {
    width: 100%;
    height: auto;
    display: block;
}

.home-community__content {
    position: relative;
    min-width: 0;
    padding-top: 7px;
}

.home-community__title {
    margin: 0;
    color: #101e31;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.home-community__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin-top: 50px;
}

.home-community-item {
    min-height: 82px;
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    color: #40546c;
    background: #e7eaf1;
    border-radius: 3px;
}

.home-community-item:last-child {
    grid-column: 1;
}

.home-community-item__icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7190b0;
}

.home-community-item__icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-community-item p {
    margin: 0;
    color: #40546c;
    font-size: 14px;
    line-height: 1.36;
}

.home-community__button {
    width: 325px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 42px;
    padding: 12px 24px;
    color: #fff;
    background: #537294;
    border: 1px solid #537294;
    border-radius: 2px;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    text-transform: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.home-community__button:hover,
.home-community__button:focus-visible {
    color: #fff;
    background: #405f80;
    border-color: #405f80;
    outline: none;
}

.home-community__pixels {
    position: absolute;
    right: 5px;
    bottom: 9px;
    width: 47px;
    height: 47px;
}

.home-community__pixels i {
    position: absolute;
    width: 12px;
    height: 12px;
}

.home-community__pixels i:nth-child(1) {
    left: 0;
    bottom: 0;
    background: #101e31;
}

.home-community__pixels i:nth-child(2) {
    left: 14px;
    bottom: 11px;
    background: #537294;
}

.home-community__pixels i:nth-child(3) {
    left: 28px;
    bottom: 0;
    background: #7991aa;
}

.home-community__pixels i:nth-child(4) {
    left: 28px;
    bottom: 23px;
    background: #78a96d;
}

@media (max-width: 1000px) {
    .home-community {
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .home-community__grid {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 44px;
    }

    .home-community__visual {
        width: 270px;
    }

    .home-community__title {
        font-size: 30px;
    }

    .home-community__items {
        gap: 12px;
        margin-top: 38px;
    }

    .home-community-item {
        padding: 14px;
    }

    .home-community-item p {
        font-size: 13px;
    }

    .home-community__button {
        width: 285px;
        min-height: 56px;
        margin-top: 32px;
        font-size: 16px;
    }
}

@media (max-width: 760px) {
    .home-community {
        padding-top: 56px;
        padding-bottom: 64px;
    }

    .home-community__grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .home-community__visual {
        width: min(100%, 340px);
        margin: 0 auto;
    }

    .home-community__content {
        padding-top: 0;
    }

    .home-community__title {
        font-size: 27px;
    }

    .home-community__items {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .home-community-item:last-child {
        grid-column: auto;
    }

    .home-community__button {
        width: 100%;
        min-height: 52px;
        font-size: 15px;
    }

    .home-community__pixels {
        display: none;
    }
}

/* v20 — drag-scroll горизонтальных лент */
.home-path__viewport,
.home-benefits__viewport {
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
}

.home-path__viewport.is-dragging,
.home-benefits__viewport.is-dragging {
    cursor: grabbing;
}

.home-path__viewport.is-dragging *,
.home-benefits__viewport.is-dragging * {
    pointer-events: none;
}

@media (pointer: coarse) {
    .home-path__viewport,
    .home-benefits__viewport {
        cursor: auto;
        touch-action: pan-x pan-y;
    }
}


/* v21 — шестой этап, который есть на текущей Tilda,
   но отсутствует в присланном экспортном снимке. */
.home-path-card--six {
    width: 326px;
    flex-basis: 326px;
}

.home-path-card--six .home-path-card__body {
    background: #f3f5f7;
}

.home-path-card--six h4 {
    margin: 26px 0 0;
    color: #3f5064;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
}

.home-path-card__secondary--six {
    margin-top: 14px !important;
    font-style: normal !important;
}

@media (max-width: 959px) {
    .home-path-card--six {
        width: 300px;
        flex-basis: 300px;
    }

    .home-path-card--six h4 {
        margin-top: 18px;
        font-size: 14px;
    }

    .home-path-card__secondary--six {
        margin-top: 10px !important;
    }
}


/* v25 — защита полноразмерных портретов историй учеников */
.home-stories .home-story-card {
    min-height: 0;
}

.home-stories .home-story-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
    object-fit: cover;
    object-position: center top;
}


/* v26 — видео внутри карточек выпускников */
.home-story-card__play {
    padding: 0;
    border: 0;
    cursor: pointer;
}

.home-story-card__play:hover,
.home-story-card__play:focus-visible {
    background: #1d3858;
    outline: 2px solid rgba(255,255,255,.72);
    outline-offset: 3px;
}

.home-story-card__video {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: #000;
}

.home-story-card__video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.home-story-card.is-playing .home-story-card__photo,
.home-story-card.is-playing .home-story-card__shade,
.home-story-card.is-playing .home-story-card__play,
.home-story-card.is-playing .home-story-card__content {
    visibility: hidden;
}

.home-story-card.is-playing .home-story-card__video {
    visibility: visible;
}




/* v33 — play преподавателя теперь функциональная кнопка */
.home-teacher-card__play {
    padding: 0;
    border: 0;
    cursor: pointer;
}

.home-teacher-card__play:hover,
.home-teacher-card__play:focus-visible {
    background: #244260;
    outline: 2px solid rgba(255,255,255,.75);
    outline-offset: 3px;
}


/* ==========================================================
   v38 — ФИНАЛЬНЫЕ OVERRIDE ДЛЯ HERO И ПРЕИМУЩЕСТВ
   Эти правила намеренно находятся В САМОМ КОНЦЕ home.css,
   чтобы старые накопившиеся стили предыдущих версий
   больше не могли их перекрыть.
   ========================================================== */

/* ---------- HERO: desktop 1200+ ---------- */
@media (min-width: 1200px) {
    .home-hero {
        position: relative;
        width: calc(100% - 40px) !important;
        max-width: 1160px !important;
        height: 580px !important;
        min-height: 580px !important;
        overflow: hidden !important;
        margin: 46px auto 0 !important;
        color: #fff !important;
        background: #101e31 !important;
        border-radius: 6px !important;
        isolation: isolate;
    }

    .home-hero::before {
        display: none !important;
    }

    .home-hero__decor {
        position: absolute !important;
        inset: 0 !important;
        z-index: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
        pointer-events: none;
    }

    .home-hero__decor img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .home-hero__inner {
        position: relative !important;
        z-index: 1 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .home-hero__content {
        position: absolute !important;
        top: 70px !important;
        left: 70px !important;
        width: 500px !important;
        max-width: 500px !important;
    }

    .home-hero__audience {
        width: 220px !important;
        height: 43px !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 4px !important;
        margin: 0 0 40px 10px !important;
        padding: 6px !important;
        border: 0 !important;
        border-radius: 6px !important;
        background: #e7eaf1 !important;
        box-shadow: none !important;
    }

    .home-hero__audience-item {
        min-width: 0 !important;
        height: 31px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 5px 16px 4px !important;
        color: #101e31 !important;
        background: #fff !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
        font-weight: 400 !important;
        white-space: nowrap !important;
    }

    .home-hero__audience-item--active {
        color: #fff !important;
        background: #101e31 !important;
    }

    .home-hero h1 {
        width: 440px !important;
        max-width: 440px !important;
        margin: 0 !important;
        color: #fff !important;
        font-size: 42px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        text-transform: uppercase !important;
    }

    .home-hero__subtitle {
        width: 500px !important;
        max-width: 500px !important;
        margin: 39px 0 0 !important;
        color: #fff !important;
        font-size: 20px !important;
        line-height: 1.55 !important;
        font-style: italic !important;
    }

    .home-hero__cta {
        width: 296px !important;
        min-height: 51px !important;
        margin-top: 40px !important;
        padding: 10px 40px !important;
        color: #fff !important;
        background: #a9162e !important;
        border: 0 !important;
        border-radius: 4px !important;
        font-size: 20px !important;
        font-weight: 400 !important;
        line-height: 1.55 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* Воздух между hero и следующим заголовком, как на Tilda */
    .home-benefits {
        padding-top: 150px !important;
    }

    /* ---------- Преимущества: все 4 карточки в одном ряду ---------- */
    .home-benefits > .es-container {
        max-width: 1320px !important;
    }

    .home-benefits__viewport {
        overflow-x: hidden !important;
    }

    .home-benefits__track {
        width: 100% !important;
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1.42fr) !important;
        gap: 15px !important;
    }

    .home-benefit-tilda,
    .home-benefit-tilda--probnik {
        width: auto !important;
        min-width: 0 !important;
        height: 432px !important;
        flex: none !important;
    }

    .home-benefit-tilda__text {
        padding: 23px 30px 0 !important;
    }

    .home-benefit-tilda--price .home-benefit-tilda__text,
    .home-benefit-tilda--groups .home-benefit-tilda__text {
        height: 227px !important;
    }

    .home-benefit-tilda--location .home-benefit-tilda__text {
        height: 171px !important;
    }

    .home-benefit-tilda--probnik .home-benefit-tilda__text {
        height: 263px !important;
    }

    .home-benefit-tilda h3 {
        font-size: 21px !important;
    }

    .home-benefit-tilda p {
        margin-top: 11px !important;
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    .home-benefit-tilda--price .home-benefit-tilda__image,
    .home-benefit-tilda--groups .home-benefit-tilda__image {
        height: 205px !important;
    }

    .home-benefit-tilda--location .home-benefit-tilda__image {
        height: 261px !important;
    }

    .home-benefit-tilda--probnik .home-benefit-tilda__image {
        height: 169px !important;
    }
}

/* ---------- HERO: 960–1199 ---------- */
@media (min-width: 960px) and (max-width: 1199px) {
    .home-hero {
        width: 940px !important;
        max-width: calc(100% - 20px) !important;
        height: 509px !important;
        min-height: 509px !important;
        margin: 40px auto 0 !important;
        overflow: hidden !important;
        border-radius: 6px !important;
        background: #101e31 !important;
    }

    .home-hero::before {
        display: none !important;
    }

    .home-hero__decor {
        position: absolute !important;
        inset: 0 !important;
        z-index: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
    }

    .home-hero__decor img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .home-hero__inner {
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .home-hero__content {
        position: absolute !important;
        top: 50px !important;
        left: 50px !important;
        width: 462px !important;
        max-width: 462px !important;
    }

    .home-hero h1 {
        max-width: 440px !important;
        font-size: 42px !important;
        line-height: 1.2 !important;
    }

    .home-hero__subtitle {
        max-width: 462px !important;
        margin-top: 29px !important;
        font-size: 20px !important;
        line-height: 1.55 !important;
    }
}


/* ==========================================================
   v39 — ПРЕИМУЩЕСТВА НЕ УЖИМАЕМ.
   На desktop сохраняем крупные исходные карточки
   и горизонтальную прокрутку/drag-scroll.
   ========================================================== */
@media (min-width: 1200px) {
    .home-benefits > .es-container {
        max-width: 1320px !important;
    }

    .home-benefits__viewport {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .home-benefits__track {
        width: max-content !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .home-benefit-tilda {
        width: 373px !important;
        min-width: 373px !important;
        height: 576px !important;
        flex: 0 0 373px !important;
    }

    .home-benefit-tilda--probnik {
        width: 530px !important;
        min-width: 530px !important;
        height: 576px !important;
        flex: 0 0 530px !important;
    }

    .home-benefit-tilda__text {
        padding: 30px 40px 0 !important;
    }

    .home-benefit-tilda--price .home-benefit-tilda__text,
    .home-benefit-tilda--groups .home-benefit-tilda__text {
        height: 303px !important;
    }

    .home-benefit-tilda--location .home-benefit-tilda__text {
        height: 228px !important;
    }

    .home-benefit-tilda--probnik .home-benefit-tilda__text {
        height: 350px !important;
    }

    .home-benefit-tilda h3 {
        font-size: 26px !important;
    }

    .home-benefit-tilda p {
        margin-top: 14px !important;
        font-size: 18px !important;
        line-height: 1.48 !important;
    }

    .home-benefit-tilda--price .home-benefit-tilda__image,
    .home-benefit-tilda--groups .home-benefit-tilda__image {
        height: 273px !important;
    }

    .home-benefit-tilda--location .home-benefit-tilda__image {
        height: 348px !important;
    }

    .home-benefit-tilda--probnik .home-benefit-tilda__image {
        height: 226px !important;
    }
}


/* ==========================================================
   v40 — изображения карточек предметов выводятся так же,
   как в экспортном Zero Block Tilda:
   background-position: 0 0;
   background-size: 100.247%;
   ========================================================== */

.home-subject-card__image {
    display: block !important;
    width: 312px !important;
    height: 172px !important;
    flex: 0 0 172px !important;
    background-position: 0 0 !important;
    background-size: 100.247% auto !important;
    background-repeat: no-repeat !important;
    object-fit: unset !important;
    object-position: unset !important;
}

.home-subject-card--school .home-subject-card__image {
    height: 270px !important;
    flex-basis: 270px !important;
    background-size: 100% auto !important;
}

@media (max-width: 1199px) and (min-width: 960px) {
    .home-subject-card__image {
        width: 258px !important;
        height: 172px !important;
        flex-basis: 172px !important;
        background-position: 0 0 !important;
        background-size: 100.247% auto !important;
    }

    .home-subject-card--school .home-subject-card__image {
        height: 172px !important;
        flex-basis: 172px !important;
        background-size: 100% auto !important;
    }
}

@media (max-width: 959px) {
    .home-subject-card__image {
        width: 258px !important;
        height: 144px !important;
        flex-basis: 144px !important;
        background-position: 0 0 !important;
        background-size: 100.247% auto !important;
    }

    .home-subject-card--school .home-subject-card__image {
        height: 196px !important;
        flex-basis: 196px !important;
        background-size: 100% auto !important;
    }
}


/* ==========================================================
   v44 — финальный mobile override первого экрана.
   Старые исторические media queries больше не могут раздувать hero.
   ========================================================== */
@media (max-width: 700px) {
    .home-hero {
        position: relative !important;
        width: calc(100% - 24px) !important;
        max-width: none !important;
        height: 500px !important;
        min-height: 500px !important;
        overflow: hidden !important;
        margin: 16px auto 0 !important;
        background: #101e31 !important;
        border-radius: 5px !important;
    }

    .home-hero::before {
        display: none !important;
    }

    .home-hero__decor {
        position: absolute !important;
        inset: 0 !important;
        z-index: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
    }

    .home-hero__decor img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .home-hero__inner {
        position: relative !important;
        z-index: 1 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 0 !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .home-hero__content {
        position: absolute !important;
        top: 24px !important;
        left: 18px !important;
        right: 18px !important;
        width: auto !important;
        max-width: 285px !important;
    }

    .home-hero__audience {
        width: 160px !important;
        height: 36px !important;
        display: flex !important;
        margin: 0 0 25px 0 !important;
        padding: 5px !important;
        gap: 3px !important;
        background: #e7eaf1 !important;
        border: 0 !important;
        border-radius: 5px !important;
    }

    .home-hero__audience-item {
        height: 26px !important;
        min-width: 0 !important;
        flex: 1 1 50% !important;
        padding: 4px 7px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
    }

    .home-hero__audience-item--active {
        color: #fff !important;
        background: #101e31 !important;
    }

    .home-hero h1 {
        width: 260px !important;
        max-width: 260px !important;
        margin: 0 !important;
        font-size: 31px !important;
        line-height: 1.08 !important;
        letter-spacing: 0 !important;
    }

    .home-hero__subtitle {
        width: 278px !important;
        max-width: 278px !important;
        margin: 24px 0 0 !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .home-hero__cta {
        position: absolute !important;
        top: 390px !important;
        left: 0 !important;
        width: 255px !important;
        min-height: 46px !important;
        margin: 0 !important;
        padding: 9px 16px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    .home-benefits {
        padding-top: 70px !important;
    }

    .home-benefits__title {
        font-size: 27px !important;
        line-height: 1.15 !important;
    }
}

@media (max-width: 390px) {
    .home-hero {
        width: calc(100% - 20px) !important;
        height: 480px !important;
        min-height: 480px !important;
    }

    .home-hero__content {
        top: 20px !important;
        left: 16px !important;
        right: 16px !important;
    }

    .home-hero h1 {
        width: 245px !important;
        max-width: 245px !important;
        font-size: 29px !important;
    }

    .home-hero__subtitle {
        width: 255px !important;
        max-width: 255px !important;
        font-size: 13px !important;
    }

    .home-hero__cta {
        top: 375px !important;
        width: 245px !important;
    }
}

