/* SMT temporary restoration, November 2026. Replace fallbacks when original images are recovered. */
section.brands .swiper-slide .car_silka {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none;
}
section.brands .swiper-slide .smt-restoration-brand-title {
    display: block;
    max-width: 100%;
    color: #367d14;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
section.brands .swiper-slide .car_img {
    width: auto;
    height: auto;
    max-width: 142px;
    max-height: 68px;
    object-fit: contain;
}
/* Generic SMT logo is a temporary illustration only for types without photos. */
section.category .category_list .item .image img[src$="/img/logo.png"],
section.popular_works .image img[src$="/img/logo.png"],
section.remont .image img[src$="/img/logo.png"] {
    max-width: 70%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Stage 3: stable home brand grid. This is independent of legacy Swiper. */
section.brands.smt-brands-home {
    padding: 32px 0 46px;
    overflow: visible;
}
section.smt-brands-home .wrapper {
    max-width: 1020px;
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
section.smt-brands-home .smt-brand-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 22px auto 0;
    box-sizing: border-box;
}
section.smt-brands-home .smt-brand-card {
    min-width: 0;
    min-height: 100px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #e0e6dd;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}
section.smt-brands-home .smt-brand-card:hover,
section.smt-brands-home .smt-brand-card:focus-visible {
    border-color: #45810f;
    text-decoration: none;
}
section.smt-brands-home .smt-brand-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}
section.smt-brands-home .smt-brand-name {
    display: block;
    color: #367d14;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
section.smt-brands-home .smt-brand-more {
    display: table;
    margin: 18px 0 0 auto;
    color: #367d14;
    font-size: 14px;
    font-weight: 600;
}
@media (max-width: 900px) {
    section.smt-brands-home .smt-brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    section.smt-brands-home .smt-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    section.smt-brands-home .smt-brand-card { min-height: 82px; }
}
