/* ==========================================================================
   RIDEHOST — дизайн-система «Что хотите сделать?» (rh.css)
   Две темы: светлая (по умолчанию) и тёмная (<html data-theme="dark">). Цвета — ТОЛЬКО через токены.
   Описание классов и правил: docs/redesign/API.md. Совместимый слой для Metronic/Bootstrap — rh-compat.css.
   ========================================================================== */

/* ---------- Шрифты (самохостинг, variable; кириллица + латиница + знак ₽) ---------- */
@font-face{font-family:'Onest';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/rh/onest-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/rh/onest-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/rh/onest-ruble.woff2) format('woff2');unicode-range:U+20BD}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:600 900;font-display:swap;src:url(../fonts/rh/unbounded-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:600 900;font-display:swap;src:url(../fonts/rh/unbounded-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:600 900;font-display:swap;src:url(../fonts/rh/unbounded-ruble.woff2) format('woff2');unicode-range:U+20BD}

/* ==========================================================================
   1. ТОКЕНЫ
   ========================================================================== */
:root{
  color-scheme:light;
  /* поверхности и текст */
  --rh-bg:#F6F3EE; --rh-surface:#FFFFFF; --rh-surface-2:#FBF9F5;
  --rh-ink:#1C1713; --rh-ink-2:#463F37; --rh-muted:#625A50;
  --rh-line:#E6DFD3; --rh-line-2:#F0EBE2; --rh-line-strong:#C9C0B1;
  /* «чёрные» элементы (ярлык «Что дальше?», тёмные кнопки, активный пункт меню): в тёмной теме меняются местами */
  --rh-inv:#1C1713; --rh-on-inv:#FFFFFF;
  /* акцент: только главный шаг и «Пополнить» */
  --rh-accent:#D93B00; --rh-accent-hover:#BC3200; --rh-accent-soft:#FDEBE1; --rh-on-accent:#FFFFFF; --rh-accent-rgb:217,59,0;
  --rh-accent-text:#B83100; /* оранжевый текст на поверхности (ссылки «Изменить»), AA */
  /* пастельные плитки */
  --rh-t-yellow:#F7C948; --rh-t-sky:#CFE5F6; --rh-t-peach:#FFD6C0; --rh-t-sage:#D8EAD0; --rh-t-sand:#E9E1D2; --rh-t-lav:#DDE2EE;
  --rh-t-ink:#1C1713; --rh-t-ink-text:#FFFFFF; --rh-t-ink-muted:#E8E1D6;
  /* статусы: текст / фон */
  --rh-ok:#17803F; --rh-ok-soft:#E1F2E6; --rh-ok-ink:#0E5A2A;
  --rh-sleep:#4C5670; --rh-sleep-soft:#E6E9F2; --rh-sleep-ink:#2E3650;
  --rh-warn:#7A4E00; --rh-warn-soft:#FBEFD0;
  --rh-danger:#B42318; --rh-danger-soft:#FDECEA; --rh-danger-ink:#7A1F14;
  --rh-info:#245C86; --rh-info-soft:#DCEBF6;
  /* служебное */
  --rh-overlay:rgba(28,23,19,.58);
  --rh-hover:rgba(28,23,19,.06);
  --rh-sh-1:0 1px 2px rgba(28,23,19,.05),0 6px 18px rgba(28,23,19,.06);
  --rh-sh-2:0 2px 4px rgba(28,23,19,.06),0 16px 34px rgba(28,23,19,.14);
  --rh-focus:var(--rh-ink);
  /* радиусы, шрифты, раскладка */
  --rh-r-s:10px; --rh-r-m:16px; --rh-r-l:24px; --rh-r-xl:32px;
  --rh-f-d:'Unbounded','Onest',system-ui,sans-serif;
  --rh-f-u:'Onest',system-ui,-apple-system,'Segoe UI',sans-serif;
  --rh-f-m:ui-monospace,'Cascadia Mono',Consolas,'Courier New',monospace;
  --rh-ease:cubic-bezier(.2,.7,.2,1);
  --rh-wrap:1160px;

  /* ---- СОВМЕСТИМЫЙ СЛОЙ: переменные старой разметки (значения следуют теме) ---- */
  --bg-app:var(--rh-bg); --bg-surface:var(--rh-surface); --bg-surface-hover:var(--rh-surface-2); --bg-header:var(--rh-bg);
  --bg-card:var(--rh-surface); --bg-card-header:transparent; --bg-input:var(--rh-surface-2); --bg-input-focus:var(--rh-surface);
  --border-subtle:var(--rh-line-2); --border-card:var(--rh-line); --border-input:var(--rh-line-strong);
  --text-main:var(--rh-ink-2); --text-heading:var(--rh-ink); --text-muted:var(--rh-muted); --text-inverse:var(--rh-on-inv);
  --accent-primary:var(--rh-accent-text); --accent-primary-hover:var(--rh-accent-hover);
  --accent-success:var(--rh-ok); --accent-warning:var(--rh-warn); --accent-danger:var(--rh-danger);
  --shadow-card:var(--rh-sh-1); --shadow-dropdown:var(--rh-sh-2);
  --radius-card:var(--rh-r-l); --radius-btn:var(--rh-r-m); --radius-input:var(--rh-r-s);
  --bento-gap:16px; --bento-radius:var(--rh-r-l); --bento-radius-sm:var(--rh-r-m);
  --app-font:var(--rh-f-u);
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --rh-bg:#141210; --rh-surface:#1E1B18; --rh-surface-2:#252220;
  --rh-ink:#F3EEE6; --rh-ink-2:#D3CBBF; --rh-muted:#A59D91;
  --rh-line:#35302B; --rh-line-2:#2A2622; --rh-line-strong:#5A5249;
  --rh-inv:#F3EEE6; --rh-on-inv:#141210;
  --rh-accent:#FF5A1F; --rh-accent-hover:#FF7440; --rh-accent-soft:#3A2218; --rh-on-accent:#1A0D06; --rh-accent-rgb:255,90,31;
  --rh-accent-text:#FF8A5C;
  --rh-t-yellow:#5A4A14; --rh-t-sky:#1F3547; --rh-t-peach:#4D2D1E; --rh-t-sage:#25382A; --rh-t-sand:#2F2A23; --rh-t-lav:#2A2F44;
  --rh-t-ink:#0D0B0A; --rh-t-ink-text:#F3EEE6; --rh-t-ink-muted:#B9B0A3;
  --rh-ok:#5FD088; --rh-ok-soft:#1C3324; --rh-ok-ink:#8BE3AA;
  --rh-sleep:#A9B4D6; --rh-sleep-soft:#262B3D; --rh-sleep-ink:#C6CEE8;
  --rh-warn:#F0C060; --rh-warn-soft:#3B2E10;
  --rh-danger:#FF8A7A; --rh-danger-soft:#3E1E1A; --rh-danger-ink:#FFB4A8;
  --rh-info:#8DC3EA; --rh-info-soft:#1D3345;
  --rh-overlay:rgba(0,0,0,.7);
  --rh-hover:rgba(243,238,230,.08);
  --rh-sh-1:0 1px 2px rgba(0,0,0,.4),0 6px 18px rgba(0,0,0,.32);
  --rh-sh-2:0 2px 4px rgba(0,0,0,.5),0 16px 34px rgba(0,0,0,.55);
}

/* ==========================================================================
   2. БАЗА (только внутри оболочки: <html data-rh>)
   ========================================================================== */
html[data-rh]{-webkit-text-size-adjust:100%;scroll-behavior:smooth;background:var(--rh-bg)}
html[data-rh] body{background:var(--rh-bg);color:var(--rh-ink);font:400 16px/1.5 var(--rh-f-u);-webkit-font-smoothing:antialiased;min-height:100vh;margin:0;padding:0}
html[data-rh] body.rh-body{display:block}
.rh-app{min-height:100vh;display:flex;flex-direction:column;background:var(--rh-bg)}
.rh-main{flex:1 0 auto;min-width:0}
.rh-reset,.rh-reset *,.rh-reset *::before,.rh-reset *::after{box-sizing:border-box}
.rh-reset :where(h1,h2,h3,h4,h5,h6,p,figure,dl,dd,blockquote,ul,ol){margin:0}
.rh-reset :where(ul,ol){padding:0;list-style:none}
.rh-reset :where(a){color:inherit;text-decoration:none}
.rh-reset :where(button){font:inherit;color:inherit;cursor:pointer;background:none;border:0;padding:0}
.rh-reset :where(img){display:block;max-width:100%}
.rh-app :focus-visible{outline:3px solid var(--rh-focus);outline-offset:3px;border-radius:8px}
[hidden]{display:none!important}
.rh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rh-mono{font-family:var(--rh-f-m);letter-spacing:0;font-weight:600}
.rh-wrap{max-width:calc(var(--rh-wrap) + 48px);margin:0 auto;padding:0 24px}
.rh-i{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rh-i--s{width:20px;height:20px}
.rh-i--l{width:32px;height:32px}
.rh-i--xl{width:48px;height:48px}
.rh-spin{animation:rh-spin 1s linear infinite}
@keyframes rh-spin{to{transform:rotate(360deg)}}
@keyframes rh-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.rh-muted{color:var(--rh-muted)}
.rh-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--rh-ok);flex:none}
.rh-dot--z{background:var(--rh-sleep)}
.rh-dot--warn{background:var(--rh-warn)}
.rh-dot--bad{background:var(--rh-danger)}

