/* Phones: fixed bottom bar — MAX · Позвонить · Расчёт (24.09.2026). */
.mobile-bar{display:none}
@media(max-width:760px){
  .mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:900;display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);box-shadow:0 -4px 16px rgba(17,43,54,.12);backdrop-filter:blur(6px)}
  .mobile-bar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;border-radius:12px;font:700 13px/1.1 Arial,"Segoe UI",sans-serif;text-decoration:none}
  .mobile-bar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mobile-bar .mb-max{background:linear-gradient(135deg,#2b7bff,#8a3ffc);color:#fff}
  .mobile-bar .mb-call{background:#eef2f0;color:#20343f}
  .mobile-bar .mb-calc{background:#16b83a;color:#fff}
  body.has-mobile-bar{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  /* Andrey 25.09.2026: no round chat button on phones — the bar already has MAX, call and calculation. */
  body.has-mobile-bar .chat-launcher{display:none!important}
  body.has-mobile-bar .cookie-bar{bottom:calc(72px + env(safe-area-inset-bottom))!important}
  body.lead-modal-open .mobile-bar,body.mobile-sheet-open .mobile-bar,body.keyboard-open .mobile-bar{display:none}
  /* 16px+ in fields: iPhone does not zoom the page when the keyboard opens. */
  input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px!important}
  .mobile-bar .mb-city{font:600 10px/1 Arial,"Segoe UI",sans-serif;opacity:.7}
  .mobile-bar .mb-city:empty{display:none}
  .mobile-bar .mb-call{gap:2px}
  .mb-menu-region{color:#16803a!important;font-weight:700}
  .mb-menu-region b{font-weight:800}
  /* Office choice sheet (first call / "Регион" in the menu). */
  .mobile-office-sheet{position:fixed;inset:0;z-index:1000}
  .mobile-office-sheet[hidden]{display:none}
  .mos-backdrop{position:absolute;inset:0;background:rgba(10,24,32,.45)}
  .mos-panel{position:absolute;left:0;right:0;bottom:0;display:grid;gap:10px;padding:22px 16px calc(18px + env(safe-area-inset-bottom));background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -10px 30px rgba(0,0,0,.18);font-family:Arial,"Segoe UI",sans-serif}
  .mos-title{font-size:20px;color:#14232c;padding-right:40px}
  .mos-text{margin:-4px 0 4px;font-size:14px;color:#51626b}
  .mos-x{position:absolute;top:12px;right:12px;width:40px;height:40px;border:0;border-radius:50%;background:#eef2f0;font-size:24px;line-height:1;color:#20343f}
  .mos-office{display:flex;justify-content:space-between;align-items:center;min-height:56px;padding:0 16px;border:1.5px solid #dfe6e2;border-radius:14px;background:#fff;font-size:16px;color:#14232c;text-align:left}
  .mos-office span{color:#16803a;font-weight:700;font-size:15px}
  .mos-office.active{border-color:#16b83a;background:#effaf2}

  /* 25.09.2026, manager on a 360 px Samsung: «Открыть условия →» (nowrap) pushed the page to 373 px, the phone
     zoomed out — white band on the right, the page "did not move". Let such lines wrap, and never let
     anything widen the page again (clip keeps position:sticky working, unlike hidden). */
  html,body{max-width:100%;overflow-x:clip}
  .info-banner{flex-wrap:wrap;gap:12px}
  .info-banner a{white-space:normal}

  /* Phone usability retest 25.09.2026: finger-sized targets on every page type (this file loads everywhere). */
  .burger,.unified-public-header details>summary{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .legal{row-gap:4px}
  .legal a,.footlinks a{display:inline-block;padding:7px 0;font-size:13px}
  .menu-panel a,.uph-menu a{padding-top:12px!important;padding-bottom:12px!important}
  label.consent,.lead-form label:has(input[type=checkbox]){align-items:flex-start}
  label.consent input[type=checkbox],form input[type=checkbox]{width:20px;height:20px;min-width:20px;margin-top:0}
  /* Catalog: projects first — full filters fold into a button, "own plan" goes under the list. */
  .approved-catalog{display:flex;flex-direction:column}
  .approved-catalog>.ac-ownplan{order:1}
  .approved-catalog>.ac-help,.approved-catalog>.ac-seo{order:2}
  .ac-filters-btn{display:flex;width:100%;justify-content:center;align-items:center;gap:8px;min-height:46px;border:1.5px solid #dfe6e2;border-radius:14px;background:#fff;font:700 15px Arial,"Segoe UI",sans-serif;color:#14232c}
  .ac-filters:not(.open)>h2,.ac-filters:not(.open)>form{display:none}
  .ac-filters.open .ac-filters-btn{margin-bottom:12px}
}
@media(min-width:761px){.ac-filters-btn{display:none}}
