/* ==========================================================================
   Catalog, Brands and Prices Styles for PEREKUP24.RU
   ========================================================================== */

/* Breadcrumbs */
.catalog-breadcrumbs-bar {
    background: #111113;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    font-size: 14px;
}
.catalog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #888;
}
.catalog-breadcrumbs a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}
.catalog-breadcrumbs a:hover {
    color: var(--color-primary, #d82229);
}
.catalog-breadcrumbs .bc-sep {
    color: #555;
}
.catalog-breadcrumbs .bc-current {
    color: var(--color-primary, #d82229);
    font-weight: 600;
}

/* Brand & Service Hero */
.brand-hero-section,
.service-hero-section,
.price-header-section {
    padding: 60px 0 50px;
    background: linear-gradient(180deg, #18181c 0%, #101012 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}
.brand-tag,
.service-badge-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(216, 34, 41, 0.15);
    border: 1px solid rgba(216, 34, 41, 0.4);
    border-radius: 20px;
    color: #ff4d54;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}
.brand-title,
.service-page-title,
.price-page-title {
    font-family: var(--font-heading, 'Outfit', 'Montserrat', sans-serif);
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.brand-subtitle,
.service-page-subtitle,
.price-page-desc {
    font-size: 17px;
    line-height: 1.6;
    color: #b0b0b8;
    max-width: 900px;
    margin-bottom: 35px;
}

/* Hero Feature Cards */
.brand-hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 35px;
}
.bh-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s, border-color 0.2s;
}
.bh-feature-item:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 34, 41, 0.4);
}
.bh-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.bh-feature-item strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}
.bh-feature-item p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

/* Service Stats Box */
.service-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 35px;
}
.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.stat-val {
    display: block;
    font-family: var(--font-heading, sans-serif);
    font-size: 26px;
    font-weight: 800;
    color: #ff4d54;
    margin-bottom: 4px;
}
.stat-lbl {
    font-size: 13px;
    color: #999;
}

/* Section Headings */
.section-heading {
    font-family: var(--font-heading, 'Outfit', 'Montserrat', sans-serif);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-subtext {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

/* Models Grid */
.brand-models-section {
    padding: 60px 0;
    background: #141416;
}
.brand-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}
.brand-model-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e1e24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 10px;
    color: #eee;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.brand-model-pill:hover {
    background: #25252d;
    border-color: var(--color-primary, #d82229);
    transform: translateY(-2px);
    color: #fff;
}
.model-car-icon {
    font-size: 16px;
}

/* Features Grid */
.brand-features-section,
.service-process-section {
    padding: 70px 0;
    background: #101012;
}
.brand-features-grid,
.service-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.bf-card,
.step-card {
    background: #19191f;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 30px 24px;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}
.bf-card:hover,
.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 34, 41, 0.4);
}
.bf-num,
.step-number {
    font-family: var(--font-heading, sans-serif);
    font-size: 32px;
    font-weight: 900;
    color: rgba(216, 34, 41, 0.35);
    margin-bottom: 12px;
}
.bf-card h3,
.step-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.bf-card p,
.step-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #a0a0a8;
    margin: 0;
}

