/* 20.11.2026 (Claude): блок «Выберите удобный автосервис» по макету branches.html. Подключает claude_blocks_branches.php. */
@font-face{font-family:SgBrPT;src:url(/local/templates/stogood/css/themes/fonts/PTSansRegular.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:SgBrPT;src:url(/local/templates/stogood/css/themes/fonts/PTSansBold.ttf) format("truetype");font-weight:700;font-display:swap}
#sto-branches.br-v2{--red:#D7191F;--red-deep:#A80F16;--ink:#23262A;--muted:#676D74;--line:#ECE7E3;--soft:#F7F4F2;--soft-red:#FDECEC;--green:#17803D;
  margin:30px 0 0;padding:30px 0 0;border-top:1px solid var(--line);color:var(--ink);background:#fff;font:16px/1.45 SgBrPT,"PT Sans",PTSansRegular,Arial,sans-serif;-webkit-font-smoothing:antialiased;text-align:left}
#sto-branches.br-v2 *{box-sizing:border-box}
#sto-branches.br-v2 [hidden]{display:none!important}
#sto-branches.br-v2 h2,#sto-branches.br-v2 h3,#sto-branches.br-v2 p{margin:0;text-transform:none}
#sto-branches.br-v2 a{color:inherit;text-decoration:none}
#sto-branches.br-v2 a:hover{text-decoration:none}
#sto-branches.br-v2 svg{display:block;fill:none;stroke:currentColor;flex:none}
#sto-branches.br-v2 :focus{outline:none}
#sto-branches.br-v2 :focus-visible{outline:2px solid var(--red-deep);outline-offset:2px}

/* шапка */
#sto-branches.br-v2 .br-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:0 0 18px}
#sto-branches.br-v2 .h2{font-family:inherit;font-size:28px;line-height:1.15;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
#sto-branches.br-v2 .sub{font-size:15.5px;line-height:1.45;color:var(--muted);margin:8px 0 0;max-width:680px}
#sto-branches.br-v2 .br-hours{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:13px;line-height:1.3;color:var(--muted);white-space:nowrap}
#sto-branches.br-v2 .br-hours svg{width:17px;height:17px;stroke:var(--red);stroke-width:2}
#sto-branches.br-v2 .br-hours b{color:var(--ink);font-weight:700}

/* фильтры — как на сайте */
#sto-branches.br-v2 .sb-toolbar{display:flex;align-items:center;gap:16px;padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid var(--line)}
#sto-branches.br-v2 .sb-filters{display:flex;flex-wrap:wrap;gap:7px}
#sto-branches.br-v2 .sb-filter{min-height:38px;padding:7px 12px;border:1px solid #DDD;border-radius:3px;background:#F7F7F7;color:#555;font:inherit;font-size:14px;line-height:1.2;cursor:pointer;transition:border-color .15s,background .15s}
#sto-branches.br-v2 .sb-filter:hover{border-color:#B7B7B7;color:#333}
#sto-branches.br-v2 .sb-filter[aria-pressed=true]{background:var(--red);border-color:var(--red);color:#fff}
#sto-branches.br-v2 .sb-filter[aria-pressed=true]:hover{border-color:var(--red-deep);background:var(--red-deep)}

/* кнопки */
#sto-branches.br-v2 .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:30px;padding:0 10px;border-radius:99px;font-size:11.5px;line-height:1;font-weight:700;text-decoration:none;white-space:nowrap;border:1.5px solid transparent;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
#sto-branches.br-v2 .btn-red{background:var(--red);color:#fff;border-color:var(--red)}
#sto-branches.br-v2 .btn-red:hover,#sto-branches.br-v2 .btn-red:active{background:var(--red-deep);border-color:var(--red-deep);color:#fff}
#sto-branches.br-v2 .btn-line{background:#fff;color:var(--ink);border-color:var(--line)}
#sto-branches.br-v2 .btn-line:hover,#sto-branches.br-v2 .btn-line:active{border-color:var(--red);color:var(--red-deep)}

/* список + карта */
#sto-branches.br-v2 .br1{display:grid;grid-template-columns:390px minmax(0,1fr);border:1.5px solid var(--line);border-radius:17px;overflow:hidden;height:590px;background:#fff}
#sto-branches.br-v2 .br1-list{overflow:auto;padding:6px 8px;scrollbar-width:thin;overscroll-behavior:contain}
#sto-branches.br-v2 .br1-item{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);gap:2px 10px;padding:13px 12px;margin:0;border-radius:11px;border:1.5px solid transparent;cursor:pointer;transition:background .15s,border-color .15s}
#sto-branches.br-v2 .br1-item:hover{background:#FCFAF9}
#sto-branches.br-v2 .br1-item.is-active{background:var(--soft-red);border-color:#F3D1D1}
#sto-branches.br-v2 .br1-item:focus-visible{outline:2px solid var(--red-deep);outline-offset:-2px}
#sto-branches.br-v2 .br1-num{grid-row:1/3;width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:var(--soft);color:var(--muted);font-size:11px;font-weight:700}
#sto-branches.br-v2 .br1-item.is-active .br1-num{background:var(--red);color:#fff}
#sto-branches.br-v2 .br1-info{min-width:0}
#sto-branches.br-v2 .br1-info h3{margin:0;font-family:inherit;font-size:16px;line-height:1.2;font-weight:700;color:var(--ink)}
#sto-branches.br-v2 .br1-info .addr{margin:2px 0 0;font-size:12.5px;line-height:1.3;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sto-branches.br-v2 .br1-info .metro{margin:3px 0 0;font-size:11.5px;line-height:1.3;color:var(--muted);display:flex;gap:5px;align-items:center}
#sto-branches.br-v2 .br1-info .metro svg{width:13px;height:13px;stroke:var(--red);stroke-width:2}
#sto-branches.br-v2 .br1-dist{margin:3px 0 0;font-size:11.5px;line-height:1.3;font-weight:700;color:var(--red-deep)}
#sto-branches.br-v2 .br1-side{grid-column:2;display:flex;flex-wrap:wrap;row-gap:6px;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
#sto-branches.br-v2 .br1-tel{font-size:14px;font-weight:700;text-decoration:none;color:var(--ink);white-space:nowrap}
#sto-branches.br-v2 .br1-tel:hover{color:var(--red-deep)}
#sto-branches.br-v2 .br1-acts{display:flex;gap:5px}

#sto-branches.br-v2 .map{position:relative;overflow:hidden;background:#EDF0EA}
#sto-branches.br-v2 .br1-map{position:relative;min-height:100%}
#sto-branches.br-v2 .br1-ymap{position:absolute;inset:0;z-index:1}
#sto-branches.br-v2 .br1-ymap iframe{width:100%;height:100%;border:0;display:block}
#sto-branches.br-v2 .br1-map-wait{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:14px}
#sto-branches.br-v2 .br1-map-wait svg{width:28px;height:28px;stroke:var(--red)}
#sto-branches.br-v2 .br1-map.is-ready .br1-map-wait{display:none}
#sto-branches.br-v2 .map-tools{position:absolute;right:16px;top:16px;z-index:3;display:flex;gap:6px}
#sto-branches.br-v2 .map-tools button,#sto-branches.br-v2 .map-tools a{height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 11px;border:1.5px solid rgba(35,38,42,.1);border-radius:9px;background:rgba(255,255,255,.94);color:var(--ink);font:inherit;font-size:12.5px;font-weight:700;line-height:1;text-decoration:none;cursor:pointer;box-shadow:0 6px 18px -12px rgba(0,0,0,.4);transition:border-color .15s,color .15s}
#sto-branches.br-v2 .map-tools button:hover,#sto-branches.br-v2 .map-tools a:hover{border-color:var(--red);color:var(--red-deep)}
#sto-branches.br-v2 .map-tools button[aria-pressed=true]{border-color:var(--red);color:var(--red-deep);background:#fff}
#sto-branches.br-v2 .map-tools button[aria-busy=true]{opacity:.7;cursor:progress}
#sto-branches.br-v2 .map-tools svg{width:15px;height:15px;stroke:var(--red);stroke-width:2}
#sto-branches.br-v2 .map-card{position:absolute;left:18px;bottom:40px;z-index:3;width:264px;padding:14px 16px;border-radius:13px;background:#fff;box-shadow:0 18px 40px -22px rgba(35,38,42,.55),0 0 0 1px rgba(35,38,42,.05)}
#sto-branches.br-v2 .map-card .mc-k{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--red-deep)}
#sto-branches.br-v2 .map-card .mc-name{margin:4px 0 3px;font-size:19px;line-height:1.2;font-weight:700;color:var(--ink)}
#sto-branches.br-v2 .map-card p{margin:0;font-size:13px;line-height:1.35;color:var(--muted)}
#sto-branches.br-v2 .map-card .mc-phone{display:inline-block;margin:9px 0 8px;font-size:18px;font-weight:700;line-height:1;text-decoration:none;color:var(--ink)}
#sto-branches.br-v2 .map-card .mc-phone:hover{color:var(--red-deep)}
#sto-branches.br-v2 .map-card .mc-time{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.3;color:var(--green)}
#sto-branches.br-v2 .map-card .mc-time i{width:7px;height:7px;flex:none;border-radius:50%;background:#22A350;box-shadow:0 0 0 3px rgba(34,163,80,.16)}
#sto-branches.br-v2 .map-card .mc-time.is-closed{color:var(--muted)}
#sto-branches.br-v2 .map-card .mc-time.is-closed i{background:#A3A8AD;box-shadow:0 0 0 3px rgba(163,168,173,.2)}
#sto-branches.br-v2 .mc-route{display:inline-flex;align-items:center;gap:5px;margin-top:9px;font-size:13px;font-weight:700;color:var(--red-deep);text-decoration:none}
#sto-branches.br-v2 .mc-route svg{width:12px;height:12px;stroke-width:2}
#sto-branches.br-v2 .mc-route:hover{text-decoration:underline}
#sto-branches.br-v2 .br-status{margin:10px 0 0;font-size:13px;line-height:1.4;color:var(--muted)}
#sto-branches.br-v2 .br-status.is-error{color:var(--red-deep)}

/* метки на карте (свой макет метки) */
.brm-pin{position:relative;width:28px;height:28px;margin:-14px 0 0 -14px;border-radius:50%;background:#D7191F;border:3px solid #fff;color:#fff;font:700 11px/22px SgBrPT,"PT Sans",Arial,sans-serif;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.25);cursor:pointer;box-sizing:border-box}
.brm-pin.is-active{width:34px;height:34px;margin:-17px 0 0 -17px;line-height:28px;font-size:12px;background:#A80F16;box-shadow:0 0 0 10px rgba(215,25,31,.15),0 2px 6px rgba(0,0,0,.25)}
.brm-me{width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:#2F6FE4;border:3px solid #fff;box-shadow:0 0 0 6px rgba(47,111,228,.2);box-sizing:border-box}

@media (max-width:900px){#sto-branches.br-v2 .br1{grid-template-columns:340px minmax(0,1fr);height:560px}}
@media (max-width:720px){
  #sto-branches.br-v2 .h2{font-size:24px}
  #sto-branches.br-v2 .br1{grid-template-columns:1fr;height:auto}
  #sto-branches.br-v2 .br1-list{max-height:390px}
  #sto-branches.br-v2 .br1-map{height:400px;min-height:0}
}
@media (max-width:560px){
  #sto-branches.br-v2 .sb-toolbar{overflow-x:auto;padding-bottom:14px;margin-bottom:14px}
  #sto-branches.br-v2 .sb-filters{flex-wrap:nowrap;min-width:max-content}
  #sto-branches.br-v2 .sb-filter{flex:none}
}
@media (max-width:440px){
  #sto-branches.br-v2 .h2{font-size:22px}
  #sto-branches.br-v2 .br1-side{gap:6px}
  #sto-branches.br-v2 .br1-item{padding:13px 10px}
  #sto-branches.br-v2 .br1-acts .btn{padding:0 9px}
}
@media (prefers-reduced-motion:reduce){#sto-branches.br-v2 *{transition:none!important}}
