/* app/static/css/style.css */

/* === 1. БАЗА И ПЕРЕМЕННЫЕ === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Brand Color (Indigo) */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    
    /* Neutral Colors (Slate) */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    
    --text-main: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border: #e2e8f0;
    
    /* UI Elements */
    --radius: 12px; /* Скругление */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
.hidden { display: none !important; }

/* === 2. ЛЕЙАУТ (САЙДБАР И ХЕДЕР) === */
.app-container { display: flex; height: 100%; }

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; z-index: 20;
}
.sidebar-header { padding: 24px; display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 36px; height: 36px; background: var(--primary); color: white;
    border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
}
.logo-text { font-size: 1.2rem; font-weight: 700; color: var(--text-main); }

.sidebar-nav { flex: 1; padding: 0 12px; }
.nav-link {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    margin-bottom: 4px; border-radius: var(--radius);
    color: var(--text-secondary); font-weight: 500; transition: 0.2s;
    cursor: pointer; border: none; background: none; width: 100%; font-size: 0.95rem;
}
.nav-link:hover { background: var(--bg-input); color: var(--text-main); }
.nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top-header {
    height: 72px; background: var(--bg-card); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
}
.page-title { font-size: 1.5rem; font-weight: 700; color: var(--text-main); margin: 0; }
.user-info { display: flex; align-items: center; gap: 12px; }
.user-text { text-align: right; }
.user-name { font-weight: 600; font-size: 0.9rem; margin: 0; }
.user-role { font-size: 0.75rem; color: var(--text-secondary); margin: 0; }
.user-avatar {
    width: 40px; height: 40px; background: var(--primary-light); color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
    border: 1px solid var(--border); text-transform: uppercase;
}

.content-scrollable { flex: 1; overflow-y: auto; padding: 32px; }
.content-wrapper { max-width: 1100px; margin: 0 auto; padding-bottom: 40px; }

/* === 3. СОВРЕМЕННЫЕ ФОРМЫ (ИНПУТЫ) === */
.form-label {
    display: block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--text-secondary); margin-bottom: 6px;
}

.form-input, textarea.form-input {
    width: 100%; padding: 12px 16px;
    background-color: var(--bg-input); /* Серый фон */
    border: 1px solid transparent; /* Без рамки по умолчанию */
    border-radius: var(--radius);
    font-size: 0.95rem; color: var(--text-main);
    font-family: inherit; transition: all 0.2s;
}

.form-input:focus {
    background-color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

/* === 4. КНОПКИ === */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    border: none; transition: all 0.2s; gap: 8px;
}

.btn-primary {
    background: var(--primary); color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: white; border: 1px solid var(--border); color: var(--text-main);
}
.btn-secondary:hover { background: var(--bg-input); border-color: var(--text-muted); }

/* Маленькие кнопки добавления */
.btn-add {
    background: var(--primary-light); color: var(--primary);
    padding: 6px 12px; font-size: 0.8rem; font-weight: 700;
    border-radius: 20px; cursor: pointer; border: none; transition: 0.2s;
}
.btn-add:hover { background: #e0e7ff; }

/* === 5. МОДАЛЬНОЕ ОКНО (ПРОСТОРНОЕ) === */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Темный фон */
    backdrop-filter: blur(4px);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
}

.modal-window {
    background: white; width: 100%; max-width: 900px; max-height: 90vh;
    border-radius: 20px; display: flex; flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 16px;
}

.modal-header {
    padding: 24px 32px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    background: white; border-radius: 20px 20px 0 0;
}
.modal-header h3 { margin: 0; font-size: 1.25rem; color: var(--text-main); }

