/* primary */
/* primary hover */
/* dark */
/* light */
/* light hover */
/* accent */
/* accent hover */

/* Developer page: вкладки */
.developer-page__tabs-container {
    margin-top: 16px;
}

/* Developer page: описание и категории */
.developer-page__description-container,
.developer-page__categories-container-wrapper {
    margin-top: 24px;
}

.developer-page__categories-container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.developer-page__categories-container {
    margin-bottom: 60px;
}

/* Developer page: коллекции / ЖК / проекты */
.developer-page__collections {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.developer-page__collections-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Элемент коллекции: ЖК, район, тип объекта */
.developer-page__collections-item {
    display: flex;
    padding: 4px 16px;
    border: none;
    border-radius: var(--inputs-buttons-border-radius);
    background: #f2f2f2;
    color: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.developer-page__collections-item:hover {
    background-color: var(--light-color);
}

.developer-page__collections-item_hidden {
    display: none;
}

/* Название коллекции */
.developer-page__collections-item-name {
    display: flex;
    width: 100%;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
    hyphens: auto;
    transition: color 0.2s ease-in-out;
}

/* Кнопки показать/скрыть коллекции */
.developer-page__collections-list-hide-button {
    display: none;
}

.developer-page__collections-list-footer .button {
    font-size: 14px;
}

/* Раскрытое состояние коллекций */
.developer-page__collections.toggle-block_active .developer-page__collections-item_hidden {
    display: flex;
}

.developer-page__collections.toggle-block_active .developer-page__collections-list-show-button {
    display: none;
}

.developer-page__collections.toggle-block_active .developer-page__collections-list-hide-button {
    display: flex;
}

/* Десктопная версия страницы застройщика */
@media (min-width: 1024px) {
    .developer-page__description-container {
        width: 100%;
    }

    .developer-page__content-block {
        margin-top: 30px;
    }

    .developer-header__container {
        display: flex;
        align-items: center;
    }

    .developer-page__image-container {
        height: 40px;
        padding-right: 15px;
    }

    .developer-page__image-container img {
        max-width: 100%;
        height: 40px;
        object-fit: contain;
    }

    .developer-page__content-container {
        margin-top: 30px;
    }

    .category-extend_size_s {
        text-align: left;
    }
}

/* Планшет и мобильная версия страницы застройщика */
@media (max-width: 1023px) {
    .developer-page__collections-item-name {
        font-size: 14px;
    }

    .developer-page__categories-container {
        margin-bottom: 30px;
    }

    .developer-page__additional-description-container {
        margin-top: 30px;
    }

    .developer-page__tabs-container {
        margin-bottom: 15px;
    }

    .developer-page__image-container {
        text-align: center;
    }

    .developer-page__image-container .image-box {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100px;
    }

    .developer-page__image-container .image-box img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .developer-page__description-text-container {
        margin-top: 15px;
    }

    .developer-page .block__content figure {
        margin: 0 0 15px;
    }

    .developer-page .block__content figure:last-child {
        margin-bottom: 0;
    }

    .developer-page .block__content img {
        max-width: 100%;
        max-height: 100%;
        height: auto;
    }

    .developer-page .block__content .text-center {
        text-align: center;
    }

    .developer-page .block__content .text-right {
        text-align: right;
    }

    .developer-page .block__content .text-justify {
        text-align: justify;
    }
}

/* Developer review: карточка отзыва на десктопе */
@media (min-width: 1024px) {
    .developer-review {
        padding: 19px;
        border: 1px solid #f2f2f2;
        border-radius: 5px;
        transition: box-shadow 0.2s ease-in-out;
    }

    .developer-review:hover {
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.07);
    }
}

/* Header отзыва */
.developer-review__header-container {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    vertical-align: top;
}

/* Изображение объекта / ЖК в отзыве */
.developer-review__image-box {
    width: 80px;
    height: 80px;
}

.developer-review__image-box img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Название объекта / ЖК */
.developer-review__project-name {
    color: #1b1b1b;
    font-weight: 500;
}

/* Название застройщика */
.developer-review__developer-name {
    font-weight: 500;
}

/* Заголовок отзыва */
.developer-review__title-container {
    color: #686868;
    font-size: 16px;
    line-height: 1.2;
}

/* Рейтинг */
.developer-review__rating-container {
    margin-top: 9px;
    line-height: 1.2;
}

/* Фото в отзыве */
.developer-review__images {
    margin-top: 16px;
}

.developer-review__images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Автор отзыва */
.developer-review__author-container {
    margin-top: 20px;
    font-weight: 500;
    line-height: 1.2;
}

/* Контент отзыва */
.developer-review__content-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

/* Дата отзыва */
.developer-review__date-container {
    margin-top: 15px;
    line-height: 1.2;
}

/* Мобильная версия отзыва */
@media (max-width: 1023px) {
    .developer-reviews__review {
        margin-bottom: 0;
        padding: 15px;
        border-bottom: 1px solid #f2f2f2;
    }

    .developer-reviews__review:first-child {
        border-top: 1px solid #f2f2f2;
    }

    .developer-reviews__review:last-child {
        margin-bottom: 0;
    }

    .developer-review__header-container {
        display: flex;
        align-items: center;
    }

    .developer-review__image-box {
        width: 60px;
        height: 60px;
    }

    .developer-review__image-container,
    .developer-review__info-container {
        margin-right: 0;
        margin-left: 0;
    }

    .developer-review__image-container {
        flex-shrink: 1;
        margin-right: 10px;
    }

    .developer-review__info-container {
        flex-shrink: 1;
    }

    .developer-review__title-container {
        font-size: 14px;
    }

    .developer-review__rating-container .rating__star {
        font-size: 9px;
    }

    .developer-review__author-container {
        margin-top: 15px;
        font-weight: 400;
    }

    .developer-review__content-container {
        margin-top: 10px;
    }

    .developer-review__block {
        margin-bottom: 10px;
    }
}

/* Форма отзыва */
.developer-review-form {
    width: 500px;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .developer-review-form {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .developer-review-form {
        width: auto;
    }

    .developer-review-form .modal {
        border-radius: 0;
    }

    .developer-review-form .modal-header .header {
        font-size: 16px;
    }

    .developer-review-form .form-field__name {
        color: #1b1b1b;
    }

    .developer-review-form .rating-select__star {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }

    .developer-review-form .rating-select__star::before {
        font-size: 14px;
    }

    .developer-review-form textarea {
        height: 120px;
        resize: none;
    }

    .developer-review-form .contact__name-box {
        font-size: 14px;
    }

    .developer-review-form .form .button {
        width: 100%;
    }
}

/* Список отзывов */
.developer-reviews__reviews-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.developer-reviews__review_hidden {
    display: none;
}

.developer-reviews__more-container {
    margin-top: 40px;
    text-align: center;
}

/* Показать все отзывы */
.developer-reviews_show-all .developer-reviews__review_hidden {
    display: block;
}

.developer-reviews_show-all .developer-reviews__more-container {
    display: none;
}

@media (max-width: 1023px) {
    .developer-reviews__reviews-container::after {
        margin-top: 0;
    }

    .developer-reviews__more-container {
        margin-top: 25px;
    }
}

/* Header блока отзывов */
.developer-reviews-container__header-container {
    display: flex;
    align-items: center;
}

.developer-reviews-container__header-text-container,
.developer-reviews-container__button-container {
    margin-left: 30px;
    white-space: nowrap;
}

.developer-reviews-container__header-text-container:first-child,
.developer-reviews-container__button-container:first-child {
    width: 100%;
    margin-left: 0;
    white-space: normal;
}

/* Мобильный header отзывов */
@media (max-width: 1023px) {
    .developer-reviews-container__header-container {
        flex-direction: column;
    }

    .developer-reviews-container__header-text-container {
        margin-bottom: 15px;
    }

    .developer-reviews-container__button-container {
        width: 100%;
        margin-left: 0;
        white-space: normal;
    }

    .developer-reviews-container__review-button {
        width: 100%;
    }
}

/* Developers search: поле поиска */
.developers-search .developers-search__field-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.developers-search .developers-search__input {
    width: 100%;
    border-radius: var(--inputs-buttons-border-radius);
    box-sizing: border-box;
}

/* Кнопка очистки поиска */
.developers-search .developers-search__clear {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: none;
    width: 45px;
    height: 100%;
    color: #bdbdbd;
    cursor: pointer;
}

.developers-search .developers-search__clear-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

/* Буквы застройщиков */
.developers-search .developers-letters {
    margin-bottom: 30px;
}

.developers-search .developers-letters__list {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    padding-left: 0;
    list-style: none;
}

.developers-search .developers-letters__item,
.developers-search .developers-letters__reset {
    margin-top: 0;
    margin-left: 10px;
    color: var(--link-color);
    list-style: none;
    text-decoration: none;
    cursor: pointer;
    transition: color ease-in-out 0.2s;
}

.developers-search .developers-letters__item:hover,
.developers-search .developers-letters__reset:hover {
    color: var(--link-color-hover);
}

.developers-search .developers-letters__item_active {
    font-weight: 600;
}