.product-photo-real,.arrival-photo-real{background:#f1f1f1!important;display:grid;place-items:center;overflow:hidden}.product-photo-real img,.arrival-photo-real img{width:100%;height:100%;object-fit:contain;background:#fff}.photo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#929292;text-align:center;padding:20px}.photo-empty span{font-size:37px;line-height:1;color:#b7b7b7}.photo-empty b{font-size:12px;color:#666}.photo-empty small{font-size:10px}.card-fitment{font-size:11px;color:#555;margin:15px 0 0;line-height:1.5}.card-fitment small{color:#888}.product-dialog{width:min(1180px,calc(100% - 28px));max-height:92vh}.detail-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:0;border-bottom:1px solid #e9e9e9}.detail-gallery{background:#f5f5f5;padding:30px}.detail-main-photo{background:#fff;border:1px solid #e5e5e5;border-radius:8px;height:410px;display:grid;place-items:center;overflow:hidden}.detail-main-photo img{width:100%;height:100%;object-fit:contain}.detail-no-photo{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:25px;color:#777;gap:10px}.detail-no-photo>span{font-size:54px;line-height:1;color:#bbb}.detail-no-photo>b{font-size:15px;color:#333}.detail-no-photo>small{font-size:11px;line-height:1.6;max-width:330px}.detail-thumbs{display:flex;gap:8px;margin-top:11px;overflow:auto}.detail-thumbs button{border:2px solid #ddd;width:75px;height:67px;border-radius:5px;padding:2px;flex:none;background:#fff}.detail-thumbs button.active{border-color:var(--red)}.detail-thumbs img{width:100%;height:100%;object-fit:contain}.detail-photo-types{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.detail-photo-types span{font-size:10px;padding:7px 9px;background:#e8e8e8;border-radius:4px;color:#777}.detail-gallery>p{font-size:10px;color:#888;line-height:1.5;margin:15px 0 0}.detail-summary{padding:38px 43px 34px}.detail-summary h2{font-size:clamp(26px,2.5vw,36px);letter-spacing:-.05em;line-height:1.2;margin:11px 0 15px}.detail-code{display:flex;gap:7px 15px;flex-wrap:wrap;font-size:11px;color:#888;margin-bottom:25px}.detail-code b{color:#333}.detail-code span{margin-left:auto}.detail-key{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.detail-key div{background:#f5f5f5;border-radius:6px;padding:13px 10px}.detail-key span{display:block;font-size:10px;color:#888;margin-bottom:6px}.detail-key strong{font-size:14px}.detail-caution{font-size:10px;color:#999;line-height:1.5;margin:12px 0 20px}.detail-price{border-top:1px solid #eee;padding-top:20px;display:flex;flex-direction:column;gap:4px}.detail-price strong{font-size:34px;letter-spacing:-.05em}.detail-price span{font-size:10px;color:#999}.detail-summary .red-button{width:100%;margin-top:18px;text-align:center}.detail-service{color:#777;font-size:11px;text-align:center;margin-top:16px}.detail-sections{padding:31px 42px 40px;display:grid;grid-template-columns:1fr 1fr;gap:36px}.detail-sections h3{font-size:20px;letter-spacing:-.04em;margin:9px 0 10px}.detail-sections p{font-size:11px;color:#777;line-height:1.6;margin:0 0 17px}.fitment-list{display:flex;flex-direction:column;gap:8px}.fitment-list>div{border:1px solid #e6e6e6;border-radius:6px;padding:12px 14px;display:grid;grid-template-columns:1fr auto;gap:5px}.fitment-list strong{font-size:12px}.fitment-list span{color:#777;font-size:11px;grid-column:1/-1}.fitment-list small{color:#b56413;font-size:10px;grid-column:1/-1}.detail-facts>div{display:grid;grid-template-columns:130px 1fr;gap:10px;border-top:1px solid #e9e9e9;padding:12px 0;font-size:11px;line-height:1.5}.detail-facts>div span{color:#888}.detail-facts>div b{font-weight:600;color:#424242}.dialog-close{box-shadow:0 2px 12px #0002}@media(max-width:850px){.detail-layout{grid-template-columns:1fr}.detail-gallery{padding:22px}.detail-main-photo{height:340px}.detail-summary{padding:27px}.detail-sections{grid-template-columns:1fr;padding:24px 27px;gap:25px}}@media(max-width:600px){.detail-gallery{padding:14px}.detail-main-photo{height:260px}.detail-summary{padding:23px 18px}.detail-key{grid-template-columns:repeat(3,1fr)}.detail-key strong{font-size:11px}.detail-key span{font-size:9px}.detail-sections{padding:22px 18px}.detail-facts>div{grid-template-columns:100px 1fr}.detail-price strong{font-size:29px}}
.detail-request-form[hidden]{display:none}.detail-request-form{display:grid;grid-template-columns:1fr 1fr;gap:11px;padding:18px;margin-top:14px;border:1px solid #e5e5e5;border-radius:8px;background:#fafafa}.detail-request-form label{display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:700;color:#666}.detail-request-form label:nth-child(3),.detail-request-form .consent,.detail-request-form button,.detail-form-note,.detail-form-status{grid-column:1/-1}.detail-request-form input{width:100%;height:43px;border:1px solid #ddd;border-radius:5px;padding:0 11px;background:#fff;outline:0;font-size:12px}.detail-request-form input:focus{border-color:var(--red)}.detail-request-form .red-button{margin:1px 0 0;min-height:44px}.detail-form-note,.detail-form-status{font-size:10px;color:#888;line-height:1.5;margin:0}.detail-form-status{color:#b52722}.detail-success{font-size:13px;line-height:1.6;color:#176b28;font-weight:700;margin:0;grid-column:1/-1}@media(max-width:600px){.detail-request-form{grid-template-columns:1fr}.detail-request-form label{grid-column:1/-1}}

.consent{flex-direction:row!important;align-items:flex-start;gap:9px!important;font-size:11px;font-weight:500;line-height:1.45;color:#666;cursor:pointer}.consent input{flex:none;width:18px!important;height:18px!important;margin:0;padding:0;accent-color:var(--red)}
/* Карточка каталога ведёт на страницу двигателя: ссылка на названии растянута на всю карточку */
.product-card{position:relative}
.card-link{color:inherit}
.card-link::after{content:'';position:absolute;inset:0;z-index:1;border-radius:inherit}
.card-link:focus-visible{outline:none}
.product-card:has(.card-link:focus-visible){outline:3px solid var(--red);outline-offset:2px}
.product-card:hover h3{color:var(--red)}
.card-more{background:var(--red);color:#fff;border-radius:6px;padding:12px 13px;white-space:nowrap;font-size:11px;font-weight:700}
.product-tag-ok{color:#176b28!important;background:#eef8f0!important}
.show-more{grid-column:1/-1;min-height:50px;border:1.5px solid var(--ink);border-radius:8px;background:#fff;font-size:14px;font-weight:700}
.show-more:hover{background:var(--ink);color:#fff}
.arrival-bottom a{color:var(--red);font-size:11px;font-weight:700;white-space:nowrap}
@media(max-width:600px){.card-more{padding:10px 14px;font-size:12px}.arrival-bottom a{display:inline-flex;align-items:center;min-height:44px}}
/* Фото вписывается в рамку целиком: картинка занимает ровно рамку, а не растягивается по своим пропорциям */
.product-photo-real,.arrival-photo-real,.detail-main-photo{position:relative}
.product-photo-real img,.arrival-photo-real img,.detail-main-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;max-width:none}
.product-photo{height:auto;aspect-ratio:4/3}
/* «Быстрый подбор» остаётся на экране, пока листается каталог (на компьютере; на телефоне фильтры над списком) */
@media (min-width:801px){.catalog-aside{position:sticky;top:14px;max-height:calc(100vh - 28px);overflow:auto}}

/* Описание каталога в одну строку на компьютере */
#catalog .section-heading p{max-width:none}
/* Меньше пустого места над разделами главной */
@media (min-width:601px){.section{padding-top:40px;padding-bottom:48px}}

/* Кнопка «Заявка на подбор» в блоке «Нет нужного мотора?» */
.aside-help .aside-help-button{display:flex;width:100%;min-height:44px;margin-top:4px;color:#fff;font-size:13px}

/* Окно заявки (главная и страница двигателя) */
.request-dialog{width:min(560px,calc(100% - 28px));max-height:min(90vh,880px);padding:0;border:0;border-radius:14px;box-shadow:0 24px 80px #0006;overflow:hidden}
.request-dialog[open]{display:flex;flex-direction:column}
.request-dialog::backdrop{background:#000000a6}
.request-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid #eee}
.request-dialog-head h2{margin:0;font-size:22px;letter-spacing:-.04em}
.request-dialog-close{width:40px;height:40px;border:0;border-radius:50%;background:#f2f2f2;font-size:26px;line-height:1;padding:0 0 3px}
.request-dialog-close:hover{background:#e6e6e6}
.request-dialog-body{overflow:auto;padding:16px 22px 22px}
/* Форма главной внутри окна: без своей рамки и заголовка (заголовок — в шапке окна) */
#request-modal .request-form{padding:0;border-radius:0;box-shadow:none;background:none}
#request-modal .request-form>h3{display:none}
@media (max-width:600px){
  .request-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}
}

/* Живой поиск: выпадающий список под строкой поиска (шапка и мобильное меню) */
.has-suggest{position:relative;overflow:visible!important}
.header-search.has-suggest button{border-radius:0 8px 8px 0}
.mobile-menu-search.has-suggest button{border-radius:0 8px 8px 0}
.search-suggest{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:60;max-height:min(70vh,560px);overflow:auto;background:#fff;border:1px solid #e6e6e6;border-radius:12px;box-shadow:0 18px 40px #0000002e;padding:6px}
.suggest-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px;border-radius:8px;color:var(--ink)}
.suggest-item:hover,.suggest-item[aria-selected="true"]{background:#f4f4f4}
.suggest-item img,.suggest-noimg{width:64px;height:48px;object-fit:contain;background:#f5f5f5;border-radius:6px;display:grid;place-items:center;color:#bbb}
.suggest-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.suggest-text b{font-size:13px;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.suggest-text b mark{background:#ffe8e9;color:var(--red);border-radius:2px;padding:0 1px}
.suggest-text small{font-size:11px;color:#888;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.suggest-price{font-size:13px;font-weight:800;white-space:nowrap}
.suggest-all{display:block;width:100%;margin-top:4px;padding:11px;border:0;border-top:1px solid #eee;background:none;color:var(--red);font-size:13px;font-weight:700;text-align:center;border-radius:0 0 8px 8px}
.suggest-all:hover{background:#fff4f4}
.suggest-empty{margin:0;padding:14px 10px;font-size:13px;color:#666;line-height:1.5}
.suggest-empty button{border:0;background:none;padding:0;color:var(--red);font-weight:700;font-size:13px}
@media (max-width:800px){
  .search-suggest{position:static;margin-top:6px;max-height:none;box-shadow:none}
  .suggest-item{grid-template-columns:52px minmax(0,1fr) auto;gap:10px}
  .suggest-item img,.suggest-noimg{width:52px;height:40px}
}
@media (max-width:800px){
  .mobile-menu-search.has-suggest{flex-wrap:wrap;height:auto;background:none;border-radius:0}
  .mobile-menu-search.has-suggest input{height:48px;background:#f4f4f4;border-radius:8px 0 0 8px}
  .mobile-menu-search.has-suggest button{height:48px}
  .mobile-menu-search .search-suggest{flex-basis:100%}
}
/* Кнопки внутри списка не должны наследовать вид красной кнопки поиска из шапки */
.has-suggest .search-suggest button{width:auto;height:auto;min-height:0;flex:none;background:none;color:var(--red);font-size:13px;font-weight:700;border:0;padding:0;border-radius:0}
.has-suggest .search-suggest .suggest-all{display:block;width:100%;margin-top:4px;padding:11px;border-top:1px solid #eee;border-radius:0 0 8px 8px;text-align:center}
.has-suggest .search-suggest .suggest-all:hover{background:#fff4f4}
@media (max-width:800px){.suggest-text b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}

/* ===== Плитки категорий на главной ===== */
.categories-section{padding:40px 0 8px}
.category-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.category-tile{position:relative;display:flex;flex-direction:column;background:#fff;border-radius:12px;overflow:hidden;border:1px solid transparent;transition:border-color .15s,box-shadow .15s}
.category-tile:hover{border-color:var(--red);box-shadow:0 10px 26px #0000001a}
.category-tile-photo{display:block;aspect-ratio:4/3;background:#f3f3f3}
.category-tile-photo img{width:100%;height:100%;object-fit:contain;display:block}
.category-tile-text{display:flex;flex-direction:column;gap:4px;padding:14px 16px 16px}
.category-tile-text b{font-size:17px;letter-spacing:-.03em}
.category-tile-text small{font-size:12px;color:#777;line-height:1.4}
.category-tile-count{margin-top:4px;font-size:12px;font-weight:700;color:var(--red)}
.category-tile-arrow{position:absolute;right:14px;bottom:14px;color:var(--red);font-size:18px}
/* Небольшие разделы — компактной строкой под основными */
.category-tile:not(.category-tile-main){grid-column:span 1;flex-direction:row;align-items:center}
.category-tile:not(.category-tile-main) .category-tile-photo{width:96px;flex:none;aspect-ratio:4/3}
.category-tiles .category-tile:not(.category-tile-main):nth-last-child(2){grid-column:1 / span 2}
.category-tiles .category-tile:not(.category-tile-main):last-child{grid-column:3 / span 3}
@media (max-width:1100px){
  .category-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .category-tiles .category-tile:not(.category-tile-main):nth-last-child(2),.category-tiles .category-tile:not(.category-tile-main):last-child{grid-column:auto}
}
@media (max-width:600px){
  .categories-section{padding-top:28px}
  .category-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .category-tile-text{padding:10px 12px 12px}
  .category-tile-text b{font-size:15px}
  .category-tile-text small{display:none}
  .category-tile-arrow{display:none}
  .category-tile:not(.category-tile-main){grid-column:1 / -1}
  .category-tile:not(.category-tile-main) .category-tile-photo{width:72px}
}
/* Фото плитки всегда в рамке 4:3, вертикальные снимки не растягивают плитку */
.category-tile-photo{position:relative;overflow:hidden}
.category-tile-photo img{position:absolute;inset:0}
@media (max-width:600px){.category-tiles .category-tile:not(.category-tile-main):nth-last-child(2),.category-tiles .category-tile:not(.category-tile-main):last-child{grid-column:1 / -1}}

/* ===== «Наши преимущества» перед подвалом (все страницы) ===== */
.advantages-section{padding:48px 0 56px;background:var(--bg)}
.advantages-head{margin-bottom:18px}
.advantages-head h2{margin:8px 0 0;font-size:clamp(26px,2.8vw,40px);letter-spacing:-.05em}
.advantages-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.advantage-card{background:#fff;border-radius:var(--radius);padding:24px 22px;display:flex;flex-direction:column;gap:10px}
.advantage-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:#fff0f1;color:var(--red)}
.advantage-icon svg{width:30px;height:30px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.advantage-card h3{margin:6px 0 0;font-size:19px;letter-spacing:-.03em}
.advantage-card p{margin:0;font-size:13px;line-height:1.6;color:#666}
@media (max-width:1100px){.advantages-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.advantages-section{padding:32px 0 36px}.advantages-grid{grid-template-columns:1fr;gap:10px}.advantage-card{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:14px;padding:18px 16px}.advantage-card h3{margin:0;flex:1}.advantage-card p{flex-basis:100%}.advantage-icon{width:44px;height:44px}}
