/* Общие стили публичных страниц школы. Правила действуют только внутри .mh, чтобы не задевать
   уведомления, окно cookie и другие страницы. Шрифты лежат рядом, лицензии в папке fonts. */
@font-face {
    font-family: "Wix Madefor Display";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/wix-madefor-display-cyrillic.4ae2d48436b3.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Wix Madefor Display";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/wix-madefor-display-latin-ext.0201473eecf7.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Wix Madefor Display";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/wix-madefor-display-latin.9b9969b22238.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Wix Madefor Text";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/wix-madefor-text-cyrillic.209d88f118c0.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Wix Madefor Text";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/wix-madefor-text-latin-ext.af1ecc1a0d5a.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Wix Madefor Text";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/wix-madefor-text-latin.f6130b85efb3.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("fonts/jetbrains-mono-bold.cab9936e90bd.woff") format("woff");
}

:where(.mh) {
    width: 100%;
    flex: 1 0 auto;
}

/* Контакты вместо формы: заявки принимает магазин */
:where(.mh) .reach-lead {
    margin-top: 32px;
    max-width: 32em;
    font-size: clamp(18px, 1.4vw, 21px);
    color: #414857;
}

:where(.mh) .reach {
    display: grid;
    justify-items: start;
    gap: 14px;
    margin-top: 28px;
}

:where(.mh) .reach-big {
    max-width: 100%;
    padding: 4px 0;
    font: 600 clamp(21px, 2.3vw, 38px)/1.2 var(--display);
    letter-spacing: -.03em;
    text-decoration: none;
    overflow-wrap: anywhere;
}

:where(.mh) .reach-big:hover,
:where(.mh) .foot button:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

:where(.mh) .foot-bottom button {
    padding: 8px 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.mh {
    --ink: #0c0e13;
    --night: #07080c;
    --fog: #e9edf2;
    --white: #fff;
    --cobalt: #1f3dff;
    --gold: #ffbe46;
    --muted: #5b6270;
    --line: #d5dae2;
    --display: "Wix Madefor Display","Helvetica Neue",Arial,sans-serif;
    --text: "Wix Madefor Text","Helvetica Neue",Arial,sans-serif;
    --mono: "JetBrains Mono",ui-monospace,Menlo,monospace;
    --pad: clamp(20px,3.6vw,56px);
}

:where(.mh) *,
:where(.mh) *::before,
:where(.mh) *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

.mh {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 400 18px/1.5 var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

:where(.mh) h1,
:where(.mh) h2,
:where(.mh) h3,
:where(.mh) p,
:where(.mh) ul,
:where(.mh) ol,
:where(.mh) dl,
:where(.mh) dd,
:where(.mh) figure,
:where(.mh) blockquote,
:where(.mh) pre,
:where(.mh) fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

:where(.mh) ul,
:where(.mh) ol {
    list-style: none;
}

:where(.mh) img {
    display: block;
    max-width: 100%;
    height: auto;
}

:where(.mh) h1,
:where(.mh) h2,
:where(.mh) h3 {
    font-family: var(--display);
    font-weight: 600;
    text-wrap: balance;
}

:where(.mh) h2 {
    font-size: clamp(42px,6.2vw,104px);
    line-height: .98;
    letter-spacing: -.045em;
}

:where(.mh) a {
    color: inherit;
}

:where(.mh) button,
:where(.mh) input,
:where(.mh) select {
    font: inherit;
    color: inherit;
}

:where(.mh) [hidden] {
    display: none!important;
}

:where(.mh) [id] {
    scroll-margin-top: 72px;
}

:where(.mh) section[id] {
    scroll-margin-top: 0;
}

:where(.mh) :focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
    border-radius: 6px;
}

:where(.mh) .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 28px;
    border: 0;
    border-radius: 99px;
    background: var(--cobalt);
    color: #fff;
    font: 600 17px/1.2 var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: background .2s,color .2s;
}

:where(.mh) .btn:hover {
    background: #0f2be0;
}

:where(.mh) .btn.gold {
    background: var(--gold);
    color: var(--ink);
}

:where(.mh) .btn.gold:hover {
    background: #ffd27d;
}

:where(.mh) .more {
    display: inline-block;
    padding: 8px 0;
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

:where(.mh) .more:hover {
    text-decoration-thickness: 2px;
}

:where(.mh) .bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: 60px;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    gap: 32px;
    color: #fff;
    background: #07080cd9;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background .4s,color .4s;
}

.pale :where(.mh) .bar {
    color: var(--ink);
    background: #fffffff0;
}

.lit :where(.mh) .bar {
    color: var(--ink);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

:where(.mh) .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    text-decoration: none;
    font: 600 20px/1 var(--display);
    letter-spacing: -.02em;
}

:where(.mh) .brand span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
}

:where(.mh) .brand img {
    width: 32px;
    height: 32px;
}

:where(.mh) .bar > nav {
    display: flex;
    gap: 30px;
    font-size: 16px;
    font-weight: 500;
}

:where(.mh) .bar > nav a,
:where(.mh) .subnav a:not(.btn) {
    padding: 11px 0;
    white-space: nowrap;
    text-decoration: none;
}

:where(.mh) .bar > nav a:hover,
:where(.mh) .subnav a:not(.btn):hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
}

:where(.mh) .bar > nav a[aria-current],
:where(.mh) .subnav a[aria-current] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

