/* ====================
   СТРАНИЦА "РАБОТА" (job.html)
   Все стили вынесены сюда
   ==================== */

.job-page {
    background: #f8fafc;
}

.job-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ====================
   ЗАГОЛОВОК
   ==================== */
.job-header {
    text-align: center;
    margin-bottom: 40px;
}

.job-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.job-header .accent {
    color: #800020;
}

.job-subtitle {
    font-size: 16px;
    color: #6b7280;
}

/* ====================
   БЛОК "КАК УСТРОИТЬСЯ"
   ==================== */
.how-to-apply {
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    padding: 30px;
    margin-bottom: 40px;
}

.how-to-apply h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.how-to-apply h2 i {
    color: #800020;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.step-card {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #800020;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin: 0 auto 12px;
}

.step-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: #6b7280;
}

/* ====================
   ИНФОРМАЦИЯ О ПАТЕНТЕ
   ==================== */
.patent-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.patent-warning {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fef2e8;
    border-radius: 16px;
    border-left: 4px solid #f59e0b;
}

.patent-warning i {
    font-size: 24px;
    color: #f59e0b;
    flex-shrink: 0;
}

.patent-warning strong {
    color: #1a1a1a;
}

.patent-warning ul {
    margin: 8px 0 0 20px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

/* ====================
   TELEGRAM БЛОК
   ==================== */
.telegram-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.telegram-block {
    width: 70%;
    max-width: 600px;
    position: relative;
}

@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 139, 230, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(34, 139, 230, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 139, 230, 0);
    }
}

.telegram-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #1e96c8 0%, #0d5e7e 100%);
    border-radius: 20px;
    padding: 16px 24px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.telegram-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.telegram-card i.fa-telegram-plane {
    font-size: 32px;
    flex-shrink: 0;
    background: white;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1e96c8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.telegram-card:hover i.fa-telegram-plane {
    transform: scale(1.03);
}

.telegram-content {
    flex: 1;
}

.telegram-content h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.telegram-content h3::before {
    content: '🔥';
    font-size: 14px;
    animation: softPulse 2s infinite;
}

.telegram-content p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
    line-height: 1.4;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #1e96c8;
    padding: 6px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.telegram-btn i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.telegram-btn:hover {
    background: #1e96c8;
    color: white;
}

.telegram-btn:hover i {
    transform: translateX(3px);
    color: white;
}

.telegram-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ff6b35;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ====================
   СЕКЦИЯ ВИДЖЕТА
   ==================== */
.widget-section {
    margin-top: 20px;
}

.widget-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.widget-title i {
    color: #800020;
    margin-right: 10px;
}

/* Скелетон (индикатор загрузки) */
.skeleton-placeholder {
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #800020;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skeleton-text {
    font-size: 14px;
    color: #6b7280;
}

.skeleton-text i {
    margin-right: 8px;
    color: #800020;
}

/* Iframe - без обёрток, строго по коду PPDU */
.widget-iframe-container {
    margin-top: 20px;
}

/* ====================
   АДАПТИВ
   ==================== */
@media (max-width: 900px) {
    .telegram-block {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .job-container {
        padding: 20px 15px;
    }
    
    .job-header h1 {
        font-size: 24px;
    }
    
    .job-subtitle {
        font-size: 14px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .how-to-apply {
        padding: 20px;
    }
    
    .how-to-apply h2 {
        font-size: 18px;
    }
    
    .patent-warning {
        flex-direction: column;
    }
    
    .patent-warning i {
        text-align: center;
    }
    
    .widget-title {
        font-size: 20px;
    }
    
    .telegram-block {
        width: 100%;
    }
    
    .telegram-card {
        gap: 12px;
        padding: 12px 18px;
        border-radius: 16px;
    }
    
    .telegram-card i.fa-telegram-plane {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .telegram-content h3 {
        font-size: 14px;
    }
    
    .telegram-content h3::before {
        display: none;
    }
    
    .telegram-content p {
        font-size: 11px;
    }
    
    .telegram-btn {
        padding: 5px 14px;
        font-size: 11px;
    }
    
    .telegram-badge {
        top: -8px;
        right: 8px;
        font-size: 9px;
        padding: 2px 10px;
    }
}

@media (max-width: 480px) {
    .job-header h1 {
        font-size: 20px;
    }
    
    .telegram-card {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .telegram-content {
        text-align: center;
    }
}