:root {
    --navy: #08296d;
    --navy-dark: #051b4b;
    --blue-soft: #eef5ff;
    --orange: #ff8a00;
    --orange-dark: #f37000;
    --red: #df111b;
    --red-dark: #bd0711;
    --ink: #07183e;
    --muted: #536078;
    --line: #dbe4f3;
    --white: #ffffff;
    --shadow: 0 14px 36px rgba(8, 41, 109, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background: #ffffff;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

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

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

ul {
    list-style: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 20px rgba(8, 41, 109, 0.06);
    backdrop-filter: blur(16px);
}

.navbar {
    width: min(1120px, calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    flex: 0 0 auto;
    width: 178px;
}

.brand img {
    width: 160px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    color: #020f32;
    font-size: 14px;
    font-weight: 700;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    padding: 34px 0 30px;
}

.nav-links a::after {
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: 0;
    height: 2px;
    content: "";
    background: var(--orange);
    transform: translateX(-50%);
    transition: width 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions,
.hero-actions,
.cta-actions,
.support-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(8, 41, 109, 0.16);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

.btn-outline {
    color: var(--navy);
    border-color: var(--navy);
    background: var(--white);
}

.btn-navy {
    color: var(--white);
    background: linear-gradient(135deg, #0a3a95, var(--navy));
}

.btn-red {
    color: var(--white);
    background: linear-gradient(135deg, #f01e26, var(--red));
}

.btn-red-outline {
    color: var(--red);
    border-color: var(--red);
    background: var(--white);
}

.btn-light-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.78);
    background: transparent;
}

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 30%, rgba(255, 255, 255, 0.42) 56%, rgba(255, 255, 255, 0.04) 78%),
        radial-gradient(circle at 12% 24%, rgba(231, 241, 255, 0.88), transparent 34%),
        url("academy-hero-background.png") center right / cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(520px, calc(100% - 40px));
    margin-left: max(40px, calc((100vw - 1120px) / 2));
    padding: 62px 0 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--navy);
    background: #e7f1ff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 570px;
    margin-top: 16px;
    color: var(--navy-dark);
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    max-width: 430px;
    margin: 18px 0 22px;
    color: #17284f;
    font-size: 18px;
}

.hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 90% 18%, rgba(8, 41, 109, 0.12) 0 2px, transparent 3px) 0 0 / 30px 30px,
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.14));
    pointer-events: none;
}

.hero-background-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 24px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(8, 41, 109, 0.11);
}

.stat {
    display: grid;
    grid-template-columns: 44px auto;
    align-items: center;
    column-gap: 12px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 19px;
}

.stat-icon.navy {
    background: var(--navy);
}

.stat-icon.orange {
    background: var(--orange);
}

.stat-icon.red {
    background: var(--red);
}

.stat strong {
    color: var(--navy-dark);
    font-size: 22px;
    line-height: 1;
}

.stat small {
    color: var(--ink);
    font-size: 12px;
}

.path-section,
.popular {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
}

.path-section {
    padding: 22px 0 18px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 20px;
}

.section-heading span {
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--navy), var(--orange));
}

.section-heading span:last-child {
    background: linear-gradient(90deg, var(--red), var(--navy));
}

h2 {
    color: var(--navy-dark);
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.path-card {
    position: relative;
    min-height: 360px;
    padding: 68px 36px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
}

.card-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 38px;
    transform: translateX(-50%);
}

.university .card-icon {
    color: var(--navy);
    background: #e9f2ff;
}

.grade .card-icon {
    color: var(--orange);
    background: #fff0df;
}

.skills .card-icon {
    color: var(--red);
    background: #ffe8eb;
}

.path-card h3 {
    font-size: 24px;
    line-height: 1.15;
}

.path-card.university h3 {
    color: var(--navy);
}

.path-card.grade h3 {
    color: var(--orange);
}

.path-card.skills h3 {
    color: var(--red);
}

.path-card p {
    min-height: 76px;
    margin: 10px 0 14px;
    color: var(--ink);
    font-size: 14px;
}

