:root {
    --webedu_orange: #ff9900;
    --webedu_orange_light: #ffcc80;
    --webedu_gray: #536775;
    --webedu_gray_dark: #383635;
    --webedu_gray_light: #f3f6f4;
    --webedu_black: #000000;

    --webedu_navy: #173247;
    --webedu_primary: #173e53;
    --webedu_accent: #27765f;
    --webedu_muted: #81909a;
    --webedu_white: #ffffff;
    --webedu_surface: rgba(255, 255, 255, .88);
    --webedu_border: rgba(23, 50, 71, .1);
    --webedu_soft_green: #cbe6d8;
    --webedu_soft_blue: #d7e8ef;
    --webedu_content_width: 1280px;
    --webedu_page_gutter: 32px;

    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--webedu_navy);
    background: var(--webedu_gray_light);
}

@font-face {
    font-family: "DIN Engschrift LT";
    src: url("../fonts/lte50845.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "DIN Engschrift LT Alternate";
    src: url("../fonts/lt_11441-webfont.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: var(--webedu_page_gutter);
    background: var(--webedu_navy);
}

.site-container {
    width: min(100%, var(--webedu_content_width));
    min-height: calc(100vh - var(--webedu_page_gutter) - var(--webedu_page_gutter));
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px);
    border: 1px solid var(--webedu_border);
    border-radius: 28px;
    background: var(--webedu_white);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .16);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(40px, 5vw, 64px);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--webedu_border);
}

.site-logo {
    display: flex;
    align-items: center;
    width: 248px;
    max-width: 100%;
    flex: 0 0 auto;
    text-decoration: none;
}

.site-logo__image {
    display: block;
    width: 100%;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(16px, 2.25vw, 34px);
}

.site-nav a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 0 8px;
    color: var(--webedu_gray_dark);
    font-size: .94rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--webedu_orange);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.site-logo:focus-visible,
.site-nav a:focus-visible,
.button:focus-visible {
    outline: 2px solid var(--webedu_orange);
    outline-offset: 5px;
}

.site-main {
    width: 100%;
}

.home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, .58fr);
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
    width: 100%;
    max-width: none;
    margin-bottom: clamp(44px, 6vw, 72px);
    animation: intro-rise .7s ease both;
}

.home-intro__copy {
    min-width: 0;
}

.home-intro__visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1.25;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 52%, rgba(255, 153, 0, .09), rgba(255, 255, 255, 0) 68%);
}

