/* ====================== ОБЩИЕ СТИЛИ ====================== */
:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --success: #198754;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
}

/* ====================== HERO СЛАЙДЕР ====================== */
#hero {
    height: 85vh;
    min-height: 580px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1.8s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 56px; /* отступ под фиксированный навбар */
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 0 15px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-content p.lead {
    font-size: 1.25rem;
    color: #f0f0f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ====================== НАВИГАЦИЯ ====================== */
.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.45rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}

.nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

/* ====================== КАРТОЧКА ФОРМЫ ====================== */
.upload-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* ====================== ФОРМА ====================== */
.form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.35);
}

/* ====================== ТАБЛИЦА ====================== */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.table thead {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
}

.table th {
    font-weight: 600;
    padding: 16px 14px;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    padding: 14px;
}

.table tbody tr:hover {
    background-color: #f8fbff;
    transition: background-color 0.3s;
}

/* ====================== ПАГИНАЦИЯ ====================== */
.pagination .page-link {
    border-radius: 50px;
    margin: 0 5px;
    min-width: 40px;
    text-align: center;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ====================== АЛЕРТЫ ====================== */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
}

/* ====================== АДАПТИВНОСТЬ ====================== */
@media (max-width: 768px) {
    #hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .upload-card {
        margin-top: -30px;
        padding: 1.8rem 1.2rem;
    }
    
    .table th, .table td {
        padding: 12px 8px;
        font-size: 0.95rem;
    }
}