/* заголовки */
.rh-hi{font-weight:600;color:var(--rh-muted);font-size:17px}
.rh-h1{font:800 clamp(34px,4.4vw,56px)/1.05 var(--rh-f-d);letter-spacing:-.025em;margin-top:6px;color:var(--rh-ink)}
.rh-h1--step{font-size:clamp(32px,3.6vw,46px);line-height:1.08}
.rh-h2{font:800 28px/1.1 var(--rh-f-d);letter-spacing:-.02em;color:var(--rh-ink)}
.rh-h3{font:700 22px/1.15 var(--rh-f-d);letter-spacing:-.015em;color:var(--rh-ink)}
.rh-eyebrow{font:700 16px/1 var(--rh-f-u);color:var(--rh-muted);letter-spacing:.06em;text-transform:uppercase}
.rh-lead{font-size:18px;color:var(--rh-ink-2);margin-top:12px;max-width:46ch;line-height:1.4}
.rh-tiny{font-size:15px;color:var(--rh-muted);margin-top:14px;font-weight:500}

/* ==========================================================================
   3. КНОПКИ
   ========================================================================== */
.rh-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 22px;border-radius:var(--rh-r-m);
  font:600 16px/1.1 var(--rh-f-u);border:2px solid var(--rh-line);background:var(--rh-surface);color:var(--rh-ink);text-decoration:none;cursor:pointer;
  transition:transform .18s var(--rh-ease),background .18s,border-color .18s,box-shadow .18s;white-space:nowrap}
