:root {
    --primary: #ff7a1a;
    --primary-dark: #e5650f;
    --secondary: #2f6dfd;
    --navy: #1e2b4f;
    --text: #2a324b;
    --muted: #515c7a;
    --surface: #ffffff;
    --surface-soft: #f2f6ff;
    --surface-lilac: #e6e3fb;
    --border: #e0e6f5;
    --shadow: 0 18px 40px rgba(30, 43, 79, 0.12);
    --anchor-offset: 106px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: #e6e3fb;
}

h1,
h2,
h3 {
    font-family: 'Unbounded', 'Nunito', system-ui, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(224, 230, 245, 0.7);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.logo {
    font-family: 'Unbounded', 'Nunito', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.logo__accent {
    color: var(--primary);
}

.menu {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: var(--navy);
}

.menu li {
    position: relative;
}

.menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.menu a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.menu-item-has-children > a::after {
    content: '▾';
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    transform: translateY(-1px);
}

.menu .sub-menu .menu-item-has-children > a::after {
    content: '▸';
}

.menu .sub-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(30, 43, 79, 0.16);
    display: grid;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 40;
}

.menu .sub-menu .sub-menu {
    top: -10px;
    left: calc(100% + 8px);
}

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu .sub-menu a {
    display: block;
    border-bottom: none;
    border-radius: 10px;
    padding: 10px 12px;
}

.menu .sub-menu a:hover,
.menu .sub-menu a:focus-visible {
    background: var(--surface-soft);
}

.menu a:hover {
    border-color: var(--primary);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--navy);
    display: block;
}

.mobile-nav {
    display: none;
    padding: 16px 0 20px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, #fff, #f8faff);
}

.mobile-nav .menu {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0 16px;
}

.mobile-nav .menu > li {
    position: relative;
}

.mobile-nav .menu .menu-item-has-children > a {
    padding-right: 56px;
}

.mobile-nav .menu .sub-menu {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    margin: 8px 0 0;
    padding: 0 0 0 16px;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: grid;
    gap: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-nav.js-submenu .menu .sub-menu {
    display: none;
}

.mobile-nav.js-submenu .menu .menu-item-has-children.submenu-open > .sub-menu {
    display: grid;
}

.submenu-toggle {
    display: none;
}

.mobile-nav .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(30, 43, 79, 0.1);
}

.mobile-nav .submenu-toggle::before {
    content: '+';
    font-size: 18px;
    line-height: 1;
}

.mobile-nav .menu .menu-item-has-children.submenu-open > .submenu-toggle::before {
    content: '-';
}

.mobile-nav .menu a {
    display: block;
    margin-left: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(224, 230, 245, 0.95);
    border-left: 4px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(30, 43, 79, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav .menu .sub-menu a {
    margin-left: 0;
    border-left-width: 3px;
    box-shadow: 0 6px 14px rgba(30, 43, 79, 0.08);
}

.mobile-nav .menu a:hover,
.mobile-nav .menu a:focus-visible {
    border-color: rgba(224, 230, 245, 0.95);
    border-left-color: var(--primary);
    transform: translateX(2px);
    box-shadow: 0 12px 20px rgba(30, 43, 79, 0.12);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: 0 12px 22px rgba(255, 122, 26, 0.2);
}

.button--cta {
    padding: 16px 32px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.button:hover {
    background: var(--primary-dark);
}
.button--ghost:hover {
    color: var(--surface);
    border: 2px solid transparent;
}

.button--ghost {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    box-shadow: none;
    padding: 16px 32px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.button--small {
    padding: 8px 18px;
    font-size: 14px;
}

.button--block {
    width: 100%;
}

.hero {
    padding: 40px 0 40px;
    position: relative;
    overflow: hidden;
}

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

.hero::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 109, 253, 0.12), transparent 70%);
    top: -140px;
    right: -120px;
}

.hero__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 40px;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__content h1 {
    font-size: clamp(26px, 3vw, 40px);
    font-family: 'Unbounded', 'Nunito', system-ui, sans-serif;
    color: var(--navy);
    margin: 0 0 16px;
}

.hero__content h1 span:not(.hero__amp) {
    color: var(--primary);
}

.hero__content h1 .hero__amp {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9em;
}

.eyebrow {
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 12px;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 24px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__media {
    position: relative;
    justify-self: center;
    max-width: 520px;
    z-index: 1;
}

.hero--schools-archive .hero__inner {
    grid-template-columns: minmax(0, 1fr);
}

.hero--schools-archive .hero__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero--schools-archive .hero__actions {
    justify-content: center;
}

@media (min-width: 720px) {
    .hero--direction .hero__inner {
        grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
        gap: clamp(24px, 3vw, 40px);
        align-items: center;
    }

    .hero--direction .hero__content {
        max-width: 760px;
    }

    .hero--direction .hero__actions {
        gap: 12px;
    }

    .hero--direction .hero__media {
        width: min(100%, clamp(380px, 36vw, 500px));
        margin-left: 0;
        margin-right: clamp(-168px, -14vw, -56px);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        overflow: visible;
        align-self: center;
    }

    .hero--direction .hero__media picture {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 106%;
        height: auto;
        margin-top: 0;
        margin-bottom: 0;
        max-width: none;
    }

    .hero--direction .hero__media img {
        display: block;
        width: auto;
        height: auto;
        max-width: none;
        max-height: 480px;
    }
}

@media (min-width: 720px) {
    .hero__media {
        justify-self: end;
        max-width: none;
        width: clamp(360px, 50vw, 720px);
        margin-left: clamp(-140px, -8vw, -60px);
    }

    .hero--school .hero__inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.55fr);
        gap: clamp(24px, 3vw, 44px);
    }

    .hero--school .hero__media {
        width: min(100%, 320px);
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 720px) and (max-width: 1120px) {
    .hero--direction .hero__media {
        margin-right: clamp(-280px, -25vw, -164px);
    }
}

.hero--school .hero__media img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 20px 36px rgba(30, 43, 79, 0.14));
}

