/* Kita, 北. Светлая холодная бумага, графит, один морской акцент. Заголовки и цифры с засечками, данные гротеском.
   Без сборки и без внешних шрифтов (правило: ничего с чужих CDN). */
:root {
  --paper: #f2f3f0; --panel: #ffffff; --panel2: #f8f8f6; --ink: #1b1e24; --ink2: #3b404a; --muted: #6a7079; --line: #d9dcd5; --line2: #ebece8;
  --sea: #0e6f6c; --sea-soft: #dfeeec; --sea-ink: #0a4f4d;
  --amber: #a35a00; --amber-soft: #fbefd9; --ok: #2b6b3f; --ok-soft: #e1f0e4; --bad: #a3322d; --bad-soft: #f8e4e2;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 6px; --r2: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.45 var(--sans); }
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: 30px; line-height: 1.15; margin: 0 0 6px; }
h2 { font-size: 21px; margin: 22px 0 10px; }
p { margin: 0 0 10px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 440px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; }
.small { font-size: 12.5px; }
.muted { color: var(--muted); }
.good { color: var(--ok); }
.bad { color: var(--bad); }
.num { font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

/* шапка: тонкая, без заливки */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .row { min-height: 54px; flex-wrap: nowrap; }
.logo { font-family: var(--serif); font-size: 22px; color: var(--ink); display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.logo-k { font-size: 18px; color: var(--sea); }
.logo small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 400; }
.menu { display: flex; gap: 2px; margin-left: 18px; }
.menu a { padding: 6px 10px; border-radius: var(--r); color: var(--ink2); }
.menu a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--sea); border-radius: 0; }
.menu a:hover { text-decoration: none; color: var(--ink); }
.auth { display: flex; align-items: center; gap: 10px; margin-left: auto; white-space: nowrap; }
.foot { margin-top: 48px; padding: 20px 0 40px; border-top: 1px solid var(--line); }

/* кнопки, чипы, формы */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: #000; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel2); border-color: var(--ink2); }
.btn-sea { background: var(--sea); border-color: var(--sea); }
.btn-sea:hover { background: var(--sea-ink); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; cursor: default; }
.chip { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; background: var(--panel2); color: var(--ink2); border: 1px solid var(--line2); margin-right: 4px; }
.chip-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip-bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip-amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip-sea { background: var(--sea-soft); color: var(--sea-ink); border-color: transparent; }
.grade { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 4px; background: var(--ink); color: #fff; font-family: var(--serif); font-size: 15px; font-weight: 600; }
.grade.g-x, .grade.g-r, .grade.g-ra { background: var(--bad); }
.grade.g-4, .grade.g-45, .grade.g-5, .grade.g-s, .grade.g-6 { background: var(--sea); }
label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
input, select { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 9px; min-width: 0; width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
.toggle { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 13px; }
.toggle input { width: auto; margin: 0; accent-color: var(--sea); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r2); padding: 16px 18px; margin: 14px 0; }
.form { display: grid; gap: 12px; margin-top: 36px; }
.alert { background: var(--amber-soft); color: var(--amber); border-radius: var(--r); padding: 10px 14px; margin: 12px 0; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl td, .tbl th { padding: 8px 6px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 500; font-size: 12px; }
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 6px 0; border-bottom: 1px solid var(--line2); vertical-align: top; }
.kv td:first-child { color: var(--muted); width: 40%; padding-right: 10px; }

/* страница поиска: панель фильтров слева, лоты справа */
.search { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 22px; padding-top: 18px; align-items: start; }
.rail { position: sticky; top: 68px; display: grid; gap: 14px; }
.rail-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r2); padding: 14px; display: grid; gap: 10px; }
.rail h3 { font-size: 15px; margin: 0; }
.seg { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg a { flex: 1; text-align: center; padding: 7px 6px; color: var(--ink2); font-size: 13px; border-right: 1px solid var(--line); }
.seg a:last-child { border-right: 0; }
.seg a.on { background: var(--ink); color: #fff; }
.seg a:hover { text-decoration: none; }
.seg small { display: block; font-size: 11px; opacity: .7; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rail .btn { width: 100%; }
.rail .more { background: none; border: 0; color: var(--sea); padding: 0; cursor: pointer; font: inherit; text-align: left; }
.results { min-width: 0; }
.results-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.results-head h1 { font-size: 26px; margin: 0; }
.results-head .total { color: var(--muted); }
.results-head .sort { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.results-head .sort select { width: auto; padding: 5px 8px; }
.days { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--r2); background: var(--panel); overflow-x: auto; margin: 8px 0 14px; }
.day { flex: 1; min-width: 108px; padding: 8px 12px; border-right: 1px solid var(--line2); color: var(--ink2); display: grid; }
.day:last-child { border-right: 0; }
.day b { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink); }
.day span { font-size: 11.5px; color: var(--muted); }
.day.on { background: var(--sea-soft); box-shadow: inset 0 -3px 0 var(--sea); }
.day:hover { text-decoration: none; background: var(--panel2); }

/* строка лота */
.lots { display: grid; gap: 8px; }
.lot-row { display: grid; grid-template-columns: 172px minmax(0, 1fr) 190px; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r2); padding: 10px; color: var(--ink); }
.lot-row:hover { text-decoration: none; border-color: var(--ink2); }
.lot-img { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--panel2); }
.lot-img img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.lot-img .noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12px; }
.lot-img .grade { position: absolute; left: 6px; top: 6px; }
.lot-img .n { position: absolute; right: 6px; bottom: 6px; font-size: 11px; background: rgba(27,30,36,.75); color: #fff; padding: 1px 6px; border-radius: 4px; }
.lot-mid { display: grid; gap: 3px; align-content: start; min-width: 0; }
.lot-title { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; }
.lot-title span { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); }
.lot-where { color: var(--muted); font-size: 12.5px; }
.specs { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--ink2); margin-top: 2px; }
.specs b { font-weight: 600; color: var(--ink); }
.lot-flags { margin-top: 4px; }
.lot-right { display: grid; align-content: start; gap: 4px; text-align: right; border-left: 1px solid var(--line2); padding-left: 14px; }
.price { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.price small { font-family: var(--sans); font-size: 11.5px; font-weight: 400; color: var(--muted); display: block; margin-top: 2px; }
.price.est::before { content: "\2248\00a0"; color: var(--muted); }
.price.none { color: var(--muted); font-size: 16px; }
.bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; background: var(--line2); margin: 6px 0 2px; }
.bar i { display: block; height: 100%; }
.bar .b-car { background: var(--ink); } .bar .b-duty { background: var(--sea); } .bar .b-util { background: var(--amber); } .bar .b-ship { background: #9aa0a8; }
.bar-legend { display: flex; gap: 8px; justify-content: flex-end; font-size: 10.5px; color: var(--muted); }
.bar-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 3px; vertical-align: middle; }
.src { font-size: 12px; color: var(--muted); }
.src b { font-family: var(--serif); color: var(--ink); font-weight: 600; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin: 20px 0; }
.pager a, .pager b { padding: 5px 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); font-family: var(--serif); }
.pager b { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--r2); }

