/* css/index.css */

/* ============================================
   АНИМАЦИИ
============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in.delay-1 {
    animation-delay: 0.2s;
}

.animate-fade-in.delay-2 {
    animation-delay: 0.4s;
}

.animate-fade-in.delay-3 {
    animation-delay: 0.6s;
}

/* ============================================
   ГЕРОЙ-СЕКЦИЯ
============================================ */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.hero .display-4 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Статистика в герое */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ffd700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* ============================================
   КВАРТИРКИ-ССЫЛКИ НА ГОРОДА
============================================ */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 60px;
}

.quick-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

/* ============================================
   КАРТОЧКИ ВАКАНСИЙ
============================================ */
.job-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
}

.job-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.job-title a:hover {
    color: #3498db;
}

.job-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.job-meta i {
    margin-right: 5px;
    width: 16px;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}

.job-stats {
    font-size: 0.9rem;
    color: #6c757d;
}

.badge.badge-primary {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   СТАТИСТИЧЕСКИЕ КАРТОЧКИ
============================================ */
.stats-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stats-card-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.stats-card-body {
    padding: 20px;
}

.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s;
}

.stats-item:last-child {
    border-bottom: none;
}

.stats-item:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 5px;
}

.stats-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    flex-grow: 1;
    transition: color 0.2s;
}

.stats-link:hover {
    color: #3498db;
}

.stats-count {
    background: #e9ecef;
    color: #6c757d;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* ============================================
   СЕКЦИЯ ПРИЗЫВА К ДЕЙСТВИЮ
============================================ */
.cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-light {
    background: white;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.cta-section .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* ============================================
   ЗАГОЛОВКИ СЕКЦИЙ
============================================ */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    border-radius: 2px;
}

.section-title i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* ============================================
   КОНТЕЙНЕРЫ И ОТСТУПЫ
============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* ============================================
   АДАПТИВНОСТЬ
============================================ */
@media (max-width: 992px) {
    .hero .display-4 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero .display-4 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .job-card {
        padding: 20px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero .display-4 {
        font-size: 1.8rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ
============================================ */
/* Фокус-стили для доступности */
.quick-link:focus,
.job-title a:focus,
.stats-link:focus,
.btn:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Улучшенные стили для пустых состояний */
.card.text-center {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.card.text-center .fa-inbox {
    color: #dee2e6;
}

/* Навигационные стрелки */
.btn-link i.fa-arrow-right {
    transition: transform 0.3s ease;
}

.btn-link:hover i.fa-arrow-right {
    transform: translateX(5px);
}