
:root { --пом-заг: 20px; --пом-текст: 16px; --пом-мел: 14px; --пом-кн: 14px; }
@media (hover: none) and (pointer: coarse) { :root { --пом-заг: 17px; --пом-текст: 15px; --пом-мел: 13px; --пом-кн: 12px; } }
.помощь-окно, #modal-help .modal, .справка-окно, #помощь-завеса .окно {
  width: 100% !important; max-width: 640px !important; max-height: calc(100svh - 32px) !important;
  background: #FFF8EC !important; color: #3B2A1F; border-radius: 12px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.3) !important; padding: 0 !important;
  display: flex !important; flex-direction: column; overflow: hidden !important; box-sizing: border-box; }
.помощь-шапка, #modal-help .modal-header, .справка-шапка {
  padding: 14px 20px !important; margin: 0 !important; border-bottom: 1px solid #D9C39B !important;
  display: flex !important; align-items: center !important; justify-content: space-between; gap: 12px !important; flex: none; }
.помощь-шапка h2, #modal-help .modal-header h2, .справка-шапка h2 {
  margin: 0 !important; flex: 1; font: 400 var(--пом-заг)/1.25 "Playfair Display", Georgia, serif !important; color: #3B2A1F; }
.помощь-тело, #modal-help .modal-body, .справка-тело {
  padding: 16px 22px 20px !important; font-size: var(--пом-текст) !important; line-height: 1.55 !important;
  overflow: auto !important; flex: 1 1 auto; max-height: none !important; min-height: 0; }
.помощь-тело p, .справка-тело p, #modal-help .modal-body p { margin: 0 0 8px; }

.помощь-окно .help-search, #modal-help .help-search, #помощь-завеса .help-search {
  position: sticky; top: -16px; z-index: 2; background: #FFF8EC !important; padding: 2px 0 10px !important; margin: 0 0 6px !important; }
.помощь-окно .help-search input, #modal-help .help-search input, #помощь-завеса .help-search input {
  width: 100%; box-sizing: border-box; padding: 9px 12px !important; font: inherit !important; font-size: var(--пом-текст) !important;
  border: 1px solid #D9C39B !important; border-radius: 12px !important; background: #FFF8EC !important; color: inherit; }
.help-search input:focus { outline: none; border-color: #B4714E !important; }
.help-search .hs-info { margin-top: 6px; font-size: var(--пом-мел) !important; color: #6B5648; min-height: 15px; }
.help-hit { background: rgba(255,213,0,.45); border-radius: 4px; padding: 0 1px; }
.help-sec-hidden { display: none !important; }

.помощь-окно .help-h3, #modal-help .help-h3, .справка-тело h3, #помощь-завеса .help-h3 {
  display: block !important; margin: 18px 0 8px !important;   
  font: 600 var(--пом-заг)/1.3 "Source Serif 4", Georgia, serif !important; color: #B4714E !important; }
.помощь-окно .help-search + .help-h3, #modal-help .help-search + .help-h3, .справка-тело h3:first-child,
#помощь-завеса .help-search + .help-h3 { margin-top: 4px !important; }
#modal-help .help-h3 svg { width: 22px !important; height: 22px !important; stroke: #B4714E !important; vertical-align: -4px; margin-right: 8px; }

.help-where, .пом-где {
  float: right; margin: 0 0 0 10px !important; max-width: 50%; white-space: nowrap;
  font: inherit !important; font-size: var(--пом-кн) !important; font-weight: 400 !important; line-height: 1.3 !important;
  padding: 3px 12px !important; border: 1px solid #D9C39B !important; border-radius: 999px !important;
  background: #FFF8EC !important; color: #6B5648 !important; cursor: pointer; }
.help-where:hover, .пом-где:hover { background: #B4714E !important; border-color: #B4714E !important; color: #FFF8EC !important; }
@media (hover: none) and (pointer: coarse) { .help-where, .пом-где { position: relative; } .help-where::after, .пом-где::after { content: ""; position: absolute; inset: -8px -2px; } }

.помощь-окно .help-sec-hidden, #modal-help .help-sec-hidden, #помощь-завеса .help-sec-hidden, .справка-окно .help-sec-hidden { display: none !important; }

.помощь-шапка button, .справка-шапка button, #modal-help .modal-header .close {
  flex: none; width: 34px; height: 34px; padding: 0 !important; border: 0 !important; background: none !important;
  color: #6B5648 !important; cursor: pointer; box-shadow: none !important; }
.помощь-шапка button:hover, .справка-шапка button:hover, #modal-help .modal-header .close:hover { background: rgba(59,42,31,.06) !important; }