:where(.mh) .cabinet {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 20px;
    border: 1.5px solid currentColor;
    border-radius: 99px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s, color .2s;
}

:where(.mh) .cabinet:hover {
    border-color: var(--cobalt);
    background: var(--cobalt);
    color: #fff;
}

:where(.mh) .cabinet-short,
:where(.mh) .menu {
    display: none;
}

/* Открытое меню должно быть выше окна cookie: у окна z-index 100000 */
.menu-open :where(.mh) .bar {
    z-index: 100001;
}

/* Вторая строка: разделы страницы. Появляется, когда закончилась 3D-история */
:where(.mh) .subnav {
    position: fixed;
    inset: 60px 0 auto;
    z-index: 19;
    display: flex;
    align-items: center;
    gap: 30px;
    height: 56px;
    padding: 0 var(--pad);
    border-top: 1px solid #343a49;
    color: #fff;
    background: #07080cf5;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s, transform .25s, visibility .25s, background .4s, color .4s, border-color .4s;
}

.past :where(.mh) .subnav {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.pale :where(.mh) .subnav {
    border-color: var(--line);
    color: var(--ink);
    background: #fffffff7;
}

/* Вместе со второй строкой шапка почти непрозрачная, чтобы строки были одного цвета */
.past :where(.mh) .bar {
    background: #07080cf5;
}

.past.pale :where(.mh) .bar {
    background: #fffffff7;
}

:where(.mh) .subnav .btn {
    min-height: 44px;
    margin-left: auto;
    padding: 8px 22px;
    font-size: 16px;
}

:where(.mh) #story {
    position: relative;
    background: var(--night);
    color: #fff;
}

:where(.mh) .pin {
    position: relative;
    overflow: hidden;
}

.gl :where(.mh) .pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
}

:where(.mh) #stage {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gl :where(.mh) #stage {
    display: block;
}

:where(.mh) .poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
}

.gl :where(.mh) .poster {
    display: none;
}

:where(.mh) .hero {
    position: relative;
    min-height: max(100svh,62vw);
    background: var(--fog);
    color: var(--ink);
}

.gl :where(.mh) .hero {
    position: absolute;
    inset: 0;
    background: none;
    min-height: 0;
    pointer-events: none;
}

.gl :where(.mh) .hero a {
    pointer-events: auto;
}

:where(.mh) .hero-title {
    position: absolute;
    left: calc(var(--pad) - .05em);
    right: 0;
    white-space: nowrap;
}

:where(.mh) .hero-title span {
    display: inline-block;
}

:where(.mh) .hero-title .m {
    display: none;
}

.gl :where(.mh) .hero-title {
    color: transparent;
}

:where(.mh) .hero-copy {
    position: absolute;
}

:where(.mh) .hero-copy p {
    line-height: 1.36;
}

:where(.mh) .acts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    margin-top: 22px;
}

:where(.mh) .steps>li {
    padding: 28px var(--pad);
    max-width: 760px;
}

:where(.mh) .steps h2 {
    font-size: clamp(34px,4.1vw,68px);
    line-height: 1.02;
}

:where(.mh) .steps p {
    text-wrap: pretty;
    margin-top: 16px;
    font-size: clamp(17px,1.4vw,21px);
    color: #b9c1d2;
    max-width: 30em;
}

:where(.mh) .steps p b {
    font: 500 .92em var(--mono);
    color: #fff;
}

.gl :where(.mh) .steps>li {
    position: absolute;
    left: 0;
    top: max(84px,12vh);
    max-width: none;
    padding: 0 0 0 var(--pad);
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .3s,transform .5s cubic-bezier(.2,.7,.2,1);
    pointer-events: none;
}

.gl :where(.mh) .steps>li.on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: .12s;
}

:where(.mh) .cue i {
    font-style: normal;
}

:where(.mh) .cue {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    bottom: 20px;
    display: none;
    justify-content: space-between;
    gap: 20px;
    font-size: 15px;
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s,visibility .3s;
}

.gl :where(.mh) .cue {
    display: flex;
}

.gl.start :where(.mh) .cue {
    opacity: 1;
    visibility: visible;
}

