/* ===== reset / base ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;min-width:0}
html,body{height:100%;overflow-x:hidden}
img{max-width:100%;height:auto}
body{
  font-family:'Inter','Segoe UI',Roboto,Arial,sans-serif;
  background-color:#1c1c1f;
  color:#cdd5e0;
  font-size:14px;
  line-height:1.4;
  background-image:
    url('left-decoration.webp'),
    url('right-decoration.webp');
  background-repeat:no-repeat, no-repeat;
  background-position:left top 60px, right top 60px;
  background-size:auto 90vh, auto 90vh;
  background-attachment:fixed;
}
img{max-width:100%;display:block}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
ul{list-style:none}

/* visually-hidden (для SEO h2/h3) */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* hexagonal pattern background helper */
.hex-bg{
  position:relative;
  background-color:#222226;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,.03) 25%, transparent 25%),
    linear-gradient(45deg,  rgba(255,255,255,.03) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,.03) 25%, transparent 25%);
  background-position: 20px 0, 20px 0, 0 0, 0 0;
  background-size: 40px 40px;
  background-repeat: repeat;
}

/* ===== TOPBAR (UPGRADER-style) ===== */
.topbar{
  background:#0e0e10;
  border-bottom:1px solid #1f1f24;
  position:sticky;top:0;z-index:30;
}
.topbar__inner{
  max-width:1700px;margin:0 auto;
  display:flex;align-items:center;gap:24px;
  padding:14px 28px;
}

/* logo: chevron + UPTRADER text */
.logo{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;text-decoration:none}
.logo__icon{
  width:32px;height:32px;color:#fbbf24;
  display:flex;align-items:center;justify-content:center;
}
.logo__icon svg{width:100%;height:100%;display:block}
.logo__name{
  font-size:18px;font-weight:800;letter-spacing:.06em;color:#fff;
}

