/* ================= МОБІЛЬНА ВЕРСІЯ / MOBILE ================= */
@media(max-width:700px){
 body{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
 .wrap{padding:0 16px}
 section{padding:46px 0;scroll-margin-top:64px}
 .nav{height:60px;gap:8px}
 .logo{font-size:21px;white-space:nowrap;gap:8px}
 .logo .flags{display:none}
 .right{gap:8px}
 .lang button{padding:7px 10px}
 nav#nav{top:64px}
 nav#nav a{display:block;padding:12px 0;font-size:17px}
 .hero{padding:44px 0 36px;background-position:60% center}
 .hero h1{font-size:34px}
 .hero p{font-size:16px;margin:14px 0 22px}
 .hero .btn{display:block;text-align:center;width:100%}
 .search{grid-template-columns:1fr 1fr;padding:14px;margin-top:26px;gap:10px}
 .search .btn{grid-column:1/-1;text-align:center}
 select,input,textarea{font-size:16px;padding:14px}
 .stats{gap:18px 30px;margin-top:30px}
 .stats b{font-size:26px}
 .eu{gap:10px;padding:16px;font-size:14px;text-align:center}.eu svg{height:26px}
 .title{margin-bottom:18px}
 .tools{width:100%}.tools #fQ{width:100%;flex:1 1 100%}
 .favbtn{flex:1}
 .pp{flex:1;justify-content:flex-end}
 .grid{grid-template-columns:1fr;gap:16px}
 .pic{height:210px}
 .fav{width:44px;height:44px}
 .buy button{padding:11px 18px}
 .pager button{min-width:44px;height:44px}
 .band{padding:56px 0;background-attachment:scroll}
 .band .btn{display:block}
 .services{grid-template-columns:1fr}
 .calc{gap:20px}.calc h2,.ci h2{font-size:28px}
 .calc .box{padding:20px}
 .reviews{grid-template-columns:1fr}
 .rvform{padding:18px}
 .contact{gap:24px}
 .contact .btn{width:100%}
 footer{padding-bottom:24px}
 /* картка авто — на весь екран / car detail as full-screen sheet */
 #detail{padding:0;align-items:start}
 .det{border-radius:0;min-height:100%;max-width:none}
 .dbody{padding:20px 16px 90px}
 .dbody h3{font-size:22px}
 .dprice{font-size:30px}
 .specs{grid-template-columns:1fr 1fr}
 .dact{position:sticky;bottom:0;background:var(--card);padding:12px 0;margin-top:14px}
 .dact .btn{flex:1;text-align:center;padding:14px 10px}
 .dpic{min-height:240px}
 .det .x{width:46px;height:46px;position:fixed;top:10px;right:10px}
 .modal .in{padding:22px}
 /* нижня навігація / bottom tab bar */
 .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;background:rgba(10,17,34,.96);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
 .tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:var(--mute);padding:4px 0;min-height:48px;justify-content:center}
 .tabbar a:active{color:var(--accent)}
 .tabbar i{font-style:normal;font-size:19px;line-height:1}
 .to-top{bottom:calc(78px + env(safe-area-inset-bottom));right:14px}
 .burger{width:44px;height:44px}
}
@media(max-width:380px){.logo{font-size:19px}.lang button{padding:6px 8px;font-size:12px}.hero h1{font-size:30px}}
@media(max-width:700px){.seg{width:100%}.seg button{flex:1;padding:12px 8px;font-size:14px}}

@media(max-width:700px){
 .adv{grid-template-columns:1fr 1fr}.adv .btn{grid-column:1/-1}
 .about{grid-template-columns:1fr;gap:24px}.about h2{font-size:28px}
 .team{grid-template-columns:1fr 1fr 1fr;gap:8px}.team>div{padding:12px 6px}.team span{font-size:11px}
 .map iframe{height:260px}
 .cmpb{width:44px;height:44px;right:60px}
 .cmpbar{bottom:calc(76px + env(safe-area-inset-bottom));width:calc(100% - 24px);justify-content:space-between}
 .cmpwrap td:first-child{width:90px}
 .thumbs img{width:64px;height:46px}
 .theme{width:40px;height:40px}
 #toast{bottom:calc(90px + env(safe-area-inset-bottom))}
 .dleft .dpic{min-height:240px}
}
@media(max-width:700px){
 .tgfab{bottom:calc(78px + env(safe-area-inset-bottom));left:14px;width:50px;height:50px}
 .tgbtn{display:flex;justify-content:center;width:100%}
}

@media(max-width:700px){
 .hcontact{display:none}
 .hero .btn.ghost{display:block;width:100%;margin:10px 0 0;text-align:center}
 .bgrid{grid-template-columns:1fr 1fr;gap:10px}.bank{padding:12px;font-size:14px}.bank strong{font-size:17px}
 .banks .btn{display:block;width:100%}
}
