.podbor-page {
    padding-bottom: 3rem;
}

.podbor-intro h1 {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
}

.podbor-intro p {
    color: #49566c;
    max-width: 46rem;
}

.podbor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 1.25rem;
    align-items: start;
    margin-top: 1.25rem;
}

.podbor-params {
    display: grid;
    gap: 0.9rem;
}

.podbor-card-block {
    background: #fff;
    border: 1px solid #dce1e7;
    border-radius: 14px;
    padding: 1rem 1.05rem 1.1rem;
}

.podbor-card-block__head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.podbor-card-block__head h2 {
    font-size: 1.05rem;
    margin: 0 0 0.2rem;
}

.podbor-card-block__head p,
.podbor-muted-hint,
.podbor-label {
    margin: 0;
    color: #5b6778;
    font-size: 0.9rem;
}

.podbor-label {
    font-weight: 600;
    color: #243044;
    margin: 0.75rem 0 0.4rem;
}

.podbor-num {
    flex: 0 0 1.7rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: #206bc4;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.podbor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.podbor-chip,
.podbor-check,
.podbor-number {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.45rem 0.7rem;
    border: 1px solid #d5dbe3;
    border-radius: 999px;
    background: #f6f8fb;
    color: #243044;
    cursor: pointer;
}

.podbor-chip:has(input:checked),
.podbor-chip.is-selected,
.podbor-check:has(input:checked),
.podbor-check.is-selected {
    background: #206bc4;
    border-color: #206bc4;
    color: #fff;
}

.podbor-chip input,
.podbor-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.podbor-number {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 12px;
    cursor: default;
    width: 100%;
    max-width: 18rem;
}

.podbor-number input {
    width: 100%;
    max-width: 10rem;
    border: 1px solid #c8d0da;
    border-radius: 8px;
    padding: 0.3rem 0.45rem;
}

.podbor-chip:focus-within,
.podbor-check:focus-within,
.podbor-number:focus-within,
.podbor-result a:focus-visible,
.podbor-more:focus-visible {
    outline: 2px solid #206bc4;
    outline-offset: 2px;
}

.podbor-sub {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e4e8ee;
}

.podbor-sub.is-muted {
    opacity: 0.62;
}

.podbor-result {
    position: sticky;
    top: 1rem;
    background: #fff;
    border: 1px solid #dce1e7;
    border-radius: 14px;
    padding: 1rem;
    min-height: 16rem;
}

.podbor-summary {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    color: #5b6778;
    font-size: 0.88rem;
}

.podbor-summary li {
    margin: 0.2rem 0;
}

.podbor-status {
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    margin-bottom: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.podbor-status__label {
    display: block;
    font-size: 1.05rem;
    margin: 0;
}

.podbor-status__hint,
.podbor-empty {
    display: block;
    font-weight: 400;
    margin: 0.35rem 0 0;
}

.podbor-status[data-status="idle"],
.podbor-status--idle { background: #f6f8fb; color: #3a4859; border-color: #c8d0da; }
.podbor-status[data-status="matched"] { background: #e6f6ea; color: #146c2e; border-color: #146c2e; }
.podbor-status[data-status="conditional"] { background: #fff4e5; color: #9a4d00; border-color: #9a4d00; }
.podbor-status[data-status="incomplete"] { background: #e8f2fb; color: #164e87; border-color: #164e87; }
.podbor-status[data-status="specialist_required"] { background: #f3e8f8; color: #6d2a86; border-color: #6d2a86; }
.podbor-status[data-status="no_match"],
.podbor-status[data-status="error"] { background: #eef1f4; color: #3a4859; border-color: #3a4859; }

.podbor-product {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.85rem;
    border: 1px solid #e4e8ee;
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 0.75rem;
}

.podbor-card__photo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #f6f8fb;
    border-radius: 8px;
}

.podbor-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    margin-bottom: 0.3rem;
}

.podbor-card__badge.is-matched { background: #e6f6ea; color: #146c2e; }
.podbor-card__badge.is-conditional { background: #fff4e5; color: #9a4d00; }
.podbor-card__badge.is-specialist { background: #f3e8f8; color: #6d2a86; }

.podbor-product h2,
.podbor-result h2,
.podbor-result h3 {
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
}

.podbor-params-list,
.podbor-acc {
    margin: 0.55rem 0 0;
    padding: 0;
    list-style: none;
}

.podbor-acc {
    border-top: 1px solid #eef1f4;
    padding-top: 0.55rem;
}

.podbor-acc em {
    font-style: normal;
    color: #9a4d00;
}

.podbor-more {
    margin: 0.3rem 0 0.8rem;
}

.podbor-diag {
    color: #8a97ab;
    font-size: 0.8rem;
    margin-top: 1.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 900px) {
    .podbor-layout {
        grid-template-columns: 1fr;
    }

    .podbor-result {
        position: static;
        order: -1;
    }

    .podbor-product {
        grid-template-columns: 1fr;
    }

    .podbor-card__photo {
        width: 100%;
        height: 160px;
    }
}
