html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #070b28 0%, #1e1b4b 50%, #070b28 100%);
    color: #e2e8f0;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #070b28 0%, #1e1b4b 50%, #070b28 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    animation: fadeInDown 0.5s ease-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
}

.language-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: rgba(129, 140, 248, 0.1);
    border-radius: 0.375rem;
    color: #a5b4fc;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(129, 140, 248, 0.3);
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 29px;
    box-sizing: border-box;
}

.language-current:hover {
    background: rgba(129, 140, 248, 0.2);
    color: #e0e7ff;
}

.dropdown-arrow {
    transition: transform 0.2s;
    width: 12px;
    height: 12px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1e1b4b;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 120px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 50;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 0.5rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.language-option:hover {
    background: rgba(129, 140, 248, 0.2);
    color: #ffffff;
}

.language-option.active {
    background: rgba(129, 140, 248, 0.3);
    color: #ffffff;
    font-weight: 500;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #818cf8 0%, #c6d0ff 50%, #818cf8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #818cf8 0%, #a5b4fc 50%, #818cf8 100%);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.btn {
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
}
.btn-outline {
    border: 1px solid #4f46e5;
    color: #a5b4fc;
    background: rgba(79, 70, 229, 0.1);
    transition: all 0.2s ease;
}
.btn-outline:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: #6366f1;
    color: #e0e7ff;
    transform: translateY(-1px);
}
.btn-primary {
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem 1rem;
    height: calc(100vh - 100px);
    min-height: 400px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    background: linear-gradient(90deg, #a5b4fc 0%, #818cf8 50%, #a5b4fc 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.5rem;
}

/* Адаптивность */
/* Mobile Styles */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0rem;
        text-align: center;
    }
    
    .logo {
        font-size: 1.75rem;
        margin: 0 0 1rem 0;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.5rem 0 0 0;
        margin: 0;
    }
    
    .language-switcher {
        margin: 0;
        width: auto;
    }
    
    .language-current {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
        min-height: 28px;
    }
    
    .language-dropdown {
        left: 50%;
        right: auto;
        transform: translate(-50%, 10px);
        min-width: 140px;
    }
    
    .language-dropdown.show {
        transform: translate(-50%, 0);
    }
    
    .btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.85rem;
    }
    
    main {
        padding: 6rem 0.5rem 1rem;
        height: auto;
        min-height: calc(100vh - 100px);
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
    
    footer {
        padding: 0.75rem 0;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        padding: 0 0.25rem;
    }
    
    .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Эффект частиц */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(165, 180, 252, 0.6);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}
footer {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    padding: 1.5rem 0;
    background: rgba(7, 11, 40, 0.8);
    backdrop-filter: blur(5px);
    margin-top: 0;
    font-size: 0.875rem;
}