@media (max-width:600px){
  body{font-size:14px}
  .container{width:calc(100% - 24px)}
  .demo-notice{padding:6px 12px;font-size:10px;line-height:1.3}
  .header{position:relative;z-index:20;margin-bottom:10px}
  .header-inner{min-height:64px;gap:10px}
  .brand{flex:1 1 auto;min-width:0}
  .brand-main{font-size:22px}
  .brand small{font-size:7px;letter-spacing:.12em}
  .catalog-button{display:none}
  .hero-copy{padding:20px 18px 13px}
  .hero h1{font-size:clamp(29px,8vw,36px);line-height:1.1;margin:10px 0 9px}
  .hero-copy p{font-size:12px;line-height:1.45}
  .finder{padding:14px 18px 17px}
  .finder-top h2{font-size:15px}
  .finder-top span{font-size:11px}
  .finder-tabs{margin:12px 0 13px}
  .finder-tabs button{min-height:44px;padding:7px 3px;font-size:11px;line-height:1.2}
  .finder-fields,.finder-fields[data-panel=code]{grid-template-columns:1fr;gap:9px}
  .finder label{font-size:12px;gap:5px}
  .finder select,.finder input{height:46px;padding:0 12px;font-size:16px}
  .finder-tip{font-size:11px;line-height:1.45}
  .finder .red-button{min-height:48px;margin-top:12px;font-size:14px}
  .finder-help{margin-top:11px;font-size:12px;line-height:1.5}
  .hero-benefits{display:none}
  .section,.memo-section,.kit-section,.routes-section,.inspection-section,.service-section,.request-section{padding-top:52px;padding-bottom:52px}
  .section-heading{margin-bottom:21px}
  .section-heading h2{font-size:clamp(27px,7vw,34px);line-height:1.15}
  .section-heading p{font-size:13px;line-height:1.55}
  .catalog-aside{padding:18px;gap:12px}
  .catalog-aside label{font-size:12px}
  .catalog-aside select,.catalog-aside input,.request-form input{height:46px;font-size:16px}
  .catalog-aside>button{min-height:40px}
  .product-photo{height:225px}
  .product-body{padding:18px}
  .product-body h3{font-size:19px;line-height:1.25}
  .product-specs span{font-size:11px}
  .product-bottom{align-items:center}
  .product-bottom button{min-height:44px;padding:10px 14px;font-size:12px}
  .brands-panel{padding:24px 16px}
  .brand-grid a{min-height:46px;font-size:12px}
  .show-brands,.arrivals-link{min-height:48px}
  .arrival-photo{height:220px}
  .arrival-body h3{font-size:18px}
  .arrival-body dl div{font-size:12px}
  .arrival-bottom button{min-height:44px;padding:8px}
  .memo-grid article{padding:21px}
  .memo-grid h3{font-size:18px}
  .memo-grid p,.inspection-list p,.kit-main p,.routes-grid p{font-size:13px}
  .inspection-visual{min-height:300px}
  .inspection-visual-copy{font-size:17px}
  .inspection-list h3{font-size:16px}
  .kit-main{display:flex;flex-direction:column;min-height:0}
  .kit-content{order:0;width:100%}
  .kit-art{position:static;order:1;width:min(100%,340px);height:220px;margin:15px auto 0;opacity:1}
  .kit-legend{max-width:100%;margin-top:20px}
  .routes-grid article{padding:22px}
  .service-intro h2{font-size:32px}
  .service-intro p,.service-points p{font-size:13px}
  .request-form{padding:20px}
  .request-form label{font-size:12px}
  .request-form textarea{font-size:16px}
  .request-grid>div>p{font-size:13px}
  .footer-top{gap:26px;padding-bottom:32px}
  .footer-bottom{display:block;line-height:1.6}
  .product-dialog{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;overscroll-behavior:contain}
  .dialog-close{position:fixed;top:12px;right:12px;width:44px;height:44px;box-shadow:0 2px 12px #0004}
  .detail-gallery{padding:10px}
  .detail-main-photo{height:min(52vw,260px);min-height:190px}
  .detail-thumbs:has(button:only-child){display:none}
  .detail-gallery>p{font-size:11px;margin:10px 4px 0}
  .detail-summary{padding:20px 16px}
  .detail-summary h2{font-size:26px}
  .detail-code{margin-bottom:15px}
  .detail-key{gap:5px}
  .detail-key div{padding:10px 7px}
  .detail-key span{font-size:10px}
  .detail-key strong{font-size:12px}
  .detail-summary .red-button{min-height:48px}
  .detail-sections{padding:22px 16px}
  .detail-sections p,.fitment-list span,.detail-facts>div{font-size:12px}
  .detail-request-form input{height:46px;font-size:16px}
}
@media (max-width:380px){
  .hero h1{font-size:29px}
  .finder{padding-left:14px;padding-right:14px}
  .finder-tabs button{font-size:10px}
  .product-bottom{align-items:stretch;flex-direction:column}
  .product-bottom button{width:100%}
  .detail-key{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Мобильное меню: только на узких экранах, на компьютере строки навигации нет. */
.menu-toggle,.mobile-menu{display:none}
@media (max-width:800px){
  .header{position:relative;z-index:20}
  .menu-toggle{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #e2e2e2;border-radius:8px;background:#fff;color:var(--ink);font-size:22px;line-height:1}
  .menu-toggle[aria-expanded=true]{border-color:var(--ink);background:var(--ink);color:#fff}
  .mobile-menu:not([hidden]){display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;z-index:30;max-height:calc(100svh - 80px);overflow:auto;padding:12px 16px 16px;background:#fff;border-top:1px solid #eee;box-shadow:0 18px 30px #0000002e}
  .mobile-menu>a:not(.red-button){display:flex;align-items:center;min-height:48px;border-bottom:1px solid #f1f1f1;font-size:15px;font-weight:600}
  .mobile-menu>a:not(.red-button):active{color:var(--red)}
  .mobile-menu-search{display:flex;height:48px;margin-bottom:6px;background:#f4f4f4;border-radius:8px;overflow:hidden}
  .mobile-menu-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;padding:0 14px;font-size:16px}
  .mobile-menu-search button{width:52px;border:0;background:var(--red);color:#fff;font-size:24px}
  .mobile-menu-cta{margin-top:14px}
}

/* ===== Мобильная версия: компактные блоки, карусели вместо колонок карточек, нижняя панель действий ===== */
.nw{white-space:nowrap}
.mobile-bar{display:none}
@media (max-width:800px){
  .mobile-bar{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:40;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fffffff2;backdrop-filter:blur(8px);border-top:1px solid #e6e6e6;box-shadow:0 -6px 20px #0000001a;transition:transform .25s ease}
  .mobile-bar.is-hidden{transform:translateY(110%)}
  .mobile-bar a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;border-radius:8px;font-size:14px;font-weight:700}
  .mobile-bar-find{background:#262626;color:#fff}
  .mobile-bar-find span{font-size:19px;line-height:1}
  .mobile-bar-request{background:var(--red);color:#fff}
}
@media (max-width:600px){
  /* Общий ритм разделов */
  .section,.memo-section,.kit-section,.routes-section,.inspection-section,.service-section,.request-section,.arrivals-section{padding-top:40px;padding-bottom:40px}
  .brands-section{padding:0 0 8px}
  .section-heading{margin-bottom:16px;gap:0}
  .section-heading h2{font-size:25px;line-height:1.15;margin:8px 0}
  .section-heading p{font-size:13px;line-height:1.5}
  .section-kicker,.eyebrow{font-size:10px}

  /* Первый экран: заголовок короче, подбор — сетка 2×2, преимущества — строкой */
  .hero-copy{padding:16px 16px 12px}
  .hero h1{font-size:27px;margin:8px 0 6px}
  .hero-copy p{font-size:12px;line-height:1.4}
  .finder{padding:12px 16px 14px}
  .finder-top span{display:none}
  .finder-tabs{margin:10px 0}
  .finder-tabs button{min-height:40px}
  .finder-car,.finder-fields[data-panel=vin]{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .finder-fields[data-panel=vin] label{grid-column:1/-1}
  .finder label{font-size:11px;gap:4px}
  .finder select,.finder input{height:46px;padding:0 10px;font-size:16px;text-overflow:ellipsis}
  .finder .red-button{margin-top:10px}
  .finder-banner{min-height:72px;margin-top:10px;padding:10px 120px 10px 14px}
  .finder-banner img{width:118px;height:80px;bottom:-4px}
  .hero-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0;border-radius:0 0 var(--radius) var(--radius)}
  .hero-benefits>div{flex-direction:column;align-items:center;text-align:center;gap:6px;min-height:0;padding:12px 6px}
  .hero-benefits .benefit-icon{width:32px;height:32px}
  .hero-benefits b{font-size:11px}
  .hero-benefits small{font-size:10px;line-height:1.25}

  /* Каталог: фильтры в одну строку, подсказку убираем (есть нижняя панель) */
  .catalog-aside{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;padding:14px}
  .catalog-aside h3,.aside-help{display:none}
  .catalog-aside label{font-size:11px;gap:4px}
  .catalog-aside label:nth-of-type(3){grid-column:1/-1}
  .catalog-aside>button{grid-column:1/-1;justify-self:end;min-height:32px;font-size:12px}
  .results-top{margin:4px 0 10px}
  .product-grid{gap:12px}
  .product-photo{height:200px}
  .product-body{padding:16px}
  .product-body h3{font-size:18px;margin:8px 0 10px}
  .product-bottom{margin-top:14px;padding-top:14px}
  .product-price strong{font-size:22px}

  /* Марки */
  .brands-panel{padding:22px 14px;border-radius:12px}
  .brand-grid{gap:6px}
  .brand-grid a{padding:12px 10px;min-height:44px}

  /* Карусели: карточки листаются вбок, следующая выглядывает справа */
  .arrival-grid,.selection-grid,.memo-grid,.routes-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:84%;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -12px;padding:0 12px 6px;scroll-padding:0 12px;scrollbar-width:none;overscroll-behavior-x:contain}
  .arrival-grid::-webkit-scrollbar,.selection-grid::-webkit-scrollbar,.memo-grid::-webkit-scrollbar,.routes-grid::-webkit-scrollbar{display:none}
  .arrival-grid>*,.selection-grid>*,.memo-grid>*,.routes-grid>*{scroll-snap-align:start;min-width:0}
  .arrival-photo{height:170px}
  .arrival-body{padding:16px}
  .arrival-body h3{font-size:17px}
  .arrivals-link{margin-top:12px}
  .selection-grid article,.memo-grid article,.routes-grid article{min-height:0;padding:18px}
  .selection-grid h3{margin:12px 0 8px;font-size:17px}
  .memo-grid h3{font-size:17px;margin:10px 0 8px}
  .selection-callout{margin-top:12px;padding:20px}
  .selection-callout b{font-size:16px}
  .memo-action{margin-top:14px}
  .routes-note{margin-top:12px;padding:16px;font-size:12px}

  /* Проверка, комплектация, доставка: картинки ниже, списки плотнее */
  .inspection-grid{gap:14px}
  .inspection-visual{min-height:210px}
  .inspection-visual-copy{font-size:15px;bottom:16px;left:16px}
  .inspection-list article{padding:12px 0}
  .inspection-list h3{font-size:15px;margin:0 0 4px}
  .inspection-list p{font-size:12px}
  .kit-main{padding:20px}
  .kit-main h3{margin-top:12px;font-size:22px}
  .kit-art{height:170px;margin-top:10px}
  .kit-items>div{padding:12px 0}
  .service-intro{min-height:0}
  .service-intro h2{font-size:25px}
  .service-art{max-height:170px;margin-top:8px}
  .service-points article{padding:12px 0;gap:14px}

  /* FAQ и заявка */
  .faq-grid{gap:8px}
  .faq-grid summary{padding:16px 28px 16px 0}
  .request-grid{gap:20px}
  .request-grid h2{font-size:27px;margin:8px 0 10px}
  .request-checks{margin-top:14px;gap:8px}

  /* Подвал: ссылки в две колонки */
  footer{padding-top:32px}
  .footer-top{grid-template-columns:1fr 1fr;gap:22px 14px}
  .footer-top>div:first-child{grid-column:1/-1}
  .footer-top>div{gap:9px}
}
@media (max-width:360px){
  .finder-car{grid-template-columns:1fr}
  .hero-benefits{display:none}
}

/* Обёртка против переноса кода мотора наследует оформление текста вокруг (не путать с подписями span) */
.nw{display:inline!important;font-size:inherit!important;color:inherit!important;margin:0!important;font-weight:inherit!important}
/* На телефоне рамки фото — в пропорции снимков Bazon (4:3), чтобы фото было во всю ширину и целиком */
@media (max-width:600px){
  .product-photo,.arrival-photo{height:auto!important;aspect-ratio:4/3}
  .detail-main-photo{height:auto!important;min-height:0!important;aspect-ratio:4/3}
}

/* ===== Липкая шапка: при прокрутке сворачивается в компактную ===== */
.header{position:sticky;top:0;z-index:50;transition:box-shadow .2s}
.header .header-inner{transition:min-height .2s,gap .2s}
.header .brand-main,.header .catalog-button,.header .header-search,.header .menu-toggle{transition:all .2s}
.header.is-compact{box-shadow:0 6px 20px #0000001f}
.header.is-compact .header-inner{min-height:60px}
.header.is-compact .brand-main{font-size:22px}
.header.is-compact .brand small{display:none}
.header.is-compact .catalog-button{height:42px;padding:0 16px;font-size:13px}
.header.is-compact .header-search{height:42px}
.header.is-compact .header-search > button{width:46px;font-size:22px}
@media (max-width:800px){
  .header.is-compact .header-inner{min-height:54px}
  .header.is-compact .brand-main{font-size:19px}
  .header.is-compact .menu-toggle{width:40px;height:40px}
}

/* Поколение в «Быстром подборе»: подпись «необязательно», на телефоне поле и поиск — на всю ширину */
.optional-label{font-weight:500;color:#999;font-size:10px}
#generation-filter:disabled{opacity:.6;cursor:not-allowed}
@media (max-width:600px){
  .catalog-aside label:nth-of-type(3){grid-column:auto}
  .catalog-aside label:has(#generation-filter),.catalog-aside label:has(#code-filter){grid-column:1/-1}
}
.catalog-aside label:has(#generation-filter) .optional-label{display:inline;margin-left:4px}
.catalog-aside label:has(#generation-filter){display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:0}
.catalog-aside label:has(#generation-filter) select{grid-column:1/-1}

/* Логотип вместо текстового «АЛЬПИНА»: ширина задаёт размер, высота — по пропорциям картинки */
.brand-logo{display:block;width:100%;max-width:200px;height:auto}
.footer-top .brand-logo{max-width:220px}
.header .brand-logo{transition:max-width .2s}
.header.is-compact .brand-logo{max-width:160px}
@media (max-width:600px){
  .header .brand-logo{max-width:150px}
  .header.is-compact .brand-logo{max-width:130px}
}
/* «КОНТРАКТНЫЕ ЗАПЧАСТИ» — точно под словом «АЛЬПИНА»: овалы занимают 27,6% ширины логотипа, слово — следующие 69,6% */
.brand small{box-sizing:border-box;margin-left:55px;width:139px;text-align:justify;text-align-last:justify;white-space:nowrap;letter-spacing:.165em;font-size:8px;margin-top:5px}
.footer-top .brand small{margin-left:61px;width:153px;font-size:9px;letter-spacing:.155em}
@media (max-width:600px){
  .header .brand small{margin-left:41px;width:104px;font-size:6px;letter-spacing:.175em}
}
