:root { --rsec-card-shift: 360px; --rsec-card-height: 900px; }
.app-shell, .app-shell * { box-sizing: border-box; }
.rsec-testimonials-section { padding: 80px 20px 100px; overflow: hidden; position: relative; }
.rsec-testimonials-container { max-width: 1400px; margin: 0 auto; }
.rsec-testimonials-header { text-align: center; margin-bottom: 60px; }
.rsec-testimonials-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 15px; background: linear-gradient(135deg, #ed3106 0%, #5b0f0f 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; }
.rsec-testimonials-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: #888; margin: 0; }
.rsec-slider-wrapper { position: relative; overflow: visible; padding: 30px 0 20px; }
.rsec-slider { position: relative; --card-height: var(--rsec-card-height, 900px); min-height: calc(var(--card-height) + 80px); touch-action: pan-y; display: grid; place-items: center; padding: 0 40px; }
.rsec-card { width: min(440px, 92vw); height: min(var(--card-height), 90vh); min-height: min(var(--card-height), 90vh); max-height: min(var(--card-height), 90vh); background: linear-gradient(145deg, #111 0%, #1f1f1f 100%); border-radius: 20px; padding: 20px 32px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border: 1px solid #222; box-shadow: 0 10px 40px rgba(0,0,0,0.45); position: absolute; left: 50%; top: 0; transform: translate(-50%, 0) scale(0.9); opacity: 0; pointer-events: none; transition: transform .7s cubic-bezier(.4,0,.2,1), opacity .5s ease, box-shadow .5s ease, filter .5s ease, border-color .35s ease; }
.rsec-card:hover { border-color: #f20808e2; }
.rsec-card.active { transform: translate(calc(-50% + var(--offset, 0) * var(--rsec-card-shift, 360px)), 0) scale(1); opacity: 1; z-index: 3; pointer-events: auto; box-shadow: 0 15px 60px rgba(237,49,6,0.35); }
.rsec-card.left { transform: translate(calc(-50% + var(--offset, -1) * var(--rsec-card-shift, 360px)), 12px) scale(0.92); opacity: 0.7; z-index: 2; filter: blur(0.25px); }
.rsec-card.right { transform: translate(calc(-50% + var(--offset, 1) * var(--rsec-card-shift, 360px)), 12px) scale(0.92); opacity: 0.7; z-index: 2; filter: blur(0.25px); }
.rsec-card.hidden { opacity: 0; z-index: 1; pointer-events: none; transform: translate(calc(-50% + var(--offset, 2) * var(--rsec-card-shift, 360px)), 40px) scale(0.85); filter: blur(0.6px); }
.rsec-card-body { display: flex; flex-direction: column; gap: 18px; flex: 1; justify-content: space-between; }
.rsec-card-footer { display: flex; flex-direction: column; gap: 12px; }
.rsec-quote { font-size: 3em; color: #ef0e0a14; opacity: 0.3; margin: 0 0 12px; line-height: 1; }
.rsec-text { font-size: 1.05em; line-height: 1.7; color: #ccc; margin: 0 0 12px; font-style: italic; letter-spacing: 0.1px; overflow: hidden; min-height: 130px; display: flex; align-items: center; justify-content: center; text-align: center; }
.rsec-logo-block { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 6px; min-height: 210px; justify-content: center; }
.rsec-logo-img { width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 10px 25px rgba(0,0,0,0.35)); }
.rsec-logo-fallback { width: 160px; height: 160px; border-radius: 24px; background: linear-gradient(135deg, #ed3106 0%, #5b0f0f 100%); display: grid; place-items: center; font-size: 2.2em; font-weight: 700; color: #fff; }
.rsec-logo-word { font-size: 1.3em; letter-spacing: 2px; color: rgba(255,255,255,0.7); text-transform: uppercase; font-weight: 700; }
.rsec-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); margin: 12px 0 18px; }
.rsec-rating { font-size: 1.3em; color: #ff4500; margin: 0; }
.rsec-rating-row { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 12px; min-height: 70px; }
.rsec-rating-note { font-size: 0.95em; color: #bbb; text-align: center; }
.rsec-client { display: flex; align-items: center; gap: 15px; padding-top: 20px; border-top: 1px solid #333; min-height: 110px; }
.rsec-avatar { width: 90px; height: 90px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.3em; color: white; font-weight: 700; flex-shrink: 0; overflow: hidden; background: linear-gradient(135deg, #ed3106 0%, #2f2e30 100%); border: 1px solid #2c2c2c; }
.rsec-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rsec-avatar-icon { display: inline-block; width: 52%; height: 52%; background: #fff; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5zm0 2c-3.866 0-7 2.239-7 5v1h14v-1c0-2.761-3.134-5-7-5z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5zm0 2c-3.866 0-7 2.239-7 5v1h14v-1c0-2.761-3.134-5-7-5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.rsec-details { flex-grow: 1; }
.rsec-name { font-size: 1.1em; font-weight: 700; color: #fff; margin: 0 0 5px; }
.rsec-position { font-size: 0.85em; color: #888; margin: 0 0 3px; }
.rsec-company { font-size: 0.8em; color: #666; font-weight: 600; margin: 0; }
.rsec-tag { display: inline-block; padding: 6px 15px; background: linear-gradient(135deg, #ed3106 0%, #5b0f0f 100%); color: white; border-radius: 15px; font-size: 0.75em; font-weight: 600; margin: 15px 0 0; text-transform: uppercase; letter-spacing: 0.5px; align-self: flex-start; }
.rsec-btn { margin-top: 20px; padding: 12px 25px; background: linear-gradient(135deg, #ed3106 0%, #5b0f0f 100%); color: white; border: none; border-radius: 25px; font-size: 0.9em; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(237,49,6,0.35); width: 100%; }
.rsec-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(237,49,6,0.5); }
.rsec-nav { display: flex; justify-content: center; gap: 20px; margin-top: 50px; }
.rsec-nav-btn { background: linear-gradient(135deg, #ed3106 0%, #5b0f0f 100%); border: none; width: 55px; height: 55px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.8em; color: white; transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(237,49,6,0.35); }
.rsec-nav-btn:hover { transform: scale(1.08); box-shadow: 0 8px 25px rgba(237,49,6,0.5); }
.rsec-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.rsec-modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); align-items: center; justify-content: center; animation: rsecFadeIn .3s ease; padding: 10px; }
.rsec-modal.active { display: flex; }
@keyframes rsecFadeIn { from { opacity: 0; } to { opacity: 1; } }
.rsec-modal-content { background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%); padding: 40px; border-radius: 20px; width: min(82vw, 1200px); max-width: 1200px; max-height: 90vh; overflow-y: auto; position: relative; border: 1px solid #5b0f0f; box-shadow: 0 20px 60px rgba(237,49,6,0.35); animation: rsecSlideUp .3s ease; margin: 20px; }
@keyframes rsecSlideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.rsec-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #333; }
.rsec-modal-title { font-size: clamp(1.3rem, 3vw, 1.8rem); color: white; background: linear-gradient(135deg, #ed3106 0%, #5b0f0f 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0; font-weight: 700; }
.rsec-close { background: none; border: none; color: #888; font-size: 2em; cursor: pointer; transition: color .3s ease; padding: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.rsec-close:hover { color: #ed3106; }
.rsec-pdf-placeholder { width: 100%; height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%); border: 2px dashed rgba(237,49,6,0.6); border-radius: 10px; color: #888; text-align: center; padding: 40px 20px; }
.rsec-pdf-info { margin-top: 30px; padding: 20px; background: rgba(237,49,6,0.08); border-radius: 10px; border: 1px solid rgba(237,49,6,0.35); color: #ccc; }
.rsec-pdf-info p { margin: 10px 0; line-height: 1.6; }
@media (max-width: 1200px) {
  :root { --rsec-card-shift: 300px; }
  .rsec-card.left { transform: translate(calc(-50% + var(--offset, -1) * var(--rsec-card-shift, 300px)), 10px) scale(0.9); }
  .rsec-card.right { transform: translate(calc(-50% + var(--offset, 1) * var(--rsec-card-shift, 300px)), 10px) scale(0.9); }
}
@media (max-width: 768px) {
  .rsec-testimonials-section { padding: 60px 15px; }
  :root { --rsec-card-height: 780px; --rsec-card-shift: 240px; }
  .rsec-slider { min-height: auto; display: block; padding: 0; }
  .rsec-card { position: relative; left: auto; top: auto; width: 94vw; max-width: 440px; margin: 0 auto; height: auto; min-height: auto; max-height: none; padding: 18px 20px 26px; gap: 14px; transform: translateY(16px) scale(0.96); opacity: 0; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,0.32); transition: transform .4s ease, opacity .3s ease; will-change: transform, opacity; display: none; }
  .rsec-card.left, .rsec-card.right { display: none; }
  .rsec-card.active { display: block; opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); animation: rsecMobileIn .45s cubic-bezier(.4,0,.2,1); }
  .rsec-card.hidden { display: none; }
  .rsec-text { font-size: 0.98em; min-height: 100px; }
  .rsec-logo-block { min-height: 170px; }
  .rsec-logo-img, .rsec-logo-fallback { width: 130px; height: 130px; }
  .rsec-rating-row { min-height: 60px; }
  .rsec-client { min-height: 96px; }
  .rsec-nav { margin-top: 24px; }
  .rsec-nav-btn { width: 48px; height: 48px; font-size: 1.6em; }
  .rsec-modal-content { width: min(90vw, 1000px); }
  .rsec-pdf-placeholder { height: 70vh; }
  @keyframes rsecMobileIn {
    from { opacity: 0; transform: translateY(28px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
@media (max-width: 480px) {
  :root { --rsec-card-height: 720px; }
  .rsec-card { width: 94vw; padding: 16px 16px 24px; }
  .rsec-text { min-height: 90px; }
  .rsec-logo-block { min-height: 150px; }
  .rsec-logo-img, .rsec-logo-fallback { width: 110px; height: 110px; }
  .rsec-nav { gap: 12px; }
  .rsec-nav-btn { width: 44px; height: 44px; font-size: 1.4em; }
  .rsec-modal-content { width: 94vw; padding: 28px 18px; }
  .rsec-pdf-placeholder { height: 65vh; }
}
