/* ===== СБРОС И БАЗА ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn--large {
    padding: 16px 32px;
    font-size: 17px;
}

/* ===== ШАПКА ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    font-size: 22px;
    font-weight: 700;
}

.logo__icon {
    font-size: 28px;
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 28px;
}

.nav__link {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--primary);
}

.header__actions {
    display: flex;
    gap: 12px;
}

/* ===== ПЕРВЫЙ ЭКРАН ===== */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    gap: 40px;
}

.stat__number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.stat__label {
    color: var(--gray);
    font-size: 14px;
}

.hero__placeholder {
    width: 100%;
    height: 400px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray);
    box-shadow: var(--shadow);
}

/* ===== СЕКЦИИ ===== */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 40px;
}

/* ===== НАПРАВЛЕНИЯ ===== */
.directions {
    padding: 80px 0;
}

.directions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.direction-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.direction-card__icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.direction-card__title {
    font-size: 24px;
    margin-bottom: 12px;
}

.direction-card__text {
    color: var(--gray);
    margin-bottom: 16px;
}

.direction-card__link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===== ПОЧЕМУ Я ===== */
.why {
    padding: 80px 0;
    background: var(--light);
}

.why__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.why__item {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.why__icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.why__item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.why__item p {
    color: var(--gray);
}

/* ===== ФОРМА ЗАПИСИ ===== */
.signup {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
}

.signup .section-title,
.signup .section-subtitle {
    color: var(--white);
}

.signup .section-subtitle {
    opacity: 0.85;
}

.signup-form {
    max-width: 700px;
    margin: 0 auto;
}

.signup-form__row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.input::placeholder {
    color: rgba(255,255,255,0.7);
}

.input:focus {
    border-color: var(--accent);
}

select.input option {
    color: var(--dark);
    background: var(--white);
}

.signup .btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
    width: 100%;
}

.signup .btn--primary:hover {
    background: #d97706;
    border-color: #d97706;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.footer__brand p {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
    margin-top: 8px;
}

.footer__links a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--white);
}

.footer__contacts p {
    margin-bottom: 8px;
}

.footer__bottom {
    border-top: 1px solid #334155;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: var(--gray);
}
/* ===== ПРОГРЕСС-БАР ===== */
.progress-bar {
    width: 100%;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0 12px;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 30px;
}

/* ===== ФИЛЬТРЫ ===== */
.filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== ТАБЛИЦА КУРСА ===== */
.course-data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.course-data-table thead {
    background: var(--primary);
    color: var(--white);
}

.course-data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

.course-data-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.course-row:hover {
    background: var(--light);
}

.course-row:last-child td {
    border-bottom: none;
}

/* ===== БЕЙДЖИ СТАТУСОВ ===== */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.status-изучено {
    background: #dcfce7;
    color: #166534;
}

.status-в-процессе {
    background: #fef3c7;
    color: #92400e;
}

.status-не-начато {
    background: #f1f5f9;
    color: #64748b;
}

/* ===== БЕЙДЖИ СЛОЖНОСТИ ===== */
.difficulty-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.difficulty-лёгкая {
    background: #dbeafe;
    color: #1e40af;
}

.difficulty-средняя {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-сложная {
    background: #fee2e2;
    color: #991b1b;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #991b1b;
    background: #fee2e2;
    border-radius: var(--radius);
}
/* ===== КРАСИВАЯ КНОПКА "НА ГЛАВНУЮ" ===== */
.breadcrumb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.breadcrumb-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.breadcrumb-btn__arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

.breadcrumb-btn:hover .breadcrumb-btn__arrow {
    transform: translateX(-3px);
}

/* ===== HERO КУРСА С ДЕКОРАЦИЯМИ ===== */
.course-hero {
    position: relative;
    padding: 80px 0 70px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f8fafc 100%);
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-decoration__symbol {
    position: absolute;
    font-size: 120px;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.05);
    font-family: 'Times New Roman', serif;
}

.hero-decoration__symbol:nth-child(1) { top: 10%; left: 5%; }
.hero-decoration__symbol:nth-child(2) { top: 60%; right: 8%; font-size: 100px; }
.hero-decoration__symbol:nth-child(3) { bottom: 10%; left: 15%; font-size: 80px; }
.hero-decoration__symbol:nth-child(4) { top: 20%; right: 20%; font-size: 90px; }

.course-hero__badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.course-hero__title {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
}

.course-hero__subtitle {
    font-size: 19px;
    color: var(--gray);
    margin-bottom: 36px;
    max-width: 700px;
    line-height: 1.6;
}

/* ===== УЛУЧШЕННЫЕ СЕКЦИИ ===== */
.course-section {
    padding: 90px 0;
}

.course-section .section-title {
    margin-bottom: 16px;
}

.course-section .section-subtitle {
    margin-bottom: 50px;
}

/* ===== ПРОГРЕСС-БАР (улучшенный) ===== */
.progress-bar {
    width: 100%;
    height: 28px;
    background: #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin: 30px 0 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    position: relative;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 50%, var(--accent) 100%);
    transition: width 1s ease;
    border-radius: 14px;
    position: relative;
}

.progress-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    border-radius: 14px 14px 0 0;
}

.progress-text {
    text-align: center;
    color: var(--dark);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 36px;
}

/* ===== ФИЛЬТРЫ (улучшенные) ===== */
.filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: var(--white);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    color: var(--gray);
}

.filter-btn:hover {
    background: var(--light);
    color: var(--dark);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===== ТАБЛИЦА (улучшенная) ===== */
.course-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.course-data-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
}

.course-data-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-data-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}

.course-row {
    transition: all 0.2s;
}

.course-row:hover {
    background: #f8fafc;
    transform: scale(1.005);
}

.course-row:last-child td {
    border-bottom: none;
}

/* ===== БЕЙДЖИ (улучшенные) ===== */
.status-badge,
.difficulty-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.status-изучено {
    background: #dcfce7;
    color: #166534;
}

.status-в-процессе {
    background: #fef3c7;
    color: #92400e;
}

.status-не-начато {
    background: #f1f5f9;
    color: #64748b;
}