:where(.mh) .goods {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

:where(.mh) .good {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: clamp(620px,56vw,860px);
    padding: clamp(28px,3.6vw,60px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    isolation: isolate;
}

:where(.mh) .good h3 {
    font-size: clamp(34px,4vw,66px);
    line-height: 1;
    letter-spacing: -.045em;
}

:where(.mh) .good p {
    margin-top: 14px;
    max-width: 27em;
    font-size: clamp(17px,1.35vw,20px);
    line-height: 1.42;
}

:where(.mh) .good .price {
    margin-top: 20px;
    font: 600 clamp(22px,1.9vw,30px)/1.15 var(--display);
    letter-spacing: -.025em;
}

:where(.mh) .good .price small {
    display: block;
    margin-top: 5px;
    font: 400 16px/1.4 var(--text);
    letter-spacing: 0;
}

:where(.mh) .good .acts {
    margin-top: 22px;
}

:where(.mh) .good>img,
:where(.mh) .good>picture img {
    position: absolute;
    z-index: -1;
    max-width: none;
}

:where(.mh) .g-book {
    grid-column: 1/-1;
    background: #0b4a3c;
    color: #fff;
    min-height: 0;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    gap: clamp(28px,5vw,90px);
    align-items: start;
}

:where(.mh) .g-book .in {
    padding-bottom: clamp(28px,3.6vw,60px);
}

:where(.mh) .g-book figure {
    height: clamp(300px,36vw,560px);
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #f5f8f6;
}

:where(.mh) .g-book figure img {
    width: 100%;
}

:where(.mh) .who {
    position: relative;
    background: var(--cobalt);
    color: #fff;
    overflow: hidden;
    min-height: min(1280px,78vw);
    padding: clamp(60px,6vw,100px) var(--pad);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

:where(.mh) .who h2 {
    font-size: 17.6vw;
    line-height: .84;
    letter-spacing: -.065em;
    margin-left: -.05em;
    z-index: -2;
    position: relative;
    white-space: nowrap;
}

:where(.mh) .who h2 span {
    display: block;
}

:where(.mh) .who>img {
    position: absolute;
    z-index: -1;
    right: -1.5vw;
    bottom: 0;
    width: auto;
    height: 94%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 0;
}

:where(.mh) .who-text {
    margin-top: auto;
    padding-top: 40px;
    width: min(46%,640px);
}

:where(.mh) .who-text p {
    font: 500 clamp(21px,2vw,32px)/1.26 var(--display);
    letter-spacing: -.02em;
}

:where(.mh) .who-text .acts {
    margin-top: 28px;
}

:where(.mh) .said {
    padding: clamp(90px,11vw,180px) var(--pad);
}

:where(.mh) .said blockquote p {
    font: 500 clamp(32px,5vw,84px)/1.06 var(--display);
    letter-spacing: -.04em;
    max-width: 17em;
    text-wrap: balance;
}

:where(.mh) .said footer {
    margin-top: 22px;
    color: var(--muted);
}

:where(.mh) .said-more {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 32px 56px;
    margin-top: clamp(56px,7vw,110px);
    align-items: start;
}

:where(.mh) .said-more blockquote p {
    font-size: clamp(22px,2vw,32px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

:where(.mh) .said-more .score {
    font: 600 clamp(56px,6vw,100px)/.85 var(--display);
    letter-spacing: -.05em;
}

:where(.mh) .said-more .score+p {
    margin-top: 16px;
    color: var(--muted);
}

:where(.mh) .talk {
    background: var(--fog);
    padding: clamp(90px,10vw,160px) var(--pad);
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 64px clamp(48px,8vw,150px);
}

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

:where(.mh) .qa {
    margin-top: 36px;
}

:where(.mh) .qa details {
    border-top: 1px solid #bfc7d2;
}

:where(.mh) .qa details:last-child {
    border-bottom: 1px solid #bfc7d2;
}

:where(.mh) .qa summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    font: 600 clamp(18px,1.4vw,21px)/1.3 var(--text);
    cursor: pointer;
    list-style: none;
}

:where(.mh) .qa summary::-webkit-details-marker {
    display: none;
}

:where(.mh) .qa summary::after {
    content: "+";
    font: 400 28px/.85 var(--display);
    color: var(--cobalt);
}

:where(.mh) .qa details[open] summary::after {
    content: "–";
}

:where(.mh) .qa p {
    padding: 0 40px 22px 0;
    color: #414857;
}

:where(.mh) .foot {
    flex-wrap: wrap;
    gap: 12px 40px;
    justify-content: space-between;
}

:where(.mh) .foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

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

@media(max-width:760px),(max-aspect-ratio:9/10) {
    :where(.mh) .hero-title .m {
        display: inline;
    }

    :where(.mh) .hero-copy .acts {
        margin-top: 14px;
        gap: 8px 20px;
    }

    .gl :where(.mh) .steps>li {
        top: 76px;
        padding-right: var(--pad);
    }

    :where(.mh) .steps p {
        margin-top: 10px;
    }

    :where(.mh) .cue {
        bottom: 14px;
        font-size: 15px;
        white-space: nowrap;
    }

    :where(.mh) .cue i {
        display: none;
    }
}

@media(max-width:760px) {
    .mh {
        font-size: 17px;
    }

    :where(.mh) .goods {
        grid-template-columns: minmax(0,1fr);
        gap: 8px;
    }

    :where(.mh) .good {
        border-radius: 24px;
        min-height: 0;
        padding: 30px 24px 0;
    }

    :where(.mh) .good>img,
    :where(.mh) .good>picture {
        position: static;
        order: 5;
    }

    :where(.mh) .good>img,
    :where(.mh) .good>picture img {
        order: 5;
        width: calc(100% + 48px);
        height: auto;
        margin: 10px -24px 0;
    }

    :where(.mh) .g-book {
        display: flex;
    }

    :where(.mh) .g-book figure {
        order: 5;
        width: 100%;
        height: 300px;
    }

    :where(.mh) .g-book figure img {
        width: 128%;
        max-width: none;
    }

    :where(.mh) .hero-copy .btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    :where(.mh) .hero-copy .more {
        font-size: 16px;
    }

    :where(.mh) .who {
        min-height: 0;
        padding-bottom: 0;
    }

    :where(.mh) .who h2 {
        font-size: 23.5vw;
    }

    :where(.mh) .who>img {
        position: relative;
        right: auto;
        height: auto;
        width: 104%;
        margin: 20px 0 0 2%;
        order: 5;
        aspect-ratio: 1/1.08;
    }

    :where(.mh) .who-text {
        order: 3;
        width: 100%;
        margin: 0;
        padding: 32px 0 0;
    }

    :where(.mh) .said-more {
        grid-template-columns: minmax(0,1fr);
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    :where(.mh) *,
    :where(.mh) *::before,
    :where(.mh) *::after {
        transition-duration: .01ms!important;
        transition-delay: 0s!important;
    }
}

html:not(.gl) :where(.mh) .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,400px),1fr));
    gap: 20px;
    padding: 70px 0 30px;
}

html:not(.gl) :where(.mh) .steps h2 {
    font-size: clamp(28px,2.6vw,42px);
}

.gl.day :where(.mh) #story {
    background: var(--fog);
}

