/* Опрос участников /otzyv. Фирменный стиль сайта (Нави и медь, Prata / Onest / Jost), без тяжёлой анимации:
   страница открывается в зале по QR-коду, на мобильном интернете. Сначала телефон. */

.fb { background: linear-gradient(180deg, var(--snow) 0%, var(--ice) 100%); color: var(--body); min-height: 70vh; padding: 0 0 40px; }
/* на телефоне — запас под нижнюю панель кнопок, чтобы она ничего не закрывала */
@media (max-width: 719px) { .js .fb { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
.fb__wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.fb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .fb-js-only { display: none !important; }

.fb-testbar { margin: 0; padding: 6px 16px; background: var(--copper-dark); color: #fff; text-align: center; font: 400 11px/1.4 var(--caps); letter-spacing: .12em; text-transform: uppercase; }
.fb-kicker { margin: 0 0 10px; font: 500 12.5px/1.3 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--copper-dark); }
.fb-kicker--light { color: var(--copper-light); }
.fb-title { margin: 0 0 14px; font: 400 clamp(28px, 7vw, 40px)/1.1 var(--display); color: var(--navy); }

/* ---------- карточка семинара: компактная, без украшений ---------- */
.fb-event { margin: 14px 0 0; padding: 16px 18px 15px; border-radius: 2px; background: radial-gradient(90% 120% at 90% 0%, rgba(27, 55, 166, .5), rgba(27, 55, 166, 0) 60%), var(--navy); color: #fff; }
.fb-event .fb-kicker { margin-bottom: 6px; font-size: 11px; }
.fb-event__title { margin: 0; font: 400 clamp(23px, 6vw, 34px)/1.1 var(--display); }
.fb-event__meta { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .82); }
.fb-event__lead { display: none; margin: 12px 0 0; font-size: 15px; color: rgba(255, 255, 255, .86); }
.fb-event__other { display: inline-block; margin-top: 8px; font-size: 14px; color: #fff; text-underline-offset: 3px; }
.fb-event__other:hover { color: var(--copper-light); }

/* ---------- выбор семинара ---------- */
.fb-choose { padding: 24px 0 8px; }
.fb-choose__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fb-choose__list a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.fb-choose__list span { display: block; font: 400 22px/1.2 var(--display); }
.fb-choose__list small { display: block; margin-top: 4px; font-size: 14px; color: var(--steel); }
.fb-choose__list a:hover span { color: var(--cobalt); }

/* ---------- прогресс и шаги ---------- */
.fb-progress { display: grid; gap: 6px; margin: 16px 0 0; }
.fb-progress__text { font-size: 13px; color: var(--steel); }
.fb-progress__bar { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.fb-progress__bar i { position: absolute; inset: 0 auto 0 0; width: 16%; background: var(--navy); transition: width .45s var(--out, ease); }
.fb-form { margin: 0; }
.fb-step { margin: 0; padding: 14px 0 4px; border: 0; min-width: 0; }
.js .fb-step:not(.is-current) { display: none; }
.js .fb-step.is-current { animation: fbIn .45s var(--out, ease) both; }
@keyframes fbIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: none; } }
.fb-step__title { float: left; width: 100%; padding: 0; margin: 0 0 6px; font: 400 clamp(24px, 6vw, 32px)/1.12 var(--display); color: var(--navy); }
.fb-reqnote { margin: 0 0 14px; font-size: 13px; color: var(--steel); }
.fb-step__title + :not(.fb-reqnote) { margin-top: 10px; }
.fb-step__title + * { clear: both; }
html:not(.js) .fb-step + .fb-step { border-top: 1px solid var(--line); margin-top: 18px; }

/* ---------- поля ---------- */
.fb-field { margin: 0 0 16px; }
.fb-label { display: block; margin: 0 0 6px; font-size: 16px; font-weight: 500; color: var(--navy); }
.fb-req { color: var(--copper-dark); }
.fb-note { margin: -2px 0 8px; font-size: 14px; line-height: 1.45; color: var(--steel); }
.fb-field--private .fb-note { padding-left: 12px; border-left: 2px solid var(--copper); }
.fb input[type="text"], .fb textarea, .fb select { width: 100%; padding: 11px 14px; border: 1px solid #C9D2E6; border-radius: 2px; background: #fff; color: var(--navy); font: 400 17px/1.4 var(--text); -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.fb textarea { min-height: 88px; resize: vertical; }
.fb select { padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' stroke='%2355648A' stroke-width='1.5'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.fb input[type="text"]:focus, .fb textarea:focus, .fb select:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.fb ::placeholder { color: #9AA5C2; }
.fb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fb-counter { display: block; margin-top: 4px; text-align: right; font-size: 12px; color: var(--steel); }
.fb-msg { display: block; margin-top: 6px; font-size: 14px; color: var(--error); }
.fb [aria-invalid="true"] { border-color: var(--error) !important; }
.fb-field.is-invalid .fb-label, .is-invalid > .fb-check > span, .fb-check.is-invalid > span { color: var(--error); }
.is-invalid .fb-chip span, .is-invalid.fb-check input, .is-invalid > .fb-check input { border-color: var(--error); }
.fb-alert { margin: 16px 0 0; padding: 12px 0 12px 14px; border-left: 2px solid var(--error); color: var(--error); font-size: 15px; }

/* звёзды: крупные, удобно пальцем; медь — выбранная оценка */
.fb-rate { margin-bottom: 0; padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
.fb-rate .fb-label { margin-bottom: 2px; }
.fb-stars { display: flex; gap: 4px; margin-left: -6px; }
.fb-stars input, .fb-nps__scale input, .fb-option input, .fb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-stars label { width: 46px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 2px; }
.fb-stars svg { width: 34px; height: 34px; fill: none; stroke: #9AA5C2; stroke-width: 1.3; stroke-linejoin: round; transition: fill .15s, stroke .15s, transform .15s; }
.fb-stars label:hover svg { transform: scale(1.06); }
.fb-stars input:focus-visible + label { outline: 2px solid var(--copper); outline-offset: 1px; }
.fb-stars:has(input[value="1"]:checked) label:nth-of-type(-n+1) svg,
.fb-stars:has(input[value="2"]:checked) label:nth-of-type(-n+2) svg,
.fb-stars:has(input[value="3"]:checked) label:nth-of-type(-n+3) svg,
.fb-stars:has(input[value="4"]:checked) label:nth-of-type(-n+4) svg,
.fb-stars:has(input[value="5"]:checked) label:nth-of-type(-n+5) svg { fill: var(--copper); stroke: var(--copper); }

/* NPS 0–10 */
.fb-nps { margin-top: 16px; }
.fb-nps__scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.fb-nps__scale label { height: 42px; display: grid; place-items: center; border: 1px solid #C9D2E6; border-radius: 2px; background: #fff; color: var(--navy); font-size: 15px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.fb-nps__scale input:checked + label { background: var(--navy); border-color: var(--navy); color: #fff; }
.fb-nps__scale input:focus-visible + label { outline: 2px solid var(--copper); outline-offset: 2px; }
.fb-nps__ends { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: 13px; color: var(--steel); }

/* темы: строки с линейками */
.fb-group { margin: 0 0 16px; border-top: 1px solid var(--line); }
.fb-group__title { margin: 14px 0 4px; font: 500 12.5px/1.3 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--copper-dark); }

/* опросы с одним вариантом: круглые отметки, строки с линейками — как темы */
.fb-poll { margin-top: 22px; }
.fb-radio { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 16px; line-height: 1.4; cursor: pointer; }
.fb-radio:first-of-type { border-top: 1px solid var(--line); }
.fb-radio input { width: 22px; height: 22px; margin: 0; border: 1px solid #9AA5C2; border-radius: 50%; background: #fff; cursor: pointer; -webkit-appearance: none; appearance: none; transition: border-width .12s, border-color .12s; }
.fb-radio input:checked { border: 7px solid var(--navy); }
.fb-radio input:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.fb-poll__other { margin: 8px 0 4px; }
.js .fb-poll__other:not(.is-open) { display: none; }

/* галочки */
.fb-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: var(--body); cursor: pointer; }
.fb-check input { width: 24px; height: 24px; margin: 0; border: 1px solid #9AA5C2; border-radius: 2px; background: #fff; display: grid; place-items: center; cursor: pointer; -webkit-appearance: none; appearance: none; }
.fb-check input:checked { background: var(--navy); border-color: var(--navy); }
.fb-check input:checked::after { content: ''; width: 12px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.fb-check input:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.fb-check a { color: var(--cobalt); text-underline-offset: 3px; }
.fb-check small { display: block; margin-top: 2px; font-size: 13px; color: var(--steel); }
.fb-check--row { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 16px; }

/* варианты публикации */
.fb-options { display: grid; gap: 8px; }
.fb-option { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid #C9D2E6; border-radius: 2px; background: #fff; color: var(--navy); font-size: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.fb-option::before { content: ''; width: 20px; height: 20px; border: 1px solid #9AA5C2; border-radius: 50%; grid-row: 1; grid-column: 1; }
.fb-option span { grid-column: 2; }
.fb-option:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.fb-option:has(input:checked)::before { border: 6px solid var(--navy); }
.fb-option:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 2px; }
.fb-legal { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--steel); }
.fb-checks { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* полный текст согласия — раскрывается под галочкой, остаётся на странице */
.fb-consent { margin: 0 0 14px; }
.fb-consent .fb-check { margin-bottom: 4px; }
.fb-more { margin: 0 0 0 36px; font-size: 13px; line-height: 1.5; color: var(--steel); }
.fb-options .fb-more { margin-left: 0; }
.fb-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--cobalt); cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(27, 55, 166, .35); }
.fb-more summary::-webkit-details-marker { display: none; }
.fb-more summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.fb-more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.fb-more p { margin: 4px 0 6px; padding-left: 12px; border-left: 2px solid var(--line); }
.fb-more a, .fb-legal a { color: var(--cobalt); }
.fb-consent > .fb-msg, .fb-check + .fb-msg { margin: 2px 0 0 36px; }

/* контакт и каналы: появляются по галочке «приглашения» или «консультация» */
.fb-contact { margin: 0 0 14px 36px; }
.js .fb-contact:not(.is-open), .js .fb-contact [data-fb-channels]:not(.is-open) { display: none; }
.fb-contact .fb-field:last-child { margin-bottom: 0; }
.fb-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid #C9D2E6; border-radius: 2px; background: #fff; color: var(--navy); font-size: 15px; cursor: pointer; }
.fb-chip span::before { content: ''; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); opacity: .25; }
.fb-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.fb-chip input:checked + span::before { opacity: 1; }
.fb-chip input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }

/* фото */
.fb-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.fb-photos:empty { display: none; }
.fb-photo { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--ice); }
.fb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-photo button { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(13, 24, 66, .78); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.fb-add { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed #9AA5C2; border-radius: 2px; background: #fff; color: var(--navy); font-size: 16px; cursor: pointer; }
.fb-add small { display: block; font-size: 13px; color: var(--steel); }
.fb-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-add:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 2px; }
.fb-add__plus { flex: none; width: 40px; height: 40px; border: 1px solid var(--navy); border-radius: 50%; position: relative; }
.fb-add__plus::before, .fb-add__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--navy); translate: -50% -50%; }
.fb-add__plus::after { rotate: 90deg; }
.fb-add.is-full { display: none; }

.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- кнопки: нижняя панель на телефоне ---------- */
/* ---------- кнопки: на компьютере — сразу под шагом, на телефоне — компактная нижняя панель ---------- */
.fb-nav { display: flex; gap: 10px; margin: 20px 0 0; }
@media (max-width: 719px) {
  .js .fb-nav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(250, 251, 254, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform .2s; }
  .js .fb.is-typing .fb-nav { transform: translateY(110%); }
  .js .fb.is-typing { padding-bottom: 24px; }
}
@media (min-width: 720px) { .fb-nav .fb-btn { flex: 0 0 auto; min-width: 180px; } .fb-nav [data-fb-back] { min-width: 0; } }
.fb-btn { flex: 1; min-height: 48px; padding: 0 20px; border: 1px solid var(--navy); border-radius: 2px; background: var(--navy); color: #fff; font: 500 16px/1 var(--text); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.fb-btn:hover { background: var(--cobalt); border-color: var(--cobalt); }
.fb-btn--ghost { flex: 0 0 auto; padding: 0 16px; background: transparent; color: var(--steel); border-color: #CBD3E6; font-weight: 400; }
.fb-btn--ghost:hover { background: transparent; border-color: var(--navy); color: var(--navy); }
.fb-btn[disabled] { opacity: .6; cursor: progress; }
.fb-btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.js .fb-btn--submit:not(.is-on) { display: none; }
.js .fb-nav [data-fb-next].is-off { display: none; }

/* ---------- спасибо ---------- */
.fb-thanks { padding: 48px 0 24px; text-align: left; }
.fb-thanks:focus { outline: 0; }
.fb-thanks__mark { display: block; width: 60px; height: auto; margin-bottom: 18px; }   /* знак из логотипа, как в шапке */
.fb-thanks__title { margin: 0 0 14px; font: 400 clamp(32px, 8vw, 46px)/1.08 var(--display); color: var(--navy); }
.fb-thanks__text { margin: 0 0 26px; font-size: 17px; color: var(--steel); max-width: 30em; }
.fb-upload { margin: 0 0 26px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.fb-upload__text { margin: 0; font-size: 15px; color: var(--navy); }
.fb-upload .fb-btn { justify-self: start; }
.fb-link { display: flex; align-items: center; gap: 14px; padding: 12px 0; font: 500 16px/1.3 var(--text); color: var(--navy); text-decoration: none; }
.fb-link i { flex: none; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; transition: background-color .3s, color .3s; }
.fb-link i::before { content: ''; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateX(-2px) rotate(-45deg); }
.fb-link:hover i { background: var(--navy); color: #fff; }

@media (min-width: 720px) {
  .fb-event { margin-top: 28px; padding: 26px 30px 24px; }
  .fb-event__lead { display: block; }
  .fb-photos { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 420px) {
  .fb-contact, .fb-more, .fb-consent > .fb-msg, .fb-check + .fb-msg { margin-left: 0; }
  .fb-row2 { grid-template-columns: 1fr; }
  .fb-stars label { width: 44px; }
  .fb-nps__scale { grid-template-columns: repeat(6, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .js .fb-step.is-current { animation: none; }
  .fb-progress__bar i { transition: none; }
}
