/* ART-GSM — чипсы + бейдж качества + совместимые модели + варианты v20260513 */

/* ── Chips bar ─────────────────────────────────────────────────── */
.agspec__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 6px;
    padding: 0;
}

.agspec__chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.10);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #2563eb;
    white-space: nowrap;
}

/* ── Quality badge colors ──────────────────────────────────────── */
.agspec__chip--original  { background: rgba(34, 139, 69, 0.12);  color: #1a7a3a; }
.agspec__chip--premium   { background: rgba(124, 58, 237, 0.12); color: #6d28d9; }
.agspec__chip--standart  { background: rgba(37, 99, 235, 0.10);  color: #2563eb; }
.agspec__chip--servisnyy { background: rgba(234, 88, 12, 0.12);  color: #c2410c; }
.agspec__chip--snyatyy   { background: rgba(100, 116, 139, 0.12);color: #475569; }

/* ── Compatible models bar ─────────────────────────────────────── */
.agspec__models {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 0;
    margin-top: 4px;
    margin-bottom: 10px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
}

.agspec__models-label {
    color: #666;
    font-weight: 500;
    margin-right: 6px;
    white-space: nowrap;
}

.agspec__models-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
}

.agspec__model-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.agspec__model-link::after { content: ','; color: #ccc; margin-left: 1px; }
.agspec__models-list a:last-of-type::after,
.agspec__models-list a.last-before-toggle::after { content: ''; }

.agspec__model-link:hover { text-decoration: underline; }

.agspec__models-toggle,
.agspec__variants-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 11px;
    font-family: inherit;
    padding: 0 6px;
    white-space: nowrap;
}
.agspec__models-toggle:hover,
.agspec__variants-toggle:hover { color: #2563eb; }

/* ── Variant pills (KACHESTVO / KACHESTVO_DISPLEYA siblings) ──── */
.agspec__variants {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 10px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
}

.agspec__variants-label {
    color: #666;
    font-weight: 500;
    margin-right: 4px;
    white-space: nowrap;
}

.agspec__variants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
}

.agspec__variant {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    box-sizing: border-box;
    border-radius: 999px;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.agspec__variant:hover {
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
}

.agspec__variant:focus-visible,
.agspec__model-link:focus-visible,
.agspec__models-toggle:focus-visible,
.agspec__variants-toggle:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 999px;
}

.agspec__variant--active {
    background: #2563eb;
    color: #fff;
    cursor: default;
}

.agspec__variant--active:hover {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 480px) {
    .agspec__chip { font-size: 12px; padding: 3px 9px; }
    .agspec__models { font-size: 11px; }
    .agspec__variants { font-size: 12px; }
    .agspec__variant { padding: 3px 10px; }
}
