/* Форум Finposter — mobile-first, на токенах сайта (--bg-card, --border, --text, --green…), светлая и тёмная темы. */
.forum-shell { padding-bottom: 64px; }
:where(.forum-shell) section { padding: 0; } /* в site.css у section глобальный padding 40–60px */
.forum-shell h1 { font-size: clamp(24px, 4.2vw, 34px); line-height: 1.2; font-weight: 800; margin: 6px 0 8px; letter-spacing: -.01em; }
.fm-muted { color: var(--text-muted); }
.fm-small { font-size: 13px; }
.fm-h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.fm-h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.fm-inline { display: inline; margin: 0; }
.fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── кнопки ── */
.fm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--green);
  background: var(--green); color: #fff; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: background var(--dur), transform var(--dur); white-space: nowrap; }
.fm-btn:hover { background: var(--green-hover); }
.fm-btn:active { transform: translateY(1px); }
.fm-btn--ghost { background: transparent; color: var(--green-dark); }
.fm-btn--ghost:hover { background: rgba(126,181,58,.1); }
.fm-btn--sm { padding: 7px 14px; font-size: 13px; }
.fm-btn--lg { padding: 13px 24px; font-size: 15px; }
.fm-btn--block { width: 100%; }
.fm-btn--google { width: 100%; background: var(--bg-card); color: var(--text); border-color: var(--border-strong); }
.fm-btn--google:hover { background: var(--bg-elev); }
.fm-btn.is-disabled { opacity: .5; pointer-events: none; }
.fm-link-btn { background: none; border: 0; padding: 0; color: var(--text-muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.fm-more { color: var(--green-dark); font-weight: 600; text-decoration: none; font-size: 14px; }
.fm-more:hover { text-decoration: underline; }
[data-theme="dark"] .fm-more, [data-theme="dark"] .fm-btn--ghost { color: var(--green); }

/* ── полоса форума под шапкой ── */
.fm-bar { background: var(--bg-card); border-bottom: 1px solid var(--border); position: relative; z-index: 5; }
.fm-bar__inner { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.fm-bar__brand { font-weight: 800; color: var(--text); text-decoration: none; font-size: 15px; white-space: nowrap; }
.fm-bar__search { order: 3; flex: 1 1 100%; display: flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; background: var(--bg); }
.fm-bar__search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 14px; font: inherit; font-size: 14px; color: var(--text); outline: none; }
.fm-bar__search button { border: 0; background: transparent; padding: 0 12px; color: var(--text-muted); cursor: pointer; }
.fm-bar__user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.fm-bell { position: relative; text-decoration: none; font-size: 18px; line-height: 1; }
.fm-bell__n { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #e85a5a; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.fm-me { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.fm-me__nick { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 760px) {
  .fm-bar__search { order: 0; flex: 0 1 420px; margin-left: 12px; }
}

/* ── аватары, бейджи, флаги ── */
.fm-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue-logo-1), var(--blue-logo-2)); font-size: 16px; }
.fm-ava--sm { width: 28px; height: 28px; font-size: 13px; }
.fm-ava--lg { width: 72px; height: 72px; font-size: 30px; }
.fm-ava--pro { background: linear-gradient(135deg, #7eb53a, #2f9e6a); }
.fm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-muted); }
.fm-badge--verified { background: rgba(126,181,58,.12); border-color: rgba(126,181,58,.35); color: var(--green-dark); }
.fm-badge--mod { background: rgba(74,144,184,.12); border-color: rgba(74,144,184,.35); color: var(--blue-logo-1); }
[data-theme="dark"] .fm-badge--verified { color: var(--green); }
.fm-check { color: var(--green); font-weight: 800; }
.fm-flag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-muted); text-decoration: none; }
.fm-flag--expert { background: #1E5BC6; border-color: #1E5BC6; color: #fff; }
.fm-flag--solved { background: rgba(126,181,58,.14); border-color: rgba(126,181,58,.4); color: var(--green-dark); }
.fm-flag--pin { color: var(--text); }
.fm-flag--pending { background: rgba(245,166,35,.14); border-color: rgba(245,166,35,.4); color: #a86a00; }
.fm-flag--cat:hover { border-color: var(--green); color: var(--green-dark); }
[data-theme="dark"] .fm-flag--solved { color: var(--green); }
[data-theme="dark"] .fm-flag--pending { color: #f5a623; }
.fm-tag { display: inline-block; font-size: 12.5px; color: var(--blue-logo-1); text-decoration: none; }
.fm-tag:hover { text-decoration: underline; }
.fm-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 12px 0; }
.fm-mfo-chip { color: var(--text); font-weight: 600; text-decoration: none; }
a.fm-mfo-chip:hover { color: var(--green-dark); }

/* ── герой главной ── */
.fm-hero { margin: 8px 0 20px; padding: 22px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 100% 0%, rgba(126,181,58,.14), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(74,144,184,.16), transparent 55%), var(--bg-card); }
.fm-hero h1 { margin-top: 0; }
.fm-hero__lead { color: var(--text-muted); font-size: 16px; margin: 0 0 16px; }
.fm-hero__search { display: flex; gap: 8px; flex-wrap: wrap; }
.fm-hero__search input { flex: 1 1 240px; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); font: inherit; font-size: 15px; }
.fm-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
@media (min-width: 760px) { .fm-hero { padding: 34px 36px; } }