/* stats with chevron / user icons */
.topbar__stats{display:flex;align-items:center;gap:22px;flex-shrink:0;margin-left:18px}
.stat{display:inline-flex;align-items:center;gap:10px;font-size:13px;color:#8b8b95}
.stat__ico{
  width:28px;height:28px;color:#fbbf24;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.stat__ico svg{width:100%;height:100%;display:block}
.stat__copy{display:flex;flex-direction:column;line-height:1.15}
.stat__lbl{font-size:11.5px;color:#8b8b95}
.stat b{color:#fff;font-weight:700;font-size:14px}

/* faq link in topbar */
.topbar__faq{
  font-size:13px;color:#9aa6c0;text-decoration:none;
  margin-left:auto;padding:8px 14px;border-radius:8px;
  transition:color .15s, background .15s;
}
.topbar__faq:hover{color:#fbbf24;background:rgba(251,191,36,.05)}

/* social icons */
.topbar__socials{display:flex;gap:8px;margin-left:0}
.soc{
  width:38px;height:38px;border-radius:8px;
  background:#1c1c20;border:1px solid #2a2a32;color:#8b8b95;
  display:flex;align-items:center;justify-content:center;
  transition:all .15s;
}
.soc svg{width:18px;height:18px}
.soc:hover{color:#fbbf24;border-color:#fbbf24}

.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 22px;border-radius:8px;
  font-weight:700;letter-spacing:.02em;
  transition:filter .15s ease, transform .05s ease;
  border:0;cursor:pointer;
}
.btn:hover{filter:brightness(1.08)}
.btn:active{transform:translateY(1px)}
.btn__icon{display:inline-block;font-size:13px}

/* yellow Steam button */
.btn--steam{
  background:linear-gradient(180deg,#fde047,#f59e0b);
  color:#1a1000;font-weight:800;
  padding:11px 22px;border-radius:10px;
  box-shadow:0 6px 18px -4px rgba(251,191,36,.45);
}
.btn--steam:hover{filter:brightness(1.05)}

/* ===== LAYOUT ===== */
.layout{
  max-width:1700px;margin:0 auto;
  display:grid;
  grid-template-columns:200px 1fr;
  gap:24px;padding:22px 28px 60px;
}

/* ===== SIDEBAR (UPGRADER-style: % top-left + image right) ===== */
.sidebar{
  background:transparent;
  border:0;border-radius:0;
  padding:0;
  height:fit-content;
}
.inv{display:flex;flex-direction:column;gap:6px}
.inv__item{
  display:grid;grid-template-columns:1fr 70px;
  align-items:center;gap:8px;
  padding:10px 12px;
  background:#15151a;
  border:1px solid #2a2a32;
  border-radius:8px;
  cursor:pointer;
  position:relative;
  transition:all .15s;
}
.inv__item:hover{border-color:#fbbf24}
.inv__item:first-child{
  border-color:#fbbf24;
  background:linear-gradient(180deg, rgba(251,191,36,.12), rgba(251,191,36,.04));
}
.inv__item img{
  width:70px;height:50px;object-fit:contain;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.55));
}
.inv__item div{display:flex;flex-direction:column;min-width:0;gap:2px}
.inv__pct{
  font-size:12px;font-weight:700;color:#fbbf24;
  display:inline-flex;align-items:center;gap:4px;
}
.inv__pct::before{
  content:"";
  width:11px;height:11px;
  background:#fbbf24;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3.7 13L12 4.7L20.3 13L17.4 13L12 7.6L6.6 13Z M3.7 19L12 10.7L20.3 19L17.4 19L12 13.6L6.6 19Z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3.7 13L12 4.7L20.3 13L17.4 13L12 7.6L6.6 13Z M3.7 19L12 10.7L20.3 19L17.4 19L12 13.6L6.6 19Z'/></svg>") center/contain no-repeat;
}
.inv__name{
  font-size:11.5px;color:#fff;font-weight:700;
  letter-spacing:.02em;text-transform:uppercase;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:110px;
}
/* sub-name (тип предмета) — добавляется в JS либо из inv__name */
.inv__type{
  font-size:10.5px;color:#6a6a75;font-weight:500;
}

/* ===== MAIN ===== */
.main{min-width:0}

.page-title{
  text-align:center;
  font-size:30px;font-weight:800;letter-spacing:.04em;
  color:#fff;margin:6px 0 22px;
}
.page-title span{
  background:linear-gradient(90deg,#fde047,#fbbf24);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

/* violet accent helper */
.accent--violet{color:#fbbf24}

/* ===== UPGRADE WIDGET ===== */
.upgrade{
  padding:24px 0 28px;
  display:grid;
  grid-template-columns:1fr 1.15fr 1fr;
  grid-template-rows:auto auto;
  gap:18px 24px;
  position:relative;
}
.upgrade__col{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}

/* slots — UPGRADER-style: weapon silhouette + chevron, no hex grid */
.slot{
  width:100%;max-width:420px;height:280px;
  border-radius:14px;
  background:#15151a;
  border:1px solid #232328;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:14px;
  position:relative;
  overflow:hidden;
}
/* dark weapon silhouette ghost background */
.slot::before{
  content:"";
  position:absolute;inset:30px;
  background-image:url("img/upgrade-skin.webp");
  background-position:center;background-repeat:no-repeat;background-size:contain;
  opacity:.06;filter:grayscale(1) brightness(.5);
  pointer-events:none;
}
/* big yellow chevron when slot is empty (placeholder mode) */
.slot--source::after,
.slot--target::after{
  content:"";
  position:absolute;left:50%;top:50%;
  width:74px;height:84px;
  transform:translate(-50%,-50%);
  background:#fbbf24;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3.7 13L12 4.7L20.3 13L17.4 13L12 7.6L6.6 13Z M3.7 19L12 10.7L20.3 19L17.4 19L12 13.6L6.6 19Z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3.7 13L12 4.7L20.3 13L17.4 13L12 7.6L6.6 13Z M3.7 19L12 10.7L20.3 19L17.4 19L12 13.6L6.6 19Z'/></svg>") center/contain no-repeat;
  z-index:1;opacity:.95;
}
/* the source slot has a downward chevron, target an upward */
.slot--source::after{transform:translate(-50%,-50%) rotate(180deg)}
/* hide chevron when slot has actual image */
.slot:has(.slot__img[src*="skin-"])::after,
.slot--source[data-filled]::after{opacity:0}
/* slot text placeholders (когда слот пустой) */
.slot__title{
  position:relative;z-index:2;
  font-size:14px;font-weight:600;color:#dde4f1;
  text-align:center;padding:0 24px;margin-bottom:6px;
}
.slot__sub{
  position:relative;z-index:2;
  font-size:12px;color:#7a7a85;text-align:center;
  padding:0 24px;
}
/* когда слот заполнен — прячем chevron-placeholder */
.slot[data-filled]::after{opacity:0}
.slot[data-filled]::before{opacity:.04}

.slot__tools{
  position:absolute;top:14px;left:14px;
  display:flex;gap:8px;z-index:3;
}
.slot__tool{
  width:32px;height:32px;border-radius:8px;
  background:rgba(38,38,46,.85);
  border:1px solid #34343c;
  color:#9aa6c0;
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:600;
  transition:color .15s, border-color .15s;
}
.slot__tool:hover{color:#fbbf24;border-color:#fbbf24}
.slot__img{
  max-height:78%;max-width:88%;
  object-fit:contain;
  filter:drop-shadow(0 12px 28px rgba(0,0,0,.7));
  position:relative;z-index:1;
}

.upgrade__caption{font-size:18px;color:#fff;font-weight:600;line-height:1.35;margin-bottom:8px}
.upgrade__caption b{color:#fff;font-weight:700}
.upgrade__hint{font-size:13px;color:#7a86a3}

/* ===== CIRCULAR GAUGE ===== */
.gauge{
  position:relative;
  width:340px;height:340px;
  margin:0 auto;
}
.gauge__svg{width:100%;height:100%;display:block}
.gauge__fill{filter:drop-shadow(0 0 10px rgba(245,166,35,.5))}

/* glowing yellow indicator at top */
.gauge__indicator{
  position:absolute;
  top:-2px;left:50%;transform:translateX(-50%);
  width:0;height:0;
  border-left:9px solid transparent;
  border-right:9px solid transparent;
  border-top:14px solid #fde047;
  filter:drop-shadow(0 0 6px rgba(245,200,75,.8));
  pointer-events:none;
}

/* % labels around the gauge */
.gauge__lbl{
  position:absolute;
  font-size:11px;color:#7a86a3;font-weight:600;letter-spacing:.04em;
  pointer-events:none;
}
.gauge__lbl--top  {top:18px;left:50%;transform:translateX(-50%);color:#fde047}
.gauge__lbl--left {top:50%;left:32px;transform:translateY(-50%)}
.gauge__lbl--right{top:50%;right:32px;transform:translateY(-50%)}
.gauge__lbl--bot  {bottom:38px;left:50%;transform:translateX(-50%)}

.gauge__center{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;pointer-events:none;
}
.gauge__chevron{
  width:120px;height:130px;color:#fbbf24;
  display:flex;align-items:center;justify-content:center;
  filter:drop-shadow(0 0 18px rgba(251,191,36,.45));
}
.gauge__chevron svg{width:100%;height:100%;display:block}

/* ===== BET PANEL ===== */
.bet{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:1fr 1.15fr 1fr;
  gap:24px;align-items:center;
  margin-top:8px;
}

/* wallet + slider */
.bet__wallet{
  display:flex;align-items:center;gap:12px;
  background:#1a1a1e;border:1px solid #2a2a32;
  border-radius:14px;
  padding:10px 16px;height:54px;
}
.bet__wallet-icon{
  width:32px;height:32px;border-radius:50%;
  background:#26262c;color:#9aa6c0;
  display:flex;align-items:center;justify-content:center;
  font-size:16px;flex-shrink:0;
}
.bet__slider{
  flex:1;position:relative;height:4px;
  background:#26262c;border-radius:2px;
  display:flex;align-items:center;
}
.bet__slider-fill{
  position:absolute;left:0;top:0;bottom:0;width:5%;
  background:#fbbf24;border-radius:2px;
}
.bet__slider-knob{
  position:absolute;left:5%;
  width:14px;height:14px;border-radius:50%;
  background:#fde047;
  box-shadow:0 0 0 4px rgba(245,200,75,.18);
  transform:translateX(-50%);
}
.bet__amount{
  font-size:13.5px;color:#dfe5f1;
  white-space:nowrap;
}
.bet__amount b{color:#fbbf24;font-weight:700;margin-right:2px}
.bet__amount i{font-style:normal;color:#7a86a3;margin-left:2px}

/* upgrade button — большая жёлтая (как в UPGRADER) */
.btn--upgrade{
  background:linear-gradient(180deg,#fde047,#f59e0b);
  color:#1a1000;
  padding:16px 40px;border-radius:12px;
  font-weight:800;letter-spacing:.04em;font-size:15px;
  height:60px;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  width:100%;
  border:0;
  text-transform:uppercase;
  box-shadow:0 10px 26px -8px rgba(251,191,36,.55);
}
.btn--upgrade .btn__icon{font-size:11px;letter-spacing:-2px;color:#1a1000}
.btn--upgrade[disabled]{
  background:linear-gradient(180deg,#7a6020,#3a2c10);
  color:#5a4a20;box-shadow:none;
}
.btn--upgrade[disabled] .btn__icon{color:#5a4a20}

/* multipliers */
.bet__multipliers{
  display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;
  background:#1a1a1e;border:1px solid #2a2a32;
  border-radius:14px;padding:7px;height:54px;align-items:center;
}
.mul{
  min-width:42px;height:38px;border-radius:9px;
  background:#26262c;border:1px solid transparent;
  color:#9aa6c0;
  font-weight:700;font-size:12px;
  padding:0 12px;
  transition:all .15s;
}
.mul:hover{border-color:#fbbf24;color:#fbbf24}
.mul--red    {color:#ef5350}
.mul--yellow {color:#fde047}
.mul--green  {color:#3ddc84}
.mul--shuffle{font-size:14px;color:#7a86a3;background:transparent}
.mul--shuffle:hover{color:#fff;border-color:transparent}

/* выключенное состояние — общий стиль для всех кнопок */
.btn:disabled,
.btn[disabled]{
  cursor:not-allowed;
  pointer-events:none;
}

/* ===== TABS ROW ===== */
.tabs-row{
  display:grid;grid-template-columns:1fr 1fr;
  gap:24px;margin-top:26px;
}
.tabs{display:flex;gap:6px}
.tabs--right{justify-content:flex-end}
.tab{
  background:#0e1730;
  border:1px solid #1a2548;
  color:#8593aa;
  padding:10px 22px;
  border-radius:8px;
  font-weight:600;font-size:13px;
}
.tab--active{
  background:#15213f;
  color:#fff;border-color:#27396d;
}
.tab--solo{flex:0 0 auto}

/* ===== CONTENT ROW ===== */
.content-row{
  display:grid;grid-template-columns:1fr 1fr;
  gap:24px;margin-top:14px;
  align-items:flex-start;
}

/* login card */
.login-card{
  border:1px solid #2a2a32;
  border-radius:12px;
  min-height:520px;
  display:flex;align-items:center;justify-content:center;
}
.login-card__inner{
  text-align:center;
  padding:30px;max-width:320px;
}
.login-card__title{font-size:22px;color:#fff;margin-bottom:12px;font-weight:700}
.login-card__text{color:#8593aa;margin-bottom:22px}
.login-card .btn--steam{margin:0 auto;display:inline-flex}

/* skins panel */
.skins-panel{
  background:#0d1630;
  border:1px solid #1a2548;
  border-radius:12px;
  padding:14px;
}
.filters{
  display:flex;align-items:center;gap:8px;margin-bottom:14px;
}
.filters__search{
  flex:1;
  background:#0a1228;
  border:1px solid #1f2a4d;
  color:#cdd5e0;
  border-radius:8px;
  padding:10px 14px;font-size:13px;
  outline:none;
}
.filters__search:focus{border-color:#fbbf24}
.filters__btn{
  width:36px;height:36px;border-radius:8px;
  background:#0a1228;border:1px solid #1f2a4d;color:#7a86a3;
}
.filters__btn:hover{color:#fff}
.filters__sort{
  background:#0a1228;border:1px solid #1f2a4d;color:#cdd5e0;
  border-radius:8px;padding:0 14px;height:36px;font-size:12px;
}

/* skin grid */
.grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.card{
  position:relative;
  background:#15151a;
  border:1px solid #2a2a32;
  border-radius:8px;
  padding:14px 12px 14px;
  text-align:center;
  cursor:pointer;
  transition:all .2s;
  min-height:180px;
  display:flex;flex-direction:column;
  overflow:hidden;
}
/* верхняя цветная полоска редкости */
.card::before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:#3a3a45;
}
.card--red::before    {background:linear-gradient(90deg,#ef5350,#a32a28)}
.card--orange::before {background:linear-gradient(90deg,#fbbf24,#b45309)}
.card--purple::before {background:linear-gradient(90deg,#fbbf24,#6b21a8)}
.card--green::before  {background:linear-gradient(90deg,#06d6a0,#0a8b6b)}

.card:hover{
  transform:translateY(-3px);
  border-color:#fbbf24;
  box-shadow:0 0 0 1px rgba(16,185,129,.3), 0 12px 26px -10px rgba(16,185,129,.4);
}

.card__price{
  font-size:14px;font-weight:800;color:#fde047;
  margin:6px 0;letter-spacing:-.01em;
}
.card__price span{color:#5a647e;font-weight:500;margin-left:2px;font-size:11px}
.card__img{
  width:100%;height:64px;object-fit:contain;
  margin:6px 0 8px;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.6));
}
.card__name{font-size:11.5px;color:#dde4f1;font-weight:700}
.card__skin{font-size:10.5px;color:#8a90a8;margin-top:2px}

/* pagination (store edition) */
.pagination{
  display:flex;justify-content:center;gap:4px;margin-top:18px;
}
.page{
  min-width:36px;height:36px;border-radius:6px;
  background:transparent;border:1px solid #2a2a32;color:#8b91a8;
  font-size:13px;font-weight:700;
  transition:all .15s;
}
.page:hover{border-color:#fbbf24;color:#fbbf24}
.page--active{background:linear-gradient(180deg,#fbbf24,#b45309);color:#fff;border-color:transparent}
.page--dots{cursor:default;color:#5a647e}

/* ===== ARTICLE / DOC PAGES ===== */
.article{
  max-width:880px;margin:0 auto;
  padding:24px 28px 60px;
}
.breadcrumbs{margin-bottom:20px;font-size:12.5px}
.breadcrumbs ol{
  list-style:none;padding:0;margin:0;
  display:flex;flex-wrap:wrap;gap:6px;
  color:#5a647e;
}
.breadcrumbs li{display:inline-flex;align-items:center;gap:6px}
.breadcrumbs li + li::before{content:"/";color:#3a4566;margin-right:2px}
.breadcrumbs a{color:#7a86a3;transition:color .15s}
.breadcrumbs a:hover{color:#fff}
.breadcrumbs [aria-current]{color:#cdd5e0}

.article__title{
  font-size:30px;font-weight:800;color:#fff;
  letter-spacing:.01em;line-height:1.2;
  margin-bottom:8px;
}
.article__title span{color:#fbbf24}
.article__updated{
  display:inline-block;
  font-size:12px;color:#7a86a3;
  background:#0e1730;border:1px solid #1a2548;
  padding:5px 10px;border-radius:6px;
  margin-bottom:24px;
}
.article__updated b{color:#dfe5f1;font-weight:600}

/* TOC */
.toc{
  background:#0e1730;border:1px solid #1a2548;
  border-radius:10px;padding:18px 22px;
  margin-bottom:32px;
}
.toc__title{
  font-size:13px;font-weight:700;color:#fff;
  letter-spacing:.04em;text-transform:uppercase;
  margin-bottom:10px;
}
.toc ol{
  list-style:none;padding:0;margin:0;
  counter-reset:tocstep;
  columns:2;column-gap:24px;
}
.toc li{
  counter-increment:tocstep;
  padding:5px 0 5px 26px;
  position:relative;font-size:13px;
  break-inside:avoid;
}
.toc li::before{
  content:counter(tocstep, decimal-leading-zero);
  position:absolute;left:0;top:5px;
  font-size:11px;color:#fbbf24;font-weight:700;
}
.toc a{color:#9aa6c0;transition:color .15s}
.toc a:hover{color:#fff}

/* sections */
.article__body{font-size:14.5px;color:#aab4cc;line-height:1.75}
.article__body section{
  scroll-margin-top:90px;
  padding-top:14px;margin-top:14px;
}
.article__body h2{
  font-size:20px;color:#fff;font-weight:700;
  margin:30px 0 12px;letter-spacing:.01em;
  display:flex;align-items:baseline;gap:10px;
}
.article__body h2::before{
  content:"";width:6px;height:6px;border-radius:50%;
  background:#fbbf24;flex-shrink:0;
  transform:translateY(-3px);
}
.article__body h3{
  font-size:15px;color:#fff;font-weight:600;
  margin:22px 0 8px;
}
.article__body p{margin-bottom:12px}
.article__body p b{color:#dfe5f1;font-weight:600}
.article__body ul, .article__body ol{
  margin:8px 0 16px 22px;padding:0;
}
.article__body li{margin-bottom:8px}
.article__body a{color:#fbbf24;text-decoration:underline;text-decoration-color:rgba(58,169,255,.35)}
.article__body a:hover{color:#fde047}

.article__callout{
  background:rgba(245,166,35,.08);
  border:1px solid rgba(245,166,35,.25);
  border-left:3px solid #fbbf24;
  padding:14px 18px;border-radius:8px;
  margin:18px 0;font-size:13.5px;color:#dfe5f1;
}
.article__callout b{color:#fbbf24}

@media (max-width:768px){
  .article{padding:18px 16px 40px}
  .article__title{font-size:22px}
  .toc ol{columns:1}
  .article__body h2{font-size:17px}
  .article__body{font-size:14px}
}

/* ===== FOOTER (store edition: categories rail + 3-col body) ===== */
.footer{
  background:#0d0d11;
  border-top:1px solid #2a2a32;
  margin-top:50px;
  font-style:normal;
}

/* Featured categories rail */
.footer__cats{
  max-width:1700px;margin:0 auto;
  display:grid;grid-template-columns:repeat(8,1fr);
  border-bottom:1px solid #2a2a32;
}
.cat{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  padding:18px 10px;
  border-right:1px solid #2a2a32;
  color:#9aa6c0;font-size:12px;font-weight:600;
  text-decoration:none;
  transition:all .2s;
}
.cat:last-child{border-right:0}
.cat__icon{
  font-size:18px;
  width:34px;height:34px;border-radius:50%;
  background:#1a1a1e;border:1px solid #2a2a32;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;
}
.cat:hover{color:#fff;background:rgba(16,185,129,.05)}
.cat:hover .cat__icon{
  border-color:#fbbf24;color:#fbbf24;
  box-shadow:0 0 0 3px rgba(16,185,129,.1);
}

/* Main body */
.footer__inner{
  max-width:1700px;margin:0 auto;
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1.2fr;
  gap:42px;padding:36px 28px;
}
.footer__col{display:flex;flex-direction:column}
.footer__col--contacts{font-style:normal}

.footer__brand .logo{margin-bottom:14px}
.footer__lead{
  font-size:13px;color:#8b91a8;line-height:1.65;
  max-width:380px;margin-bottom:18px;
}
.footer__lead b{color:#dde4f1;font-weight:600}

/* trust badges */
.footer__badges{
  display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px;
}
.badge{
  font-size:10.5px;font-weight:700;letter-spacing:.04em;
  padding:5px 10px;border-radius:4px;
  background:rgba(16,185,129,.08);
  color:#fde047;
  border:1px solid rgba(16,185,129,.25);
}

.footer__title{
  color:#fbbf24;font-size:11px;font-weight:800;
  text-transform:uppercase;letter-spacing:.14em;
  margin-bottom:14px;
}
.footer__text{font-size:12px;color:#8b91a8;line-height:1.55;margin-bottom:14px}
.footer__list li{margin-bottom:10px}
.footer__list a{color:#9aa6c0;font-size:13px;transition:color .15s}
.footer__list a:hover{color:#fff}

.footer__mail{
  display:inline-block;font-size:13px;color:#fbbf24;
  margin-bottom:14px;border-bottom:1px dashed rgba(168,85,247,.4);
}
.footer__mail:hover{color:#fde047;border-bottom-color:#fde047}

/* social icons */
.socials{display:flex;gap:8px;list-style:none;padding:0;margin:0}
.socials a{
  display:flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:6px;
  background:#15151a;border:1px solid #2a2a32;
  color:#7a86a3;
  transition:all .15s;
}
.socials a:hover{
  color:#fbbf24;border-color:#fbbf24;
  background:#1a1a22;
  transform:translateY(-1px);
}
.socials svg{width:16px;height:16px;display:block}

.btn--sm{padding:8px 16px;font-size:11px;align-self:flex-start}

/* bottom strip */
.footer__bottom{
  max-width:1700px;margin:0 auto;
  border-top:1px solid #2a2a32;
  padding:14px 28px;
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;flex-wrap:wrap;
}
.footer__pays{display:flex;gap:6px;flex-wrap:wrap}
.pay{
  font-size:9.5px;font-weight:800;letter-spacing:.08em;
  color:#7a86a3;
  background:#15151a;border:1px solid #2a2a32;
  padding:5px 10px;border-radius:3px;
}
.footer__copy{
  font-size:11px;color:#5a647e;line-height:1.5;
  margin:0;flex:1;text-align:right;min-width:240px;
}

/* ===== SEO TEXT BLOCK (full-width) ===== */
.seo{
  background-color:#16161a;
  border-top:1px solid #2a2a32;
  border-bottom:1px solid #2a2a32;
  padding:60px 28px;
  position:relative;
  overflow:hidden;
  scroll-margin-top:80px; /* sticky topbar offset */
}
.seo::before{
  content:"";
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(245,166,35,.05), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(91,135,255,.04), transparent 55%);
  pointer-events:none;
}
.seo__sub[id]{scroll-margin-top:80px}
.seo::before{
  content:"";
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(245,166,35,.06), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(91,135,255,.05), transparent 50%);
  pointer-events:none;
}
.seo__inner{position:relative;max-width:1100px;margin:0 auto}
.seo__title{
  font-size:24px;font-weight:800;color:#fff;
  text-align:center;margin-bottom:16px;letter-spacing:.02em;
}
.seo__title span{
  background:linear-gradient(90deg,#fbbf24,#fbbf24);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.seo__lead{
  font-size:14px;color:#aab4cc;line-height:1.7;
  text-align:center;max-width:780px;margin:0 auto 30px;
}
.seo__lead b{color:#fff;font-weight:600}

.seo__cols{
  display:grid;grid-template-columns:1fr 1fr;
  gap:36px;margin-bottom:34px;
}
.seo__sub{
  font-size:16px;font-weight:700;color:#fff;
  margin-bottom:14px;letter-spacing:.02em;
}
.seo__sub--center{text-align:center;margin-top:12px;font-size:18px}

.seo__list{
  list-style:none;padding:0;margin:0;
  font-size:13.5px;color:#9aa6c0;line-height:1.65;
}
.seo__list li{
  position:relative;padding:6px 0 6px 24px;
  border-bottom:1px solid rgba(255,255,255,.04);
}
.seo__list li:last-child{border-bottom:0}
.seo__list li b{color:#dfe5f1;font-weight:600}

/* нумерация для ol */
.seo__list[is="ol"], ol.seo__list{counter-reset:step}
ol.seo__list li{counter-increment:step}
ol.seo__list li::before{
  content:counter(step);
  position:absolute;left:0;top:7px;
  width:18px;height:18px;border-radius:50%;
  background:linear-gradient(180deg,#fde047,#b45309);
  color:#1a1000;font-weight:800;font-size:10px;
  display:flex;align-items:center;justify-content:center;
}

/* галочки для ul */
ul.seo__list--check li::before{
  content:"✓";
  position:absolute;left:0;top:6px;
  width:18px;height:18px;border-radius:5px;
  background:rgba(61,220,132,.15);color:#3ddc84;
  font-weight:800;font-size:11px;
  display:flex;align-items:center;justify-content:center;
}

/* FAQ */
.faq{display:flex;flex-direction:column;gap:8px;margin-top:18px}
.faq__item{
  background:#1f1f24;
  border:1px solid #2a2a32;
  border-radius:10px;
  padding:0 18px;
  transition:border-color .15s, background .15s;
}
.faq__item[open]{border-color:#3a3a45;background:#26262c}
.faq__item summary{
  cursor:pointer;list-style:none;
  padding:14px 30px 14px 0;
  font-size:14px;font-weight:600;color:#dfe5f1;
  position:relative;
  user-select:none;
}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item summary::after{
  content:"+";
  position:absolute;right:0;top:50%;transform:translateY(-50%);
  width:22px;height:22px;border-radius:6px;
  background:rgba(245,166,35,.12);color:#fbbf24;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:700;line-height:1;
  transition:transform .2s;
}
.faq__item[open] summary::after{content:"−"}
.faq__item summary:hover{color:#fff}
.faq__item p{
  padding:0 0 16px;
  font-size:13px;color:#9aa6c0;line-height:1.65;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ---- ≤1400px: чуть меньше карточек ---- */
@media (max-width:1400px){
  .layout{grid-template-columns:190px 1fr;gap:18px;padding:18px 20px 50px}
  .grid{grid-template-columns:repeat(3,1fr)}
}

/* ---- ≤1280px: убираем боковые декорации, чтобы не лезли на контент ---- */
@media (max-width:1280px){
  body{background-image:none}
}

/* ---- ≤1200px: компактнее, грид 2 в ряд ---- */
@media (max-width:1200px){
  .topbar__inner{gap:18px;padding:12px 18px}
  .topbar__stats{gap:18px}
  .upgrade{padding:18px 0}
  .slot{height:240px;max-width:300px}
  .gauge{width:280px;height:280px}
  .gauge__value{font-size:34px}
  .gauge__value i{font-size:24px}
  .upgrade__caption{font-size:15px}
  .grid{grid-template-columns:repeat(2,1fr)}
  .footer__cats{grid-template-columns:repeat(8,1fr)}
  .cat{padding:14px 6px;font-size:11px}
  .cat__icon{width:30px;height:30px;font-size:15px}
  .footer__inner{grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px}
}

/* ≤1024 — стек, категории 4×2 */
@media (max-width:1024px){
  .footer__cats{grid-template-columns:repeat(4,1fr)}
  .cat:nth-child(4){border-right:0}
  .cat:nth-child(-n+4){border-bottom:1px solid #2a2a32}
  .footer__inner{grid-template-columns:1fr 1fr;gap:28px;padding:30px 20px}
  .footer__brand{grid-column:1 / -1;max-width:600px}
  .footer__bottom{flex-direction:column;align-items:flex-start;gap:10px;padding:14px 20px}
  .footer__copy{text-align:left;flex:1 0 100%;min-width:0}
}

/* ---- ≤1024px: сайдбар уезжает наверх горизонтально ---- */
/* ---- ≤1024px: планшет / широкий мобайл ---- */
@media (max-width:1024px){
  .layout{grid-template-columns:1fr;gap:16px;padding:16px}

  /* инвентарь — горизонтальный скролл лентой */
  .sidebar{padding:0;background:transparent;border:0}
  .inv{
    display:flex;flex-direction:row;gap:8px;
    overflow-x:auto;padding-bottom:6px;
    -webkit-overflow-scrolling:touch;
    scrollbar-color:#2a2a32 transparent;
  }
  .inv::-webkit-scrollbar{height:5px}
  .inv::-webkit-scrollbar-thumb{background:#2a2a32;border-radius:3px}
  .inv__item{
    grid-template-columns:1fr;flex:0 0 auto;
    width:120px;flex-direction:column;align-items:center;
    padding:10px 8px;gap:6px;
  }
  .inv__item img{width:80px;height:54px}
  .inv__item div{align-items:center;text-align:center;gap:2px}
  .inv__name{max-width:108px;font-size:11px}

  /* апгрейд: гейдж сверху, слоты ниже 2-в-ряд */
  .upgrade{grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;gap:14px 16px}
  .upgrade__col--center{grid-column:1 / -1;order:-1}
  .gauge{width:260px;height:260px;margin-bottom:6px}
  .slot{height:220px;max-width:100%}
  .bet{grid-template-columns:1fr;gap:12px}

  .content-row{grid-template-columns:1fr}
  .login-card{min-height:280px}

  .tabs-row{grid-template-columns:1fr 1fr;gap:12px}
  .tab{padding:9px 16px;font-size:12px}

  .seo{padding:48px 24px}
}

/* ---- ≤768px: телефон планшетный ---- */
/* ---- ≤768px: телефон ---- */
@media (max-width:768px){
  /* шапка: компактная одна строка lo+stats+steam, соцсети/faq во вторую */
  .topbar__inner{flex-wrap:wrap;gap:8px;padding:10px 14px;align-items:center}
  .logo{flex-shrink:0}
  .logo__icon{width:26px;height:26px}
  .logo__name{font-size:14px;letter-spacing:.04em}

  .topbar__stats{
    order:0;margin-left:auto;gap:10px;flex-shrink:1;
  }
  .stat{gap:5px;font-size:11px}
  .stat__lbl{display:none}
  .stat__copy{flex-direction:row;align-items:baseline;gap:3px}
  .stat b{font-size:12px}
  .stat__ico{width:18px;height:18px}

  .btn--steam{padding:8px 12px;font-size:11px;border-radius:8px}

  /* faq + соцсети идут второй строкой только если влезают; на 768- скрываем faq */
  .topbar__faq{display:none}
  .topbar__socials{display:none}

  .layout{grid-template-columns:1fr;gap:12px;padding:12px}
  .page-title{font-size:20px;margin:4px 0 14px;line-height:1.25}

  /* upgrade в один столбец, всё компактнее */
  .upgrade{grid-template-columns:1fr;padding:8px 0;gap:12px}
  .upgrade__col--left{order:1}
  .upgrade__col--center{order:0;grid-column:auto}
  .upgrade__col--right{order:2}
  .slot{height:160px;max-width:100%;border-radius:12px;margin-bottom:0}
  .slot::after{width:48px;height:54px}
  .slot__title{font-size:12.5px;padding:0 18px;margin-bottom:4px}
  .slot__sub{font-size:11px;padding:0 18px}
  .slot__tools{top:10px;left:10px;gap:6px}
  .slot__tool{width:26px;height:26px;font-size:11px}
  .gauge{width:200px;height:200px}
  .gauge__chevron{width:74px;height:80px}

  /* bet — каждая часть в свою строку */
  .bet{grid-template-columns:1fr;gap:10px;margin-top:0}
  .bet__wallet{height:46px;padding:8px 14px;border-radius:10px}
  .bet__amount{font-size:12px}
  .btn--upgrade{height:48px;font-size:13px;padding:0 24px;border-radius:10px}
  .bet__multipliers{
    justify-content:space-between;flex-wrap:nowrap;
    height:auto;padding:6px;border-radius:10px;gap:4px;
  }
  .mul{padding:0 8px;min-width:36px;height:32px;font-size:11px}

  /* tabs / login / catalog */
  .tabs-row{grid-template-columns:1fr;gap:6px}
  .tabs--right{justify-content:flex-start}
  .tab{padding:8px 14px;font-size:12px;flex:1;text-align:center}
  .content-row{grid-template-columns:1fr;gap:12px}
  .login-card{min-height:200px}
  .login-card__title{font-size:18px}
  .login-card__text{font-size:13px}

  .filters{flex-wrap:wrap;gap:6px}
  .filters__search{flex:1 0 100%;font-size:12px;padding:8px 12px}
  .filters__btn,.filters__sort{height:32px}
  .filters__sort{padding:0 10px;font-size:11px}

  /* catalog cards 2-в-ряд */
  .grid{grid-template-columns:repeat(2,1fr);gap:6px}
  .card{min-height:150px;padding:10px 8px;border-radius:6px}
  .card::before{height:2px}
  .card__img{height:62px;margin:4px 0 6px}
  .card__price{font-size:12.5px;margin-bottom:4px}
  .card__name{font-size:11px}
  .card__skin{font-size:10px}

  .pagination{flex-wrap:wrap;gap:3px;margin-top:10px}
  .page{min-width:30px;height:30px;font-size:11px}

  .seo{padding:30px 16px}
  .seo__title{font-size:18px}
  .seo__lead{font-size:13px;margin-bottom:18px}
  .seo__cols{grid-template-columns:1fr;gap:18px;margin-bottom:18px}
  .seo__sub{font-size:14px}
  .seo__sub--center{font-size:15px}
  .seo__list{font-size:12.5px}
  .faq__item{padding:0 14px}
  .faq__item summary{font-size:12.5px;padding:11px 26px 11px 0}
  .faq__item p{font-size:12px}

  .footer{margin-top:24px}
  .footer__cats{grid-template-columns:repeat(4,1fr)}
  .cat{padding:10px 4px;font-size:9.5px}
  .cat__icon{width:26px;height:26px;font-size:13px}
  .footer__inner{grid-template-columns:1fr;gap:20px;padding:20px 14px}
  .footer__brand{grid-column:auto}
  .footer__lead{max-width:100%;font-size:12px}
  .footer__title{font-size:10.5px}
  .footer__bottom{padding:12px 14px}
  .footer__copy{font-size:10px}
}

/* ---- ≤480px: маленький смартфон ---- */
@media (max-width:480px){
  .topbar__inner{padding:9px 10px;gap:6px}
  .logo__icon{width:22px;height:22px}
  .logo__name{font-size:13px;letter-spacing:.03em}
  .topbar__stats{gap:8px}
  .btn--steam{font-size:10.5px;padding:7px 10px;letter-spacing:0}
  .stat__ico{width:16px;height:16px}
  .stat__copy{gap:3px}
  .stat b{font-size:11px}

  .layout{padding:10px}
  .page-title{font-size:16px;margin:2px 0 12px}

  .gauge{width:180px;height:180px}
  .gauge__chevron{width:64px;height:70px}
  .slot{height:140px}
  .slot__title{font-size:12px;padding:0 12px}
  .slot__sub{font-size:10.5px;padding:0 12px}

  .btn--upgrade{height:46px;font-size:12px}
  .mul{padding:0 6px;min-width:32px;font-size:10.5px}

  .grid{grid-template-columns:repeat(2,1fr);gap:5px}
  .card{min-height:140px;padding:8px 6px}
  .card__img{height:54px}
  .card__price{font-size:11.5px}
  .card__name{font-size:10px}
  .card__skin{font-size:9.5px}

  .footer__cats{grid-template-columns:repeat(4,1fr)}
  .cat{padding:8px 2px;font-size:9px;gap:3px}
  .cat__icon{width:22px;height:22px;font-size:11px}

  .login-card__title{font-size:18px}
  .login-card__text{font-size:13px}
}
