/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: #ffcc32;
    color: #212a34;
}

.primary-btn:hover {
    background-color: #ffe283;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: #fff;
    color: #212a34;
    border: 1px solid #212a34;
}

.secondary-btn:hover {
    background-color: #f3f3f3;
}

/* Хедер */
.main-header {
    background-color: #212a34;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Логотип */
.logo {
    margin-right: 20px;
}

.logo img {
    max-height: 50px;
}

/* Кнопка каталога */
.catalog-btn a {
    background-color: #ffcc32;
    color: #212a34;
    font-weight: 600;
}

.catalog-btn a:hover {
    background-color: #ffe283;
}

/* Поиск */
.search-form {
    flex: 1;
    max-width: 400px;
    position: relative;
    margin: 0 20px;
}

.search-form input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

/* Избранное и корзина */
.favorites, .cart {
    margin: 0 15px;
    text-align: center;
}

.favorites a, .cart a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.favorites i, .cart i {
    font-size: 20px;
    margin-bottom: 5px;
}

/* Кнопка авторизации */
.auth-btn a {
    background-color: #ffe283;
    color: #212a34;
    font-weight: 500;
}

.auth-btn a:hover {
    background-color: #ffcc32;
    transform: translateY(-2px);
}

/* Главный слайдер */
.main-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 500px;
}

.slide-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

/* Навигация слайдера */
.slider-navigation {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}

.slider-prev, .slider-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.slider-prev:hover, .slider-next:hover {
    background-color: #fff;
}

/* Секция с курсами */
.courses-section {
    background-color: #f3f3f3;
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #212a34;
}

.section-header p {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
}

/* Фильтры курсов */
.course-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #ffcc32;
    border-color: #ffcc32;
}

/* Слайдер курсов */
.courses-slider {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    width: 100%;
}

.courses-slider-container {
    display: flex;
    transition: transform 0.5s ease;
    padding: 20px 0;
}

/* Карточка курса */
.course-card {
    width: 320px; /* Фиксированная ширина */
    min-width: 320px; /* Минимальная ширина */
    height: 380px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 10px; /* Уменьшаем отступы между карточками */
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    flex-shrink: 0; /* Запрещаем сжатие */
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.course-card.dimmed {
    opacity: 0.5;
}

/* Контейнер для слайдера курсов */
.courses-section .container {
    max-width: 1400px; /* Увеличиваем максимальную ширину контейнера */
    padding: 0;
    overflow: hidden;
}



.course-image {
    height: 150px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Эффект выдвижения картинки при наведении */
.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-image-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    z-index: 1;
}

.course-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 2;
}

.course-format {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
}

.course-info {
    padding: 15px;
}

.course-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #212a34;
    line-height: 1.3;
}

.course-provider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.course-rating {
    display: flex;
    align-items: center;
}

.course-rating i {
    color: #ffcc32;
    margin-right: 5px;
}

.course-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 60px;
    overflow: hidden;
}

.course-details {
    display: flex;
    margin-bottom: 15px;
}

.course-duration, .course-lessons {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-right: 20px;
}

.course-duration i, .course-lessons i {
    margin-right: 5px;
    color: #999;
}

.course-price {
    font-weight: 700;
    font-size: 16px;
}

.course-price.free {
    color: #27ae60;
}

/* Навигация слайдера курсов */
.courses-slider-navigation {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.courses-slider-prev, .courses-slider-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.courses-slider-prev:hover, .courses-slider-next:hover {
    background-color: #ffcc32;
}

/* Кнопка перехода в каталог */
.catalog-link {
    text-align: center;
    margin-top: 30px;
}

.catalog-link a {
    padding: 12px 25px;
    font-size: 16px;
}