.rh-btn:hover{border-color:var(--rh-ink);transform:translateY(-1px);color:var(--rh-ink);text-decoration:none}
.rh-btn:active{transform:translateY(1px) scale(.985)}
.rh-btn--primary{background:var(--rh-accent);border-color:var(--rh-accent);color:var(--rh-on-accent)}
.rh-btn--primary:hover{background:var(--rh-accent-hover);border-color:var(--rh-accent-hover);color:var(--rh-on-accent)}
.rh-btn--dark{background:var(--rh-inv);border-color:var(--rh-inv);color:var(--rh-on-inv)}
.rh-btn--dark:hover{background:var(--rh-inv);border-color:var(--rh-inv);color:var(--rh-on-inv);opacity:.88}
.rh-btn--white{background:var(--rh-surface);border-color:var(--rh-surface);color:var(--rh-ink)}
.rh-btn--white:hover{background:var(--rh-surface);border-color:var(--rh-ink)}
.rh-btn--ghost{background:transparent;border-color:transparent;color:var(--rh-ink-2);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px;padding:0 10px}
.rh-btn--ghost:hover{transform:none;color:var(--rh-ink);border-color:transparent;text-decoration:underline}
.rh-btn--lg{min-height:56px;font-size:17px;border-radius:18px}
.rh-btn--xl{min-height:64px;border-radius:20px;padding:0 28px;font-family:var(--rh-f-d);font-weight:700;font-size:16px}
.rh-btn--sm{min-height:44px;padding:0 16px;font-size:15px;border-radius:14px}
.rh-btn--block{width:100%}
.rh-btn.is-done{background:var(--rh-ok);border-color:var(--rh-ok);color:var(--rh-surface)}
.rh-btn.is-busy,.rh-btn[disabled]{pointer-events:none;opacity:.8}
.rh-btn[disabled]{cursor:not-allowed}
/* кнопка формы ждёт ответа (rh.js): крутилка справа от подписи */
.rh-btn.is-loading{pointer-events:none;opacity:.85}
.rh-btn.is-loading::after{content:"";flex:none;width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:rh-spin .8s linear infinite}
/* обёртка-форма кнопки действия (запасной путь без JS) не влияет на раскладку */
.rh-actf{display:contents}
/* сервер выполняет действие: карточка не дёргается, кнопки питания приглушены */
[aria-busy=true] .rh-power__btns .rh-btn:not(.is-busy){opacity:.55}
/* тихая ссылка для опасного действия («Выключить сервер», «Удалить») */
.rh-quiet{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:600;font-size:15px;color:var(--rh-muted);padding:0 4px;text-decoration:underline;text-underline-offset:4px;background:none;border:0;cursor:pointer;font-family:inherit}
.rh-quiet:hover{color:var(--rh-accent-text)}
.rh-quiet-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--rh-line-2);padding-top:6px;margin-top:2px}
.rh-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700;font-size:16px;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px;color:inherit;background:none;border:0;cursor:pointer;font-family:inherit;padding:0}
.rh-confirm{padding:14px 16px;border-radius:16px;background:var(--rh-danger-soft);color:var(--rh-danger-ink);font-size:16px;line-height:1.4}
.rh-confirm__row{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.rh-confirm .rh-btn{min-height:48px}

/* ==========================================================================
   4. ОБОЛОЧКА: шапка
   ========================================================================== */
.rh-header{background:var(--rh-bg);position:sticky;top:0;z-index:40}
.rh-header__in{display:flex;align-items:center;gap:20px;height:80px}
.rh-logo{display:flex;align-items:center;gap:10px;font:800 19px/1 var(--rh-f-d);letter-spacing:-.01em;color:var(--rh-ink);text-decoration:none;flex:none}
.rh-logo:hover{color:var(--rh-ink);text-decoration:none}
.rh-logo .rh-i{width:34px;height:34px;stroke:none;fill:none}
.rh-nav{display:flex;gap:4px;margin-left:4px;align-items:center}
.rh-nav__a{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 14px;border-radius:999px;font:600 16px/1 var(--rh-f-u);color:var(--rh-ink-2);text-decoration:none;transition:background .15s;background:none;border:0;cursor:pointer;white-space:nowrap}
.rh-nav__a:hover{background:var(--rh-hover);color:var(--rh-ink);text-decoration:none}
.rh-nav__a.is-on{background:var(--rh-inv);color:var(--rh-on-inv)}
.rh-nav__a .rh-i{width:16px;height:16px;margin-right:-4px}
.rh-nav__badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--rh-accent);color:var(--rh-on-accent);font-size:13px;font-weight:700}
.rh-header__r{margin-left:auto;display:flex;align-items:center;gap:10px;min-width:0}
.rh-bal{display:flex;align-items:center;gap:12px;height:52px;padding:0 6px 0 18px;border-radius:999px;background:var(--rh-surface);box-shadow:var(--rh-sh-1);font-weight:600;color:var(--rh-ink);text-decoration:none;white-space:nowrap}
.rh-bal:hover{color:var(--rh-ink);text-decoration:none}
.rh-bal b{font:700 17px/1 var(--rh-f-d);white-space:nowrap}
.rh-bal__pl{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 16px;border-radius:999px;background:var(--rh-accent);color:var(--rh-on-accent);font-weight:700;font-size:15px;white-space:nowrap}
.rh-bal:hover .rh-bal__pl{background:var(--rh-accent-hover)}
.rh-theme{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 12px;border-radius:999px;background:transparent;border:2px solid transparent;font:600 15px/1 var(--rh-f-u);color:var(--rh-ink-2);cursor:pointer;white-space:nowrap}
.rh-theme:hover{background:var(--rh-hover);color:var(--rh-ink)}
.rh-theme .rh-t-d{display:none}
:root[data-theme="dark"] .rh-theme .rh-t-l{display:none}
:root[data-theme="dark"] .rh-theme .rh-t-d{display:inline}
.rh-theme .rh-i-d{display:none}
:root[data-theme="dark"] .rh-theme .rh-i-d{display:inline}
:root[data-theme="dark"] .rh-theme .rh-i-l{display:none}
.rh-dd{position:relative}
.rh-dd__menu{position:absolute;top:calc(100% + 6px);right:0;min-width:270px;padding:8px;background:var(--rh-surface);border-radius:20px;box-shadow:var(--rh-sh-2);border:1px solid var(--rh-line);display:none;z-index:50}
.rh-dd--left .rh-dd__menu{right:auto;left:0}
.rh-dd.is-open>.rh-dd__menu{display:block;animation:rh-in .2s var(--rh-ease)}
.rh-dd--hover:hover>.rh-dd__menu,.rh-dd--hover:focus-within>.rh-dd__menu{display:block}
.rh-dd__menu a,.rh-dd__menu button.rh-dd__item{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 14px;border-radius:12px;font:600 16px/1.2 var(--rh-f-u);color:var(--rh-ink);text-decoration:none;width:100%;text-align:left;background:none;border:0;cursor:pointer}
.rh-dd__menu a:hover,.rh-dd__menu button.rh-dd__item:hover{background:var(--rh-hover);color:var(--rh-ink);text-decoration:none}
.rh-dd__menu .rh-i{color:var(--rh-muted)}
.rh-dd__sep{height:1px;background:var(--rh-line-2);margin:6px 8px}
.rh-dd__cap{padding:8px 14px 4px;font-size:14px;font-weight:700;color:var(--rh-muted)}
.rh-dd__menu a.is-danger{color:var(--rh-danger)}
.rh-dd__menu a.is-danger .rh-i{color:var(--rh-danger)}
.rh-dd__menu .rh-dd__who{padding:10px 14px 6px}
.rh-dd__who b{display:block;font-weight:700}
.rh-dd__who small{display:block;color:var(--rh-muted);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}
.rh-me{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px 0 6px;border-radius:999px;font:600 16px/1 var(--rh-f-u);color:var(--rh-ink);background:none;border:0;cursor:pointer}
.rh-me:hover{background:var(--rh-hover)}
.rh-me__av{width:40px;height:40px;border-radius:50%;background:var(--rh-inv);color:var(--rh-on-inv);display:grid;place-items:center;font:700 16px/1 var(--rh-f-d);flex:none;font-style:normal;overflow:hidden}
.rh-me__name{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rh-me .rh-i{width:16px;height:16px;color:var(--rh-muted)}

/* ---------- сообщения из сессии ---------- */
.rh-flashes{display:grid;gap:10px;margin:0 auto;width:100%;padding:0 24px;max-width:calc(var(--rh-wrap) + 48px)}
.rh-flashes:empty{display:none}
.rh-flashes .rh-flash:first-child{margin-top:8px}
.rh-flash{display:flex;gap:14px;align-items:flex-start;padding:14px 18px;border-radius:var(--rh-r-m);font-size:16px;line-height:1.4;font-weight:600;border:1.5px solid transparent;animation:rh-in .25s var(--rh-ease)}
.rh-flash .rh-i{margin-top:1px}
.rh-flash__t{flex:1;min-width:0;overflow-wrap:anywhere}
.rh-flash__x{flex:none;width:44px;height:44px;margin:-10px -10px -10px 0;border-radius:12px;display:grid;place-items:center;color:inherit;background:none;border:0;cursor:pointer}
.rh-flash__x:hover{background:var(--rh-hover)}
.rh-flash--error{background:var(--rh-danger-soft);color:var(--rh-danger-ink);border-color:var(--rh-danger)}
.rh-flash--warning{background:var(--rh-warn-soft);color:var(--rh-warn);border-color:var(--rh-warn)}
.rh-flash--success{background:var(--rh-ok-soft);color:var(--rh-ok-ink);border-color:var(--rh-ok)}

/* ==========================================================================
   5. ПОДВАЛ и НИЖНЯЯ ПАНЕЛЬ
   ========================================================================== */
.rh-footer{margin-top:64px;padding:28px 0 40px;border-top:1px solid var(--rh-line);font-size:15px;color:var(--rh-muted)}
.rh-footer .rh-wrap{display:flex;gap:12px 28px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.rh-footer nav{display:flex;gap:6px 22px;flex-wrap:wrap}
.rh-footer nav a{font-weight:600;min-height:32px;display:inline-flex;align-items:center;color:var(--rh-muted);text-decoration:none}
.rh-footer nav a:hover{color:var(--rh-ink);text-decoration:none}
.rh-footer a{color:inherit}
.rh-sys{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--rh-ink-2)}
.rh-sys a{text-decoration:none}
.rh-bnav{display:none}
.rh-more{position:fixed;inset:0;z-index:90;display:none;align-items:flex-end;background:var(--rh-overlay)}
.rh-more.is-open{display:flex}
.rh-more__sheet{width:100%;max-height:calc(100% - 24px);overflow:auto;overscroll-behavior:contain;background:var(--rh-surface);border-radius:28px 28px 0 0;padding:20px 16px calc(24px + env(safe-area-inset-bottom));box-shadow:var(--rh-sh-2);animation:rh-in .25s var(--rh-ease)}
.rh-more__head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.rh-more__head h2{font:800 22px/1.1 var(--rh-f-d)}
.rh-more__who{display:flex;align-items:center;gap:12px;padding:6px 0 14px}
.rh-more__who b{display:block}
.rh-more__who small{display:block;color:var(--rh-muted);font-size:14px}
.rh-more__bal{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 12px 12px 18px;border-radius:20px;background:var(--rh-bg);margin-bottom:12px}
.rh-more__bal b{font:700 22px/1 var(--rh-f-d)}
.rh-more__bal small{display:block;color:var(--rh-muted);font-size:14px;margin-bottom:4px}
.rh-more__list{display:grid;gap:2px}
.rh-more__list a,.rh-more__list button{display:flex;align-items:center;gap:14px;min-height:56px;padding:0 6px;border-radius:14px;font:600 17px/1.2 var(--rh-f-u);color:var(--rh-ink);text-decoration:none;background:none;border:0;cursor:pointer;width:100%;text-align:left}
.rh-more__list a:hover,.rh-more__list button:hover{background:var(--rh-hover);color:var(--rh-ink);text-decoration:none}
.rh-more__list .rh-i{color:var(--rh-muted)}
.rh-more__list a.is-danger,.rh-more__list a.is-danger .rh-i{color:var(--rh-danger)}
.rh-more__cap{padding:14px 6px 4px;font-size:14px;font-weight:700;color:var(--rh-muted);text-transform:uppercase;letter-spacing:.06em}
.rh-more__list .rh-theme{height:56px;border:0;padding:0 6px;border-radius:14px;color:var(--rh-ink);font-size:17px;gap:14px}
.rh-more__list .rh-theme .rh-i{color:var(--rh-muted)}
/* лист «Заказать» (телефон, при веб-хостинге): игровой сервер или сайт */
.rh-pick{display:grid;gap:12px;margin-top:6px}
.rh-pick__card{display:flex;align-items:center;gap:14px;min-height:96px;padding:14px 16px;border-radius:20px;background:var(--rh-bg);color:var(--rh-ink);text-decoration:none;transition:transform .15s var(--rh-ease)}
.rh-pick__card:hover{color:var(--rh-ink);text-decoration:none;transform:translateY(-2px)}
.rh-pick__card:active{transform:scale(.99)}
.rh-pick__card>.rh-i{flex:none;color:var(--rh-muted)}
.rh-pick__tx{flex:1;min-width:0}
.rh-pick__tx b{display:block;font:800 19px/1.15 var(--rh-f-d)}
.rh-pick__tx small{display:block;margin-top:4px;color:var(--rh-ink-2);font-size:14px;line-height:1.35}
.rh-pick__art{position:relative;flex:none;width:84px;height:64px}
.rh-pick__art img{position:absolute;width:46px;height:46px;border-radius:14px;object-fit:cover;border:3px solid var(--rh-bg);box-shadow:var(--rh-sh-1)}
.rh-pick__art img:nth-child(1){left:0;top:14px;transform:rotate(-10deg)}
.rh-pick__art img:nth-child(2){left:19px;top:2px;z-index:2}
.rh-pick__art img:nth-child(3){left:38px;top:14px;transform:rotate(10deg)}
.rh-pick__ic{flex:none;width:84px;height:64px;display:grid;place-items:center}
.rh-pick__ic .rh-i{width:44px;height:44px;padding:10px;box-sizing:content-box;border-radius:50%;background:var(--rh-t-sky);color:var(--rh-ink)}

/* ==========================================================================
   6. СТРАНИЦА «ЧТО ХОТИТЕ СДЕЛАТЬ?»: «Что дальше?», переключатель серверов, плитки
   ========================================================================== */
.rh-intro{padding:20px 0 0}
.rh-next{display:inline-flex;align-items:center;gap:14px;margin-top:20px;padding:8px 22px 8px 8px;background:var(--rh-surface);border-radius:999px;box-shadow:var(--rh-sh-1);max-width:100%}
.rh-next__k{flex:none;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;background:var(--rh-inv);color:var(--rh-on-inv);font-weight:700;font-size:15px}
.rh-next__t{font-weight:600;font-size:17px;line-height:1.3;color:var(--rh-ink)}
.rh-next__t b{color:var(--rh-accent-text);font-weight:700}

.rh-switch{margin-top:28px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.rh-switch__l{font-weight:700;font-size:16px;color:var(--rh-ink-2)}
.rh-switch__list{display:flex;gap:10px;flex-wrap:wrap}
.rh-switch button{display:inline-flex;align-items:center;gap:12px;min-height:56px;padding:6px 20px 6px 6px;border-radius:999px;background:var(--rh-surface);border:2px solid transparent;box-shadow:var(--rh-sh-1);text-align:left;transition:border-color .15s,transform .15s var(--rh-ease);color:var(--rh-ink);cursor:pointer;font-family:inherit}
.rh-switch button:hover{transform:translateY(-1px)}
.rh-switch button[aria-pressed="true"]{border-color:var(--rh-ink)}
.rh-switch img,.rh-switch__ph{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none;background:var(--game,var(--rh-line))}
.rh-switch strong{display:block;font-weight:700;font-size:16px;line-height:1.15}
.rh-switch small{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;line-height:1.2;margin-top:2px;color:var(--rh-ink-2)}
.rh-switch small .rh-i{width:14px;height:14px}

.rh-tiles{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:minmax(176px,auto);gap:16px;margin-top:20px}
.rh-tile{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:16px;padding:24px;border-radius:var(--rh-r-xl);overflow:hidden;
  color:var(--rh-ink);background:var(--rh-t-sand);isolation:isolate;transition:transform .22s var(--rh-ease),box-shadow .22s;min-height:176px;text-align:left;text-decoration:none;border:0;font-family:inherit;cursor:pointer}
a.rh-tile:hover,button.rh-tile:hover{transform:translateY(-4px);box-shadow:var(--rh-sh-2);color:var(--rh-ink);text-decoration:none}
a.rh-tile:active{transform:translateY(0) scale(.99)}
.rh-tile__top{display:flex;justify-content:space-between;align-items:flex-start}
.rh-tile__go{width:44px;height:44px;border-radius:50%;background:var(--rh-inv);color:var(--rh-on-inv);display:grid;place-items:center;transition:transform .22s var(--rh-ease);flex:none}
a.rh-tile:hover .rh-tile__go{transform:translateX(4px)}
.rh-tile__ghost{position:absolute;right:-18px;bottom:-30px;width:150px;height:150px;opacity:.13;z-index:-1;stroke-width:1.1}
.rh-tile h3{font:700 21px/1.15 var(--rh-f-d);letter-spacing:-.01em;margin:0;color:inherit}
.rh-tile p{font-size:16px;line-height:1.35;margin:8px 0 0;max-width:26ch;font-weight:500;color:inherit}
.rh-tile--yellow{background:var(--rh-t-yellow)}.rh-tile--sky{background:var(--rh-t-sky)}.rh-tile--peach{background:var(--rh-t-peach)}
.rh-tile--sage{background:var(--rh-t-sage)}.rh-tile--sand{background:var(--rh-t-sand)}.rh-tile--lav{background:var(--rh-t-lav)}
.rh-tile--ink{background:var(--rh-t-ink);color:var(--rh-t-ink-text)}
.rh-tile--ink:hover{color:var(--rh-t-ink-text)}
.rh-tile--ink p{color:var(--rh-t-ink-muted)}
.rh-tile--ink .rh-tile__go{background:var(--rh-t-ink-text);color:var(--rh-t-ink)}
.rh-tile--dim{background:transparent;border:2px dashed var(--rh-line-strong);color:var(--rh-muted)}
.rh-tile--dim .rh-tile__go{background:var(--rh-line-strong);color:var(--rh-bg)}
.rh-tile--dim:hover{transform:none;box-shadow:none}
.rh-tile--span2{grid-column:span 2}
.rh-tile__tag{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:999px;background:var(--rh-accent);color:var(--rh-on-accent);font-weight:700;font-size:14px;white-space:nowrap}
.rh-tile__tag--yellow{background:var(--rh-t-yellow);color:var(--rh-ink)}
/* герой: арт игры + акцентная плашка */
.rh-hero{grid-column:span 2;grid-row:span 2;padding:88px 32px 32px;color:var(--rh-on-accent);background:var(--rh-accent);min-height:368px;justify-content:flex-end}
.rh-hero:hover{color:var(--rh-on-accent)}
.rh-hero__art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 20%;z-index:-2}
.rh-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(var(--rh-accent-rgb),0) 0%,rgba(var(--rh-accent-rgb),.62) 22%,rgba(var(--rh-accent-rgb),.95) 38%,var(--rh-accent) 50%)}
.rh-hero.is-asleep .rh-hero__art{filter:saturate(.55) brightness(.9)}
.rh-hero__badge{position:absolute;top:24px;left:24px;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 18px 0 14px;border-radius:999px;background:var(--rh-surface);color:var(--rh-ink);font-weight:700;font-size:16px;box-shadow:var(--rh-sh-1);max-width:calc(100% - 48px)}
.rh-hero h2{font:800 clamp(30px,3vw,40px)/1.05 var(--rh-f-d);letter-spacing:-.02em;margin:0;color:inherit;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.rh-hero__sub{font-size:17px;line-height:1.35;margin:10px 0 0;max-width:34ch;font-weight:500}
.rh-hero .rh-address{margin-top:20px;box-shadow:var(--rh-sh-2)}
.rh-hero__how{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-weight:700;font-size:16px;color:inherit;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px;min-height:44px;background:none;border:0;cursor:pointer;font-family:inherit;padding:0}
.rh-hero .rh-btn--xl{margin-top:22px}
.rh-fan{position:absolute;right:12px;top:18px;bottom:18px;width:44%;z-index:-1}
.rh-fan img{position:absolute;width:118px;aspect-ratio:3/4;object-fit:cover;border-radius:16px;border:4px solid var(--rh-surface);box-shadow:var(--rh-sh-2);transition:transform .3s var(--rh-ease)}
.rh-fan img:nth-child(1){right:112px;top:40px;transform:rotate(-8deg)}
.rh-fan img:nth-child(2){right:52px;top:10px;transform:rotate(3deg);z-index:2}
.rh-fan img:nth-child(3){right:-12px;top:48px;transform:rotate(10deg)}
.rh-tile--ink:hover .rh-fan img:nth-child(1){transform:rotate(-12deg) translateY(-6px)}
.rh-tile--ink:hover .rh-fan img:nth-child(3){transform:rotate(14deg) translateY(-6px)}
.rh-tile--ink .rh-tile__top{position:relative;z-index:3}
.rh-tile--ink h3{max-width:11ch}
.rh-tile--ink p{max-width:24ch}
.rh-games-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.rh-games-row span{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px 0 4px;border-radius:999px;background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.55);font-weight:700;font-size:15px}
.rh-games-row img{width:34px;height:34px;border-radius:50%;object-fit:cover}
/* состояние сервера в плитке «Что дальше» не нужно: переключатель серверов меняет видимые блоки */
.rh-for[hidden]{display:none!important}