.difficulty-лёгкая {
    background: #dbeafe;
    color: #1e40af;
}

.difficulty-средняя {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-сложная {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== СООБЩЕНИЕ ОБ ОШИБКЕ (улучшенное) ===== */
.error-message {
    text-align: center;
    padding: 50px 30px;
    color: #991b1b;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: var(--radius);
    border: 2px solid #fecaca;
    font-size: 16px;
    font-weight: 500;
}
/* ===== TIMELINE (НОВАЯ СТРУКТУРА) ===== */
.course-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.timeline-item__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.timeline-item__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.timeline-item__number {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.timeline-item__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}

.timeline-item__details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 36px;
}

.timeline-item__badge {
    background: #f1f5f9;
    color: var(--gray);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.timeline-item__badge--materials {
    background: #dbeafe;
    color: #1e40af;
}

.timeline-item__comment {
    width: 100%;
    background: #fef3c7;
    color: #92400e;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-style: italic;
}

/* ===== СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ РАЗНЫХ ТИПОВ ===== */

/* Блок */
.timeline-item--block {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary);
    border-width: 3px;
}

.timeline-item--block .timeline-item__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* Домашнее задание */
.timeline-item--homework {
    background: #fef3c7;
    border-color: #fbbf24;
    border-style: dashed;
}

.timeline-item--homework .timeline-item__number {
    background: #f59e0b;
}

/* Зачет */
.timeline-item--test {
    background: #dcfce7;
    border-color: #22c55e;
}

.timeline-item--test .timeline-item__number {
    background: #16a34a;
}

/* Опрос */
.timeline-item--quiz {
    background: #f3e8ff;
    border-color: #a855f7;
}

.timeline-item--quiz .timeline-item__number {
    background: #9333ea;
}

/* Симуляция (ОС) */
.timeline-item--simulation {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    border-width: 3px;
}

.timeline-item--simulation .timeline-item__number {
    background: #dc2626;
}

/* Дополнительный урок */
.timeline-item--extra {
    background: #f8fafc;
    border-color: #cbd5e1;
    border-style: dotted;
}

.timeline-item--extra .timeline-item__number {
    background: #64748b;
}

/* ===== ФИЛЬТРЫ (обновленные) ===== */
.filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: var(--white);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: 10px 18px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    color: var(--gray);
}

.filter-btn:hover {
    background: var(--light);
    color: var(--dark);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
/* ===== АКТИВНАЯ ССЫЛКА В НАВИГАЦИИ ===== */
.nav__link--active {
    color: var(--primary);
    font-weight: 700;
}

/* ===== HERO СТРАНИЦЫ "ОБО МНЕ" ===== */
.about-hero {
    padding: 80px 0 70px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.about-hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 30px;
}

.about-hero__badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.about-hero__title {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.about-hero__subtitle {
    font-size: 19px;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.7;
}

.about-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 500px;
}

.about-hero__stats .stat {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.about-hero__stats .stat__number {
    font-size: 36px;
    color: var(--primary);
}

/* ===== ФОТО С ДЕКОРАЦИЕЙ ===== */
.photo-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    border: 4px solid var(--white);
    position: relative;
    z-index: 2;
}

.photo-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 20px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.photo-decoration span {
    font-size: 60px;
    color: var(--primary);
    opacity: 0.2;
    font-weight: 800;
    font-family: 'Times New Roman', serif;
}

/* ===== СЕКЦИИ ===== */
.about-section {
    padding: 90px 0;
}

.about-section--light {
    background: var(--light);
}

/* ===== TIMELINE (ОПЫТ РАБОТЫ) ===== */
.timeline {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 3px;
}

.timeline__item {
    position: relative;
    margin-bottom: 40px;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -38px;
    top: 8px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline__content {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.timeline__content:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.timeline__year {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline__title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

.timeline__text {
    color: var(--gray);
    line-height: 1.6;
}

/* ===== МЕТОДИКА ===== */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.method-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-top: 4px solid transparent;
}

.method-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--primary);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

.method-card__icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.method-card__title {
    font-size: 20px;
    margin-bottom: 12px;
}

.method-card__text {
    color: var(--gray);
    line-height: 1.6;
}

/* ===== РЕЗУЛЬТАТЫ УЧЕНИКОВ ===== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.result-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.result-card--oge::before { background: #22c55e; }
.result-card--ege::before { background: var(--primary); }
.result-card--vpr::before { background: var(--accent); }

.result-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.result-card__icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.result-card__title {
    font-size: 22px;
    margin-bottom: 24px;
}

.result-card__stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
}

.result-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.result-stat__number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.result-card--oge .result-stat__number { color: #16a34a; }
.result-card--ege .result-stat__number { color: var(--primary); }
.result-card--vpr .result-stat__number { color: #d97706; }

.result-stat__label {
    color: var(--gray);
    font-size: 14px;
    text-align: right;
    max-width: 60%;
}

/* ===== ПОЧЕМУ ВЫБИРАЮТ МЕНЯ ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.why-card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.why-card__number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.15;
    font-family: 'Times New Roman', serif;
}

.why-card__title {
    font-size: 22px;
    margin-bottom: 12px;
    padding-right: 60px;
}

.why-card__text {
    color: var(--gray);
    line-height: 1.7;
}

/* ===== СЕРТИФИКАТЫ ===== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.certificate-card {
    aspect-ratio: 4/3;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid #e2e8f0;
}

.certificate-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.certificate-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--gray);
    font-weight: 600;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* ===== CTA КНОПКИ ===== */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn--cta {
    padding: 18px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.btn--cta--telegram {
    background: #0088cc;
    color: var(--white);
}

.btn--cta--telegram:hover {
    background: #006699;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4);
}

.btn--cta--whatsapp {
    background: #25d366;
    color: var(--white);
}

.btn--cta--whatsapp:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn--cta--phone {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn--cta--phone:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}
/* Если используешь <img> вместо заглушки */
.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* или 'contain' если нужно показать всё фото */
    border-radius: 20px;
    display: block;
}

/* Альтернативный вариант — ограничить размер */
.photo-placeholder,
.photo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
/* ===== СТАТИСТИКА КУРСА ===== */
.course-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.stat-card {
    background: var(--white);
    padding: 24px 16px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-top: 4px solid var(--primary);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.stat-card__number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

/* ===== ЗАГОЛОВОК БЛОКА ===== */
.block-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    padding: 24px 32px;
    border-radius: var(--radius);
    margin: 32px 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.block-header__icon {
    font-size: 32px;
}

.block-header__title {
    font-size: 22px;
    font-weight: 700;
    flex: 1;
}

.block-header__tasks {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* ===== TIMELINE (обновлённый) ===== */
.course-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.timeline-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.timeline-item__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.timeline-item__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.timeline-item__number {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.timeline-item__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}

.timeline-item__details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 36px;
}

.timeline-item__badge {
    background: #f1f5f9;
    color: var(--gray);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.timeline-item__badge--materials {
    background: #dbeafe;
    color: #1e40af;
}

.timeline-item__comment {
    width: 100%;
    background: #fef3c7;
    color: #92400e;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-style: italic;
}

/* ===== СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ РАЗНЫХ ТИПОВ ===== */

/* Домашнее задание */
.timeline-item--homework {
    background: #fef3c7;
    border-color: #fbbf24;
    border-style: dashed;
}

.timeline-item--homework .timeline-item__number {
    background: #f59e0b;
}

/* Зачет */
.timeline-item--test {
    background: #dcfce7;
    border-color: #22c55e;
}

.timeline-item--test .timeline-item__number {
    background: #16a34a;
}

/* Опрос */
.timeline-item--quiz {
    background: #f3e8ff;
    border-color: #a855f7;
}

.timeline-item--quiz .timeline-item__number {
    background: #9333ea;
}

/* Симуляция (ОС) */
.timeline-item--simulation {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    border-width: 3px;
}

.timeline-item--simulation .timeline-item__number {
    background: #dc2626;
}

/* Дополнительный урок */
.timeline-item--extra {
    background: #f8fafc;
    border-color: #cbd5e1;
    border-style: dotted;
}

.timeline-item--extra .timeline-item__number {
    background: #64748b;
}
/* ===== ЧТО ВХОДИТ В КУРС ===== */
.course-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 50px 0;
}

.feature-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

.feature-card__icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

/* ===== ДЕМО-БЛОК ===== */
.demo-block {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 40px;
    margin: 60px 0;
}

.demo-block__title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 12px;
    color: var(--primary);
}

.demo-block__subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 16px;
}

.demo-block__content {
    margin-bottom: 24px;
}

.demo-block__note {
    background: var(--white);
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gray);
    font-weight: 600;
    border: 2px dashed #cbd5e1;
}