.gl.day :where(.mh) .steps {
    color: var(--ink);
}

.gl.day :where(.mh) .steps p {
    color: #414857;
}

:where(.mh) .steps .when {
    color: var(--gold);
    font-weight: 600;
}

:where(.mh) .steps .price {
    margin-top: 22px;
    font: 600 clamp(26px,2.3vw,38px)/1.1 var(--display);
    letter-spacing: -.03em;
    color: #fff;
}

.gl.day :where(.mh) .steps .price {
    color: var(--ink);
}

:where(.mh) .only3d {
    display: none;
}

.gl :where(.mh) .only3d {
    display: block;
}

:where(.mh) .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

:where(.mh) .steps .chips {
    margin-top: 24px;
}

:where(.mh) .chips li {
    padding: 7px 13px;
    border-radius: 99px;
    font: 500 15px/1.25 var(--text);
    color: #646c7b;
    box-shadow: inset 0 0 0 1px #c3cad6;
}

:where(.mh) .chips .in {
    background: var(--gold);
    color: var(--ink);
    box-shadow: none;
}

:where(.mh) .chips.any li {
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--gold);
}

html:not(.gl) :where(.mh) .steps .chips li:not(.in) {
    color: #c9d0dd;
}

:where(.mh) .sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

:where(.mh) .formats {
    background: var(--fog);
    padding: clamp(80px,7vw,120px) var(--pad) clamp(70px,8vw,130px);
}

:where(.mh) .cols {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    column-gap: clamp(28px,4vw,72px);
    margin-top: clamp(20px,2.4vw,40px);
}

:where(.mh) .cols article {
    display: grid;
    grid-template-rows: subgrid;
    align-content: start;
    min-width: 0;
}

:where(.mh) .cols img {
    width: 100%;
    aspect-ratio: 10/7;
    object-fit: cover;
}

:where(.mh) .cols h3 {
    font-size: clamp(32px,3.3vw,56px);
    line-height: 1;
    letter-spacing: -.045em;
}

:where(.mh) .cols .price {
    margin-top: 12px;
    font: 600 clamp(24px,2vw,34px)/1.15 var(--display);
    letter-spacing: -.03em;
}

:where(.mh) .cols .price small {
    font: 400 17px/1.3 var(--text);
    letter-spacing: 0;
}

:where(.mh) .cols dl {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    margin-top: 26px;
}

:where(.mh) .cols dl div {
    border-top: 1px solid #bfc7d2;
    padding: 14px 0 18px;
}

:where(.mh) .cols dt {
    font-size: 14px;
    color: var(--muted);
}

:where(.mh) .cols dd {
    margin-top: 4px;
    font-size: 17px;
    line-height: 1.4;
}

:where(.mh) .cols dd .chips {
    margin-top: 8px;
}

:where(.mh) .cols .chips li {
    font-size: 14px;
    padding: 6px 11px;
}

:where(.mh) .cols .note {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    color: var(--muted);
}

:where(.mh) .cols .btn {
    justify-self: start;
    align-self: start;
    margin-top: 8px;
}

:where(.mh) .ai {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 60px;
    justify-content: space-between;
    margin-top: clamp(44px,5vw,80px);
    padding-top: 26px;
    border-top: 4px solid var(--gold);
    font-size: clamp(17px,1.35vw,20px);
}

:where(.mh) .ai p {
    max-width: 34em;
}

:where(.mh) .goods {
    display: block;
    padding: 12px 12px 0;
}

@media(max-width:1000px) {
    :where(.mh) .cols {
        grid-template-columns: minmax(0,1fr);
        row-gap: 64px;
    }

    :where(.mh) .cols article,
    :where(.mh) .cols dl {
        display: block;
    }

    :where(.mh) .cols img {
        max-width: 560px;
    }
}

@media(max-width:760px),(max-aspect-ratio:9/10) {
    .gl :where(.mh) .steps .chips {
        display: none;
    }

    :where(.mh) .steps .price {
        margin-top: 14px;
        font-size: 28px;
    }

    :where(.mh) .steps .when {
        margin-top: 6px;
    }
}

@media(max-width:760px) {
    :where(.mh) .goods {
        padding: 8px 8px 0;
    }

    :where(.mh) .cols .btn {
        width: 100%;
    }
}

@media(max-width:760px) and (max-height:730px) and (max-aspect-ratio:9/10) {
    .gl :where(.mh) .steps>li {
        top: 64px;
    }

    :where(.mh) .steps h2 {
        font-size: 28px;
    }

    :where(.mh) .steps p {
        font-size: 15px;
        line-height: 1.4;
        margin-top: 6px;
    }

    :where(.mh) .steps .acts {
        margin-top: 12px;
    }

    :where(.mh) .steps .btn {
        min-height: 44px;
        padding: 8px 20px;
        font-size: 15px;
    }
}

.gl :where(.mh) #story {
    height: 760vh;
}

:where(.mh) .hero-copy {
    left: var(--pad);
}

