/* «Обучение» (js/tour.js, 28 октября 2026): окна по шагам поверх приложения */
.tr-layer{position:fixed;inset:0;z-index:1200;font-family:Inter,-apple-system,'Segoe UI',system-ui,sans-serif}
.tr-block{position:absolute;inset:0;background:transparent}
.tr-layer.tr-dim .tr-block{background:rgba(24,22,48,.55)}
.tr-spot{position:fixed;border-radius:18px;pointer-events:none;box-shadow:0 0 0 2px rgba(255,255,255,.9),0 0 0 9999px rgba(24,22,48,.55);
  transition:top .28s ease,left .28s ease,width .28s ease,height .28s ease}
.tr-box{position:fixed;width:min(380px,calc(100vw - 24px));background:#fff;color:#1C1C1E;border-radius:18px;padding:18px 20px 16px;
  box-shadow:0 24px 60px -20px rgba(24,22,48,.55),0 2px 6px rgba(24,22,48,.12);outline:none;transition:opacity .18s ease,top .28s ease,left .28s ease}
.tr-box.tr-wait{opacity:.0}
.tr-box.tr-mid{top:50%!important;left:50%!important;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 32px))}
.tr-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.tr-n{font-size:12.5px;font-weight:600;color:#6B6B76}
.tr-x{width:32px;height:32px;margin:-6px -8px -6px 0;border:0;border-radius:10px;background:transparent;color:#6B6B76;cursor:pointer;display:grid;place-items:center}
.tr-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.tr-x:hover{background:rgba(118,118,128,.1);color:#1C1C1E}
.tr-t{margin:0 0 6px;font-size:18px;line-height:1.3;font-weight:700;letter-spacing:-.01em}
.tr-p{margin:0;font-size:14.5px;line-height:1.5;color:#3A3A44}
.tr-bar{height:4px;border-radius:4px;background:rgba(74,72,184,.12);margin:16px 0 14px;overflow:hidden}
.tr-bar i{display:block;height:100%;background:#4A48B8;border-radius:4px;transition:width .28s ease}
.tr-acts{display:flex;align-items:center;gap:8px}
.tr-sp{flex:1}
.tr-back,.tr-next{min-height:42px;padding:0 16px;border-radius:12px;font:600 14.5px/1 inherit;font-family:inherit;cursor:pointer}
.tr-back{border:0;background:transparent;color:#4A48B8;padding:0 10px}
.tr-back:hover{background:rgba(74,72,184,.08)}
.tr-next{border:0;background:#4A48B8;color:#fff}
.tr-next:hover{background:#3F3DA8}
.tr-x:focus-visible,.tr-back:focus-visible,.tr-next:focus-visible,.tr-opt:focus-visible,.tr-later:focus-visible{outline:2px solid #4A48B8;outline-offset:2px}
@media (max-width:760px){
  .tr-box:not(.tr-mid){left:12px!important;right:12px;top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:auto}
  .tr-next{flex:0 0 auto}
}
@media (prefers-reduced-motion:reduce){.tr-spot,.tr-box,.tr-bar i{transition:none}}
/* окно выбора */
.tr-ch{display:flex;flex-direction:column;gap:10px}
.tr-opt{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:14px 16px;border-radius:14px;
  border:1px solid rgba(74,72,184,.22);background:rgba(255,255,255,.7);color:#1C1C1E;cursor:pointer;font-family:inherit}
.tr-opt b{font-size:15px;font-weight:650}
.tr-opt small{font-size:13px;line-height:1.45;color:#6B6B76}
.tr-opt:hover{border-color:#4A48B8;background:rgba(74,72,184,.06)}
.tr-later{align-self:center;border:0;background:transparent;color:#6B6B76;font:600 14px/1 inherit;font-family:inherit;padding:10px 14px;border-radius:10px;cursor:pointer}
.tr-later:hover{color:#1C1C1E;background:rgba(118,118,128,.08)}
