body {
    background-color: #020617;
    color: white;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.bg-grid {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(59, 130, 246, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black, transparent 90%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.3;
    animation: float 20s infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.text-gradient {
    background: linear-gradient(90deg, #60a5fa, #2dd4bf);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 10;
}

#site-header {
    background: transparent;
}

#site-header.scrolled {
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.05);
}

.header-inner {
    height: 70px;
    max-width: 1280px;
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(156, 163, 175, 1);
    padding: 6px 14px;
    border-radius: 10px;
    transition:
        color 0.25s,
        background 0.25s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 1.5px;
    background: linear-gradient(90deg, #60a5fa, #2dd4bf);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: white;
    background: rgba(59, 130, 246, 0.08);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: white;
}

.nav-link-mobile {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(156, 163, 175, 1);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    transition:
        color 0.2s,
        background 0.2s,
        border-color 0.2s;
}

.nav-link-mobile:hover {
    color: white;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(156, 163, 175, 1);
    border-radius: 2px;
    transition:
        transform 0.3s,
        opacity 0.3s;
}

#burger.open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#burger.open .burger-line:nth-child(2) {
    opacity: 0;
}
#burger.open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#mobile-menu {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.module-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-card:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.results-title {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.results-section.in-view .results-title {
    opacity: 1;
    transform: translateY(0);
}

.results-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}
.results-section.in-view .results-subtitle {
    opacity: 1;
}
.results-subtitle-line {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.video-reveal-card {
    opacity: 0;
    transform: translateY(60px) scale(0.92);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--card-delay, 0ms),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--card-delay, 0ms);
    position: relative;
    min-height: 380px;
}

.results-section.in-view .video-reveal-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.video-card-featured {
    transform: translateY(60px) scale(0.92);
}
.results-section.in-view .video-card-featured {
    transform: translateY(-12px) scale(1.03);
}

.video-card-inner {
    position: relative;
    height: 100%;
    min-height: 380px;
    transition:
        box-shadow 0.5s ease,
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-card-inner:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 60px rgba(59, 130, 246, 0.25),
        0 30px 60px rgba(0, 0, 0, 0.5);
}
.video-card-featured .video-card-inner {
    box-shadow:
        0 0 50px rgba(59, 130, 246, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.5);
}
.video-card-featured .video-card-inner:hover {
    box-shadow:
        0 0 80px rgba(59, 130, 246, 0.4),
        0 40px 80px rgba(0, 0, 0, 0.6);
}

.video-scanline {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-scanline::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 45%,
        rgba(59, 130, 246, 0.08) 50%,
        transparent 55%,
        transparent 100%
    );
    animation: scanline-move 1.5s linear infinite;
}
.video-scanline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

.video-reveal-card.scanning .video-scanline {
    opacity: 1;
}

@keyframes scanline-move {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

.video-corner {
    position: absolute;
    z-index: 11;
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.results-section.in-view .video-corner {
    opacity: 1;
}
.video-corner.tl {
    top: 12px;
    left: 12px;
    border-top: 2px solid rgba(96, 165, 250, 0.7);
    border-left: 2px solid rgba(96, 165, 250, 0.7);
    border-radius: 3px 0 0 0;
}
.video-corner.tr {
    top: 12px;
    right: 12px;
    border-top: 2px solid rgba(96, 165, 250, 0.7);
    border-right: 2px solid rgba(96, 165, 250, 0.7);
    border-radius: 0 3px 0 0;
}
.video-corner.bl {
    bottom: 12px;
    left: 12px;
    border-bottom: 2px solid rgba(96, 165, 250, 0.7);
    border-left: 2px solid rgba(96, 165, 250, 0.7);
    border-radius: 0 0 0 3px;
}
.video-corner.br {
    bottom: 12px;
    right: 12px;
    border-bottom: 2px solid rgba(96, 165, 250, 0.7);
    border-right: 2px solid rgba(96, 165, 250, 0.7);
    border-radius: 0 0 3px 0;
}

.video-badge {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    z-index: 12;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(96, 165, 250, 0.85);
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.25);
    padding: 4px 12px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition:
        opacity 0.4s ease 0.5s,
        transform 0.4s ease 0.5s;
    pointer-events: none;
}
.results-section.in-view .video-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.video-badge-featured {
    color: rgba(45, 212, 191, 0.9);
    border-color: rgba(45, 212, 191, 0.3);
}

.video-glow-ring {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0);
    transition:
        opacity 0.6s ease,
        box-shadow 0.6s ease;
}
.results-section.in-view .video-glow-ring {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.video-card-featured .video-glow-ring {
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.2);
}