:where(.mh) .hero-copy p {
    font-size: clamp(18px,1.4vw,22px);
}

:where(.mh) .names {
    display: none;
}

.gl :where(.mh) .names {
    display: block;
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}

.gl :where(.mh) .names.on {
    opacity: 1;
}

:where(.mh) .names span {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    color: #dfe5f3;
    font: 600 clamp(14px,1.2vw,19px)/1.2 var(--text);
}

.gl :where(.mh) .steps>li {
    width: min(44%,720px);
}

:where(.mh) .line {
    margin-top: 30px;
}

.gl :where(.mh) .line.only3d {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 26px;
}

:where(.mh) .line code {
    font: 600 clamp(28px,3.1vw,52px)/1.1 var(--mono);
    letter-spacing: -.04em;
    color: var(--ink);
    white-space: nowrap;
}

:where(.mh) .line i {
    font-style: normal;
    color: var(--cobalt);
}

:where(.mh) .line b {
    display: inline-block;
    min-width: 1.15em;
    padding: .08em .2em;
    border-radius: .22em;
    background: var(--gold);
    text-align: center;
    font-weight: 600;
}

:where(.mh) .line span {
    display: flex;
    gap: 8px;
}

:where(.mh) .line button {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--cobalt);
    color: #fff;
    font: 500 30px/1 var(--display);
    cursor: pointer;
    touch-action: manipulation;
}

:where(.mh) .line button:hover {
    background: #0f2be0;
}

:where(.mh) .line button:disabled {
    background: #cdd4df;
    color: #6d7686;
    cursor: default;
}

:where(.mh) .line button:focus-visible {
    outline-color: var(--ink);
    border-radius: 50%;
}

.gl :where(.mh) .steps .final {
    margin-top: 34px;
}

:where(.mh) .cols article {
    grid-row: span 7;
}

@media(max-width:760px),(max-aspect-ratio:9/10) {
    :where(.mh) .hero-copy {
        right: var(--pad);
    }

    .gl :where(.mh) #story {
        height: 680vh;
    }

    .gl :where(.mh) .steps>li {
        width: 100%;
    }

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

    :where(.mh) .line code {
        font-size: clamp(25px,7.4vw,44px);
    }

    .gl :where(.mh) .line.only3d {
        gap: 10px 18px;
    }

    :where(.mh) .line button {
        width: 48px;
        height: 48px;
    }

    .gl :where(.mh) .steps .final {
        margin-top: 14px;
    }

    :where(.mh) .names span {
        font-size: 14px;
    }
}

@media(min-width:761px) and (min-aspect-ratio:9/10) {
    .gl :where(.mh) .steps>li:first-child p {
        max-width: min(24em,32vw);
    }
}

:where(.mh) .names br {
    display: none;
}

@media(max-width:760px),(max-aspect-ratio:9/10) {
    :where(.mh) .names br {
        display: inline;
    }

    :where(.mh) .names span {
        text-align: right;
    }
}

@media(min-width:761px) {
    .gl :where(.mh) .steps li:nth-child(n+2) p {
        max-width: 26em;
    }
}

@media(max-width:760px) and (max-height:730px) and (max-aspect-ratio:9/10) {
    :where(.mh) .line {
        margin-top: 10px;
    }

    :where(.mh) .line button {
        width: 44px;
        height: 44px;
    }

    .gl :where(.mh) .steps .final {
        margin-top: 8px;
    }

    .gl :where(.mh) .cue {
        display: none;
    }
}

@media(max-width:350px) {
    :where(.mh) .hero-copy p {
        font-size: 15px;
        line-height: 1.35;
    }

    :where(.mh) .hero-copy .acts {
        margin-top: 10px;
    }

    :where(.mh) .hero-copy .btn {
        min-height: 44px;
        padding: 8px 18px;
    }

    .gl :where(.mh) .line.only3d {
        gap: 8px 10px;
    }

    :where(.mh) .line code {
        font-size: 21px;
    }

    :where(.mh) .line span {
        gap: 6px;
    }
}

@media(max-height:760px) and (min-aspect-ratio:9/10) {
    .gl :where(.mh) .cue {
        display: none;
    }
}

html:not(.gl) :where(.mh) .hero {
    min-height: max(100svh,46vw);
}

html:not(.gl) :where(.mh) .poster {
    object-position: 100% 60%;
}

@media(max-width:760px),(max-aspect-ratio:9/10) {
    html:not(.gl) :where(.mh) .poster {
        object-position: 50% 100%;
    }
}

