/* =====================================================================
   Boostelo — дополнения к style.css: компоненты backend-версии
   и исправления мобильной вёрстки. Подключается последним на каждой странице.
   ===================================================================== */

html{-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
img{max-width:100%}
[hidden]{display:none!important}

/* ---------- уведомления ---------- */
.bst-toasts{position:fixed;left:50%;top:18px;transform:translateX(-50%);z-index:5000;display:flex;flex-direction:column;gap:8px;width:min(440px,calc(100vw - 24px));pointer-events:none}
.bst-toast{padding:13px 16px;border-radius:12px;border:1px solid rgba(139,92,246,.35);background:rgba(16,15,26,.97);color:#eeeaf6;font:600 13px/1.45 Inter,Arial,sans-serif;box-shadow:0 18px 50px rgba(0,0,0,.45);opacity:0;transform:translateY(-8px);transition:.25s ease;pointer-events:auto}
.bst-toast.show{opacity:1;transform:none}
.bst-toast-error{border-color:rgba(244,63,94,.45);color:#ffd5dc}
.bst-toast-success{border-color:rgba(34,197,94,.45);color:#cdf7dc}

/* ---------- навигация ---------- */
.nav-mobile-extra{display:none}
.nav-actions .nav-admin{font-size:12px;font-weight:800;color:#c9a8ff;padding:8px 11px;border:1px solid rgba(168,85,247,.35);border-radius:9px;background:rgba(139,92,246,.08)}
.nav-actions .nav-admin:hover{color:#fff}
.nav-drop-link.active{color:#fff}
/* меню ☰ появляется с 1200px (как в дизайне) — выпадающий список работает на всём этом диапазоне */
@media(max-width:1200px){
  .site-nav .nav-inner{position:relative}
  .site-nav .menu{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:40px;font-size:17px;cursor:pointer}
  .site-nav.nav-open .nav-links{display:flex!important;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;padding:8px 18px 18px;background:#09090f;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 24px 60px rgba(0,0,0,.55);max-height:calc(100dvh - 62px);overflow-y:auto}
  .site-nav.nav-open .nav-links>a,.site-nav.nav-open .nav-drop-link,.site-nav.nav-open .nav-mobile-extra a{display:flex;align-items:center;justify-content:space-between;padding:14px 2px;font-size:15px;font-weight:700;color:#d6d2df;border-bottom:1px solid rgba(255,255,255,.06)}
  .site-nav.nav-open .nav-dropdown{display:block}
  .site-nav.nav-open .nav-drop-menu{position:static;display:none;width:auto;opacity:1;visibility:visible;transform:none!important;margin:4px 0 8px;padding:4px;box-shadow:none}
  .site-nav.nav-open .nav-dropdown.open .nav-drop-menu{display:block}
  .site-nav.nav-open .nav-dropdown.open .nav-drop-link span{transform:rotate(180deg)}
  .site-nav.nav-open .nav-drop-menu a{font-size:14px!important;padding:12px!important}
  .site-nav.nav-open .nav-mobile-extra{display:flex;flex-direction:column}
  .site-nav.nav-open .nav-mobile-extra .nav-mobile-account{margin-top:14px;justify-content:center;border:0;border-radius:12px;background:linear-gradient(100deg,var(--purple),var(--pink));color:#fff}
  .nav-actions .nav-admin{display:none}
}
@media(max-width:650px){
  .nav-actions{gap:10px}
  .nav-actions>a[href="/details"],.nav-actions>a[href="details.html"]{display:none}
}

/* ---------- главная: LIVE, блок «О нас» ---------- */
@media(max-width:760px){
  .live-inline{flex-wrap:wrap;justify-content:center;white-space:normal;overflow:visible;row-gap:6px;column-gap:10px;text-align:center}
  .live-inline-sep{display:none}
  .live-inline-status{width:100%;justify-content:center}
}
@media(max-width:650px){
  .hero:before{background:linear-gradient(90deg,rgba(8,8,13,.96) 0%,rgba(8,8,13,.9) 60%,rgba(8,8,13,.6) 100%),linear-gradient(180deg,transparent 70%,var(--bg) 100%)!important}
  .about-visual{min-height:260px}
  .hero,.hero-inner{min-height:0}
  .hero-copy{padding:48px 0 56px}
  .hero h1{font-size:40px;line-height:1.02}
  .actions{flex-wrap:wrap}
}

/* ---------- подвал ---------- */
@media(max-width:700px){
  .footer{padding:32px 0 96px}
  .footer-inner{flex-wrap:wrap;justify-content:center;text-align:center;gap:14px}
  .footer-inner>a img{width:120px}
  .footer-docs{margin:0!important;order:2;width:100%;justify-content:center;gap:14px 20px}
  .footer small{order:3;width:100%}
}

/* ---------- кнопки заказа ---------- */
button.coach-buy,button.coach-modal-buy{border:0;color:#fff;font-family:inherit;cursor:pointer;width:100%}
button.coach-modal-buy{width:auto}
.is-loading{opacity:.7;pointer-events:none;cursor:progress}

/* ---------- калькуляторы: мобильная вёрстка ---------- */
.boostelo-promo-input::placeholder{text-transform:none;letter-spacing:0}
@media(max-width:700px){
  .faceit-mode-switch{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .faceit-mode-btn{padding:11px 4px!important;font-size:10.5px!important;letter-spacing:.2px!important}
  /* MM / Напарники: звание и победы — в две полноразмерные строки */
  .mm-reference-control{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .mm-rank-side{grid-column:1!important;grid-row:1!important;width:100%!important;height:70px!important;justify-content:center}
  .mm-rank-side img{width:150px!important;height:70px!important}
  .mm-field.current{grid-column:1!important;grid-row:2!important}
  .mm-field.target{grid-column:1!important;grid-row:3!important;margin-top:0!important}
  .mm-reference-arrow,.mm-win-wrap{display:none!important}
  .mm-input-wrap{grid-template-columns:52px minmax(0,1fr) 52px!important}
  .mm-input-wrap .mm-select{padding:0 10px!important;font-size:14px!important;text-overflow:ellipsis}
  .mm-map-row{grid-template-columns:48px minmax(0,1fr) 48px!important;gap:8px!important}
  .mm-map-select{width:100%!important;min-width:0!important}
}
@media(max-width:520px){
  /* FACEIT ELO: поле ввода не должно обрезать число */
  .faceit-elo-control{grid-template-columns:52px minmax(0,1fr)!important;gap:8px 10px!important}
  .faceit-elo-arrow-btn{display:none!important}
  .faceit-level-side{width:52px!important;height:52px!important}
  .faceit-level-side img{width:52px!important;height:52px!important}
  .faceit-elo-field.current{grid-column:2!important;grid-row:1!important}
  .faceit-elo-field.target{grid-column:2!important;grid-row:2!important;margin-top:10px!important}
  .faceit-level-side.current-side{grid-column:1!important;grid-row:1!important;align-self:end}
  .faceit-level-side.target-side{grid-column:1!important;grid-row:2!important;align-self:end}
  .faceit-elo-input-wrap{grid-template-columns:44px minmax(0,1fr) 44px!important;gap:5px!important}
  .faceit-step-btn{font-size:11px!important;padding:0!important}
  .faceit-elo-input-wrap .elo-input{padding:0 6px!important;text-align:center;font-size:16px!important}
  .calc-frame{padding:6px!important}
  .calc-source .premier-card,.calc-source .calculator-card,.calc-source .mm-card{padding:16px 14px!important}
  .boostelo-promo{padding:12px}
  .boostelo-promo-row{gap:6px}
  .boostelo-promo-input{font-size:13px;padding:0 10px}
  .boostelo-promo-button{padding:0 12px;font-size:12px}
  .premier-title,.calculator-title{font-size:26px!important}
  .order-button,.premier-order{font-size:13px}
}
/* iOS: поля ввода 16px, чтобы Safari не зумил страницу */
@media(max-width:600px){
  input.elo-input,input.premier-input,input.premier-wins-input,.boostelo-promo-input,.auth-input,.settings-input,.promo-input,.boostelo-chat-form input,.pay-field input,.pay-field textarea,.pay-promo input,select{font-size:16px!important}
}

/* ---------- авторизация ---------- */
.auth-error{margin:4px 0 14px;padding:11px 13px;border-radius:10px;border:1px solid rgba(244,63,94,.3);background:rgba(244,63,94,.08);color:#ffb3c0;font-size:12px;line-height:1.5}
.auth-success{margin:4px 0 14px;padding:11px 13px;border-radius:10px;border:1px solid rgba(34,197,94,.3);background:rgba(34,197,94,.08);color:#b9f3cd;font-size:12px;line-height:1.5}
.auth-success a{color:#fff;text-decoration:underline}
.auth-agree{margin:2px 0 16px;font-size:11px;color:#8f92a2;display:flex;gap:8px;align-items:center}
.auth-agree a{color:#c4a1ff}
@media(max-width:1000px){.auth-shell{grid-template-columns:1fr!important;max-width:460px!important}}
@media(max-width:720px){
  .auth-page{padding:64px 12px 24px;place-items:start center}
  .auth-back{position:absolute;top:18px;left:16px;font-size:12px}
  .auth-form{padding:28px 20px!important}
  .auth-form h2{font-size:24px}
}

/* ---------- чат поддержки ---------- */
.bst-chat-badge{position:absolute;left:-6px;top:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#ff3d71;color:#fff;font:800 11px/20px Inter,Arial,sans-serif;text-align:center;box-shadow:0 4px 12px rgba(255,61,113,.45)}
.bst-chat-head-actions{display:flex;gap:6px}
.bst-chat-expand{display:grid;place-items:center;font-size:15px;text-decoration:none}
.boostelo-chat-messages{scroll-behavior:auto}
.bst-msg-system{margin:4px auto 14px;max-width:92%;padding:9px 12px;border-radius:12px;border:1px dashed rgba(139,92,246,.3);background:rgba(139,92,246,.06);color:#c7bfdc;font-size:11px;line-height:1.5;text-align:center}
.bst-msg-system span{display:block;margin-top:4px;color:#6f6a7c;font-size:9px}
.bst-chat-img{display:block;max-width:100%;max-height:220px;border-radius:10px;margin:2px 0 6px;border:1px solid rgba(255,255,255,.1);background:#0b0a12}
.boostelo-msg-user .bst-read{font-style:normal;margin-left:4px;opacity:.75}
.boostelo-msg-user .bst-read.is-read{color:#bff5d4;opacity:1}
.boostelo-msg-user span{color:rgba(255,255,255,.7)!important}
.bst-chat-contact{padding:8px 12px 0;background:#0c0b12;border-top:1px solid var(--line)}
.bst-chat-contact input{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:#13121b;color:#fff;padding:9px 11px;font-size:11px;outline:none}
.bst-chat-attach{display:flex;align-items:center;gap:9px;padding:8px 12px 0;background:#0c0b12;color:#b9b5c6;font-size:11px}
.bst-chat-attach img{width:38px;height:38px;object-fit:cover;border-radius:8px;border:1px solid rgba(255,255,255,.12)}
.bst-chat-attach button{margin-left:auto;width:26px;height:26px;border:0;border-radius:8px;background:rgba(255,255,255,.07);color:#ccc;cursor:pointer}
.bst-chat-clip{width:40px;flex:0 0 40px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.1);border-radius:11px;background:#15141e;cursor:pointer;font-size:16px;filter:grayscale(.3)}
.bst-chat-clip:hover{border-color:rgba(168,85,247,.55)}
.boostelo-chat-form.is-sending button[type=submit]{opacity:.5}
.boostelo-chat-note a{color:#a58bd8}
.boostelo-chat-note{font-size:9px!important;padding-bottom:12px!important}
@media(max-width:600px){
  .boostelo-chat-panel{position:fixed!important;left:8px!important;right:8px!important;bottom:78px!important;width:auto!important;height:min(600px,calc(100dvh - 92px))!important}
  .boostelo-chat-teaser{width:min(250px,calc(100vw - 90px))!important;bottom:64px!important;padding:12px 38px 12px 14px!important}
  .boostelo-chat-teaser-text{font-size:11px!important}
  body.bst-chat-open{overflow:hidden}
}

/* ---------- магазин / розыгрыши ---------- */
.shop-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:48px 20px;border:1px dashed rgba(139,92,246,.3);border-radius:18px;text-align:center;color:#a19db0}
.shop-empty b{color:#fff;font-size:17px}
.account-buy{cursor:pointer}
@media(max-width:720px){.account-card{min-height:0!important;padding-bottom:28px!important}}
.giveaway-empty{font-size:11px;color:#8b8799}

/* ---------- оплата ---------- */
.pay-test-banner{max-width:1120px;margin:-14px auto 22px;padding:12px 16px;border-radius:12px;border:1px solid rgba(245,158,11,.35);background:rgba(245,158,11,.08);color:#f7cf7a;font-size:12px;font-weight:700;text-align:center}
.order-preview-route{margin-top:5px;color:#9d9aac;font-size:12px}
.pay-login{margin-top:22px;padding:18px;border:1px solid rgba(139,92,246,.3);border-radius:16px;background:rgba(139,92,246,.07)}
.pay-login b{display:block;font-size:15px;margin-bottom:6px}
.pay-login span{display:block;color:#a09cb0;font-size:12px;line-height:1.6;margin-bottom:14px}
.pay-promo{display:flex;gap:8px}
.pay-promo input{flex:1;min-width:0;border:1px solid rgba(255,255,255,.1);background:#09090f;color:#fff;border-radius:11px;padding:12px 14px;outline:none;font:600 13px Inter,Arial,sans-serif;text-transform:uppercase}
.pay-promo input::placeholder{text-transform:none}
.pay-promo button{border:1px solid rgba(139,92,246,.45);background:rgba(139,92,246,.12);color:#fff;border-radius:11px;padding:0 16px;font-weight:800;cursor:pointer}
.pay-promo-msg{min-height:16px;margin-top:7px;font-size:12px;color:#8f8a98}
.pay-promo-msg.success{color:#9ff0c0}.pay-promo-msg.error{color:#ff96a7}
.pay-field textarea{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.1);background:#09090f;color:#fff;border-radius:11px;padding:12px 14px;outline:none;font:500 13px/1.5 Inter,Arial,sans-serif;resize:vertical}
.pay-field textarea:focus{border-color:#9b5cff}
.pay-note a{color:#b996ff}
.pay-submit:disabled{opacity:.6;cursor:progress}
.pay-empty{max-width:560px;margin:0 auto;text-align:center}
.pay-empty p{color:#9d9aac}
.pay-success p{word-break:break-word}
.summary-line strong{text-align:right;max-width:62%;word-break:break-word}
@media(max-width:600px){
  .payment-page{padding:32px 12px 70px}
  .pay-card{padding:18px;border-radius:18px}
  .order-preview{flex-direction:column;align-items:flex-start}
  .pay-actions{flex-direction:column-reverse}
}

/* ---------- личный кабинет ---------- */
.cab-nav-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:auto;padding:0 5px;border-radius:999px;background:#ff3d71;color:#fff;font:800 10px/1 Inter,Arial,sans-serif;font-style:normal}
.cab-site-link{display:block;margin:12px 4px 0;padding:8px 10px;font-size:11px;font-weight:700;color:#8f92a2;border-radius:9px}
.cab-site-link:hover{color:#fff;background:rgba(255,255,255,.03)}
.cab-admin-link{color:#c9a8ff}
.cab-loading{color:#8f92a2;font-size:12px}
.cab-empty{color:#8f92a2;font-size:12px;line-height:1.6;padding:6px 0}
.cab-empty a{color:#c4a1ff}
.cab-note{margin-top:14px;padding:11px 13px;border-radius:10px;background:rgba(139,92,246,.07);border:1px solid rgba(139,92,246,.18);color:#c8c1d8;font-size:12px}
.order-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}
.cab-form-msg{margin-top:12px;padding:10px 12px;border-radius:10px;font-size:12px;line-height:1.5}
.cab-form-msg.success{background:rgba(34,197,94,.08);border:1px solid rgba(34,197,94,.25);color:#b9f3cd}
.cab-form-msg.error{background:rgba(244,63,94,.08);border:1px solid rgba(244,63,94,.28);color:#ffb3c0}
.topup-form{display:flex;gap:10px;max-width:460px}
.topup-form .promo-input{flex:1}
.topup-quick{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.topup-quick button{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);color:#bdbac8;border-radius:9px;padding:7px 11px;font-size:11px;font-weight:800;cursor:pointer}
.topup-quick button:hover{color:#fff;border-color:rgba(139,92,246,.45)}
.promo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.promo-item{position:relative}
.promo-item b{font-size:15px!important}
.promo-copy{position:absolute;right:14px;top:14px;border:1px solid rgba(139,92,246,.35);background:rgba(139,92,246,.1);color:#d9c8ff;border-radius:8px;padding:6px 9px;font-size:10px;font-weight:800;cursor:pointer}
.settings-line-3{grid-template-columns:1fr 1fr 170px!important}
.operation-row small{color:#777b8c;font-weight:500}
.cab-table td.win,.cab-table .win{color:#55dc83}
.cab-table td.loss,.cab-table .loss{color:#ff718e}
.status-pill.gray{background:rgba(255,255,255,.05);color:#a6a3b3;border-color:rgba(255,255,255,.1)}
@media(max-width:720px){
  .cabinet-nav button{justify-content:flex-start}
  .settings-line-3{grid-template-columns:1fr!important}
  .promo-grid{grid-template-columns:1fr}
  .topup-form{flex-direction:column;max-width:none}
  .balance-value{font-size:36px}
  .cab-site-link{display:inline-block;margin:8px 4px 0}
  .order-actions .cab-btn{flex:1 1 auto}
}

/* ---------- поддержка в кабинете ---------- */
.sup-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.sup-head h3{margin:5px 0 0;color:#fff;font-size:18px}
.sup-head-actions{display:flex;align-items:center;gap:10px}
.sup-head-actions .status-pill{margin:0}
.sup-list{display:flex;flex-direction:column;gap:9px}
.sup-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 130px 90px;align-items:center;gap:14px;padding:15px 16px;border:1px solid rgba(255,255,255,.065);border-radius:13px;background:rgba(255,255,255,.022);transition:.2s;color:inherit;text-decoration:none}
.sup-row:hover{border-color:rgba(139,92,246,.32);transform:translateX(2px)}
.sup-row.has-unread{border-color:rgba(236,72,153,.35);background:rgba(236,72,153,.04)}
.sup-row-main{min-width:0}
.sup-row-main b{display:block;font-size:12px;color:#f0eef5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sup-row-main span{display:block;margin-top:4px;font-size:11px;color:#818494;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sup-row-cat,.sup-row-time{font-size:10px;color:#8b8e9d}
.sup-row-time{text-align:right}
.sup-row .status-pill{margin:0;justify-self:start}
.sup-thread{display:flex;flex-direction:column;min-height:420px}
.sup-messages{flex:1;max-height:min(62vh,640px);min-height:300px;overflow-y:auto;padding:20px 18px}
.sup-messages .boostelo-msg{max-width:78%;font-size:13px}
.sup-reply{display:flex;gap:9px;align-items:flex-end;padding:12px;border-top:1px solid var(--line);background:#0c0b12}
.sup-reply textarea{flex:1;min-width:0;resize:none;min-height:44px;max-height:160px;font-size:13px}
.sup-reply .cab-btn{height:44px}
.sup-reply .bst-chat-clip{height:44px}
.sup-attach-inline{padding:0 14px}
.sup-attach-name{display:flex;align-items:center;gap:8px;font-size:11px;color:#b9b5c6}
.sup-attach-name:empty{display:none}
.sup-attach-name img{width:34px;height:34px;object-fit:cover;border-radius:7px}
.sup-attach-name button{border:0;background:rgba(255,255,255,.07);color:#ccc;border-radius:7px;width:24px;height:24px;cursor:pointer}
.sup-attach-inline:not(:empty){padding:8px 14px}
.sup-thread-foot{display:flex;justify-content:flex-end;padding:8px 14px 12px;background:#0c0b12}
.sup-close-btn{border:0;background:none;color:#7f8294;font-size:11px;cursor:pointer;text-decoration:underline}
.sup-close-btn:hover{color:#fff}
.sup-rate{padding:12px 16px;border-top:1px solid var(--line);display:flex;align-items:center;gap:4px;font-size:12px;color:#bdb9c9;flex-wrap:wrap}
.sup-rate button{border:0;background:none;color:#4e4a5c;font-size:22px;cursor:pointer;padding:0 2px}
.sup-rate button.on{color:#fbbf24}
.sup-new{display:flex;flex-direction:column;gap:14px}
.sup-new label{display:block}
.sup-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.sup-textarea{resize:vertical;min-height:120px;font-size:13px!important;line-height:1.5}
select.settings-input{appearance:auto;height:42px}
.sup-attach-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.sup-attach-btn{cursor:pointer}
@media(max-width:720px){
  .sup-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}
  .sup-row-cat{display:none}
  .sup-row .status-pill{grid-row:2;grid-column:1}
  .sup-row-time{grid-row:1;grid-column:2}
  .sup-form-grid{grid-template-columns:1fr}
  .sup-messages{padding:14px 10px;max-height:60vh}
  .sup-messages .boostelo-msg{max-width:88%}
  .sup-reply{padding:10px 8px;gap:6px}
  .sup-reply .cab-btn{padding:11px 12px}
}

/* в разделе «Поддержка» кабинета виджет не нужен — там своя переписка */
.is-cabinet.view-support .boostelo-chat{display:none}

/* ---------- калькуляторы: скруглённые кнопки, поля и опции ---------- */
.calc-source .faceit-step-btn,.calc-source .mm-step-btn,.calc-source .mm-btn,.calc-source .premier-wins-step,.calc-source .wins-step,
.calc-source .faceit-mode-btn,.calc-source .premier-mode-tab,.calc-source .mm-win-button{border-radius:12px!important}
.calc-source .elo-input,.calc-source .faceit-elo-input-wrap .elo-input,.calc-source .premier-input,.calc-source .premier-wins-input,
.calc-source .mm-select,.calc-source .mm-input-wrap .mm-select,.calc-source .mm-map-select,.calc-source .faceit-level-select{border-radius:12px!important}
.calc-source .option label,.calc-source .premier-option label,.calc-source .premier-option>span,.calc-source .faceit-level-choice,
.calc-source .mm-result-card,.calc-source .result-box,.calc-source .premier-result,.calc-source .boostelo-promo{border-radius:14px!important}
.calc-source .order-button,.calc-source .premier-order,.calc-source .mm-order-button{border-radius:14px!important}
.calc-source .boostelo-promo-input,.calc-source .boostelo-promo-button{border-radius:12px!important}
.calc-source .minimum-badge,.calc-source .premier-badge{border-radius:999px!important}
.calc-source .mm-checkbox{border-radius:6px!important}
.calc-source .faceit-step-btn,.calc-source .mm-step-btn,.calc-source .mm-btn,.calc-source .premier-wins-step{transition:transform .15s ease,border-color .15s ease,background .15s ease}
.calc-source .faceit-step-btn:active,.calc-source .mm-step-btn:active,.calc-source .mm-btn:active,.calc-source .premier-wins-step:active{transform:scale(.96)}
.calc-source .order-button:hover,.calc-source .premier-order:hover,.calc-source .mm-order-button:hover{filter:brightness(1.07);transform:translateY(-1px)}

/* ---------- переключатель языка и валюты (SVG-флаги) ---------- */
.bst-flag{display:inline-block;width:21px;height:14px;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.2);flex:none;vertical-align:middle;overflow:hidden}
.bst-ls{position:relative;font-family:Inter,Arial,sans-serif}
.bst-ls-btn{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 11px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.035);color:#ece9f4;font:800 12px/1 Inter,Arial,sans-serif;cursor:pointer;transition:.18s;white-space:nowrap}
.bst-ls-btn:hover,.bst-ls.open .bst-ls-btn{border-color:rgba(168,85,247,.5);background:rgba(139,92,246,.08)}
.bst-ls-sep{width:1px;height:14px;background:rgba(255,255,255,.16)}
.bst-ls-caret{font-style:normal;color:#8d8a99;font-size:12px;line-height:1;margin-top:-4px;transition:transform .2s}
.bst-ls.open .bst-ls-caret{transform:rotate(180deg);margin-top:4px}
.bst-ls-menu{position:absolute;right:0;top:calc(100% + 8px);width:236px;padding:8px;border:1px solid rgba(139,92,246,.32);border-radius:16px;background:rgba(14,13,22,.985);box-shadow:0 24px 60px rgba(0,0,0,.55),0 0 30px rgba(139,92,246,.1);display:none;z-index:1300}
.bst-ls.open .bst-ls-menu{display:block;animation:bstLsIn .16s ease}
@keyframes bstLsIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.bst-ls-title{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:#7c7889;font-weight:900;padding:9px 9px 6px}
.bst-ls-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:11px;background:transparent;color:#d8d4e3;font:700 13px/1.2 Inter,Arial,sans-serif;cursor:pointer;text-align:left;transition:background .15s}
.bst-ls-menu button:hover{background:rgba(139,92,246,.1);color:#fff}
.bst-ls-menu button.on{background:rgba(139,92,246,.17);color:#fff}
.bst-ls-menu button em{margin-left:auto;font-style:normal;font-size:10px;color:#8d8a99;font-weight:800}
.bst-ls-menu button.on em:after{content:" ✓";color:#c29bff}
.bst-ls-rate{margin-top:6px;padding:9px 9px 3px;border-top:1px solid rgba(255,255,255,.06);font-size:10px;color:#7c7889}
.bst-ls-rate:empty{display:none}
.bst-ls-float{position:fixed;top:14px;right:16px;z-index:60}
.bst-ls-side{margin:12px 4px 0}
.bst-ls-side .bst-ls-btn{width:100%;justify-content:flex-start}
.bst-ls-side .bst-ls-caret{margin-left:auto}
.bst-ls-side .bst-ls-menu{right:auto;left:0;top:auto;bottom:calc(100% + 8px)}
.booster-modal-country .bst-flag{margin-right:7px;width:24px;height:16px}
@media(max-width:720px){
  .bst-ls-side{margin:8px 0 0}
  .bst-ls-side .bst-ls-btn{width:auto}
}
@media(max-width:650px){
  .bst-ls-btn{height:40px;padding:0 9px;gap:6px;font-size:12px}
  .bst-ls-menu,.bst-ls-side .bst-ls-menu{position:fixed;left:12px;right:12px;top:70px;bottom:auto;width:auto;padding:10px}
  .bst-ls-menu button{padding:13px 12px;font-size:14px}
  .bst-ls-float{top:12px;right:12px}
}

/* ---------- мобильная доводка (фильтры кабинета, длинные казахские подписи) ---------- */
.filters{flex-wrap:wrap}
@media(max-width:700px){
  .filter{font-size:10px;padding:9px 12px;border-radius:999px}
}
@media(max-width:650px){
  /* подсказки «i» в калькуляторе: на телефоне — плашкой внизу экрана, чтобы не вылезали за край */
  .calc-source .info-icon::after{display:none;position:fixed;left:16px;right:16px;top:auto;bottom:20px;width:auto;transform:none!important;font-size:12px;z-index:1400}
  .calc-source .info-icon::before{display:none}
  .calc-source .info-icon:hover::after,.calc-source .info-icon:focus::after,.calc-source .info-icon:focus-visible::after{display:block}
}
.site-nav .nav-actions{margin-left:auto}
.nav-actions>a:not(.account){font-size:13px;font-weight:700;color:#b9b5c3;transition:color .2s;white-space:nowrap}
.nav-actions>a:not(.account):hover{color:#fff}
@media(max-width:650px){.site-nav .nav-actions{gap:8px}}
@media(max-width:430px){
  .calc-source .faceit-mode-btn{padding:11px 6px;font-size:10.5px;letter-spacing:.2px;line-height:1.25}
}
@media(max-width:650px){
  .calc-source .mm-rank-error{min-height:0}
  .calc-source .mm-map-row{margin-top:30px}
  .calc-source .mm-options{margin-top:26px}
}
.checkout-grid>*{min-width:0}
.pay-promo input{width:100%}
.pay-promo button{flex:none;white-space:nowrap}
@media(max-width:420px){.pay-promo button{padding:0 12px;font-size:12px}}

/* ---------- оформление заказа (новый дизайн) ---------- */
.pay-success{display:none;text-align:center;padding:26px 6px 6px}
.pay-success.show{display:block}
.pay-success .success-icon{width:54px;height:54px;border-radius:50%;margin:0 auto 16px;display:grid;place-items:center;background:rgba(66,211,132,.12);border:1px solid rgba(66,211,132,.3);color:#64e19a;font-size:24px}
.pay-success h2{margin:0 0 8px;font-size:18px}
.pay-success p{color:#9a95a6;font-size:12px;line-height:1.6}
.summary-card.is-done>:not(.pay-success){display:none}
.checkout-card .pay-login{margin:0 0 6px}
.checkout-notice a{color:#b996ff}
.checkout-card.pay-empty{max-width:560px;margin:0 auto;text-align:center}
.checkout-card.pay-empty h2{font-size:20px}
.checkout-card.pay-empty p{color:#9d9aac;font-size:13px}
.checkout-card.pay-empty .order-actions{justify-content:center}
.form-field.has-error input{border-color:rgba(255,77,110,.7)!important}
.form-field-error{margin-top:6px;font-size:10px;color:#ff8ea4}
.payment-page .pay-test-banner{max-width:1040px;margin:0 auto 16px}
.summary-row strong{max-width:62%;word-break:break-word}

/* ---------- чат по заказу (кабинет) ---------- */
.order-chat{margin-top:16px;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);gap:16px}
.order-chat-card{background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018));border:1px solid rgba(168,85,247,.2);border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.order-chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.07)}
.order-chat-user{display:flex;align-items:center;gap:11px;min-width:0}
.order-chat-avatar{width:38px;height:38px;flex:none;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#7c3aed,#c026d3);font-weight:800;color:#fff}
.order-chat-user strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-chat-user small{display:block;color:#8f899a;font-size:11px;margin-top:3px}
.order-chat-online{font-size:10px;color:#b8f7c6;letter-spacing:.08em;white-space:nowrap}
.order-chat-messages{height:280px;overflow:auto;padding:16px;background:rgba(0,0,0,.1)}
.order-chat-empty{color:#7f7a8c;font-size:12px;text-align:center;padding:40px 12px}
.order-msg{max-width:78%;margin-bottom:10px;padding:10px 12px;border-radius:13px;font-size:13px;line-height:1.45;word-wrap:break-word}
.order-msg p{margin:0}
.order-msg small{display:block;margin-top:5px;color:#777180;font-size:10px}
.order-msg-author{display:block;font-size:10px;color:#c4a1ff;margin-bottom:3px;letter-spacing:.02em}
.order-msg-booster{background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.06)}
.order-msg-user{margin-left:auto;background:linear-gradient(135deg,rgba(124,58,237,.35),rgba(192,38,211,.25));border:1px solid rgba(168,85,247,.25)}
.order-msg-user small{color:rgba(255,255,255,.6)}
.order-msg-system{max-width:92%;margin:4px auto 12px;text-align:center;background:rgba(139,92,246,.06);border:1px dashed rgba(139,92,246,.3);color:#c8c1d8;font-size:12px}
.order-chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid rgba(255,255,255,.07)}
.order-chat-form input{flex:1;min-width:0;border:1px solid rgba(255,255,255,.09);background:#0c0c12;color:#fff;border-radius:11px;padding:11px 12px;outline:none;font:inherit;font-size:13px}
.order-chat-form input:focus{border-color:rgba(168,85,247,.5)}
.order-chat-form button{width:44px;border:0;border-radius:11px;background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;font-weight:800;cursor:pointer}
.order-chat-form.is-sending button{opacity:.5}
.order-chat-side{padding:18px}
.order-chat-side h3{margin:0 0 8px;font-size:16px}
.order-chat-side p{margin:0 0 15px;color:#9993a4;font-size:12px;line-height:1.6}
.chat-rule{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid rgba(255,255,255,.07);font-size:12px}
.chat-rule span{color:#85808e}
.chat-rule b{color:#eee;text-align:right}
@media(max-width:850px){.order-chat{grid-template-columns:1fr}.order-chat-messages{height:260px}}
@media(max-width:600px){.order-chat-form input{font-size:16px}}
.promo-row input{min-width:0;height:42px;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:#09090e;color:#fff;outline:none;padding:0 12px;font:inherit;font-size:12px;text-transform:uppercase}
.promo-row input::placeholder{text-transform:none;color:#6f6977}
.promo-row input:focus{border-color:#8b5cf6}
.promo-msg.error{color:#ff96a7}
@media(max-width:600px){.promo-row input,.form-field input,.form-field textarea{font-size:16px}}
@media(max-width:520px){
  .promo-row input{flex:none;width:100%;height:42px}
}
/* главная: карточки услуг на телефоне — во всю ширину, без пустого места снизу */
@media(max-width:650px){
  .services{grid-template-columns:minmax(0,1fr)!important;justify-content:stretch}
  .service-card{width:auto!important;height:auto!important;min-height:0!important;max-width:420px;margin:0 auto;padding-bottom:22px!important}
  .service-icon{width:100%!important;height:auto!important;aspect-ratio:280/170}
  .service-card p{min-height:0}
}
.boosters-empty{padding:40px 12px;color:#8f8b99;font-size:13px;text-align:center;width:100%}
/* кабинет: плитки параметров заказа не вылезают за карточку */
.order-meta{grid-template-columns:repeat(5,minmax(0,1fr))}
.meta-box{min-width:0}
@media(max-width:1000px){.order-meta{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.order-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
  /* подсказки «i» в ММ/Напарниках: на телефоне — плашкой внизу экрана */
  .calc-source .mm-info[data-tooltip]::after{display:none;position:fixed!important;left:16px!important;right:16px!important;top:auto!important;bottom:20px!important;width:auto!important;transform:none!important;font-size:12px;z-index:1400}
  .calc-source .mm-info[data-tooltip]::before{display:none!important}
  .calc-source .mm-info[data-tooltip]:hover::after,.calc-source .mm-info[data-tooltip]:focus::after,.calc-source .mm-info.is-open[data-tooltip]::after{display:block}
  .legal-head h1{font-size:30px!important;letter-spacing:-.5px!important;overflow-wrap:anywhere}
}
/* скрытые подсказки не должны расширять страницу (горизонтальная прокрутка на телефонах) */
.calc-source .mm-info[data-tooltip]:not(:hover):not(:focus):not(.is-open)::after,
.calc-source .mm-info[data-tooltip]:not(:hover):not(:focus):not(.is-open)::before,
.calc-source .info-icon:not(:hover):not(:focus):not(:focus-visible)::after,
.calc-source .info-icon:not(:hover):not(:focus):not(:focus-visible)::before{display:none}
@media(max-width:400px){.calc-source .calculator-title,.calc-source .premier-title{font-size:23px!important;flex-wrap:wrap;white-space:normal}}
/* шапка всегда поверх контента страницы (меню языка/валюты не перекрывается заголовками) */
.site-nav{position:sticky!important;top:0;z-index:60!important}
/* главная: фото «отзывы» — ссылка на страницу отзывов */
a.about-visual{display:block;color:inherit;text-decoration:none;cursor:pointer;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
a.about-visual:hover,a.about-visual:focus-visible{transform:translateY(-4px);border-color:rgba(236,72,153,.5);box-shadow:inset 0 0 70px rgba(8,8,13,.38),0 28px 80px rgba(0,0,0,.34),0 0 45px rgba(139,92,246,.22);outline:none}
.visual-cta{position:absolute;z-index:2;right:24px;bottom:28px;display:inline-flex;align-items:center;gap:8px;padding:10px 15px;border-radius:999px;border:1px solid rgba(168,85,247,.45);background:rgba(8,8,13,.7);backdrop-filter:blur(10px);font-size:11px;font-weight:900;letter-spacing:.4px;color:#fff;transition:.25s}
.visual-cta i{font-style:normal;transition:transform .25s}
a.about-visual:hover .visual-cta{background:linear-gradient(135deg,#8b5cf6,#ec4899);border-color:transparent;box-shadow:0 0 24px rgba(236,72,153,.35)}
a.about-visual:hover .visual-cta i{transform:translateX(3px)}
@media(max-width:520px){.visual-cta{right:auto;left:26px;bottom:auto;top:20px}}
/* контакты из админки */
.contact-icon-glyph{color:#e9d5ff}
.contact-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
.contact-grid-1{grid-template-columns:minmax(0,1fr)}
.contact-extra{margin-top:22px;padding:14px 16px;border-radius:14px;border:1px solid rgba(168,85,247,.22);background:rgba(139,92,246,.06);color:#cfc8dc;font-size:13px;line-height:1.7;white-space:pre-line}
@media(max-width:650px){.contact-grid-4{grid-template-columns:minmax(0,1fr)}}
/* шапка: пункты меню не переносятся на две строки; на ноутбуках — плотнее */
.nav-links a,.nav-drop-link{white-space:nowrap}
@media(min-width:1201px) and (max-width:1480px){
  .nav-inner{gap:22px}
  .nav-links{gap:17px}
  .nav-drop-link{padding:8px 4px}
}
@media(min-width:1201px) and (max-width:1320px){
  .nav-links{gap:13px}
  .nav-links a,.nav-drop-link{font-size:12px}
  .nav-actions .nav-admin{padding:8px 9px}
}

/* сотрудникам в шапке вместо «Контакты» показывается «Админка» — иначе шапка не помещается */
.nav-actions:has(.nav-admin)>a[href="/details"]{display:none}
/* главная: текст первого экрана не заходит под персонажей */
@media(min-width:1201px){.hero-copy>p{max-width:560px}}
