/* FLYLAB reviews — shared styles for js/flylab-reviews.js blocks and the reviews page */
.rv-section { background: #121212; color: #fff; padding: 80px 0; }
.rv-section[hidden] { display: none; }
.rv-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.rv-label { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #00FF88; margin-bottom: 12px; }
.rv-title { font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -0.5px; margin: 0 0 16px; color: #fff; }
.rv-stats { font-size: 16px; color: #8A8A8A; margin-bottom: 28px; min-height: 1em; }
.rv-stats strong { color: #fff; font-size: 20px; }
.rv-stats .rv-stars { font-size: 18px; }

.rv-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.rv-filter button { font: inherit; font-size: 13px; font-weight: 600; color: #cfcfcf; background: transparent; border: 1.5px solid rgba(255,255,255,0.18); border-radius: 100px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.rv-filter button:hover { border-color: #00FF88; color: #fff; }
.rv-filter button.is-active { background: #00FF88; border-color: #00FF88; color: #0A0A0A; }

.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.rv-card { margin: 0; padding: 24px; border-radius: 22px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); display: flex; flex-direction: column; gap: 14px; }
.rv-card[hidden] { display: none; }
.rv-stars { color: #00FF88; letter-spacing: 2px; font-size: 16px; }
.rv-text { margin: 0; font-size: 16px; line-height: 1.65; color: #e8e8e8; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.rv-story { display: none; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.rv-story p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: #cfcfcf; white-space: pre-line; }
.rv-k { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #00FF88; }
.rv-card.is-open .rv-text { -webkit-line-clamp: unset; display: block; }
.rv-card.is-open .rv-story { display: grid; }
.rv-more { align-self: flex-start; font: inherit; font-size: 13px; font-weight: 700; color: #00FF88; background: none; border: 0; padding: 8px 0; min-height: 44px; cursor: pointer; }
.rv-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rv-photo, .rv-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rv-avatar { display: grid; place-items: center; background: #00FF88; color: #0A0A0A; font-weight: 800; font-size: 20px; }
.rv-name { font-weight: 700; color: #fff; }
.rv-course { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .5px; color: #8A8A8A; }
.rv-empty { color: #8A8A8A; }
.rv-all { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.rv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 100px; font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid #fff; color: #fff; }
.rv-btn:hover { background: #fff; color: #121212; }
.rv-btn--primary { background: #00FF88; border-color: #00FF88; color: #0A0A0A; }
.rv-btn--primary:hover { background: #00FFA0; border-color: #00FFA0; color: #0A0A0A; }

/* mini — соцпруф рядом с CTA (переиспользует .rv-card) */
.rv-mini-section { padding: 64px 0; }
.rv-mini-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.rv-mini-badge { font-size: 16px; color: #8A8A8A; }
.rv-mini-badge strong { color: #fff; font-size: 20px; }
.rv-mini-badge .rv-stars { font-size: 18px; }
.rv-mini-link { color: #00FF88; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.rv-mini-link:hover { text-decoration: underline; }
.rv-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 700px) { .rv-mini-grid { grid-template-columns: 1fr; } }

/* form */
.rv-form { max-width: 720px; display: grid; gap: 18px; }
.rv-field { display: grid; gap: 8px; }
.rv-field > span, .rv-field legend { font-weight: 600; font-size: 15px; color: #fff; }
.rv-hint { font-size: 13px; color: #8A8A8A; font-weight: 400; }
.rv-req { color: #00FF88; }
.rv-form input[type=text], .rv-form select, .rv-form textarea {
  font: inherit; font-size: 16px; color: #fff; background: #0A0A0A; border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.rv-form textarea { min-height: 140px; resize: vertical; }
.rv-form input:focus, .rv-form select:focus, .rv-form textarea:focus { outline: none; border-color: #00FF88; }
.rv-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.rv-rating { border: 0; padding: 0; margin: 0; }
.rv-rating-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rv-rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rating-stars label { font-size: 36px; line-height: 1; color: #3a3a3a; cursor: pointer; padding: 4px; min-width: 44px; text-align: center; }
.rv-rating-stars input:checked ~ label, .rv-rating-stars label:hover, .rv-rating-stars label:hover ~ label { color: #00FF88; }
.rv-rating-stars input:focus-visible + label { outline: 2px solid #00FF88; border-radius: 8px; }
.rv-details { border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 4px 16px; }
.rv-details summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: #fff; }
.rv-details[open] { padding-bottom: 16px; }
.rv-details .rv-field + .rv-field { margin-top: 12px; }
.rv-photo-preview { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.rv-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #cfcfcf; line-height: 1.5; }
.rv-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: #00FF88; flex-shrink: 0; }
.rv-check a { color: #00FF88; }
.rv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rv-form-error { background: rgba(255,80,80,0.12); border: 1px solid rgba(255,80,80,0.4); color: #ffb3b3; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.rv-form button[type=submit] { justify-self: start; font: inherit; font-weight: 700; font-size: 16px; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 100px; background: #00FF88; color: #0A0A0A; cursor: pointer; }
.rv-form button[type=submit]:disabled { opacity: .6; cursor: wait; }
.rv-thanks { max-width: 720px; padding: 28px; border-radius: 22px; border: 1px solid #00FF88; }
.rv-thanks h3 { margin: 0 0 8px; font-size: 28px; color: #00FF88; }
.rv-thanks p { margin: 0; color: #e8e8e8; }

@media (max-width: 700px) {
  .rv-section { padding: 56px 0; }
  .rv-grid { grid-template-columns: 1fr; }
  .rv-row, .rv-story { grid-template-columns: 1fr; }
  .rv-form button[type=submit] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .rv-card, .rv-btn { transition: none; } }
