.ucr-reviews [hidden], .ucr-modal[hidden] { display: none !important; } .ucr-reviews, .ucr-modal { --ucr-accent: rgba(118,171,39,0.9); --ucr-accent-solid: rgb(118,171,39); --ucr-accent-dark: rgb(94,143,29); --ucr-accent-soft: rgba(118,171,39,0.09); --ucr-accent-border: rgba(118,171,39,0.25); --ucr-stars: #ef9b00; --ucr-text: #252525; --ucr-muted: #858585; --ucr-line: #e8e8e8; --ucr-card: #f8faf6; --ucr-soft: #f5f8f1; --ucr-radius: 14px; font-family: Arial, sans-serif; color: var(--ucr-text); box-sizing: border-box; } .ucr-reviews *, .ucr-modal * { box-sizing: border-box; } /* ========================= ОСНОВНОЙ БЛОК ========================= */ .ucr-reviews { width: 100%; max-width: 1180px; margin: 0 auto; padding: 22px 0; } .ucr-reviews__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; } .ucr-reviews__title { margin: 0 0 10px; font-size: 32px; line-height: 1.15; font-weight: 700; } .ucr-reviews__summary { display: flex; align-items: center; gap: 10px; color: var(--ucr-muted); font-size: 14px; } .ucr-reviews__average { font-size: 22px; color: var(--ucr-text); font-weight: 700; } /* ========================= КНОПКИ ========================= */ .ucr-btn { appearance: none; border: 0; border-radius: 8px; padding: 13px 22px; background: var(--ucr-accent); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; } .ucr-btn:hover { background: var(--ucr-accent-dark); color: #fff; box-shadow: 0 5px 16px rgba(118,171,39,.22); } .ucr-btn:active { transform: translateY(1px); } .ucr-btn--primary, .ucr-btn--submit { background: var(--ucr-accent); color: #fff; } .ucr-btn--primary:hover, .ucr-btn--submit:hover { background: var(--ucr-accent-dark); color: #fff; } /* ========================= КАРТОЧКА ОТЗЫВА ========================= */ .ucr-review { position: relative; margin: 0 0 22px; padding: 24px; overflow: hidden; background: var(--ucr-card); border: 1px solid rgba(118,171,39,.13); border-radius: 14px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; } .ucr-review::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--ucr-accent); } .ucr-review:hover { border-color: var(--ucr-accent-border); box-shadow: 0 7px 24px rgba(0,0,0,.055); } .ucr-review__top { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; } .ucr-review__avatar { width: 58px; height: 58px; flex: 0 0 58px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ucr-accent-soft); border: 1px solid var(--ucr-accent-border); color: var(--ucr-accent-dark); font-weight: 700; font-size: 20px; text-transform: uppercase; } .ucr-review__meta { min-width: 0; } .ucr-review__name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; } .ucr-review__name { font-size: 16px; font-weight: 700; } .ucr-review__date { font-size: 12px; color: #aaa; } /* ========================= ЗВЁЗДЫ ========================= */ .ucr-stars { display: inline-flex; gap: 3px; line-height: 1; } .ucr-star { font-size: 18px; color: #ddd; } .ucr-star.is-active { color: var(--ucr-stars); } /* ========================= ТЕКСТ ОТЗЫВА ========================= */ .ucr-review__section { margin-top: 16px; } .ucr-review__label { margin-bottom: 8px; color: var(--ucr-text); font-size: 15px; font-weight: 700; } .ucr-review__text { color: #555; font-size: 14px; line-height: 1.65; white-space: pre-line; } /* ========================= ФОТО ========================= */ .ucr-review__photos { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; } .ucr-review__photo { display: block; width: 82px; height: 82px; overflow: hidden; background: #eee; border: 1px solid var(--ucr-accent-border); border-radius: 7px; } .ucr-review__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; } .ucr-review__photo:hover img { transform: scale(1.05); } /* ========================= ЗАГРУЗКА / ПУСТО ========================= */ .ucr-reviews__loading, .ucr-reviews__empty { display: flex; align-items: center; gap: 10px; padding: 25px 0; color: var(--ucr-muted); } .ucr-spinner { width: 18px; height: 18px; border: 2px solid #ddd; border-top-color: var(--ucr-accent-solid); border-radius: 50%; animation: ucr-spin .7s linear infinite; } @keyframes ucr-spin { to { transform: rotate(360deg); } } /* ========================= ПАГИНАЦИЯ ========================= */ .ucr-reviews__pagination { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 22px; } .ucr-page { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--ucr-accent-border); border-radius: 7px; background: #fff; color: var(--ucr-accent-dark); font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; } .ucr-page:hover { background: var(--ucr-accent-soft); border-color: var(--ucr-accent); color: var(--ucr-accent-dark); } .ucr-page.is-active { background: var(--ucr-accent); border-color: var(--ucr-accent); color: #fff; } /* ========================= МОДАЛЬНОЕ ОКНО ========================= */ .ucr-modal[hidden] { display: none !important; } .ucr-modal { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; background: rgba(0,0,0,.55); } .ucr-modal__dialog { position: relative; width: min(820px,100%); padding: 28px; background: #fff; border: 1px solid rgba(118,171,39,.18); border-radius: 16px; box-shadow: 0 20px 80px rgba(0,0,0,.25); } .ucr-modal__title { margin: 0 0 24px; font-size: 26px; } /* кнопка закрытия тоже зелёная */ .ucr-modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ucr-accent); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s ease; } .ucr-modal__close:hover { background: var(--ucr-accent-dark); color: #fff; } /* ========================= ФОРМА ========================= */ .ucr-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; } .ucr-field { display: flex; flex-direction: column; gap: 7px; } .ucr-field--full { margin-top: 16px; } .ucr-field__label { font-size: 13px; font-weight: 700; } .ucr-field__input, .ucr-field__textarea { width: 100%; padding: 12px 13px !important; border: 1px solid #ddd !important; border-radius: 8px !important; background: #fff; font: inherit; outline: none; transition: border-color .2s ease, box-shadow .2s ease; } .ucr-field__textarea { min-height: 130px; resize: vertical; } .ucr-field__textarea--short { min-height: 92px; } .ucr-field__input:focus, .ucr-field__textarea:focus { border-color: var(--ucr-accent-solid) !important; box-shadow: 0 0 0 3px rgba(118,171,39,.12); } /* ========================= ОЦЕНКА ========================= */ .ucr-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; } .ucr-rating-input input { position: absolute; opacity: 0; pointer-events: none; } .ucr-rating-input label { color: #ddd; font-size: 30px; line-height: 1; cursor: pointer; } .ucr-rating-input label:hover, .ucr-rating-input label:hover ~ label, .ucr-rating-input input:checked ~ label { color: var(--ucr-stars); } /* ========================= ЗАГРУЗКА ФОТО ========================= */ .ucr-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; cursor: pointer; } .ucr-upload input { display: none; } .ucr-upload__button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border-radius: 7px; background: var(--ucr-accent); color: #fff; font-size: 13px; font-weight: 700; transition: background .2s ease; } .ucr-upload:hover .ucr-upload__button { background: var(--ucr-accent-dark); } .ucr-upload__hint { color: #999; font-size: 12px; } .ucr-upload__preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; } .ucr-upload__preview img { width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--ucr-accent-border); border-radius: 7px; } /* ========================= СООБЩЕНИЯ ========================= */ .ucr-form__message { min-height: 20px; margin: 14px 0 8px; font-size: 13px; } .ucr-form__message.is-error { color: #b42318; } .ucr-form__message.is-success { color: var(--ucr-accent-dark); } .ucr-btn--submit { min-width: 180px; } /* ========================= HONEYPOT ========================= */ .ucr-honeypot { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; } /* ========================= МОБИЛЬНАЯ ВЕРСИЯ ========================= */ @media (max-width:700px) { .ucr-reviews { padding: 16px 0; } .ucr-reviews__header { align-items: stretch; flex-direction: column; } .ucr-reviews__header .ucr-btn { align-self: flex-start; } .ucr-reviews__title { font-size: 28px; } .ucr-form__grid { grid-template-columns: 1fr; } .ucr-modal__dialog { padding: 22px 16px; } .ucr-review { padding: 20px 17px 20px 20px; } .ucr-review__text { font-size: 14px; } .ucr-review__photo { width: 72px; height: 72px; } } /* чтобы шапка не перекрывала окно */ body.ucr-modal-is-open .header__bottom { z-index: 1 !important; }