/* строка «Другое» и чипы */
.rh-other{margin-top:40px}
.rh-chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.rh-chip{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 20px;border-radius:999px;background:var(--rh-surface);font-weight:600;font-size:16px;box-shadow:var(--rh-sh-1);transition:transform .15s var(--rh-ease),box-shadow .15s;color:var(--rh-ink);text-decoration:none}
a.rh-chip:hover{transform:translateY(-2px);box-shadow:var(--rh-sh-2);color:var(--rh-ink);text-decoration:none}
.rh-chip small{font-weight:600;color:var(--rh-muted);font-size:14px}
.rh-chip__n{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:12px;background:var(--rh-inv);color:var(--rh-on-inv);font-size:13px;font-weight:700;padding:0 7px}
.rh-chip--static{min-height:32px;padding:0 12px;font-size:14px;box-shadow:none;background:var(--rh-line-2);color:var(--rh-ink-2);vertical-align:2px}

/* секции и карточки серверов */
.rh-sec{margin-top:48px}
.rh-sec__h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}
.rh-sec__lim{font-size:15px;color:var(--rh-muted);font-weight:600}
.rh-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:18px}
.rh-card{background:var(--rh-surface);border-radius:var(--rh-r-xl);overflow:hidden;box-shadow:var(--rh-sh-1);display:flex;flex-direction:column;color:var(--rh-ink)}
.rh-card__cover{position:relative;aspect-ratio:16/6.4;overflow:hidden;background:var(--game,var(--rh-line))}
.rh-card__cover img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--rh-ease)}
.rh-card:hover .rh-card__cover img{transform:scale(1.04)}
.rh-card__cover.is-asleep img{filter:saturate(.55) brightness(.88)}
.rh-card__tag{position:absolute;left:16px;bottom:14px;padding:6px 12px;border-radius:999px;background:rgba(20,18,16,.78);color:#fff;font-weight:700;font-size:14px}
.rh-card__body{padding:20px 24px 24px;display:flex;flex-direction:column;gap:16px;flex:1}
.rh-card__body h3{font:700 22px/1.15 var(--rh-f-d);letter-spacing:-.015em;margin:0;overflow-wrap:anywhere}
.rh-facts{display:flex;gap:6px 18px;flex-wrap:wrap;font-size:15px;color:var(--rh-muted);font-weight:500}
.rh-facts b{color:var(--rh-ink);font-weight:700}
.rh-facts .rh-i{width:16px;height:16px;vertical-align:-3px;color:var(--rh-ok)}
.rh-acts{display:flex;flex-direction:column;gap:10px;margin-top:auto}
.rh-acts__row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.rh-acts__row .rh-btn{flex:1}

/* статус-плашки: цвет + иконка + слова */
.rh-status{display:flex;gap:14px;align-items:center;padding:12px 16px;border-radius:18px;background:var(--rh-sleep-soft);color:var(--rh-sleep-ink)}
.rh-status b{display:block;font-weight:700;font-size:17px;line-height:1.25}
.rh-status small{display:block;font-size:15px;line-height:1.3;margin-top:2px;font-weight:500}
.rh-status .rh-i{width:28px;height:28px}
.rh-status--ok{background:var(--rh-ok-soft);color:var(--rh-ok-ink)}
.rh-status--sleep{background:var(--rh-sleep-soft);color:var(--rh-sleep-ink)}
.rh-status--busy,.rh-status--warn{background:var(--rh-warn-soft);color:var(--rh-warn)}
.rh-status--danger{background:var(--rh-danger-soft);color:var(--rh-danger-ink)}

/* адресная строка */
.rh-address{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 16px;border:2px solid var(--rh-line);border-radius:16px;background:var(--rh-bg);color:var(--rh-ink)}
.rh-address__text{font-size:17px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rh-address .rh-btn{min-height:48px;border-radius:12px;padding:0 16px}
.rh-address--hero{padding:6px 6px 6px 18px;background:var(--rh-surface);border-color:var(--rh-surface);border-radius:20px}
.rh-address--hero .rh-address__text{font-size:clamp(16px,1.55vw,20px)}
.rh-address--hero .rh-btn{min-height:52px;border-radius:14px}
.rh-address--grow{flex:1;min-width:260px}
.rh-address__how{margin-top:6px}

/* ==========================================================================
   7. ПУСТОЕ СОСТОЯНИЕ («Как это работает: 1-2-3»)
   ========================================================================== */
.rh-new-grid{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:repeat(2,minmax(240px,auto));gap:16px;margin-top:28px}
.rh-new-grid .rh-hero{grid-row:span 2;grid-column:1;min-height:500px}
.rh-new-grid .rh-hero .rh-hero__badge{background:var(--rh-t-yellow);color:var(--rh-ink)}
.rh-new-grid .rh-hero::before{background:linear-gradient(180deg,rgba(var(--rh-accent-rgb),0) 0%,rgba(var(--rh-accent-rgb),.2) 12%,rgba(var(--rh-accent-rgb),.95) 42%,var(--rh-accent) 52%)}
.rh-new-grid .rh-tile h3{font-size:22px}
.rh-steps3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px;list-style:none;counter-reset:s;padding:0}
.rh-steps3 li{counter-increment:s;display:flex;gap:16px;align-items:flex-start;padding:20px 22px;background:var(--rh-surface);border-radius:var(--rh-r-l);box-shadow:var(--rh-sh-1)}
.rh-steps3 li::before{content:counter(s);flex:none;width:44px;height:44px;border-radius:50%;background:var(--rh-inv);color:var(--rh-on-inv);display:grid;place-items:center;font:700 18px/1 var(--rh-f-d)}
.rh-steps3 b{display:block;font-size:18px;line-height:1.25;font-weight:700}
.rh-steps3 span{display:block;font-size:16px;color:var(--rh-muted);margin-top:2px;line-height:1.35}
.rh-free-note{display:flex;gap:12px;align-items:center;margin-top:20px;font-size:16px;font-weight:600;color:var(--rh-ink-2)}
.rh-free-note .rh-i{color:var(--rh-ok)}

/* компактные карточки «Первые шаги» / «Архив» над серверами */
.rh-notes{display:grid;gap:12px;margin-top:20px}
.rh-note{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:16px 20px;background:var(--rh-surface);border-radius:var(--rh-r-l);box-shadow:var(--rh-sh-1)}
.rh-note__ic{flex:none;width:44px;height:44px;border-radius:50%;background:var(--rh-t-yellow);color:var(--rh-ink);display:grid;place-items:center}
.rh-note__tx{flex:1 1 320px;min-width:0}
.rh-note__tx b{display:block;font-size:18px;font-weight:700;line-height:1.25}
.rh-note__tx span{display:block;color:var(--rh-ink-2);font-size:16px;margin-top:2px;line-height:1.35}
.rh-note__acts{display:flex;gap:10px;flex-wrap:wrap}
.rh-note .rh-bar{margin-top:10px;height:10px;max-width:420px}
.rh-note--list{display:block}
.rh-note__row{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--rh-line-2)}
.rh-note__row:first-of-type{border-top:0}

