/* ═══ ПРИЛОЖЕНИЕ В ПОДВАЛЕ + ОКНО С QR (08.10.2026) ═══
   Значки App Store / Google Play в подвале (блок .ftr__apps в footer.php)
   и окно с QR-кодом по нажатию (js/chx-appqr.js, QR — images/chx-qr-*.svg).
   Откат — убрать блоки «ПРИЛОЖЕНИЕ В ПОДВАЛЕ» и «ОКНО С QR» в footer.php
   и эти файлы. */

/* ── значки в подвале ── */
.ftr__apps{margin-top:var(--s-5,20px)}
.ftr__apps-head{font-family:var(--font-display,'Oswald','Arial Narrow',Impact,sans-serif);font-size:13px;
  text-transform:uppercase;letter-spacing:.08em;color:var(--gray-3,#9a9a9a);margin:0 0 8px}
.ftr__apps-row{display:flex;flex-wrap:wrap;gap:8px}
.ftr .ftr__apps a.ftr__app{display:inline-flex !important;align-items:center;gap:10px;min-height:46px !important;height:46px;
  padding:0 16px 0 12px;border-radius:var(--r-sm,10px);background:var(--panel-2,#121212);border:1px solid var(--line,#201F1E);
  color:#fff;text-decoration:none;transition:border-color .15s,background .15s,transform .15s;cursor:pointer;
  -webkit-tap-highlight-color:transparent}
.ftr .ftr__apps a.ftr__app:hover,.ftr .ftr__apps a.ftr__app:focus-visible{border-color:var(--brand,#E75B06);background:#171208}
.ftr .ftr__apps a.ftr__app:active{transform:scale(.97)}
.ftr__app svg{flex:0 0 auto;width:24px;height:24px;fill:currentColor;color:var(--brand,#E75B06)}
.ftr__app-txt{display:flex;flex-direction:column;line-height:1.1;white-space:nowrap}
.ftr__app-txt small{font-size:10.5px;color:var(--gray-3,#9a9a9a);letter-spacing:.02em}
.ftr__app-txt b{font-size:15px;font-weight:700;color:#fff}
@media (max-width:640px){
  .ftr__apps-row{display:grid;grid-template-columns:1fr 1fr}
  .ftr .ftr__apps a.ftr__app{width:100% !important;justify-content:center;padding:0 10px}
}

/* ── окно с QR ── */
html.chx-appqr-lock,html.chx-appqr-lock body{overflow:hidden !important}
.chx-appqr{position:fixed;inset:0;z-index:2147483600;display:flex;align-items:center;justify-content:center;
  padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));
  background:rgba(0,0,0,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  opacity:0;transition:opacity .25s ease;box-sizing:border-box;
  font-family:'Manrope','Segoe UI',system-ui,sans-serif}
.chx-appqr *,.chx-appqr *::before,.chx-appqr *::after{box-sizing:border-box}
.chx-appqr.is-open{opacity:1}
.chx-appqr__box{position:relative;width:100%;max-width:360px;max-height:100%;overflow:auto;
  padding:26px 24px 22px;border-radius:20px;text-align:center;color:#fff;
  background:linear-gradient(180deg,#141313 0%,#0A0A0A 100%);border:1px solid rgba(255,105,45,.38);
  box-shadow:0 24px 60px rgba(0,0,0,.6),0 0 0 1px rgba(0,0,0,.5);
  transform:translateY(12px) scale(.94);transition:transform .3s cubic-bezier(.22,1,.36,1)}
.chx-appqr.is-open .chx-appqr__box{transform:none}
.chx-appqr__box:focus{outline:none}
.chx-appqr__x{position:absolute;top:10px;right:10px;width:36px;height:36px;padding:0;margin:0;border:0;border-radius:50%;
  display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.06);color:rgba(255,255,255,.75);cursor:pointer}
.chx-appqr__x:hover,.chx-appqr__x:focus-visible{background:rgba(255,255,255,.14);color:#fff}
.chx-appqr__x svg{width:18px;height:18px;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;fill:none}
.chx-appqr__store{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;
  background:rgba(231,91,6,.12);color:#E75B06;margin:0 auto 10px}
.chx-appqr__store svg{width:24px;height:24px;fill:currentColor}
.chx-appqr__title{margin:0 28px 4px;font-family:'Oswald','Arial Narrow',Impact,sans-serif;font-size:21px;line-height:1.2;
  font-weight:600;text-transform:uppercase;letter-spacing:.02em;color:#fff}
.chx-appqr__title b{color:#E75B06;font-weight:600}
.chx-appqr__qr{display:block;width:min(240px,64vw);height:auto;aspect-ratio:1/1;margin:16px auto 12px;padding:10px;
  background:#fff;border-radius:14px;image-rendering:pixelated;box-shadow:0 0 0 4px rgba(231,91,6,.25)}
.chx-appqr__cap{margin:0 0 16px;font-size:14px;line-height:1.35;color:rgba(242,234,221,.78)}
.chx-appqr__go{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none !important;
  font-weight:700;white-space:nowrap;border-radius:10px;transition:background .15s,border-color .15s,transform .15s}
.chx-appqr__go svg{width:18px;height:18px;fill:currentColor}
.chx-appqr__go:active{transform:scale(.97)}
/* компьютер: кнопка второстепенная */
.chx-appqr__go{height:38px;padding:0 16px;font-size:13px;color:rgba(255,255,255,.85) !important;
  background:transparent;border:1px solid #363536}
.chx-appqr__go:hover,.chx-appqr__go:focus-visible{border-color:#E75B06;color:#fff !important}
/* телефон: QR этим же телефоном не отсканировать — кнопка главная */
.chx-appqr--phone .chx-appqr__go{display:flex;width:100%;height:48px;font-size:15px;color:#fff !important;
  background:#D6261A;border-color:#D6261A;box-shadow:0 6px 20px rgba(214,38,26,.34)}
.chx-appqr--phone .chx-appqr__qr{width:min(200px,52vw)}
@media (prefers-reduced-motion:reduce){.chx-appqr,.chx-appqr__box{transition:none}}