.btn-close {
    width: 32px; height: 32px; border-radius: 50%; background: var(--bg-input);
    border: none; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-secondary); transition: 0.2s;
}
.btn-close:hover { background: #e2e8f0; color: var(--text-main); }

.modal-body { padding: 32px; overflow-y: auto; background: white; }

.modal-footer {
    padding: 24px 32px; border-top: 1px solid var(--border);
    background: var(--bg-body); /* Серый низ */
    display: flex; justify-content: flex-end; gap: 16px;
    border-radius: 0 0 20px 20px;
}

/* Динамические карточки в форме */
.dynamic-card {
    position: relative; background: white; padding: 20px;
    border-radius: var(--radius); border: 1px solid var(--border);
    margin-bottom: 16px; box-shadow: var(--shadow);
}
.btn-trash {
    position: absolute; top: 16px; right: 16px; border: none; background: none;
    color: #9ca3af; cursor: pointer; transition: 0.2s;
}
.btn-trash:hover { color: var(--danger); }

/* === 6. ПРОФИЛЬ (ПРОСМОТР) === */
.profile-layout { display: grid; grid-template-columns: 340px 1fr; gap: 32px; }

.card {
    background: white; border-radius: 20px; border: 1px solid var(--border);
    padding: 32px; box-shadow: var(--shadow); margin-bottom: 24px;
}

.big-avatar {
    width: 120px; height: 120px; background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: var(--primary); font-size: 2.5rem; font-weight: 800;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; border: 4px solid white; box-shadow: 0 0 0 1px var(--border);
}

.profile-name { font-size: 1.6rem; font-weight: 800; text-align: center; margin: 0; color: var(--text-main); }
.profile-role { color: var(--text-secondary); text-align: center; margin: 4px 0 16px; font-weight: 500; }
.profile-tag {
    background: var(--bg-input); padding: 6px 16px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; display: inline-block; color: var(--text-main);
}

.contact-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: var(--bg-body); border-radius: var(--radius); margin-bottom: 8px;
    font-size: 0.9rem; color: var(--text-main); font-weight: 500;
}
.contact-item i { width: 18px; color: var(--primary); }

/* === 7. СЕТКИ === */
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.section-head h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: var(--primary); text-transform: uppercase; }

/* --- 1. КРАСИВЫЕ НАВЫКИ (Бэйджи) --- */
.skill-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 6px 6px 0;
    border: 1px solid transparent;
    transition: transform 0.2s;
}
.skill-badge:hover { transform: translateY(-1px); }

