/* АвтоСпа — системная мобильная версия
 * Проверочные ширины: 320 / 360 / 375 / 390 / 414 / 430 px.
 * Не меняет утверждённый desktop-визуал.
 */
html{overflow-x:hidden}
body{min-width:0;overflow-x:hidden}
img,iframe,video,svg{max-width:100%}
.container{min-width:0}
.site-header{overflow:visible}
.header-inner,.hero-grid,.cards,.benefits,.tire-booking-card,.engine-box,.tire-box,.autotech-banner-inner,.reviews-location-grid,.footer-inner-full,.service-page-hero,.service-related-grid,.service-page-bottom{min-width:0}
.card,.shortcut,.yandex-review-card,.map-card,.benefit,.contact-card,.engine-box,.tire-box,.autotech-banner-inner,.tire-booking-card,.service-page-card,.service-page-hero,.service-entry-content,.service-related-card,.service-bottom-card{min-width:0}
h1,h2,h3,p,a,span,small,strong,li{overflow-wrap:anywhere}
button,.button,.call-link,.social-link,.mobile-nav a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.hero-photo img{min-width:0}
.yandex-map,.yandex-rating-widget{display:block;width:100%;max-width:100%;border:0}

@media (max-width:1000px){
  .container{width:min(100% - 28px,1320px)}
  .header-inner{gap:12px}
  .brand{flex:1 1 auto;min-width:0}
  .brand-logo-img{width:235px;max-width:100%;height:68px}
  .main-nav{display:none}
  .header-actions{margin-left:auto;flex:0 0 auto}
  .mobile-toggle{display:inline-flex}
  .hero{min-height:0}
  .hero-grid{grid-template-columns:1fr}
  .hero-copy{max-width:720px}
  .hero-shortcuts-grid{grid-template-columns:1fr 1fr}
  .shortcut{min-width:0}
  .cards{grid-template-columns:1fr 1fr}
  .reviews-location-grid{grid-template-columns:1fr}
  .yandex-review-card,.map-card{min-height:0}
  .footer-inner-full{grid-template-columns:1fr 1fr}
}