/* Price Tables */
.brand-prices-section,
.service-details-prices,
.price-tables-section {
    padding: 70px 0;
    background: #141418;
}
.brand-price-category,
.price-category-card {
    background: #1a1a20;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 30px;
}
.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}
.cat-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.cat-badge {
    background: rgba(216, 34, 41, 0.15);
    border: 1px solid rgba(216, 34, 41, 0.4);
    color: #ff4d54;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
}
.cat-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}
.brand-table-responsive,
.table-responsive {
    overflow-x: auto;
}
.brand-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}
.brand-price-table th {
    background: #22222a;
    color: #aaa;
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}
.brand-price-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
    vertical-align: middle;
}
.brand-price-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.brand-price-table .col-name {
    color: #fff;
    width: 55%;
}
.brand-price-table .car-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: #888;
}
.brand-price-table .col-time {
    color: #999;
    white-space: nowrap;
}
.brand-price-table .col-price {
    font-family: var(--font-heading, sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #ff4d54;
    white-space: nowrap;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    background: var(--color-primary, #d82229);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-sm:hover {
    background: #b51a20;
    color: #fff;
}

/* Live Search Box */
.price-live-search-box {
    margin-top: 25px;
    max-width: 750px;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 18px;
    font-size: 18px;
    color: #777;
    pointer-events: none;
}
.price-search-input {
    width: 100%;
    padding: 16px 45px 16px 50px;
    background: #202026;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.price-search-input:focus {
    border-color: var(--color-primary, #d82229);
    box-shadow: 0 0 0 3px rgba(216, 34, 41, 0.2);
}
.search-clear-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.search-hint-note {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}
.price-results-count {
    margin-bottom: 20px;
    padding: 10px 16px;
    background: rgba(216, 34, 41, 0.1);
    border-radius: 8px;
    color: #ff787e;
    font-size: 14px;
}

/* Lead Form Section */
.brand-lead-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1b1314 0%, #151518 100%);
    border-top: 1px solid rgba(216, 34, 41, 0.2);
    border-bottom: 1px solid rgba(216, 34, 41, 0.2);
}
.brand-lead-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.lead-info h2 {
    font-family: var(--font-heading, sans-serif);
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.lead-info p {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 24px;
}
.lead-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lead-bullets li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: #aaa;
    margin-bottom: 12px;
}
.lead-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff4d54;
    font-weight: bold;
}
.lead-form-wrapper {
    background: #1e1e24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.brand-custom-form .form-group {
    margin-bottom: 18px;
}
.brand-custom-form label {
    display: block;
    font-size: 13px;
    color: #bbb;
    margin-bottom: 6px;
    font-weight: 600;
}
.brand-custom-form .form-control {
    width: 100%;
    padding: 12px 16px;
    background: #272730;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}
.brand-custom-form .form-control:focus {
    border-color: var(--color-primary, #d82229);
}
.brand-custom-form .form-control-file {
    color: #888;
    font-size: 13px;
}
.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-policy {
    font-size: 11px;
    color: #777;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
}
.alert-success {
    margin-top: 15px;
    padding: 12px;
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    border-radius: 8px;
    color: #2ecc71;
    font-size: 14px;
}
.alert-danger {
    margin-top: 15px;
    padding: 12px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    border-radius: 8px;
    color: #e74c3c;
    font-size: 14px;
}

/* Alphabetical Brands Grid */
.brands-alphabet-section {
    padding: 70px 0;
    background: #111114;
}
.brands-alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.brand-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #191920;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}
.brand-link-item:hover {
    background: #23232c;
    border-color: var(--color-primary, #d82229);
    transform: translateY(-2px);
}
.brand-link-item.active {
    background: rgba(216, 34, 41, 0.15);
    border-color: var(--color-primary, #d82229);
}
.brand-link-item .bl-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.brand-link-item .bl-ru {
    font-size: 11px;
    color: #888;
}

/* Front-Page Brands Rubricator Component */
.fp-brands-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 25px;
}
.fp-alphabet-btn {
    padding: 6px 12px;
    background: #1e1e24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #aaa;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.fp-alphabet-btn:hover,
.fp-alphabet-btn.active {
    background: var(--color-primary, #d82229);
    border-color: var(--color-primary, #d82229);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .brand-lead-box {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}
@media (max-width: 768px) {
    .brand-hero-section,
    .service-hero-section,
    .price-header-section {
        padding: 40px 0 30px;
    }
    .brand-price-category,
    .price-category-card {
        padding: 18px 14px;
    }
    .brand-price-table th,
    .brand-price-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    .brands-alphabet-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
}


/* Clickable Service Links in Tables */
.price-service-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s, text-decoration 0.15s;
    display: inline-block;
}
.price-service-link:hover {
    color: #ff4d54;
    text-decoration: underline;
}

/* Notice Banner */
.price-notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 180, 0, 0.1);
    border: 1px solid rgba(255, 180, 0, 0.35);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 25px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}
.price-notice-banner .notice-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: -2px;
}
.price-notice-banner strong {
    color: #ffb400;
}

/* Price Type Badge */
.col-type {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}
.cat-note-badge {
    background: rgba(255, 180, 0, 0.15);
    border: 1px solid rgba(255, 180, 0, 0.3);
    color: #ffb400;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
}
