:root {
    --primary: #FF6B00;
    --primary-dark: #E65100;
    --primary-light: #FF8A33;
    --dark: #121212;
    --darker: #0A0A0A;
    --dark-gray: #1E1E1E;
    --medium-gray: #2A2A2A;
    --light-gray: #3D3D3D;
    --light: #F5F5F5;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

nav {
    position: fixed;
    width: 100%;
    padding: 0.5rem 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #e6510075;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;        
    justify-content: center;    
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(270deg, #ff6a00, #ffa500, #ffcc00, #ff6a00);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 5s ease infinite, fadeInUp 1s ease;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #AAAAAA;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-illustration {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-animation {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.2;
    animation: pulse 8s infinite alternate;
}
.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 25px rgba(255, 107, 0, 0.4);
}

.cta-button:hover {
    background: linear-gradient(135deg, #ff7500, #ffa500);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 98, 0, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

section {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-subtitle {
    color: #AAAAAA;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(145deg, var(--dark-gray), var(--darker));
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 107, 0, 0.1);
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 0, 0.3);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(230, 81, 0, 0.2));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.feature-card p {
    color: #BBBBBB;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.feature-hover-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover .feature-hover-effect {
    opacity: 1;
}

.download {
    background: linear-gradient(to right, var(--darker), var(--dark-gray));
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(255, 107, 0, 0.1), transparent 70%);
    z-index: 0;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.download-content {
    flex: 1;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--light), #DDDDDD);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.download-content p {
    font-size: 1.2rem;
    color: #AAAAAA;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.download-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #999999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

        .download-btn {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            padding: 1.2rem 2.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            box-shadow: 0 5px 25px rgba(255, 107, 0, 0.4);
            --primary: #ff6b00;
            --primary-dark: #e55a00;
            text-decoration: none;
        }

        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 35px rgba(255, 107, 0, 0.6);
        }

        .glow {
            animation: glow 2s infinite alternate;
        }

        .download-animation {
            flex: 1;
            height: 400px;
            position: relative;
        }

.code-animation {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--medium-gray), var(--dark-gray));
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.code-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        transparent 50%,
        rgba(255, 107, 0, 0.05) 50%,
        rgba(255, 107, 0, 0.1)
    );
    background-size: 100% 8px;
    animation: scan 4s linear infinite;
}

.team {
    background-color: #0e0e0e;
    background-image: url('https://www.transparenttextures.com/patterns/dark-mosaic.png');
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: linear-gradient(145deg, var(--dark-gray), var(--darker));
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    width: 280px;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 107, 0, 0.03),
        transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.2);
}

.team-member:hover::before {
    opacity: 1;
}

.member-avatar {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    --border-width: 4px;
}

.avatar-image {
    width: calc(100% - var(--border-width)*2);
    height: calc(100% - var(--border-width)*2);
    object-fit: cover;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    transition: all 0.8s cubic-bezier(0.33, 1, 0.68, 1);
    filter: grayscale(15%) contrast(105%);
    border: var(--border-width) solid transparent;
    box-sizing: border-box;
    margin: var(--border-width);
}

.avatar-border-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        var(--primary-light),
        var(--primary),
        #FF9E00,
        var(--primary-light)
    );
    z-index: 1;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.8s ease;
    animation: rotate-border 8s linear infinite paused;
}

.avatar-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.avatar-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
}

.avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 107, 0, 0.3) 0%,
        rgba(255, 107, 0, 0) 70%
    );
    z-index: 0;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.team-member:hover .avatar-image {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(115%) brightness(115%);
    border-color: rgba(255, 107, 0, 0.2);
}

.team-member:hover .avatar-border-effect {
    opacity: 1;
    transform: scale(1);
    animation-play-state: running;
}

.team-member:hover .avatar-glow {
    opacity: 0.6;
    transform: scale(1.1);
    animation: pulse-glow 3s ease-in-out infinite;
}

.team-member:hover .avatar-particles {
    opacity: 1;
}

/* Главный контейнер виджета в навигации */
.profile-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Видимый аватар, который служит триггером */
.profile-avatar-trigger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-dark);
    transition: all 0.3s ease;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    /* CSS для размещения img внутри */
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-trigger img.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Эффект при наведении на аватар */
.profile-menu-container:hover .profile-avatar-trigger {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.5);
}

/* Само выпадающее меню */
.profile-dropdown {
    position: absolute;
    top: 120%; /* Расположение под аватаром */
    right: 0;
    width: 240px;
    background-color: var(--dark-gray);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--light-gray);
    padding: 1rem;
    z-index: 1100;
    
    /* Скрываем по умолчанию */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Показываем меню при наведении на весь контейнер */
.profile-menu-container:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Заголовок внутри меню */
.dropdown-header {
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

/* Новые стили для имени и никнейма */
#user-name {
    font-size: 1.1rem;
    color: var(--light);
    margin: 0;
    font-weight: 600;
}

#user-nickname {
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-top: 4px;
}

/* Ссылка на страницу профиля */
.profile-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.profile-link i {
    color: var(--primary);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.profile-link:hover {
    background-color: var(--primary);
    color: white;
}

.profile-link:hover i {
    color: white;
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1.05);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-40px) translateX(20px);
        opacity: 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

