/* Studio Profile V2 -- Services Pill Grid
 * Redesigned (2026-03-26)
 * REPLACES previous accordion styles (sp-service, sp-service__header, etc.)
 */

 /*
 * Container: 1-column mobile, 2-column tablet+, max-width constrained
 * ---------------------------------------------------------------- */

.sp-services__pills {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    max-width: var(--sp-text-section-max);
}

 /*
 * Individual pill-card
 * ---------------------------------------------------------------- */

.sp-pill-service {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full, 999px);
    transition: border-color var(--transition-fast), background var(--transition-fast);
    min-height: 44px;
}

.sp-pill-service:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-hover);
}

 /*
 * Icon
 * ---------------------------------------------------------------- */

.sp-pill-service__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--color-text-muted);
}

.sp-pill-service__icon svg {
    width: 18px;
    height: 18px;
}

 /*
 * Body (name + optional description)
 * ---------------------------------------------------------------- */

.sp-pill-service__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sp-pill-service__name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sp-pill-service__desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

 /*
 * Price (right-aligned)
 * ---------------------------------------------------------------- */

.sp-pill-service__price {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--color-brand-accent);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* "Уточняйте" variant — subdued, not gold */
.sp-pill-service__price--ask {
    color: var(--color-text-muted);
    font-weight: 400;
}

 /*
 * Responsive
 * ---------------------------------------------------------------- */

@media (min-width: 480px) {
    .sp-services__pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .sp-services__pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    /* When service has no description, pill stays compact */
    .sp-pill-service {
        min-height: 44px;
    }
}

@media (min-width: 1024px) {
    .sp-services__pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* Keep 2 columns — 3 is too many for short service names */
    }
}

 /*
 * Accessibility
 * ---------------------------------------------------------------- */

.sp-pill-service:focus-within {
    outline: 2px solid var(--color-brand-accent);
    outline-offset: 2px;
}
