<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Title");
?>.brands_custom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: 0.2s;
}

.brand-row:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.brand-img {
    width: 250px;
    flex-shrink: 0;
    text-align: center;
}

.brand-img img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.brand-info {
    flex: 1;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 8px;

    font-weight: bold;
    font-size: 18px;
    margin-bottom: 6px;
}

.brand-flag img {
    width: 18px;
    height: 14px;
    object-fit: contain;
    display: block;
}

.brand-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.brands-page-bottom {
   margin-top: 1em;
}

/* ВАЖНО: кнопка как в шаблоне — без кастомного фона/цвета */
.brand-link a.btn {
    display: inline-flex;
    align-items: center;
}

.brands-page-bottom .brands-page-text p {
       margin-bottom: auto;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .brand-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .brand-img {
        width: 100%;
        text-align: left;
    }

    .brand-img img {
        max-height: 60px;
    }

    .brand-info {
        width: 100%;
    }

    .brand-desc {
        font-size: 13px;
    }

    .brand-link {
        width: 100%;
    }

    .brand-link a.btn {
        width: 100%;
    }
}<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>