* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* Анимированный снег */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #a0a0a0;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 3px rgba(120, 120, 120, 0.4), 0 1px 2px rgba(0, 0, 0, 0.15);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    pointer-events: none;
    user-select: none;
    will-change: transform;
    filter: drop-shadow(0 0 2px rgba(150, 150, 150, 0.3));
}

/* Разные траектории падения снежинок */
@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0.2;
    }
}

@keyframes snowfall-left {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(-80px) rotate(360deg);
        opacity: 0.2;
    }
}

@keyframes snowfall-right {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(80px) rotate(360deg);
        opacity: 0.2;
    }
}

@keyframes snowfall-slight-left {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(-40px) rotate(360deg);
        opacity: 0.2;
    }
}

@keyframes snowfall-slight-right {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(40px) rotate(360deg);
        opacity: 0.2;
    }
}

.container {
    position: relative;
    min-height: 100vh;
    z-index: 2;
}

/* Кнопка регистрации в правом верхнем углу */
.register-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.register-btn {
    background: linear-gradient(135deg, #0088cc 0%, #005f8c 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
    background: linear-gradient(135deg, #0099dd 0%, #0070a5 100%);
}

.register-btn:active {
    transform: translateY(0);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

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

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 28px;
}

.modal-content p {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}

/* Форма регистрации */
.form-step {
    display: block;
}

.form-step.hidden {
    display: none;
}

.step-description {
    margin-bottom: 25px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #0088cc;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.phone-prefix {
    padding: 14px 12px;
    color: #666;
    font-weight: 600;
    background: #e9ecef;
    border-radius: 12px 0 0 12px;
    border-right: 1px solid #e0e0e0;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: transparent;
    color: #333;
    outline: none;
}

.form-input::placeholder {
    color: #999;
}

.code-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: #0088cc;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 12px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0088cc 0%, #005f8c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.resend-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #0088cc;
    border: 1px solid #0088cc;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.resend-btn:hover:not(:disabled) {
    background: #0088cc;
    color: white;
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error-message {
    margin-top: 10px;
    padding: 10px;
    background: #fee;
    color: #c33;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

.timer {
    text-align: center;
    margin-top: 10px;
    color: #999;
    font-size: 14px;
}

/* Шаг ожидания */
.waiting-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.waiting-icon .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0088cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#waitingStep h3 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.waiting-message {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.waiting-phone {
    text-align: center;
    color: #0088cc;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cancel-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.cancel-btn:hover {
    background: #dc3545;
    color: white;
}

/* Поле ввода пароля */
.password-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.password-input:focus {
    border-color: #0088cc;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.password-input::placeholder {
    color: #999;
}

/* Успешная регистрация */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
}

#successStep h3 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.success-message {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Загрузчик */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.loader.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0088cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Основной контент */
.main-content {
    padding: 0;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
}

/* Hero секция */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: fadeInDown 0.8s ease;
}

.badge-icon {
    font-size: 18px;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.2s both;
    color: #1a1a1a;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

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

.hero-description {
    font-size: 22px;
    margin-bottom: 50px;
    color: #4a4a4a;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description strong {
    color: #667eea;
    font-weight: 700;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Секции */
.container-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #4a4a4a;
    line-height: 1.7;
}

/* О проекте секция */
.about-section {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #667eea;
}

.feature-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Партнеры секция */
.partners-section {
    background: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.partner-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.partner-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #667eea;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.partner-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(102, 126, 234, 0.3));
}

.partner-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #667eea;
}

.partner-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* CTA секция */
.cta-section {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 20px;
    color: #4a4a4a;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .register-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .register-button-container {
        top: 15px;
        right: 15px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-number {
        font-size: 36px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-description {
        font-size: 16px;
    }

    .features-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card,
    .partner-card {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-description {
        font-size: 18px;
    }

    .container-section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
    }

    .stat-number {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-icon,
    .partner-icon {
        font-size: 48px;
    }

    .feature-title,
    .partner-title {
        font-size: 20px;
    }
}