.skill-tech { background: #eff6ff; color: #2563eb; border-color: #dbeafe; } /* Синий */
.skill-ped { background: #ecfdf5; color: #059669; border-color: #d1fae5; } /* Зеленый */
.skill-soft { background: #f5f3ff; color: #7c3aed; border-color: #ede9fe; } /* Фиолетовый */


/* --- 2. СТИЛИ ДЛЯ ДАШБОРДА (ЧТОБЫ НЕ ПЛЫЛ) --- */

/* Сетка KPI (3 карточки в ряд) */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* Карточка KPI */
.kpi-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.kpi-icon-box {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
/* Цвета иконок */
.icon-bg-blue { background: #e0f2fe; color: #0284c7; }
.icon-bg-green { background: #dcfce7; color: #16a34a; }
.icon-bg-yellow { background: #fef9c3; color: #ca8a04; }

.kpi-content h4 { margin: 0 0 4px 0; color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.kpi-content p { margin: 0; font-size: 1.75rem; font-weight: 800; color: var(--text-main); }


/* Основная сетка дашборда (График + Отзывы) */
.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 части график, 1 часть отзывы */
    gap: 24px;
}

/* Стили для отзывов в дашборде */
.review-mini-item {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.review-mini-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.review-mini-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
}
.review-student { font-weight: 700; font-size: 0.9rem; color: var(--text-main); }
.review-rating { 
    display: flex; align-items: center; gap: 4px; 
    color: #ca8a04; font-weight: 700; font-size: 0.9rem;
}
.review-quote { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; font-style: italic; }

/* Рекомендации */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.rec-card {
    background: white; padding: 20px; border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    box-shadow: var(--shadow);
}

/* app/static/css/style.css */

/* ... ваш предыдущий код ... */

/* === НОВЫЙ СТИЛЬ ДЛЯ ОБРАЗОВАНИЯ (EDU CARD) === */
.edu-card {
    display: flex;
    align-items: flex-start; /* Выравнивание по верху */
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.edu-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateX(4px); /* Легкий сдвиг вправо при наведении */
}

.edu-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Чтобы иконка не сжималась */
}

.edu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.edu-university {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
}

.edu-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.edu-year {
    align-self: flex-start;
    display: inline-block;
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

/* app/static/css/style.css */

/* ... ваш предыдущий код ... */

/* === ТАБЛИЦЫ (DATA TABLES) === */
.table-container {
    overflow-x: auto; /* Чтобы таблица скроллилась на мобильных */
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.modern-table thead {
    background-color: var(--bg-body);
    border-bottom: 1px solid var(--border);
}

.modern-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.modern-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.modern-table tbody tr:last-child {
    border-bottom: none;
}

.modern-table tbody tr:hover {
    background-color: var(--primary-light); /* Легкая подсветка при наведении */
}

.modern-table td {
    padding: 16px 20px;
    color: var(--text-main);
    vertical-align: middle;
}

/* Специфичные стили ячеек */
.td-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.table-name {
    font-weight: 600;
    color: var(--text-main);
    display: block;
    line-height: 1.3;
}

.table-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

.kpi-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: #eff6ff; /* Blue 50 */
    color: #2563eb;      /* Blue 600 */
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid #dbeafe;
}

/* Выравнивание цифр по центру */
.text-center { text-align: center; }
.text-right { text-align: right; }

/* === СТИЛИ ДЛЯ СТУДЕНТА === */

/* Дашборд студента */
.student-welcome-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}

.student-welcome-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.student-welcome-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }


/* Сетка преподавателей */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Адаптивная сетка */
    gap: 24px;
}

/* Карточка преподавателя */
.teacher-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teacher-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.teacher-avatar-large {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    border: 3px solid white;
    box-shadow: 0 0 0 1px var(--border);
}

.teacher-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.teacher-dept {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-input);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
    display: inline-block;
}

.teacher-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.stat-item { text-align: center; }
.stat-val { font-weight: 700; color: var(--text-main); font-size: 1.1rem; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }

.rating-stars { color: #ca8a04; display: flex; align-items: center; gap: 4px; }

/* Форма отзыва */
.review-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
/* === НОВЫЕ КРАСИВЫЕ КАРТОЧКИ ДЛЯ ПРОФИЛЯ (EDUCATION & EXPERIENCE) === */

/* Общий стиль элемента списка */
.profile-list-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px; /* Скругление побольше */
    margin-bottom: 16px;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.profile-list-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.1), 0 4px 6px -2px rgba(79, 70, 229, 0.05);
    transform: translateY(-2px);
}

/* Декоративная полоска слева при наведении (опционально, но красиво) */
.profile-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-list-item:hover::before {
    opacity: 1;
}

/* Иконка */
.item-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* Цвета для иконок */
.icon-edu { background: #e0e7ff; color: #4f46e5; } /* Индиго для образования */
.icon-exp { background: #dcfce7; color: #16a34a; } /* Зеленый для опыта */
.icon-cert { background: #fffbeb; color: #d97706; border: 1px solid #fcd34d; } /* Желтый для сертификатов */

/* Контент */
.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
}

.item-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-body);
    padding: 10px 14px;
    border-radius: 8px;
    line-height: 1.5;
    margin-top: 8px;
}

/* Бэйдж года/периода */
.item-badge {
    display: inline-flex;
    align-items: center;
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    align-self: flex-start;
    white-space: nowrap;
}

/* Сертификаты (Grid) */
.cert-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.cert-card-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    transition: transform 0.2s;
}

.cert-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* === ФИКС ДЛЯ МОДАЛЬНОГО ОКНА (СЕТКИ) === */

/* Сетка на 3 колонки (для ФИО, Сертификатов) */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Три равные колонки */
    gap: 16px; /* Отступ между ними */
    margin-bottom: 16px;
}

/* Сетка на 2 колонки (для Степени/Специальности) */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две равные колонки */
    gap: 16px;
    margin-bottom: 16px;
}

/* Сетка для основной секции ФИО */
/* Мы используем inline-style в HTML, но этот класс поможет если что */
.modal-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

/* Особый стиль для лейблов в модальном окне */
.modal-body .form-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}

/* Отступы для динамических карточек */
.dynamic-card {
    background: var(--bg-body);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    position: relative;
}