/* карточка лота */
.crumbs { margin: 14px 0 8px; font-size: 12.5px; color: var(--muted); }
.lot { display: grid; grid-template-columns: minmax(0, 1.2fr) 400px; gap: 24px; align-items: start; }
.lot-main { position: relative; aspect-ratio: 4/3; background: #16181d; border-radius: var(--r2); overflow: hidden; }
.lot-main img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; -webkit-user-drag: none; user-select: none; }
.lot-main .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 22px; cursor: pointer; color: var(--ink); }
.lot-main .prev { left: 10px; } .lot-main .next { right: 10px; }
.lot-main .noimg { display: grid; place-items: center; height: 100%; color: #aaa; }
.lot-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; }
.lot-thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; flex: none; }
.lot-thumbs img.on { border-color: var(--sea); }
.sheet { margin-top: 10px; }
.sheet summary { cursor: pointer; font-weight: 600; }
.sheet img { width: 100%; margin-top: 10px; border-radius: var(--r); border: 1px solid var(--line); }
.paywall { background: var(--amber-soft); color: var(--amber); border-radius: var(--r2); padding: 12px 14px; margin: 10px 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lot-side { position: sticky; top: 68px; display: grid; gap: 14px; }
.lot-side h1 { font-size: 26px; }
.lot-side h1 span { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); display: block; margin-top: 2px; }
.pricebox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r2); padding: 16px 18px; display: grid; gap: 8px; }
.pricebox .price { font-size: 34px; }
.pricebox .bar { height: 8px; }
.pricebox .bar-legend { justify-content: flex-start; font-size: 12px; }
.pricebox details summary { cursor: pointer; color: var(--sea); font-size: 13px; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 10px; margin: 6px 0 2px; }
.range b { font-family: var(--serif); font-size: 22px; text-align: center; }
.range span { font-family: var(--serif); font-size: 15px; color: var(--ink2); }
.range span:last-child { text-align: right; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form { display: inline; }
.hist { display: grid; gap: 6px; }
.hist-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line2); border-radius: var(--r); color: var(--ink); background: var(--panel); }
.hist-row img { width: 96px; height: 70px; object-fit: cover; border-radius: 4px; }
.hist-row:hover { text-decoration: none; border-color: var(--ink2); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.plan ul { padding-left: 18px; margin: 10px 0 16px; }
.plan li { margin: 5px 0; }
.plan-price { font-family: var(--serif); font-size: 32px; font-weight: 600; }
.plan-price span { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 400; }
.plan-hot { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }

@media (max-width: 980px) {
  .search { grid-template-columns: 1fr; }
  .rail { position: static; }
  .lot { grid-template-columns: 1fr; }
  .lot-side { position: static; }
}
@media (max-width: 640px) {
  .menu { display: none; }
  .logo small { display: none; }
  .auth { gap: 6px; }
  .auth .chip, .auth .small { display: none; }
  .pick-add { grid-template-columns: 1fr; }
  .wrap { padding: 0 14px; }
  .lot-row { grid-template-columns: 112px minmax(0, 1fr); }
  .lot-right { grid-column: 1 / -1; border-left: 0; padding-left: 0; text-align: left; border-top: 1px solid var(--line2); padding-top: 8px; }
  .bar-legend { justify-content: flex-start; }
  .lot-title { font-size: 16px; }
  .results-head h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lot-row, .day, .btn { transition: border-color .12s, background-color .12s; }
}

/* перевод листа */
.sheet-ru { display: grid; gap: 8px; margin-top: 10px; }
.sheet-ru h3 { font-size: 15px; margin: 8px 0 0; }
.sheet-ru ul { margin: 2px 0; padding-left: 18px; }
.sheet-ru li { margin: 2px 0; }
.verdict { padding: 10px 12px; border-radius: var(--r); background: var(--panel2); border-left: 4px solid var(--muted); }
.verdict.r-low { background: var(--ok-soft); border-color: var(--ok); }
.verdict.r-medium { background: var(--amber-soft); border-color: var(--amber); }
.verdict.r-high { background: var(--bad-soft); border-color: var(--bad); }

/* страница модели */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; }
.chart { width: 100%; height: auto; display: block; margin: 4px 0 10px; }
.chart text { font-family: var(--sans); }
.tbl tr.on-row td { background: var(--sea-soft); }