.home-intro__canvas {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-intro__fallback {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.home-intro__visual.has-webgl .home-intro__fallback {
    display: none;
}

.home-intro__fallback-model {
    transform-box: fill-box;
    transform-origin: center;
    stroke-opacity: 1;
    animation: logo-wireframe-turn 16s ease-in-out infinite alternate;
    transition: stroke .95s ease, stroke-opacity .95s ease;
}

.home-intro__fallback-particles {
    transform-box: fill-box;
    transform-origin: center;
    animation: particle-cloud-drift 30s ease-in-out infinite alternate;
    fill: #727a7f;
    opacity: .384;
}

.home-intro__fallback-particles circle {
    r: 2px;
}

.home-intro__fallback-links {
    fill: none;
    stroke: #727a7f;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: .8px;
    opacity: .7;
}

.home-intro__fallback-face {
    fill: var(--webedu_orange);
    fill-opacity: 0;
    transition: fill-opacity .95s ease;
}

.home-intro__visual:hover .home-intro__fallback-face {
    fill-opacity: .8;
}

.home-intro__visual:hover .home-intro__fallback-model {
    stroke: #000;
    stroke-opacity: .6;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--webedu_orange);
    font-size: .9rem;
    font-weight: 750;
    letter-spacing: .09em;
    line-height: 1.35;
    text-transform: uppercase;
}

.home-intro h1,
.registration h1 {
    max-width: 18ch;
    margin: 0;
    color: var(--webedu_orange);
    font-family: "DIN Engschrift LT", sans-serif;
    font-size: clamp(2.8rem, 5.8vw, 5rem);
    font-weight: 400;
    letter-spacing: .025em;
    line-height: .98;
}

.home-intro__byline {
    max-width: 52ch;
    margin: 12px 0 0;
    color: var(--webedu_gray);
    font-size: clamp(1.12rem, 2.2vw, 1.42rem);
    line-height: 1.55;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading .eyebrow {
    margin-bottom: 8px;
}

.section-heading h2 {
    margin: 0;
    color: var(--webedu_gray_dark);
    font-family: "DIN Engschrift LT Alternate", sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -.015em;
    line-height: 1.05;
}

h3 {
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.diploma-grid {
    display: flex;
    align-items: stretch;
    gap: clamp(16px, 1.8vw, 24px);
}

.diploma-card {
    display: flex;
    min-width: 0;
    flex: 1 1 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(23, 50, 71, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(23, 50, 71, .09);
    transition: box-shadow .25s ease, transform .25s ease;
}

.diploma-card:hover {
    box-shadow: 0 22px 54px rgba(23, 50, 71, .14);
    transform: translateY(-4px);
}

.diploma-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.78;
    background: linear-gradient(135deg, #f6e9d7, #d7e8ef 58%, #b6c8cb);
}

.diploma-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .75, .25, 1);
}

.diploma-card:hover .diploma-card__image {
    transform: scale(1.035);
}

.diploma-card__image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(23, 50, 71, .54);
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background:
        radial-gradient(ellipse at 72% 24%, rgba(255, 255, 255, .8), transparent 31%),
        linear-gradient(130deg, #f9e2c8, #d9e8e6 60%, #bccbd2);
}

.diploma-card__content {
    container: diploma-facts / inline-size;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(14px, 1.68vw, 21px);
}

.home-intro__eyebrow,
.diploma-card__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 20px;
    margin: 0 0 7px;
    color: var(--webedu_gray);
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .09em;
    line-height: 1.3;
    text-transform: uppercase;
}

.eyebrow-bars {
    display: inline-flex;
    align-items: center;
    gap: 3.2px;
    height: 16px;
    flex: 0 0 auto;
}

.eyebrow-bar {
    display: block;
    width: 3.2px;
    height: 100%;
    border-radius: 1px;
    background: var(--webedu_orange);
    transform-origin: center;
}

.eyebrow-bar--one,
.eyebrow-bar--two,
.eyebrow-bar--three {
    height: 100%;
}

.diploma-card__title {
    width: 100%;
    margin: 0;
    color: var(--webedu_orange);
    font-family: "DIN Engschrift LT Alternate", sans-serif;
    font-size: clamp(1.1rem, 2.6vw, 2.2rem);
    font-weight: 400;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
}

.diploma-card__description {
    width: 100%;
    margin: 9px 0 0;
    color: var(--webedu_gray);
    font-size: 1rem;
    line-height: 1.6;
}

.diploma-card__facts {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.28fr) minmax(0, 1fr);
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.course-section {
    margin-top: clamp(48px, 5.5vw, 68px);
}

.course-section .section-heading {
    margin-bottom: 18px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.7vw, 22px);
}

.course-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(23, 50, 71, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(23, 50, 71, .07);
    transition: box-shadow .25s ease, transform .25s ease;
}

.course-card:hover {
    box-shadow: 0 18px 42px rgba(23, 50, 71, .13);
    transform: translateY(-3px);
}

.course-card__media {
    overflow: hidden;
    aspect-ratio: 1.8;
    background: var(--webedu_gray_light);
}

.course-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .75, .25, 1);
}

.course-card:hover .course-card__image {
    transform: scale(1.035);
}

.course-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
}

.course-card__eyebrow {
    margin: 0 0 7px;
    color: var(--webedu_orange);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.course-card__title {
    margin: 0;
    color: var(--webedu_gray_dark);
    font-family: "DIN Engschrift LT Alternate", sans-serif;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.08;
}

.course-card__description {
    margin: 8px 0 18px;
    color: var(--webedu_gray);
    font-size: .94rem;
    line-height: 1.5;
}

.course-card .button {
    margin-top: auto;
}

.text-content-section {
    margin-top: clamp(52px, 6vw, 76px);
    padding-top: clamp(30px, 4vw, 48px);
    border-top: 1px solid var(--webedu_border);
}

.text-content-section__heading {
    margin-bottom: 18px;
}

.text-content-section__heading h2 {
    max-width: none;
    margin: 0;
    color: var(--webedu_gray_dark);
    font-family: "DIN Engschrift LT Alternate", sans-serif;
    font-size: clamp(2.1rem, 3.6vw, 3.1rem);
    font-weight: 400;
    letter-spacing: -.015em;
    line-height: 1.06;
    white-space: nowrap;
}

.text-content-section__body {
    max-width: none;
}

.text-content-section__intro {
    margin: 0;
    color: var(--webedu_gray_dark);
    font-size: clamp(1.05rem, 1.45vw, 1.2rem);
    line-height: 1.7;
}

.text-content-section__details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 36px;
    margin-top: 28px;
}