/* Кнопка удаления (Мусорка) - позиционирование */
.btn-trash {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-trash:hover {
    background: #fee2e2;
    color: var(--danger);
    border-color: #fca5a5;
}

/* Кнопка "+ Добавить" в заголовке секции */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}

/* === ЧИСТЫЙ CSS ДЛЯ ПРОФИЛЯ И ОТЗЫВОВ === */

/* Ваш запрос: Заголовок секции (например, Сертификаты) */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}

.section-header-row h4 {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Контактная информация в левой колонке */
.profile-contact-box {
    margin-top: 24px;
    text-align: left;
}

/* Кнопка на всю ширину (Оценить) */
.btn-full {
    width: 100%;
    margin-top: 24px;
    text-decoration: none;
    justify-content: center;
}

/* Стили для пустых состояний */
.empty-state-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

/* --- КАРТОЧКИ ОТЗЫВОВ --- */

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-count-badge {
    font-size: 0.9rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    padding: 20px;
    background: var(--bg-body);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.review-card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: center;
}

.review-user {
    display: flex;
    gap: 10px;
    align-items: center;
}

.review-avatar-placeholder {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    font-size: 0.8rem;
}

.review-username {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.review-score {
    color: #ca8a04;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fefce8;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.review-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    margin-top: 0;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

/* === КАТАЛОГ ПРЕПОДАВАТЕЛЕЙ === */

/* Сообщения (Alerts) */
.alert-box {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Сетка каталога */
.teachers-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Карточка преподавателя */
.teacher-profile-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.teacher-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-border);
}

/* Декоративный фон сверху карточки */
.card-bg-decoration {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 80px;
    background: linear-gradient(to bottom right, var(--bg-input), #ffffff);
    z-index: 0;
}

/* Аватар */
.teacher-card-avatar {
    width: 90px;
    height: 90px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 4px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    position: relative;
    z-index: 1; /* Чтобы быть поверх декоративного фона */
}

/* Информация */
.teacher-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
}

.teacher-card-dept {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-body);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: inline-block;
}

/* Статистика внутри карточки */
.teacher-card-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.t-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.t-stat-val {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.t-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Кнопки действий */
.teacher-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: auto; /* Прижимает кнопки к низу */
}

/* === ВЫПАДАЮЩЕЕ МЕНЮ ПРОФИЛЯ (HEADER) === */

.user-dropdown-container {
    position: relative;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.user-dropdown-container:hover {
    background-color: var(--bg-body);
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Само меню */
.dropdown-menu {
    position: absolute;
    top: 110%; /* Чуть ниже кнопки */
    right: 0;
    width: 220px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: none; /* Скрыто по умолчанию */
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

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

/* Класс для показа меню */
.dropdown-menu.show {
    display: flex;
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-body);
}
.dropdown-name { font-weight: 700; font-size: 0.9rem; color: var(--text-main); margin-bottom: 2px; }
.dropdown-email { font-size: 0.75rem; color: var(--text-secondary); }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: background 0.2s;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background-color: var(--bg-body);
    color: var(--primary);
}

.dropdown-item.danger {
    color: var(--danger);
    border-top: 1px solid var(--border);
}
.dropdown-item.danger:hover {
    background-color: #fef2f2;
}

/* === ЧИСТЫЙ ПРОФИЛЬ (CLEAN PROFILE) === */

/* Сетки и отступы */
.profile-grid-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.left-col {
    width: 280px;
    flex-shrink: 0;
}
.left-col-sticky {
    position: sticky;
    top: 24px;
    align-self: start;
}
.right-col {
    flex: 1;
    min-width: 0;
}

.section-spacer {
    margin-top: 24px;
}

.divider {
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* Левая колонка: Шапка профиля */
.profile-header-card {
    text-align: center;
}

.profile-info-block {
    text-align: left;
    margin-top: 24px;
}

/* Контакты */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-body);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.contact-row i {
    color: var(--primary);
    width: 18px;
    height: 18px;
}

/* Навыки */
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Правая колонка: Карточки контента */
.content-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.content-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* Образование (Edu Card) - Убедитесь, что этот класс есть */
.edu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Сертификаты (Grid) */
.cert-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cert-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.cert-item-clean {
    background: #fffbeb; /* Yellow 50 */
    border: 1px solid #fcd34d; /* Yellow 300 */
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: transform 0.2s;
}

.cert-item-clean:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cert-icon-box {
    background: rgba(255, 255, 255, 0.6);
    padding: 8px;
    border-radius: 8px;
    color: #d97706; /* Yellow 700 */
    flex-shrink: 0;
}

.cert-info-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.3;
    margin-bottom: 4px;
}

.cert-info-meta {
    font-size: 0.8rem;
    color: #b45309;
}

/* Кнопки в профиле */
.btn-edit-profile {
    width: 100%;
    margin-top: 24px;
}

/* Модальное окно: Форма */
.form-section {
    margin-bottom: 24px;
}

.form-section-header {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.markdown-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
}

.markdown-body h1, 
.markdown-body h2, 
.markdown-body h3 {
    font-weight: 800;
    color: #111827;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.markdown-body h1 { font-size: 1.5em; }
.markdown-body h2 { font-size: 1.25em; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.3em; }
.markdown-body h3 { font-size: 1.1em; }

.markdown-body p {
    margin-bottom: 1em;
}

.markdown-body ul, 
.markdown-body ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.markdown-body ul { list-style-type: disc; }
.markdown-body ol { list-style-type: decimal; }

.markdown-body li {
    margin-bottom: 0.3em;
    padding-left: 0.3em;
}

.markdown-body strong {
    font-weight: 700;
    color: #4f46e5; /* Цвет бренда (Indigo) для акцентов */
}

.markdown-body em {
    font-style: italic;
    color: #4b5563;
}

.markdown-body blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1em;
    color: #6b7280;
    margin-left: 0;
    font-style: italic;
}


/* === СТИЛИ ДЛЯ AI ОТЧЕТА ПРЕПОДАВАТЕЛЯ === */
.ai-report-card {
    border-left: 5px solid #8b5cf6; /* Фиолетовый акцент */
    background: linear-gradient(to right, #fdfcff, #ffffff);
}

.ai-report-header {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.ai-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-icon-box {
    background: #f3e8ff;
    color: #7c3aed;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #4c1d95;
}

.ai-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #8b5cf6;
    font-weight: 500;
}

.skill-level-text {
    margin-left: 8px;
    opacity: 0.8;
    padding: 1px 6px;
    background-color: rgba(255, 255, 255, 0.5); /* Легкий фон для цифры */
    border-radius: 4px;
}

/* 2. ИСПРАВЛЕНИЕ ИНПУТОВ В МОДАЛКЕ (чтобы было видно цифры) */
.custom-skill-group {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 8px;
}

/* Название навыка растягиваем */
.custom-skill-group input[type="text"] {
    flex: 1 !important; /* Занимает все место */
    width: auto !important; 
}

/* Поле процента делаем ШИРЕ */
.custom-skill-group input[type="number"] {
    width: 75px !important; /* Достаточно для "100" */
    text-align: center;
    flex-shrink: 0; /* Не сжиматься */
    padding: 8px 4px !important;
}

/* Кнопка удаления */
.custom-skill-group button {
    flex-shrink: 0;
    width: 24px;
}


/* === ЛЕНДИНГ ПЕЙДЖ (LANDING PAGE) === */

.landing-body {
    background-color: #0f172a; /* Темный фон как в презентации */
    color: white;
    overflow-y: auto; /* Разрешаем скролл */
    height: auto;
    font-family: 'Inter', sans-serif;
}

/* Навигация лендинга */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 50;
}

.landing-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Главный экран (Hero Section) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
    background: radial-gradient(circle at top right, #312e81 0%, #0f172a 40%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 10;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
    color: #e0e7ff;
}

.hero-title {
    font-size: 4rem; /* Крупный заголовок */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Кнопка действия (CTA) */
.btn-cta {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.7);
}

/* Декоративные волны */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0.3;
}