@keyframes pulse-border {
    0%,
    100% {
        box-shadow:
            inset 0 0 0 1px rgba(45, 212, 191, 0.2),
            0 0 40px rgba(45, 212, 191, 0.05);
    }
    50% {
        box-shadow:
            inset 0 0 0 1px rgba(45, 212, 191, 0.5),
            0 0 60px rgba(45, 212, 191, 0.12);
    }
}
.results-section.in-view .video-card-featured .video-glow-ring {
    animation: pulse-border 3s ease-in-out infinite;
}

.bg-photo {
    background-image: url('../img/bg/bg-fon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
    filter: saturate(1.05) contrast(1.05);
}

button.nav-link,
button.nav-link-mobile,
button.footer-logo,
.footer-nav-col ul li button {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

button.nav-link-mobile {
    display: block;
    width: 100%;
    text-align: left;
}

.footer-nav-col ul li button {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 0.84rem;
    color: rgba(107, 114, 128, 1);
    transition:
        color 0.2s,
        padding-left 0.2s;
}
.footer-nav-col ul li button:hover {
    color: rgba(209, 213, 219, 1);
    padding-left: 4px;
}

#site-header button.nav-link,
#site-header button.nav-link-mobile {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

#site-header button.nav-link:focus,
#site-header button.nav-link-mobile:focus {
    outline: none;
}

#site-header button.nav-link:focus-visible,
#site-header button.nav-link-mobile:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.6);
    outline-offset: 4px;
    border-radius: 10px;
}

.blue-tg {
    background-color: #1e96c8;
}

@media (max-width: 1200px) {
    .header-inner {
        height: 60px;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 4px 8px;
        letter-spacing: 0.05em;
    }

    #site-header nav {
        gap: 0.4rem;
    }

    #site-header .font-black.text-sm {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    #site-header .btn-glow {
        font-size: 0.7rem;
        padding: 6px 14px;
        border-radius: 10px;
    }
}

@media (max-width: 1050px) {
    .header-inner {
        height: 56px;
    }

    .nav-link {
        font-size: 0.62rem;
        padding: 3px 6px;
        letter-spacing: 0.04em;
    }

    #site-header nav {
        gap: 0.25rem;
    }

    #site-header .font-black.text-sm {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    #site-header .btn-glow {
        font-size: 0.62rem;
        padding: 5px 10px;
        border-radius: 8px;
    }
}

.footer-logo-text {
    font-size: 20px !important;
}
.footer-brand-desc {
    font-size: 16px !important;
    line-height: 1.6;
}
.footer-column-title {
    font-size: 18px !important;
}
.footer-link {
    font-size: 16px !important;
}
.footer-bottom {
    font-size: 15px !important;
}

#for-whom h2 {
    font-size: 52px !important;
}
@media (max-width: 768px) {
    #for-whom h2 {
        font-size: 34px !important;
    }
}
#for-whom h3 {
    font-size: 22px !important;
}
#for-whom p {
    font-size: 16px !important;
    line-height: 1.7;
}

.hero h1 {
    font-size: 64px !important;
    line-height: 1.1;
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px !important;
    }
}
.hero p {
    font-size: 22px !important;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .hero p {
        font-size: 18px !important;
    }
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

#site-header {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.header-inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #site-header {
        overflow: visible;
    }

    .header-inner {
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    #burger {
        flex-shrink: 0;
        margin-left: auto;
        position: relative;
        right: 0;
    }

    section,
    .program-container,
    .support-card,
    .pricing-card,
    .footer-inner {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}
