/* ===== ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ ===== */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #667eea;
    --secondary-dark: #764ba2;
    --accent-color: #ff6b6b;
    --accent-dark: #ff5252;
    --success-color: #28a745;
    --success-dark: #218838;
    --gray-light: #f8f9fa;
    --gray-medium: #e0e0e0;
    --gray-dark: #333;
    --text-color: #333;
    --text-secondary: #666;
    --border-color: #ddd;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--gray-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Утилитарные классы */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* ===== КОМПОНЕНТЫ НАВИГАЦИИ ===== */
.navbar {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav-menu a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 500;
        position: relative;
        transition: color 0.3s ease;
    }

        .nav-menu a:not(.login-btn)::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary-color);
            transition: width 0.3s ease;
        }

        .nav-menu a:hover {
            color: var(--primary-color);
        }

        .nav-menu a:not(.login-btn):hover::after {
            width: 100%;
        }

    .nav-menu li:has(.login-btn) {
        margin-left: 2rem;
    }

.login-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
}

    .login-btn:hover {
        background-color: var(--primary-dark);
    }

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    background-color: var(--gray-light);
    max-height: 200px;
    padding: 1rem 0;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

    .breadcrumb-container a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .breadcrumb-container a:hover {
            text-decoration: underline;
        }

    .breadcrumb-container span {
        color: var(--text-secondary);
    }

/* ===== ФОРМЫ ===== */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

    .form-container h1 {
        text-align: center;
        font-size: 25px;
        margin-bottom: 1.5rem;
        color: var(--text-color);
    }

    .form-container .hint {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-top: 0.25rem;
        font-style: italic;
    }

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-sm);
        font-size: 1rem;
        transition: var(--transition);
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

/* Состояния полей формы */
input.error,
textarea.error,
select.error {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
}

input.valid,
textarea.valid,
select.valid {
    border-color: var(--success-color) !important;
    background-color: #f8fff8;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
    display: none;
}

    .error-message.show {
        display: block;
        animation: fadeIn 0.3s;
    }

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .form-checkbox input[type="checkbox"] {
        margin: 0;
        transform: scale(1.1);
    }

    .form-checkbox label {
        margin-bottom: 0;
        cursor: pointer;
        font-weight: normal;
    }

/* Группы чекбоксов */
.checkbox-group,
.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

    .checkbox-group input,
    .radio-group input {
        margin-right: 0.75rem;
        transform: scale(1.1);
    }

    .checkbox-group label,
    .radio-group label {
        margin-bottom: 0;
        cursor: pointer;
        font-weight: normal;
    }

/* Кнопки форм */
.submit-btn,
.filter-btn,
.cta-button,
.start-course-btn {
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn,
.filter-btn {
    width: 100%;
    background-color: var(--primary-color);
}

    .submit-btn:hover,
    .filter-btn:hover {
        background-color: var(--primary-dark);
    }

.cta-button {
    background-color: var(--accent-color);
}

    .cta-button:hover {
        background-color: var(--accent-dark);
    }

.start-course-btn {
    width: 100%;
    background-color: var(--success-color);
    margin-bottom: 1.5rem;
}

    .start-course-btn:hover {
        background-color: var(--success-dark);
    }

.reset-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    cursor: pointer;
    flex: 1;
    transition: var(--transition);
}

    .reset-btn:hover {
        background-color: #5a6268;
    }

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    display: none;
}

    .form-status.success {
        display: block;
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .form-status.error {
        display: block;
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

.form-response {
    text-align: center;
}

/* ===== КАРТОЧКИ ===== */
.subject-card,
.review-card-home,
.course-card,
.teacher-card-small {
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

    .subject-card:hover,
    .review-card-home:hover,
    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

/* Карточки предметов */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 4rem 0;
}

.subject-card {
    padding: 1.5rem;
    text-align: center;
}

    .subject-card img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 50%;
        margin-bottom: 1rem;
    }

    .subject-card h3 {
        font-size: 1.1rem;
        color: var(--text-color);
    }

/* Карточки отзывов */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.review-card-home {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

    .review-content p {
        font-style: italic;
        line-height: 1.6;
        color: #555;
    }

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Карточки курсов */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.course-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 700px;
    position: relative;
}

    .course-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.course-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card h2 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.course-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.course-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

    .course-info span {
        background-color: #f0f0f0;
        padding: 0.25rem 0.75rem;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 500;
    }

    .course-info .subject {
        background-color: #e3f2fd;
        color: #1976d2;
    }

    .course-info .grade {
        background-color: #f3e5f5;
        color: #7b1fa2;
    }

    .course-info .type {
        background-color: #e8f5e8;
        color: #388e3c;
    }

    .course-info .level {
        background-color: #fff3e0;
        color: #f57c00;
    }

.course-link {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 500;
    margin-top: auto;
}

    .course-link:hover {
        background-color: var(--primary-dark);
    }

/* Карточки преподавателей */
.teacher-card-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

    .teacher-card-small img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 50%;
    }

