/* Prediction Accuracy (M1XB-3733): views/pages/accuracy.ejs.
   Макеты «Prediction Accuracy - v3» 1440 / 768 / 375. */

.accuracy-page main{padding-bottom:72px}

/* ── Первый экран ─────────────────────────────────────────────────────── */
.acc-hero{padding-top:64px}
.acc-hero h1{margin:0;max-width:880px;font-size:48px;line-height:1.24;letter-spacing:-.8px}
.acc-lead{margin:36px 0 0;max-width:1100px;font-size:16px;line-height:1.65;color:#a1a1aa}

/* Плитки — как плитки статистики на главной (home.css .stat-tile), но со
   своими классами: в main.css живёт другой .stat-tile для старых страниц.
   Звезда — картинка из макета (acc-star-*.png, 244×99, под высоту плитки),
   прижата к низу; за ней — цветной градиент. */
.acc-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:64px}
.acc-tile{--c:8 120 255;--star:url('/img/acc-star-blue.png');position:relative;overflow:hidden;height:98px;border-radius:12px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;
  border:1px solid #27272a;box-shadow:0 0 0 1px #000;
  background:var(--star) 40px 100%/auto 100% no-repeat,
             linear-gradient(90deg,#1a1b1f 12%,rgb(var(--c)/.42) 40%,rgb(var(--c)/.18) 62%,#1a1b1f 84%)}
.acc-tile--yellow{--c:243 199 0;--star:url('/img/acc-star-yellow.png')}
.acc-tile--green{--c:139 224 20;--star:url('/img/acc-star-green.png')}
.acc-tile img{position:relative;width:40px;height:40px}
.acc-tile div{position:relative;text-align:right}
.acc-tile strong{display:block;font-size:24px;font-weight:600;line-height:1.2}
.acc-tile span{display:block;margin-top:6px;font-size:13px;font-weight:500;letter-spacing:.9px;text-transform:uppercase;color:#b4b4bb}
.acc-tile-wrap p{margin:16px 0 0;font-size:14px;line-height:1.55;color:#a1a1aa}

/* ── Секции с табами ──────────────────────────────────────────────────── */
.acc-section{margin-top:72px}
.acc-section h2,.acc-split h2{margin:0;font-size:30px;line-height:1.2;letter-spacing:-.4px}
.acc-sub{margin:16px 0 0;font-size:16px;color:#a1a1aa}
.acc-note{margin:24px 0 0;font-size:14px;line-height:1.5;color:#a1a1aa}
.acc-note b{color:#d4d4d8}
.acc-empty{margin:0;padding:32px 0;text-align:center;color:#a1a1aa}

.acc-chips{display:flex;gap:8px;margin-top:24px;overflow-x:auto;scrollbar-width:none}
.acc-chips::-webkit-scrollbar{display:none}
.acc-chips button{flex:none;height:36px;padding:0 16px;border:1px solid #34353b;border-radius:20px;background:#202126;color:#d4d4d8;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background-color .2s,border-color .2s}
.acc-chips button:hover{background:#27272a}
.acc-chips button.active{background:var(--blue);border-color:var(--blue);color:#fff}
.acc-chips button:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}

/* Панели табов: без скрипта видна первая (All markets). */
.acc-panel{display:none;margin-top:24px}
.acc-panel.is-active{display:block}

.acc-card{border-radius:12px;background:#18181b;border:1px solid #1f1f23}

/* ── График ───────────────────────────────────────────────────────────── */
.acc-chart{padding:24px 24px 16px}
.acc-chart__head{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.acc-chart__head h3{margin:0;font-size:20px;font-weight:600}
.acc-chart__head span{font-size:14px;color:#a1a1aa}
.acc-chart__scroll{margin-top:24px;overflow-x:auto;padding-bottom:4px}
/* Сверху запас под подпись точки у 100% — иначе её срезал бы скролл-контейнер. */
.acc-chart__body{position:relative;min-width:520px;height:260px;padding:26px 0 32px 52px}
.acc-chart__y{position:absolute;left:0;top:26px;bottom:32px;width:52px}
.acc-chart__y span{position:absolute;left:0;transform:translateY(-50%);font-size:12px;color:#a1a1aa}
.acc-chart__plot{position:relative;height:100%}
.acc-chart__plot svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.acc-chart__grid{stroke:#27272a;stroke-width:1;vector-effect:non-scaling-stroke}
.acc-chart__line{fill:none;stroke:var(--blue);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.acc-chart__dot{position:absolute;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 2px #18181b}
.acc-chart__value{position:absolute;transform:translate(-50%,-150%);font-size:13px;font-weight:600;color:#fafafa;white-space:nowrap}
.acc-chart__x{position:absolute;top:calc(100% + 14px);transform:translateX(-50%);font-size:12px;color:#a1a1aa}

/* ── Таблицы ──────────────────────────────────────────────────────────── */
.acc-table{padding:8px 24px;overflow-x:auto}
.acc-table table,.acc-vs table{width:100%;border-collapse:collapse}
.acc-table table{min-width:640px}
.acc-table th{padding:22px 0 18px;font-size:14px;font-weight:500;color:#a1a1aa;text-align:left;white-space:nowrap}
.acc-table td{padding:20px 0;border-top:1px solid #27272a;font-size:16px;white-space:nowrap}
.acc-table .num{text-align:right;padding-left:16px}
.acc-table .is-win{color:#a3e635}
.acc-table .is-loss{color:#f87171}
.acc-table .is-rate{color:#bef264}
.acc-table .is-up{color:#d9f99d}
.acc-table .is-down{color:#fca5a5}

/* ── Текстовые блоки: заголовок слева, текст справа ───────────────────── */
.acc-split{margin-top:72px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);gap:48px;align-items:start}
.acc-split h2{font-size:36px;line-height:1.25}
.acc-split h2 span{color:var(--blue)}
.acc-copy p{margin:0 0 24px;font-size:16px;line-height:1.65;color:#a1a1aa}
.acc-copy p:last-child{margin-bottom:0}
.acc-copy b{color:#d4d4d8;font-weight:600}
.acc-split--card{padding:32px;border-radius:12px;background:#18181b;width:min(var(--container),calc(100% - 48px))}
.acc-arrows{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:16px}
.acc-arrows li{position:relative;padding-left:40px;font-size:16px;line-height:1.6;color:#a1a1aa}
.acc-arrows li:before{content:"→";position:absolute;left:0;top:0;color:#a1a1aa}

/* ── OddScore vs other prediction sites ───────────────────────────────── */
.acc-vs{margin-top:24px;overflow-x:auto}
.acc-vs table{min-width:560px}
.acc-vs th{padding:28px 24px 24px;font-size:20px;font-weight:600;text-align:left}
.acc-vs td{padding:28px 24px;border-top:1px solid #27272a;font-size:16px;vertical-align:middle}
.acc-vs th:first-child,.acc-vs td:first-child{width:25%}
.acc-vs .is-ours,.acc-vs .is-theirs{position:relative;padding-left:48px}
.acc-vs .is-ours:before,.acc-vs .is-theirs:before{content:"";position:absolute;left:24px;top:50%;width:6px;height:26px;margin-top:-13px;border-radius:2px}
.acc-vs .is-ours{color:#bef264}
.acc-vs .is-ours:before{background:#bef264}
.acc-vs .is-theirs{color:#fca5a5}
.acc-vs .is-theirs:before{background:#fca5a5}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.acc-faq h2{font-size:40px}

/* ── Планшет ──────────────────────────────────────────────────────────── */
@media(max-width:1000px){
  .acc-hero{padding-top:48px}
  .acc-hero h1{font-size:40px;line-height:1.05}
  .acc-lead{margin-top:12px;font-size:14px;line-height:1.25}
  .acc-tiles{margin-top:24px;gap:16px}
  .acc-tile{height:80px;padding:0 16px}
  .acc-tile img{width:36px;height:36px}
  .acc-tile strong{font-size:26px}
  .acc-tile span{margin-top:2px;font-size:12px}
  .acc-tile-wrap p{margin-top:12px}
  .acc-section{margin-top:48px}
  .acc-section h2{font-size:24px}
  .acc-sub{margin-top:8px;font-size:14px}
  .acc-split{margin-top:48px;gap:32px;grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
  .acc-split h2{font-size:24px}
  .acc-copy p,.acc-arrows li{font-size:14px}
  .acc-split--card{padding:24px}
  .acc-faq{grid-template-columns:1fr;gap:24px}
  .acc-faq h2{font-size:24px}
  .acc-vs th{font-size:16px;padding:24px}
  .acc-vs td{font-size:14px;padding:20px 24px}
}

/* ── Телефон ──────────────────────────────────────────────────────────── */
@media(max-width:600px){
  .accuracy-page main{padding-bottom:48px}
  .acc-hero{padding-top:32px}
  .acc-hero h1{font-size:34px;line-height:1.05}
  .acc-hero h1 br{display:none}
  .acc-lead{font-size:13px}
  .acc-tiles{grid-template-columns:1fr}
  .acc-tile{height:80px;padding:0 16px}
  .acc-tile strong{font-size:28px}
  .acc-section h2{font-size:24px}
  /* Табы, график и таблицы листаются вбок до края экрана — как в макете. */
  .acc-chips,.acc-panel{margin-right:-24px}
  .acc-card{border-radius:12px 0 0 12px}
  .acc-chart{padding:16px}
  .acc-table{padding:0 16px}
  .acc-split{grid-template-columns:1fr;gap:16px}
  .acc-split h2{font-size:24px}
  .acc-split--card{padding:16px}
  .acc-arrows li{padding-left:36px}
  .acc-vs{margin-right:-24px;border-radius:12px 0 0 12px}
}