.demo-block__note-icon {
    font-size: 20px;
}

/* ===== ОБЗОР БЛОКОВ ===== */
.blocks-overview {
    margin: 60px 0;
}

.blocks-overview__title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.block-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.block-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

.block-card__number {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.block-card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.block-card__tasks {
    font-size: 14px;
    color: var(--gray);
}

/* ===== CTA ВНУТРИ ПРОГРАММЫ ===== */
.program-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 60px;
}

.program-cta h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.program-cta p {
    font-size: 17px;
    margin-bottom: 28px;
    opacity: 0.9;
}

.program-cta .btn--primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.program-cta .btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}
/* ===== ДЕМО-БЛОК: TIMELINE ===== */
.timeline-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.timeline-demo__item {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.timeline-demo__item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.timeline-demo__item--block {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary);
    border-width: 3px;
    padding: 20px 24px;
}

.timeline-demo__item--block .timeline-demo__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.timeline-demo__item--homework {
    background: #fef3c7;
    border-color: #fbbf24;
    border-style: dashed;
}

.timeline-demo__item--test {
    background: #dcfce7;
    border-color: #22c55e;
    border-width: 3px;
}

.timeline-demo__item--extra {
    background: #f8fafc;
    border-color: #cbd5e1;
    border-style: dotted;
}

.timeline-demo__icon {
    font-size: 22px;
    flex-shrink: 0;
}

.timeline-demo__number {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.timeline-demo__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}

.timeline-demo__task {
    background: #f1f5f9;
    color: var(--gray);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-demo__comment {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-style: italic;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .timeline-demo__item {
        flex-wrap: wrap;
    }
    
    .timeline-demo__task,
    .timeline-demo__comment {
        width: 100%;
        margin-top: 8px;
    }
}
/* ===== АКТИВНАЯ ССЫЛКА В НАВИГАЦИИ ===== */
.nav__link--active {
    color: var(--primary);
    font-weight: 700;
}

/* ===== КНОПКА "НА ГЛАВНУЮ" ===== */
.breadcrumb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.breadcrumb-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-4px);
}

.breadcrumb-btn__arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

.breadcrumb-btn:hover .breadcrumb-btn__arrow {
    transform: translateX(-3px);
}

/* ===== HERO КУРСА ===== */
.course-hero {
    padding: 80px 0 70px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f8fafc 100%);
}

.course-hero__badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.course-hero__title {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
}

.course-hero__subtitle {
    font-size: 19px;
    color: var(--gray);
    margin-bottom: 36px;
    max-width: 700px;
    line-height: 1.6;
}

/* ===== СЕКЦИИ ===== */
.course-section {
    padding: 90px 0;
}

.course-section--light {
    background: var(--light);
}

/* ===== СТАТИСТИКА ===== */
.course-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.stat-card {
    background: var(--white);
    padding: 24px 16px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-top: 4px solid var(--primary);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card__number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

/* ===== ЧТО ВХОДИТ В КУРС ===== */
.course-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 50px 0;
}

.feature-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card__icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

/* ===== ДЕМО-БЛОК ===== */
.demo-block {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 40px;
    margin: 60px 0;
}

.demo-block__title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 12px;
    color: var(--primary);
}

.demo-block__subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 16px;
}

.demo-block__note {
    background: var(--white);
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gray);
    font-weight: 600;
    border: 2px dashed #cbd5e1;
    margin-top: 24px;
}