/* ==========================================================================
   8. МОДАЛЬНОЕ ОКНО, ШАГИ, ПРОГРЕСС
   ========================================================================== */
.rh-modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:24px;background:var(--rh-overlay)}
.rh-modal.is-open{display:flex}
.rh-modal__sheet{width:min(880px,100%);max-height:100%;overflow:auto;overscroll-behavior:contain;background:var(--rh-surface);color:var(--rh-ink);border-radius:var(--rh-r-xl);padding:28px 32px 32px;box-shadow:var(--rh-sh-2);animation:rh-in .3s var(--rh-ease)}
.rh-modal--sm .rh-modal__sheet{width:min(560px,100%)}
.rh-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.rh-modal__head h2{font:800 30px/1.1 var(--rh-f-d);letter-spacing:-.02em}
.rh-modal__head p{color:var(--rh-muted);margin-top:6px;font-size:16px}
.rh-modal__foot{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap;align-items:center}
.rh-howto__game{font-weight:700;font-size:18px;margin-bottom:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.rh-steps--list{list-style:none;counter-reset:h;display:grid;gap:12px;padding:0}
.rh-steps--list li{counter-increment:h;display:flex;gap:14px;align-items:flex-start;padding:14px 16px;border-radius:18px;background:var(--rh-bg)}
.rh-steps--list li::before{content:counter(h);flex:none;width:36px;height:36px;border-radius:50%;background:var(--rh-inv);color:var(--rh-on-inv);display:grid;place-items:center;font:700 16px/1 var(--rh-f-d)}
.rh-steps--list li.is-hl{background:var(--rh-t-yellow)}
.rh-steps--list li.is-hl::before{background:var(--rh-accent);color:var(--rh-on-accent)}
.rh-steps--list b{display:block;font-size:17px;line-height:1.25}
.rh-steps--list span{display:block;font-size:15px;color:var(--rh-ink-2);margin-top:2px;line-height:1.35}
.rh-steps__addr{background:var(--rh-surface);padding:2px 8px;border-radius:8px;font-size:15px!important;word-break:break-all;display:inline-block;margin-top:4px;color:var(--rh-ink)!important}
/* степпер заказа: шаги сверху */
.rh-stepper{display:flex;gap:10px;margin:8px 0 28px}
.rh-stepper>*{flex:1;text-align:left;padding:0}
.rh-stepper__s{display:block;border-top:6px solid var(--rh-line);padding-top:10px;font-weight:700;font-size:15px;color:var(--rh-muted);transition:border-color .25s}
.rh-stepper__s em{font-style:normal;display:block;font-size:14px;font-weight:600;margin-bottom:2px}
.rh-stepper__s.is-on{border-color:var(--rh-accent);color:var(--rh-ink)}
.rh-stepper__s.is-done{border-color:var(--rh-ink);color:var(--rh-ink)}
.rh-stepper__s.is-done::after{content:" ✓"}
/* прогресс установки */
.rh-prog{margin-top:28px;background:var(--rh-surface);border-radius:var(--rh-r-xl);box-shadow:var(--rh-sh-1);padding:8px 24px}
.rh-pg{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--rh-line-2)}
.rh-pg:last-child{border:0}
.rh-pg__ic{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;border:3px solid var(--rh-line);color:var(--rh-muted)}
.rh-pg.is-ok .rh-pg__ic{background:var(--rh-ok);border-color:var(--rh-ok);color:var(--rh-surface)}
.rh-pg.is-run .rh-pg__ic{border-color:var(--rh-accent);color:var(--rh-accent-text)}
.rh-pg b{display:block;font-size:19px;font-weight:700;line-height:1.2}
.rh-pg small{display:block;color:var(--rh-muted);font-size:16px;margin-top:2px}
.rh-pg.is-wait b{color:var(--rh-muted)}
.rh-bar{height:14px;border-radius:7px;background:var(--rh-line);overflow:hidden;margin-top:28px}
.rh-bar i{display:block;height:100%;width:66%;background:var(--rh-accent);border-radius:7px;transition:width 1s var(--rh-ease)}
.rh-bar__l{display:flex;justify-content:space-between;font-weight:700;margin-top:10px;font-size:16px}
/* список «что сделать после запуска» и подсказка */
.rh-todo{list-style:none;display:grid;gap:12px;margin-top:20px;counter-reset:t;padding:0}
.rh-todo li{counter-increment:t;display:flex;gap:16px;align-items:center;padding:16px 20px;background:var(--rh-surface);border-radius:var(--rh-r-l);box-shadow:var(--rh-sh-1)}
.rh-todo li::before{content:counter(t);flex:none;width:44px;height:44px;border-radius:50%;background:var(--rh-t-yellow);color:var(--rh-ink);display:grid;place-items:center;font:800 18px/1 var(--rh-f-d)}
.rh-todo li.is-done::before{content:"✓";background:var(--rh-ok);color:var(--rh-surface)}
.rh-todo b{display:block;font-size:18px;font-weight:700;line-height:1.2}
.rh-todo small{display:block;color:var(--rh-muted);font-size:15px;line-height:1.3;margin-top:2px}
.rh-todo .rh-btn{margin-left:auto}
.rh-todo__tx{flex:1;min-width:0}
.rh-invite{margin-top:10px;padding:12px 16px;border-radius:14px;background:var(--rh-bg);font-size:15px;line-height:1.4;color:var(--rh-ink-2);border:1.5px dashed var(--rh-line-strong)}
.rh-tip{display:flex;gap:14px;align-items:flex-start;margin-top:20px;padding:16px 20px;border-radius:var(--rh-r-l);background:var(--rh-accent-soft);font-size:16px;line-height:1.4;color:var(--rh-ink)}
.rh-tip .rh-i{color:var(--rh-accent-text);margin-top:1px}

