/* Страница годового курса */
:where(.mh) .hero-title {
    font-size: min(7.7vw,15.5vh);
    line-height: .95;
}

:where(.mh) .hero-copy {
    top: calc(max(84px,12vh) + min(7.7vw,15.5vh)*2.85 + 4vh);
    max-width: min(540px,42vw);
}

:where(.mh) .hero-copy p {
    max-width: 23em;
}

:where(.mh) .plan {
    background: #fff;
    padding: clamp(90px,10vw,170px) var(--pad);
}

:where(.mh) .chart {
    display: grid;
    grid-template-columns: repeat(18,minmax(0,1fr));
    gap: 10px;
    margin-top: clamp(36px,4.4vw,72px);
    font: 600 clamp(17px,1.7vw,28px)/1.15 var(--display);
    letter-spacing: -.02em;
}

:where(.mh) .chart .sem {
    grid-column: span 9;
    padding: 0 0 8px 2px;
    font: 500 16px/1.3 var(--text);
    letter-spacing: 0;
    color: var(--muted);
}

:where(.mh) .chart p {
    display: flex;
    align-items: center;
    min-height: clamp(66px,6.4vw,104px);
    padding: 12px clamp(14px,1.8vw,30px);
    border-radius: 18px;
    min-width: 0;
}

:where(.mh) .chart .c-cpp {
    grid-column: 1/-1;
    background: var(--cobalt);
    color: #fff;
}

:where(.mh) .chart .c-math,
:where(.mh) .chart .c-os {
    grid-column: span 9;
    background: var(--ink);
    color: #fff;
}

:where(.mh) .chart .c-end {
    grid-column: 1/17;
    justify-content: flex-end;
    text-align: right;
}

:where(.mh) .chart i {
    grid-column: 17/19;
    border-radius: 18px;
    background: var(--gold);
}

:where(.mh) .parts {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 44px clamp(24px,3vw,56px);
    margin-top: clamp(48px,5vw,84px);
}