.section {
    padding: 40px 0;
}

.section--intro {
    background: #fff;
}

.clean-block--tone-light {
    background: #fff;
}

.clean-block--tone-soft {
    background: var(--surface-soft);
}

.clean-block--tone-lilac {
    background: var(--surface-lilac);
}

.clean-block__text {
    width: 100%;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.65;
    font-size: 18px;
    text-align: center;
}

.clean-block__text p {
    margin: 0;
}

.clean-block__text p + p {
    margin-top: 14px;
}

.clean-block__text > div,
.clean-block__text > section,
.clean-block__text > article,
.clean-block__text > figure,
.clean-block__text > blockquote {
    margin-left: auto;
    margin-right: auto;
}

.clean-block__text ul:not([class]),
.clean-block__text ol:not([class]) {
    margin: 0 auto;
    padding-left: 22px;
    display: inline-block;
    text-align: left;
}

.clean-block__text ul:not([class]) + p,
.clean-block__text ol:not([class]) + p,
.clean-block__text p + ul:not([class]),
.clean-block__text p + ol:not([class]) {
    margin-top: 14px;
}

.section__text {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.section__text--intro {
    width: min(920px, 100%);
    margin: 0 auto;
    font-size: 18px;
    text-align: center;
}

.section__text--intro p {
    margin: 0;
}

.section__text--intro p + p {
    margin-top: 14px;
}

.section__header {
    text-align: center;
    margin-bottom: 32px;
}

.section__header h2 {
    font-family: 'Unbounded', 'Nunito', system-ui, sans-serif;
    font-size: clamp(22px, 2.4vw, 34px);
    margin-bottom: 8px;
    color: var(--navy);
}

.section__header p {
    color: var(--muted);
    margin: 0;
}

.section[id],
.clean-block[id] {
    scroll-margin-top: var(--anchor-offset);
}

.section--legal {
    background: var(--surface);
}

.legal-page__container {
    width: min(860px, 92%);
}

.section__header--legal {
    text-align: left;
    margin-bottom: 20px;
}

.section__header--legal h1 {
    margin: 0;
    font-size: clamp(26px, 2.8vw, 38px);
}

.legal-doc__content {
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}

.legal-doc__content p {
    margin: 0;
}

.legal-doc__content p + p {
    margin-top: 14px;
}

.legal-doc__content h2,
.legal-doc__content h3 {
    margin: 26px 0 10px;
    color: var(--navy);
}

.legal-doc__content ul,
.legal-doc__content ol {
    margin: 10px 0 0;
    padding-left: 22px;
}

.section--courses {
    background: var(--surface-soft);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.course-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-card img {
    border-radius: 14px;
    height: 140px;
    object-fit: cover;
}

.course-card h3 {
    margin: 0;
    font-size: 18px;
    color: var(--navy);
}

.course-card p {
    margin: 0;
    color: var(--muted);
}

.section--pricing {
    background: #fff;
}

.why-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: min(920px, 100%);
    display: grid;
    gap: 12px;
    text-align: left;
}

.why-list li {
    background: var(--surface);
    border: 1px solid rgba(224, 230, 245, 0.9);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 12px 24px rgba(30, 43, 79, 0.08);
    color: var(--navy);
    font-weight: 600;
}

.section--faq {
    background: var(--surface-soft);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center;
    gap: 20px;
}

.pricing-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.pricing-card--highlight {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
}

.badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pricing-card__price {
    font-size: 20px;
    margin: 0;
    color: var(--navy);
    font-weight: 700;
}

.pricing-card__price span {
    font-size: 32px;
    font-weight: 700;
}

.pricing-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--muted);
    display: grid;
    gap: 8px;
    text-align: left;
}