/* выбор: карточки игр и ответы-кнопки (заказ сервера) */
.rh-games{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}
.rh-gcard{position:relative;display:block;cursor:pointer;border-radius:var(--rh-r-l);background:var(--rh-surface);overflow:hidden;box-shadow:var(--rh-sh-1);border:3px solid transparent;transition:transform .2s var(--rh-ease),border-color .15s,box-shadow .2s;color:var(--rh-ink)}
.rh-gcard:hover{transform:translateY(-3px);box-shadow:var(--rh-sh-2)}
.rh-gcard input{position:absolute;opacity:0;inset:0;cursor:pointer;width:100%;height:100%;margin:0}
.rh-gcard:has(input:checked){border-color:var(--rh-accent)}
.rh-gcard:has(input:focus-visible){outline:3px solid var(--rh-focus);outline-offset:3px}
.rh-gcard__im{aspect-ratio:16/10;overflow:hidden;background:var(--game,var(--rh-line))}
.rh-gcard__im img{width:100%;height:100%;object-fit:cover}
.rh-gcard__tx{padding:12px 16px 16px}
.rh-gcard__tx b{display:block;font:700 17px/1.2 var(--rh-f-d);letter-spacing:-.01em}
.rh-gcard__tx span{display:block;font-size:15px;color:var(--rh-muted);margin-top:4px;line-height:1.3}
.rh-gcard__ck{position:absolute;top:12px;right:12px;display:none;align-items:center;gap:6px;height:36px;padding:0 14px 0 10px;border-radius:999px;background:var(--rh-accent);color:var(--rh-on-accent);font-weight:700;font-size:14px}
.rh-gcard:has(input:checked) .rh-gcard__ck{display:inline-flex}
.rh-qa{display:grid;gap:12px;margin-top:24px}
.rh-ans{position:relative;display:flex;align-items:center;gap:16px;min-height:76px;padding:14px 20px;border-radius:var(--rh-r-l);background:var(--rh-surface);border:3px solid transparent;box-shadow:var(--rh-sh-1);cursor:pointer;transition:transform .15s var(--rh-ease),border-color .15s;color:var(--rh-ink)}
.rh-ans:hover{transform:translateY(-2px)}
.rh-ans input{position:absolute;opacity:0;inset:0;cursor:pointer;width:100%;height:100%;margin:0}
.rh-ans:has(input:checked){border-color:var(--rh-accent);background:var(--rh-accent-soft)}
.rh-ans:has(input:focus-visible){outline:3px solid var(--rh-focus);outline-offset:3px}
.rh-ans__rad{flex:none;width:28px;height:28px;border-radius:50%;border:3px solid var(--rh-line-strong);display:grid;place-items:center;background:var(--rh-surface)}
.rh-ans:has(input:checked) .rh-ans__rad{border-color:var(--rh-accent);background:var(--rh-accent)}
.rh-ans:has(input:checked) .rh-ans__rad::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--rh-on-accent)}
.rh-ans b{display:block;font-size:19px;line-height:1.2;font-weight:700}
.rh-ans small{display:block;font-size:16px;color:var(--rh-muted);margin-top:2px;line-height:1.3}
.rh-ans__num{margin-left:auto;font:800 28px/1 var(--rh-f-d);letter-spacing:-.02em;text-align:right;flex:none}
.rh-recap{margin-top:28px;background:var(--rh-surface);border-radius:var(--rh-r-l);box-shadow:var(--rh-sh-1);overflow:hidden}
.rh-recap__r{display:flex;align-items:center;gap:16px;padding:16px 22px;border-bottom:1px solid var(--rh-line-2)}
.rh-recap__r:last-child{border:0}
.rh-recap__k{width:130px;flex:none;color:var(--rh-muted);font-weight:600;font-size:16px}
.rh-recap__v{flex:1;font-weight:700;font-size:18px;line-height:1.25}
.rh-recap__v small{display:block;font-weight:500;color:var(--rh-muted);font-size:15px}
.rh-actions{display:flex;align-items:center;gap:12px;margin-top:36px;flex-wrap:wrap}
.rh-actions .rh-btn--xl{flex:1;max-width:460px}
.rh-opt{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--rh-line-2);cursor:pointer}
.rh-opt input{width:26px;height:26px;margin-top:2px;accent-color:var(--rh-accent);flex:none}
.rh-opt b{display:block;font-size:17px;font-weight:700}
.rh-opt small{display:block;font-size:15px;color:var(--rh-muted);line-height:1.35}
.rh-preview{background:var(--rh-surface);border-radius:var(--rh-r-xl);overflow:hidden;box-shadow:var(--rh-sh-1)}
.rh-preview dl{padding:8px 24px 6px;margin:0}
.rh-preview dl>div{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--rh-line-2);font-size:16px}
.rh-preview dt{color:var(--rh-muted);font-weight:500}
.rh-preview dd{font-weight:700;text-align:right;margin:0}
.rh-preview__tot{display:flex;justify-content:space-between;align-items:baseline;padding:16px 24px 20px}
.rh-preview__tot b{font:800 30px/1 var(--rh-f-d);letter-spacing:-.02em}
.rh-preview__tot span{font-weight:600;color:var(--rh-muted);font-size:15px}
.rh-flow-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:40px;align-items:start;margin-top:8px}
.rh-side{position:sticky;top:96px}
.rh-stp{display:flex;align-items:center;gap:6px}
.rh-stp button{width:48px;height:48px;border-radius:14px;background:var(--rh-surface);border:2px solid var(--rh-line);display:grid;place-items:center;color:var(--rh-ink);cursor:pointer}
.rh-stp button:hover{border-color:var(--rh-ink)}
.rh-stp output{min-width:64px;text-align:center;font:800 24px/1 var(--rh-f-d)}
.rh-secret{margin-top:20px;padding:20px 22px;border-radius:var(--rh-r-l);background:var(--rh-t-yellow);color:var(--rh-ink)}
.rh-hero-addr{margin-top:28px;padding:24px;background:var(--rh-t-ink);color:var(--rh-t-ink-text);border-radius:var(--rh-r-xl)}
.rh-hero-addr .rh-link{color:var(--rh-t-ink-text)}

.rh-power{display:flex;flex-direction:column;gap:10px;width:100%}
.rh-power__btns{display:flex;gap:10px;flex-wrap:wrap}
.rh-power__btns .rh-btn{flex:1 1 0;min-width:0;width:auto;padding-left:8px;padding-right:8px;gap:6px;white-space:nowrap}
.rh-power .rh-confirm{margin:0}
.rh-power [data-rh-ask][aria-expanded=true]{border-color:var(--rh-ink)}
@media (max-width:480px){.rh-power__btns .rh-btn{flex:1 1 100%}}

/* ==========================================================================
   9. ТОСТЫ (toastr) — в общем стиле, обе темы
   ========================================================================== */
#toast-container{font-family:var(--rh-f-u)}
#toast-container>div,#toast-container>.toast-success,#toast-container>.toast-error,#toast-container>.toast-warning,#toast-container>.toast-info{
  background-image:none!important;background-position:0 0!important}
#toast-container>div{position:relative;width:min(400px,calc(100vw - 32px))!important;padding:14px 48px 14px 54px!important;border-radius:16px!important;box-shadow:var(--rh-sh-2)!important;opacity:1!important;
  background-color:var(--rh-surface)!important;color:var(--rh-ink)!important;border:2px solid var(--rh-line);font-size:16px;line-height:1.4;font-weight:600;min-height:56px;display:flex;align-items:center;margin:0 0 8px}
#toast-container>div:hover{box-shadow:var(--rh-sh-2)!important}
#toast-container>div::before{content:"";position:absolute;left:18px;top:50%;width:22px;height:22px;margin-top:-11px;background:currentColor;
  -webkit-mask:var(--rh-ti) center/contain no-repeat;mask:var(--rh-ti) center/contain no-repeat}
#toast-container .toast-title{font-weight:700;font-size:16px}
#toast-container .toast-message{overflow-wrap:anywhere;min-width:0;font-size:16px;line-height:1.4;font-weight:600;color:inherit}
#toast-container>.toast-success{--rh-ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");border-color:var(--rh-ok);background-color:var(--rh-ok-soft)!important;color:var(--rh-ok-ink)!important}
#toast-container>.toast-error{--rh-ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16.5v.01'/%3E%3C/svg%3E");border-color:var(--rh-danger);background-color:var(--rh-danger-soft)!important;color:var(--rh-danger-ink)!important}
#toast-container>.toast-warning{--rh-ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");border-color:var(--rh-warn);background-color:var(--rh-warn-soft)!important;color:var(--rh-warn)!important}
#toast-container>.toast-info{--rh-ti:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.5v.01'/%3E%3C/svg%3E");border-color:var(--rh-info);background-color:var(--rh-info-soft)!important;color:var(--rh-info)!important}
#toast-container .toast-progress{opacity:.3;background-color:currentColor;height:3px}
#toast-container .toast-close-button{position:absolute;right:10px;top:50%;margin-top:-16px;float:none;color:inherit;opacity:.7;text-shadow:none;width:32px;height:32px;padding:0;
  font-size:0;line-height:0;background:none;border:0;cursor:pointer}
#toast-container .toast-close-button::before,#toast-container .toast-close-button::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2px;margin:-1px 0 0 -8px;background:currentColor;border-radius:2px;transform:rotate(45deg)}
#toast-container .toast-close-button::after{transform:rotate(-45deg)}
#toast-container .toast-close-button:hover{opacity:1}
.toast-top-right{top:84px!important;right:16px!important}

