/* User reviews — form + cards (Очки.бел optics palette) */

.or-form-hero__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e667e;
}

.or-form-card {
  padding: 28px 28px 24px;
  min-width: 0;
  overflow: hidden;
}

.or-form {
  display: grid;
  gap: 18px;
}

.or-form .form-group {
  margin: 0;
}

.or-form label,
.or-rating-field legend {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rp-text, #1a2b4a);
}

.or-form input:not([type="radio"]):not([type="checkbox"]),
.or-form select,
.or-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rp-line, rgba(26, 43, 74, 0.14));
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--rp-text, #1a2b4a);
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.or-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a6678' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.or-form input:focus,
.or-form select:focus,
.or-form textarea:focus {
  outline: none;
  border-color: rgba(48, 143, 173, 0.55);
  box-shadow: 0 0 0 3px rgba(48, 143, 173, 0.12);
}

.or-form textarea {
  resize: vertical;
  min-height: 110px;
}

.or-form .form-group--full {
  grid-column: 1 / -1;
}

.or-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin-bottom: 4px;
}

.or-form__grid--contact {
  margin-top: 8px;
}

.or-form__grid--optics-pick {
  margin-bottom: 4px;
}

.or-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.or-char-hint {
  font-weight: 400;
  color: var(--rp-muted);
  font-size: 0.88em;
}

.or-char-counter {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--rp-muted);
}

.or-char-counter.is-valid {
  color: #1e667e;
}

.or-contact-note {
  margin: 4px 0 18px;
  font-size: 0.88rem;
  color: var(--rp-muted);
}

.or-rating-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.or-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.or-rating-input__star {
  cursor: pointer;
  color: #c8c0b8;
  font-size: 1.65rem;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}

.or-rating-input__star input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.or-rating-input__star:hover,
.or-rating-input__star:hover ~ .or-rating-input__star,
.or-rating-input__star:has(input:checked),
.or-rating-input__star:has(~ .or-rating-input__star input:checked) {
  color: #308fad;
}

.or-rating-input__star:focus-within {
  outline: 2px solid #308fad;
  outline-offset: 2px;
  border-radius: 4px;
}

.or-form__actions {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.or-form__actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #308fad;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.or-form__actions .btn-primary:hover {
  background: #1e667e;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 102, 126, 0.22);
}

.or-form__actions .btn-primary:focus-visible {
  outline: 2px solid #1e667e;
  outline-offset: 2px;
}

.or-consent {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--rp-muted);
}

.or-consent a {
  color: #1e667e;
  font-weight: 600;
}

.or-flash {
  margin-bottom: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .or-form__grid,
  .or-form__grid--contact {
    grid-template-columns: 1fr;
  }

  .or-form-card {
    padding: 22px 18px;
  }
}

/* Rating badge — Очки.бел */
.optics-rating--ochki {
  background: #e6f2f6;
  color: #1e667e;
}

.optics-rating--ochki:hover {
  background: #d7eaf0;
  box-shadow: 0 4px 14px rgba(30, 102, 126, 0.12);
  color: #1e667e;
}

.optics-brand-icon--ochki {
  border-radius: 4px;
}

/* Reviews section on optics detail */
.or-section {
  padding: 36px 0 12px;
  background: #eee8e2;
}

.or-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.or-section__title {
  margin: 0;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(1.65rem, 1.4rem + 0.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a2b4a;
}

.or-section__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: #5a6678;
}

.or-section__avg {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e667e;
}

.or-section__count {
  color: #5a6678;
}

.or-section__add {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #1e667e;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(11, 11, 13, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.or-section__add:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 102, 126, 0.12);
  color: #1e667e;
}

.or-list {
  display: grid;
  gap: 16px;
}

.or-card {
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(11, 11, 13, 0.04);
}

.or-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.or-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.or-card__avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e6f2f6;
  color: #308fad;
}

.or-card__avatar svg {
  width: 20px;
  height: 20px;
}

.or-card__name {
  margin: 0;
  font-weight: 700;
  color: #1a2b4a;
}

.or-card__date {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: #7a8699;
}

.or-card__title {
  margin: 0 0 14px;
  font-family: "Onest", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a2b4a;
}

.or-card__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.or-card__block {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.or-card__block p {
  margin: 6px 0 0;
}

.or-card__block--pros {
  background: rgba(48, 143, 173, 0.08);
  border: 1px solid rgba(48, 143, 173, 0.16);
}

.or-card__block--cons {
  background: rgba(180, 83, 75, 0.06);
  border: 1px solid rgba(180, 83, 75, 0.14);
}

.or-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6678;
}

.or-card__block--pros .or-card__label {
  color: #1e667e;
}

.or-card__block--cons .or-card__label {
  color: #9b4a42;
}

.or-card__body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
}

.or-card__body p {
  margin: 0;
}

.or-stars {
  display: inline-flex;
  gap: 2px;
  color: #c8c0b8;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.or-stars--summary {
  font-size: 1rem;
}

.or-star--on {
  color: #308fad;
}

.or-owner-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(48, 143, 173, 0.28);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #5a6678;
}

.or-owner-note a {
  color: #1e667e;
  font-weight: 600;
}

body.page-optics_detail .or-owner-note a:hover,
body.page-optics_detail .or-section__add:hover {
  color: #1e667e;
}

@media (max-width: 720px) {
  .or-card__columns {
    grid-template-columns: 1fr;
  }

  .or-section__head {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .or-section__add,
  .or-rating-input__star {
    transition: none;
  }
}