@media (max-width:700px){
  .container{width:calc(100% - 24px)}
  .site-header{position:sticky;top:0}
  .header-inner{min-height:68px;padding:0}
  .brand-logo-img{width:205px;height:58px}
  .header-actions{gap:7px}
  .header-actions .social-link{display:none}
  .call-link{width:42px;min-height:42px;padding:0;border-radius:12px}
  .call-link .call-copy{display:none}
  .call-icon{font-size:18px}
  .mobile-toggle{width:42px;height:42px;display:inline-flex}
  .mobile-panel{width:100%;padding:0 0 12px}
  .mobile-nav{border-radius:18px}
  .hero{padding:30px 0 24px}
  .hero-photo img{object-position:68% center}
  .hero-photo-shade{background:linear-gradient(90deg,rgba(247,252,255,.99) 0%,rgba(247,252,255,.91) 66%,rgba(247,252,255,.48) 100%)}
  .hero-copy{padding:4px 0 18px}
  .hero-copy h1{font-size:clamp(44px,13vw,58px);line-height:.95;letter-spacing:-.055em}
  .hero-copy h1 .hero-h1-accent{font-size:.52em;line-height:1.08;margin-top:9px}
  .hero-copy p{font-size:16px;line-height:1.45;margin-top:14px}
  .hero-buttons{display:grid;grid-template-columns:1fr;gap:9px;margin-top:18px}
  .hero-buttons .button{width:100%;min-height:52px}
  .hero-facts{grid-template-columns:1fr 1fr;gap:9px;margin-top:20px}
  .hero-fact{min-width:0;align-items:flex-start}
  .hero-fact .fact-icon{width:29px;height:29px;flex-basis:29px;flex-shrink:0}
  .hero-fact strong{font-size:11px}
  .hero-shortcuts{margin-top:4px}
  .hero-shortcuts-grid{grid-template-columns:1fr;gap:10px}
  .shortcut{grid-template-columns:82px minmax(0,1fr);min-height:104px;padding:10px 14px;gap:12px}
  .shortcut-photo{width:82px;height:82px;border-radius:13px}
  .shortcut h3{font-size:17px}
  .shortcut p{font-size:12px;line-height:1.3;padding-right:18px}
  .shortcut:after{right:11px;bottom:8px;font-size:27px}
  .tire-booking-banner{padding-bottom:40px}
  .tire-booking-card{grid-template-columns:1fr;gap:14px;padding:14px;border-radius:22px}
  .tire-booking-visual{min-height:170px;border-radius:17px}
  .tire-service-image{width:94%;max-height:165px}
  .tire-booking-content h2{font-size:29px}
  .booking-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .booking-button,.booking-phone{width:100%;text-align:center}
  .booking-phone{padding:10px}
  .booking-badge{grid-column:auto}
  .section{padding:46px 0}
  .section-head{display:block;margin-bottom:20px}
  .section h2{font-size:clamp(30px,9vw,42px)}
  .section-intro{font-size:15px;line-height:1.5}
  .cards,.benefits{grid-template-columns:1fr}
  .service-photo{height:190px}
  .service-card-body{padding:19px 20px 21px}
  .service-card-body p{min-height:0}
  .engine-box,.tire-box,.autotech-banner-inner{grid-template-columns:1fr;padding:24px;border-radius:22px}
  .tire-actions,.contact-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .tire-actions .button,.contact-actions .button{width:100%}
  .reviews-location-grid{grid-template-columns:1fr;gap:14px}
  .yandex-review-card,.map-card{padding:20px;border-radius:20px}
  .review-card-head,.map-card-head{display:block}
  .yandex-review-card .button{width:100%;margin-top:12px;min-height:54px}
  .yandex-map{height:300px}
  .map-link{display:inline-block;margin-top:9px}
  .contact-card{padding:24px;border-radius:22px}
  .benefit{padding:18px}
  .footer-inner-full{grid-template-columns:1fr}
  .footer-bottom{grid-column:auto;flex-direction:column;gap:6px}
  .footer-logo-img{width:220px}
  .mobile-booking-bar{display:flex;position:fixed;left:10px;right:10px;bottom:10px;z-index:90;gap:8px;padding:7px;border-radius:18px;background:rgba(255,255,255,.96);border:1px solid #cfe9f6;box-shadow:0 14px 35px rgba(18,91,140,.18);backdrop-filter:blur(12px)}
  .mobile-booking-bar a{flex:1;min-height:48px;display:flex;align-items:center;justify-content:center;border-radius:13px;font-weight:900;font-size:14px}
  .mobile-booking-bar .mobile-tire{background:linear-gradient(135deg,#12a7e7,#087ac8);color:#fff}
  .mobile-booking-bar .mobile-call{background:#eff9e9;color:#3e8d35}
  body{padding-bottom:78px}
  .content-page{padding:12px 0 25px}
  .content-page>h1{font-size:clamp(34px,10vw,48px)}
  .entry-content{font-size:16px}
  .entry-content table{display:block;overflow-x:auto;white-space:nowrap}
  .service-page{padding-top:24px!important}
  .service-page-hero{grid-template-columns:1fr;padding:20px!important;gap:18px;border-radius:22px!important}
  .service-page-hero h1{font-size:clamp(36px,11vw,48px)}
  .service-page-intro{font-size:16px}
  .service-page-visual{min-height:205px!important}
  .service-entry-content{padding:20px!important;border-radius:22px!important}
  .service-entry-content p,.service-entry-content li{font-size:16px;line-height:1.65}
  .service-related-grid,.service-page-bottom{grid-template-columns:1fr}
  .service-faq{padding:17px}
  .service-page-bottom{margin-top:28px}
}

@media (max-width:430px){
  .container{width:calc(100% - 20px)}
  .brand-logo-img{width:190px}
  .hero-copy h1{font-size:clamp(40px,12.5vw,52px)}
  .hero-copy p{font-size:15px}
  .hero-facts{gap:7px}
  .hero-fact{gap:6px}
  .hero-fact .fact-icon{width:27px;height:27px;flex-basis:27px}
  .hero-fact strong{font-size:10.5px}
  .shortcut{grid-template-columns:74px minmax(0,1fr);min-height:96px}
  .shortcut-photo{width:74px;height:74px}
  .shortcut h3{font-size:16px}
  .shortcut p{font-size:11.5px}
  .service-photo{height:175px}
  .yandex-map{height:285px}
  .mobile-booking-bar a{font-size:13px}
}

@media (max-width:390px){
  .container{width:calc(100% - 18px)}
  .brand-logo-img{width:178px}
  .header-inner{gap:6px}
  .call-link,.mobile-toggle{width:39px;height:39px;min-height:39px}
  .hero{padding-top:26px}
  .hero-copy h1{font-size:40px}
  .hero-copy h1 .hero-h1-accent{font-size:21px}
  .hero-facts{grid-template-columns:1fr}
  .hero-fact{align-items:center}
  .shortcut{grid-template-columns:68px minmax(0,1fr);min-height:90px}
  .shortcut-photo{width:68px;height:68px}
  .shortcut p{padding-right:10px}
  .section{padding:40px 0}
  .tire-booking-content h2{font-size:27px}
  .yandex-review-card,.map-card{padding:17px}
  .yandex-map{height:270px}
}

@media (max-width:360px){
  .brand-logo-img{width:165px}
  .hero-copy h1{font-size:37px}
  .hero-copy h1 .hero-h1-accent{font-size:20px}
  .hero-copy p{font-size:14px}
  .hero-fact strong{font-size:10px}
  .shortcut{grid-template-columns:62px minmax(0,1fr);padding:9px 11px}
  .shortcut-photo{width:62px;height:62px}
  .shortcut h3{font-size:15px}
  .shortcut p{font-size:11px}
  .button{padding:13px 16px;font-size:14px}
  .section h2{font-size:29px}
}

@media (max-width:320px){
  .container{width:calc(100% - 14px)}
  .brand-logo-img{width:150px}
  .header-inner{min-height:62px}
  .hero-copy h1{font-size:34px}
  .hero-copy h1 .hero-h1-accent{font-size:18px}
  .hero-facts{margin-top:15px}
  .shortcut{grid-template-columns:56px minmax(0,1fr);gap:9px}
  .shortcut-photo{width:56px;height:56px}
  .shortcut h3{font-size:14px}
  .shortcut p{font-size:10.5px}
  .section{padding:34px 0}
  .yandex-map{height:250px}
  .mobile-booking-bar{left:7px;right:7px;bottom:7px}
  .mobile-booking-bar a{min-height:46px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