@media(max-height:560px) and (min-aspect-ratio:9/10) {
    :where(.mh) .hero-copy p {
        font-size: 14px;
        line-height: 1.35;
    }

    :where(.mh) .hero-copy .acts {
        flex-wrap: nowrap;
        gap: 8px 16px;
        margin-top: 8px;
    }

    :where(.mh) .hero-copy .btn {
        min-height: 44px;
        padding: 8px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    :where(.mh) .hero-copy .more {
        font-size: 14px;
        white-space: nowrap;
    }

    html:not(.gl) :where(.mh) .hero {
        min-height: max(100svh,46vw);
    }

    html:not(.gl) :where(.mh) .poster {
        object-fit: contain;
        object-position: 100% 100%;
    }
}

:where(.mh) .hero-title {
    top: max(84px,12vh);
    letter-spacing: -.055em;
}

.gl :where(.mh) .hero button {
    pointer-events: auto;
}

:where(.mh) button.more {
    border: 0;
    background: none;
    padding: 8px 0;
    text-decoration: underline;
    cursor: pointer;
}

@media(max-width:760px),(max-aspect-ratio:9/10) {
    :where(.mh) .hero-title {
        top: 88px;
    }
}

@media(max-width:760px) and (max-height:730px) and (max-aspect-ratio:9/10) {
    :where(.mh) .hero-title {
        top: 76px;
    }

    :where(.mh) .hero-copy .more {
        display: inline-block;
    }
}

html.watching {
    overflow: hidden;
}

:where(.mh) .lesson {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    background: #07080c;
    color: #fff;
}

:where(.mh) .lesson[open] {
    display: grid;
    align-items: center;
    justify-items: center;
    padding: max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
}

:where(.mh) .lesson::backdrop {
    background: none;
}

:where(.mh) .lesson-in {
    width: min(100%,1500px,(100vh - 150px)*16/9);
    min-width: 0;
}

:where(.mh) .lesson header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

:where(.mh) .lesson h2 {
    font-size: clamp(22px,2vw,32px);
    line-height: 1.1;
    letter-spacing: -.03em;
}

:where(.mh) .lesson header p {
    margin-top: 4px;
    color: #aeb7ca;
    font-size: 16px;
}

:where(.mh) .lesson-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #1b2030;
    color: #fff;
    cursor: pointer;
}

:where(.mh) .lesson-close:hover {
    background: #2c344b;
}