:where(.mh) .parts h3 {
    font-size: clamp(25px,2.2vw,38px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

:where(.mh) .parts .when {
    margin-top: 8px;
    color: var(--muted);
    font-size: 16px;
}

:where(.mh) .parts ul {
    display: grid;
    align-content: start;
    gap: 9px;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.4;
}

@media(min-width:1101px) {
    :where(.mh) .parts article {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        row-gap: 0;
    }

    :where(.mh) .parts {
        grid-template-rows: auto auto auto;
        row-gap: 0;
    }
}

:where(.mh) .gain {
    background: var(--gold);
    color: var(--ink);
    padding: clamp(80px,8vw,140px) var(--pad);
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
    gap: 40px clamp(40px,7vw,130px);
    align-items: start;
}

:where(.mh) .gain h2 {
    font-size: clamp(38px,4.8vw,80px);
}

:where(.mh) .gain li {
    padding: clamp(16px,1.6vw,26px) 0;
    border-top: 1px solid #0c0e1340;
    font: 600 clamp(21px,2vw,34px)/1.18 var(--display);
    letter-spacing: -.025em;
}

:where(.mh) .gain li:last-child {
    border-bottom: 1px solid #0c0e1340;
}

:where(.mh) .t-live {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.35fr);
    align-items: center;
    background: #141a2b;
}

:where(.mh) .t-live .acts {
    margin-top: 28px;
}

:where(.mh) .t-live figure img {
    border-radius: 16px;
}

:where(.mh) .t-live figcaption {
    margin-top: 10px;
    color: #b9c1d2;
    font-size: 15px;
}

:where(.mh) .show .t-live+.tiles {
    margin-top: 12px;
}

:where(.mh) .after {
    margin-top: 34px;
    max-width: 38em;
    font-size: clamp(18px,1.5vw,23px);
    line-height: 1.4;
    color: #d5dbe8;
}

:where(.mh) .who {
    margin-top: 0;
}

:where(.mh) .sign {
    background: var(--cobalt);
    color: #fff;
    padding: clamp(90px,9vw,150px) var(--pad);
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
    gap: 56px clamp(48px,8vw,150px);
    align-items: start;
}

:where(.mh) .sign h2 {
    font-size: clamp(38px,4.6vw,76px);
}

:where(.mh) .sign h2+p {
    margin-top: 24px;
    max-width: 29em;
    font-size: clamp(18px,1.4vw,21px);
}

:where(.mh) .sign .sum {
    margin: clamp(34px,4vw,64px) 0 10px;
    font: 600 clamp(50px,6.4vw,108px)/.95 var(--display);
    letter-spacing: -.05em;
}

:where(.mh) .sign .sum small {
    font: 500 clamp(18px,1.6vw,26px)/1.2 var(--text);
    letter-spacing: 0;
}

:where(.mh) .has {
    margin-top: 16px;
}

:where(.mh) .has li {
    padding: 12px 0;
    border-top: 1px solid #6f85ff;
    font-size: clamp(17px,1.35vw,20px);
}

:where(.mh) .ask {
    background: var(--fog);
    padding: clamp(90px,9vw,150px) var(--pad);
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    gap: 20px clamp(40px,7vw,130px);
    align-items: start;
}

:where(.mh) .ask h2 {
    font-size: clamp(38px,4.6vw,76px);
}

:where(.mh) .ask .qa {
    margin-top: 0;
}

:where(.mh) .other {
    grid-column: 2;
    margin-top: 20px;
    font-size: clamp(17px,1.35vw,20px);
}

:where(.mh) .other a {
    font-weight: 600;
}

@media(max-width:1100px) {
    :where(.mh) .parts {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:1000px) {
    :where(.mh) .gain,
    :where(.mh) .sign,
    :where(.mh) .ask,
    :where(.mh) .t-live {
        grid-template-columns: minmax(0,1fr);
    }

    :where(.mh) .other {
        grid-column: 1;
    }
}

@media(max-width:760px),(max-aspect-ratio:9/10) {
    :where(.mh) .hero-title {
        font-size: min(13.6vw,8.6vh);
    }

    :where(.mh) .hero-copy {
        top: calc(88px + min(13.6vw,8.6vh)*2.85 + 18px);
        max-width: 520px;
    }
}

@media(max-width:760px) {
    :where(.mh) .chart {
        gap: 6px;
        font-size: 16px;
    }

    :where(.mh) .chart p {
        border-radius: 12px;
        padding: 10px 12px;
    }

    :where(.mh) .chart .c-end {
        grid-column: 1/16;
    }

    :where(.mh) .chart i {
        grid-column: 16/19;
        border-radius: 12px;
    }

    :where(.mh) .chart .c-math,
    :where(.mh) .chart .c-os {
        font-size: 14px;
        letter-spacing: -.01em;
        overflow-wrap: anywhere;
    }
}

@media(max-width:520px) {
    :where(.mh) .parts {
        grid-template-columns: minmax(0,1fr);
    }
}

@media(max-width:760px) and (max-height:730px) and (max-aspect-ratio:9/10) {
    :where(.mh) .hero-title {
        font-size: min(12.6vw,8vh);
    }

    :where(.mh) .hero-copy {
        top: calc(76px + min(12.6vw,8vh)*2.85 + 10px);
    }
}

@media(max-height:560px) and (min-aspect-ratio:9/10) {
    :where(.mh) .hero-title {
        top: 60px;
        font-size: min(8vw,16vh);
    }

    :where(.mh) .hero-copy {
        top: calc(60px + min(8vw,16vh)*2.85 + 8px);
        max-width: 44vw;
    }
}

@media(max-width:350px) {
    :where(.mh) .hero-copy .acts {
        gap: 4px 14px;
    }
}

:where(.mh) .sign-go {
    display: grid;
    justify-items: start;
    gap: 14px;
    padding: clamp(26px, 3vw, 50px);
    border-radius: 28px;
    background: #fff;
    color: var(--ink);
}

:where(.mh) .sign-go p {
    max-width: 27em;
    font-size: clamp(18px, 1.4vw, 21px);
}

:where(.mh) .sign-go .btn {
    justify-self: stretch;
}

:where(.mh) .sign-go .btn + p {
    margin-top: 18px;
}

/* Переход к разделу учитывает вторую строку шапки */
@media (min-width: 761px) and (min-height: 561px) {
    :where(.mh) section[id]:not(#story) {
        scroll-margin-top: 56px;
    }
}

/* Ближайший старт */
:where(.mh) .plan-start {
    margin-top: 18px;
    font-size: clamp(18px, 1.5vw, 23px);
    color: var(--muted);
}

:where(.mh) .sign .start {
    display: inline-block;
    margin-top: 22px;
    padding: 8px 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .14);
    font-size: clamp(17px, 1.35vw, 20px);
}

:where(.mh) .sign .start b {
    font-weight: 600;
    color: var(--gold);
}

/* Форма заявки на бесплатный урок */
:where(.mh) .lead,
:where(.mh) .lead-done,
:where(.mh) .lead-reach {
    display: grid;
    gap: 14px;
    width: 100%;
}

:where(.mh) .lead h3,
:where(.mh) .lead-done h3 {
    font-size: clamp(26px, 2.4vw, 38px);
    line-height: 1.1;
    letter-spacing: -.03em;
}

:where(.mh) .lead-role {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 6px 0 0;
    padding: 4px;
    border: 0;
    border-radius: 99px;
    background: var(--fog);
    min-width: 0;
}

:where(.mh) .lead-role legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

:where(.mh) .lead-role label {
    position: relative;
    cursor: pointer;
}

:where(.mh) .lead-role input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

:where(.mh) .lead-role span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 8px 12px;
    border-radius: 99px;
    font-weight: 600;
    text-align: center;
    color: var(--muted);
    transition: background .2s, color .2s;
}