.path-card ul {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.path-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #07183e;
    font-size: 14px;
}

.path-card.university li i {
    color: var(--navy);
}

.path-card.grade li i {
    color: var(--orange);
}

.path-card.skills li i {
    color: var(--red);
}

.path-card .btn {
    width: 86%;
    margin-top: 8px;
}

.shortcut-row {
    width: min(1040px, calc(100% - 40px));
    margin: 18px auto 16px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    gap: 0;
}

.shortcut-row a {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-right: 1px solid var(--line);
    color: var(--navy-dark);
    font-weight: 800;
    font-size: 13px;
}

.shortcut-row a:last-child {
    border-right: 0;
}

.shortcut-row i {
    color: var(--navy);
    font-size: 34px;
}

.shortcut-row a:nth-child(4) i,
.shortcut-row a:nth-child(6) i {
    color: var(--red);
}

.shortcut-row a:nth-child(5) i {
    color: var(--orange);
}

.how-it-works {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto 18px;
    padding: 16px 96px 28px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f6f9ff, #ffffff, #f6f9ff);
}

.how-it-works h2,
.popular h2 {
    margin-bottom: 16px;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px;
}

.steps article {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.steps article:not(:last-child)::after {
    position: absolute;
    top: 22px;
    right: -42px;
    width: 54px;
    border-top: 2px dashed #aeb8cc;
    content: "";
}

.steps strong {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--navy);
    font-size: 20px;
}

.steps article:nth-child(2) strong {
    background: var(--orange);
}

.steps article:nth-child(3) strong {
    background: var(--red);
}

.steps h3 {
    color: var(--navy-dark);
    font-size: 16px;
}

.steps p {
    max-width: 210px;
    color: #273653;
    font-size: 13px;
}

.youtube-promo {
    width: min(1040px, calc(100% - 40px));
    min-height: 204px;
    margin: 0 auto 14px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(90deg, #fff2f3, #fff8f8);
}

.youtube-copy {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 38px 0 38px 70px;
}

.youtube-icon {
    width: 58px;
    height: 44px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--white);
    background: var(--red);
    font-size: 30px;
}

.youtube-copy p {
    max-width: 500px;
    margin: 8px 0 22px;
    color: var(--ink);
    font-size: 15px;
}

.youtube-promo img {
    width: 100%;
    height: 204px;
    object-fit: cover;
    object-position: 60% 50%;
}

.popular {
    padding-bottom: 18px;
}

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

