/* ОСНОВНЫЕ СТИЛИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.6;
}

/* ШАПКА САЙТА */
.site-header {
    background: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-bottom: 3px solid #fe0000;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.company-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.tls {
    color: #000000;
}

.gro {
    color: #000000;
}

.up {
    color: #fe0000;
}

.header-subtitle {
    font-size: 1.8rem;
    color: #374151;
    margin-bottom: 10px;
    font-weight: 600;
}

.header-description {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 400;
}

/* КОНТЕЙНЕР */
.container {
    max-width: 1200px;
    margin: 0 auto 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
}

/* ШАГИ */
.step-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
    border-left: 5px solid #fe0000;
    transition: all 0.3s;
}

.step-section:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #fe0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(254, 0, 0, 0.3);
}

.step-section h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin: 0;
}

.step-description {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 25px;
    padding-left: 60px;
}

/* ВЫБОР СПЕЦИАЛИСТА */
.specialist-select-container {
    max-width: 600px;
    margin: 0 auto;
}

.specialist-select {
    width: 100%;
    padding: 18px 25px;
    border: 3px solid #d1d5db;
    border-radius: 12px;
    font-size: 1.2rem;
    background: white;
    transition: all 0.3s;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fe0000' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 25px center;
    background-size: 16px;
}

.specialist-select:focus {
    outline: none;
    border-color: #fe0000;
    box-shadow: 0 0 0 4px rgba(254, 0, 0, 0.1);
}

.specialist-select option {
    padding: 15px;
    font-size: 1.1rem;
}

.select-hint {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    margin-top: 10px;
    font-style: italic;
}

/* ТРЕБОВАНИЯ К ФАЙЛУ */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0 30px;
}

.requirement-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.requirement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #fe0000;
}

.req-icon {
    font-size: 2rem;
    color: #fe0000;
    flex-shrink: 0;
}

.req-content h3 {
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.req-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

code {
    background: #1f2937;
    color: #fbbf24;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0 2px;
}

/* ССЫЛКА НА ВИДЕО */
.video-link-wrapper {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e5e7eb;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1d4ed8;
    text-decoration: none;
    padding: 14px 28px;
    background: #eff6ff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.video-link:hover {
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
    border-color: #1d4ed8;
}

.video-icon {
    font-size: 1.3rem;
}

/* ЗАГРУЗКА ФАЙЛА */
.upload-area {
    border: 4px dashed #d1d5db;
    border-radius: 15px;
    padding: 50px 20px;
    text-align: center;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    margin-top: 20px;
}

.upload-area:hover {
    background: #f8fafc;
    border-color: #9ca3af;
}

.upload-area.drag-over {
    background: #fee2e2;
    border-color: #fe0000;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { border-color: #fe0000; }
    50% { border-color: #fca5a5; }
    100% { border-color: #fe0000; }
}

.upload-content {
    max-width: 500px;
    margin: 0 auto;
}

.upload-icon {
    font-size: 3.5rem;
    color: #374151;
    margin-bottom: 20px;
    opacity: 0.8;
}

.upload-area h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.upload-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 25px;
}

/* КНОПКИ */
.btn-select {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-select:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
}

.btn-select:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #9ca3af;
}

/* ПРОГРЕСС */
.progress-container {
    margin-top: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px solid #e5e7eb;
}

.progress-info {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin: 20px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 1.1rem;
}

.progress-bar {
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #fe0000);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.status-message {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    color: #4b5563;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #fe0000;
}

/* СТАТИСТИКА */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-3px);
    background: #f1f5f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-item span:last-child {
    font-size: 1rem;
    color: #6b7280;
}

.stat-item strong {
    font-size: 1.5rem;
    color: #1f2937;
    display: block;
    margin-top: 8px;
}

/* КНОПКА СКАЧИВАНИЯ */
.btn-download {
    width: 100%;
    background: linear-gradient(135deg, #fe0000 0%, #cc0000 100%);
    color: white;
    border: none;
    padding: 20px;
    font-size: 1.3rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(254, 0, 0, 0.2);
    animation: pulse-download 2s infinite;
}

@keyframes pulse-download {
    0% { box-shadow: 0 4px 15px rgba(254, 0, 0, 0.2); }
    50% { box-shadow: 0 4px 25px rgba(254, 0, 0, 0.4); }
    100% { box-shadow: 0 4px 15px rgba(254, 0, 0, 0.2); }
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(254, 0, 0, 0.4);
    background: linear-gradient(135deg, #cc0000 0%, #fe0000 100%);
}

/* ПОДВАЛ */
footer {
    margin-top: 50px;
    padding: 40px 0 20px;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-company {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.tls-footer {
    color: #000000;
}

.gro-footer {
    color: #000000;
}

.up-footer {
    color: #fe0000;
}

.footer-text {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.6;
}

.footer-text a {
    color: #fe0000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.footer-text a:hover {
    text-decoration: underline;
    color: #cc0000;
}

/* УВЕДОМЛЕНИЯ */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 20px 30px;
    border-radius: 12px;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    max-width: 400px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background: linear-gradient(135deg, #10b981cc, #059669cc);
    border-left: 5px solid #10b981;
}

.notification.error {
    background: linear-gradient(135deg, #ef4444cc, #dc2626cc);
    border-left: 5px solid #ef4444;
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6cc, #1d4ed8cc);
    border-left: 5px solid #3b82f6;
}

/* АНИМАЦИЯ ВЫДЕЛЕНИЯ */
@keyframes highlight {
    0% { border-color: #d1d5db; }
    50% { border-color: #fe0000; box-shadow: 0 0 0 4px rgba(254, 0, 0, 0.2); }
    100% { border-color: #d1d5db; }
}

.highlight {
    animation: highlight 1s 3;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .site-header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    .company-title {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.4rem;
    }
    
    .header-description {
        font-size: 1rem;
    }
    
    .step-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .step-header {
        gap: 15px;
    }
    
    .step-section h2 {
        font-size: 1.4rem;
    }
    
    .step-description {
        padding-left: 0;
        margin-left: 55px;
    }
    
    .specialist-select {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .requirement-card {
        padding: 15px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .btn-select, .btn-download {
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
        padding: 16px;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
        text-align: center;
    }
    
    .footer-company {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .company-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .step-section h2 {
        font-size: 1.2rem;
    }
    
    .specialist-select {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .btn-select, .btn-download {
        font-size: 1rem;
        padding: 14px;
    }
    
    .video-link {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* ПЛАВНЫЕ АНИМАЦИИ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-section, .progress-container {
    animation: fadeInUp 0.6s ease-out;
}

.step-section:nth-child(1) {
    animation-delay: 0.1s;
}

.step-section:nth-child(2) {
    animation-delay: 0.2s;
}

.step-section:nth-child(3) {
    animation-delay: 0.3s;
}

.progress-container {
    animation-delay: 0.4s;
}