:where(.mh) .lead-role input:checked + span {
    background: var(--cobalt);
    color: #fff;
}

:where(.mh) .lead-role input:focus-visible + span {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

:where(.mh) .lead-field {
    display: grid;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #414857;
}

:where(.mh) .lead-field input,
:where(.mh) .lead-field select {
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    border: 1px solid #c6cdd8;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: 400 18px/1.3 var(--text);
}

:where(.mh) .lead-field select {
    appearance: none;
    padding-right: 44px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231f3dff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center;
}

:where(.mh) .lead-field input:focus,
:where(.mh) .lead-field select:focus {
    outline: none;
    border-color: var(--cobalt);
    box-shadow: 0 0 0 3px rgba(31, 61, 255, .18);
}

:where(.mh) .lead-field [aria-invalid="true"] {
    border-color: #d22c2c;
}

:where(.mh) .lead-error {
    font-size: 14px;
    font-weight: 500;
    color: #c42323;
}

:where(.mh) .lead-captcha {
    display: grid;
    gap: 6px;
    min-height: 102px;
}

:where(.mh) .lead-captcha p {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--fog);
    font-size: 16px;
}

:where(.mh) .lead-consent {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    font-size: 15px;
    line-height: 1.4;
    color: #414857;
    cursor: pointer;
}

:where(.mh) .lead-consent input {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--cobalt);
}

:where(.mh) .lead .btn {
    margin-top: 6px;
}

:where(.mh) .lead .btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

:where(.mh) .lead-status:empty {
    display: none;
}

:where(.mh) .lead-status {
    font-size: 16px;
    color: #414857;
}

:where(.mh) .lead-done {
    padding: 22px;
    border-radius: 20px;
    background: var(--fog);
}

:where(.mh) .lead-done:focus {
    outline: none;
}

:where(.mh) .lead-reach {
    margin-top: 18px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    justify-items: start;
}

:where(.mh) .sign-go .lead-reach p {
    font-size: 17px;
    color: #414857;
}

:where(.mh) .sign-go .reach-big {
    font-size: clamp(21px, 2vw, 30px);
}
