/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #6B46C1;
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --accent: #C084FC;
    --black: #0A0A0A;
    --dark-gray: #1A1A1A;
    --gray: #2D2D2D;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --education-color: #10B981;
    --consulting-color: #3B82F6;
    --documentation-color: #8B5CF6;
    --gold: #D4AF37;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--black);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Страница загрузки ─── */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    animation: loaderPulse 1.4s ease-in-out infinite;
    margin-bottom: 24px;
}

.loader-logo span {
    color: var(--accent);
}

.loader-bar {
    width: 160px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    animation: loaderBar 1.4s ease-in-out forwards;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes loaderBar {
    0% { width: 0; }
    60% { width: 70%; }
    100% { width: 100%; }
}

/* ─── Кастомный курсор ─── */
.cursor-glow {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: left 0.08s linear, top 0.08s linear;
    mix-blend-mode: screen;
}

/* ─── Общие стили ─── */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep на всех кнопках */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.btn:hover::after {
    left: 130%;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.4);
}

.btn-hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 1.05rem;
    padding: 18px 40px;
    border-radius: 10px;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(107, 70, 193, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 17px 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-ghost i {
    transition: transform 0.3s ease;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(192, 132, 252, 0.15);
}

.btn-ghost:hover i {
    transform: translateX(4px);
}

/* ─── Шапка ─── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(139, 92, 246, 0);
}

.header.scrolled {
    padding: 14px 0;
    background-color: rgba(10, 10, 10, 0.97);
    border-bottom-color: rgba(139, 92, 246, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -1px;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.85;
}

.logo-dot {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--white);
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 4px;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ─── Hero ─── */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
    background: var(--black);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -150px;
    right: -80px;
    animation: blobFloat1 14s ease-in-out infinite;
}

.hero-blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -100px;
    left: -60px;
    animation: blobFloat2 18s ease-in-out infinite;
}

.hero-blob-3 {
    width: 350px;
    height: 350px;
    background: var(--consulting-color);
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    animation: blobFloat3 20s ease-in-out infinite;
    opacity: 0.06;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 50px) scale(1.06); }
    66% { transform: translate(25px, -30px) scale(0.94); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -40px) scale(1.08); }
    66% { transform: translate(-25px, 35px) scale(0.92); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--primary-light);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.5); }
    50% { box-shadow: 0 0 0 5px rgba(167, 139, 250, 0); }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.9s ease 1.6s forwards;
}

.highlight {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 42px;
    max-width: 90%;
    line-height: 1.75;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.9s ease 1.8s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.9s ease 2s forwards;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    opacity: 0;
    animation: heroReveal 0.9s ease 2.2s forwards;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.trust-item i {
    color: var(--primary-light);
    font-size: 0.85rem;
}

.trust-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.12);
}

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Graphic */
.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: heroReveal 1.2s ease 1.4s forwards;
}

.graphic-element {
    position: relative;
    width: 340px;
    height: 340px;
}

.graphic-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transform: translate(-50%, -50%);
}

.graphic-ring-1 {
    width: 320px;
    height: 320px;
    animation: ringRotate 20s linear infinite;
    border-style: dashed;
}

.graphic-ring-2 {
    width: 260px;
    height: 260px;
    border-color: rgba(192, 132, 252, 0.15);
    animation: ringRotate 15s linear infinite reverse;
}

.graphic-ring-3 {
    width: 200px;
    height: 200px;
    border-color: rgba(139, 92, 246, 0.1);
    animation: ringRotate 25s linear infinite;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.shield-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    color: var(--white);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.4), 0 0 120px rgba(139, 92, 246, 0.15);
    animation: shieldPulse 4s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { box-shadow: 0 0 60px rgba(139, 92, 246, 0.4), 0 0 120px rgba(139, 92, 246, 0.15); }
    50% { box-shadow: 0 0 80px rgba(139, 92, 246, 0.6), 0 0 160px rgba(139, 92, 246, 0.25); }
}