/* Секция преимуществ */
.features-section {
    padding: 80px 20px;
    background: #0f172a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.05); }

.feature-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: white;
}
.feature-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; color: white; }
.feature-desc { color: #94a3b8; font-size: 0.95rem; line-height: 1.5; }

/* Футер */
.landing-footer {
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
    background: #0b1120;
}


/* app/static/css/style.css */

/* ... ваш старый код ... */

/* ========================================= */
/* === СТИЛИ ТОЛЬКО ДЛЯ ЛЕНДИНГА (DARK) === */
/* ========================================= */

/* --- Логотип --- */
.lnd-logo-img {
    height: 40px; /* Настройте высоту под ваш лого */
    width: auto;
    object-fit: contain;
}

/* --- Специфичное Модальное окно (lnd-) --- */
.lnd-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Темнее чем в админке */
    backdrop-filter: blur(8px);      /* Сильное размытие */
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 1; transition: opacity 0.2s ease;
}

/* Скрываем через утилиту .hidden, которую мы уже создали ранее */

.lnd-modal-box {
    background: #1e293b; /* Slate 800 - Темно-синий фон */
    width: 100%; max-width: 420px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Заголовок модалки */
.lnd-modal-header {
    padding: 24px 32px 10px 32px;
    display: flex; justify-content: space-between; align-items: center;
}

.lnd-modal-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.lnd-btn-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; cursor: pointer; transition: 0.2s;
}
.lnd-btn-close:hover { background: rgba(255, 255, 255, 0.2); color: white; }

