@font-face {
    font-family: Montserrat;
    src: url("./fonts/Montserrat-400.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url("./fonts/Montserrat-500.woff") format("woff");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url("./fonts/Montserrat-600.woff") format("woff");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url("./fonts/Montserrat-700.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url("./fonts/Montserrat-800.woff") format("woff");
    font-weight: 800;
    font-display: swap;
}

.aui-page {
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
}

.aui-body {
    --aui-ink: #28141d;
    --aui-muted: #624b56;
    --aui-red: #a71d3c;
    --aui-line: #eadbe0;
    margin: 0;
    color: var(--aui-ink);
    background: #fff;
    font: 400 16px/1.55 Montserrat, Arial, sans-serif;
}

.aui-body [hidden] { display: none !important; }

.aui-wrap {
    width: min(1160px, calc(100% - 64px));
    margin-inline: auto;
}

.aui-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.aui-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aui-body :is(a, button, summary, input):focus-visible {
    outline: 3px solid #cd5472;
    outline-offset: 4px;
}

.aui-skip {
    position: fixed;
    z-index: 30;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 10px 16px;
    background: #fff;
    color: #781330;
    border-radius: 8px;
}

.aui-skip:focus { transform: none; }

.aui-opening {
    isolation: isolate;
    position: relative;
    background:
        radial-gradient(ellipse at 100% 0%, #a8324a8a, transparent 65%),
        linear-gradient(115deg, #330c1d 0%, #65122d 55%, #8e1539 100%);
    color: #fff;
}

.aui-opening::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("./waves.svg") right center / auto 122% no-repeat;
}

.aui-opening .aui-wrap,
.aui-lessons .aui-wrap {
    width: min(1486px, calc(100% - 72px));
}

.aui-top {
    min-height: 76px;
    display: flex;
    gap: 16px 28px;
    align-items: center;
    border-bottom: 1px solid #ffffff30;
}

.aui-brand {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 8px;
    background: #fff;
    flex: 0 0 auto;
}

.aui-brand img {
    display: block;
    width: 178px;
    height: auto;
}

.aui-top nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.aui-top nav a,
.aui-lessons-jump,
.aui-topics summary {
    color: #fff0f3;
    font-weight: 600;
    font-size: 14px;
}

.aui-top nav a:hover,
.aui-lessons-jump:hover,
.aui-topics summary:hover { text-decoration: underline; }

.aui-id2 {
    margin-left: auto;
    min-width: 0;
}

.aui-id2:empty { display: none; }

.aui-hero {
    display: grid;
    grid-template-columns: minmax(0, 30fr) minmax(0, 70fr);
    align-items: start;
    gap: clamp(22px, 2.7vw, 40px);
    padding-block: clamp(30px, 3.2vw, 54px) clamp(20px, 2.2vw, 36px);
}

.aui-hero-copy,
.aui-recording {
    min-width: 0;
}

.aui-speaker {
    margin: 0 0 17px;
    padding: 4px 0 20px;
    border-bottom: 1px solid #ffffff33;
}

.aui-speaker-photo {
    display: block;
    width: clamp(70px, 5.6vw, 94px);
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 12px;
    border: 3px solid #ef9bb2;
    border-radius: 50%;
    background: linear-gradient(145deg, #be6080, #73304d);
}

.aui-speaker-name {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(19px, 1.6vw, 26px);
    font-weight: 800;
    line-height: 1.15;
}

.aui-speaker-role {
    max-width: 40ch;
    margin: 0;
    color: #ffe1ea;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.47;
}

.aui-hero .aui-eyebrow {
    max-width: 32ch;
    margin: 0 0 12px;
    color: #ffd4e0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-wrap: pretty;
}

.aui-hero h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(24px, 2.05vw, 33px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.aui-hero .aui-deck {
    max-width: 52ch;
    margin: 16px 0 0;
    color: #ffe2e9;
    font-size: clamp(15px, 1.13vw, 18px);
    font-weight: 500;
    text-wrap: pretty;
}

.aui-player {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid #fb89ab84;
    border-radius: 22px;
    background: #1b0a14 url("./opalsky-cover.webp") center / cover no-repeat;
    box-shadow: 0 20px 60px #21061250;
}

.aui-player-gate,
.aui-player-mount,
.aui-poster-play {
    position: absolute;
    inset: 0;
}

.aui-player-gate {
    display: grid;
    place-items: center;
    padding: 18px;
    background: radial-gradient(ellipse, #13070ee8 0%, #17091199 52%, #17091145 100%);
}

.aui-poster-play {
    display: grid;
    width: 100%;
    place-items: center;
    border: 0;
    padding: 0;
    color: #8b2041;
    background: #1b0a14 url("./opalsky-cover.webp") center / cover no-repeat;
    cursor: pointer;
}

.aui-poster-play:focus-visible { outline-offset: -5px; }

.aui-play-icon {
    display: grid;
    width: clamp(50px, 5vw, 75px);
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: #fff6f7;
    box-shadow: 0 0 0 5px #64122f;
    transition: background-color .18s ease;
}

.aui-play-icon svg { width: 42%; margin-left: 4%; }
.aui-poster-play:hover .aui-play-icon { background: #ffe0ea; }

.aui-gate-content {
    position: relative;
    width: min(100%, 480px);
    text-align: center;
}

.aui-lock {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border: 1px solid #ffaccb5c;
    border-radius: 18px;
    color: #ffd5e0;
    background: #a432543b;
}

.aui-lock .aui-icon { width: 25px; height: 25px; }

.aui-gate-content .aui-gate-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.18;
    text-wrap: balance;
}

.aui-gate-content .aui-gate-copy {
    min-height: 22px;
    margin: 0;
    color: #f9ccda;
    font-size: 15px;
}

.aui-gate-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 22px;
    margin-top: 22px;
}

.aui-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 9px 17px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .18s ease;
}

.aui-button .aui-icon { width: 18px; height: 18px; }
.aui-button-white { color: #72152d; background: #fff; }
.aui-button-white:hover { color: #65122d; background: #ffe6eb; }
.aui-button-red { color: #fff; background: var(--aui-red); }
.aui-button-red:hover { color: #fff; background: #861730; }
.aui-button:disabled { opacity: .72; cursor: wait; }

.aui-register {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: #ffe4ec;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.aui-register:hover { color: #fff; }

.aui-player-mount iframe,
.aui-player-mount > div {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.aui-hero-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px 14px;
    margin-top: 10px;
}

.aui-topics summary,
.aui-lessons-jump {
    display: flex;
    min-height: 39px;
    align-items: center;
    gap: 7px;
}

.aui-topics summary::-webkit-details-marker { display: none; }

.aui-topics summary .aui-icon,
.aui-lessons-jump .aui-icon { width: 17px; height: 17px; }

.aui-topics[open] summary .aui-icon:last-child { transform: rotate(180deg); }

.aui-topics ul {
    list-style: disc;
    padding-left: 26px;
    margin-bottom: 10px;
    color: #ffe2e9;
}

.aui-lessons-jump {
    flex-shrink: 0;
    padding-inline: 10px 0;
}

.aui-lessons {
    background: radial-gradient(ellipse at 20% 0%, #fde9ee, transparent 70%), #fffbfc;
    border-bottom: 1px solid var(--aui-line);
    padding: 29px 0 clamp(53px, 7vw, 98px);
}

.aui-lessons-head {
    max-width: 900px;
    margin-bottom: 31px;
}

.aui-lessons-head h2,
.aui-school-intro h2 {
    margin: 0;
    font-size: clamp(28px, 3.45vw, 45px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.aui-lessons-head p {
    max-width: 790px;
    margin: 14px 0 0;
    color: var(--aui-muted);
    text-wrap: pretty;
}

.aui-lesson-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.aui-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    border-radius: 20px;
    border: 1px solid #ead8df;
    color: var(--aui-ink);
    background: #fff;
    padding: clamp(21px, 3vw, 35px);
    box-shadow: 0 7px 22px #4a0f2510;
    transition: box-shadow .22s ease, border-color .22s ease;
}

.aui-card:first-child { background: #fff4f6; }

.aui-card:first-child::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("./waves.svg") right -85px top -10px / auto 230% no-repeat;
}

.aui-card:hover,
.aui-card:focus-visible {
    color: var(--aui-ink);
    border-color: #d76986;
    box-shadow: 0 13px 32px #4a0f2521;
}

.aui-card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #8b2742;
    font-size: 13px;
    font-weight: 700;
}

.aui-card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #f9e4eb;
}

.aui-card h3 {
    margin: 0;
    font-size: clamp(19px, 2.05vw, 25px);
    font-weight: 700;
    line-height: 1.23;
    text-wrap: pretty;
}

.aui-card p {
    margin: 0 0 4px;
    color: var(--aui-muted);
    text-wrap: pretty;
}

.aui-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 13px;
    color: #9a1b3b;
    font-size: 15px;
    font-weight: 700;
}

.aui-card-cta .aui-icon { width: 18px; height: 18px; }

.aui-card:hover .aui-card-cta {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.aui-school-intro { padding-top: clamp(46px, 7vw, 94px); }

.aui-school #school-offer {
    margin-top: 0;
    padding-top: clamp(24px, 4vw, 56px);
}

.aui-school #school-offer .hero-price,
.aui-school .study .hero-price {
    flex-wrap: wrap;
}

.aui-school .programs-item-wrapper {
    cursor: pointer;
    list-style: none;
}

.aui-school .programs-item-wrapper::-webkit-details-marker { display: none; }
.aui-school .programs-item[open] { background: #ffefe5; }
.aui-school .programs-item[open]:nth-of-type(even),
.aui-school .programs-item[open]:last-of-type { background: #eaf7fa; }
.aui-school .programs-item[open] .programs-item-course::after { transform: rotate(90deg); }

.aui-school .programs-item[open] .programs-hidden-part {
    max-height: none;
    opacity: 1;
    padding-bottom: 20px;
    transform: none;
    background: none;
}

.aui-school .authors-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.8vw, 40px);
}

.aui-school .authors .author {
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
}

.aui-school .authors .author-wrapper {
    flex: 1;
    min-width: 0;
}

.aui-school .authors .author-name,
.aui-school .authors .author-position {
    overflow-wrap: break-word;
}

.aui-school .authors .author-photo {
    max-width: 100%;
    margin-top: auto;
    object-fit: contain;
    object-position: right bottom;
}

.aui-school .promo-left,
.aui-school .promo-right { min-width: 0; }

.aui-nudge {
    position: fixed;
    z-index: 90;
    right: clamp(12px, 2.5vw, 38px);
    bottom: max(17px, env(safe-area-inset-bottom));
    display: flex;
    width: min(340px, calc(100vw - 24px));
    align-items: flex-start;
    padding: 8px 7px 8px 9px;
    border: 1px solid #eeb7c6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 48px #3b0b2340;
    animation: aui-arrive .35s ease both;
}

.aui-nudge-link {
    display: flex;
    min-height: 51px;
    flex: 1;
    align-items: center;
    gap: 11px;
    color: #731831;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.aui-nudge-link:hover { color: #72152d; text-decoration: underline; }
.aui-nudge-link > .aui-icon { margin-left: auto; width: 18px; height: 18px; }

.aui-nudge-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: #a71d3c;
    animation: aui-pulse 2.2s .4s ease-out 3 both;
}

.aui-nudge-close {
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    margin-left: 3px;
    background: transparent;
    color: #75505c;
    cursor: pointer;
}

.aui-nudge-close:hover { background: #f8e7ec; }
.aui-nudge-close .aui-icon { width: 18px; height: 18px; }

.aui-cookie {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 95;
    display: flex;
    width: min(430px, calc(100vw - 32px));
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--aui-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 14px 48px #3b0b2326;
    font-size: 13px;
}

.aui-cookie p { margin: 0; }
.aui-cookie a { color: #8b1936; text-decoration: underline; }
.aui-cookie .aui-button { min-height: 40px; font-size: 13px; }

.aui-result {
    width: min(440px, calc(100% - 34px));
    padding: 26px;
    border: 1px solid var(--aui-line);
    border-radius: 18px;
    background: #fff;
    color: var(--aui-ink);
    box-shadow: 0 16px 60px #2f0c2b55;
}

.aui-result p { margin: 0 0 18px; }
.aui-result::backdrop { background: #29091588; }
.aui-noscript { padding: 15px; }

@keyframes aui-arrive {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: none; }
}

@keyframes aui-pulse {
    from { box-shadow: 0 0 0 0 #a71d3c63; }
    to { box-shadow: 0 0 0 10px #a71d3c00; }
}

@media (max-width: 1000px) {
    .aui-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 23px;
    }

    .aui-speaker {
        display: flex;
        align-items: center;
        gap: 13px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .aui-speaker-photo { flex: 0 0 auto; margin-bottom: 0; }
    .aui-speaker-role, .aui-hero .aui-eyebrow { max-width: none; }
    .aui-school .authors-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aui-school #school-offer .hero-left,
    .aui-school #school-offer .hero-right { width: 100%; }
    .aui-school #school-offer .hero-right { max-width: 570px; margin: 26px auto 0; }
}

@media (max-width: 620px) {
    .aui-wrap,
    .aui-opening .aui-wrap,
    .aui-lessons .aui-wrap { width: calc(100% - 32px); }
    .aui-top { min-height: 58px; gap: 8px 10px; flex-wrap: wrap; }
    .aui-brand { padding: 6px 8px; }
    .aui-brand img { width: min(155px, 44vw); }
    .aui-top nav { display: none; }
    .aui-hero { padding-top: 18px; }
    .aui-speaker-photo { width: 62px; border-width: 2px; }
    .aui-speaker-role, .aui-hero .aui-eyebrow { font-size: 14px; }
    .aui-hero h1 { font-size: clamp(24px, 6.6vw, 35px); }
    .aui-hero .aui-deck { margin-top: 10px; font-size: 15px; }
    .aui-player { border-radius: 16px; }
    .aui-player:has(.aui-player-gate:not([hidden])) { min-height: 250px; }
    .aui-player-gate { padding: 11px; }
    .aui-lock { width: 38px; height: 38px; margin-bottom: 7px; border-radius: 12px; }
    .aui-lock .aui-icon { width: 20px; height: 20px; }
    .aui-gate-content .aui-gate-copy { font-size: 13px; }
    .aui-gate-actions { margin-top: 10px; gap: 4px 10px; }
    .aui-gate-actions .aui-button { padding-inline: 12px; }
    .aui-register { min-height: 34px; font-size: 13px; }
    .aui-hero-links { gap: 8px; }
    .aui-topics summary,
    .aui-lessons-jump { font-size: 12px; }
    .aui-topics summary > .aui-icon:first-child { display: none; }
    .aui-lessons { padding-top: 23px; }
    .aui-lessons-head h2,
    .aui-school-intro h2 { font-size: clamp(24px, 6.6vw, 36px); }
    .aui-lesson-grid, .aui-school .authors-cards { grid-template-columns: minmax(0, 1fr); }
    .aui-lesson-grid { gap: 13px; }
    .aui-school #school-offer .hero-form-wrapper { padding: 21px; }
    .aui-school .promo-btn { white-space: normal; }

    .aui-school .promo-logos {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 16px;
    }

    .aui-school .promo-logos img { max-width: 100%; height: auto; }
}

@media (max-width: 790px) {
    .aui-body:has(.aui-cookie:not([hidden])) .aui-nudge { bottom: 103px; }
}

@media (prefers-reduced-motion: reduce) {
    .aui-page { scroll-behavior: auto; }
    .aui-body *, .aui-body *::before, .aui-body *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