.demo-block__note-icon {
    font-size: 20px;
}

/* ===== TIMELINE ДЕМО ===== */
.timeline-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-demo__item {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.timeline-demo__item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.timeline-demo__item--block {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary);
    border-width: 3px;
    padding: 20px 24px;
}

.timeline-demo__item--block .timeline-demo__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.timeline-demo__item--homework {
    background: #fef3c7;
    border-color: #fbbf24;
    border-style: dashed;
}

.timeline-demo__item--test {
    background: #dcfce7;
    border-color: #22c55e;
    border-width: 3px;
}

.timeline-demo__item--extra {
    background: #f8fafc;
    border-color: #cbd5e1;
    border-style: dotted;
}

.timeline-demo__icon {
    font-size: 22px;
    flex-shrink: 0;
}

.timeline-demo__number {
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.timeline-demo__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}

.timeline-demo__task {
    background: #f1f5f9;
    color: var(--gray);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-demo__comment {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-style: italic;
}

/* ===== ОБЗОР БЛОКОВ ===== */
.blocks-overview {
    margin: 60px 0;
}

.blocks-overview__title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.block-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.block-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

.block-card__number {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.block-card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.block-card__tasks {
    font-size: 14px;
    color: var(--gray);
}

/* ===== CTA ВНУТРИ ПРОГРАММЫ ===== */
.program-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 60px;
}

.program-cta h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.program-cta p {
    font-size: 17px;
    margin-bottom: 28px;
    opacity: 0.9;
}

.program-cta .btn--primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.program-cta .btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .course-stats { grid-template-columns: repeat(3, 1fr); }
    .course-features { grid-template-columns: repeat(2, 1fr); }
    .blocks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .course-hero__title { font-size: 32px; }
    .course-stats { grid-template-columns: repeat(2, 1fr); }
    .course-features { grid-template-columns: 1fr; }
    .blocks-grid { grid-template-columns: 1fr; }
    .demo-block { padding: 24px; }
    .timeline-demo__item { flex-wrap: wrap; }
    .timeline-demo__task, .timeline-demo__comment { width: 100%; margin-top: 8px; }
}
/* ===== HERO СТРАНИЦЫ ЦЕН ===== */
.prices-hero {
    padding: 80px 0 70px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.prices-hero__badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.prices-hero__title {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
}

.prices-hero__subtitle {
    font-size: 19px;
    color: var(--gray);
    max-width: 700px;
    line-height: 1.6;
}

/* ===== СЕКЦИИ ===== */
.prices-section {
    padding: 90px 0;
}

.prices-section--light {
    background: var(--light);
}

/* ===== ФОРМАТЫ ЗАНЯТИЙ ===== */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.format-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.format-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}


.format-card--popular {
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.format-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.format-card__icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
}

.format-card--popular .format-card__icon {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
}

.format-card__title {
    font-size: 24px;
    margin-bottom: 12px;
}

.format-card__desc {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 15px;
}

.format-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.format-card__features li {
    padding: 10px 0 10px 28px;
    color: var(--dark);
    font-size: 15px;
    border-bottom: 1px dashed #e2e8f0;
    position: relative;
}

.format-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.format-card__features li:last-child {
    border-bottom: none;
}

/* ===== ТАРИФЫ ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.pricing-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.pricing-card--popular {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.2);
}

.pricing-card__ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent);
    color: var(--dark);
    padding: 6px 40px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pricing-card__header {
    margin-bottom: 24px;
}

.pricing-card__title {
    font-size: 26px;
    margin-bottom: 4px;
}

.pricing-card__subtitle {
    color: var(--gray);
    font-size: 14px;
}

.pricing-card__price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px dashed #e2e8f0;
}

.pricing-card__amount {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.pricing-card__period {
    font-size: 14px;
    color: var(--gray);
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.pricing-card__features li {
    padding: 12px 0 12px 28px;
    color: var(--dark);
    font-size: 15px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.pricing-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.pricing-card__features li:last-child {
    border-bottom: none;
}

/* ===== ОБЩИЙ CTA ПОСЛЕ ТАРИФОВ ===== */
.pricing-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
}

.pricing-cta__title {
    font-size: 28px;
    margin-bottom: 12px;
}

.pricing-cta__text {
    font-size: 17px;
    margin-bottom: 28px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-cta .btn--primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.pricing-cta .btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.faq-item__question {
    width: 100%;
    padding: 24px 28px;
    background: none;
    border: none;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.faq-item__question:hover {
    color: var(--primary);
}

.faq-item__toggle {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 50%;
    transition: all 0.3s;
}

.faq-item.active .faq-item__toggle {
    background: var(--primary);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-item__answer {
    max-height: 300px;
    padding: 0 28px 24px;
}

.faq-item__answer p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .prices-hero__title { font-size: 32px; }
    .formats-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-cta { padding: 40px 24px; }
    .pricing-cta__title { font-size: 24px; }
    .pricing-cta__text { font-size: 15px; }
}
/* ===== HERO БЛОГА ===== */
.blog-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f8fafc 100%);
}

.blog-hero__title {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 800px;
}

.blog-hero__subtitle {
    font-size: 19px;
    color: var(--gray);
    max-width: 700px;
    line-height: 1.6;
}

/* ===== СЕКЦИЯ БЛОГА ===== */
.blog-section {
    padding: 80px 0;
}

/* ===== ФИЛЬТРЫ (без фона) ===== */
.blog-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.blog-filter-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    color: var(--gray);
    font-family: inherit;
}

