/**
 * Публичные страницы брендов шин
 * /brands/ — список
 * /brands/{slug}/ — страница бренда → модели /product/{slug}/
 */

.brands-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

.brands-page h1 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0 0 8px;
    font-weight: 700;
}

.brands-lead {
    color: #666;
    margin: 0 0 28px;
    line-height: 1.6;
    max-width: 720px;
}

.brands-search {
    margin-bottom: 28px;
}

.brands-search input {
    width: 100%;
    max-width: 480px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
}

.brands-search input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.brands-group-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.brand-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.brand-card-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 12px;
}

.brand-card-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 12px;
}

.brand-card-name {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.brand-card-meta {
    font-size: 13px;
    color: #6b7280;
}

/* Страница бренда */
.brand-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.brand-hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.brand-hero-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.brand-hero-title {
    font-size: 34px;
    margin: 0 0 8px;
    color: #111827;
}

.brand-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.brand-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.brand-hero-actions {
    margin-top: 16px;
}

.brand-hero-actions .btn-catalog {
    display: inline-block;
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.brand-hero-actions .btn-catalog:hover {
    background: #1d4ed8;
}

.brand-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.brand-section h2 {
    font-size: 22px;
    margin: 0 0 16px;
    color: #1f2937;
}

.brand-section p {
    margin: 0 0 12px;
    line-height: 1.75;
    color: #374151;
}

.brand-factories-table {
    width: 100%;
    border-collapse: collapse;
}

.brand-factories-table th,
.brand-factories-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.brand-awards-list {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.7;
    color: #374151;
}

.brand-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.brand-related-card {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.brand-related-card:hover {
    border-color: #2563eb;
}

.brand-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.brand-model-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.brand-model-card:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.1);
}

.brand-model-image {
    aspect-ratio: 1;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

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

.brand-model-body {
    padding: 14px 16px;
}

.brand-model-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #111827;
    line-height: 1.35;
}

.brand-model-meta {
    font-size: 13px;
    color: #6b7280;
}

.brand-model-price {
    margin-top: 8px;
    font-weight: 700;
    color: #111827;
}

.brand-model-rating {
    color: #d97706;
    font-size: 13px;
}

.brands-breadcrumbs {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.brands-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.brands-breadcrumbs a:hover {
    text-decoration: underline;
}

.brands-empty {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
}

@media (max-width: 640px) {
    .brand-hero {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .brand-hero-title {
        font-size: 26px;
    }

    .brands-page h1 {
        font-size: 26px;
    }
}

.brand-faq-item { margin-bottom: 20px; }
.brand-faq-item h3 { font-size: 1.05rem; margin: 0 0 8px; }
.brand-faq-item p { margin: 0; line-height: 1.65; color: #333; }