/* Тело модалки */
.lnd-modal-body {
    padding: 10px 32px 32px 32px;
}

/* --- Темные Инпуты для Лендинга --- */
.lnd-form-group { margin-bottom: 20px; }

.lnd-label {
    display: block;
    color: #94a3b8; /* Светло-серый */
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.lnd-input {
    width: 100%;
    background-color: #0f172a; /* Slate 900 (очень темный) */
    border: 1px solid #334155; /* Slate 700 */
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    color: white;
    outline: none;
    transition: 0.2s;
}

.lnd-input:focus {
    border-color: #6366f1; /* Indigo */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.lnd-input::placeholder { color: #475569; }

/* --- Кнопка действия (как CTA на лендинге) --- */
.lnd-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: transform 0.2s;
}

.lnd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.lnd-link {
    color: #818cf8; /* Indigo light */
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.lnd-link:hover { color: #a5b4fc; text-decoration: underline; }


/* app/static/css/style.css */

/* ... (ваш текущий код) ... */

/* =========================================
   СТИЛИ ДЛЯ ЛЕНДИНГА (LANDING PAGE)
   ========================================= */

/* Основной контейнер лендинга */
.landing-page-wrapper {
    background-color: #0f172a;
    color: white;
    font-family: 'Inter', sans-serif;
    
    /* Разрешаем скролл и убираем ограничение по высоте */
    min-height: 100vh;
    height: auto !important;
    overflow-y: auto !important; 
    overflow-x: hidden;
    
    display: flex;
    flex-direction: column;
}


/* --- Навигация --- */
.landing-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px; /* Было 24px, стало 10px. Логотип и так высокий */

    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 50;
}

.landing-logo-img {
    height: 40px;  
    width: auto;   /* Пропорции сохранятся */
    object-fit: contain;
    display: block; /* Убирает лишние отступы снизу */
}

/* Опционально: можно увеличить шрифт названия рядом с логотипом, если нужно */
.landing-brand {
    display: flex;
    align-items: center;
    gap: 16px;       /* Чуть больше отступ, так как лого стало больше */
    font-size: 1.8rem; /* Чуть крупнее текст */
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
    text-decoration: none;
}


.landing-login-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.landing-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* --- Главный экран (Hero) --- */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    overflow: hidden;
    /* Градиент фона */
    background: radial-gradient(circle at 80% 20%, #1e1b4b 0%, #0f172a 60%);
}

/* Декоративные пятна (Blobs) вместо style="..." */
.landing-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
}

.landing-glow-blue {
    top: 10%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: #4f46e5;
    opacity: 0.3;
}

.landing-glow-pink {
    bottom: 10%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: #db2777;
    opacity: 0.2;
}

/* SVG Волна */
.landing-wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #e0e7ff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-headline {
    font-size: 4rem; /* 64px */
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 24px 0;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 1.25rem;
    color: #94a3b8; /* Slate 400 */
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.hero-cta-btn {
    background: #4f46e5;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.6);
    background: #4338ca;
}

/* --- Секция Преимуществ --- */
.landing-features {
    padding: 100px 24px;
    background-color: #0f172a;
    position: relative;
    z-index: 5;
}

.features-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 60px 0;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 1.5rem; /* Размер иконки */
}

