.brand-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.brand-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    margin-top: 40px;
    color: var(--muted, #5b6b7f);
    font-size: 0.875rem;
}
.brand-breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}
.brand-breadcrumbs a:hover {
    text-decoration: underline;
}

/* ---------- hero ---------- */
.brand-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border, #dde6ee);
    border-radius: var(--radius, 20px);
    background: var(--surface, #fff);
}
.brand-hero-compact {
    grid-template-columns: 1fr;
    padding: 22px 28px;
}
.brand-logo {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border: 1px solid var(--border, #dde6ee);
    border-radius: 20px;
    background: var(--surface2, #eef4f8);
    color: var(--text, #0f1b2d);
    font-size: 2rem;
    font-weight: 800;
}
.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
}
.brand-eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.brand-title {
    margin: 0;
    color: var(--text, #0f1b2d);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.brand-description {
    margin: 14px 0 0;
    color: var(--muted, #5b6b7f);
    line-height: 1.75;
}
.brand-description a {
    color: var(--primary);
}

.brand-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
}
.brand-facts div {
    padding: 9px 14px;
    border: 1px solid var(--border, #dde6ee);
    border-radius: 12px;
    font-size: 0.875rem;
}
.brand-facts dt {
    color: var(--muted, #5b6b7f);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.brand-facts dd {
    margin: 2px 0 0;
    color: var(--text, #0f1b2d);
    font-weight: 600;
}

/* ---------- generic content sections ---------- */
.brand-section {
    margin-top: 48px;
}
.brand-section h2,
.brand-models-header h2 {
    margin: 0 0 18px;
    color: var(--text, #0f1b2d);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}
.brand-section h3 {
    margin: 0 0 8px;
    color: var(--text, #0f1b2d);
    font-size: 1.05rem;
}
.brand-section p,
.brand-section li {
    color: var(--muted, #5b6b7f);
    line-height: 1.7;
}
.brand-lead {
    margin: 0 0 20px;
    font-size: 1.02rem;
}

/* highlights */
.brand-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.brand-highlight,
.brand-series-card,
.brand-proscons > div {
    padding: 22px;
    border: 1px solid var(--border, #dde6ee);
    border-radius: var(--radius, 20px);
    background: var(--surface, #fff);
}
.brand-highlight ol {
    margin: 0;
    padding-left: 20px;
}
.brand-highlight li {
    padding: 4px 0;
}
.brand-highlight li a,
.brand-series-card li a,
.brand-related a {
    color: var(--text, #0f1b2d);
    text-decoration: none;
    font-weight: 600;
}
.brand-highlight li a:hover,
.brand-series-card li a:hover,
.brand-related a:hover {
    color: var(--primary);
}
.brand-highlight li span {
    margin-left: 6px;
    color: var(--muted, #5b6b7f);
    font-size: 0.85rem;
}

/* series */
.brand-series-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.brand-series-card p {
    margin: 0 0 12px;
}
.brand-series-card ul {
    margin: 0;
    padding-left: 18px;
}
.brand-series-count {
    margin-left: 6px;
    color: var(--muted, #5b6b7f);
    font-size: 0.8rem;
    font-weight: 500;
}

/* pros / cons */
.brand-proscons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.brand-proscons ul {
    margin: 0;
    padding-left: 20px;
}

/* faq */
.brand-faq-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border, #dde6ee);
}
.brand-faq-item:last-child {
    border-bottom: 0;
}
.brand-faq-item p {
    margin: 0;
}

/* related brands */
.brand-related {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.brand-related a {
    display: inline-flex;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--border, #dde6ee);
    border-radius: 999px;
    background: var(--surface, #fff);
    font-size: 0.9rem;
}
.brand-related span {
    color: var(--muted, #5b6b7f);
    font-weight: 400;
}
.brand-section a:not(.brand-phone-link) {
    color: var(--primary);
}
.brand-related a {
    color: var(--text, #0f1b2d);
}

.brand-meta p {
    font-size: 0.85rem;
}

/* ---------- models grid ---------- */
.brand-models {
    margin-top: 48px;
}
.brand-models-header {
    margin-bottom: 18px;
}
.brand-models-header p {
    margin: 0;
    color: var(--muted, #5b6b7f);
}

.brand-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px;
    margin-bottom: 24px;
}
.brand-controls[hidden] {
    display: none;
}
.brand-controls input,
.brand-controls select {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--border, #dde6ee);
    border-radius: 12px;
    background: var(--surface, #fff);
    color: var(--text, #0f1b2d);
    font: inherit;
}

.brand-phone-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.brand-phone-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--border, #dde6ee);
    border-radius: var(--radius, 20px);
    background: var(--surface, #fff);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}
.brand-phone-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgb(16 24 40 / 8%);
}
.brand-phone-image {
    display: grid;
    place-items: center;
    height: 210px;
    padding: 18px;
}
.brand-phone-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.image-placeholder {
    color: var(--muted, #5b6b7f);
    font-size: 0.875rem;
}
.brand-phone-info {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.brand-phone-info h3 {
    margin: 0;
    color: var(--text, #0f1b2d);
    font-size: 1rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.brand-phone-info h3 a {
    color: inherit;
    text-decoration: none;
}
.brand-phone-info h3 a:hover {
    color: var(--primary);
}
.brand-phone-tagline {
    margin: 8px 0 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    color: var(--muted, #5b6b7f);
    font-size: 0.875rem;
    line-height: 1.5;
}
.brand-phone-date {
    margin: 0 0 5px;
    color: var(--muted, #5b6b7f);
    font-size: 0.8rem;
}
.brand-phone-price {
    margin: 0 0 10px;
    color: var(--price, #b45309);
    font-size: 0.875rem;
    font-weight: 700;
}
.brand-phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin-top: auto;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.brand-phone-link:hover {
    background: var(--primary-hover);
}

.brand-empty {
    grid-column: 1 / -1;
    padding: 42px 20px;
    border: 1px dashed var(--border, #dde6ee);
    border-radius: var(--radius, 20px);
    color: var(--muted, #5b6b7f);
    text-align: center;
}
.brand-empty h3 {
    margin: 0 0 8px;
    color: var(--text, #0f1b2d);
}

/* ---------- pagination (real links) ---------- */
.brand-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}
.brand-pagination a,
.brand-pagination span,
.brand-more {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--border, #dde6ee);
    border-radius: 10px;
    background: var(--surface, #fff);
    color: var(--text, #0f1b2d);
    font: inherit;
    text-decoration: none;
}
.brand-pagination a:hover,
.brand-more:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.brand-pagination .brand-page-current {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
}
.brand-pagination .is-disabled {
    opacity: 0.45;
}
.brand-pagination .brand-page-gap {
    border: 0;
    background: transparent;
    min-width: 0;
    padding: 8px 2px;
}
.brand-more {
    cursor: pointer;
}
.brand-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .brand-phone-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .brand-page {
        width: min(100% - 24px, 1180px);
        padding-top: 20px;
    }
    .brand-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }
    .brand-logo {
        width: 82px;
        height: 82px;
        border-radius: 16px;
        font-size: 1.5rem;
    }
    .brand-phone-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .brand-phone-card {
        padding: 14px;
    }
    .brand-phone-image {
        height: 160px;
        padding: 10px;
    }
    .brand-controls,
    .brand-highlights,
    .brand-series-grid,
    .brand-proscons {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .brand-phone-grid {
        grid-template-columns: 1fr;
    }
    .brand-phone-image img {
        width: 65%;
    }
}
