/* m-chrome.css - page "chrome" for every page (W-0056, 2026-10-11):
   header v3 «Мастер на связи», full-screen menu, compact top strip, bottom messenger bar, model search, phone footer.
   Written by gen/chrome_mobile.py markup; loaded AFTER tokens.css (tokens.css is not edited).
   Breakpoints: header burger <= 899px (the site's own phone/tablet line), strip + bottom bar + footer trim <= 759px. */
:root{--ch-red:#d6262d;--ch-tg:#1a75a8;--ch-green:#2fd06b;--ch-bar-h:92px;--ch-strip-h:52px}

/* ---------- footer (W-0067): columns - identity, services, brands (bounded: top brands + «Все марки»), company;
   the phone part (closed groups, big taps) is in the phone @media block below ---------- */
footer .ft-grid{display:grid;gap:24px 48px}
@media (min-width:760px){footer .ft-grid{grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));align-items:start}}
footer .ft-tag{margin:10px 0 12px;max-width:30ch;font-size:15px;line-height:1.5;color:#b8bdc7}
footer .ft-id img{margin-bottom:0}
footer .ft-col summary{display:block;list-style:none;font-family:var(--f-disp);font-size:16px;font-weight:500;text-transform:uppercase;letter-spacing:.06em;color:#f4f3f0}
footer .ft-col summary::-webkit-details-marker{display:none}
footer .ft-col summary::after{content:"";display:block;width:28px;height:3px;margin-top:10px;background:var(--red);transition:width .3s var(--ease)}
footer .ft-col:hover summary::after{width:44px}
@media (min-width:760px){footer .ft-col summary{pointer-events:none}}
footer .ft-col ul{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:2px}
footer .ft-col a{display:inline-block;padding:4px 0;font-size:14px;color:#c3c8ce;transition:color .15s,transform .15s var(--ease)}
footer .ft-col a:hover{color:#fff;transform:translateX(3px)}
footer .ft-col a.ft-all{color:#f4f3f0;font-weight:600}
@media (prefers-reduced-motion:reduce){footer .ft-col a,footer .ft-col summary::after{transition:none}}

/* ---------- header ---------- */
header.hdr.ch-h{flex-wrap:nowrap;gap:16px}
.ch-h .ch-logo{flex:0 0 auto}
.ch-h .ch-logo img{max-width:none;flex:0 0 auto}
header.hdr.ch-h>nav{flex:0 1 auto;margin-right:0}
.ch-r{display:flex;align-items:center;gap:10px;margin-left:24px;flex:0 0 auto}
.ch-who{display:flex;align-items:center;gap:10px;color:#fff;margin-right:6px}
.ch-ph{position:relative;width:44px;height:44px;flex:0 0 auto}
.ch-ph img,header.hdr .ch-ph img{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.18);display:block}
.ch-ph::after{content:"";position:absolute;right:0;bottom:1px;width:12px;height:12px;border-radius:50%;background:var(--ch-green);border:2px solid #101215;animation:ch-pulse 2.4s ease-out infinite}
@keyframes ch-pulse{0%{box-shadow:0 0 0 0 rgba(47,208,107,.55)}70%{box-shadow:0 0 0 8px rgba(47,208,107,0)}100%{box-shadow:0 0 0 0 rgba(47,208,107,0)}}
.ch-wt{display:block;white-space:nowrap}
.ch-wt b{display:block;font-family:var(--f-disp);font-weight:500;font-size:16px;letter-spacing:.02em;line-height:1.1;color:#fff}
.ch-wt small{display:block;font-size:14px;color:var(--muted);line-height:1.3}
.ch-c{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);transition:border-color .15s}
.ch-c:hover{border-color:var(--red)}
.ch-c img,header.hdr .ch-c img{width:24px;height:24px;display:block}
.ch-h .ch-c{color:inherit}
.ch-burger{display:none;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;border-radius:12px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff;font:600 15px/1 var(--f-text);cursor:pointer;flex:0 0 auto;-webkit-tap-highlight-color:transparent}
.ch-burger:hover{border-color:var(--red)}
.ch-bars{position:relative;width:20px;height:14px;flex:0 0 auto}
.ch-bars i{position:absolute;left:0;right:0;height:2px;background:#fff;border-radius:2px;transition:transform .25s,top .25s,opacity .2s}
.ch-bars i:nth-child(1){top:0}.ch-bars i:nth-child(2){top:6px;background:var(--red)}.ch-bars i:nth-child(3){top:12px}
.ch-burger[aria-expanded="true"] .ch-bars i:nth-child(1){top:6px;transform:rotate(45deg)}
.ch-burger[aria-expanded="true"] .ch-bars i:nth-child(2){opacity:0}
.ch-burger[aria-expanded="true"] .ch-bars i:nth-child(3){top:6px;transform:rotate(-45deg)}
@media (max-width:1180px){.ch-wt{display:none}}
@media (max-width:899px){
  header.hdr.ch-h,.pb header.hdr.ch-h,.hero-home header.hdr.ch-h{flex-wrap:nowrap;gap:8px;padding-left:16px;padding-right:16px}
  header.hdr.ch-h>nav,.pb header.hdr.ch-h>nav{display:none}
  .ch-r{margin-left:auto;gap:4px}
  .ch-who{margin-right:2px}
  .ch-ph{width:40px;height:40px}
  .ch-ph img,header.hdr .ch-ph img{width:40px;height:40px}
  .ch-burger{display:inline-flex}
}

/* ---------- full-screen menu ---------- */
.ch-menu{position:fixed;inset:0;z-index:1000;background:#0b0c0e;color:#fff;display:none;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.ch-menu:not([hidden]){display:flex;animation:ch-in .22s ease-out}
@keyframes ch-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.ch-m-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 16px 4px;flex:0 0 auto}
.ch-m-top .ch-logo{flex:0 0 auto;display:block}
.ch-m-top .ch-logo img{height:60px;width:auto;max-width:none;display:block}
.ch-m-body{display:flex;flex-direction:column;flex:1 0 auto;padding:6px 20px calc(20px + env(safe-area-inset-bottom));width:100%;max-width:560px;margin:0 auto}
.ch-me{display:flex;align-items:center;gap:12px;padding:6px 0 14px;border-bottom:1px solid rgba(255,255,255,.08)}
.ch-me .ch-ph{width:52px;height:52px}
.ch-me .ch-ph img{width:52px;height:52px}
.ch-me .ch-ph::after{right:1px;bottom:2px;border-color:#0b0c0e}
.ch-me b{display:block;font-family:var(--f-disp);font-weight:500;font-size:20px;color:#fff;letter-spacing:.02em}
.ch-me small{display:block;font-size:14px;color:var(--muted)}
.ch-m-find{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;margin:14px 0 4px;padding:0 16px;border-radius:12px;background:#16191e;border:1px solid rgba(255,255,255,.16);color:#e9eaec;font:500 17px/1 var(--f-text);text-align:left;cursor:pointer;text-decoration:none}
.ch-m-find svg{width:22px;height:22px;flex:0 0 auto;color:var(--red)}
.ch-m-nav{display:flex;flex-direction:column}
.ch-m-nav a{display:flex;justify-content:space-between;align-items:center;min-height:52px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.08);font-family:var(--f-disp);text-transform:uppercase;font-weight:500;font-size:clamp(24px,4.4vh,30px);letter-spacing:.02em;color:#fff;text-decoration:none}
.ch-m-nav a::after{content:"\2192";color:var(--red);font-size:22px}
.ch-m-nav a[aria-current]{color:var(--red)}
.ch-m-go{margin-top:auto;padding-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ch-m-go small{grid-column:1/-1;text-align:center;font-size:14px;color:var(--muted)}
.ch-bb{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 12px;border-radius:var(--r-btn);color:#fff;font-weight:600;font-size:16px;text-decoration:none;background:var(--ch-red)}
.ch-bb img{width:24px;height:24px;display:block;flex:0 0 auto}
.ch-bb.ch-bb-tg{background:var(--ch-tg)}
.ch-bb:hover{filter:brightness(1.1)}
@media (min-width:900px){.ch-menu{display:none!important}}

/* ---------- scroll lock (menu, search) ---------- */
html.ch-lock{overflow-y:scroll}
html.ch-lock body{position:fixed;left:0;right:0;width:100%;overflow:hidden}

/* ---------- compact top strip + bottom bar: phones only ---------- */
.ch-strip,.ch-bar{display:none}
@media (max-width:759px){
  html{scroll-padding-top:calc(var(--ch-strip-h) + 8px)}
  .ch-strip{display:flex;position:fixed;top:0;left:0;right:0;z-index:60;height:var(--ch-strip-h);align-items:center;justify-content:space-between;gap:2px;padding:0 8px 0 12px;background:rgba(11,12,14,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line);transform:translateY(-100%);visibility:hidden;transition:transform .22s ease,visibility 0s linear .22s}
  .ch-strip.on{transform:none;visibility:visible;transition:transform .22s ease,visibility 0s}
  .ch-strip .ch-logo{flex:0 0 auto;display:block;margin-right:2px}
  .ch-strip .ch-logo img{height:38px;width:auto;max-width:none;display:block}
  .ch-sb{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:0 6px;border:0;background:none;border-radius:10px;color:#fff;font:600 15px/1 var(--f-text);text-decoration:none;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}
  .ch-sb svg{width:18px;height:18px;flex:0 0 auto;color:var(--red)}
  .ch-sb .ch-bars{width:18px;height:12px}
  .ch-sb .ch-bars i:nth-child(2){top:5px}.ch-sb .ch-bars i:nth-child(3){top:10px}
  @media (max-width:340px){.ch-sb svg,.ch-sb .ch-bars{display:none}}
  .ch-sb-menu{padding:0 8px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08)}
  .ch-bar{display:block;position:fixed;left:0;right:0;bottom:0;z-index:90;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#0b0c0e;border-top:1px solid var(--line);box-shadow:0 -6px 24px rgba(0,0,0,.35);transition:transform .2s}
  .ch-bar-cap{margin:0 0 6px;text-align:center;font-size:14px;line-height:1.25;color:var(--muted)}
  .ch-bar-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .ch-bar .ch-bb{min-height:48px}
  html.ch-kb .ch-bar{transform:translateY(120%);visibility:hidden}
  /* the old bars are replaced by the common one (markup stays on the page, CSS hides it) */
  .sticky,.pb-sticky{display:none!important}
  /* room for the bar under the last content: the footer carries it, not the page body */
  body.pb{padding-bottom:0}
  footer{padding-bottom:calc(var(--ch-bar-h) + 20px + env(safe-area-inset-bottom))}
  /* phone footer (W-0067): identity, then closed groups with big taps (the footer script closes them; open without JS);
     the brand group is bounded (top brands + «Все марки») */
  footer .ft-grid{gap:0}
  footer .ft-id{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 14px;padding-bottom:12px}
  footer .ft-id img{grid-row:1;height:64px}
  footer .ft-id .ft-tag{margin:0;font-size:15px}
  footer .ft-id p:last-child{grid-column:1/-1;margin-top:8px}
  footer .ft-col{border-top:1px solid rgba(255,255,255,.1)}
  footer .ft-col:last-child{border-bottom:1px solid rgba(255,255,255,.1)}
  footer .ft-col summary{display:flex;align-items:center;justify-content:space-between;min-height:52px;font-size:17px;cursor:pointer;-webkit-tap-highlight-color:transparent}
  footer .ft-col summary::after{content:"+";width:auto;height:auto;margin:0;background:none;font-family:var(--f-text);font-size:26px;font-weight:400;line-height:1;color:var(--red);transition:transform .2s}
  footer .ft-col[open] summary::after{transform:rotate(45deg)}
  footer .ft-col ul{grid-template-columns:1fr 1fr;gap:0 16px;margin:0;padding:0 0 10px}
  footer .ft-col a{display:flex;align-items:center;min-height:44px;font-size:16px}
  footer p{font-size:14px;line-height:1.5}
  footer p a{display:inline-block;padding:10px 0}
}

/* ---------- model search ---------- */
.ch-search{position:fixed;inset:0;z-index:1100;display:none;background:#0b0c0e;color:#fff}
.ch-search:not([hidden]){display:flex;animation:ch-in .2s ease-out}
.ch-sp{display:flex;flex-direction:column;width:100%;height:100%;min-height:0}
.ch-s-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 4px;flex:0 0 auto}
.ch-s-title{font-family:var(--f-disp);text-transform:uppercase;font-weight:500;font-size:22px;letter-spacing:.03em}
.ch-s-close{min-height:44px;padding:0 14px;border-radius:12px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff;font:600 15px/1 var(--f-text);cursor:pointer}
.ch-s-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 16px 16px;-webkit-overflow-scrolling:touch}
.ch-s-foot{flex:0 0 auto;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#101215}
.ch-s-foot p{margin:0 0 8px;text-align:center;font-size:15px;color:var(--txt-soft)}
.ch-s-foot .ch-bar-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (min-width:760px){
  .ch-search:not([hidden]){align-items:flex-start;justify-content:center;background:rgba(5,6,7,.8)}
  .ch-sp{width:min(720px,100%);height:auto;max-height:86vh;margin-top:6vh;background:#0b0c0e;border:1px solid var(--line);border-radius:14px;overflow:hidden}
}
/* the component itself (overlay and inline mount) */
.ch-ms{position:relative;color:#fff;text-align:left}
.ch-ms-form{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 6px 0 16px;border-radius:12px;background:#16191e;border:1.5px solid rgba(255,255,255,.22);margin:0}
.ch-ms-form:focus-within{border-color:var(--red)}
.ch-ms-form>svg{width:22px;height:22px;flex:0 0 auto;color:var(--red)}
.ch-ms-in{flex:1 1 auto;min-width:0;height:54px;border:0;outline:0;background:transparent;color:#fff;font:500 18px/1.2 var(--f-text);padding:0;-webkit-appearance:none;appearance:none}
.ch-ms-in::placeholder{color:#8e949d}
.ch-ms-in::-webkit-search-cancel-button,.ch-ms-in::-webkit-search-decoration{-webkit-appearance:none;display:none}
.ch-ms-clear{width:44px;height:44px;flex:0 0 auto;border:0;background:none;color:#c3c8ce;font-size:26px;line-height:1;cursor:pointer;border-radius:50%}
.ch-ms-clear[hidden]{display:none}
.ch-ms-list{list-style:none;margin:8px 0 0;padding:0}
.ch-ms-list li{margin:0}
.ch-ms-list a,.ch-ms-models a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 14px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff;text-decoration:none;font-size:18px}
.ch-ms-list a:hover,.ch-ms-list a.on,.ch-ms-models a:hover{background:rgba(255,255,255,.06)}
.ch-ms-list a small,.ch-ms-models a small{font-size:14px;color:var(--muted);flex:0 0 auto}
.ch-ms-list a b,.ch-ms-models a b{font-weight:600}
.ch-ms-list a::after,.ch-ms-models a::after{content:"\2192";color:var(--red);flex:0 0 auto}
.ch-ms-none{margin:14px 0 0;padding:14px;border-radius:12px;background:#16191e;font-size:16px;line-height:1.5;color:var(--txt-soft)}
.ch-ms-none .ch-bar-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.ch-ms-h{margin:18px 0 10px;font-size:14px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:600}
.ch-ms-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:420px){.ch-ms-chips{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:760px){.ch-ms-chips{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ch-ms-chip{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:48px;padding:6px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:#16191e;color:#fff;font:500 16px/1.15 var(--f-disp);text-transform:uppercase;letter-spacing:.04em;text-align:left;cursor:pointer}
.ch-ms-chip small{font:500 14px/1 var(--f-text);color:var(--muted);letter-spacing:0}
.ch-ms-chip:hover{border-color:var(--red)}
.ch-ms-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 4px;margin:12px 0 0;border:0;background:none;color:var(--txt-soft);font:600 16px/1 var(--f-text);cursor:pointer}
.ch-ms-bh{margin:4px 0 6px;font-family:var(--f-disp);text-transform:uppercase;font-weight:500;font-size:28px;letter-spacing:.02em}
.ch-ms-models{margin:0}
.ch-ms-models a.ch-ms-all{color:var(--red);font-weight:600}
.ch-ms-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* light bands (inline mount with data-theme="light") */
.ch-ms.ch-light{color:#14161a}
.ch-ms.ch-light .ch-ms-form{background:#fff;border-color:#14161a}
.ch-ms.ch-light .ch-ms-in{color:#14161a}
.ch-ms.ch-light .ch-ms-in::placeholder{color:#6b7078}
.ch-ms.ch-light .ch-ms-clear{color:#3a3f46}
.ch-ms.ch-light .ch-ms-list a,.ch-ms.ch-light .ch-ms-models a{color:#14161a;border-bottom-color:#dedbd6}
.ch-ms.ch-light .ch-ms-list a:hover,.ch-ms.ch-light .ch-ms-list a.on,.ch-ms.ch-light .ch-ms-models a:hover{background:rgba(20,22,26,.05)}
.ch-ms.ch-light .ch-ms-list a small,.ch-ms.ch-light .ch-ms-models a small,.ch-ms.ch-light .ch-ms-h,.ch-ms.ch-light .ch-ms-chip small{color:#5c6169}
.ch-ms.ch-light .ch-ms-chip{background:#fff;color:#14161a;border-color:#c9c5be}
.ch-ms.ch-light .ch-ms-none{background:#fff;color:#3a3f46}
.ch-ms.ch-light .ch-ms-back{color:#3a3f46}
/* 11.10 visual review fixes (M-0018): model pages (.pb) redefine --muted darker and set «.pb a{color:inherit}», so chrome text
   takes explicit colours; links inside text blocks inherit the paragraph colour (a dark band made «.band a» invisible). */
.ch-wt small{color:#9aa0a8}
.ch-bar-cap{color:#9aa0a8}
.ch-strip .ch-sb,body.pb .ch-strip .ch-sb{color:#fff}
.band p a:not(.cta),.band li a:not(.cta){color:inherit}
.ch-bar .ch-bb,body.pb .ch-bar .ch-bb,.ch-menu .ch-bb,body.pb .ch-menu .ch-bb{color:#fff}
