/* ===== Модуль «Опрос о лимите на легионеров» ===== */

.survey-teaser{padding-top:18px}
.survey-entry{position:relative;display:grid;grid-template-columns:46px 1fr;align-items:center;gap:12px;width:100%;padding:15px 58px 15px 15px;border:0;border-radius:14px;overflow:hidden;background:linear-gradient(120deg,#142f72 0%,#235db8 100%);color:#fff;text-align:left;box-shadow:0 10px 24px rgba(20,47,114,.16)}
.survey-entry:after{content:"";position:absolute;right:-35px;top:-48px;width:112px;height:112px;border:16px solid rgba(255,255,255,.09);border-radius:50%}
.survey-entry:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(20,47,114,.22)}
.survey-entry-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#fff;color:var(--blue)}
.survey-entry-icon svg{width:25px;height:25px}
.survey-entry-copy{position:relative;z-index:1;min-width:0}
.survey-entry-copy strong{display:block;font-family:'Gilroy Brand','PT Sans Brand',sans-serif;font-weight:700;line-height:1.2}
.survey-entry-copy small{display:block;margin-top:5px;color:#dce8ff;line-height:1.3}
.survey-nudge{position:absolute;z-index:2;right:12px;top:12px;display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.15);color:#fff;backdrop-filter:blur(5px)}
.survey-nudge svg{width:21px;height:21px;transform-origin:50% 10%;animation:bell-nudge 2.8s .7s 2 both}
.survey-nudge b{position:absolute;right:-3px;top:-4px;display:grid;place-items:center;width:17px;height:17px;border:2px solid #235db8;border-radius:50%;background:#ffd66e;color:#112d67;line-height:1;font-weight:900}
@keyframes bell-nudge{0%,30%,100%{transform:rotate(0)}5%,15%,25%{transform:rotate(12deg)}10%,20%{transform:rotate(-12deg)}}

/* Тизер в состоянии «опрос завершён»: серый, зелёная галочка, не кликается */
.survey-entry.is-done{background:#e8ebf1;color:#79839a;box-shadow:none;cursor:default}
.survey-entry.is-done:hover{transform:none;box-shadow:none}
.survey-entry.is-done .survey-entry-icon{background:#f3f5f9;color:#8b93a7}
.survey-entry.is-done .survey-entry-copy small{color:#98a1b5}
.survey-nudge.is-ok{background:#dcf5e4;color:#16a34a}
.survey-nudge.is-ok svg{animation:none}

/* Страница результатов опроса (#opros-result) */
.result-wrap{padding-top:24px}
.result-kpi{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:16px 0 8px}
.result-kpi-card{padding:14px;border:1px solid var(--border);border-radius:14px;background:#fff}
.result-kpi-card strong{display:block;font-weight:900;color:var(--ink)}
.result-kpi-card span{display:block;margin-top:4px;color:var(--muted);}
.result-chart{margin-top:16px;padding:14px;border:1px solid var(--border);border-radius:16px;background:#fff}
.result-chart-title{margin:0 0 6px;line-height:1.35;font-weight:700;color:var(--ink)}
.result-chart-host{min-height:180px}
.result-chart-host .apexcharts-svg{width:100%!important;height:100%!important;fill:initial;stroke:initial;stroke-width:initial}
.result-status{margin-top:16px;color:var(--muted);}
/* На широком экране страница результатов расширяется (прогрессивно). */
@media (min-width:760px){
  .app:has(#result-view:not([hidden])){max-width:920px}
}
@media (min-width:760px){
  .result-kpi{grid-template-columns:repeat(4,1fr)}
}

/* Страница результатов КХЛ на широком экране: разворачиваем контейнер
   и раскладываем графики по два в ряд. Мобильная вёрстка не меняется. */
@media (min-width:760px){
  .app:has(#khl-result-view:not([hidden])){max-width:1180px}
  #khl-result-charts{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
  #khl-result-charts .result-chart{margin-top:0}
  #khl-result-charts .result-chart.is-wide{grid-column:1 / -1}
}

#survey-view{padding-bottom:34px}
.survey-wrap{padding-top:24px}
.survey-kicker{margin:0 0 7px;color:var(--blue);font-weight:700;text-transform:uppercase;letter-spacing:.6px}
.survey-title{margin:0;font-family:'Gilroy Brand','PT Sans Brand',sans-serif;line-height:1.08;font-weight:900;letter-spacing:-.4px}
.survey-intro{margin:9px 0 20px;color:var(--muted);}
.survey-progress-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 8px;color:var(--muted);}
.survey-progress-head strong{color:var(--ink)}
.survey-progress{height:7px;margin-bottom:24px;border-radius:10px;background:#e8edf6;overflow:hidden}
.survey-progress span{display:block;height:100%;width:33.333%;border-radius:inherit;background:linear-gradient(90deg,#123f91,#306dd0);transition:width .25s ease}
.question-card{padding:18px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(20,47,114,.06)}
.question-number{margin:0 0 7px;color:var(--blue);font-weight:700}
.question-card h2{margin:0 0 16px;font-family:'Gilroy Brand','PT Sans Brand',sans-serif;line-height:1.2;font-weight:900}
.survey-options{display:grid;gap:9px}
.survey-option{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:10px;width:100%;min-height:50px;padding:10px 12px;border:1px solid #d9e0ed;border-radius:12px;background:#fff;text-align:left;font-weight:600}
.survey-option:hover{border-color:#9eb4d6;background:#f8fbff}
.survey-option[aria-pressed="true"]{border-color:var(--blue);background:#eef4ff;color:#123f91}
.option-mark{display:grid;place-items:center;width:20px;height:20px;border:1.5px solid #aab6ca;border-radius:50%}
.survey-option[aria-pressed="true"] .option-mark{border:6px solid var(--blue);background:#fff}
.survey-error{min-height:18px;margin:8px 2px 0;color:#b42336;}
/* Шаг «Контакт / розыгрыш» */
.contact-hint{margin:0 0 7px;color:var(--muted);}
.survey-contact-label{display:block;margin-top:4px;color:var(--ink);font-weight:700}
.survey-contact{width:100%;min-height:52px;padding:0 14px;border:1px solid #cbd5e5;border-radius:12px;font-family:inherit;color:var(--ink);outline:none}
.survey-contact:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(22,65,148,.12)}
.contact-example{margin:0;color:var(--muted);}
.survey-actions{display:grid;grid-template-columns:104px 1fr;gap:9px;margin-top:14px}
.survey-button{min-height:47px;border-radius:12px;font-weight:700}
.survey-button.back{border:1px solid #cbd5e5;background:#fff;color:#55647d}
.survey-button.next{background:var(--blue);color:#fff}
.survey-button.next:disabled{background:#c9d1df;color:#f7f8fb;cursor:not-allowed}
.survey-dots{display:flex;justify-content:center;gap:6px;margin-top:18px}
.survey-dots i{width:7px;height:7px;border-radius:50%;background:#d8deea}
.survey-dots i.active{width:20px;border-radius:8px;background:var(--blue)}
.survey-finish{text-align:center;padding:30px 18px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(180deg,#f4f8ff,#fff)}
.finish-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 17px;border-radius:20px;background:var(--blue);color:#fff;box-shadow:0 10px 25px rgba(65,72,222,.2)}
.finish-icon svg{width:32px;height:32px}
.survey-finish h2{margin:0;font-family:'Gilroy Brand','PT Sans Brand',sans-serif;font-weight:900}
.survey-finish p{margin:10px auto 20px;max-width:300px;color:var(--muted);}
.survey-finish .survey-button{width:100%}
@media(max-width:360px){
  .survey-entry{padding:13px 54px 13px 13px}
  .survey-entry-copy strong{}
  .survey-wrap{padding-top:20px}
  .survey-title{}
  .question-card{padding:15px}
  .survey-actions{grid-template-columns:92px 1fr}
}
@media(prefers-reduced-motion:reduce){
  .survey-nudge svg{animation:none}
}
