/* Подбор лучших товаров; общая палитра каталога и его тёмной темы. */
.thebest-page { display: flex; flex-direction: column; min-height: 100vh; height: auto; }
.thebest-page > .main { flex: 1 0 auto; width: 100%; min-height: 0; display: flow-root; }
.thebest-page .cont { float: none; }
.thebest-page > .footer { flex: 0 0 auto; clear: both; width: 100%; box-sizing: border-box; margin: 0 auto; }
.thebest-page .thebest-main { margin: 18px 24px 0; float: none; width: auto; max-width: 1250px; }
.thebest-main { font-size: 15px; line-height: 1.5; }
.thebest-main a { color: var(--catalog-blue); }
.thebest-intro { margin: 24px 0; max-width: 850px; }
.thebest-eyebrow { color: var(--catalog-blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.thebest-intro h1 { margin: 6px 0 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; color: var(--catalog-ink); }
.thebest-main h2 { margin: 0 0 16px; font-size: 21px; color: var(--catalog-ink); }
.thebest-intro p, .thebest-muted, .thebest-main small { color: var(--catalog-muted); }
.thebest-panel { padding: 24px; margin-bottom: 24px; background: var(--catalog-surface); border: 1px solid var(--catalog-line); border-radius: 14px; }
.thebest-step { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 7px; border-radius: 50%; background: var(--catalog-blue-soft); color: var(--catalog-blue); font-size: 15px; }
.thebest-form-row { display: flex; gap: 12px; margin-top: 8px; }
.thebest-main select { font: inherit; border: 1px solid var(--catalog-line); border-radius: 8px; padding: 10px; background: var(--catalog-surface); color: var(--catalog-ink); min-width: 0; }
.thebest-form-row select { flex: 1; width: 100%; }
.thebest-vendor-label { display: block; margin-top: 16px; }
.thebest-filter-error { margin-top: 12px; color: var(--catalog-ink); border-left: 3px solid #c73d35; padding-left: 12px; }
.thebest-main button:disabled { opacity: .55; cursor: not-allowed; }
.thebest-main .thebest-button { background: var(--catalog-blue); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.thebest-main .thebest-button:hover { background: var(--catalog-blue-dark); }
.thebest-main :is(a, button, input, select, summary):focus-visible { outline: 3px solid var(--catalog-blue); outline-offset: 3px; }
.thebest-criteria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.thebest-criterion { display: flex; flex-direction: column; gap: 14px; padding: 17px; background: var(--catalog-soft); border: 1px solid var(--catalog-line); border-radius: 10px; }
.thebest-criterion:has(input:checked) { border-color: var(--catalog-blue); background: var(--catalog-blue-soft); }
.thebest-check { display: flex; align-items: start; gap: 10px; cursor: pointer; font-weight: 600; }
.thebest-check input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--catalog-blue); }
.thebest-coverage { display: block; font-size: 12px; margin-top: 4px; font-weight: 400; }
.thebest-criterion select { margin-top: auto; width: 100%; font-size: 13px; }
.thebest-actions { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.thebest-explanation { margin-top: 22px; color: var(--catalog-muted); font-size: 13px; }
.thebest-explanation summary { color: var(--catalog-blue); cursor: pointer; }
.thebest-explanation p { max-width: 900px; }
#thebest-results { scroll-margin-top: 20px; }
.thebest-card { display: grid; grid-template-columns: 32px 110px minmax(0, 1fr) 150px; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--catalog-line); border-radius: 12px; background: var(--catalog-surface); margin-bottom: 12px; }
.thebest-rank { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--catalog-blue-soft); color: var(--catalog-blue); font-weight: 700; }
.thebest-photo { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 8px; background: #fff; }
.thebest-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.thebest-photo span { color: #657086; font-size: 12px; }
.thebest-product h3 { margin: 0 0 12px; font-size: 16px; line-height: 1.4; }
.thebest-values { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-size: 12px; }
.thebest-values dt { color: var(--catalog-muted); }
.thebest-values dd { margin: 0; font-weight: 600; }
.thebest-product-summary { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.thebest-price { font-size: 21px; white-space: nowrap; }
.thebest-score { color: var(--catalog-green); font-weight: 700; }
.thebest-product-summary small { font-size: 11px; }
.thebest-product-summary a { margin-top: 6px; font-size: 13px; }
@media (max-width: 760px) {
 .thebest-page .thebest-main { margin: 16px 12px 0; }
 .thebest-panel { padding: 18px; }
 .thebest-criteria { grid-template-columns: 1fr; }
 .thebest-form-row { flex-direction: column; }
 .thebest-card { grid-template-columns: 24px 80px minmax(0, 1fr); gap: 12px; padding: 14px; }
 .thebest-photo { width: 80px; height: 80px; }
 .thebest-rank { width: 24px; height: 24px; font-size: 12px; }
 .thebest-product-summary { grid-column: 2 / 4; align-items: flex-start; border-top: 1px solid var(--catalog-line); padding-top: 10px; }
 .thebest-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
}