/* ── разделы ── */
.fm-section { margin: 22px 0; }
.fm-section__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fm-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.fm-cat { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color var(--dur), transform var(--dur); }
.fm-cat:hover { border-color: var(--green); transform: translateY(-2px); }
.fm-cat__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-elev); display: grid; place-items: center; font-size: 20px; }
.fm-cat__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fm-cat__body b { font-size: 14.5px; line-height: 1.3; }

/* ── двухколоночный макет ── */
.fm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.fm-layout__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1000px) { .fm-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; } .fm-layout__side { position: sticky; top: 90px; align-self: start; } }
.fm-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-card); min-width: 0; }
.fm-card--note { background: var(--bg-elev); box-shadow: none; }
.fm-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fm-list li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fm-list a { color: var(--text); font-weight: 600; text-decoration: none; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.fm-list a:hover { color: var(--green-dark); }
.fm-rules { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-muted); display: grid; gap: 6px; }

/* ── карточка темы ── */
.fm-topic { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; margin-bottom: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; transition: border-color var(--dur), box-shadow var(--dur); min-width: 0; }
.fm-topic:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.fm-topic--expert { border-left: 4px solid #1E5BC6; }
.fm-topic--hl { background: linear-gradient(90deg, rgba(126,181,58,.08), transparent 60%), var(--bg-card); border-color: rgba(126,181,58,.4); }
.fm-topic__main { min-width: 0; }
.fm-topic__flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.fm-topic__title { font-size: 16.5px; font-weight: 700; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.fm-topic__title a { color: var(--text); text-decoration: none; }
.fm-topic__title a:hover { color: var(--green-dark); }
.fm-topic__excerpt { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-topic__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.fm-topic__stats { display: flex; gap: 14px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.fm-topic__stats b { color: var(--text); }
.fm-topic--compact { padding: 12px 14px; }
@media (min-width: 760px) {
  .fm-topic { flex-direction: row; align-items: center; gap: 18px; }
  .fm-topic__main { flex: 1; }
  .fm-topic__stats { flex-direction: column; gap: 2px; min-width: 120px; text-align: right; }
}

/* ── страница списка ── */
.fm-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 8px 0 14px; }
.fm-page-head p { margin: 0; max-width: 70ch; }
.fm-sort { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
.fm-sort a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); text-decoration: none; font-size: 13.5px; font-weight: 600; background: var(--bg-card); }
.fm-sort a.is-active { background: var(--text); border-color: var(--text); color: var(--bg-card); }
.fm-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.fm-pager a, .fm-pager span { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 14px; background: var(--bg-card); }
.fm-pager span[aria-current] { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.fm-empty { padding: 22px; border: 1px dashed var(--border-strong); border-radius: 14px; text-align: center; color: var(--text-muted); }
.fm-empty p { margin: 0 0 12px; }

/* ── тема и ответы ── */
.fm-thread { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-card); min-width: 0; }
.fm-thread--expert { border-top: 4px solid #1E5BC6; }
.fm-thread__title { font-size: clamp(22px, 3.6vw, 30px); margin: 4px 0 12px; overflow-wrap: anywhere; }
.fm-thread__by { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.fm-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fm-author__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.fm-author__name { font-weight: 700; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
a.fm-author__name:hover { color: var(--green-dark); }
.fm-author--sm .fm-ava { width: 32px; height: 32px; font-size: 14px; }
.fm-mfo-link { margin: 0 0 12px; font-size: 14px; padding: 8px 12px; border-radius: 10px; background: var(--bg-elev); }
.fm-mfo-link a { color: var(--text); }
.fm-content { font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; }
.fm-content--lead { font-size: 16px; }
.fm-content p { margin: 0 0 12px; }
.fm-content blockquote, .fm-quote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--border-strong); background: var(--bg-elev); border-radius: 0 10px 10px 0; color: var(--text-muted); font-size: 14.5px; }
.fm-quote__who { display: block; font-weight: 700; font-size: 13px; color: var(--text); text-decoration: none; margin-bottom: 4px; }
.fm-content ul, .fm-content ol { margin: 0 0 12px; padding-left: 22px; }
.fm-content code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-elev); padding: 1px 5px; border-radius: 5px; }
.fm-content a { color: var(--blue-logo-1); }
.fm-mention { font-weight: 700; text-decoration: none; }
.fm-disclaimer { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: rgba(30,91,198,.07); border: 1px solid rgba(30,91,198,.18); font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.fm-atts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.fm-att-img img { display: block; width: auto; max-width: min(100%, 320px); height: auto; max-height: 240px; border-radius: 10px; border: 1px solid var(--border); object-fit: cover; }
.fm-att-file { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 14px; max-width: 100%; overflow-wrap: anywhere; }
.fm-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fm-act { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.fm-act:hover:not([disabled]) { border-color: var(--green); }
.fm-act.is-on { background: rgba(126,181,58,.12); border-color: rgba(126,181,58,.45); color: var(--green-dark); }
.fm-act[disabled] { opacity: .5; cursor: default; }
.fm-act--muted { color: var(--text-muted); font-weight: 500; }
[data-theme="dark"] .fm-act.is-on { color: var(--green); }
.fm-modbar, .fm-modtools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fm-modbar { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-strong); }
.fm-modtools { padding-left: 6px; border-left: 1px dashed var(--border-strong); }
.fm-post { padding: 14px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; min-width: 0; }
.fm-post:target { background: rgba(126,181,58,.06); border-radius: 12px; padding-left: 10px; padding-right: 10px; }
.fm-post__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.fm-post__date { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fm-post__date a { text-decoration: none; }
.fm-post--expert { background: linear-gradient(90deg, rgba(30,91,198,.05), transparent 70%); border-left: 3px solid #1E5BC6; padding-left: 12px; border-radius: 0 12px 12px 0; }
.fm-post--accepted { background: linear-gradient(90deg, rgba(126,181,58,.08), transparent 70%); border-left: 3px solid var(--green); padding-left: 12px; border-radius: 0 12px 12px 0; }
.fm-post--pending, .fm-post--hidden { opacity: .75; }
.fm-children { margin-top: 6px; padding-left: 14px; border-left: 2px solid var(--border); }
.fm-children .fm-post:last-child { border-bottom: 0; }
@media (min-width: 760px) { .fm-children { padding-left: 26px; } .fm-thread { padding: 26px 28px; } }

/* ── формы ── */
.fm-form { display: flex; flex-direction: column; gap: 12px; }
.fm-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.fm-field input, .fm-field select, .fm-field textarea, .fm-editor textarea, .fm-search-form input, .fm-search-form select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text); font: inherit; font-size: 15px; font-weight: 400; }
.fm-field textarea, .fm-editor textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.fm-field input:focus, .fm-field select:focus, .fm-field textarea:focus, .fm-editor textarea:focus { outline: 2px solid rgba(126,181,58,.45); outline-offset: 1px; border-color: var(--green); }
.fm-grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .fm-grid2 { grid-template-columns: 1fr 1fr; } }
.fm-check-label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 400; line-height: 1.45; }
.fm-check-label input { margin-top: 3px; flex: none; }
.fm-expert-check { padding: 12px; border-radius: 12px; background: rgba(30,91,198,.06); border: 1px solid rgba(30,91,198,.2); }
.fm-form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--text-muted); font-weight: 400; line-height: 1.5; }
.fm-editor { display: flex; flex-direction: column; }
.fm-editor__bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--border-strong); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--bg-elev); }
.fm-editor__bar button, .fm-editor__attach { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.fm-editor__bar button:hover, .fm-editor__attach:hover { border-color: var(--border-strong); background: var(--bg-card); }
.fm-editor textarea { border-radius: 0 0 10px 10px; }
.fm-editor__files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fm-file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--border); font-size: 12.5px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-file-chip img { width: 22px; height: 22px; object-fit: cover; border-radius: 4px; }
.fm-file-chip button { border: 0; background: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 0 2px; }
.fm-replying { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--bg-elev); font-size: 13.5px; }
.fm-reply { scroll-margin-top: 90px; }
.fm-narrow { max-width: 820px; }
.fm-auth { max-width: 460px; margin: 10px auto 0; }
.fm-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-muted); font-size: 13px; }
.fm-or::before, .fm-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.fm-search-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 18px; }
.fm-search-form input { flex: 1 1 260px; width: auto; }
.fm-search-form select { flex: 0 1 auto; width: auto; }
.fm-hit { padding: 12px 0; border-bottom: 1px solid var(--border); }
.fm-hit__title { font-weight: 700; color: var(--text); text-decoration: none; font-size: 16px; }
.fm-hit__title:hover { color: var(--green-dark); }
.fm-hit__snip { margin: 6px 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; overflow-wrap: anywhere; }
.fm-hit mark { background: rgba(126,181,58,.25); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ── уведомления, алерты ── */
.fm-alert { padding: 12px 14px; border-radius: 12px; margin: 10px 0 14px; font-size: 14px; line-height: 1.5; border: 1px solid; }
.fm-alert--info { background: rgba(74,144,184,.08); border-color: rgba(74,144,184,.3); }
.fm-alert--warn { background: rgba(232,90,90,.08); border-color: rgba(232,90,90,.35); }
.fm-alert--ok { background: rgba(126,181,58,.1); border-color: rgba(126,181,58,.35); }
.fm-notes { list-style: none; margin: 0; padding: 0; }
.fm-notes li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.fm-notes li.is-new a { font-weight: 600; }
.fm-notes li.is-new::before { content: 'нове'; align-self: flex-start; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--green); padding: 1px 6px; border-radius: 6px; }
.fm-notes a { color: var(--text); text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.fm-promo { position: relative; padding: 14px 16px; margin-bottom: 10px; border-radius: 14px; border: 1px dashed var(--border-strong); background: var(--bg-elev); }
.fm-promo__label { position: absolute; top: 8px; right: 10px; font-size: 11px; color: var(--text-dim); }
.fm-promo a { color: var(--text); }
.fm-promo p { margin: 4px 0 0; font-size: 14px; color: var(--text-muted); }

/* ── профили и компании ── */
.fm-profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: start; margin: 8px 0 18px; padding: 18px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); }
.fm-profile h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.fm-profile p { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.fm-profile__bio { color: var(--text-muted); }
.fm-profile__stats { grid-column: 1 / -1; display: flex; gap: 10px; margin: 0; }
.fm-profile__stats div { flex: 1; padding: 10px; border-radius: 12px; background: var(--bg-elev); text-align: center; }
.fm-profile__stats dt { font-size: 12px; color: var(--text-muted); }
.fm-profile__stats dd { margin: 0; font-size: 20px; font-weight: 800; }
@media (min-width: 900px) { .fm-profile { grid-template-columns: auto minmax(0, 1fr) 320px; } .fm-profile__stats { grid-column: auto; } }
.fm-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 0; font-size: 14px; }
.fm-dl dt { color: var(--text-muted); }
.fm-dl dd { margin: 0; overflow-wrap: anywhere; }
.fm-dl a { color: var(--blue-logo-1); }
.fm-firms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.fm-firm { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); text-decoration: none; color: var(--text); min-width: 0; }
.fm-firm:hover { border-color: var(--green); }
.fm-firm--verified { border-color: rgba(126,181,58,.45); }
.fm-firm__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.fm-firm__logo { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--bg-elev); display: grid; place-items: center; font-weight: 800; font-size: 22px; overflow: hidden; color: var(--text); }
.fm-firm__logo img { width: 100%; height: 100%; object-fit: contain; }
.fm-firm__logo--lg { width: 80px; height: 80px; font-size: 32px; }
.fm-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.fm-person { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); text-decoration: none; color: var(--text); }
.fm-person > span:last-child { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.fm-review p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.fm-review { margin-bottom: 10px; }

/* ── диалог жалобы и тост ── */
.fm-dialog { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--bg-card); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
.fm-dialog::backdrop { background: rgba(10,20,30,.5); }
.fm-dialog__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.fm-dialog__body h2 { margin: 0; font-size: 20px; }
.fm-dialog__body p { margin: 0; }
.fm-radio-list { display: grid; gap: 8px; font-size: 14px; }
.fm-radio-list label { display: flex; gap: 8px; align-items: center; }
.fm-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.fm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg-card); font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }

/* ── блок «Обговорення на форумі» на странице МФО ── */
.fm-mfo-block { margin: 24px 0; padding: 18px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.fm-mfo-block h2 { margin: 0 0 12px; font-size: 20px; }
.fm-mfo-block__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
