/* ========================
   Базовые настройки (шрифты уже подключены в main.css)
   ======================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #000;
    background-color: #fcfcfc;
    overflow-x: hidden;
}

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

/* ========================
   Основной контент
   ======================== */
.otzyv-main {
    margin-top: 135px;
    padding-top: 0;
}

/* ========================
   Хлебные крошки
   ======================== */
.breadcrumbs {
    font-size: 18px;
    font-weight: 400;
    color: #929292;
    margin-bottom: 60px;
    padding-top: 0;
}

.breadcrumbs a {
    color: #929292;
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumbs__sep {
    margin: 0 2px;
}

.breadcrumbs__current {
    color: #929292;
}

/* ========================
   Заголовок и описание
   ======================== */
.otzyv-hero__title {
    font-size: 50px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
    color: #000;
}

.otzyv-hero__desc {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    max-width: 1200px;
    margin-bottom: 3px;
    color: #000;
}

/* ========================
   Фильтр отзывов
   ======================== */
.reviews-filter {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-end;       /* иконка прижата к правому краю */
}

.reviews-filter__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.reviews-filter__btn:hover {
    background: #F0F0F0;
}

.reviews-filter__icon {
    width: 35px;
    height: auto;
    display: block;
}

/* Оверлей фильтра */
.filter-overlay {
    position: absolute;
    top: 50px;
    right: 0;                       
    width: 241px;
    background-color: #fcfcfc;
    border-radius: 10px;
    padding: 20px 30px 10px;
    z-index: 50;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-family: 'Montserrat', sans-serif;
}

.filter-overlay.active {
    display: block;
}

.filter-overlay__title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #000;
}

.filter-overlay__divider {
    border: none;
    height: 1px;
    background-color: #000;
    width: 181px;
    margin: 0 0 10px 0;
    border-radius: 1px;
}

.filter-overlay__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.filter-overlay__option {
    background: none;
    border: none;
    padding: 12px 0;            
    font-size: 16px;
    font-weight: 300;               
    color: #7A7A7A;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
    font-family: 'Montserrat', sans-serif;
    display: block; 
    width: calc(100% + 60px);
    margin-left: -30px;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

.filter-overlay__option:hover {
    background-color: #F0F0F0;
}

/* ========================
   Карточки отзывов
   ======================== */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.review-card {
    border-radius: 10px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    background: #fcfcfc;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-card__name {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 3px;
}

.review-card__course {
    font-size: 16px;
    font-weight: 400;
    color: #7A7A7A;
    margin: 0;
}

.review-card__stars {
    display: flex;
    gap: 1px;
    margin-top: 0;                  
    align-self: flex-start;
}

/* Звезда 30x30 */
.star {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: relative;
    line-height: 1;
}

/* активная звезда (градиент) */
.star--active::before {
    content: '★';
    font-size: 30px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(-41deg, #D90D26, #E94055, #D90D26);
    -webkit-background-clip: text;
    background-clip: text;
}

/* неактивная звезда (обводка) */
.star:not(.star--active)::before {
    content: '★';
    font-size: 30px;
    color: #D90D26;
    -webkit-text-stroke: 1px #D90D26;
    -webkit-text-fill-color: transparent;
}

.review-card__text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
    margin-bottom: 30px;
    flex: 1;
}

.review-card__date {
    font-size: 16px;
    font-weight: 400;
    color: #7A7A7A;
    text-align: right;
    margin-top: auto;
    align-self: flex-end;
}

/* Кнопка «Показать ещё» */
.reviews-load-more {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    background-color: #F0F0F0;   
    border: none;
    align-self: flex-end;
    cursor: pointer;
    padding: 14px 36px;          
    margin-top: 30px;
    margin-bottom: 100px;
    border-radius: 10px;
    transition: box-shadow 0.3s;
    display: inline-block;       
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.reviews-load-more:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.no-more-message {
    display: none;             
    text-align: right;
    margin-top: 60px;
    margin-bottom: 100px;        
    font-size: 20px;             
    color: #7A7A7A;
}

/* ========================
   Адаптивность (мобильная версия)
   ======================== */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    body {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        max-width: 100%;
        padding: 0 16px;
        margin: 0 auto;
    }

    .otzyv-main {
        margin-top: 83px;
        margin-bottom: 40px;
    }

    .breadcrumbs {
        font-size: 12px;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .otzyv-hero__title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .otzyv-hero__desc {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .reviews-filter__icon {
        width: 30px;
        margin-bottom: 10px;
    }

    .filter-overlay {
        right: 16px;
        top: 45px;
        width: 240px;
    }

    /* Карточка отзыва: гибкий заголовок, чтобы звёзды не выпадали */
    .review-card__header {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
        margin-bottom: 15px;
    }
    .review-card__header > div:first-child {
        flex: 1;
        min-width: 0; 
    }
    .review-card__name {
        font-size: 16px;
    }
    .review-card__course {
        margin-top: 10px;
        font-size: 12px;
        white-space: nowrap;       
    }

    .review-card__text {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .review-card__date {
        font-size: 12px;
    }

    /* Уменьшаем звёзды */
    .review-card__stars .star {
        width: 20px;
        height: 20px;
    }
    .star::before {
        font-size: 20px !important;
        line-height: 1;
    }

    /* Отступы внутри карточки и между карточками */
    .review-card {
        padding: 15px;
    }
    .reviews-list {
        gap: 10px;
    }

    /* Кнопка «Показать ещё» на мобильных */
    .reviews-load-more {
        font-size: 14px;
        padding: 10px 24px;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    /* Убираем анимацию наведения на фильтр */
    .reviews-filter__btn:hover {
        background: none;
        box-shadow: none;
        transform: none;
    }

    /* Сообщение «Больше отзывов нет» */
    .no-more-message {
        font-size: 14px;
        margin-top: 20px;
        margin-bottom: 0;
    }
}