.teacher-info-small h4 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.teacher-info-small p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.teacher-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

    .teacher-card img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: var(--border-radius-md);
    }

.teacher-info h3 {
    margin-bottom: 0.5rem;
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
}

.hero-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 5rem;
}

.hero-banner {
    flex: 1;
}

    .hero-banner img {
        width: 100%;
        border-radius: var(--border-radius-md);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

.hero-content {
    flex: 1;
}

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

.subjects h2,
.reviews h2 {
    text-align: center;
    margin: 2rem 0;
    font-size: 2rem;
    color: var(--text-color);
}

.reviews {
    padding: 2rem 0;
    background-color: var(--gray-light);
}

/* ===== СТРАНИЦА КАТАЛОГА ===== */
.catalog-header {
    padding: 2rem 0;
    text-align: center;
    background-color: white;
}

    .catalog-header h1 {
        font-size: 2.5rem;
        color: var(--text-color);
    }

.catalog-content {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    align-items: flex-start;
    min-height: 600px;
}

.filters {
    flex: 0 0 300px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    align-self: flex-start;
}

    .filters p {
        font-weight: bold;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .filters h3 {
        margin-bottom: 1.5rem;
        color: var(--text-color);
    }

    .filters::-webkit-scrollbar {
        width: 6px;
    }

    .filters::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .filters::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

        .filters::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }

.filter-group {
    margin-bottom: 1.5rem;
}

    .filter-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .filter-group input[type="text"],
    .filter-group select {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-sm);
        font-size: 1rem;
    }

.filter-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--gray-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

    .filter-section p {
        font-size: 15px;
        margin-bottom: 0.75rem;
        color: var(--text-color);
        font-weight: 600;
    }

.courses-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-content: start;
    min-height: 500px;
}

    .courses-grid .no-results-message {
        grid-column: 1 / -1;
        background: #f8f9fa;
        border-radius: 10px;
        padding: 3rem;
        text-align: center;
        color: #666;
        font-size: 1.1rem;
        border: 2px dashed #dee2e6;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

/* ===== СТРАНИЦА КУРСА ===== */
.course-detail {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.course-main {
    flex: 1;
}

    .course-main h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        color: var(--text-color);
    }

.course-banner {
    margin-bottom: 2rem;
}

    .course-banner img {
        width: 100%;
        border-radius: var(--border-radius-md);
    }

.course-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

    .tab-btn.active {
        border-bottom-color: var(--primary-color);
        color: var(--primary-color);
        font-weight: 500;
    }

    .tab-btn:hover {
        background-color: var(--gray-light);
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

    .tab-content h2 {
        margin-bottom: 1rem;
        color: var(--text-color);
    }

    .tab-content h3 {
        margin: 1.5rem 0 1rem;
        color: var(--text-color);
    }

    .tab-content p {
        margin-bottom: 1rem;
    }

    .tab-content ul,
    .tab-content ol {
        margin-bottom: 1.5rem;
        padding-left: 1.5rem;
    }

    .tab-content li {
        margin-bottom: 0.5rem;
    }

.course-sidebar {
    flex: 0 0 300px;
}

.course-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

    .course-info-card h3 {
        margin-bottom: 1rem;
        color: var(--text-color);
    }

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

    .info-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.label {
    font-weight: 500;
}

/* ===== ТАБЛИЦЫ ===== */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--gray-light);
    font-weight: 600;
}

tr:hover {
    background-color: var(--gray-light);
}

