/* ========================================
   ROOT VARIABLES - СОВРЕМЕННАЯ ЦВЕТОВАЯ СХЕМА
   ======================================== */
:root {
    /* Основные цвета */
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --primary-light: #4895ef;
    --secondary: #7209b7;
    --accent: #f72585;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #e74c3c;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --light: #f8f9fa;
    --white: #ffffff;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #4361ee, #3a0ca3);
    --gradient-secondary: linear-gradient(135deg, #7209b7, #4361ee);
    --gradient-accent: linear-gradient(135deg, #f72585, #7209b7);
    --gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--light);
    overflow-x: hidden;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, .h1 { font-size: 3rem; font-weight: 700; line-height: 1.2; }
h2, .h2 { font-size: 2.5rem; font-weight: 700; line-height: 1.3; }
h3, .h3 { font-size: 2rem; font-weight: 600; line-height: 1.3; }
h4, .h4 { font-size: 1.5rem; font-weight: 600; line-height: 1.4; }
h5, .h5 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h6, .h6 { font-size: 1rem; font-weight: 600; line-height: 1.5; }

@media (max-width: 768px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.25rem; }
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-muted { color: var(--gray) !important; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* ========================================
   КНОПКИ
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1.125rem; }

/* ========================================
   НАВИГАЦИЯ
   ======================================== */
   /* ========== АДАПТИВНЫЙ ЛОГОТИП В НАВБАРЕ ========== */

/* По умолчанию показываем полное название, скрываем сокращенное */
.navbar-brand .brand-full {
    display: inline;
}

.navbar-brand .brand-short {
    display: none;
}

/* На планшетах (до 992px) */
@media (max-width: 991px) {
    .navbar-brand .brand-full {
        display: none;
    }
    
    .navbar-brand .brand-short {
        display: inline !important;
    }
    
    .navbar-brand {
        font-size: 1rem;
        white-space: nowrap;
    }
}

/* На мобильных устройствах (до 768px) */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .navbar-brand .brand-full {
        display: none;
    }
    
    .navbar-brand .brand-short {
        display: inline !important;
    }
}

/* На очень маленьких экранах (до 480px) */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 0.9rem;
        max-width: 145px;
    }
    
    .navbar-brand .brand-short {
        display: inline;
    }
}
.navbar {
    background: var(--gradient-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--gradient-dark);
        padding: 1rem;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .navbar-collapse.collapsing {
        transition: all 0.3s ease;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 16px;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 8px;
        border: none;
    }
    
    .dropdown-item {
        color: var(--white);
        text-align: center;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--white);
    }
    
    .btn-outline-light {
        margin: 0;
        width: 100%;
        text-align: center;
    }
}
/* Выпадающее меню */
.dropdown-menu {
    background: var(--gradient-dark);
    border: none;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dropdown-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* Стрелка выпадающего меню */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Адаптивность для мобильных */
@media (max-width: 991px) {
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        padding-left: 1.5rem;
    }
    
    .dropdown-item {
        color: var(--white);
    }
    
    .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }
}
/* ========================================
   HERO СЕКЦИЯ
   ======================================== */
.hero-section {
    position: relative;
    background: var(--gradient-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

/* ========================================
   КАРТОЧКИ
   ======================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--light);
    border-top: 1px solid var(--gray-light);
}

/* Feature карточки */
.feature-card,
.program-card,
.news-card,
.skill-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover,
.program-card:hover,
.news-card:hover,
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon,
.program-icon,
.skill-icon {
    width: 70px;
    height: 70px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i,
.program-icon i,
.skill-icon i {
    font-size: 2rem;
    color: var(--primary);
}

/* Новостные карточки */
.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.25rem;
}

.news-date {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-fast);
}

.read-more:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* ========================================
   ФОРМЫ
   ======================================== */
.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========================================
   ТАБЛИЦЫ
   ======================================== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.table th {
    background: var(--light);
    font-weight: 600;
}

.table tr:hover {
    background: rgba(67, 97, 238, 0.05);
}

/* ========================================
   АЛЕРТЫ
   ======================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--primary);
}

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

/* ========================================
   БЕЙДЖИ
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

/* ========================================
   ПАГИНАЦИЯ
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--dark);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--primary);
    color: var(--white);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    color: var(--white);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   МОДАЛЬНЫЕ ОКНА
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger);
}

/* ========================================
   СЕКЦИИ
   ======================================== */
section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
}

/* ========================================
   ФУТЕР
   ======================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    margin-top: auto;
}

.footer-content {
    padding: 4rem 0 2rem;
}

.footer-logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contacts i {
    width: 20px;
    color: var(--primary);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-fast);
    margin-right: 8px;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-contacts li {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
}

/* ========================================
   ГРИДЫ
   ======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.col {
    flex: 1;
    padding: 0.75rem;
}

.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (max-width: 768px) {
    .col-md-1, .col-md-2, .col-md-3, .col-md-4,
    .col-md-5, .col-md-6, .col-md-7, .col-md-8,
    .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========================================
   АНИМАЦИИ
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ========================================
   УТИЛИТЫ
   ======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.bg-white { background: var(--white); }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); }
.bg-primary { background: var(--primary); }
.bg-gradient { background: var(--gradient-primary); }

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-3 { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .col-md-6 { flex: 0 0 100%; max-width: 100%; }
    .col-md-4 { flex: 0 0 100%; max-width: 100%; }
    .col-md-3 { flex: 0 0 100%; max-width: 100%; }
    
    .d-sm-none { display: none; }
    .d-sm-block { display: block; }
}

@media (max-width: 576px) {
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
    
    .text-sm-center { text-align: center; }
    
    .btn-block-sm {
        display: block;
        width: 100%;
    }
}
/* ========================================
   АДАПТИВНЫЙ НАВБАР
   ======================================== */