@keyframes glare {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    20% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.team-member p {
    color: #BBBBBB;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: rgba(255, 107, 0, 0.1);
}

.telegram-link:hover {
    background-color: rgba(255, 107, 0, 0.2);
    color: var(--primary-light);
}

.auth-btn {
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    z-index: 1;
    text-decoration: none;
}

.auth-text {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.auth-icon {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.auth-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    top: 0;
    left: -100%;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.auth-btn:hover .auth-text {
    transform: translateX(5px);
}

.auth-btn:hover .auth-icon {
    transform: translateX(5px) scale(1.1);
}

.auth-btn:hover .auth-effect {
    left: 0;
}

.auth-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.4);
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-3px);
    }
}

@media (max-width: 768px) {
    .auth-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .auth-text {
        display: none;
    }
    
    .auth-icon {
        width: 24px;
        height: 24px;
    }
}

footer {
    background-color: var(--darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: #666666;
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px -5px var(--primary);
    }
    to {
        box-shadow: 0 0 20px 0px var(--primary);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scan {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 100%;
    }
}

@media (max-width: 992px) {
    .download-container {
        flex-direction: column;
        text-align: center;
    }
    
    .download-content {
        margin-bottom: 3rem;
    }
    
    .download-stats {
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-illustration {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .download-content h2 {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .features-container {
        grid-template-columns: 1fr;
    }
    
    .download-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 0, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    color: var(--light);
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease 0.3s forwards;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.developer-role {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0.5rem 0;
}

.developer-role i {
    color: var(--primary);
    font-size: 1.1em;
}

.developer-role i {
    color: #FF6B00;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.developer-role:hover i {
    transform: rotate(-15deg);
}

.gradient-text {
    background: linear-gradient(
        90deg,
        #FF6B00, 
        #FF8A33,  
        #E65100,  
        #FF6B00,  
		#FF6B00, 
		#FFA040, 
		#FF8A33,  
		#E65100, 
		#FF6B00  
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 4s ease infinite;
    display: inline-block;
	text-shadow: 0 0 3px rgba(255, 107, 0, 0.3);
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}




/* Online Section Styles */
.online-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.online-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 102, 0, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.online-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.input-container {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.ai-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #111;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(255, 102, 0, 0);
}

.ai-input:focus {
    outline: none;
    border-color: #ff6600;
    background-color: #0f0f0f;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

.ai-button {
    padding: 0 30px;
    background: linear-gradient(135deg, #ff6600 0%, #e65c00 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.ai-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.5);
    background: linear-gradient(135deg, #ff8533 0%, #ff6600 100%);
}

.ai-button:active {
    transform: translateY(0);
}

.response-container {
    background-color: #0f0f0f;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    border-left: 4px solid #ff6600;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    border: 1px solid #333;
}

.response-container.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #ff6600;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.response-header i {
    font-size: 28px;
}

.response-header h3 {
    margin: 0;
    font-size: 22px;
}

.response-content {
    color: #f0f0f0;
    line-height: 1.7;
    padding: 15px 0;
    font-size: 17px;
    min-height: 60px;
}

.response-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 15px;
    color: #bbb;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: #ff6600;
    font-size: 18px;
}

/* Анимация загрузки */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.loading-dots div {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ff6600;
    animation: bounce 1.4s infinite ease-in-out both;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0.5);
        opacity: 0.5;
    } 
    40% { 
        transform: scale(1.1);
        opacity: 1;
    }
}

.error-message {
    position: fixed;
    top: 20px;
    left: 20px;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(145deg, #ff3333, #cc0000);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: white;
    color: #ff3333;
    border-radius: 50%;
    font-weight: bold;
}

/* Обновлённые стили для раздела Инструкция */
.instructions {
    padding: 6rem 2rem;
    background: linear-gradient(to right, #0a0a0a, #121212);
    position: relative;
    overflow: hidden;
}

.instructions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 0, 0.05), transparent 70%);
    z-index: 0;
}

.instructions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    position: relative;
    z-index: 1;
}

.instruction-card {
    background: linear-gradient(145deg, #1e1e1e, #0a0a0a);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 107, 0, 0.1);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.instruction-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.instruction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.instruction-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent 50%);
    z-index: 1;
}

.instruction-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.3);
    transition: all 0.4s ease;
}

.instruction-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.instruction-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--light);
    position: relative;
    padding-bottom: 10px;
}

.instruction-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
}

.instruction-card p {
    color: #BBBBBB;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.instruction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
}

.instruction-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.instruction-btn i {
    transition: transform 0.3s ease;
}

.instruction-btn:hover i {
    transform: translateX(3px);
}

.instruction-hover-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* Анимации и эффекты */
.instruction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.3);
}

.instruction-card:hover .instruction-number {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.4);
}

.instruction-card:hover .instruction-image {
    transform: scale(1.05);
}

.instruction-card:hover .instruction-hover-effect {
    opacity: 1;
}

/* Анимации появления */
.instruction-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.instruction-card:nth-child(1) {
    transition-delay: 0.1s;
}

.instruction-card:nth-child(2) {
    transition-delay: 0.2s;
}

.instruction-card:nth-child(3) {
    transition-delay: 0.3s;
}

.animate-in .instruction-card {
    opacity: 1;
    transform: translateY(0);
}