.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хлебные крошки */
.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #FFD602;
}

.breadcrumbs span {
    color: #333;
    font-weight: 600;
}

/* Герой курса */
.course-hero {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.course-hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.course-category-badge {
    background: #2d3748;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.course-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.2;
}

.course-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-author {
    font-size: 16px;
}

.author-label {
    color: #666;
}

.author-name {
    font-weight: 600;
    color: #2d3748;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.what-learn, .why-buy, .target-audience, .course-skills, .requirements, .review-section {
    margin-top: 53px;
}

.stars {
    display: flex;
    gap: 2px;
    font-size: 27px;
}

.star {
    color: #e2e8f0;
}

.star.filled {
    color: #FFD602;
}

.rating-value {
    font-weight: 600;
    color: #2d3748;
}

.reviews-count {
    color: #666;
    font-size: 14px;
}

.course-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat {
    color: #666;
    font-size: 14px;
}

.stat.free {
    color: #48bb78;
}

.author-info {
    margin-top: 50px;
}

/* Прогресс курса */
.course-progress-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.progress-text {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: #48bb78;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Видеоплеер */
.course-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 0 73px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.player-header {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
}

.lesson-controls {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #FFD602;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.player-controls {
    background: #2d3748;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-nav-btn {
    background: #FFD602;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-nav-btn:hover {
    background: #e6c200;
    transform: translateY(-1px);
}

.lesson-nav-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lesson-duration {
    color: white;
    font-size: 14px;
}

.chapters-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chapters-btn:hover {
    border-color: #FFD602;
    color: #FFD602;
}

/* Содержание урока */
.lesson-chapters {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.lesson-chapters h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.chapters-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.chapter-item:hover {
    background: #FFD602;
    border-color: #FFD602;
}

.chapter-time {
    background: #2d3748;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

.chapter-title {
    flex: 1;
    font-size: 14px;
    color: #4a5568;
}

.chapter-item:hover .chapter-title {
    color: #000;
}

/* Сайдбар */
.course-sidebar {
    top: 20px;
}

.course-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.course-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.play-button:hover {
    background: rgba(0,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

.play-button span {
    font-size: 20px;
    margin-right: 5px;
}

.play-button small {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.course-purchase {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    margin-bottom: 25px;
}

.price-block {
    margin-bottom: 20px;
    text-align: center;
}

.price-free {
    background: #48bb78;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 16px;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: #e53e3e;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.access-granted {
    text-align: center;
    padding: 15px;
    background: #48bb78;
    border-radius: 8px;
    margin-bottom: 10px;
}

.access-message {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.btn-primary, .btn-secondary {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: block;
}

.btn-primary {
    background: #FFD602;
    color: #000;
}

.btn-primary:hover {
    background: #2d3748;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #2d3748;
    border: 2px solid #2d3748;
}

.btn-secondary:hover {
    background: #2d3748;
    color: white;
}

.course-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-features li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #666;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.course-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

.course-features li:last-child {
    border-bottom: none;
}

/* Список уроков в сайдбаре */
.lessons-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.lessons-sidebar h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.7rem;
    font-weight: 600;
}

.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lesson-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    border-color: #FFD602;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lesson-item.active {
    border-color: #FFD602;
    background: #fffbf0;
    box-shadow: 0 2px 8px rgba(255,214,2,0.2);
}

.lesson-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.lesson-item.locked:hover {
    border-color: #e9ecef;
    box-shadow: none;
}

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

.lesson-number {
    background: #2d3748;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.lesson-item.active .lesson-number {
    background: #FFD602;
    color: #000;
}

.lesson-info {
    flex: 1;
    min-width: 0;
}

.lesson-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-duration {
    font-size: 12px;
    color: #666;
}

.lesson-status {
    flex-shrink: 0;
}

.completed-icon {
    color: #48bb78;
    font-size: 16px;
    font-weight: bold;
}

.lock-icon {
    color: #999;
    font-size: 14px;
}

.free-badge {
    background: #48bb78;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.play-icon {
    color: #FFD602;
    font-size: 14px;
}

.lesson-progress {
    margin-top: 8px;
}

.lesson-progress .progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.lesson-progress .progress-fill {
    height: 100%;
    background: #48bb78;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Навигация */
.course-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.course-tabs {
    display: flex;
    gap: 0;
}

.tab-link {
    padding: 20px 25px;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-link:hover,
.tab-link.active {
    color: #2d3748;
    border-bottom-color: #FFD602;
}

/* Контент */
.course-content {
    padding: 40px 0;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 30px 0 15px 0;
}

/* Описание курса */
.course-description,
.learn-content,
.requirements-content,
.audience-content {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
    margin: 0 0 30px 20px;
}

.why-content {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
    margin: 0 0 30px 0;
    background: #f0f4f8;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 30px 20px;
}

.skill-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

/* Автор */
.author-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.author-avatar img,
.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: #FFD602;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #000;
}

.author-details h4 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #2d3748;
    font-weight: 600;
}

.author-details p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Отзывы */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar img,
.reviewer-avatar .avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-avatar .avatar-placeholder {
    background: #FFD602;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
}

.reviewer-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: #2d3748;
    font-weight: 600;
}

.review-rating {
    margin-bottom: 5px;
}

.review-rating .star {
    font-size: 14px;
}

.reviewer-info time {
    color: #999;
    font-size: 13px;
}

.review-text {
    color: #4a5568;
    line-height: 1.5;
    margin-left: 65px;
}

/* Форма отзывов */
.review-form-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.review-form-container h4 {
    margin: 0 0 25px 0;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
}

.review-form .form-group {
    margin-bottom: 25px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.review-form label .required {
    color: #e53e3e;
    margin-left: 3px;
}

/* Интерактивный рейтинг */
.rating-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stars-input {
    display: flex;
    gap: 5px;
}

.star-input {
    font-size: 32px;
    color: #e2e8f0; /* Серые по умолчанию */
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star-input:hover {
    color: #FFD602;
}

.star-input.filled {
    color: #FFD602; /* Жёлтые когда выбраны */
}

.rating-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Поле текста отзыва */
.review-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    background: white;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
}

.review-form textarea:focus {
    outline: none;
    border-color: #FFD602;
    box-shadow: 0 0 0 3px rgba(255, 214, 2, 0.1);
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Кнопка отправки */
.review-submit-btn {
    background: white;
    border: 3px solid #FFD602;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    color: #2d3748;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
}

.review-submit-btn:hover:not(:disabled) {
    background: #FFD602;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 2, 0.3);
}

.review-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.review-submit-btn .btn-loading {
    display: none;
}

/* Сообщения */
.review-message {
    margin-top: 25px;
    padding: 20px 25px;
    border-radius: 8px;
    text-align: center;
}

.review-success {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.review-success h4 {
    color: #155724;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.review-success p {
    margin: 0;
    font-size: 14px;
}

.review-error {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.review-error h4 {
    color: #721c24;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.review-error p {
    margin: 0;
    font-size: 14px;
}

/* Статусные сообщения */
.review-already-sent,
.review-login-required,
.review-access-required {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.review-already-sent p,
.review-login-required p,
.review-access-required p {
    margin: 0;
    color: #856404;
    font-size: 15px;
}

.review-login-required a,
.review-access-required a {
    color: #2d3748;
    font-weight: 600;
    text-decoration: underline;
}

.review-login-required a:hover,
.review-access-required a:hover {
    color: #FFD602;
}

/* FAQ */
.faq-section{
    margin: 53px 0 53px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.5rem;
    color: #2d3748;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #4a5568;
    line-height: 1.5;
}

.faq-item.open .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* Похожие курсы */
.similar-courses {
    background: #f8f9fa;
    padding: 60px 0;
}

.similar-courses h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2d3748;
}

/* Сетка курсов */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 320px);
    gap: 30px;
    margin-bottom: 40px;
    justify-content: center;
}

@media (min-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(4, 320px);
        justify-content: center;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .courses-grid {
        grid-template-columns: repeat(3, 320px);
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .courses-grid {
        grid-template-columns: repeat(2, 320px);
        justify-content: center;
    }
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .course-card {
        margin-top: 23px;
    }

    .similar-courses {
        padding: 40px 15px;
    }

    .similar-courses h2 {
        margin-bottom: 30px;
        font-size: 24px;
    }
}

/* Карточка курса */
.course-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Изображение курса */
.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Контент карточки */
.course-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-header {
    margin-bottom: 15px;
}

.course-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.course-title:hover {
    color: #FFD602;
    text-decoration: none;
}

.course-author {
    color: #718096;
    font-size: 13px;
    font-weight: 500;
}

/* Описание */
.sim-course-description {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    margin: 15px 0;
}

/* Статистика */
.course-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px 0;
    background: transparent;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.stat-icon {
    font-size: 12px;
}

.stat-value {
    font-weight: 700;
    color: #1a202c;
}

.stat-label {
    color: #4a5568;
}

.course-price {
    margin-top: auto;
    padding-top: 15px;
}

.btn-arrow {
    transition: transform 0.2s ease;
    font-size: 14px;
    font-weight: 400;
}

.price:hover .btn-arrow {
    transform: translateX(3px);
}

/* Новые стили для Swiper галереи */
.course-gallery-section {
    margin: 0 0 53px 0;
}

.course-gallery-container {
    position: relative;
}

.course-gallery-swiper {
    padding: 0px 0 40px 0;
}

.course-gallery-swiper .swiper-slide {
    width: auto;
    max-width: 250px;
}

.course-gallery-item {
    display: block;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.course-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.course-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стили для lazy loading */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image:not([src*="blank.webp"]) {
    opacity: 1;
}

/* Кастомизация кнопок навигации Swiper */
.swiper-button-next-gallery,
.swiper-button-prev-gallery {
    color: #333;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    margin-top: -17px;
}

.swiper-button-next-gallery:hover,
.swiper-button-prev-gallery:hover {
    background: #fff;
    transform: scale(1.1);
}

.swiper-button-next-gallery:after,
.swiper-button-prev-gallery:after {
    font-size: 14px;
    font-weight: bold;
}

.swiper-button-next-gallery {
    right: 10px;
}

.swiper-button-prev-gallery {
    left: 10px;
}

/* Стили для пагинации */
.swiper-pagination-gallery {
    bottom: 10px !important;
}

.swiper-pagination-gallery .swiper-pagination-bullet {
    background: #666;
    opacity: 0.5;
}

.swiper-pagination-gallery .swiper-pagination-bullet-active {
    background: #FFD602;
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .course-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .course-sidebar {
        order: -1;
    }

    .course-title {
        font-size: 2rem;
    }

    .course-stats {
        flex-direction: column;
        gap: 10px;
    }

    .course-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tab-link {
        padding: 15px 20px;
        font-size: 14px;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .review-text {
        margin-left: 0;
        margin-top: 15px;
    }

    .player-controls {
        flex-direction: column;
        gap: 15px;
    }

    .player-info {
        order: -1;
    }

    .lesson-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .lesson-title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .course-gallery-swiper .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
    }

    .course-gallery-item {
        height: 200px;
    }

    .swiper-button-next-gallery,
    .swiper-button-prev-gallery {
        width: 30px;
        height: 30px;
        margin-top: -15px;
    }

    .swiper-button-next-gallery:after,
    .swiper-button-prev-gallery:after {
        font-size: 12px;
    }

    .stars-input {
        justify-content: center;
    }

    .review-form-container {
        padding: 20px;
    }

    .review-submit-btn {
        width: 100%;
    }
}

/* Улучшенные стили для GLightbox на мобильных */
.glightbox-mobile .gclose,
.gclose {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 99999 !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 2px solid #fff !important;
}

.glightbox-mobile .gclose svg,
.gclose svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #fff !important;
}

.glightbox-mobile .gnext,
.glightbox-mobile .gprev,
.gnext,
.gprev {
    width: 44px !important;
    height: 44px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.glightbox-mobile .gnext svg,
.glightbox-mobile .gprev svg,
.gnext svg,
.gprev svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #fff !important;
}

.glightbox-container .gclose,
.glightbox-container .gnext,
.glightbox-container .gprev {
    cursor: pointer !important;
    touch-action: manipulation !important;
}

.glightbox-container .goverlay {
    cursor: pointer !important;
}

/* ===================================================================
   КОММЕНТАРИИ К УРОКАМ
   ================================================================ */

.lesson-comments-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.lesson-comments-section h3 {
    margin: 0 0 25px 0;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
}

.lesson-comments-section h3 .comments-count {
    color: #666;
    font-weight: 400;
}

/* Список комментариев */
#lesson-comments-list {
    margin-bottom: 30px;
}

.comments-loading,
.comments-error,
.no-comments {
    padding: 40px 0;
    color: #666;
    font-size: 15px;
}

.comments-error {
    color: #e53e3e;
}

/* Отдельный комментарий */
.comment-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Вложенность комментариев - только отступы */
.comment-item.level-0 {
    margin-left: 0;
}

.comment-item.level-1 {
    margin-left: 40px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

.comment-item.level-2 {
    margin-left: 80px;
    padding-top: 15px;
    border-top: 2px solid #cbd5e0;
}

.comment-item.level-3 {
    margin-left: 120px;
    padding-top: 15px;
    border-top: 2px solid #a0aec0;
}

/* Комментарий автора курса */
.comment-item.author-comment {
    background: #fff;
}

.comment-item.author-comment.level-1,
.comment-item.author-comment.level-2,
.comment-item.author-comment.level-3 {
    border-top-color: #48bb78;
}

/* Шапка комментария */
.comment-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-info {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 2px;
}

.author-badge {
    display: inline-block;
    background: #48bb78;
    color: white;
    padding: 2px 8px 0 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

.comment-date {
    color: #999;
    font-size: 12px;
}

/* Тело комментария */
.comment-body {
    margin-left: 52px;
}

.comment-text {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 10px;
    word-wrap: break-word;
}

/* Действия с комментарием */
.comment-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.reply-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.reply-btn:hover {
    background: #e9ecef;
    color: #2d3748;
}

/* Форма ответа */
.comment-reply-form {
    margin: 15px 0 0 52px;
}

.reply-form-wrapper {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #FFD602;
}

.reply-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #2d3748;
    background: white;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #FFD602;
    box-shadow: 0 0 0 3px rgba(255, 214, 2, 0.1);
}

.reply-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-reply-btn,
.cancel-reply-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-reply-btn {
    background: #FFD602;
    color: #000;
}

.submit-reply-btn:hover:not(:disabled) {
    background: #e6c200;
}

.submit-reply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cancel-reply-btn {
    background: #e9ecef;
    color: #4a5568;
}

.cancel-reply-btn:hover {
    background: #cbd5e0;
}

.reply-char-counter {
    margin-left: auto;
    font-size: 12px;
    color: #666;
}

/* Контейнер для ответов */
.comment-replies {
    margin-top: 15px;
}

/* Основная форма добавления комментария */
.add-comment-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.add-comment-form h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

#lesson-comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    background: white;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
}

#lesson-comment-form textarea:focus {
    outline: none;
    border-color: #FFD602;
    box-shadow: 0 0 0 3px rgba(255, 214, 2, 0.1);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.comment-char-counter {
    font-size: 12px;
    color: #666;
}

#lesson-comment-form button[type="submit"] {
    background: #FFD602;
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#lesson-comment-form button[type="submit"]:hover:not(:disabled) {
    background: #2d3748;
    color: white;
    transform: translateY(-1px);
}

#lesson-comment-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Сообщение для незалогиненных */
.comments-login-required {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.comments-login-required p {
    margin: 0;
    color: #856404;
    font-size: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .lesson-comments-section {
        padding: 20px 15px;
    }

    .comment-item.level-1 {
        margin-left: 20px;
    }

    .comment-item.level-2 {
        margin-left: 40px;
    }

    .comment-item.level-3 {
        margin-left: 60px;
    }

    .comment-body {
        margin-left: 0;
        margin-top: 10px;
    }

    .comment-reply-form {
        margin-left: 0;
    }

    .reply-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .reply-char-counter {
        margin-left: 0;
        text-align: right;
    }
}
/* Счётчик комментариев в списке уроков */
.lesson-comments-badge {
    display: inline-block;
    background: #e9ecef;
    color: #4a5568;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.lesson-item.active .lesson-comments-badge {
    background: #FFD602;
    color: #000;
}

.lesson-item:hover .lesson-comments-badge {
    background: #cbd5e0;
}
/* ========== ОВЕРЛЕИ ДЛЯ ПЛЕЕРА ========== */

/* Общий оверлей для перехода к следующему уроку */
.lesson-end-overlay,
.course-complete-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.overlay-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.overlay-icon {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1;
}

.overlay-content h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #1a1a1a;
}

.overlay-content p {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #666;
}

#countdown {
    font-weight: bold;
    color: #FFD602;
    font-size: 20px;
}

.overlay-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.overlay-buttons button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overlay-buttons .btn-primary {
    background: #FFD602;
    color: #1a1a1a;
}

.overlay-buttons .btn-primary:hover {
    background: #ffdd33;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 2, 0.4);
}

.overlay-buttons .btn-secondary {
    background: #e5e7eb;
    color: #1a1a1a;
}

.overlay-buttons .btn-secondary:hover {
    background: #d1d5db;
}

/* ========== АКТИВНАЯ ГЛАВА В СОДЕРЖАНИИ ========== */

.chapter-item {
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chapter-item:hover {
    background: #f3f4f6;
}

.chapter-item.active {
    background: #FFF9E6;
    border-left: 3px solid #FFD602;
    padding-left: 12px;
}

.chapter-item.active .chapter-title {
    color: #1a1a1a;
    font-weight: 600;
}

.chapter-item.active .chapter-time {
    color: #FFD602;
    font-weight: 600;
}

.chapter-time {
    font-size: 13px;
    color: #9ca3af;
    min-width: 45px;
    font-family: 'Courier New', monospace;
}

.chapter-title {
    font-size: 14px;
    color: #374151;
    flex: 1;
}

/* Адаптив для оверлеев */
@media (max-width: 768px) {
    .overlay-content {
        padding: 30px 20px;
        max-width: 90%;
    }

    .overlay-content h3 {
        font-size: 20px;
    }

    .overlay-buttons {
        flex-direction: column;
    }

    .overlay-buttons button {
        width: 100%;
    }
}
/* Водяной знак для защиты от скринкастинга */
.video-watermark {
    position: absolute;
    bottom: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: monospace;
    pointer-events: none;
    z-index: 100;
    backdrop-filter: blur(4px);
    user-select: none;
}

.video-watermark .watermark-site {
    font-weight: bold;
    color: #FFD602;
}

.video-watermark .watermark-user {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

@media (max-width: 768px) {
    #article-header {
        height: 500px !important;
    }
    #article-header .article-title {
        height: 500px !important;
    }
}
.section-title {
    font-size: 30px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
    margin-top: 20px;
    margin-bottom: 10px;
}
.course-meta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    margin-top: 23px !important;
}

.course-meta li {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    padding: 0 15px !important;
}

.course-meta .course-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.course-meta .rating {
    display: inline-flex !important;
    gap: 2px !important;
}
.edu-breadcrumb-area {
    padding: 31px 0 45px 0 !important;
}
.course-overview p {
    color: #333333 !important;
}
@media (max-width: 991px) {
    .course-sidebar-3 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .sidebar-top-position {
        position: static !important;
        top: auto !important;
    }

    /* Видео адаптивное */
    .course-sidebar-3 .thumbnail img,
    .course-sidebar-3 .thumbnail video {
        max-width: 100% !important;
        height: auto !important;
    }
}