/* Полное название бренда по умолчанию */
.brand-full {
    display: inline;
}

.brand-short {
    display: none;
}

/* На планшетах и мобильных устройствах */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
    
    .brand-full {
        display: none;
    }
    
    .brand-short {
        display: inline;
    }
    
    .user-name {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .btn-outline-light {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Центрирование на мобильных устройствах */
@media (max-width: 576px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        justify-content: center;
    }
    
    .dropdown-menu {
        text-align: center;
    }
}
/* Мобильное выпадающее меню */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        padding-left: 1rem;
        margin-top: 0;
        transform: none !important;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-item {
        color: var(--white);
        padding: 0.5rem 1rem;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
    }
    
    .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }
}
/* ========== ЛОГОТИП В НАВБАРЕ ========== */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.navbar-logo {
    height: 45px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.navbar-brand .brand-full {
    display: inline;
    font-size: 1.1rem;
    line-height: 1.3;
    color: white;
}

.navbar-brand .brand-short {
    display: none;
    font-size: 1rem;
    line-height: 1.3;
    color: white;
}

/* При наведении */
.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-brand:hover .brand-full,
.navbar-brand:hover .brand-short {
    color: rgba(255, 255, 255, 0.9);
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты и мобильные (до 991px) */
@media (max-width: 991px) {
    .navbar-logo {
        height: 35px;
    }
    
    .navbar-brand {
        gap: 8px;
    }
    
    .navbar-brand .brand-full {
        display: none;
    }
    
    .navbar-brand .brand-short {
        display: inline;
        font-size: 1rem;
    }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
    .navbar-logo {
        height: 32px;
    }
    
    .navbar-brand {
        max-width: 200px;
        gap: 6px;
    }
    
    .navbar-brand .brand-short {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .navbar-logo {
        height: 28px;
    }
    
    .navbar-brand {
        max-width: 150px;
    }
    
    .navbar-brand .brand-short {
        font-size: 0.8rem;
    }
}

/* Сверхмаленькие экраны (до 360px) */
@media (max-width: 360px) {
    .navbar-logo {
        height: 25px;
    }
    
    .navbar-brand {
        max-width: 120px;
    }
    
    .navbar-brand .brand-short {
        font-size: 0.75rem;
    }
}
/* ========================================
   ФУТЕР — МОБИЛЬНАЯ ВЕРСИЯ
   ======================================== */
@media (max-width: 991px) {
    .footer .row {
        flex-direction: column;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer .col-lg-4:last-child,
    .footer .col-lg-2:last-child,
    .footer .col-lg-3:last-child {
        margin-bottom: 0;
    }
    
    /* Центрируем контент в мобильной версии */
    .footer-logo,
    .footer-links,
    .footer-contacts,
    .footer-social,
    .footer-newsletter {
        text-align: center;
    }
    
    .footer-links li,
    .footer-contacts li {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
        display: flex;
        gap: 10px;
    }
    
    .footer-newsletter .d-flex {
        justify-content: center;
    }
    
    /* Разделитель между блоками */
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        padding-bottom: 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .footer .col-lg-4:last-child,
    .footer .col-lg-2:last-child,
    .footer .col-lg-3:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* Выравниваем заголовки */
    .footer h5 {
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Нижняя строка */
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer .row.align-items-center {
        text-align: center;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
    
    .footer .text-md-start {
        text-align: center !important;
    }
}
/* PDF просмотрщик */
.curriculum-pdf-viewer {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
}

.pdf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-label {
    font-weight: 600;
    color: #1a1a2e;
}

.pdf-actions {
    display: flex;
    gap: 8px;
}

.pdf-container {
    padding: 0;
    background: #525659;
}

.pdf-container iframe {
    display: block;
}

/* Полноэкранный режим */
.pdf-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #525659;
}

.pdf-fullscreen iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .pdf-container iframe {
        height: 400px;
    }
    
    .pdf-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Документы */
.doc-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.doc-type-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.doc-type-btn {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: #4a5568;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.doc-type-btn:hover, .doc-type-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid #eef2f6;
    transition: all 0.2s;
}

.doc-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102,126,234,0.08);
}

.doc-icon {
    width: 44px;
    height: 44px;
    background: #fef2f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.doc-info { flex: 1; }
.doc-info h4 { font-size: 1rem; font-weight: 600; color: #1a1a2e; margin: 0 0 4px 0; }
.doc-info p { font-size: 0.85rem; color: #6c757d; margin: 0 0 6px 0; }

.doc-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.8rem;
}

.doc-type-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.doc-type-badge.vkr_protocol { background: #dbeafe; color: #1d4ed8; }
.doc-type-badge.vkr_topic { background: #fef3c7; color: #92400e; }

.doc-date { color: #9ca3af; }

.doc-download {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    opacity: 0;
    transition: all 0.2s;
}

.doc-item:hover .doc-download { opacity: 1; }

@media (max-width: 768px) {
    .doc-filters { flex-direction: column; align-items: flex-start; }
    .doc-item { padding: 12px 14px; }
    .doc-item:hover .doc-download { opacity: 1; }
}
/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.12);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 3px solid #667eea;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
    color: white;
}

.cookie-btn-privacy {
    background: #f8fafc;
    color: #4a5568;
    border: 2px solid #e5e7eb;
}

.cookie-btn-privacy:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
        gap: 15px;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .cookie-container {
        padding: 14px 16px;
    }
    
    .cookie-text p {
        font-size: 0.8rem;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
}