/* ===== БИБЛИОТЕКА ЗНАНИЙ ===== */
.knowledge-library,
.webinar-schedule {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

    .knowledge-library h1,
    .webinar-schedule h1 {
        text-align: center;
        margin-bottom: 2rem;
        color: var(--text-color);
    }

.library-section,
.webinar-section {
    margin-bottom: 3rem;
}

    .library-section h2,
    .webinar-section h2 {
        margin-bottom: 1.5rem;
        color: var(--text-color);
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 0.5rem;
    }

    .library-section ul,
    .library-section ol {
        font-style: italic;
    }

/* ===== СИСТЕМА ПОИСКА НАСТАВНИКОВ ===== */
#mentor-match-widget {
    transition: opacity 0.3s, transform 0.3s;
}

    #mentor-match-widget[style*="display: flex"] {
        animation: widgetSlideIn 0.3s ease-out;
    }

#mentor-price {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
}

    #mentor-price::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--secondary-color);
        cursor: pointer;
        border: 2px solid white;
        box-shadow: var(--shadow-sm);
    }

    #mentor-price::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--secondary-color);
        cursor: pointer;
        border: 2px solid white;
        box-shadow: var(--shadow-sm);
    }

.find-mentor-btn {
    position: relative;
    overflow: hidden;
}

    .find-mentor-btn::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
        transform: rotate(30deg);
        transition: transform 0.5s;
    }

    .find-mentor-btn:hover::after {
        transform: rotate(30deg) translate(20%, 20%);
    }

.mentor-card {
    position: relative;
}

    .mentor-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--secondary-color);
        border-radius: 4px 0 0 4px;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .mentor-card:hover::before {
        opacity: 1;
    }

/* ===== ФУТЕР ===== */
footer {
    background-color: var(--gray-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

    .footer-links a {
        color: #ccc;
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: white;
        }

.social-links {
    display: flex;
    gap: 1rem;
}

    .social-links a {
        color: #ccc;
        text-decoration: none;
    }

        .social-links a:hover {
            color: white;
        }

.footer-container p {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes widgetSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== МЕДИА-ЗАПРОСЫ ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .subjects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-container {
        flex-direction: column;
    }

    .catalog-content {
        flex-direction: column;
    }

    .filters {
        position: static;
        width: 100% !important;
        max-height: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-detail {
        flex-direction: column;
    }

    .course-sidebar {
        flex: none;
    }

    .teacher-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .course-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    #mentor-match-widget {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 100px;
    }

    #mentor-match-btn {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .course-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .form-container {
        padding: 1rem;
        margin: 1rem;
    }

    .breadcrumb-container {
        font-size: 0.9rem;
    }

    .catalog-content,
    .course-detail,
    .knowledge-library,
    .webinar-schedule {
        padding: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .hero-container,
    .catalog-content,
    .course-detail {
        padding: 0 1rem;
    }
}

/* Стили для кнопок закладок */
.bookmark-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.bookmark-btn:hover {
    transform: scale(1.1);
    background: #ffc107 !important;
    color: #333 !important;
}

#bookmarks-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bookmarks-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

#bookmarks-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

#bookmarks-panel {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

/* Стили для модального окна быстрого просмотра */
#quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#quick-view-modal > div {
    background-color: white;
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.quick-view-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 10px;
    width: 100%;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

    .quick-view-btn:hover {
        background-color: #5a6268;
    }

/* Анимации */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стили для валидации */
.field-validation-error {
    color: #dc3545 !important; /* Красный цвет */
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.input-validation-error {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.input-validation-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.validation-summary-errors {
    color: #dc3545;
    background-color: #fff8f8;
    border: 1px solid #dc3545;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

/* Заголовки секций (теперь это параграфы) */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-color);
}

/* Для фильтров */
.filters-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

.filter-section-title {
    font-size: 15px;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

/* Для контактов */
.contacts-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contacts-subsection-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

/* Для вкладок курса */
.tab-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tab-subsection-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
}

/* Для сайдбара */
.sidebar-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Для библиотеки */
.library-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Для названий предметов */
.subject-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
    text-align: center;
}

/* Для имен преподавателей */
.teacher-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.teacher-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.teacher-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Для маленьких карточек преподавателей */
.teacher-small-name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.teacher-small-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Для авторов отзывов */
.author-name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.author-course {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}