.feature-head {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: white;
}

.feature-body {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* --- Футер --- */
.landing-footer {
    background: #020617; /* Еще темнее */
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
}

.footer-copy {
    margin: 0 0 8px 0;
    font-weight: 500;
}
.footer-contacts {
    font-size: 0.85rem;
    margin: 0;
}

/* --- СПЕЦИАЛЬНОЕ МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ (AUTH MODAL) --- */
.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8); /* Более темный фон для контраста */
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none; /* Чтобы не мешал, когда скрыт */
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-card {
    background: white;
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    color: var(--text-main); /* Используем переменную из main.css для текста внутри */
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.auth-modal-overlay.open .auth-modal-card {
    transform: translateY(0);
}

.auth-header {
    padding: 32px 32px 0 32px;
    text-align: center;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #111827;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.auth-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.auth-close-btn:hover {
    color: #ef4444;
}

.auth-body {
    padding: 32px;
}

.auth-form-group {
    margin-bottom: 20px;
}
.auth-form-group:last-of-type {
    margin-bottom: 32px;
}

/* Переиспользуем .form-label и .form-input из main.css, но можно уточнить */
.auth-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    color: #111827;
    transition: all 0.2s;
}

.auth-input:focus {
    outline: none;
    background: white;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px #e0e7ff;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: #4f46e5;
    color: white;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-submit-btn:hover {
    background: #4338ca;
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 16px;
}

.auth-link {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}
.auth-link:hover {
    text-decoration: underline;
}


.form-error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 10px;
    background-color: var(--danger-bg);
    border-radius: 8px;
    border: 1px solid #fecaca;
    display: none; /* Скрыто по умолчанию */
    text-align: center;
}

.form-error-msg.visible {
    display: block;
}

/* --- ЦВЕТОВЫЕ УРОВНИ (БЕЙДЖИ) --- */
.badge-lvl {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    background: white !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    min-width: 100px;
    text-align: center;
    flex-shrink: 0;
}
.tag-basic { color: #1d4ed8; border: 1.5px solid #bfdbfe; }
.tag-med   { color: #d97706; border: 1.5px solid #fed7aa; }
.tag-adv   { color: #dc2626; border: 1.5px solid #fecaca; }

/* --- ФОНЫ СТРОК (КАТЕГОРИИ) --- */
.skill-row-technical { background-color: #eff6ff; border: 1px solid #dbeafe; color: #1e40af; }
.skill-row-pedagogical { background-color: #f0fdf4; border: 1px solid #dcfce7; color: #166534; }
.skill-row-soft { background-color: #faf5ff; border: 1px solid #f3e8ff; color: #6b21a8; }

/* --- ДИСЦИПЛИНЫ --- */
.disc-pill {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    margin: 0 6px 10px 0;
    background: white;
    color: #be185d;
    border: 1.5px solid #fbcfe8;
    box-shadow: 0 1px 2px rgba(190, 24, 93, 0.05);
}

/* --- ЭФФЕКТЫ ЛЕВИТАЦИИ И АНИМАЦИИ --- */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-title-hr {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1e293b;
}

.review-hidden {
    display: none;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.2s ease-out forwards; }

/* --- НОВЫЕ КЛАССЫ ВМЕСТО ИНЛАЙН СТИЛЕЙ --- */
.avatar-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    color: white;
}

.desc-text-wrapper {
    word-break: break-all; 
    white-space: pre-wrap; 
    max-width: 100%; 
    font-size: 0.85rem; 
    color: #475569; 
    margin-bottom: 16px; 
    font-style: italic; 
    line-height: 1.6;
}
/*NEW CODE