/* ===================== КАТАЛОГ КУРСОВ — CSS ===================== */

/* Общие стили */
.cc-single-course,
.cc-single-school,
.cc-listing-page,
.cc-reviews-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* Хлебные крошки */
.cc-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 13px;
}

.cc-breadcrumbs li:not(:last-child)::after {
    content: " / ";
    margin: 0 6px;
    color: #999;
}

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

/* Секции */
.cc-section {
    margin: 40px 0;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.cc-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* Шапка курса */
.cc-course-header {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.cc-course-header__main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.cc-course-school-logo img {
    border-radius: 8px;
}

.cc-course-title {
    font-size: 28px;
    margin: 10px 0;
}

.cc-course-subtitle {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* Мета */
.cc-course-meta {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.cc-meta-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.cc-meta-value {
    font-size: 16px;
    font-weight: 600;
}

/* Рейтинг */
.cc-rating-badge {
    display: inline-block;
    background: #4caf50;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
}

/* Теги */
.cc-tag {
    display: inline-block;
    background: #e8f0fe;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    margin: 3px 4px 3px 0;
}

.cc-tag-link {
    display: inline-block;
    background: #e8f0fe;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin: 4px;
    text-decoration: none;
    color: #3366cc;
    transition: background 0.2s;
}

.cc-tag-link:hover {
    background: #d0e1fd;
}

/* Цена */
.cc-course-price-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.cc-price-current {
    font-size: 28px;
    font-weight: bold;
    color: #222;
}

.cc-price-old {
    font-size: 18px;
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
}

.cc-price-installment {
    font-size: 16px;
    color: #555;
    margin-top: 5px;
}

/* Промокод */
.cc-promo-code, .cc-promo-block {
    background: #fffde7;
    border: 1px dashed #ffc107;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    display: inline-block;
}

/* Кнопки */
.cc-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
}

.cc-btn-primary {
    background: #3366cc;
    color: #fff;
    border-color: #3366cc;
}

.cc-btn-primary:hover {
    background: #2255bb;
    color: #fff;
}

.cc-btn-large {
    padding: 14px 40px;
    font-size: 16px;
}

/* Плюсы / Минусы */
.cc-proscons {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.cc-pros, .cc-cons {
    flex: 1;
    min-width: 250px;
}

.cc-pros ul li::before {
    content: "✓ ";
    color: #4caf50;
}

.cc-cons ul li::before {
    content: "✗ ";
    color: #f44336;
}

.cc-pros ul, .cc-cons ul {
    list-style: none;
    padding: 0;
}

.cc-pros ul li, .cc-cons ul li {
    padding: 4px 0;
}

/* Навигация по курсу */
.cc-course-nav {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 100;
    padding: 10px 0;
}

.cc-course-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
}

.cc-course-nav a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    white-space: nowrap;
    padding: 5px 0;
}

.cc-course-nav a:hover {
    color: #3366cc;
}

/* Программа */
.cc-program-module {
    padding: 15px;
    margin: 10px 0;
    background: #f9f9f9;
    border-left: 3px solid #3366cc;
    border-radius: 4px;
}

.cc-program-module h4 {
    margin: 0 0 8px;
}

/* Эксперт */
.cc-expert {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
}

.cc-expert-photo {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* FAQ */
.cc-faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cc-faq-question {
    cursor: pointer;
    font-size: 16px;
    margin: 0;
}

.cc-faq-answer {
    margin-top: 10px;
    color: #555;
}

/* Отзывы */
.cc-review-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    background: #fff;
}

.cc-review-header {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cc-review-city {
    color: #999;
    font-size: 13px;
}

.cc-review-date {
    color: #999;
    font-size: 13px;
}

.cc-review-rating {
    color: #ff9800;
    font-weight: bold;
}

.cc-review-section {
    margin: 10px 0;
    line-height: 1.5;
}

.cc-review-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 14px;
}

/* Карточка курса */
.cc-course-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    background: #fff;
    transition: box-shadow 0.2s;
}

.cc-course-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cc-card-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.cc-card-school-logo {
    border-radius: 6px;
}

.cc-card-school-name {
    font-weight: 600;
    font-size: 14px;
}

.cc-card-school-rating {
    background: #4caf50;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.cc-card-reviews {
    color: #999;
    font-size: 12px;
}

.cc-card-title {
    margin: 0 0 8px;
    font-size: 18px;
}

.cc-card-title a {
    color: #222;
    text-decoration: none;
}

.cc-card-title a:hover {
    color: #3366cc;
}

.cc-info-icon {
    font-size: 14px;
    text-decoration: none;
    margin-left: 5px;
    vertical-align: middle;
}

.cc-card-description {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px;
    line-height: 1.5;
}

.cc-card-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cc-card-meta-item {
    font-size: 13px;
    color: #666;
}

.cc-card-price {
    margin: 12px 0;
}

.cc-card-monthly {
    font-size: 18px;
    font-weight: bold;
    color: #222;
}

.cc-card-price-value {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

.cc-card-discount {
    background: #ff5722;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}

.cc-card-price-free {
    font-size: 18px;
    font-weight: bold;
    color: #4caf50;
}

.cc-card-promo {
    background: #fffde7;
    border: 1px dashed #ffc107;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    font-size: 13px;
    margin: 5px 0;
}

.cc-promo-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    margin-right: 5px;
}

.cc-card-proscons {
    font-size: 13px;
    margin: 10px 0;
}

.cc-card-pros ul, .cc-card-cons ul {
    list-style: none;
    padding: 0;
    margin: 4px 0;
}

.cc-card-pros li::before { content: "✓ "; color: #4caf50; }
.cc-card-cons li::before { content: "✗ "; color: #f44336; }

.cc-card-actions {
    margin-top: 15px;
}

/* Сетки */
.cc-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cc-who-fits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.cc-teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.cc-teacher-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.cc-teacher-photo {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* Таблицы */
.cc-spec-table, .cc-salary-table, .cc-courses-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.cc-spec-table th, .cc-spec-table td,
.cc-salary-table th, .cc-salary-table td,
.cc-courses-table th, .cc-courses-table td {
    padding: 10px 15px;
    border: 1px solid #eee;
    text-align: left;
}

.cc-spec-table th, .cc-salary-table th, .cc-courses-table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Страница отзывов */
.cc-reviews-page {
    display: flex;
    gap: 30px;
}

.cc-reviews-main {
    flex: 1;
}

.cc-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.cc-reviews-stats {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 15px 0;
}

.cc-mini-card {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.cc-mini-card a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

/* Школа */
.cc-school-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.cc-school-logo {
    border-radius: 12px;
}

.cc-school-info-block {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* CTA */
.cc-cta-bottom {
    text-align: center;
    padding: 30px;
    margin: 30px 0;
}

/* Галерея */
.cc-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cc-gallery img {
    border-radius: 8px;
    max-height: 150px;
    object-fit: cover;
}

/* Пагинация */
.cc-pagination {
    margin: 30px 0;
    text-align: center;
}

.cc-pagination .page-numbers {
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.cc-pagination .page-numbers.current {
    background: #3366cc;
    color: #fff;
    border-color: #3366cc;
}

/* Промо inline */
.cc-promo-inline {
    font-size: 13px;
    color: #ff9800;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cc-reviews-page {
        flex-direction: column;
    }
    .cc-sidebar {
        width: 100%;
    }
    .cc-proscons {
        flex-direction: column;
    }
    .cc-course-meta {
        flex-direction: column;
        gap: 10px;
    }
    .cc-course-header {
        padding: 15px;
    }
}