.text-content-section__item h3 {
    margin: 0 0 8px;
    color: var(--webedu_orange);
    font-family: "DIN Engschrift LT Alternate", sans-serif;
    font-size: 1.05rem;
}

.text-content-section__item p {
    max-width: 40ch;
    margin: 0;
    color: var(--webedu_gray);
    font-size: .95rem;
    line-height: 1.65;
}

.faq-section {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 5.5vw, 76px);
    margin-top: clamp(52px, 6vw, 76px);
    padding-top: clamp(30px, 4vw, 48px);
    border-top: 1px solid var(--webedu_border);
}

.faq-section__intro h2,
.video-section .faq-section__intro h3 {
    margin: 0;
    color: var(--webedu_gray_dark);
    font-family: "DIN Engschrift LT Alternate", sans-serif;
    font-size: clamp(2.1rem, 3.2vw, 3rem);
    font-weight: 400;
    letter-spacing: -.015em;
    line-height: 1.06;
    white-space: nowrap;
}

.faq-section__intro > p:last-child,
.faq-intro-text {
    max-width: 34ch;
    margin: 12px 0 0;
    color: var(--webedu_gray);
    font-size: .96rem;
    line-height: 1.6;
}

.faq-item {
    margin-top: 1rem;
    border-bottom: 1px solid var(--webedu_border);
}

.faq-item summary {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px .85rem;
    color: var(--webedu_gray_dark);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.4;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    flex: 0 0 auto;
    color: var(--webedu_orange);
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
}

.faq-item[open] summary {
    background-color: #ffe6bf;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--webedu_orange);
    outline-offset: 4px;
}

.faq-item__answer {
    padding: .85rem .85rem .25rem;
}

.faq-item__answer p {
    max-width: 68ch;
    margin: 0 0 18px;
    color: var(--webedu_gray);
    font-size: .95rem;
    line-height: 1.65;
}

@media (min-width: 641px) {
    .faq-item__answer > div {
        width: 80%;
        font-size: .95rem;
    }

    .faq-item__answer p {
        max-width: none;
    }
}

.diploma-card__facts li {
    display: flex;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--webedu_border);
    border-radius: 10px;
    background: #fbfcfb;
    color: var(--webedu_gray_dark);
    font-size: .76rem;
    line-height: 1.35;
}

.diploma-card__fact-heading {
    display: flex;
    align-items: center;
    min-height: 16px;
    gap: 4px;
    flex-wrap: nowrap;
}

.diploma-card__fact-icon {
    display: inline-flex;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--webedu_orange);
}

.diploma-card__fact-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.diploma-card__fact-label {
    color: var(--webedu_muted);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .015em;
    text-transform: uppercase;
    white-space: nowrap;
}