:where(.mh) .lesson-close svg {
    width: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

:where(.mh) .mplayer {
    --mp-accent: #ffbe46;
    --mp-gold: #ffbe46;
    --mp-panel: #141824f7;
    --mp-line: #ffffff1f;
    border-radius: 18px;
    font-family: var(--text);
    outline: none;
}

:where(.mh) .mplayer:fullscreen {
    border-radius: 0;
}

:where(.mh) .mplayer__big-play {
    width: 92px;
    height: 92px;
    background: var(--cobalt);
    color: #fff;
    box-shadow: none;
}

:where(.mh) .mplayer__big-play svg {
    width: 40px;
    height: 40px;
}

:where(.mh) .mplayer__big-play:hover,
:where(.mh) .mplayer__big-play:focus-visible {
    background: #3b57ff;
}

:where(.mh) .mplayer__button,
:where(.mh) .mplayer__time,
:where(.mh) .mplayer__menu button,
:where(.mh) .mplayer__seek-tip {
    font-weight: 600;
}

:where(.mh) .mplayer__button {
    font-size: 15px;
    min-width: 44px;
    height: 44px;
}

:where(.mh) .mplayer__time,
:where(.mh) .mplayer__menu button {
    font-size: 15px;
}

:where(.mh) .mplayer__button svg {
    width: 24px;
    height: 24px;
}

:where(.mh) .mplayer__menu {
    min-width: 210px;
}

:where(.mh) .mplayer__menu button {
    min-height: 40px;
}

:where(.mh) .mplayer__menu-title {
    color: #aeb7ca;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

:where(.mh) .mplayer__menu-tag {
    background: none;
    color: inherit;
    opacity: .75;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
}

:where(.mh) .mplayer__seek::-webkit-slider-thumb,
:where(.mh) .mplayer__volume::-webkit-slider-thumb {
    box-shadow: none;
}

:where(.mh) .mplayer__seek::-moz-range-thumb {
    box-shadow: none;
}

:where(.mh) .mplayer__cc {
    position: relative;
}

:where(.mh) .mplayer__cc[aria-pressed=true]::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 4px;
    height: 3px;
    border-radius: 2px;
    background: var(--mp-accent);
}

:where(.mh) .mplayer__captions {
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    justify-self: center;
    z-index: 2;
    max-width: min(86%,46em);
    margin: 0 0 4px;
    padding: .28em .6em .34em;
    border-radius: .4em;
    background: #07080cd9;
    color: #fff;
    font: 500 clamp(15px,2.1cqi,34px)/1.32 var(--text);
    text-align: center;
    text-wrap: balance;
    white-space: pre-line;
    pointer-events: none;
    transition: transform .22s;
}

:where(.mh) .mplayer__captions[hidden] {
    display: none;
}

:where(.mh) .mplayer--idle .mplayer__captions {
    transform: translateY(64px);
}

@container (max-width:660px) {
    :where(.mh) .mplayer__button[data-player-pip] {
        display: none;
    }
}

@container (max-width:560px) {
    :where(.mh) .mplayer__button {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    :where(.mh) .mplayer__row {
        gap: 0;
    }

    :where(.mh) .mplayer__captions {
        max-width: 94%;
        margin-bottom: 0;
    }

    :where(.mh) .mplayer__big-play {
        width: 68px;
        height: 68px;
    }
}

@media(max-width:700px) and (orientation:portrait) {
    :where(.mh) .lesson[open] {
        align-items: start;
        padding-inline: 0;
    }

    :where(.mh) .lesson header {
        padding: 0 16px;
    }

    :where(.mh) .lesson-in {
        width: 100%;
    }

    :where(.mh) .mplayer:not(:fullscreen) {
        border-radius: 0;
        overflow: visible;
    }

    :where(.mh) .mplayer:not(:fullscreen) .mplayer__menu {
        top: calc(100% + 10px);
        bottom: auto;
        left: 12px;
        right: 12px;
        min-width: 0;
        max-height: calc(100svh - 56.25vw - 144px);
    }

    :where(.mh) .mplayer:not(:fullscreen) .mplayer__menu button {
        min-height: 44px;
        font-size: 17px;
    }
}

@media(max-height:500px) and (orientation:landscape) {
    :where(.mh) .lesson[open] {
        padding-block: 8px;
    }

    :where(.mh) .lesson-in {
        width: min(100%,(100vh - 72px)*16/9);
    }

    :where(.mh) .lesson header {
        margin-bottom: 8px;
    }

    :where(.mh) .lesson header p {
        display: none;
    }

    :where(.mh) .lesson h2 {
        font-size: 18px;
    }

    :where(.mh) .lesson-close {
        width: 44px;
        height: 44px;
    }
}

:where(.mh) .btn {
    text-align: center;
}

:where(.mh) .mark {
    position: absolute;
    left: 0;
    width: 1px;
    height: 1px;
}

:where(.mh) .mplayer[hidden] {
    display: none;
}

:where(.mh) button.more {
    color: inherit;
    font-size: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

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

:where(.mh) .show-head {
    display: grid;
    grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
    gap: 24px clamp(40px,7vw,130px);
    align-items: end;
    margin-bottom: clamp(36px,4.4vw,72px);
}

:where(.mh) .show-head p {
    font-size: clamp(17px,1.4vw,21px);
    color: #b9c1d2;
    max-width: 30em;
}

:where(.mh) .reel {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #10131c;
}

:where(.mh) .reel video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

:where(.mh) .reel-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 18px 0 clamp(44px,5vw,84px);
}

:where(.mh) .reel-stop {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: #1b2030;
    color: #fff;
    cursor: pointer;
}

:where(.mh) .reel-stop[hidden] {
    display: none;
}

:where(.mh) .reel-stop svg {
    width: 24px;
    fill: currentColor;
}

:where(.mh) .reel-stop .i-play,
:where(.mh) .reel-stop.off .i-pause {
    display: none;
}

:where(.mh) .reel-stop.off .i-play {
    display: block;
}

:where(.mh) .clips {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: clamp(20px,2.4vw,40px);
    margin-top: clamp(20px,2.4vw,40px);
}

:where(.mh) .clip {
    display: grid;
    gap: 4px;
    justify-items: start;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

:where(.mh) .clip-pic {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 14px;
    border-radius: 22px;
    overflow: hidden;
}

:where(.mh) .clip-pic img {
    width: 100%;
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
}

:where(.mh) .clip:hover img {
    transform: scale(1.025);
}

:where(.mh) .clip-pic i {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--cobalt);
}

:where(.mh) .clip-pic svg {
    width: 30px;
    fill: #fff;
}

:where(.mh) .clip strong {
    font: 600 clamp(22px,2vw,34px)/1.15 var(--display);
    letter-spacing: -.03em;
}

:where(.mh) .clip>span:last-child {
    color: #b9c1d2;
}

:where(.mh) .clip:focus-visible {
    border-radius: 22px;
}

:where(.mh) .tiles {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
    gap: 12px;
    margin-top: clamp(40px,4.4vw,72px);
}

:where(.mh) .tile {
    border-radius: 28px;
    padding: clamp(26px,3vw,50px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: clamp(26px,3vw,48px);
    min-width: 0;
}

:where(.mh) .tile h3 {
    font-size: clamp(30px,3.2vw,54px);
    line-height: 1;
    letter-spacing: -.045em;
}

:where(.mh) .tile h3+p {
    margin-top: 14px;
    max-width: 27em;
    font-size: clamp(17px,1.35vw,20px);
    line-height: 1.42;
}

:where(.mh) .t-task {
    background: #dfe7f2;
    color: var(--ink);
    padding-bottom: 0;
}

:where(.mh) .shots {
    position: relative;
    margin-top: auto;
    padding-bottom: clamp(24px,3vw,48px);
}

:where(.mh) .shots img {
    border-radius: 16px;
    border: 1px solid #bfc9d8;
}

:where(.mh) .shots img+img {
    position: relative;
    width: 72%;
    margin: -11% -4% 0 auto;
    box-shadow: 0 18px 50px #1b274538;
}

:where(.mh) .t-chat {
    background: var(--gold);
    color: var(--ink);
}

:where(.mh) .chat {
    display: grid;
    gap: 10px;
    margin-top: auto;
    font-size: clamp(16px,1.25vw,19px);
    line-height: 1.4;
}

:where(.mh) .chat p {
    justify-self: start;
    max-width: 88%;
    padding: 14px 18px;
    border-radius: 20px 20px 20px 5px;
    background: #fff;
}

:where(.mh) .chat .me {
    justify-self: end;
    border-radius: 20px 20px 5px 20px;
    background: var(--ink);
    color: #fff;
}

:where(.mh) .chat code {
    font: 600 .95em var(--mono);
}

:where(.mh) .chat small {
    margin-top: 6px;
    font-size: 15px;
}

:where(.mh) .foot {
    display: block;
    padding: clamp(64px,7vw,120px) var(--pad) 32px;
    background: var(--night);
    color: #fff;
    font-size: inherit;
}

:where(.mh) .foot a {
    text-decoration: none;
}

:where(.mh) .foot a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

:where(.mh) .foot h2 {
    font: 600 16px/1.3 var(--text);
    letter-spacing: 0;
    color: var(--gold);
}

:where(.mh) .foot-top {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.4fr);
    gap: 56px clamp(40px,8vw,150px);
}

:where(.mh) .foot-brand p,
:where(.mh) .foot-contacts p {
    max-width: 30em;
    color: #b9c1d2;
}

:where(.mh) .foot-brand p {
    margin-top: 18px;
}

:where(.mh) .foot-brand h2 {
    margin-top: 34px;
}

:where(.mh) .foot-brand h2+p {
    margin-top: 8px;
}

:where(.mh) .foot .foot-contacts h2 {
    margin: 6px 0 12px;
    font: 600 clamp(38px,4.6vw,76px)/1 var(--display);
    letter-spacing: -.045em;
    color: #fff;
}

:where(.mh) .foot address {
    display: grid;
    justify-items: start;
    gap: 6px;
    margin-top: 26px;
    font-style: normal;
    font-size: clamp(17px,1.35vw,20px);
}

:where(.mh) .foot address a {
    max-width: 100%;
    padding: 5px 0;
    overflow-wrap: anywhere;
}

:where(.mh) .foot address small {
    color: #b9c1d2;
    font-size: 15px;
}

:where(.mh) .foot .foot-big {
    font: 600 clamp(26px,2.6vw,42px)/1.15 var(--display);
    letter-spacing: -.03em;
    color: var(--gold);
}

:where(.mh) .foot-nav {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 40px clamp(24px,4vw,72px);
    margin-top: clamp(56px,6vw,100px);
    padding-top: 34px;
    border-top: 1px solid #343a49;
}

:where(.mh) .foot .foot-nav nav {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 2px;
}

:where(.mh) .foot-nav h2 {
    margin-bottom: 10px;
}

:where(.mh) .foot-nav a {
    padding: 6px 0;
    font-size: 16px;
    line-height: 1.35;
}

:where(.mh) .foot-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 32px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid #343a49;
    font-size: 15px;
    color: #b9c1d2;
}

:where(.mh) .foot-bottom p {
    margin-right: auto;
}

:where(.mh) .foot-bottom a {
    padding: 8px 0;
}

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

    :where(.mh) .tiles {
        grid-template-columns: minmax(0,1fr);
    }

    :where(.mh) .show-head {
        grid-template-columns: minmax(0,1fr);
    }
}

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

    :where(.mh) .foot-bottom p {
        width: 100%;
    }

    :where(.mh) .show {
        padding-inline: 8px;
    }

    :where(.mh) .show-head,
    :where(.mh) .clips,
    :where(.mh) .after,
    :where(.mh) .reel-bar {
        padding-inline: 16px;
    }

    :where(.mh) .clips {
        grid-template-columns: minmax(0,1fr);
        gap: 34px;
    }

    :where(.mh) .reel,
    :where(.mh) .tile {
        border-radius: 24px;
    }

    :where(.mh) .reel video {
        aspect-ratio: 4/3;
    }

    :where(.mh) .reel-bar .btn {
        padding: 12px 18px;
        font-size: 15px;
    }

    :where(.mh) .shots img+img {
        width: 92%;
        margin-right: -2%;
    }
}

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

