/* css/style.css */

/* ---------- Fonts (local) ---------- */
@font-face {
  font-display: swap;
  font-family: roboto-oh5;
  font-style: normal;
  font-weight: 400;
  src: url("roboto-regular-webfont.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: roboto-oh5;
  font-style: italic;
  font-weight: 400;
  src: url("roboto-italic-webfont.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: roboto-oh5;
  font-style: normal;
  font-weight: 700;
  src: url("roboto-bold-webfont.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: roboto-oh5;
  font-style: italic;
  font-weight: 700;
  src: url("roboto-bolditalic-webfont.woff2") format("woff2");
}

/* ---------- Base / Theme ---------- */
:root{
  --bg: #101223;
  --bg-2: #161834;
  --card: rgba(255,255,255,.06);
  --card-2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.12);
  --stroke-2: rgba(255,255,255,.18);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --soft: rgba(255,255,255,.6);

  --accent: #7046bf;
  --accent-2: #a85cff;
  --gold: #f59316;
  --hot: #ff4d7d;

  --radius: 14px;
  --radius-sm: 10px;

  --shadow: 0 12px 34px rgba(0,0,0,.45);
  --shadow-soft: 0 10px 22px rgba(0,0,0,.25);

  --focus: rgba(168, 92, 255, .55);

  --container: 1350px;
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  color: var(--text);
  font-family: roboto-oh5, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(112,70,191,.35), transparent 60%),
    radial-gradient(1000px 600px at 90% 10%, rgba(245,147,22,.22), transparent 65%),
    radial-gradient(900px 520px at 40% 95%, rgba(255,77,125,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: #d7c2ff; text-decoration: none; }
a:hover{ color: #fff; }

p{ margin: 0 0 14px; }
ul, ol{ margin: 0 0 14px; padding-left: 22px; }
li{ margin: 0 0 10px; }

::selection{ background: rgba(112,70,191,.55); color: #fff; }

@media (max-width: 992px){
  body{ font-size: 16px; }
}

/* ---------- Accessibility helpers ---------- */
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.skip-link{
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,.85);
  border: 1px solid var(--stroke);
  color: #fff;
  transform: translateY(-200%);
  transition: transform .2s ease;
  z-index: 999999;
}
.skip-link:focus{ transform: translateY(0); outline: none; box-shadow: 0 0 0 4px var(--focus); }

:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
  border-radius: 10px;
}

/* ---------- Layout containers ---------- */
.container{
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 15px;
}

.small-wrapper{
  margin: 0 auto;
  max-width: 1040px;
}
@media (max-width: 1345px){
  .small-wrapper{ max-width: 920px; }
}

/* ---------- Header ---------- */
.site-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 0 10px;
  flex-wrap: wrap;
}

.site-header__left{
  display: grid;
  gap: 6px;
  align-content: start;
}
.site-header__logo{
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}

.site-header__tagline{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .2px;
}

.site-header__right{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header__live{
  display: grid;
  gap: 4px;
  justify-items: end;
}
.live-pill{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  color: var(--muted);
}
.live-pill strong{ color: #fff; }
.live-sub{
  font-size: 12px;
  color: var(--soft);
}

/* ---------- Buttons ---------- */
.site-header__buttons{
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  user-select: none;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}

.btn:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

.btn--primary{
  border-color: rgba(112,70,191,.55);
  background: linear-gradient(135deg, rgba(112,70,191,.92), rgba(168,92,255,.92));
}
.btn--ghost{
  background: rgba(255,255,255,.05);
}
.btn--cta{
  border-color: rgba(245,147,22,.55);
  background: linear-gradient(135deg, rgba(245,147,22,.92), rgba(255,207,115,.88));
  color: #1a1208;
  text-shadow: none;
}
.btn--secondary{
  border-color: rgba(112,70,191,.45);
  background: linear-gradient(135deg, rgba(86,15,59,.85), rgba(117,58,136,.9));
}
.btn--wide{
  width: 100%;
  text-transform: none;
  font-weight: 800;
  letter-spacing: .2px;
}

.js-lazy-link[aria-disabled="true"]{
  opacity: .92;
}

/* ---------- Nav ---------- */
/* ---------- Nav ---------- */
.site-nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 0 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* desktop layout: links live as flex row */
.site-nav__links{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.site-nav a{
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .14s ease, transform .14s ease;
}

.site-nav a:hover{
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

/* ---------- Mobile burger nav (off-canvas) ---------- */
.nav-toggle{
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-weight: 950;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.nav-toggle__text{
  font-size: 13px;
  text-transform: uppercase;
}

.nav-toggle__icon{
  position: relative;
  width: 22px;
  height: 14px;
  display: inline-block;
}

/* middle line */
.nav-toggle__icon{
  background: rgba(255,255,255,.92);
  height: 2px;
  border-radius: 999px;
  margin-top: 6px;
  transition: opacity .18s ease;
}

/* top + bottom lines */
.nav-toggle__icon::before,
.nav-toggle__icon::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  transition: transform .18s ease, top .18s ease, opacity .18s ease;
}
.nav-toggle__icon::before{ top: 2px; }
.nav-toggle__icon::after{ top: 10px; }

/* overlay */
.nav-overlay{
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.site-nav__drawer-head{
  display: none;
}

@media (max-width: 640px){
  /* CRITICAL FIX: backdrop-filter on parent may break fixed drawer on mobile */
  .site-nav{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: relative;
    z-index: 100000;
  }

  /* show burger, hide inline links in header row */
  .nav-toggle{ display: inline-flex; }

  /* turn links into fixed drawer */
  .site-nav__links{
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(88vw, 360px);
    z-index: 100002;

    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
    background: rgba(14, 16, 33, .94);
    border-left: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 44px rgba(0,0,0,.55);

    display: flex;
    flex-direction: column;
    gap: 6px;

    transform: translateX(110%);
    transition: transform .20s ease;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav__drawer-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px;
    margin-bottom: 6px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
  }

  .site-nav__drawer-title{
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: 12px;
    color: rgba(255,255,255,.85);
  }

  .nav-close{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .site-nav__links a{
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.92);

    font-size: 14px;
    font-weight: 900;
    text-transform: none;
    letter-spacing: .2px;
  }
  .site-nav__links a::after{
    content: "→";
    opacity: .65;
  }

  /* open state */
  body.nav-open .site-nav__links{
    transform: translateX(0);
  }
  body.nav-open .nav-overlay{
    opacity: 1;
    pointer-events: auto;
  }

  /* Animate burger to X */
  body.nav-open .nav-toggle__icon{ opacity: 0; }
  body.nav-open .nav-toggle__icon::before{
    top: 6px;
    transform: rotate(45deg);
  }
  body.nav-open .nav-toggle__icon::after{
    top: 6px;
    transform: rotate(-45deg);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .site-nav__links,
  .nav-overlay,
  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after{
    transition: none !important;
  }
}
/* ---------- Hero / Banner ---------- */
.site-hero{ margin-top: 10px; }
.site-banner{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 26px;
  min-height: 280px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.10);

  background:
    linear-gradient(92deg, rgba(0,0,0,.62), rgba(0,0,0,.22) 55%, rgba(0,0,0,.10)),
    url("banner-bg.svg") center/cover no-repeat;
}

.site-banner::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 25% 20%, rgba(112,70,191,.33), transparent 60%),
    radial-gradient(620px 320px at 75% 55%, rgba(245,147,22,.18), transparent 60%);
  pointer-events: none;
}

.site-banner > *{ position: relative; z-index: 1; }

.site-banner__kicker{
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

.site-banner__title{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: .2px;
}

.site-banner__text{
  margin: 0 0 16px;
  color: rgba(255,255,255,.85);
  max-width: 62ch;
}

.site-banner__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.hero-badges{
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-badges li{
  margin: 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  font-size: 13px;
}

@media (max-width: 895px){
  .site-banner{ background-position: 42% center; }
  .site-banner__title{ font-size: 28px; }
}

/* ---------- Sections / Headings ---------- */
.section-head{
  margin: 18px 0 12px;
  display: grid;
  gap: 10px;
}

.section-subtitle{
  margin: 0;
  color: var(--muted);
}

.site-article h1,
.site-article h2,
.site-article h3{
  margin: 22px 0 10px;
  line-height: 1.22;
}

.site-article h1{
  margin-top: 0;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: .2px;
}

.site-article h2{
  font-size: 24px;
  font-weight: 900;
  position: relative;
  padding-top: 6px;
}
.site-article h2::before{
  content:"";
  position: absolute;
  top: 0;
  left: 0;
  width: 74px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), rgba(245,147,22,.9));
  box-shadow: 0 8px 20px rgba(112,70,191,.25);
}

.site-article h3{
  font-size: 18px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
}

.article-head{
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-soft);
}

.article-lead{
  font-size: 16px;
  color: rgba(255,255,255,.86);
}

@media (max-width: 900px){
  .site-article h1{ font-size: 28px; }
}

/* ---------- Games / Grid ---------- */
.games-wrapper{
  margin-top: 18px;
}

.games-wrapper__title{
  font-size: 28px;
  font-weight: 950;
  margin: 0;
}

.games-tools{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.field{
  display: grid;
  gap: 6px;
  min-width: min(520px, 100%);
}

.field__label{
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.field__input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: #fff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.field__input::placeholder{ color: rgba(255,255,255,.55); }

.games-tools__meta{
  font-size: 14px;
  color: rgba(255,255,255,.78);
}
.games-tools__meta strong{ color: #fff; }

.games{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px){
  .games{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .games{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px){
  .games{ grid-template-columns: 1fr; }
}

.game{
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transform: translateZ(0);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.game:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 16px 36px rgba(0,0,0,.40);
}

.game__cover{
  width: 100%;
  height: 100%;
  min-height: 175px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
}

.game__title{
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(215,194,255,.95);
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  background:
    linear-gradient(180deg, rgba(0,0,0,.00), rgba(0,0,0,.55));
  text-align: right;
}

.game__play-btn{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.game__play-btn::before{
  content: "Играть";
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(112,70,191,.86);
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .4px;
  color: #fff;
}

.game:hover .game__play-btn{ opacity: 1; }

.game__badge{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #101223;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
}
.game__badge[data-label="HIT"]{
  background: linear-gradient(135deg, rgba(245,147,22,.98), rgba(255,211,138,.92));
}
.game__badge[data-label="NEW"]{
  background: linear-gradient(135deg, rgba(168,92,255,.98), rgba(112,70,191,.92));
  color: #fff;
}
.game__badge[data-label="HOT"]{
  background: linear-gradient(135deg, rgba(255,77,125,.98), rgba(255,149,176,.92));
  color: #1a0b11;
}

.noscript-note{
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.8);
}

/* ---------- Content layout (main + aside) ---------- */
.content-layout{
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.content-layout__main,
.content-layout__aside{
  min-width: 0;
}

@media (max-width: 980px){
  .content-layout{ grid-template-columns: 1fr; }
}

/* ---------- Article cards / blocks ---------- */
.site-article{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-soft);
}

/* Read more */
.read-more{
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow: hidden;
}

.read-more > summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.read-more > summary::-webkit-details-marker{ display:none; }
.read-more > summary::after{
  content:"＋";
  font-size: 18px;
  color: rgba(255,255,255,.8);
  line-height: 1;
}
.read-more[open] > summary::after{ content:"—"; }

.read-more > *:not(summary){
  padding: 0 14px 14px;
}

/* Reviews */
.reviews{ margin-top: 18px; }
.review{
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.review__nick{
  margin: 0 0 6px;
  font-weight: 900;
  color: rgba(255,255,255,.9);
}
.review__text{
  margin: 0;
  color: rgba(255,255,255,.82);
}

/* FAQ */
.faq{ margin-top: 18px; }
.faq-list{
  display: grid;
  gap: 10px;
}

.faq-item{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow: hidden;
}
.faq-item > summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item > summary::-webkit-details-marker{ display:none; }
.faq-item > summary::after{
  content:"▸";
  transform: rotate(0deg);
  transition: transform .14s ease;
  color: rgba(255,255,255,.75);
}
.faq-item[open] > summary::after{
  transform: rotate(90deg);
}
.faq-item__body{
  padding: 0 14px 14px;
  color: rgba(255,255,255,.82);
}

/* Responsible / support */
.responsible{
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(245,147,22,.22);
  background: linear-gradient(135deg, rgba(245,147,22,.10), rgba(112,70,191,.08));
  color: rgba(255,255,255,.86);
}

/* ---------- Aside: Expert card + Quick actions ---------- */
.expert-card,
.quick-actions{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow-soft);
}

.expert-card h2,
.quick-actions h2{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.9);
}

.expert-card__name{ margin: 0 0 6px; }
.expert-card__role{ margin: 0 0 10px; color: rgba(255,255,255,.75); }
.expert-card__note{
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.expert-card__bullets{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.82);
}

.quick-actions{ margin-top: 12px; }
.quick-actions .btn{ margin-top: 10px; }

/* ---------- Payment methods (sprites preserved) ---------- */
.payment-methods-wrapper{
  margin: 26px 0;
}

.payment-methods-wrapper__title,
.providers-wrapper__title{
  display: block;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 10px;
}

.payment-methods{
  padding: 8px 0;
  border-top: 1px dashed rgba(255,255,255,.18);
  border-bottom: 1px dashed rgba(255,255,255,.18);
  background: rgba(0,0,0,.12);
}
.payment-methods ul{
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-methods ul li{ padding: 10px; margin: 0; }
.payment-methods ul li i{
  background-image: url("sprite-payment-systems.svg");
  background-repeat: no-repeat;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  transition: transform .14s ease, filter .14s ease;
}
.payment-methods ul li:hover i{
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.35));
}

/* Original sprite coordinates */
.payment-methods ul li:first-child i{background-position:-1114px 0;height:60px;width:85px}
.payment-methods ul li:first-child:hover i{background-position:-838px -1039px;height:60px;width:85px}
.payment-methods ul li:nth-child(2) i{background-position:-379px -1039px;height:60px;width:88px}
.payment-methods ul li:nth-child(2):hover i{background-position:-286px -1039px;height:60px;width:88px}
.payment-methods ul li:nth-child(3) i{background-position:-907px -974px;height:60px;width:92px}
.payment-methods ul li:nth-child(3):hover i{background-position:-1004px -974px;height:60px;width:92px}
.payment-methods ul li:nth-child(4) i{background-position:-205px -974px;height:60px;width:97px}
.payment-methods ul li:nth-child(4):hover i{background-position:-103px -974px;height:60px;width:97px}
.payment-methods ul li:nth-child(5) i{background-position:-447px -519px;height:60px;width:142px}
.payment-methods ul li:nth-child(5):hover i{background-position:-294px -584px;height:60px;width:142px}
.payment-methods ul li:nth-child(6) i{background-position:-656px -1039px;height:60px;width:86px}
.payment-methods ul li:nth-child(6):hover i{background-position:-747px -1039px;height:60px;width:86px}
.payment-methods ul li:nth-child(7) i{background-position:0 -714px;height:60px;width:129px}
.payment-methods ul li:nth-child(7):hover i{background-position:-268px -714px;height:60px;width:129px}
.payment-methods ul li:nth-child(8) i{background-position:-234px -844px;height:60px;width:111px}
.payment-methods ul li:nth-child(8):hover i{background-position:-350px -844px;height:60px;width:111px}

/* ---------- Providers (scroll) ---------- */
.providers-wrapper{
  margin: 26px 0 8px;
}

.providers{
  padding: 10px 0;
  background: rgba(0,0,0,.12);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-soft);
}

.providers--scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.providers ul{
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  min-width: max-content;
  scroll-snap-type: x mandatory;
}
.providers ul li{
  margin: 0;
  padding: 10px;
  scroll-snap-align: start;
}

.providers ul li i{
  background-image: url("sprite-partners.svg");
  background-repeat: no-repeat;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  transition: transform .14s ease, filter .14s ease;
}
.providers ul li:hover i{
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.35));
}

/* Original providers sprite coordinates */
.providers ul li:first-child i{background-position:-175px -390px;height:60px;width:170px}
.providers ul li:first-child:hover i{background-position:0 -390px;height:60px;width:170px}
.providers ul li:nth-child(2) i{background-position:-931px -65px;height:60px;width:125px}
.providers ul li:nth-child(2):hover i{background-position:-931px -130px;height:60px;width:125px}
.providers ul li:nth-child(3) i{background-position:-619px -325px;height:60px;width:156px}
.providers ul li:nth-child(3):hover i{background-position:-619px -390px;height:60px;width:156px}
.providers ul li:nth-child(4) i{background-position:-436px 0;height:60px;width:178px}
.providers ul li:nth-child(4):hover i{background-position:-436px -65px;height:60px;width:178px}
.providers ul li:nth-child(5) i{background-position:-784px -585px;height:60px;width:134px}
.providers ul li:nth-child(5):hover i{background-position:-784px -520px;height:60px;width:134px}
.providers ul li:nth-child(6) i{background-position:-784px -650px;height:60px;width:134px}
.providers ul li:nth-child(6):hover i{background-position:-784px -715px;height:60px;width:134px}
.providers ul li:nth-child(7) i{background-position:-175px -455px;height:60px;width:165px}
.providers ul li:nth-child(7):hover i{background-position:-345px -455px;height:60px;width:165px}
.providers ul li:nth-child(8) i{background-position:-410px -780px;height:60px;width:131px}
.providers ul li:nth-child(8):hover i{background-position:-274px -780px;height:60px;width:131px}
.providers ul li:nth-child(9) i{background-position:-221px -975px;height:60px;width:103px}
.providers ul li:nth-child(9):hover i{background-position:-113px -975px;height:60px;width:103px}
.providers ul li:nth-child(10) i{background-position:-350px -390px;height:60px;width:170px}
.providers ul li:nth-child(10):hover i{background-position:0 -455px;height:60px;width:170px}
.providers ul li:nth-child(11) i{background-position:-452px -715px;height:60px;width:145px}
.providers ul li:nth-child(11):hover i{background-position:-302px -715px;height:60px;width:145px}
.providers ul li:nth-child(12) i{background-position:-619px -260px;height:60px;width:159px}
.providers ul li:nth-child(12):hover i{background-position:-619px -195px;height:60px;width:159px}
.providers ul li:nth-child(13) i{background-position:-186px -325px;height:60px;width:181px}
.providers ul li:nth-child(13):hover i{background-position:0 -325px;height:60px;width:181px}
.providers ul li:nth-child(14) i{background-position:-122px -910px;height:60px;width:117px}
.providers ul li:nth-child(14):hover i{background-position:0 -910px;height:60px;width:117px}
.providers ul li:nth-child(15) i{background-position:0 -715px;height:60px;width:146px}
.providers ul li:nth-child(15):hover i{background-position:-151px -715px;height:60px;width:146px}
.providers ul li:nth-child(16) i{background-position:-223px 0;height:60px;width:208px}
.providers ul li:nth-child(16):hover i{background-position:0 -130px;height:60px;width:208px}
.providers ul li:nth-child(17) i{background-position:0 -520px;height:60px;width:160px}
.providers ul li:nth-child(17):hover i{background-position:-165px -520px;height:60px;width:160px}
.providers ul li:nth-child(18) i{background-position:-671px -845px;height:60px;width:128px}
.providers ul li:nth-child(18):hover i{background-position:-538px -845px;height:60px;width:128px}
.providers ul li:nth-child(19) i{background-position:-784px -325px;height:60px;width:140px}
.providers ul li:nth-child(19):hover i{background-position:-784px -260px;height:60px;width:140px}
.providers ul li:nth-child(20) i{background-position:0 -1040px;height:60px;width:56px}
.providers ul li:nth-child(20):hover i{background-position:-525px -390px;height:60px;width:56px}
.providers ul li:nth-child(21) i{background-position:-931px -260px;height:60px;width:124px}
.providers ul li:nth-child(21):hover i{background-position:-931px -325px;height:60px;width:124px}
.providers ul li:nth-child(22) i{background-position:0 -650px;height:60px;width:149px}
.providers ul li:nth-child(22):hover i{background-position:-628px -585px;height:60px;width:149px}
.providers ul li:nth-child(23) i{background-position:-515px -455px;height:60px;width:98px}
.providers ul li:nth-child(23):hover i{background-position:-753px -975px;height:60px;width:98px}
.providers ul li:nth-child(24) i{background-position:-1061px -910px;height:60px;width:65px}
.providers ul li:nth-child(24):hover i{background-position:-1061px -845px;height:60px;width:65px}
.providers ul li:nth-child(25) i{background-position:-495px -520px;height:60px;width:118px}
.providers ul li:nth-child(25):hover i{background-position:-804px -845px;height:60px;width:118px}
.providers ul li:nth-child(26) i{background-position:-137px -780px;height:60px;width:132px}
.providers ul li:nth-child(26):hover i{background-position:0 -780px;height:60px;width:132px}
.providers ul li:nth-child(27) i{background-position:-329px -975px;height:60px;width:102px}
.providers ul li:nth-child(27):hover i{background-position:-436px -975px;height:60px;width:102px}
.providers ul li:nth-child(28) i{background-position:-195px -195px;height:60px;width:190px}
.providers ul li:nth-child(28):hover i{background-position:0 -195px;height:60px;width:190px}
.providers ul li:nth-child(29) i{background-position:-135px -845px;height:60px;width:130px}
.providers ul li:nth-child(29):hover i{background-position:-546px -780px;height:60px;width:130px}
.providers ul li:nth-child(30) i{background-position:-931px -520px;height:60px;width:120px}
.providers ul li:nth-child(30):hover i{background-position:-931px -650px;height:60px;width:120px}
.providers ul li:nth-child(31) i{background-position:-816px -780px;height:60px;width:108px}
.providers ul li:nth-child(31):hover i{background-position:0 -975px;height:60px;width:108px}
.providers ul li:nth-child(32) i{background-position:-648px -975px;height:60px;width:100px}
.providers ul li:nth-child(32):hover i{background-position:-543px -975px;height:60px;width:100px}
.providers ul li:nth-child(33) i{background-position:-931px -390px;height:60px;width:120px}
.providers ul li:nth-child(33):hover i{background-position:-931px -715px;height:60px;width:120px}
.providers ul li:nth-child(34) i{background-position:-436px -130px;height:60px;width:177px}
.providers ul li:nth-child(34):hover i{background-position:-436px -195px;height:60px;width:177px}
.providers ul li:nth-child(35) i{background-position:-931px -195px;height:60px;width:125px}
.providers ul li:nth-child(35):hover i{background-position:-931px 0;height:60px;width:125px}
.providers ul li:nth-child(36) i{background-position:-784px -390px;height:60px;width:139px}
.providers ul li:nth-child(36):hover i{background-position:-784px -455px;height:60px;width:139px}
.providers ul li:nth-child(37) i{background-position:-154px -650px;height:60px;width:148px}
.providers ul li:nth-child(37):hover i{background-position:-460px -650px;height:60px;width:148px}
.providers ul li:nth-child(38) i{background-position:-619px -520px;height:60px;width:153px}
.providers ul li:nth-child(38):hover i{background-position:-619px -455px;height:60px;width:153px}
.providers ul li:nth-child(39) i{background-position:-606px -910px;height:60px;width:115px}
.providers ul li:nth-child(39):hover i{background-position:-486px -910px;height:60px;width:115px}
.providers ul li:nth-child(40) i{background-position:-365px -910px;height:60px;width:116px}
.providers ul li:nth-child(40):hover i{background-position:-244px -910px;height:60px;width:116px}
.providers ul li:nth-child(41) i{background-position:0 -260px;height:60px;width:187px}
.providers ul li:nth-child(41):hover i{background-position:-192px -260px;height:60px;width:187px}
.providers ul li:nth-child(42) i{background-position:-931px -780px;height:60px;width:119px}
.providers ul li:nth-child(42):hover i{background-position:-931px -845px;height:60px;width:119px}
.providers ul li:nth-child(43) i{background-position:-1061px -325px;height:60px;width:87px}
.providers ul li:nth-child(43):hover i{background-position:-1061px -390px;height:60px;width:87px}

/* Nice scrollbar for providers on desktop */
.providers--scroll::-webkit-scrollbar{ height: 8px; }
.providers--scroll::-webkit-scrollbar-track{ background: rgba(255,255,255,.06); border-radius: 999px; }
.providers--scroll::-webkit-scrollbar-thumb{ background: rgba(112,70,191,.55); border-radius: 999px; }

/* ---------- Footer ---------- */
.site-footer{
  padding: 18px 0 50px;
  color: rgba(255,255,255,.75);
}

.site-footer__images{
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer__copyright{
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

/* ---------- Chat widget ---------- */
.chat{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99999;
  display: grid;
  gap: 10px;
  pointer-events: none; /* включаем взаимодействие только на активных элементах */
}

.chat__toggle{
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(112,70,191,.92), rgba(168,92,255,.86));
  color: #fff;
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: .3px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .14s ease, filter .14s ease;
}
.chat__toggle:hover{ transform: translateY(-1px); filter: brightness(1.03); }

.chat__panel{
  pointer-events: auto;
  width: min(380px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 92px));
  display: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(14, 16, 33, .92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.chat[data-state="open"] .chat__panel{ display: grid; grid-template-rows: auto 1fr auto auto; }
.chat[data-state="open"] .chat__toggle{ border-color: rgba(255,255,255,.22); }

.chat__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.chat__title{
  display: grid;
  gap: 2px;
}
.chat__status{
  font-size: 12px;
  color: rgba(255,255,255,.7);
}
.chat__close{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  cursor: pointer;
}

.chat__body{
  padding: 12px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.chat__msg{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
  box-shadow: 0 10px 18px rgba(0,0,0,.20);
}
.chat__msg--user{
  margin-left: auto;
  max-width: 90%;
  border-color: rgba(112,70,191,.25);
  background: rgba(112,70,191,.14);
}
.chat__msg--support{
  margin-right: auto;
  max-width: 90%;
}
.chat__msg--typing{
  font-style: italic;
  opacity: .85;
}

.chat__qa{
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
}
.chat__qa-title{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.68);
  margin-bottom: 8px;
}
.chat__qa-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.chat__qa-btn{
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.9);
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.chat__qa-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

.chat__foot{
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.chat__hint{
  font-size: 12px;
  color: rgba(255,255,255,.65);
}

@media (max-width: 420px){
  .chat__qa-list{ grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .btn, .site-nav a, .game, .chat__toggle, .chat__qa-btn,
  .faq-item > summary::after{
    transition: none !important;
  }
}

/* --- Chat: collapse QA list after clicking a question --- */
.chat[data-qa="collapsed"] .chat__qa{
  display: none;
}

/* чтобы низ не “прыгал” и подсказка оставалась видимой */
.chat[data-qa="collapsed"] .chat__foot{
  border-top: 1px solid rgba(255,255,255,.10);
}

/* ---------- Mobile burger nav (off-canvas) ---------- */
.nav-toggle{
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-weight: 950;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.nav-toggle__text{
  font-size: 13px;
  text-transform: uppercase;
}

.nav-toggle__icon{
  position: relative;
  width: 22px;
  height: 14px;
  display: inline-block;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  transition: transform .18s ease, top .18s ease, opacity .18s ease;
}
.nav-toggle__icon::before{ top: 2px; }
.nav-toggle__icon::after{ top: 10px; }
.nav-toggle__icon{
  background: rgba(255,255,255,.92);
  height: 2px;
  border-radius: 999px;
  margin-top: 6px;
  transition: opacity .18s ease;
}

/* overlay */
.nav-overlay{
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

/* Drawer container (links block becomes drawer only on mobile) */
.site-nav__drawer-head{
  display: none; /* desktop hidden */
}

@media (max-width: 640px){
  .site-nav{
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
  }

  .nav-toggle{ display: inline-flex; }

  /* On mobile we turn links into a fixed drawer */
  .site-nav__links{
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(88vw, 360px);
    z-index: 99999;

    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
    background: rgba(14, 16, 33, .94);
    border-left: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 44px rgba(0,0,0,.55);
    backdrop-filter: blur(14px);

    display: flex;
    flex-direction: column;
    gap: 6px;

    transform: translateX(110%);
    transition: transform .20s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav__drawer-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px;
    margin-bottom: 6px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
  }
  .site-nav__drawer-title{
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: 12px;
    color: rgba(255,255,255,.85);
  }
  .nav-close{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .site-nav__links a{
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.92);

    font-size: 14px;
    font-weight: 900;
    text-transform: none;
    letter-spacing: .2px;
  }
  .site-nav__links a::after{
    content: "→";
    opacity: .65;
  }
  .site-nav__links a:hover{
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.16);
  }

  /* Open state */
  body.nav-open{
    overflow: hidden;
    touch-action: none;
  }
  body.nav-open .site-nav__links{
    transform: translateX(0);
    justify-content: flex-start;
  }
  body.nav-open .nav-overlay{
    opacity: 1;
    pointer-events: auto;
  }

  /* Animate burger to X when open */
  body.nav-open .nav-toggle__icon{ opacity: 0; }
  body.nav-open .nav-toggle__icon::before{
    top: 6px;
    transform: rotate(45deg);
  }
  body.nav-open .nav-toggle__icon::after{
    top: 6px;
    transform: rotate(-45deg);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .site-nav__links,
  .nav-overlay,
  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after{
    transition: none !important;
  }
}