.section--course-details {
    background: var(--surface-soft);
}

.course-details {
    width: min(920px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
    text-align: center;
}

.course-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.course-facts__item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(224, 230, 245, 0.9);
    box-shadow: 0 10px 18px rgba(30, 43, 79, 0.06);
}

.course-facts__label {
    font-weight: 900;
    color: var(--navy);
}

.course-facts__value {
    font-weight: 800;
    color: var(--muted);
}

.course-advantages {
    --course-adv-accent: var(--primary);
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(224, 230, 245, 0.9);
    box-shadow: 0 10px 18px rgba(30, 43, 79, 0.06);
}

.course-advantages__title {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.course-advantages__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    text-align: left;
    color: var(--muted);
    font-weight: 800;
}

.course-advantages__list li {
    position: relative;
    padding-left: 26px;
    margin: 0;
}

.course-advantages__list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.9em;
    width: 7px;
    height: 12px;
    border-right: 3px solid var(--course-adv-accent);
    border-bottom: 3px solid var(--course-adv-accent);
    transform: translateY(-50%) rotate(45deg);
}

.section--included {
    background: var(--surface-soft);
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.included-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.included-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.included-card h3 {
    margin: 12px 0 8px;
    color: var(--navy);
}

.included-card p {
    margin: 0;
    color: var(--muted);
}

.section--benefits {
    background: #fff;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: center;
}

.benefits__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    color: var(--navy);
    font-weight: 600;
}

.benefits__list li {
    background: var(--surface-soft);
    padding: 12px 16px;
    border-radius: 14px;
}

.section--compare-table {
    background: var(--surface-soft);
}

.compare-table {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.compare-table__head,
.compare-table__row {
    display: grid;
    grid-template-columns: 1.1fr repeat(3, 1fr);
}

.compare-table__cell {
    padding: 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--navy);
}

.compare-table__head .compare-table__cell {
    background: var(--surface-soft);
    font-family: 'Unbounded', 'Nunito', system-ui, sans-serif;
    font-size: 18px;
}

.compare-table__brand {
    color: var(--primary);
}

.compare-table__row--price .compare-table__cell {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
}

.star {
    color: #ffb400;
    letter-spacing: 1px;
}

.section--cta {
    padding-top: 30px;
}

.cta {
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer {
    background: #1e2b4f;
    color: #fff;
    padding: 40px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    align-items: start;
}

.footer__title {
    font-family: 'Unbounded', 'Nunito', system-ui, sans-serif;
    margin: 0 0 12px;
    font-size: 18px;
}

.footer__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.footer__bottom a {
    margin-left: 8px;
}

.footer__links {
    display: grid;
    gap: 10px;
}

.footer__link {
    display: inline-flex;
    align-items: center;
    padding: 3px 0;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.9);
    width: fit-content;
}

.footer__link:hover {
    border-color: var(--primary);
    color: #fff;
}

.footer__cta .button--cta {
    width: 100%;
}

.footer__cta {
    display: grid;
    gap: 12px;
}

.footer__legal {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 20px 32px;
}

.footer__legal-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

.footer__legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.footer__legal-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 1px 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.68);
    border-bottom: 1px solid transparent;
}

.footer__legal-link:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.22);
}

.footer__bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1024px) {
    .menu {
        gap: 16px;
    }

    .pricing-card--highlight {
        transform: none;
    }
}

@media (max-width: 840px) {
    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav.active {
        display: block;
    }

    .hero {
        padding: 60px 0 40px;
    }


    .compare-table__head,
    .compare-table__row {
        grid-template-columns: 1fr;
    }

    .compare-table__cell {
        border-bottom: 1px solid var(--border);
    }

    .compare-table__row {
        border-bottom: 8px solid var(--surface-soft);
    }
}

@media (max-width: 560px) {
    :root {
        --anchor-offset: 132px;
    }

    .footer__legal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .header__inner {
        flex-wrap: wrap;
    }

    .header__actions {
        width: 100%;
        justify-content: space-between;
    }

    .header__actions .button {
        width: auto;
    }

    .button {
        width: 100%;
    }

    .hero__actions {
        width: 100%;
    }


    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .course-card,
    .pricing-card,
    .included-card {
        padding: 16px;
    }
}

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