/* Виджет оценки после скачивания (js/rate.js).
   Язык шторки .pdfready-*: белый, один акцент (янтарные звёзды), мягкие
   сгруппированные поля без рамок, ничего лишнего. */

.rate { position: relative; text-align: center; color: #1d1d1f; }
.rate-q { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.rate-stars { display: flex; justify-content: center; gap: 4px; margin: 6px 0 0; transition: transform .25s ease; }
.rate-star { width: 48px; height: 48px; border: 0; background: none; padding: 0; cursor: pointer; color: #d6d6db; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; transition: color .12s ease, transform .12s ease; -webkit-tap-highlight-color: transparent; }
.rate-star svg { width: 36px; height: 36px; fill: currentColor; }
.rate-star:hover { transform: scale(1.06); }
.rate-star.on { color: #f5a524; }
.rate-star.pop { animation: rate-pop .32s cubic-bezier(.2, .9, .3, 1.4); }
.rate-star:focus-visible { outline: 2px solid #667eea; outline-offset: 2px; }
.rate-stars-small { transform: scale(.72); margin-top: 0; }
@keyframes rate-pop { 0% { transform: scale(1); } 45% { transform: scale(1.32); } 100% { transform: scale(1); } }

.rate-word { min-height: 18px; margin: 2px 0 0; font-size: 13px; font-weight: 600; color: #f5a524; letter-spacing: .01em; }

/* Шаг «пара слов»: раскрывается мягко, поля - одна сгруппированная карточка */
.rate-more { display: grid; gap: 10px; margin-top: 12px; text-align: left; opacity: 0; transform: translateY(6px); transition: opacity .28s ease, transform .28s cubic-bezier(.2, .8, .2, 1); }
.rate-more[hidden] { display: none; }
.rate-more-in { opacity: 1; transform: none; }
.rate-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rate-group { background: #f5f5f7; border-radius: 14px; overflow: hidden; }
.rate-name, .rate-text { display: block; width: 100%; box-sizing: border-box; border: 0; background: transparent; padding: 12px 14px; font: inherit; font-size: 15px; color: #1d1d1f; }
.rate-name { border-bottom: 1px solid rgba(0,0,0,.07); }
.rate-name::placeholder, .rate-text::placeholder { color: #8e8e93; }
.rate-name:focus, .rate-text:focus { outline: none; background: #eef0fb; }
.rate-text { resize: none; min-height: 84px; line-height: 1.45; }
.rate-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rate-skip { background: none; border: 0; color: #86868b; font: inherit; font-size: 14px; padding: 8px 4px; cursor: pointer; }
.rate-skip:hover { color: #1d1d1f; }
.rate-send { border: 0; border-radius: 980px; padding: 11px 22px; background: #667eea; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s ease; }
.rate-send:hover { background: #5568d3; }
.rate-send:disabled { opacity: .55; cursor: default; }
.rate-send-err { background: #e74c3c; }

/* Состояние «спасибо» */
.rate-done { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; text-align: left; animation: rate-in .3s ease; }
.rate-done[hidden] { display: none; }
.rate-done-icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #e6f4ea; color: #2e7d4f; display: inline-flex; align-items: center; justify-content: center; }
.rate-done-icon svg { width: 16px; height: 16px; }
.rate-done strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.rate-done-note { display: block; font-size: 12.5px; color: #86868b; line-height: 1.35; }
.rate-done-note:empty { display: none; }
@keyframes rate-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Внутри шторки «PDF tayyor» - разделитель сверху */
.rate-mount .rate { border-top: 1px solid rgba(0,0,0,.08); margin-top: 18px; padding-top: 16px; }
.rate-mount:empty { display: none; }

/* Плавающая карточка (десктоп, студия) */
.rate-host { position: fixed; right: 20px; bottom: 20px; z-index: 1200; width: min(360px, calc(100vw - 40px)); opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.rate-host-in { opacity: 1; transform: none; }
.rate-host:empty { display: none; }
.rate-float { background: #fff; border-radius: 18px; box-shadow: 0 20px 48px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.04); padding: 20px 22px 18px; }
.rate-float.rate-out { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.rate-close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f5f5f7; color: #86868b; font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rate-close:hover { background: #ebebf0; color: #1d1d1f; }

@media (prefers-reduced-motion: reduce) {
  .rate-star, .rate-more, .rate-host, .rate-float, .rate-stars { transition: none; animation: none; }
  .rate-star.pop, .rate-done { animation: none; }
}