.blog-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.blog-filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===== СЕТКА СТАТЕЙ ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.blog-card__image {
    height: 200px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card__placeholder {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    opacity: 0.6;
}

.blog-card__content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__category {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    width: fit-content;
}

.blog-card__title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card__title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card__title a:hover {
    color: var(--primary);
}

.blog-card__excerpt {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* ===== СТРАНИЦА СТАТЬИ ===== */
.article-page {
    padding: 60px 0 100px;
}

.article-header {
    max-width: 800px;
    margin: 30px auto 40px;
    text-align: center;
}

.article-header__category {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.article-header__title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.article-header__meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--gray);
    font-size: 15px;
}

.article-image {
    max-width: 900px;
    margin: 0 auto 50px;
    height: 400px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image__placeholder {
    color: var(--primary);
    font-weight: 600;
    opacity: 0.6;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.article-content .lead {
    font-size: 19px;
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 32px;
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--dark);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content blockquote {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--dark);
}

.article-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 60px;
}

.article-cta h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.article-cta p {
    margin-bottom: 24px;
    opacity: 0.9;
    color: var(--white);
}

.article-cta .btn--primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.article-cta .btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-hero__title { font-size: 32px; }
    .blog-grid { grid-template-columns: 1fr; }
    .article-header__title { font-size: 30px; }
    .article-image { height: 250px; }
    .article-content { font-size: 16px; }
    .article-cta { padding: 30px 20px; }
}
/* ===== БЛОК СКАЧИВАНИЯ ФАЙЛА ===== */
.download-block {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 32px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.download-block__icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.download-block__content {
    flex: 1;
}

.download-block__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.download-block__text {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.download-block__btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-block__btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .download-block {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .download-block__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== СТРАНИЦА ВХОДА ===== */
.login-page {
    min-height: calc(100vh - 70px);
    padding: 60px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
}

.login-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.login-card__header {
    text-align: center;
    margin-bottom: 32px;
}

.login-card__logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-card__logo .logo__icon {
    color: var(--white);
    font-size: 32px;
}

.login-card__title {
    font-size: 28px;
    margin-bottom: 8px;
}

.login-card__subtitle {
    color: var(--gray);
    font-size: 15px;
}

/* Переключатель ролей */
.login-tabs {
    display: flex;
    background: var(--light);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 28px;
}

.login-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray);
    transition: all 0.3s;
    font-family: inherit;
}

.login-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Форма */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray);
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    color: var(--gray);
    font-size: 14px;
}

/* ===== DASHBOARD ===== */
.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: var(--light);
}

/* Боковая панель */
.sidebar {
    background: var(--white);
    border-right: 1px solid #e2e8f0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar__header {
    padding: 0 12px 24px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.sidebar__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--gray);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar__link:hover {
    background: var(--light);
    color: var(--dark);
}

.sidebar__link--active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

