/* Interaction polish for the questionnaires (design-engineering pass, 22 Nov 2026) */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
.rn, .rn .qz-opt, .rn .qz-in input, .rn .qz-in textarea { font-family: 'Inter Tight', system-ui, sans-serif; }

.rn .btn { transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out), opacity 160ms ease; }
.rn .btn:active { transform: scale(0.97); }
.rn .btn.off, .rn .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .45; }
.rn .btn.off:active { transform: none; }
.rn .btn svg { transition: transform 200ms var(--ease-out); }

.rn .qz-opt { transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.rn .qz-opt:hover { transform: none; }
.rn .qz-opt:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .rn .qz-opt:hover { border-color: #fff; }
}
.rn .qz-bar i { transition: background-color 250ms var(--ease-out); }
.rn .wz-step { animation: wzIn 240ms var(--ease-out) both; }
.rn .pc-lec { animation: wzIn 260ms var(--ease-out) both; }
@keyframes wzIn { from { opacity: 0; transform: translateY(8px); } }
.rn .qz-in input { font-size: max(16px, 1em); }

.rn-sending .rn .btn { opacity: .6; pointer-events: none; }
.rn-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: min(520px, calc(100vw - 32px)); padding: 14px 18px; background: #0b231a; color: #fff; border: 1px solid #e4ff3a; font: 500 15px/1.45 'Inter Tight', system-ui, sans-serif; transform: translate(-50%, 0); opacity: 1; transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out); }
.rn-toast[data-hidden] { transform: translate(-50%, 12px); opacity: 0; transition-duration: 180ms; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .rn .wz-step, .rn .pc-lec { animation: none; }
  .rn .btn:active, .rn .qz-opt:active { transform: none; }
  .rn-toast { transition: opacity 150ms ease; transform: translate(-50%, 0) !important; }
}

@media (max-width: 760px) {
  .rn .hero .map { opacity: .14 !important; }
}

/* Homepage hero video (Pexels, Max Medyk, free commercial use) */
.rn .hero { position: relative; overflow: hidden; }
.rn .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; z-index: 0; }
.rn .hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,35,26,.9) 0%, rgba(11,35,26,.66) 52%, rgba(11,35,26,.3) 100%), linear-gradient(0deg, rgba(11,35,26,.55), rgba(11,35,26,0) 40%); }
.rn .hero:has(.hero-video) .hero-in { position: relative; z-index: 2; }
@media (max-width: 640px) {
  .rn .hero-veil { background: linear-gradient(0deg, rgba(11,35,26,.92) 0%, rgba(11,35,26,.66) 60%, rgba(11,35,26,.3) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .rn .hero-video { display: none; }
  .rn .hero:has(.hero-video) { background: #0b231a url(hero-poster.jpg) 55% 50% / cover no-repeat; }
}
