/* Сетка курсов */
.course-list-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.course-list-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.course-list-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.course-list-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.course-list-item {
    break-inside: avoid;
}

.course-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.course-thumbnail {
    height: 200px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    line-height: 1.3;
}

.course-title a {
    color: #2c3e50;
    text-decoration: none;
}

.course-title a:hover {
    color: #3498db;
}

.course-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.course-excerpt {
    color: #7f8c8d;
    margin-bottom: 15px;
    flex: 1;
}

.course-meta {
    margin-bottom: 20px;
}

.meta-item {
    display: inline-block;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    color: #6c757d;
    margin-right: 8px;
}

/* Тарифы курса */
.course-pricing-default {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.course-header {
    text-align: center;
    margin-bottom: 50px;
}

.course-header h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2em;
}

.course-description {
    font-size: 1.1em;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pricing-tier-card {
    background-color: #000;
    background-image: var(--ne-grandient-one);
    color: var(--ne-color-text);
    border: 1px solid #3d0d40;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #a800b3;
}

.pricing-tier-card:nth-child(2) {
    border-color: #a800b3;
    transform: scale(1.05);
}

.pricing-tier-card:nth-child(2):hover {
    transform: scale(1.05) translateY(-5px);
}

.tier-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tier-name {
    margin: 0 0 10px 0;
    color: #3d0d40;
    font-size: 1.4em;
}

.tier-price {
    font-size: 2em;
    font-weight: bold;
    color: #f2f2f2;
}

.tier-description {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.5;
    flex: 1;
}

.tier-description p {
    text-indent: 0;
}

.tier-features {
    margin-bottom: 30px;
}

.feature-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255, 0.1);
    color: #7f8c8d;
}

.feature-item:last-child {
    border-bottom: none;
}

.tier-actions {
    margin-top: auto;
}

.tier-actions .btn-ksm {
    width: 100%;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Сообщения об ошибках */
.course-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

.course-list-empty {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .course-list-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .course-list-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-tiers-grid {
        grid-template-columns: 1fr;
    }

    .pricing-tier-card:nth-child(2) {
        transform: none;
    }

    .pricing-tier-card:nth-child(2):hover {
        transform: translateY(-5px);
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .course-pricing-default {
        padding: 10px;
    }

    .pricing-tier-card {
        padding: 20px;
    }

    .course-header h2 {
        font-size: 1.8em;
    }
}