:root {
    /* Основные цвета */
    --color-dark: #070425;            /* Темный фон */
    --color-text-primary: #a1a1c6;    /* Основной цвет текста */
    --color-text-white: #ffffff;      /* Белый текст */
    
    /* Градиентные цвета для сферы */
    --orb-one: #BD48CF;               /* Яркий фиолетовый */
    --orb-two: #3C5EFF;               /* Ярко-синий */
    --main-color-rgb: 79, 113, 244;   /* Синий (RGB) */
    --second-color-rgb: 200, 67, 203; /* Фиолетовый (RGB) */
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #29142a, #271024, #2a1b3d);
    color: var(--color-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Контейнер для носка */
.sock-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Canvas носка */
#sock-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Canvas для эффекта с курсором */
#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
    pointer-events: none;
    opacity: 0.8;
}

/* Стили для стеклянной навигации */
.glass-nav {
    position: fixed;
    top: 7mm;
    left: 7mm;
    right: 7mm;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, #3C5EFF, #BD48CF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(60, 94, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    z-index: 101;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3C5EFF, #BD48CF);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-upload-btn {
    background: linear-gradient(135deg, #3C5EFF, #BD48CF);
    padding: 0.6rem 1.8rem;
    border-radius: 9999px;
    color: #fff !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(60, 94, 255, 0.3);
    cursor: pointer;
    z-index: 101;
}

.nav-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 94, 255, 0.4);
}

.nav-upload-btn::after {
    display: none;
}

/* Стили для переключателя языков */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
    padding: 0.3rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.9rem;
}

.lang-option {
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
}

.lang-option:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Секции лендинга */
section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    scroll-snap-align: start;
}

/* Стили главной секции Hero */
.hero {
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #3C5EFF, #BD48CF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(60, 94, 255, 0.5);
    animation: neonFlicker 3s infinite alternate;
    max-width: 800px;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 100% {
        opacity: 1;
    }
    20%, 22% {
        opacity: 0.8;
    }
}

/* CTA кнопка */
.cta-button {
    background: linear-gradient(135deg, #3C5EFF, #BD48CF);
    border: none;
    border-radius: 50px;
    padding: 16px 40px 16px 60px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(60, 94, 255, 0.4);
    margin-top: 40px;
}

.cta-button:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>') no-repeat center center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(60, 94, 255, 0.6);
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 4, 37, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1a0e1a, #1c0b1a, #1d1229);
    border-radius: 15px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #a1a1c6;
}

.drop-area {
    border: 2px dashed #a1a1c6;
    border-radius: 10px;
    padding: 40px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.drop-area.highlight {
    border-color: #3C5EFF;
    background-color: rgba(60, 94, 255, 0.1);
}

.drop-area p {
    margin-bottom: 15px;
}

.file-input {
    display: none;
}

.browse-button {
    background: linear-gradient(135deg, #3C5EFF, #BD48CF);
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.browse-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(60, 94, 255, 0.4);
}

/* Секция "Как это работает" */
.how-it-works {
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #fff;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    width: 280px;
    padding: 20px;
    margin: 20px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3C5EFF, #BD48CF);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(60, 94, 255, 0.4);
}

.step-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.step-line {
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3C5EFF, #BD48CF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease 0.3s;
    z-index: -1;
}

.step.visible .step-line {
    transform: scaleX(1);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

/* Секция "Истории успеха" */
.success-stories {
    text-align: center;
}

.success-stories h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #fff;
}

.stories-slider {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.stories-track {
    display: flex;
    transition: transform 0.5s ease;
}

.story-card {
    flex: 0 0 300px;
    height: 400px;
    margin: 0 10px;
    background: linear-gradient(135deg, rgba(26, 14, 26, 0.8), rgba(28, 11, 26, 0.8), rgba(29, 18, 41, 0.8));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.story-images {
    height: 60%;
    display: flex;
    position: relative;
}

.story-before, .story-after {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.story-before {
    background-image: url('/assets/before.svg');
}

.story-after {
    background-image: url('/assets/after.svg');
}

.story-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.story-card:hover .story-heart {
    opacity: 1;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: translate(-50%, -50%) scale(1); }
    14% { transform: translate(-50%, -50%) scale(1.3); }
    28% { transform: translate(-50%, -50%) scale(1); }
    42% { transform: translate(-50%, -50%) scale(1.3); }
    70% { transform: translate(-50%, -50%) scale(1); }
}

.story-text {
    padding: 20px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
}

.slider-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.slider-btn {
    background: none;
    border: none;
    color: #a1a1c6;
    font-size: 30px;
    cursor: pointer;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.slider-btn:hover {
    color: #fff;
}

/* Финальная секция */
.final-cta {
    text-align: center;
}

.final-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #fff;
    max-width: 800px;
}

/* Медиа запросы для респонсивности */
@media (max-width: 768px) {
    .glass-nav {
        top: 5mm;
        left: 5mm;
        right: 5mm;
        border-radius: 9999px;
    }

    .nav-container {
        padding: 0.6rem 1.2rem;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-upload-btn {
        padding: 0.5rem 1.2rem;
    }

    section {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 14px 30px 14px 50px;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step-line {
        display: none;
    }
    
    .story-card {
        flex: 0 0 280px;
        height: 380px;
    }
    
    .final-cta h2 {
        font-size: 2rem;
    }

    .lang-switcher {
        margin-left: 1rem;
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }

    .lang-option {
        padding: 0.2rem 0.4rem;
    }
}