/* /prices: table, tools and phone cards. Colours come from landing.css tokens. */
#top{padding:48px 0 40px}
#prices-main{padding:32px 0 58px;border-bottom:0}
/* The table needs room for a wider model column (owner on the v1.9.1 stand);
   prices.css is this page's own, so the whole page takes the width. */
.wrap{max-width:1280px}
#top h1{max-width:none;margin-bottom:14px}
#top .lead{margin-bottom:0}
.pr-status{margin:0;font-size:15px;line-height:1.6;color:var(--tx2)}
/* Owner on the v1.9.1 stand: the search row lines up with the tabs above -
   both rows share one box as wide as the wider of them. */
.pr-bar{display:inline-flex;flex-direction:column;max-width:100%;vertical-align:top}
.pr-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 14px}
.pr-q,.pr-sel{font:500 13px/1.2 var(--font-body);color:var(--tx);background:var(--card);border:1px solid var(--bd);border-radius:calc(var(--radius) - 4px);padding:10px 12px;min-width:0;max-width:100%}
.pr-q{flex:1 1 220px}
.pr-q:focus-visible,.pr-sel:focus-visible,.pr-sortdir:focus-visible,.pr-sort:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.pr-sortbar{display:none;align-items:center;gap:8px}
.pr-sortdir{font:600 14px/1 var(--font-head);color:var(--tx2);background:var(--card);border:1px solid var(--bd);border-radius:calc(var(--radius) - 4px);padding:10px 14px;cursor:pointer}
.pr-count{font-size:13px;color:var(--tx3);margin:0 0 10px}
.pr-scroll{border:1px solid var(--bd);border-radius:var(--radius);background:var(--card);overflow-x:auto}
.pr-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.45}
.pr-table th,.pr-table td{padding:10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--bd2)}
.pr-table tbody tr:last-child td{border-bottom:0}
.pr-table th{background:var(--sunken);white-space:nowrap}
.pr-table th.pr-num,.pr-table td.pr-num{text-align:right}
.pr-table td.pr-num{white-space:nowrap}
.pr-table td.pr-nowrap{white-space:nowrap}
.pr-table th.pr-mark,.pr-table td.pr-mark{text-align:center}
.pr-yes{color:var(--tx)}
.pr-no{color:var(--tx3)}
.pr-sort{font:600 12px/1.3 var(--font-head);color:var(--tx3);background:none;border:0;padding:0;cursor:pointer;text-align:inherit}
.pr-sort:hover,th[aria-sort="ascending"] .pr-sort,th[aria-sort="descending"] .pr-sort{color:var(--tx)}
.pr-arrow{margin-left:4px;color:var(--tx3)}
th[aria-sort="ascending"] .pr-arrow,th[aria-sort="descending"] .pr-arrow{color:var(--brand)}
.pr-name{font:600 14px/1.4 var(--font-head);color:var(--tx);overflow-wrap:anywhere}
/* The model column is wide enough for a name and its info button; the
   description opens under the name (owner on the v1.9.1 stand). */
.pr-table th:first-child,.pr-table td:first-child{min-width:280px}
.pr-nameline{display:flex;align-items:center;gap:6px;min-width:0}
.pr-info{flex:none;font:400 16px/1 var(--font-body);color:var(--tx3);background:none;border:0;border-radius:6px;padding:2px 4px;cursor:pointer}
.pr-info:hover,.pr-info[aria-expanded="true"]{color:var(--brand)}
.pr-info:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
/* All info buttons stand in one column at the right of the model column,
   as in the app lists (owner on the v1.9.1 stand: «i прижать бы вправо,
   чтобы были в 1 ряд»). On a phone card the button closes the head line,
   after the level badge. */
.pr-table .pr-info{margin-left:auto}
.pr-head .pr-nameline{display:contents}
.pr-head .pr-name{flex:1 1 auto;min-width:0}
.pr-head .pr-info{order:3}
.pr-desc[hidden]{display:none}
/* An opened description takes the column's width, it never widens it. */
.pr-table .pr-desc{width:0;min-width:100%;max-width:none}
/* Owner on the v1.9.1 stand: the description is shown whole, not cut. */
.pr-desc{margin:3px 0 0;font-size:12px;line-height:1.5;color:var(--tx2);max-width:52ch}
.pr-table small,.pr-card small{display:block;font-size:11.5px;color:var(--tx3);margin-top:2px}
.pr-table small.rub,.pr-card small.rub{color:var(--rub)}
.pr-table small.pr-m,.pr-card small.pr-m{display:block;color:var(--tx3);font-size:11.5px;white-space:normal}
.pr-plain{font:600 12px/1.3 var(--font-head);color:var(--tx3)}
.pr-lvl{display:inline-block;font:600 11px/1 var(--font-head);padding:4px 8px;border-radius:999px;border:1px solid var(--bd);background:var(--card);color:var(--tx2);white-space:nowrap}
/* Every level has its colour (owner, stand v1.9.0), the app's reasoning ramp. */
.pr-lvl[data-tier="basic"]{color:var(--t-basic);border-color:color-mix(in srgb,var(--t-basic) 45%,var(--bd))}
.pr-lvl[data-tier="balanced"]{color:var(--t-bal);border-color:color-mix(in srgb,var(--t-bal) 45%,var(--bd))}
.pr-lvl[data-tier="advanced"]{color:var(--t-adv);border-color:color-mix(in srgb,var(--t-adv) 45%,var(--bd))}
.pr-lvl[data-tier="flagship"]{color:var(--brand);border-color:color-mix(in srgb,var(--brand) 45%,var(--bd))}
.pr-cards{display:none;list-style:none;margin:0;padding:0;gap:10px}
.pr-card{background:var(--card);border:1px solid var(--bd);border-radius:var(--radius);padding:14px 16px;min-width:0}
.pr-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:6px 12px}
.pr-card .pr-desc{max-width:none}
.pr-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:12px 0 0}
.pr-pairs span{display:block;font-size:11.5px;color:var(--tx3)}
.pr-pairs b{display:block;font:600 14px/1.4 var(--font-head);color:var(--tx);overflow-wrap:anywhere}
@container (max-width:760px){
  #prices-main{padding:22px 0 40px}
  .pr-scroll{display:none}
  .pr-cards{display:grid}
  .pr-sortbar{display:flex;width:100%}
  .pr-sortbar .pr-sel{flex:1 1 auto}
  .pr-bar{display:flex}
  .pr-q{flex-basis:100%}
}
