/* BH_FEEDBACK_2026_09_04 — форма обратной связи: сообщить об ошибке или предложить улучшение */
.bh-fb-tip {
    position: absolute;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 9px;
    border: 1px solid #2a2e39;
    background: #1a1f2b;
    color: #fff;
    font: 600 12.5px/1 'DM Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    cursor: pointer;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .14s ease, transform .14s ease;
}
.bh-fb-tip.is-on { opacity: 1; transform: translateY(0); }
.bh-fb-tip:hover { border-color: #95ce5a; }

.bh-fb-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 26px 0 8px;
    padding: 11px 16px;
    border: 1px dashed #cfd8cd;
    border-radius: 10px;
    background: #f7faf5;
    color: #3d4a37;
    font: 500 14px/1.4 'DM Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.bh-fb-link:hover { border-color: #95ce5a; background: #f1f7ea; }
.bh-fb-link b { font-weight: 700; color: #24301d; }

.bh-fb-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 16, 22, .55);
    backdrop-filter: blur(2px);
}
.bh-fb-modal {
    width: 100%;
    max-width: 470px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    overflow: hidden;
    font: 15px/1.5 'DM Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #141413;
}
.bh-fb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #edf0ec;
}
.bh-fb-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.bh-fb-x {
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #8a938a;
    cursor: pointer;
    padding: 2px 4px;
}
.bh-fb-x:hover { color: #141413; }
.bh-fb-body { padding: 16px 20px 20px; }
.bh-fb-kinds { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.bh-fb-kind {
    flex: 1 1 auto;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #dfe4dd;
    border-radius: 9px;
    background: #fff;
    color: #4a5347;
    font: 600 13px/1.2 inherit;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.bh-fb-kind:hover { border-color: #95ce5a; }
.bh-fb-kind.is-on { border-color: #95ce5a; background: #f2f8ea; color: #24301d; }
.bh-fb-quote {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 3px solid #95ce5a;
    background: #f7faf5;
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
    color: #4a5347;
    max-height: 92px;
    overflow: auto;
}
.bh-fb-modal textarea,
.bh-fb-modal input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #dfe4dd;
    border-radius: 10px;
    font: 14.5px/1.45 inherit;
    color: #141413;
    background: #fff;
    outline: none;
    transition: border-color .15s ease;
}
.bh-fb-modal textarea { min-height: 108px; resize: vertical; }
.bh-fb-modal textarea:focus,
.bh-fb-modal input[type="text"]:focus { border-color: #95ce5a; }
.bh-fb-hint { margin: 7px 0 0; font-size: 12.5px; color: #7b847a; }
.bh-fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bh-fb-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.bh-fb-send {
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #95ce5a;
    color: #10190a;
    font: 700 14.5px/1 inherit;
    cursor: pointer;
    transition: filter .15s ease;
}
.bh-fb-send:hover { filter: brightness(1.06); }
.bh-fb-send[disabled] { opacity: .6; cursor: default; }
.bh-fb-state { font-size: 13px; color: #6b7469; }
.bh-fb-state.is-bad { color: #b03a22; }
.bh-fb-state.is-ok { color: #2f7d32; }
.bh-fb-done { padding: 8px 0 4px; font-size: 15px; }

@media (max-width: 560px) {
    .bh-fb-modal { max-width: none; border-radius: 14px; }
    .bh-fb-kinds { gap: 5px; }
    .bh-fb-kind { flex: 1 1 100%; }
}

/* BH_FEEDBACK_2026_09_04 — тёмный вариант: страницы инструментов и любой тёмный фон */
.bh-fb-overlay.is-dark .bh-fb-modal { background: #1a1f2b; color: #e8ecf1; }
.bh-fb-overlay.is-dark .bh-fb-head { border-bottom-color: #262b38; }
.bh-fb-overlay.is-dark .bh-fb-head h2 { color: #f2f5f8; }
.bh-fb-overlay.is-dark .bh-fb-x { color: #7c8696; }
.bh-fb-overlay.is-dark .bh-fb-x:hover { color: #e8ecf1; }
.bh-fb-overlay.is-dark .bh-fb-kind {
    background: #131722;
    border-color: #2a2e39;
    color: #b8c0cc;
}
.bh-fb-overlay.is-dark .bh-fb-kind:hover { border-color: #95ce5a; }
.bh-fb-overlay.is-dark .bh-fb-kind.is-on { background: rgba(149, 206, 90, .14); border-color: #95ce5a; color: #eef4e6; }
.bh-fb-overlay.is-dark .bh-fb-quote {
    background: #131722;
    border-left-color: #95ce5a;
    color: #aab3c0;
}
.bh-fb-overlay.is-dark .bh-fb-modal textarea,
.bh-fb-overlay.is-dark .bh-fb-modal input[type="text"] {
    background: #131722;
    border-color: #2a2e39;
    color: #e8ecf1;
}
.bh-fb-overlay.is-dark .bh-fb-modal textarea::placeholder,
.bh-fb-overlay.is-dark .bh-fb-modal input[type="text"]::placeholder { color: #6f7887; }
.bh-fb-overlay.is-dark .bh-fb-hint { color: #8a93a1; }
.bh-fb-overlay.is-dark .bh-fb-state { color: #8a93a1; }
.bh-fb-overlay.is-dark .bh-fb-state.is-bad { color: #f0836b; }
.bh-fb-overlay.is-dark .bh-fb-done { color: #e8ecf1; }
.bh-fb-tip.is-dark { border-color: #3a4150; }

/* BH_FEEDBACK_2026_09_04 — приглашение в служебном ряду.
   Не третья кнопка: рамка и тень делали её равной «Источникам» и спорили
   с соцкнопками. Ссылка мелким шрифтом, тень темы для button снимаем явно. */
.bh-fb-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
    border: 0;
    background: none;
    box-shadow: none !important;
    color: #98a09a;
    /* Шорткод font с inherit невалиден: браузер отбрасывал объявление целиком,
       и ссылка наследовала 17px от статьи. Свойства задаём по отдельности.
       Семейство НЕ наследуем: inherit тянет шрифт статьи (Montserrat Alternates),
       а весь служебный ряд набран Lato — равняемся на соседнюю кнопку. */
    font-family: Lato, sans-serif, Arial;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: color .15s ease;
}
.bh-fb-inline:hover,
.bh-fb-inline:focus-visible { color: #5b8a33; }
.bh-fb-inline:hover .bh-fb-inline-i { border-color: #95ce5a; color: #5b8a33; }
.bh-fb-inline-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border: 1px solid #cfd5cd;
    border-radius: 50%;
    background: none;
    color: #98a09a;
    font-family: Lato, sans-serif, Arial;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    transition: border-color .15s ease, color .15s ease;
}
.bh-fb-inline.is-standalone { margin: 20px 0 4px; }
/* Прижата к левой группе: свободное место остаётся между служебными
   элементами и кнопками «поделиться». */
.share-sources-row .bh-fb-inline { margin-right: auto; margin-left: 4px; }
@media (max-width: 768px) {
    /* Тема на телефоне переставляет ряд: сначала кнопки «поделиться» (order 1),
       затем источники (order 2). Наша ссылка идёт последней. */
    .share-sources-row .bh-fb-inline { order: 3; justify-content: center; width: 100%; padding: 8px 2px; }
}
