.reviews {
    margin-top: 50px;
    margin-bottom: 50px;
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
    color: #1d2d53;
}

.reviews__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.reviews__title {
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.reviews__summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews__summary-text {
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #4a5475;
}

.reviews__stars {
    display: inline-flex;
    gap: 2px;
    font-size: 18px;
    line-height: 1;
}

.reviews__star {
    color: #d6dae2;
    position: relative;
    display: inline-block;
}

.reviews__star--filled,
.reviews__star--full {
    color: #f5a623;
}

.reviews__star--half {
    color: #d6dae2;
}

.reviews__star--half::before {
    content: "★";
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
    color: #f5a623;
}

.reviews__slider {
    display: flex;
    align-items: stretch;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.reviews__viewport {
    flex: 1;
    overflow: hidden;
}

.reviews__track {
    display: flex;
    gap: 16px;
    will-change: transform;
    transition: transform 0.4s ease;
}

.reviews__card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    box-sizing: border-box;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #e1e5ee;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
}

.reviews__card * {
    font-family: inherit;
}

.reviews__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.reviews__card-name {
    font-weight: 600;
    font-size: 17px;
}

.reviews__card-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 15px;
    line-height: 1;
}

.reviews__card-museum {
    font-size: 13px;
    font-weight: 600;
    color: #61afb4;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.reviews__card-body {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #1d2d53;
    flex: 1;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.reviews__card.is-truncated {
    cursor: pointer;
}

.reviews__card.is-truncated .reviews__card-body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.6em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 85%);
    pointer-events: none;
}

.reviews__card-body--full {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    white-space: pre-line;
}

.reviews__card-date {
    font-size: 13px;
    color: #8a93a8;
}

.reviews__arrow {
    flex: 0 0 auto;
    align-self: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background-color: #1d2d53;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.reviews__arrow:hover {
    background-color: #61afb4;
}

.reviews__arrow:active {
    transform: scale(0.95);
}

.reviews__empty {
    text-align: center;
    color: #4a5475;
    font-size: 16px;
    padding: 40px 16px;
}

.reviews__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.reviews__button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 2px solid #1d2d53;
    background: transparent;
    color: #1d2d53;
}

.reviews__button--primary {
    background: #1d2d53;
    color: #ffffff;
}

.reviews__button--primary:hover {
    background: #2a3f70;
    border-color: #2a3f70;
}

.reviews__button--secondary:hover {
    background: #1d2d53;
    color: #ffffff;
}

@media (max-width: 890px) {
    .reviews__title {
        font-size: 26px;
    }
    .reviews__card {
        flex: 0 0 calc((100% - 16px) / 2);
    }
}

@media (max-width: 600px) {
    .reviews__slider {
        gap: 8px;
        padding: 0 8px;
    }
    .reviews__track {
        gap: 0;
    }
    .reviews__card {
        flex: 0 0 100%;
    }
    .reviews__arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
        flex-shrink: 0;
    }
    .review-modal {
        align-items: flex-start;
        padding: 40px 12px 20px;
    }
    .review-modal__dialog {
        max-height: none;
    }
}

/* Reviews page */
.reviews-page {
    margin: 40px auto 80px;
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
    color: #1d2d53;
}

.reviews-page__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.reviews-page__title {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.reviews-page__summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-page__summary-text {
    font-size: 17px;
    color: #4a5475;
}

.reviews-page__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.reviews__card--page {
    margin: 0;
    min-height: 0;
}

.reviews-page__cta {
    display: flex;
    justify-content: center;
    margin: 40px 0 0;
}

/* Modal */
.review-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.review-modal[hidden] {
    display: none;
}

.review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.review-modal__dialog,
.review-modal__dialog * {
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
}

.review-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    max-height: 90vh;
    overflow-y: auto;
}

.review-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #4a5475;
    cursor: pointer;
}

.review-modal__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #1d2d53;
}

.review-form__field {
    display: block;
    margin-bottom: 18px;
}

.review-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5475;
    margin-bottom: 6px;
}

.review-form__input,
.review-form__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #c5c8d1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    color: #1d2d53;
    transition: border-color 0.15s ease;
}

.review-form__input:focus,
.review-form__textarea:focus {
    outline: none;
    border-color: #1d2d53;
}

.review-form__textarea {
    resize: vertical;
    min-height: 110px;
}

.review-form__combobox {
    position: relative;
}

.review-form__combobox-toggle {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #c5c8d1;
    border-radius: 6px;
    background: #ffffff;
    font-family: inherit;
    font-size: 16px;
    color: #1d2d53;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease;
}

.review-form__combobox-toggle:hover {
    border-color: #1d2d53;
}

.review-form__combobox-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-form__combobox-text--placeholder {
    color: #8a93a8;
}

.review-form__combobox-caret {
    color: #8a93a8;
    font-size: 12px;
    transition: transform 0.15s ease;
}

.review-form__combobox.is-open .review-form__combobox-caret {
    transform: rotate(180deg);
}

.review-form__combobox-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 10;
    background: #ffffff;
    border: 1px solid #c5c8d1;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(29, 45, 83, 0.15);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-form__combobox-panel[hidden] {
    display: none;
}

.review-form__combobox-search {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #c5c8d1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.review-form__combobox-search:focus {
    outline: none;
    border-color: #1d2d53;
}

.review-form__combobox-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}

.review-form__combobox-option {
    padding: 8px 10px;
    font-size: 14px;
    color: #1d2d53;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.1s ease;
}

.review-form__combobox-option:hover,
.review-form__combobox-option.is-active {
    background: #eef3f7;
}

.review-form__combobox-option.is-selected {
    background: #1d2d53;
    color: #ffffff;
}

.review-form__combobox-empty {
    margin: 6px 10px 4px;
    font-size: 13px;
    color: #8a93a8;
}

.review-form__stars {
    display: inline-flex;
    gap: 4px;
    user-select: none;
}

.review-form__star-slot {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.review-form__star-glyph {
    position: absolute;
    inset: 0;
    font-size: 30px;
    line-height: 1;
    color: #d6dae2;
    pointer-events: none;
    transition: color 0.1s ease;
}

.review-form__star-slot--full .review-form__star-glyph {
    color: #f5a623;
}

.review-form__star-slot--half .review-form__star-glyph::before {
    content: "★";
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
    color: #f5a623;
}

.review-form__star-half {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
}

.review-form__star-half--left {
    left: 0;
}

.review-form__star-half--right {
    right: 0;
}

.review-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.review-form__error {
    display: block;
    font-size: 15px;
    color: #d0021b;
    margin-top: 6px;
    min-height: 18px;
}

.review-form__submit {
    width: 100%;
    padding: 12px 20px;
    background: #1d2d53;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.review-form__submit:hover {
    background: #2a3f70;
}

.review-form__submit:disabled {
    background: #8a93a8;
    cursor: not-allowed;
}

.review-modal__success {
    text-align: center;
    padding: 20px 0 0;
}

.review-modal__success p {
    margin: 0 0 18px;
    font-size: 16px;
    color: #1d2d53;
}

.review-modal__dialog--view {
    max-width: 560px;
}

.review-view,
.review-view * {
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
}

.review-view__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.review-view__name {
    font-size: 18px;
    font-weight: 700;
    color: #1d2d53;
}

.review-view__stars {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
}

.review-view__museum {
    font-size: 13px;
    font-weight: 600;
    color: #61afb4;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}

.review-view__body {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.55;
    color: #1d2d53;
    white-space: pre-line;
    word-wrap: break-word;
}

.review-view__date {
    font-size: 13px;
    color: #8a93a8;
}