/* ==========================================================================
   9б. БОКОВОЕ МЕНЮ (вход выполнен, экран от 1380px): шапка становится колонкой слева, контент занимает всю остальную ширину.
   Уже 1380px страницы (сетки на max-width:1100px) в области справа от колонки сжимаются и обрезают адрес сервера,
   поэтому на 1201–1379px остаётся верхняя шапка (ей нужно ~1180px), а на ≤1200px — нижняя панель, как на телефоне.
   ========================================================================== */
.rh-nav__ic{display:none}
.rh-nav__cnt{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--rh-hover);color:var(--rh-ink-2);font-size:13px;font-weight:700;letter-spacing:0}
.rh-nav__a.is-on .rh-nav__cnt{background:rgba(128,128,128,.28);color:inherit}
.rh-dd__n{margin-left:auto;color:var(--rh-muted);font-weight:600;font-size:14px}
.rh-dd__menu a.rh-dd__srv{gap:10px}
.rh-dd__srv .rh-dd__t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rh-dd__srv small{flex:none;color:var(--rh-muted);font-size:13px;font-weight:600}
.rh-sr:focus{position:fixed;left:16px;top:16px;width:auto;height:auto;clip:auto;z-index:200;padding:12px 16px;background:var(--rh-surface);color:var(--rh-ink);border-radius:12px;box-shadow:var(--rh-sh-2)}
@media (min-width:1380px){
  .rh-app--side{--rh-side:272px;--rh-wrap:1320px;padding-left:var(--rh-side)}
  .rh-app--side .rh-header{position:fixed;left:0;top:0;bottom:0;width:var(--rh-side);background:var(--rh-surface);border-right:1px solid var(--rh-line-2);z-index:60}
  .rh-app--side .rh-header>.rh-wrap{max-width:none;padding:24px 16px 20px;height:100%}
  .rh-app--side .rh-header__in{flex-direction:column;align-items:stretch;gap:0;height:100%}
  .rh-app--side .rh-logo{padding:2px 12px 24px}
  .rh-app--side .rh-nav{flex-direction:column;align-items:stretch;gap:4px;margin:0}
  .rh-app--side .rh-nav>.rh-dd{display:block}
  .rh-app--side .rh-nav__a{width:100%;height:50px;padding:0 14px;gap:14px;border-radius:16px}
  .rh-app--side .rh-nav__a .rh-nav__ic{display:inline-block;width:20px;height:20px;margin:0;flex:none}
  .rh-app--side .rh-nav__a:not(.is-on) .rh-nav__ic{color:var(--rh-muted)}
  .rh-app--side .rh-nav__a>.rh-i:last-child:not(.rh-nav__ic){margin:0 0 0 auto;transform:rotate(-90deg)}
  /* меню «Помощь» раскрывается вправо; невидимый мост не даёт ему закрыться, пока курсор идёт к пункту по диагонали */
  .rh-app--side .rh-dd--hover .rh-dd__menu{left:calc(100% + 22px);right:auto;top:-8px;max-width:360px;max-height:calc(100vh - 270px);overflow-y:auto;overscroll-behavior:contain}
  .rh-app--side .rh-dd--hover:hover::after{content:"";position:absolute;left:100%;top:-8px;width:24px;height:calc(100% + 440px)}
  .rh-app--side:has(#rh-profile.is-open) .rh-dd--hover .rh-dd__menu{display:none}
  .rh-app--side .rh-header__r{margin:auto 0 0;flex-direction:column;align-items:stretch;gap:6px;border-top:1px solid var(--rh-line-2);padding-top:16px}
  .rh-app--side .rh-bal{height:auto;flex-direction:column;align-items:stretch;gap:10px;padding:14px;border-radius:20px;background:var(--rh-surface-2);box-shadow:none}
  .rh-app--side .rh-bal b{font-size:clamp(20px,1.8vw,26px);overflow:hidden;text-overflow:ellipsis}
  .rh-app--side .rh-bal b::before{content:"Баланс";display:block;font:600 14px/1 var(--rh-f-u);color:var(--rh-muted);margin-bottom:8px}
  .rh-app--side .rh-bal__pl{justify-content:center;height:46px}
  .rh-app--side .rh-theme{width:100%;justify-content:flex-start;height:46px;padding:0 14px;border-radius:14px;gap:12px}
  .rh-app--side .rh-theme__k{display:inline}
  .rh-app--side #rh-profile{width:100%}
  .rh-app--side .rh-me{width:100%;height:56px;padding:0 12px 0 8px;border-radius:16px}
  .rh-app--side .rh-me__name{display:block;max-width:none;flex:1;text-align:left}
  /* меню профиля раскрывается вбок; «Выйти» остаётся видно, даже если меню длиннее окна */
  .rh-app--side #rh-profile .rh-dd__menu{left:calc(100% + 22px);right:auto;top:auto;bottom:0;max-height:calc(100vh - 32px);overflow:auto;scrollbar-width:thin}
  .rh-app--side #rh-profile .rh-dd__menu a.is-danger{position:sticky;bottom:0;background:var(--rh-surface)}
  /* липкие блоки и якоря: сверху больше нет шапки высотой 80px */
  .rh-app--side .rh-side,.rh-app--side .rh-acc-aside,.rh-app--side .rh-wo-side,html[data-rh] body .rh-app--side .card.card-sticky,.rh-app--side .bento-stack.is-sticky{top:24px}
  .rh-app--side .rh-prof-card,.rh-app--side .rh-kb-group,.rh-app--side .rh-kb-art,.rh-app--side .rh-nw-talk{scroll-margin-top:24px}
  html:has(.rh-app--side) .toast-top-right{top:24px!important}
  .rh-app--side .rh-flashes{margin-top:16px}
}
@media (min-width:1700px){.rh-app--side{--rh-wrap:1440px}}
/* низкое окно (ноутбук с панелями браузера): колонка не должна терять профиль и тему */
@media (min-width:1380px) and (max-height:600px){
  .rh-app--side .rh-header>.rh-wrap{padding-top:12px;padding-bottom:12px}
  .rh-app--side .rh-logo{padding-bottom:10px}
  .rh-app--side .rh-nav__a{height:42px}
  .rh-app--side .rh-bal{flex-direction:row;align-items:center;justify-content:space-between;padding:6px 6px 6px 14px;gap:8px}
  .rh-app--side .rh-bal b::before{display:none}
  .rh-app--side .rh-bal b{font-size:20px}
  .rh-app--side .rh-bal__pl{height:38px;padding:0 12px}
  .rh-app--side .rh-theme{height:40px}
  .rh-app--side .rh-me{height:48px}
  .rh-app--side .rh-header__r{padding-top:10px}
}

/* ==========================================================================
   10. АДАПТИВ
   ========================================================================== */
@media (max-width:1560px){
  .rh-theme__k{display:none}
  .rh-header__in{gap:14px}
  .rh-header__r{gap:4px}
  .rh-me__name{display:none}
  .rh-me{padding:0 12px 0 6px}
}
@media (max-width:1200px){
  .rh-theme__k{display:none}
  .rh-nav__a{padding:0 12px}
  .rh-header__in{gap:12px}
}
@media (max-width:1100px){
  .rh-tiles{grid-template-columns:repeat(2,1fr)}
  .rh-hero{grid-column:span 2;grid-row:span 1}
  .rh-tile--span2{grid-column:span 2}
  .rh-flow-grid{grid-template-columns:1fr}
  .rh-side{position:static;order:-1;display:none}
  .rh-new-grid{grid-template-columns:1fr 1fr}
  .rh-new-grid .rh-hero{grid-column:span 2;grid-row:auto}
}
@media (max-width:1200px){
  .rh-nav,.rh-header__r .rh-theme,.rh-header__r .rh-dd,.rh-header__r .rh-me{display:none}
  html[data-rh] body{padding-bottom:96px}
  .rh-footer{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
  .rh-bnav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--rh-surface);border-top:1px solid var(--rh-line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));align-items:stretch}
  .rh-bnav a,.rh-bnav button{display:flex;flex-direction:column;align-items:center;gap:4px;justify-content:center;min-height:60px;padding:6px 0;font:600 14px/1.1 var(--rh-f-u);color:var(--rh-ink-2);border-radius:14px;text-decoration:none;background:none;border:0;cursor:pointer;position:relative}
  .rh-bnav a.is-on{color:var(--rh-ink);font-weight:800}
  .rh-bnav a.is-on .rh-i{stroke-width:2.4}
  .rh-bnav__badge{position:absolute;top:2px;right:calc(50% - 22px);min-width:20px;height:20px;border-radius:10px;background:var(--rh-accent);color:var(--rh-on-accent);font-size:12px;font-weight:700;display:grid;place-items:center;padding:0 5px}
}
@media (max-width:760px){
  .rh-wrap{padding:0 16px}
  .rh-header__in{height:64px;gap:8px}
  .rh-logo{font-size:16px;gap:8px}.rh-logo .rh-i{width:30px;height:30px}
  .rh-header__r{gap:0}
  .rh-bal{height:48px;padding:0 4px 0 12px;gap:8px}
  .rh-bal b{font-size:15px}
  .rh-bal__pl{padding:0 10px;font-size:14px;height:38px}
  .rh-flashes{padding:0 16px}
  .rh-intro{padding-top:8px}
  .rh-h1{font-size:34px}
  .rh-next{border-radius:22px;padding:10px;gap:10px;align-items:flex-start;flex-direction:column;width:100%}
  .rh-next__t{font-size:16px;padding:0 6px 4px}
  .rh-switch{gap:10px;margin-top:20px}
  .rh-switch__list{width:100%;flex-direction:column}
  .rh-switch button{width:100%}
  .rh-tiles{gap:12px;grid-auto-rows:auto;margin-top:16px}
  .rh-tile{padding:18px;min-height:168px;border-radius:26px}
  .rh-tile h3{font-size:15px;overflow-wrap:anywhere}
  .rh-tile p{font-size:15px;max-width:none}
  .rh-tile__go{width:40px;height:40px}
  .rh-tile__ghost{width:120px;height:120px}
  .rh-hero{padding:20px;padding-top:210px;min-height:0;grid-column:span 2}
  .rh-hero__badge{top:16px;left:16px;font-size:15px}
  .rh-hero h2{font-size:30px}
  .rh-hero__art{height:290px;inset:0 0 auto 0;object-position:50% 30%}
  .rh-hero::before{background:linear-gradient(180deg,rgba(var(--rh-accent-rgb),0) 0,rgba(var(--rh-accent-rgb),0) 12%,rgba(var(--rh-accent-rgb),.9) 30%,var(--rh-accent) 40%)}
  .rh-hero .rh-address{flex-wrap:wrap;padding:12px;border-radius:18px}
  .rh-hero .rh-address__text{flex:1 1 100%;font-size:17px}
  .rh-hero .rh-address .rh-btn{flex:1 1 100%;min-height:56px}
  .rh-tile--span2{grid-column:span 2;min-height:190px}
  .rh-tile--ink .rh-fan{width:40%;right:4px;top:12px;bottom:12px}
  .rh-fan img{width:84px;border-width:3px}
  .rh-fan img:nth-child(1){display:none}
  .rh-fan img:nth-child(2){right:40px;top:14px}
  .rh-fan img:nth-child(3){right:-14px;top:48px}
  .rh-tile--ink h3{max-width:9ch}.rh-tile--ink p{max-width:15ch}
  .rh-chip{min-height:52px}.rh-chip small{display:none}
  .rh-sec{margin-top:36px}
  .rh-h2{font-size:24px}
  .rh-cards{grid-template-columns:1fr;gap:16px}
  .rh-card__cover{aspect-ratio:16/8}
  .rh-card__body{padding:18px}
  .rh-acts__row{flex-direction:column;align-items:stretch}
  .rh-address{flex-wrap:wrap;padding:12px;border-radius:18px}
  .rh-address__text{flex:1 1 100%;font-size:18px}
  .rh-address .rh-btn{flex:1 1 100%;min-height:52px}
  .rh-footer{margin-top:40px;padding-bottom:calc(112px + env(safe-area-inset-bottom))}
  .rh-footer .rh-wrap{flex-direction:column;align-items:flex-start}
  .rh-new-grid{grid-template-columns:1fr;grid-template-rows:none;gap:12px;margin-top:20px}
  .rh-new-grid .rh-hero{grid-column:auto;min-height:0;padding-top:200px}
  .rh-new-grid .rh-tile{min-height:150px}
  .rh-new-grid .rh-tile h3{font-size:19px}
  .rh-steps3{grid-template-columns:1fr;gap:10px}
  .rh-steps3 li{padding:16px}
  .rh-games-row{gap:8px}.rh-games-row span{height:40px;font-size:14px;padding:0 12px 0 3px}.rh-games-row img{width:32px;height:32px}
  .rh-stepper__s{font-size:14px}.rh-stepper__s em{display:none}.rh-stepper{gap:8px;margin-bottom:22px}
  .rh-games{grid-template-columns:repeat(2,1fr);gap:12px;margin-top:22px}
  .rh-gcard__tx{padding:10px 12px 14px}.rh-gcard__tx b{font-size:16px}.rh-gcard__tx span{font-size:14px}
  .rh-ans{padding:12px 16px;gap:12px;min-height:72px}.rh-ans b{font-size:18px}.rh-ans__num{font-size:22px}
  .rh-actions{position:sticky;bottom:0;margin:28px -16px 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(180deg,transparent,var(--rh-bg) 24%);z-index:30;flex-wrap:nowrap}
  .rh-actions .rh-btn--xl{max-width:none;flex:1 1 0;padding:0 16px}
  .rh-recap__r{flex-wrap:wrap;gap:4px 12px;padding:14px 16px}.rh-recap__k{width:100%;font-size:15px}.rh-recap__v{font-size:17px}
  .rh-modal{padding:0;align-items:flex-end}
  .rh-modal__sheet{border-radius:28px 28px 0 0;padding:20px 16px 24px;max-height:calc(100% - 24px)}
  .rh-modal__head h2{font-size:24px}
  .rh-todo li{flex-wrap:wrap}
  .rh-todo .rh-btn{margin-left:60px;width:calc(100% - 60px)}
  .rh-note{padding:14px 16px}
  .rh-note__acts{width:100%}.rh-note__acts .rh-btn{flex:1}
  .rh-address--grow{min-width:0;flex:1 1 100%}
  #toast-container{left:0;right:0}
  .toast-top-right{top:72px!important;right:8px!important}
}
@media (prefers-reduced-motion:reduce){.rh-app *,.rh-modal *{animation:none!important;transition:none!important}html[data-rh]{scroll-behavior:auto}}