.popular-card {
    min-height: 144px;
    padding: 20px 28px 14px;
    border: 1px solid #e5edf7;
    border-radius: 13px;
    background: linear-gradient(135deg, #f9fbff, #ffffff);
    box-shadow: 0 10px 28px rgba(8, 41, 109, 0.08);
}

.popular-card.grade {
    background: linear-gradient(135deg, #fffafa, #ffffff);
}

.popular-card h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    color: var(--navy);
    font-size: 19px;
}

.popular-card.grade h3 {
    color: var(--orange);
}

.popular-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.popular-items a {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 7px;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(8, 41, 109, 0.08);
}

.popular-items i {
    color: var(--navy);
    font-size: 26px;
}

.popular-card.grade .popular-items i {
    color: var(--red);
}

.popular-items strong {
    display: block;
    color: var(--navy-dark);
    font-size: 16px;
}

.popular-items span {
    color: #14213f;
    font-size: 12px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.popular-card.grade .text-link {
    color: var(--orange);
}

.cta-band,
.support-band {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.cta-band {
    padding: 24px max(40px, calc((100vw - 1040px) / 2));
    color: var(--white);
    background:
        radial-gradient(circle at 4% 50%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px) 0 0 / 16px 16px,
        linear-gradient(120deg, var(--navy-dark), #08317b);
}

.cta-icon,
.support-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    font-size: 32px;
}

.cta-icon {
    color: var(--red);
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 5px;
}

.cta-band p {
    color: #e3ebff;
}

.support-band {
    padding: 22px max(40px, calc((100vw - 1040px) / 2));
    background: linear-gradient(90deg, #fff5f5, #ffffff);
}

.support-icon {
    color: var(--red);
    background: #ffe4e5;
}

.support-band p {
    max-width: 560px;
    color: #263550;
}

.site-footer {
    color: var(--white);
    background: linear-gradient(125deg, #062060, #082b78);
}

.footer-grid {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 26px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 52px;
    align-items: start;
}

.footer-brand img {
    width: 152px;
    margin-bottom: 8px;
}

.footer-grid h3 {
    margin-bottom: 8px;
    font-size: 13px;
}

.footer-grid p,
.footer-grid a {
    display: block;
    color: #edf4ff;
    font-size: 12px;
}

.socials {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.socials a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.copyright {
    align-self: end;
    text-align: right;
}

@media (max-width: 1060px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .brand {
        width: auto;
    }

    .nav-links {
        order: 3;
        width: 100%;
        gap: 24px;
        flex-wrap: wrap;
    }

    .nav-links a {
        padding: 10px 0;
    }

    .nav-links a::after {
        bottom: 3px;
    }

    .hero {
        min-height: 560px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0.28) 100%),
            radial-gradient(circle at 50% 18%, rgba(231, 241, 255, 0.9), transparent 38%),
            url("academy-hero-background.png") center bottom / cover no-repeat;
    }

    .hero-content {
        margin: 0 auto;
        width: min(760px, calc(100% - 40px));
        text-align: center;
    }

    .hero p,
    .hero h1 {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .stats {
        justify-content: center;
    }

    .path-grid {
        gap: 20px;
    }

    .path-card {
        padding-left: 22px;
        padding-right: 22px;
    }

    .how-it-works {
        padding-left: 36px;
        padding-right: 36px;
    }
}

@media (max-width: 820px) {
    .nav-actions {
        width: 100%;
        justify-content: center;
    }

    .path-grid,
    .popular-grid,
    .youtube-promo,
    .steps,
    .cta-band,
    .support-band,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .path-grid {
        gap: 44px;
    }

    .shortcut-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border: 1px solid var(--line);
        border-radius: 12px;
        overflow: hidden;
    }

    .shortcut-row a {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .shortcut-row a:nth-child(3n) {
        border-right: 0;
    }

    .shortcut-row a:nth-child(n + 4) {
        border-bottom: 0;
    }

    .steps {
        gap: 24px;
    }

    .steps article:not(:last-child)::after {
        display: none;
    }

    .youtube-copy {
        padding: 30px;
    }

    .youtube-promo img {
        height: 260px;
    }

    .cta-band,
    .support-band {
        text-align: center;
        justify-items: center;
    }

    .footer-grid {
        gap: 22px;
        text-align: center;
    }

    .footer-brand img {
        margin-left: auto;
        margin-right: auto;
    }

    .socials {
        justify-content: center;
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .navbar,
    .path-section,
    .popular,
    .shortcut-row,
    .how-it-works,
    .youtube-promo,
    .footer-grid {
        width: min(100% - 24px, 1040px);
    }

    .brand img {
        width: 142px;
    }

    .nav-links {
        gap: 16px;
        font-size: 12px;
    }

    .nav-actions,
    .hero-actions,
    .cta-actions,
    .support-actions {
        flex-wrap: wrap;
    }

    .btn {
        min-height: 42px;
        padding: 0 18px;
        font-size: 13px;
    }

    .hero-content {
        width: min(100% - 24px, 520px);
        padding-top: 50px;
        padding-bottom: 280px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .stats {
        grid-template-columns: 1fr;
        justify-items: center;
    }

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

    .shortcut-row a:nth-child(3n) {
        border-right: 1px solid var(--line);
    }

    .shortcut-row a:nth-child(2n) {
        border-right: 0;
    }

    .shortcut-row a:nth-child(n + 4) {
        border-bottom: 1px solid var(--line);
    }

    .shortcut-row a:nth-child(n + 5) {
        border-bottom: 0;
    }

    .popular-items {
        grid-template-columns: 1fr;
    }

    .youtube-copy {
        flex-direction: column;
    }

    .youtube-promo img {
        height: 220px;
    }
}