/* Телефоны и низкие экраны: ссылки убираются в меню, вход остаётся на виду */
@media (max-width: 760px), (max-height: 560px) {
    :where(.mh) .bar {
        gap: 16px;
    }

    :where(.mh) .bar > nav,
    :where(.mh) .subnav {
        display: none;
    }

    :where(.mh) .cabinet {
        padding: 8px 16px;
    }

    :where(.mh) .cabinet-wide {
        display: none;
    }

    :where(.mh) .cabinet-short {
        display: inline;
    }

    :where(.mh) .menu {
        display: block;
        position: relative;
    }

    :where(.mh) .menu summary {
        padding: 12px 0;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.25;
        list-style: none;
        cursor: pointer;
    }

    :where(.mh) .menu summary::-webkit-details-marker {
        display: none;
    }

    :where(.mh) .menu-box {
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        display: grid;
        gap: 14px;
        width: min(300px, calc(100vw - 2 * var(--pad)));
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
        padding: 18px 24px 22px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 20px;
        background: #fff;
        color: var(--ink);
        box-shadow: 0 20px 60px #0003;
    }

    :where(.mh) .menu-box nav {
        display: grid;
    }

    :where(.mh) .menu-box nav + nav {
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }

    :where(.mh) .menu-box p {
        padding-bottom: 2px;
        color: var(--muted);
        font-size: 14px;
    }

    :where(.mh) .menu-box nav a {
        padding: 11px 0;
        font-size: 17px;
        font-weight: 500;
        line-height: 1.3;
        text-decoration: none;
    }

    :where(.mh) .menu-box a[aria-current] {
        color: var(--cobalt);
        font-weight: 600;
    }
}

/* На низких экранах места мало: группы меню стоят рядом */
@media (max-height: 560px) and (min-width: 600px) {
    :where(.mh) .menu-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 32px;
        width: 500px;
    }

    :where(.mh) .menu-box nav {
        align-content: start;
    }

    :where(.mh) .menu-box nav + nav {
        padding-top: 0;
        border-top: 0;
    }

    :where(.mh) .menu-box .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 350px) {
    :where(.mh) .bar {
        gap: 12px;
    }

    :where(.mh) .cabinet {
        padding: 8px 12px;
        font-size: 15px;
    }

    :where(.mh) .brand {
        gap: 8px;
        font-size: 18px;
    }
}