.sidebar__footer {
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Основной контент */
.dashboard-main {
    padding: 32px 40px;
    overflow-x: hidden;
}

/* Верхняя панель */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.topbar__title h1 {
    font-size: 28px;
    margin-bottom: 4px;
}

.topbar__title p {
    color: var(--gray);
    font-size: 15px;
}

.topbar__user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.avatar--teacher {
    background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
}

.avatar--small {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

.topbar__user-name {
    font-weight: 600;
    font-size: 14px;
}

.topbar__user-role {
    font-size: 13px;
    color: var(--gray);
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-box {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.stat-box__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-box__icon--blue { background: #eff6ff; color: var(--primary); }
.stat-box__icon--green { background: #dcfce7; color: #16a34a; }
.stat-box__icon--orange { background: #fef3c7; color: #d97706; }
.stat-box__icon--purple { background: #f3e8ff; color: #9333ea; }

.stat-box__number {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-box__label {
    font-size: 13px;
    color: var(--gray);
}

/* Сетка дашборда */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

/* Карточки */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card__title {
    font-size: 18px;
    font-weight: 700;
}

.card__subtitle {
    font-size: 13px;
    color: var(--gray);
}

/* Ближайшее занятие */
.next-lesson {
    display: flex;
    align-items: center;
    gap: 20px;
}

.next-lesson__date {
    text-align: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-radius: 12px;
    color: var(--white);
    flex-shrink: 0;
}

.next-lesson__day {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.next-lesson__month {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.9;
}

.next-lesson__info {
    flex: 1;
}

.next-lesson__time {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.next-lesson__topic {
    font-size: 15px;
    margin-bottom: 4px;
}

.next-lesson__meta {
    font-size: 13px;
    color: var(--gray);
}

/* Прогресс курса */
.progress-chart__bar {
    height: 12px;
    background: var(--light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-chart__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-chart__stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--gray);
}

.progress-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-stat__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.progress-stat__dot--done { background: var(--primary); }
.progress-stat__dot--current { background: var(--accent); }
.progress-stat__dot--pending { background: #cbd5e1; }

/* Домашние задания */
.homework-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.homework-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--light);
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.homework-item:hover {
    background: #f1f5f9;
}

.homework-item--urgent {
    border-left-color: #ef4444;
}

.homework-item--pending {
    border-left-color: var(--accent);
}

.homework-item--done {
    border-left-color: #22c55e;
}

.homework-item__status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.homework-item__status--pending { background: var(--accent); }
.homework-item__status--done { background: #22c55e; }

.homework-item__content {
    flex: 1;
}

.homework-item__title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.homework-item__meta {
    font-size: 13px;
    color: var(--gray);
}

/* Расписание */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.schedule-day {
    background: var(--light);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    min-height: 100px;
    position: relative;
}

.schedule-day--active {
    background: #eff6ff;
    border: 2px solid var(--primary);
}

.schedule-day__name {
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.schedule-day__date {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.schedule-lesson {
    background: var(--white);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11px;
}

.schedule-lesson__time {
    font-weight: 700;
    color: var(--primary);
}

.schedule-lesson__topic {
    color: var(--dark);
    margin-top: 2px;
}

/* Курсы (учитель) */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-stat__info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.course-stat__name {
    font-weight: 600;
}

.course-stat__count {
    color: var(--gray);
}

.course-stat__bar {
    height: 8px;
    background: var(--light);
    border-radius: 4px;
    overflow: hidden;
}

.course-stat__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%);
    border-radius: 4px;
}

/* Таблица учеников */
.students-table {
    display: flex;
    flex-direction: column;
}

.students-table__header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    background: var(--light);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.students-table__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1fr;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    font-size: 14px;
}

.students-table__row > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.mini-progress {
    width: 100%;
    height: 6px;
    background: var(--light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.mini-progress__fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

/* Бейджи */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge--live {
    background: #fee2e2;
    color: #dc2626;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.badge--success { background: #dcfce7; color: #166534; }
.badge--warning { background: #fef3c7; color: #92400e; }
.badge--danger { background: #fee2e2; color: #991b1b; }
.badge--blue { background: #eff6ff; color: var(--primary); }
.badge--purple { background: #f3e8ff; color: #7e22ce; }

.btn--small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .students-table__header,
    .students-table__row {
        grid-template-columns: 2fr 1fr 1.5fr 1fr;
    }
    .students-table__header > div:nth-child(4),
    .students-table__row > div:nth-child(4) {
        display: none;
    }
}

@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .dashboard-main {
        padding: 20px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .schedule-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .next-lesson {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .schedule-grid { grid-template-columns: repeat(2, 1fr); }
    .students-table__header,
    .students-table__row {
        grid-template-columns: 1fr 1fr;
        font-size: 12px;
    }
    .students-table__header > div:nth-child(3),
    .students-table__row > div:nth-child(3),
    .students-table__header > div:nth-child(4),
    .students-table__row > div:nth-child(4),
    .students-table__header > div:nth-child(5),
    .students-table__row > div:nth-child(5) {
        display: none;
    }
}
/* ===== КНОПКА НАВЕРХ ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ===== АНИМАЦИИ ПОЯВЛЕНИЯ ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .burger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 100;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .header__actions {
        display: none;
    }
}
/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal__content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal__header h3 {
    font-size: 22px;
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
}

.modal__close:hover {
    color: var(--dark);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s;
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}
/* Кнопка редактирования имени */
.edit-name-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 0;
    margin-left: 8px;
}

.edit-name-btn:hover {
    opacity: 1;
}

.topbar__user-name {
    display: inline-flex;
    align-items: center;
}
/* Кнопка удаления */
.btn--danger {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s;
}

.btn--danger:hover {
    background: #dc2626;
    color: var(--white);
}
/* Ссылка на вход в кабинете в форме записи */
.signup__login-link {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.signup__login-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.signup__login-link a:hover {
    transform: translateX(4px);
    text-decoration: underline;
}
/* ===== РЕДАКТОР КУРСА ===== */
.course-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-block-editor {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    border: 2px solid #e2e8f0;
}

.course-block-editor__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.course-block-editor__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-block-editor__number {
    background: var(--primary);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.course-block-editor__title h3 {
    margin: 0;
    font-size: 18px;
}

.course-block-editor__actions {
    display: flex;
    gap: 8px;
}

.course-block-editor__lessons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-editor {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.lesson-editor:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lesson-editor__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.lesson-editor__content {
    flex: 1;
}

.lesson-editor__title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.lesson-editor__desc {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 4px;
}

.lesson-editor__hw {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.lesson-editor__actions {
    display: flex;
    gap: 8px;
}

/* Текстовое поле */
textarea.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
    resize: vertical;
}

textarea.form-input:focus {
    border-color: var(--primary);
}
/* ===== КАБИНЕТ УЧЕНИКА - БЛОКИ КУРСА ===== */
.course-block {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
}

.course-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.course-block__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-block__number {
    background: var(--primary);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.course-block__title h3 {
    margin: 0;
    font-size: 18px;
}

.course-block__progress {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
}

.course-block__progress .mini-progress {
    flex: 1;
}

.course-block__lessons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-item {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.lesson-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lesson-item--completed {
    background: #f0fdf4;
    border-color: #22c55e;
}

.lesson-item__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.lesson-item__content {
    flex: 1;
}

.lesson-item__title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.lesson-item__desc {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 4px;
}

.lesson-item__hw {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.btn--success {
    background: #22c55e;
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s;
}

.btn--success:hover {
    background: #16a34a;
}
/* ===== ВКЛАДКИ ===== */
.tabs-container {
    margin-top: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== БЛОКИ КУРСА ===== */
.course-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-block {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    border: 2px solid #e2e8f0;
}

.course-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.course-block__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-block__number {
    background: var(--primary);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.course-block__title h3 {
    margin: 0;
    font-size: 18px;
}

.course-block__progress {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
}

.course-block__progress .mini-progress {
    flex: 1;
}

.course-block__lessons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-item {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.lesson-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lesson-item--completed {
    background: #f0fdf4;
    border-color: #22c55e;
}

.lesson-item__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.lesson-item__content {
    flex: 1;
}

.lesson-item__title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.lesson-item__desc {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 4px;
}

.lesson-item__hw {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* ===== ДЗ ===== */
.homework-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.homework-item {
    background: var(--light);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid transparent;
}

.homework-item--pending {
    border-left-color: var(--accent);
}

.homework-item--graded {
    border-left-color: #22c55e;
}

.homework-item__content {
    flex: 1;
}

.homework-item__title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.homework-item__desc {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 4px;
}

.homework-item__files {
    font-size: 13px;
    color: var(--primary);
    margin-top: 6px;
}

.homework-item__teacher {
    font-size: 13px;
    color: #16a34a;
    margin-top: 6px;
    padding: 8px;
    background: #f0fdf4;
    border-radius: 6px;
}

.homework-item__status {
    flex-shrink: 0;
}

.file-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    margin-top: 8px;
}

.file-download:hover {
    background: var(--primary-dark);
}
/* ===== МОДАЛКА ПРОГРЕССА ===== */
.progress-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-block {
    background: var(--light);
    padding: 16px;
    border-radius: 8px;
}

.progress-block h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: var(--dark);
}

.progress-lessons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.progress-lesson-item:hover {
    background: #f8fafc;
}

.progress-lesson-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.progress-lesson-item span {
    font-size: 14px;
    color: var(--dark);
}

.edit-name-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 0;
    margin-left: 8px;
}

.edit-name-btn:hover {
    opacity: 1;
}

.lesson-item__files {
    margin-top: 8px;
}

.file-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.file-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
/* ===== ДЗ С ОТМЕТКАМИ ===== */
.homework-item--graded {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.homework-item--needs-work {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.homework-item__teacher {
    margin-top: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.homework-item__meta {
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

/* Кнопка отправки ДЗ */
.submit-hw-btn {
    margin-top: 8px;
}

/* Счётчик ДЗ */
#homeworkCount {
    font-size: 14px;
    color: var(--gray);
}

/* ДЗ на доработку */
.homework-item--revision {
    border-left-color: #f59e0b;
    background: #fef3c7;
}

.badge--danger {
    background: #fee2e2;
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.btn--warning {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s;
}

.btn--warning:hover {
    background: #d97706;
}

/* Стили для ДЗ с оценками */
.homework-item--graded {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.homework-item--needs-work {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.homework-item--revision {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.homework-item__teacher {
    margin-top: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.badge--success {
    background: #dcfce7;
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge--danger {
    background: #fee2e2;
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Стили для ДЗ */
.homework-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.homework-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.homework-item--pending {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.homework-item--graded {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.homework-item--needs-work {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.homework-item--revision {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.homework-item__title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.homework-item__desc {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.homework-item__files {
    margin-top: 8px;
    font-size: 14px;
    color: #4b5563;
}

.homework-item__teacher {
    margin-top: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    font-size: 14px;
    color: #1f2937;
}

.homework-item__status {
    flex-shrink: 0;
}

/* Бейджи */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.badge--success {
    background: #dcfce7;
    color: #166534;
}

.badge--danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Кнопка отправки повторно */
.btn--warning {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.btn--warning:hover {
    background: #d97706;
}

/* Заголовок карточки ДЗ */
.homework-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.homework-item__title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.graded-date {
    font-size: 13px;
    color: #6b7280;
    font-weight: normal;
}

/* Оценка в заголовке */
.score-display {
    font-size: 20px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 8px;
    white-space: nowrap;
}

.score--good {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #22c55e;
}

.score--bad {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #f59e0b;
}

/* Улучшенные стили для карточки */
.homework-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.homework-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.homework-item--graded {
    border-left-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.homework-item--needs-work {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.homework-item--revision {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

/* ===== СЕКЦИЯ ОТЗЫВОВ ===== */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
    color: #1e293b;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #64748b;
    margin-bottom: 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    color: #1e293b;
    font-size: 16px;
}

.testimonial-author span {
    color: #64748b;
    font-size: 14px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */

/* Планшеты и большие телефоны */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .nav {
        gap: 16px;
    }
    
    .nav__link {
        font-size: 14px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    /* Шапка */
    .header__inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .nav__link {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .header__actions {
        margin-left: auto;
    }
    
    /* Секции */
    .hero {
        padding: 60px 0;
    }
    
    .hero__title {
        font-size: 32px;
    }
    
    .hero__subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    /* Карточки */
    .testimonial-card {
        padding: 24px;
    }
    
    /* Формы */
    .login-card {
        padding: 32px 24px;
    }
    
    .reset-card {
        padding: 32px 24px;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .header__inner {
        flex-direction: column;
        align-items: center;
    }
    
    .nav {
        order: 2;
    }
    
    .header__actions {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .hero__title {
        font-size: 28px;
    }
    
    .hero__subtitle {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

/* ===== АДАПТАЦИЯ КАБИНЕТОВ ===== */

/* Боковая панель на мобильных */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 4px 0 12px rgba(0,0,0,0.1);
    }
    
    .sidebar--open {
        left: 0;
    }
    
    .sidebar__nav {
        flex-direction: column;
    }
    
    .sidebar__link {
        padding: 16px 24px;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }
    
    /* Кнопка меню */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 999;
        background: white;
        border: none;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        cursor: pointer;
    }
    
    /* Оверлей */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .sidebar-overlay--active {
        display: block;
    }
    
    /* Таблицы */
    .students-table {
        overflow-x: auto;
    }
    
    .students-table__header,
    .students-table__row {
        min-width: 600px;
    }
    
    /* Карточки ДЗ */
    .homework-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .homework-item__status {
        align-self: flex-start;
    }
}

/* Скрываем кнопку меню на десктопе */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}

/* ===== КАЛЕНДАРЬ ===== */
.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
}

.calendar-day {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.calendar-day__header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-day__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
}

.calendar-day__lessons {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s;
}

.lesson-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lesson-card--blue {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.lesson-card--green {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.lesson-card--red {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.lesson-card__time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1e293b;
    min-width: 100px;
}

.lesson-card__duration {
    color: #64748b;
    font-size: 14px;
    min-width: 80px;
}

.lesson-card__desc {
    flex: 1;
    color: #475569;
    font-size: 14px;
}

.lesson-card__status {
    flex-shrink: 0;
}

.badge--blue {
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge--green {
    background: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge--red {
    background: #fee2e2;
    color: #991b1b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .lesson-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .lesson-card__time,
    .lesson-card__duration {
        min-width: auto;
    }
    
    .lesson-card__status {
        align-self: flex-end;
    }
}

/* Кнопки действий в карточке занятия */
.lesson-card__actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn--small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn--success {
    background: #22c55e;
    color: white;
}

.btn--success:hover {
    background: #16a34a;
}

.btn--danger {
    background: #ef4444;
    color: white;
}

.btn--danger:hover {
    background: #dc2626;
}

.lesson-card__student {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal__content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal__header h3 {
    margin: 0;
    font-size: 24px;
}

.modal__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal__close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Кнопка в topbar */
.topbar__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.topbar__actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .topbar__actions {
        order: 2;
        width: 100%;
        justify-content: center;
        margin: 12px 0;
    }
}

/* Десктоп */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.dashboard-main {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    background: #f8fafc;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        left: -100%;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.sidebar--open {
        left: 0;
    }
    
    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }
}

/* Форма в модальном окне */
.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

select.form-input {
    cursor: pointer;
    appearance: auto;
}

optgroup {
    font-weight: 600;
    color: #1e293b;
}

option {
    padding: 8px;
}

/* Карточка занятия - имя ученика */
.lesson-card__student {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lesson-card__topic {
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* ===== СТРАНИЦА КУРСОВ ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.course-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.course-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.course-card__header h3 {
    margin: 0;
    font-size: 20px;
    color: #1e293b;
}

.course-card__description {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.course-card__meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #64748b;
}

.course-card__actions {
    display: flex;
    gap: 8px;
}

/* ===== РЕДАКТОР КУРСА ===== */
.course-creator {
    max-width: 1000px;
}

.course-block {
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.course-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.course-block__title {
    flex: 1;
    margin-right: 16px;
}

.block-title-input {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.block-title-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.course-block__actions {
    display: flex;
    gap: 8px;
}

.course-block__lessons {
    padding: 16px 20px;
}

.course-lesson {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.course-lesson__content {
    flex: 1;
}

.lesson-title-input {
    margin-bottom: 8px;
    font-weight: 600;
}

.lesson-desc-input {
    font-size: 14px;
}

/* Кнопки */
.btn--secondary {
    background: #64748b;
    color: white;
    border: none;
}

.btn--secondary:hover {
    background: #475569;
}

/* Бейджи */
.badge--green {
    background: #dcfce7;
    color: #166534;
}

.badge--orange {
    background: #ffedd5;
    color: #9a3412;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-block__header {
        flex-direction: column;
        gap: 12px;
    }
    
    .course-block__actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .course-lesson {
        flex-direction: column;
    }
}

/* Кнопки действий урока */
.course-lesson__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.save-lesson-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.save-lesson-btn:hover {
    background: #16a34a;
    transform: scale(1.05);
}

.delete-lesson-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.delete-lesson-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Анимация сохранения */
.course-lesson {
    transition: background 0.3s;
}

/* Фокус на полях */
.lesson-title-input:focus,
.lesson-desc-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Нумерация уроков */
.course-lesson__number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

/* Кнопка удаления */
.delete-lesson-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delete-lesson-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Секция домашнего задания */
.lesson-homework-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.lesson-homework-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.lesson-homework-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Просмотр курса */
.course-block-view {
    background: white;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.course-block-view__header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
}

.course-block-view__header h2 {
    margin: 0;
    font-size: 20px;
}

.course-block-view__lessons {
    padding: 20px 24px;
}

.lesson-view {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
}

.lesson-view__number {
    width: 36px;
    height: 36px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.lesson-view__content {
    flex: 1;
}

.lesson-view__content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1e293b;
}

.lesson-view__content p {
    margin: 0 0 12px 0;
    color: #64748b;
    line-height: 1.6;
}

.lesson-view__homework {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
}

.lesson-view__homework strong {
    color: #92400e;
    display: block;
    margin-bottom: 8px;
}

.lesson-view__homework p {
    color: #78350f;
    margin: 0 0 8px 0;
}

/* Адаптация */
@media (max-width: 768px) {
    .course-lesson {
        flex-wrap: wrap;
    }
    
    .course-lesson__number {
        margin-bottom: 12px;
    }
    
    .course-lesson__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Колокольчик уведомлений */
.topbar__notifications {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.notification-bell {
    position: relative;
    color: #64748b;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 50%;
}

.notification-bell:hover {
    color: #667eea;
    background: #f1f5f9;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

/* Бейдж уведомлений в sidebar */
.sidebar__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-badge {
    position: relative;
    top: auto;
    right: auto;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

/* ===== СТИЛИ КАЛЕНДАРЯ ===== */
.fc {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fc-header-toolbar {
    margin-bottom: 20px !important;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.fc-toolbar-title {
    font-size: 1.5em !important;
    color: white !important;
    font-weight: 700 !important;
}

.fc-button-primary {
    background: rgba(255,255,255,0.95) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    color: #667eea !important;
    font-weight: 600 !important;
}

.fc-button-primary:hover {
    background: white !important;
}

.fc-col-header-cell {
    background: #f8fafc !important;
    border: none !important;
    padding: 12px 0 !important;
}

.fc-col-header-cell-cushion {
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
}

.fc-daygrid-day {
    background: white !important;
    border: 1px solid #f1f5f9 !important;
}

.fc-daygrid-day-number {
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 6px !important;
}

.fc-event {
    border-radius: 8px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

.fc-event-title {
    font-weight: 600 !important;
}

/* ===== СТИЛИ ЧАТА ===== */
.chat-container {
    display: flex;
    height: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.chat-list {
    width: 320px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.chat-list__header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chat-list__header h2 {
    margin: 0;
    font-size: 18px;
}

.chat-list__items {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-item:hover {
    background: #f1f5f9;
}

.chat-item--active {
    background: #e0e7ff;
    border-left: 4px solid #667eea;
}

.chat-item__avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-item__info {
    flex: 1;
    min-width: 0;
}

.chat-item__name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    font-size: 14px;
}

.chat-item__last-message {
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-window--hidden {
    display: none;
}

.chat-window__header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
}

.chat-window__header-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.chat-window__header-info h3 {
    margin: 0;
    font-size: 15px;
    color: #1e293b;
}

.chat-window__header-info p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.chat-window__messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.chat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 16px;
}

.chat-window__input {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    background: white;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: #667eea;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.interactive-graph {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
    border: 2px solid #e0f2fe;
    max-width: 420px;
}

.graph-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f9ff;
}

.graph-icon {
    font-size: 28px;
}

.graph-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
}

.graph-canvas-container {
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

#mathGraph {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.graph-coords {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    gap: 12px;
}

.graph-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.graph-btn {
    padding: 10px;
    background: #f0f9ff;
    border: 2px solid #e0f2fe;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
}

.graph-btn:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.graph-btn.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-color: #2563eb;
}

.graph-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 2px solid #f0f9ff;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .interactive-graph {
        padding: 20px;
    }
    
    .graph-controls {
        grid-template-columns: repeat(2, 1fr);
    }
}

.interactive-graph {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
    border: 2px solid #e0f2fe;
    max-width: 420px;
}

.graph-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f9ff;
}

.graph-icon {
    font-size: 24px;
}

.graph-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
}

.graph-canvas-container {
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

#mathGraph {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.graph-coords {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
}

.graph-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.graph-btn {
    padding: 8px;
    background: #f0f9ff;
    border: 2px solid #e0f2fe;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
}

.graph-btn:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.graph-btn.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-color: #2563eb;
}

.graph-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 2px solid #f0f9ff;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}