/* Home-only additions. Desktop controls and geometry remain unchanged. */
.home-mobile-country-slot,.home-mobile-presets,.home-mobile-brands-slot,
.home-popular-cars__brand>.home-choice-brand-mark{display:none;}
@media(max-width:600px){
  .home-search-stage .home-mobile-country-slot,
  .home-search-stage .home-mobile-brands-slot{display:block;width:100%;min-width:0;}
  .home-search-stage .home-mobile-country-slot{margin-bottom:6px;}
  .home-search-stage .home-mobile-country-slot fieldset{margin:0;padding:0;border:0;min-width:0;width:100%;}
  .home-search-stage .home-mobile-country-slot fieldset>div,
  .home-search-stage .home-mobile-condition{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;width:100%;height:32px;min-height:32px;margin:0;padding:2px;border:0;border-radius:10px;background:var(--ui-gray,#eceeef);box-sizing:border-box;}
  .home-search-stage .home-mobile-country-slot fieldset>div::before,
  .home-search-stage .home-mobile-country-slot fieldset>div::after{display:none;}
  .home-search-stage .home-mobile-condition label{position:relative;min-width:0;}
  .home-search-stage .home-mobile-condition input{position:absolute;width:1px;height:1px;opacity:0;}
  .home-search-stage .home-mobile-country-slot button,
  .home-search-stage .home-mobile-condition span{display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:28px;min-height:28px;padding:0 2px;border:0;border-radius:8px;background:transparent;color:var(--ui-text,#171a22);font-size:13px;line-height:18px;font-weight:400;white-space:nowrap;box-sizing:border-box;}
  .home-search-stage .home-mobile-country-slot button[aria-pressed=true],
  .home-search-stage .home-mobile-condition input:checked+span{background:#fff;box-shadow:0 1px 3px rgba(17,17,17,.08);}
  .home-search-stage .home-mobile-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin:8px 0;}
  .home-search-stage .home-mobile-presets a{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;height:32px;padding:0 4px;border:0;border-radius:16px;background:var(--ui-gray,#eceeef);color:var(--ui-text,#171a22);font-size:13px;line-height:18px;text-decoration:none;box-sizing:border-box;}
  .home-search-stage .home-mobile-presets svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
  .home-search-stage .home-mobile-country-slot button:focus-visible,
  .home-search-stage .home-mobile-presets a:focus-visible,
  .home-search-stage .home-mobile-brands-slot a:focus-visible,
  .home-search-stage .home-mobile-brands-slot button:focus-visible{outline:2px solid #171819;outline-offset:2px;}
  .home-search-stage .home-mobile-brands-slot .home-popular-cars__brands{display:grid;width:100%;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px;margin:16px 0 0;}
  .home-search-stage .home-mobile-brands-slot .home-popular-cars__brands:not([data-expanded=true])>.home-popular-cars__brand:nth-child(n+13){display:none;}
  .home-search-stage .home-mobile-brands-slot .home-popular-cars__brands[hidden]{display:none;}
  .home-search-stage .home-mobile-brands-slot .home-popular-cars__brand{display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;column-gap:6px;row-gap:2px;align-content:start;align-items:start;min-width:0;min-height:44px;padding:4px 0;border:0;background:transparent;box-shadow:none;color:var(--ui-text,#171a22);text-decoration:none;}
  .home-search-stage .home-mobile-brands-slot .home-choice-brand-mark{display:flex;grid-column:1;grid-row:1 / span 2;align-items:center;justify-content:center;width:24px;height:24px;font-size:12px;color:var(--ui-muted,#767e8b);}
  .home-search-stage .home-mobile-brands-slot .home-choice-brand-mark img{width:100%;height:100%;object-fit:contain;}
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="mercedes-benz"] img,
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="bmw"] img,
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="volkswagen"] img{width:22px;height:22px;}
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="porsche"] img{width:18px;height:26px;}
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="bmw"] img{transform:scale(1.6);}
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="porsche"]{overflow:hidden;width:20px;height:28px;}
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="porsche"] img{transform:scale(3.6) translateY(1px);}
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="genesis"]{overflow:hidden;}
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="genesis"] img{transform:scale(1.5);}
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="hyundai"] img{filter:brightness(0) saturate(100%) invert(17%) sepia(47%) saturate(3118%) hue-rotate(192deg) brightness(92%) contrast(103%);}
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="tesla"] img{width:19px;height:24px;filter:brightness(0) saturate(100%) invert(17%) sepia(98%) saturate(5097%) hue-rotate(351deg) brightness(93%) contrast(117%);}
  .home-search-stage .home-mobile-brands-slot [data-brand-mark="byd"] img{filter:brightness(0) saturate(100%) invert(17%) sepia(98%) saturate(5097%) hue-rotate(351deg) brightness(93%) contrast(117%);}
  .home-search-stage .home-mobile-brands-slot .home-popular-cars__brand strong{grid-column:2;grid-row:1;min-width:0;font-size:12px;font-weight:400;line-height:16px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;}
  .home-search-stage .home-mobile-brands-slot .home-popular-cars__brand>span:not(.home-choice-brand-mark){grid-column:2;grid-row:2;font-size:11px;line-height:15px;color:var(--ui-muted,#767e8b);}
  .home-search-stage .home-mobile-brands-slot .home-popular-cars__expand{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:32px;height:32px;margin:6px 0 0;padding:0 8px;border:0;border-radius:12px;background:var(--ui-gray,#eceeef);color:var(--ui-text,#171a22);font-size:13px;font-weight:400;}
  .home-search-stage .home-mobile-brands-slot .home-popular-cars__expand svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;}
  .home-search-stage .home-mobile-brands-slot .home-popular-cars__show{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:8px 0 0;padding:0 8px;border:0;border-radius:12px;background:#202124;color:#fff;font-size:15px;font-weight:600;line-height:20px;text-decoration:none;box-sizing:border-box;}
  .home-search-stage .home-mobile-brands-slot [hidden]{display:none!important;}
}
@media(min-width:375px) and (max-width:600px){
  .home-search-stage .home-mobile-brands-slot [data-popular-brand="Mercedes-Benz"] strong{font-size:10px;white-space:nowrap;}
}
