/* PadelPrice — тёмная тема из утверждённого макета «Сплит».
   Токены + компоненты; правки токенов меняют весь сайт. */
:root {
  --bg: #101318;          /* фон */
  --panel: #1a1f27;       /* плашки */
  --panel-hl: #14202e;    /* выделенная плашка (лучшая цена) */
  --line: #232a34;
  --line-hl: #2b4a6b;
  --fg: #e6e9ee;
  --muted: #8a94a4;
  --faint: #5c6675;
  --accent: #7fb1ff;      /* действия, ссылки, график */
  --good: #4cc38a;
  --bad: #c4574a;
  --warn: #d0a03c;
  --r: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.55 'Onest', -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; font-weight: 800; margin: 6px 0 12px; }
.muted { color: var(--muted); }
.fg { color: var(--fg); }
.small { font-size: 13px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.lead { max-width: 620px; margin-top: 0; }

.topbar { border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; }
.logo { font-weight: 800; font-size: 20px; color: var(--fg); }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.topnav { display: flex; gap: 18px; align-items: baseline; font-size: 14px; }
.topnav a { color: #aab4c2; }

.crumbs { font-size: 13px; color: var(--faint); margin: 14px 0 6px; }
.crumbs a { color: var(--faint); }

/* сплит-лейаут карточки */
.split { display: grid; grid-template-columns: 340px 1fr; gap: 32px; margin-top: 8px; }
.split__side h1 { font-size: 24px; margin: 2px 0 12px; }
.photo {
  background: #fff; border-radius: 14px; padding: 12px;
  display: flex; align-items: center; justify-content: center;
}
.photo img { width: 100%; height: auto; }
.card { background: var(--panel); border-radius: var(--r); padding: 16px; }
.card--price { margin-top: 4px; }
.bigprice { font-weight: 800; font-size: 32px; margin: 2px 0; }
.btn {
  display: inline-block; border-radius: 10px; padding: 12px 18px;
  font-weight: 800; font-size: 15px; text-align: center;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { text-decoration: none; filter: brightness(1.08); }
.btn--block { display: block; margin-top: 12px; }
.specs { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.specs dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 13px; margin: 8px 0 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.rowhead { display: flex; justify-content: space-between; align-items: baseline;
           font-weight: 700; font-size: 16px; margin: 20px 0 10px; }
.offers { display: flex; flex-direction: column; gap: 8px; }
.offer {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  background: var(--panel); border-radius: var(--r); padding: 13px 16px;
}
.offer--best { background: var(--panel-hl); border: 1px solid var(--line-hl); }
.offer__shop a { color: var(--fg); font-weight: 600; }
.offer__price { font-weight: 700; font-size: 18px; text-align: right; white-space: nowrap; }
.offer__price--best { font-weight: 800; font-size: 20px; }
.offer__go { border: 1px solid #2b3542; border-radius: 8px; font-size: 13px; padding: 8px 14px; white-space: nowrap; }
.offer__go:hover { text-decoration: none; border-color: var(--accent); }
.badge { font-size: 11px; border-radius: 6px; padding: 3px 8px; margin-left: 8px; white-space: nowrap; }
.badge--best { background: #1d3a2b; color: var(--good); }
.badge--drop { color: var(--warn); }
.badge--rise { color: var(--bad); }

.stat { background: var(--panel); border-radius: var(--r); padding: 12px 14px; }
.stat__label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat__value { font-weight: 800; font-size: 20px; }
.stat__value--good { color: var(--good); }
.stat__value--bad { color: var(--bad); }

.chart { background: var(--panel); border-radius: var(--r); padding: 14px 16px; margin-top: 20px; }
.chart__head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.chart svg { width: 100%; height: 90px; display: block; }
.chart__note { font-size: 11px; margin-top: 4px; }

.minis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.mini { background: var(--panel); border-radius: 10px; padding: 12px 14px; color: var(--fg); }
.mini:hover { text-decoration: none; outline: 1px solid var(--line-hl); }
.mini__name { font-size: 13px; font-weight: 600; }
.mini__meta { font-size: 13px; }

.tablewrap { overflow-x: auto; }
.pricetable { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
.pricetable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
                 color: var(--muted); border-bottom: 1px solid var(--line-hl); padding: 7px 8px; }
.pricetable td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.pricetable tbody tr:hover { background: var(--panel); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num--best { font-weight: 800; }
.num--save { color: var(--good); }
.chip { display: inline-block; background: var(--panel); border-radius: 8px; padding: 6px 12px;
        margin: 3px; color: var(--fg); font-size: 14px; }
.chip:hover { outline: 1px solid var(--accent); text-decoration: none; }

.stickycta { display: none; }
.footer { padding: 26px 16px 32px; font-size: 12px; border-top: 1px solid var(--line); margin-top: 32px; }

/* мобильный: сплит складывается, появляется закреплённая панель */
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 16px; }
  .photo { max-width: 220px; }
  .offer { grid-template-columns: 1fr auto; }
  .offer__go { grid-column: 2; }
  .minis { grid-template-columns: 1fr; }
  body { padding-bottom: 76px; }
  .stickycta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    gap: 14px; align-items: center; padding: 10px 16px;
    background: rgba(16,19,24,.94); border-top: 1px solid var(--line);
  }
  .stickycta .btn { flex: 1; }
  .stickycta__price { font-weight: 800; font-size: 19px; }
}