.animated-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    animation: dotFloat 7s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.dot:nth-child(1) { top: 8%;  left: 18%; animation-delay: 0s;   animation-duration: 7s; }
.dot:nth-child(2) { top: 78%; left: 8%;  animation-delay: 1.5s; animation-duration: 9s; }
.dot:nth-child(3) { top: 15%; left: 78%; animation-delay: 3s;   animation-duration: 6s; }
.dot:nth-child(4) { top: 65%; left: 88%; animation-delay: 0.8s; animation-duration: 8s; }
.dot:nth-child(5) { top: 88%; left: 58%; animation-delay: 2s;   animation-duration: 7.5s; }

@keyframes dotFloat {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
    25% { transform: translateY(-18px) translateX(10px) scale(1.2); opacity: 1; }
    50% { transform: translateY(0) translateX(18px) scale(1); opacity: 0.6; }
    75% { transform: translateY(18px) translateX(8px) scale(0.9); opacity: 0.9; }
}

/* ─── Технические услуги ─── */
.services {
    padding: 120px 0;
    background-color: var(--dark-gray);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 36px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(139, 92, 246, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.04), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 20px 50px rgba(107, 70, 193, 0.2), 0 0 0 1px rgba(139,92,246,0.1);
}

.service-card:hover::before {
    left: 150%;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.service-description {
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ─── Образовательные услуги ─── */
.education {
    padding: 120px 0;
    background-color: var(--black);
    position: relative;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.25), transparent);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.education-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 36px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(16, 185, 129, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.04), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.education-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.04);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.education-card:hover::before {
    left: 150%;
}

.education-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--education-color), #34D399);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover .education-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.education-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.education-description {
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.education-tag {
    display: inline-block;
    padding: 5px 14px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--education-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
    letter-spacing: 0.03em;
}

/* ─── Консалтинг ─── */
.consulting {
    padding: 120px 0;
    background-color: var(--dark-gray);
    position: relative;
}

.consulting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.25), transparent);
}

.consulting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.consulting-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 36px 36px 36px 36px;
    padding-top: 48px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.consulting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.04), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.consulting-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.consulting-card:hover::before {
    left: 150%;
}

.consulting-number {
    position: absolute;
    top: -14px;
    left: 30px;
    background: linear-gradient(135deg, var(--consulting-color), #60A5FA);
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.consulting-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.consulting-description {
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ─── Документация ─── */
.documentation {
    padding: 120px 0;
    background-color: var(--black);
    position: relative;
}

.documentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.25), transparent);
}

.documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.document-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 36px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(139, 92, 246, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.04), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.document-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 20px 50px rgba(107, 70, 193, 0.15), 0 0 0 1px rgba(139,92,246,0.08);
}

.document-card:hover::before {
    left: 150%;
}