.diploma-card__fact-value {
    display: block;
    color: var(--webedu_gray_dark);
    font-size: .73rem;
    letter-spacing: -.015em;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
    padding: 12px 17px;
    border: 1px solid var(--webedu_orange);
    border-radius: 10px;
    color: var(--webedu_white);
    background: var(--webedu_orange);
    font-size: .94rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.diploma-card .button {
    margin-top: 24px;
}

.button:hover {
    border-color: #e68700;
    background: #e68700;
    transform: translateY(-2px);
}

.button__caret {
    display: inline-flex;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

.button__caret svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.button__caret path {
    fill: currentColor;
    stroke: currentColor;
    stroke-linejoin: round;
    stroke-width: 1.2;
}

.site-footer {
    display: grid;
    grid-template-columns: 175px minmax(0, 1fr) 104px;
    align-items: center;
    gap: 24px;
    margin-top: clamp(48px, 6vw, 72px);
    padding: clamp(20px, 3vw, 36px);
    border-radius: 14px;
    background: var(--webedu_orange);
    color: #fff;
    text-transform: uppercase;
    font-size: .9rem;
}

.site-footer__brand {
    position: relative;
    width: min(175px, 100%);
}

.site-footer__brand img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

@supports (mask-image: url("/assets/img/we_logo.svg")) {
    .site-footer__brand img {
        opacity: 0;
        filter: none;
    }

    .site-footer__brand::before {
        content: "";
        position: absolute;
        inset: 0;
        background: #fff;
        mask: url("/assets/img/we_logo.svg") center / contain no-repeat;
        pointer-events: none;
    }
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}

.site-footer__menus {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.site-footer__legal { font-size: .8rem; }
.site-footer__legal:empty { display: none; }

.site-footer__social {
    width: 104px;
    justify-self: end;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
}
.site-footer__social a { flex: 0 0 24px; }
.site-footer__social svg { display: block; }

.site-footer__links a {
    color: inherit;
    text-decoration: none;
}

.back-to-top {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: .5rem 0 0 auto;
    border: 1px solid var(--webedu_orange);
    border-radius: 50%;
    background-color: var(--webedu_orange);
    color: #fff;
    transition: background-color .2s ease, color .2s ease;
}

.back-to-top:is(:hover, :focus-visible) {
    background-color: #fff;
    color: var(--webedu_orange);
}

@media (max-width: 850px) {
    .site-footer {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .site-footer__links[aria-label="Footer-Navigation"] {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-footer__legal { justify-content: flex-start; }
    .site-footer__social { justify-self: start; }
}

@keyframes intro-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-wireframe-turn {
    from { transform: perspective(500px) rotateY(-18deg) rotateX(8deg) rotateZ(-2deg); }
    to { transform: perspective(500px) rotateY(18deg) rotateX(-5deg) rotateZ(2deg); }
}

@keyframes particle-cloud-drift {
    from { transform: translate(-14px, 10px); }
    to { transform: translate(16px, -10px); }
}

@media (max-width: 900px) {
    .home-intro {
        grid-template-columns: minmax(0, 1fr) minmax(210px, .48fr);
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .diploma-grid {
        flex-direction: column;
    }

    .diploma-card {
        flex: 0 0 auto;
        flex-direction: row;
    }

    .diploma-card__media {
        width: 42%;
        min-height: 100%;
        flex: 0 0 42%;
        aspect-ratio: auto;
    }

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

    .text-content-section__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    :root {
        --webedu_page_gutter: 12px;
    }

    .site-container {
        min-height: calc(100vh - var(--webedu_page_gutter) - var(--webedu_page_gutter));
        padding: 28px 20px;
        border-radius: 20px;
    }

    .site-header {
        gap: 24px;
        margin-bottom: 42px;
        padding-bottom: 16px;
    }

    .home-intro {
        grid-template-columns: minmax(0, 1fr) 120px;
        align-items: end;
        gap: 8px;
        margin-bottom: 48px;
    }

    .home-intro__visual {
        aspect-ratio: 1;
        margin-bottom: 12px;
        margin-left: -34px;
        opacity: .9;
    }

    .home-intro__copy {
        position: relative;
        z-index: 1;
    }

    .site-logo {
        width: 210px;
    }

    .site-nav {
        gap: 8px 18px;
    }

    .site-nav a {
        font-size: .86rem;
    }

    .diploma-card {
        flex-direction: column;
        border-radius: 18px;
    }

    .diploma-card__media {
        width: 100%;
        min-height: 0;
        flex-basis: auto;
        aspect-ratio: 1.6;
    }

    .diploma-card__content {
        padding: 15.4px;
    }

    .diploma-card__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .diploma-card__title {
        font-size: clamp(.95rem, 4.4vw, 1.3rem);
    }

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

    .course-card__content {
        padding: 16px;
    }

    .text-content-section__details {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 20px;
    }

    .faq-item summary {
        font-size: .95rem;
    }
}

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

.video-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: center;
    gap: clamp(20px, 5vw, 64px);
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--webedu_border);
}

.video-section .faq-section__intro h3 {
    white-space: normal;
}

.video-section__preview,
.video-section iframe {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: var(--webedu_gray_dark);
}

.video-section__preview img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-content-section__item > .video-section__preview {
    margin-top: 1rem;
}

.video-section__play {
    position: relative;
    width: clamp(64px, 13vw, 120px);
    fill: white;
    stroke: white;
    stroke-width: 3;
    stroke-linejoin: round;
    opacity: .2;
    transition: opacity .2s ease;
}

.video-section__preview:is(:hover, :focus-visible) .video-section__play {
    opacity: .8;
}

@media (max-width: 650px) {
    .video-section {
        grid-template-columns: 1fr;
    }
}

.reference-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.reference-cloud li {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 12px 18px;
    border: 1px solid var(--webedu_border);
    border-radius: 12px;
    text-align: center;
}

.reference-cloud img {
    width: 120px;
    height: 50.4px;
    object-fit: contain;
}

.reference-cloud li {
    position: relative;
    overflow: hidden;
    min-width: 136px;
    min-height: 68px;
}

.reference-cloud__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 6px;
    background: rgb(0 0 0 / 90%);
    backdrop-filter: blur(6px);
    color: white;
    font-size: .84rem;
    overflow-wrap: anywhere;
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}

.reference-cloud li:is(:hover, :focus) .reference-cloud__overlay {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .reference-cloud__overlay { transition: none; }
}

.history { min-width: 0; margin-block: 24px; }
.history__controls:not([hidden]) { display: flex; justify-content: flex-end; gap: 8px; }
.history__controls button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--webedu_border);
    border-radius: 50%;
    background: var(--webedu_orange);
    color: white;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.history__controls button:disabled { opacity: .4; cursor: default; }
.history__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(88%, 360px);
    gap: 16px;
    margin: 0;
    padding: 18px 0 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    list-style: none;
}
.history__controls [data-history-step="-1"] .button__caret { transform: rotate(180deg); }
.history__track::-webkit-scrollbar { height: 15px; }
.history__track::-webkit-scrollbar-track { background: #eee; border-radius: 8px; }
.history__track::-webkit-scrollbar-thumb {
    background: #aaa;
    border: 2px solid #eee;
    border-radius: 8px;
}
.history__track li {
    scroll-snap-align: start;
    padding: 19.2px;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: #f2f2f2;
}
.history__track h3 {
    display: table;
    margin: -19.2px 0 12px -19.2px;
    padding: 7px 18px;
    border-radius: 11px 0 7px 0;
    background: var(--webedu_orange);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}
.history__track p { margin: 0; }

.diploma-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}
.diploma-card__actions .button {
    min-width: 0;
    margin-top: 0;
    padding-inline: clamp(8px, 1.4vw, 17px);
    text-align: center;
}

.home-intro__byline > p:first-child,
.text-content-section__intro > p:first-child,
.faq-intro-text > p:first-child { margin-top: 0; }

.home-intro__byline > p:last-child,
.text-content-section__intro > p:last-child,
.faq-intro-text > p:last-child { margin-bottom: 0; }

.home-intro__byline h3, .home-intro__byline h4,
.text-content-section__body h4 { line-height: 1.25; }

.site-main :is(p, h3, h4, .registration-form label) a:not(.button) {
    color: var(--webedu_orange);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .16em;
}

.home-intro--text-only { grid-template-columns: minmax(0, 1fr); }
.contact-intro { align-items: start; }
.contact-intro .home-intro__byline { font-size: 1rem; }
.contact-intro .detail-image { align-self: start; }
.contact-intro .detail-image img { display: block; width: 100%; height: auto; }

.text-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.text-cloud .text-content-section__item {
    flex: 1 1 15rem;
    padding: 14px 16px;
    border: 1px solid var(--webedu_border);
    border-radius: 12px;
    background: #f5f5f5;
}

.faq-section,
.faq-section--spaced {
    margin-block: calc(clamp(48px, 6vw, 80px) + 1.5rem);
    padding-block: clamp(24px, 3vw, 40px);
    border-block: 1px solid #e5e5e5;
}

.faq-section .faq-item,
.faq-section--spaced .faq-item {
    margin-bottom: 10px;
    border-block: 1px solid #e5e5e5;
}

.section-cta { margin-top: 1rem; }
.section-cta--pair {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.section-cta--pair .button { margin: 0; text-align: center; overflow-wrap: anywhere; }
@media (max-width: 520px) {
    .section-cta--pair { grid-template-columns: 1fr; }
}

.overview-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(210px, calc((100% - 36px) / 4))), 1fr));
    gap: 12px;
    margin-top: 20px;
}
.overview-panel {
    min-width: 0;
    padding: clamp(16px, 2vw, 24px);
    border: 1px solid var(--webedu_border);
    border-radius: 12px;
    background: #f5f5f5;
    overflow-wrap: anywhere;
}
.overview-panel h3 {
    margin: 0 0 6px;
    color: var(--webedu_gray_dark);
    font-size: 1rem;
}
.overview-panel p:last-child { margin-bottom: 0; }
.overview-panel img { display: block; width: 100%; height: auto; margin-bottom: 12px; }

@container diploma-facts (max-width: 410px) {
    .diploma-card__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.overview-panel__heading { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.overview-panel__heading h3 { min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overview-panel__heading .diploma-card__fact-icon { width: 20px; height: 20px; flex-basis: 20px; }
