.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    background: rgba(2, 3, 7, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition:
            background 0.4s ease,
            border-color 0.4s ease,
            box-shadow 0.4s ease;
    transform: translateY(-100%);
    animation: navSlideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes navSlideDown {
    to { transform: translateY(0); }
}

.site-header.scrolled {
    background: rgba(2, 3, 7, 0.48);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav {
    position: relative;
    z-index: 1;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    transition: min-height 0.35s ease;
}

.site-header.scrolled .nav {
    min-height: 58px;
}

.brand {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.9rem;
    letter-spacing: 0.04em;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 32px;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.75;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    background: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
}

.nav-links-left {
    justify-content: flex-end;
}

.nav-links-right {
    justify-content: flex-start;
}

.nav-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    padding: 14px 24px 10px;
    border: none;
    background: none;
    border-radius: 0;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%) translateY(-3px);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(210, 145, 55, 1);
    box-shadow: 0 0 4px rgba(210, 130, 30, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(195, 140, 50, 0.75), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-links a:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.nav-active {
    color: rgba(255, 255, 255, 0.9);
}

.nav-links a.nav-active::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-links a.nav-active::after {
    transform: scaleX(1);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('../img/background/bg1.jpg') center center / cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
            linear-gradient(to bottom, transparent 80%, #000000 100%),
            rgba(2, 3, 7, 0.52);
    z-index: 1;
}


.hero-bg {
    z-index: 2;
}

.hero-inner {
    z-index: 3;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 3;
    padding: 60px 0;
    padding-top: 118px;
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 0 40px;
}

.hero-text-side {
    flex: 1;
    min-width: 0;
    padding-left: 80px;
    display: flex;
    flex-direction: column;
    margin-top: -40px;
}



.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.95;
    max-width: 640px;
}

.hero-text {
    margin-top: 18px;
    max-width: 500px;
    font-size: 1.05rem;
}



.hero-actions {
    margin-top: 44px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.hero-image-side {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 60px;
}

.hero-oval {
    width: 400px;
    height: 450px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(255, 160, 50, 0.16);
    box-shadow:
            0 0 40px rgba(255, 140, 30, 0.10),
            0 0 90px rgba(255, 100, 20, 0.07),
            0 0 150px rgba(255, 80, 10, 0.04),
            0 0 220px rgba(200, 60, 10, 0.02),
            var(--shadow);
}

.hero-oval img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

.hero-intro-box {
    margin-top: 32px;
    padding: 24px 28px;
    max-width: 280px;
    background: linear-gradient(160deg, rgba(10, 8, 20, 0.55), rgba(5, 4, 12, 0.45));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 185, 80, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 200, 100, 0.05);
    opacity: 0;
    animation: introBoxIn 0.8s ease-out 1.2s forwards;
}

.hero-intro-text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.01em;
}

.hero-intro-text strong {
    color: #ffffff;
    font-weight: 600;
}

@keyframes introBoxIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 0;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-stat-exp {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.stat-exp-number {
    display: flex;
    align-items: baseline;
    gap: 3px;
    line-height: 1;
}

.stat-exp-number .stat-exp-num {
    font-family: "Bebas Neue", sans-serif;
    font-size: 6rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    display: inline-block;
}

.stat-exp-plus {
    font-family: "Bebas Neue", sans-serif;
    font-size: 3.2rem;
    color: #ffffff;
    line-height: 1;
    vertical-align: super;
    margin-left: 2px;
}

.stat-exp-label {
    color: rgba(159, 168, 198, 0.85);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.hero-stat-academy {
    gap: 18px;
}

.academy-logo-big {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 14px;
    flex-shrink: 0;
}

.stat-academy-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-academy-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.2;
}

.stat-academy-sub {
    color: rgba(159, 168, 198, 0.8);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
}

.academy-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
}

.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-explore {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.25s ease;
    cursor: pointer;
}

.hero-explore:hover {
    color: #ffffff;
}

.hero-explore-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-explore-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.25s ease;
}

.hero-explore:hover .hero-explore-arrow {
    opacity: 1;
}

@keyframes exploreBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 700px) {
    .hero-explore {
        bottom: 24px;
    }
}

.nav-about-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 14px 6px 10px;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nav-about-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 165, 70, 0.5);
    background: rgba(255, 150, 50, 0.08);
}

.about-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    background: rgba(2, 3, 7, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.about-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.about-modal {
    position: relative;
    width: 100%;
    max-width: 660px;
    margin: 0 24px;
    padding: 48px 48px 44px;
    background: linear-gradient(160deg, rgba(10, 8, 20, 0.45), rgba(5, 4, 12, 0.35));
    border: 1px solid rgba(255, 185, 80, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 200, 100, 0.06);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    opacity: 0;
}

.about-overlay.is-open .about-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.about-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg,
    rgba(255, 160, 50, 0.6),
    rgba(214, 92, 255, 0.2),
    rgba(255, 100, 30, 0.6),
    rgba(255, 200, 80, 0.4));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderFlow 9s ease infinite;
    opacity: 0.6;
    pointer-events: none;
}

.about-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s ease;
    line-height: 0;
}

.about-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

.about-modal-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 160, 50, 0.8);
    margin-bottom: 10px;
}

.about-modal-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin: 0 0 20px;
    line-height: 1;
}

.about-modal-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.about-modal-text strong {
    color: #ffffff;
    font-weight: 600;
}

.about-modal-langs {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 185, 80, 0.16);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-langs-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 160, 50, 0.8);
}

.about-langs-list {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

.about-langs-dot {
    color: rgba(255, 160, 50, 0.7);
    margin: 0 6px;
    font-weight: 400;
}

@keyframes heroRiseIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroPopIn {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.94);
    }
    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.015);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroPhotoIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hero-stat-exp .stat-exp-number {
    opacity: 0;
    animation: heroPopIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
}

.hero-stat-exp .stat-exp-label {
    opacity: 0;
    animation: heroRiseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero-stat-academy .academy-logo-big {
    opacity: 0;
    animation: heroPopIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}

.hero-stat-academy .stat-academy-text {
    opacity: 0;
    animation: heroRiseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

.hero-actions .btn-ember {
    opacity: 0;
    animation: heroPopIn 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-actions .btn-ember:nth-child(1) {
    animation-delay: 1s;
}

.hero-actions .btn-ember:nth-child(2) {
    animation-delay: 1.12s;
}

.hero-image-side {
    opacity: 0;
    animation: heroPhotoIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

@keyframes heroExploreIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hero-explore {
    opacity: 0;
    animation:
            heroExploreIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards,
            exploreBounce 2s ease-in-out 2.2s infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-stat-exp .stat-exp-number,
    .hero-stat-exp .stat-exp-label,
    .hero-stat-academy .academy-logo-big,
    .hero-stat-academy .stat-academy-text,
    .hero-actions .btn-ember,
    .hero-image-side,
    .hero-explore {
        opacity: 1;
        animation: none;
    }
}