/* ---------- дополнения ---------- */
html.rh-lock{overflow:hidden}
.rh-dd--hover.is-suppressed>.rh-dd__menu{display:none!important}
.rh-note__ic--sand{background:var(--rh-t-sand)}
.rh-note__id{font-style:normal;font-weight:500;color:var(--rh-muted)}
.rh-news{list-style:none;margin:20px 0 0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.rh-news li{min-width:0}
.rh-news a{display:flex;align-items:center;gap:16px;min-height:52px;padding:6px 18px;max-width:100%;box-sizing:border-box;border-radius:16px;background:var(--rh-surface);box-shadow:var(--rh-sh-1);color:var(--rh-ink);text-decoration:none;font-weight:600}
.rh-news a:hover{color:var(--rh-ink);text-decoration:none;box-shadow:var(--rh-sh-2)}
.rh-news time{flex:none;font-size:14px;color:var(--rh-muted);font-weight:600;min-width:84px}
.rh-news span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rh-news .rh-i{color:var(--rh-muted)}
.rh-note__row .rh-note__tx{flex:1 1 280px}
.rh-news a{font-size:16px;line-height:1.3}
.rh-new-grid .rh-hero__sub{max-width:none}
.rh-bnav>*{min-width:0}
.rh-more__who b{font-size:17px;font-weight:700}
.rh-dd__who b{font-size:16px}
.rh-dd__menu::before{content:"";position:absolute;left:0;right:0;top:-8px;height:8px}

/* опасная кнопка (общая): тихая по умолчанию, красная по наведению */
.rh-btn--danger{background:var(--rh-danger-soft);color:var(--rh-danger-ink);border:2px solid transparent}
.rh-btn--danger:hover{border-color:var(--rh-danger)}
/* локация переехала на новую машину: сменился IP (rh_ipmove_notes в common/rhhelpers.php) */
.rh-ipmove{margin:0 0 16px;padding:18px 20px;border-radius:var(--rh-r-l);background:var(--rh-surface);box-shadow:var(--rh-sh-1);color:var(--rh-ink)}
.rh-ipmove__head{display:flex;gap:14px;align-items:flex-start}
.rh-ipmove__ic{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--rh-info-soft);color:var(--rh-info)}
.rh-ipmove__tx{flex:1;min-width:0;display:grid;gap:4px}
.rh-ipmove__tx b{font:700 18px/1.25 var(--rh-f-d)}
.rh-ipmove__tx span{color:var(--rh-ink-2);font-size:15px;line-height:1.45}
.rh-ipmove__x{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:var(--rh-muted)}
.rh-ipmove__x:hover{background:var(--rh-hover);color:var(--rh-ink)}
.rh-ipmove__list{display:grid;gap:8px;margin:14px 0 0}
.rh-ipmove__list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px 16px;padding:10px 12px 10px 16px;border-radius:14px;background:var(--rh-bg)}
.rh-ipmove__name{min-width:0}
.rh-ipmove__name b{display:block;font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rh-ipmove__name small{display:block;font-size:13px;color:var(--rh-muted);text-decoration:line-through}
.rh-ipmove__addr{font-weight:700;font-size:16px;color:var(--rh-ok);white-space:nowrap}
.rh-ipmove__list .rh-btn{min-height:40px}
.rh-ipmove__more{display:block!important;color:var(--rh-muted);font-size:14px;background:none!important;padding:0 4px!important}
.rh-ipmove__tip{margin:10px 0 0;font-size:14px;color:var(--rh-muted)}
@media (max-width:640px){
  .rh-ipmove{padding:16px}
  .rh-ipmove__list li{grid-template-columns:minmax(0,1fr) auto}
  .rh-ipmove__name{grid-column:1/-1}
  .rh-ipmove__addr{font-size:15px;min-width:0;overflow-wrap:anywhere;white-space:normal}
  .rh-ipmove__list .rh-btn span{display:none}
  .rh-ipmove__list .rh-btn{width:44px;padding:0}
}