/* листы подбора */
textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 9px; width: 100%; resize: vertical; }
.pick-edit { display: grid; gap: 10px; }
.pick-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick-row .lot-img, .pick-row .lot-title { text-decoration: none; }
.pick-brand { margin: 22px 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pick-co { font-size: 26px; font-weight: 600; }
.pick-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.extras { display: grid; gap: 6px; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; } .pick-fields { grid-template-columns: 1fr; } }

/* цена по курсу ЦБ + ТКС */
.cbr-label { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--sea-ink); }
.tks { font-size: 13px; color: var(--ink2); }
.tks b { font-family: var(--serif); font-weight: 600; }
.tks-table { margin: 4px 0 0; }
.tks-table .tks-sum td { font-weight: 700; color: var(--ink); }
.verify-tg { border-top: 1px solid var(--line2); padding-top: 12px; display: grid; gap: 6px; }
.wallet-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.wallet-top .card { margin: 0; }
.wallet-sum { font-family: var(--serif, Georgia, serif); font-size: 30px; line-height: 1.1; }
.ref-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ref-link input { flex: 1 1 240px; font-family: ui-monospace, Menlo, monospace; }
.plus { color: var(--sea); } .minus { color: var(--muted); }
main.wrap > h1:first-child { margin-top: 22px; }
.card > h2:first-child { margin-top: 0; }
.await { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); }
.bid-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.bid-form label { font-size: 14px; }
.price-h { font-size: 20px; margin: 4px 0 0; }
.price-sum { width: 100%; border-collapse: collapse; font-size: 17px; }
.price-sum td { padding: 9px 0; border-bottom: 1px solid var(--line2); vertical-align: top; }
.price-sum td.num { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 12px; }
.price-sum .muted { font-size: 14px; margin-top: 2px; }
.cbr-big { font-weight: 700; }
.price-sum .sum-tks td { font-weight: 700; }
.price-sum .sum-all td { font-size: 24px; font-weight: 700; border-bottom: 0; padding-top: 12px; font-family: var(--serif); }
.price-sum .sum-all td.num { color: var(--sea); }
.price-note { font-size: 15px; color: var(--ink); margin: 0; }
@media (max-width: 640px) { .bid-form { grid-template-columns: 1fr; } .price-sum { font-size: 16px; } .price-sum .sum-all td { font-size: 21px; } }
.plan-trial { font-weight: 700; color: var(--sea-ink, var(--sea)); margin: 4px 0; }
.why { background: linear-gradient(120deg, var(--panel) 0%, #e3efee 100%); border: 1px solid var(--line); border-radius: var(--r2); padding: 20px 22px; margin: 18px 0; display: grid; gap: 14px; }
.why-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.why-kicker { color: var(--sea); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.why-title { font-size: 28px; margin: 4px 0 0; max-width: 560px; line-height: 1.15; }
.why-card { background: #fff; border-radius: var(--r2); padding: 16px 20px; }
.why-q { font-size: 16px; }
.why-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 22px; }
.why-list li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.35; }
.why-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border: 1.6px solid var(--sea); border-radius: 50%;
  background: no-repeat center/10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1' fill='none' stroke='%230e6f6c' stroke-width='1.7'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .why-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-list { grid-template-columns: 1fr; } .why-title { font-size: 22px; } .why { padding: 16px; } }