.document-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--documentation-color), var(--accent));
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card:hover .document-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.document-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.document-description {
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ─── Почему мы ─── */
.why-us {
    padding: 120px 0;
    background-color: var(--dark-gray);
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 48px 28px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 20px 50px rgba(107, 70, 193, 0.2);
}

.stat-card:hover::after {
    width: 60%;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: -2px;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.stat-description {
    color: rgba(255,255,255,0.45);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ─── Процесс работы ─── */
.process {
    padding: 120px 0;
    background-color: var(--black);
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
}

.process-steps {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 56px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 72px;
    height: calc(100% - 10px);
    width: 1px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step.animated:not(:last-child)::after {
    opacity: 0.4;
    animation: lineGrow 0.8s ease forwards 0.4s;
}

@keyframes lineGrow {
    from { transform: scaleY(0); transform-origin: top; }
    to { transform: scaleY(1); transform-origin: top; }
}

.step-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    min-width: 60px;
    margin-right: 24px;
    line-height: 1;
    padding-top: 6px;
}

.step-content {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 16px;
    padding: 28px 32px;
    transition: all 0.3s ease;
}

.step:hover .step-content {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.04);
    transform: translateX(6px);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.step-description {
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ─── Футер ─── */
.footer {
    padding: 90px 0 36px;
    background-color: var(--dark-gray);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.footer-about {
    color: rgba(255,255,255,0.45);
    margin-bottom: 28px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links li i {
    margin-right: 10px;
    color: var(--primary);
    width: 14px;
    flex-shrink: 0;
}

.footer-links a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-input {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-submit {
    margin-top: 6px;
    font-size: 0.95rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.copyright {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

.policy-links {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

.policy-links a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-links a:hover {
    color: var(--accent);
}

/* ─── Модальное окно ─── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.modal {
    background: rgba(20, 20, 20, 0.98);
    border-radius: 24px;
    padding: 48px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(30px);
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 92, 246, 0.08);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--white);
}

.modal-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    color: rgba(255,255,255,0.45);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-select {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-select option {
    background: #1a1a1a;
    color: var(--white);
}

.modal-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.modal-input {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
    background-color: rgba(139, 92, 246, 0.04);
}

.modal-submit {
    margin-top: 6px;
    padding: 16px;
    font-size: 1rem;
}

/* ─── Анимации появления ─── */
.service-card,
.education-card,
.consulting-card,
.document-card,
.stat-card,
.step {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.service-card.animated,
.education-card.animated,
.consulting-card.animated,
.document-card.animated,
.stat-card.animated,
.step.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для каскадного появления */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.13s; }
.service-card:nth-child(3) { transition-delay: 0.21s; }
.service-card:nth-child(4) { transition-delay: 0.29s; }
.service-card:nth-child(5) { transition-delay: 0.37s; }
.service-card:nth-child(6) { transition-delay: 0.45s; }

.education-card:nth-child(1) { transition-delay: 0.05s; }
.education-card:nth-child(2) { transition-delay: 0.12s; }
.education-card:nth-child(3) { transition-delay: 0.19s; }
.education-card:nth-child(4) { transition-delay: 0.26s; }
.education-card:nth-child(5) { transition-delay: 0.33s; }
.education-card:nth-child(6) { transition-delay: 0.40s; }
.education-card:nth-child(7) { transition-delay: 0.47s; }

.consulting-card:nth-child(1) { transition-delay: 0.05s; }
.consulting-card:nth-child(2) { transition-delay: 0.12s; }
.consulting-card:nth-child(3) { transition-delay: 0.19s; }
.consulting-card:nth-child(4) { transition-delay: 0.26s; }
.consulting-card:nth-child(5) { transition-delay: 0.33s; }
.consulting-card:nth-child(6) { transition-delay: 0.40s; }

.document-card:nth-child(1) { transition-delay: 0.05s; }
.document-card:nth-child(2) { transition-delay: 0.12s; }
.document-card:nth-child(3) { transition-delay: 0.19s; }
.document-card:nth-child(4) { transition-delay: 0.26s; }
.document-card:nth-child(5) { transition-delay: 0.33s; }
.document-card:nth-child(6) { transition-delay: 0.40s; }
.document-card:nth-child(7) { transition-delay: 0.47s; }

.stat-card:nth-child(1) { transition-delay: 0.05s; }
.stat-card:nth-child(2) { transition-delay: 0.15s; }
.stat-card:nth-child(3) { transition-delay: 0.25s; }
.stat-card:nth-child(4) { transition-delay: 0.35s; }

.step:nth-child(1) { transition-delay: 0.05s; }
.step:nth-child(2) { transition-delay: 0.15s; }
.step:nth-child(3) { transition-delay: 0.25s; }
.step:nth-child(4) { transition-delay: 0.35s; }
.step:nth-child(5) { transition-delay: 0.45s; }

/* ─── Адаптивность ─── */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-graphic {
        margin-top: 50px;
    }

    .graphic-element {
        width: 280px;
        height: 280px;
    }
}

/* ─── Мобильное меню-оверлей (живёт вне header) ─── */
.mobile-nav {
    display: none; /* только на mobile */
    position: fixed;
    inset: 0;
    z-index: 1100; /* выше header (z-index: 1000) */
    background: #0a0a0a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0s 0.45s;
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0s 0s;
}

/* Декоративный градиент поверх фона */
.mobile-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mobile-nav-list li {
    overflow: hidden;
    /* анимация появления каждого пункта */
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease calc(var(--i) * 0.07s),
                transform 0.4s ease calc(var(--i) * 0.07s);
}

.mobile-nav.active .mobile-nav-list li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link {
    display: block;
    padding: 20px 40px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--white);
}

.mobile-nav-link:hover::after,
.mobile-nav-link.active::after {
    width: 60px;
}

.mobile-nav-link.active {
    color: var(--white);
}

/* ─── Разделитель пунктов ─── */
.mobile-nav-list li + li .mobile-nav-link {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    /* Показываем мобильное меню только на mobile */
    .mobile-nav {
        display: flex;
    }

    /* Скрываем десктопное меню */
    .nav-menu {
        display: none;
    }

    .burger-menu {
        display: flex;
        z-index: 1200; /* выше mobile-nav */
    }

    .consultation-btn {
        display: none;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .education-grid,
    .consulting-grid,
    .documentation-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-steps {
        padding-left: 0;
    }

    .step {
        flex-direction: column;
    }

    .step-number {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .hero-trust {
        flex-wrap: wrap;
        gap: 12px;
    }

    .modal {
        padding: 32px 24px;
    }

    .graphic-element {
        width: 240px;
        height: 240px;
    }

    .cursor-glow {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────────
   СОГЛАСИЕ С ДОКУМЕНТАМИ — чекбокс в формах
───────────────────────────────────────────────────────────── */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.consent-checkbox {
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    border-radius: 5px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.consent-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.consent-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.consent-checkbox:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Подсветка невалидного чекбокса при попытке отправки */
.consent-checkbox:invalid,
.consent-checkbox.invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.consent-text {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.55;
}

.doc-link {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease, opacity 0.2s ease;
    vertical-align: baseline;
}

.doc-link:hover {
    color: var(--primary);
    opacity: 0.9;
}

/* ─────────────────────────────────────────────────────────────
   МОДАЛЬНОЕ ОКНО ПРОСМОТРА ДОКУМЕНТОВ
───────────────────────────────────────────────────────────── */
.doc-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.doc-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.doc-modal {
    background: #111111;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 60px rgba(139,92,246,0.07);
    transform: scale(0.95) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.doc-overlay.active .doc-modal {
    transform: scale(1) translateY(0);
}

.doc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.doc-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
    padding-right: 16px;
}

.doc-modal-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.doc-modal-close:hover {
    background: rgba(139,92,246,0.2);
    border-color: rgba(139,92,246,0.35);
    color: var(--white);
}

.doc-modal-body {
    overflow-y: auto;
    padding: 24px 28px 28px;
    flex: 1;
    /* Скроллбар в стиле сайта */
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,0.35) transparent;
}

.doc-modal-body::-webkit-scrollbar {
    width: 5px;
}
.doc-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.doc-modal-body::-webkit-scrollbar-thumb {
    background: rgba(139,92,246,0.35);
    border-radius: 3px;
}

/* Типографика внутри документа */
.doc-modal-body h2 {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin: 20px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(139,92,246,0.12);
}

.doc-modal-body h2:first-child {
    margin-top: 0;
}

.doc-modal-body p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 10px;
}

.doc-modal-body ul {
    padding-left: 18px;
    margin-bottom: 10px;
}

.doc-modal-body li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 4px;
}

.doc-modal-body strong {
    color: rgba(255,255,255,0.75);
    font-weight: 600;
}

.doc-date {
    display: inline-block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .doc-modal {
        max-height: 88vh;
    }

    .doc-modal-header {
        padding: 18px 20px 14px;
    }

    .doc-modal-body {
        padding: 16px 20px 20px;
    }
}
