/* ─────────────────────────────────────────────────────────
   Base / Reset
────────────────────────────────────────────────────────── */
html, body{
  margin:0;
  max-width:100%;
  overflow-x:hidden;
}
html { scrollbar-gutter: stable both-edges; }   /* стабильная ширина скроллбара */

*{ box-sizing:border-box }
img, video, canvas, svg, iframe{ max-width:100%; height:auto; display:block }

/* Цвета/константы */
:root{
  --bg:rgb(23, 40, 71); --panel:rgb(0, 38, 110); --ink:#e8f2ff;
  --line:#005986; --max:1320px;
  --gold1:#0097ef; --gold2:#005c91; --gold3:#0097ef;
  --ring:0 0 0 1px rgba(255,255,255,.06) inset, 0 1px 0 rgba(255,255,255,.05) inset, 0 10px 30px rgba(0,0,0,.55);
  --hdrH:64px; /* реальную высоту проставляет JS */
}

/* Глобальная типографика/фон */
html,body{
  color:var(--ink);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
}
body:before{
  content:""; position:fixed; inset:0; pointer-events:none; opacity:.9;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(25,198,255,.07), transparent 60%),
    radial-gradient(1000px 700px at 120% 10%, rgba(33,255,163,.06), transparent 55%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><defs><filter id="n"><feTurbulence baseFrequency="0.7" numOctaves="2" seed="2" type="fractalNoise"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23n)"/></svg>') repeat;
}

/* Универсальный пульс */
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(25,198,255,.6) }
  70%{ box-shadow:0 0 0 20px rgba(25,198,255,0) }
  100%{ box-shadow:0 0 0 0 rgba(25,198,255,0) }
}
.pulse{ animation:pulse 1.8s infinite }

/* ─────────────────────────────────────────────────────────
   Header / Topbar
────────────────────────────────────────────────────────── */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(0, 44, 63, 0.92);
  border-bottom:1px solid #004360;
  backdrop-filter:saturate(130%) blur(6px);
}
header.scrolled{ box-shadow:0 10px 24px rgba(0,0,0,.38) }
.head{
  max-width:var(--max); margin:0 auto; padding:10px 14px;
  display:flex; align-items:center; gap:10px; min-width:0;
}
.burger{
  display:none; background:none; border:1px solid #133241; color:#cfe6ff;
  border-radius:10px; padding:8px 10px;
}
.logo{ flex:0 0 auto }
.logo img{ height:50px; filter:drop-shadow(0 2px 6px rgba(0,0,0,.5)) }
.search{
  flex:1 1 420px; min-width:0; display:flex; align-items:center; gap:8px;
  background:linear-gradient(180deg,#0d2230,#0a1d29); border:1px solid #113244;
  border-radius:999px; padding:8px 12px; box-shadow:var(--ring)
}
.search input{ flex:1 1 auto; min-width:0; background:transparent; border:0; outline:0; color:#ccdef0 }
.btn{
  flex:0 0 auto; white-space:nowrap;
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 14px; border-radius:999px; text-decoration:none; color:#eaf2ff;
  background:linear-gradient(180deg,#10293a,#0b2230); border:1px solid #133241; box-shadow:var(--ring)
}
.btn--login{
  background:radial-gradient(60% 120% at 30% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
             linear-gradient(180deg,#fa4300 20%, #fa4300 80%);
  border:1px solid #fa4300;
}
.btn--reg{
  background:radial-gradient(60% 120% at 30% 20%, rgba(255, 255, 255, 0.28), transparent 42%),
             linear-gradient(180deg,#0088dd 0%, #004f80 100%);
  border:1px solid #0088dd;
  animation:pulse 1.8s infinite;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(23, 97, 77, 0.5);
}


/* ─────────────────────────────────────────────────────────
   Layout / Shell
────────────────────────────────────────────────────────── */
.shell{
  max-width:var(--max); margin:0 auto; padding:18px 14px;
  display:grid; grid-template-columns:260px 1fr; gap:20px; min-width:0;
}
.shell > *{ min-width:0 }
.shell > main{ min-width:0 }
main p, main h1, main h2, main h3, main a{ overflow-wrap:anywhere; word-break:break-word }

/* Только где нужно — отсекаем «лишний» горизонтальный оверфлоу */
.frame, .medals, .grid{ overflow-x:hidden }

/* Sidebar (desktop) */
.aside{
  position:sticky; top:74px; align-self:start;
  background:linear-gradient(180deg,#0e2330,#0a1d29);
  border:1px solid #0d2a39; border-radius:20px; padding:14px; box-shadow:var(--ring);
}
.nav{ list-style:none; margin:0; padding:0 }
.nav li{ margin:6px 0 }
.nav a{
  display:flex; align-items:center; gap:10px; padding:12px 12px; border-radius:12px;
  color:#cfe6ff; border:1px solid transparent; text-decoration:none;
}
.nav a:hover{ background:#0f2b3a; border-color:#10394e }
.nav a.is-active{
  background:linear-gradient(180deg,#113246,#0c2534);
  border-color:#15465f; box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);
}
.sep{ height:10px; margin:8px 6px; border-top:1px solid #0f2b3a; border-bottom:1px solid #081921; opacity:.8 }
.sep-title{ margin:8px 8px 4px; color:#95b7d0; font-size:12px; letter-spacing:.08em }

/* Drawer (mobile) */
.drawer{
  position:fixed; top:0; left:0; bottom:0; width:min(82vw,320px);
  background:linear-gradient(180deg,#0e2330,#0a1d29); border-right:1px solid #0d2a39;
  box-shadow:0 20px 60px rgba(0,0,0,.6); transform:translateX(-100%); transition:transform .28s ease;
  z-index:120; display:flex; flex-direction:column; border-radius:0 18px 18px 0;
}
.drawer.open{ transform: translateX(0) }
.drawer .dhead{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid #0f2b3a }
.dclose{ background:none; border:1px solid #1b556e; color:#cfe6ff; border-radius:10px; padding:8px 10px }
.dnav{ padding:10px 10px 16px }

/* Page Title */
.page-title{
  text-align:center; margin:4px 0 14px; font-size:26px; font-weight:900; letter-spacing:.3px;
  color:#eaf2ff; text-shadow:0 6px 18px rgba(0,0,0,.45);
}

/* Hero / Banner */
.frame{
  background:#081821; border:1px solid #1c303d; border-radius:22px; padding:14px;
  box-shadow:var(--ring); position:relative;
}
.frame:before{
  content:""; position:absolute; inset:8px; border-radius:18px; border:3px solid transparent;
  background:linear-gradient(#081821,#081821) padding-box,
             linear-gradient(135deg,var(--gold3),var(--gold1) 40%, var(--gold2) 70%, var(--gold3)) border-box;
  pointer-events:none; z-index:0;
}
.banner{ width:100%; border-radius:12px; position:relative; z-index:1; object-fit:cover }

/* Medallions */
.medals{ display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:18px; margin-top:18px; min-width:0 }
.medal{ text-align:center; color:#dce9ff; text-decoration:none }
.medal .ring{ aspect-ratio:1/1; border-radius:50%; overflow:hidden; background:#0e2230; box-shadow:0 10px 24px rgba(0,0,0,.45) }
.medal img{ width:100%; height:100%; object-fit:cover; transform:scale(1); transition:transform .35s ease }
.medal:hover img{ transform:scale(1.06) }
.medal b{ display:block; margin-top:10px; font-size:14px }

/* Cards grid */
.grid{ display:grid; gap:18px; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:22px; min-width:0 }
.card{
  display:block; text-decoration:none; color:inherit; background:#0d2230; border:1px solid #133245;
  border-radius:16px; overflow:hidden; box-shadow:var(--ring)
}
.media{ position:relative; aspect-ratio:16/9; overflow:hidden }
.media img{ width:100%; height:100%; object-fit:cover; transform:scale(1); transition:transform .6s ease }
.card:hover .media img{ transform:scale(1.08) }
.play{
  position:absolute; inset:auto 50% 50% auto; transform:translate(50%,50%);
  padding:10px 22px; border-radius:14px; font-weight:800; color:#fff;
  background:radial-gradient(60% 120% at 30% 20%, rgba(25,198,255,.35), transparent 40%),
             linear-gradient(180deg,#103648 20%, #0a2735 80%);
  border:1px solid #1b556e; box-shadow:0 0 20px rgba(25,198,255,.25), var(--ring);
  opacity:0; transition:opacity .25s ease, transform .25s ease;
}
.card:hover .play{ opacity:1; transform:translate(50%,50%) scale(1.05) }
.info{ padding:10px 12px 12px }
.title{ margin:0 0 2px; font-weight:800 }
.vendor{ margin:0; color:#9fb1c5; font-size:12px }

/* Sections / CTA */
.section{ margin-top:30px; margin-bottom:20px; color:#dce9ff; line-height:1.6 }
.intro p{ max-width:900px; margin:0 auto; text-align:left }
.cta-center{ display:flex; justify-content:center; margin-top:16px }
.pulse-btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  background: radial-gradient(60% 120% at 30% 20%, rgba(25,198,255,.35), transparent 40%),
              linear-gradient(180deg,#103648 20%, #0a2735 80%);
  border: 1px solid #1b556e;
  box-shadow: 0 0 20px rgba(25,198,255,.25), var(--ring);
  animation: pulse 1.8s infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pulse-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(25,198,255,.35), var(--ring);
}

@media (max-width: 768px) {
  .pulse-btn:hover {
    transform: scale(1.03);
  }
}


/* Providers */
.prov-grid{ display:grid; gap:16px; grid-template-columns:repeat(4,minmax(0,1fr)) }
.prov{
  display:flex; flex-direction:column; align-items:center; text-decoration:none; color:#dce9ff;
  background:#0d2230; border:1px solid #133245; border-radius:16px; padding:14px;
  box-shadow:var(--ring); transition:transform .2s ease, box-shadow .2s ease;
}
.prov:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.35), var(--ring) }
.prov-media{
  width:100%; aspect-ratio:16/9; background:#0e2230; border-radius:10px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.prov-media img{ width:80%; height:80%; object-fit:contain; filter:drop-shadow(0 2px 8px rgba(0,0,0,.35)) }
.prov-name{ margin-top:10px; font-weight:800; letter-spacing:.2px; text-align:center; color:#eaf2ff }
.vmore-btn{
  display:inline-block; padding:10px 18px; font-weight:800; border-radius:999px; text-decoration:none; color:#fff;
  background:radial-gradient(60% 120% at 30% 20%, rgba(25,198,255,.35), transparent 40%),
             linear-gradient(180deg,#103648 20%, #0a2735 80%);
  border:1px solid #1b556e; box-shadow:0 0 16px rgba(25,198,255,.25), var(--ring);
}
.vmore-btn:hover{ transform:scale(1.04) }

/* Таблицы */
.table-wrapper {
  background: #0d2230;
  border: 1px solid #133245;
  border-radius: 16px;
  box-shadow: var(--ring);
  overflow-x: auto;        /* горизонтальный скролл при узком экране */
  padding: 16px;           /* отступы внутри блока */
  margin: 20px 0;          /* отступы снаружи */
}

table {
  width: 100%;
  border-collapse: collapse;
}

table td {
  padding: 10px 12px;       /* внутренние отступы в ячейках */
  border-bottom: 1px solid #133245;
  color: #fff;
  font-size: 15px;
  vertical-align: top;
}

@media (max-width: 768px) {
  table, 
  table tr, 
  table td {
    display: block;         /* каждая ячейка на отдельной строке */
    width: 100%;
  }

  table td {
    padding: 8px 0;
    border-bottom: none;
  }

  table tr {
    margin-bottom: 12px;
    border-bottom: 1px solid #133245;
    padding-bottom: 8px;
  }
}


/* Чистая семантичная таблица фактов */
.facts-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.facts-table th,
.facts-table td{
  padding:12px 16px;
  vertical-align:top;
}
.facts-table th{
  white-space:nowrap;
  font-weight:800;
  color:#eaf2ff;
  width:240px;
}
.facts-table tr + tr th,
.facts-table tr + tr td{
  border-top:1px solid #0f2b3a;
}
.facts-table a{
  color:#cfe6ff;
  text-decoration:underline;
}
.facts-table a:hover{ color:#fff }

/* Мобильная таблица-«стек» */
@media (max-width:640px){
  .facts-table th{
    display:block;
    padding-bottom:4px;
    width:auto;
  }
  .facts-table td{
    display:block;
    padding-top:0;
  }
  .facts-table tr + tr th{ border-top:1px solid #0f2b3a }
  .facts-table tr + tr td{ border-top:0 }
}

  .promo-img {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-radius: 14px;
    border: 1px solid #133245;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    display: block;
    width: 100%;
    height: auto;
  }
  .promo-img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 34px rgba(25,198,255,.35), 0 10px 30px rgba(0,0,0,.55);
  }

/* --- MostBet Login: Text Left, Image Right --- */
#mostbet-login {
  text-align: left;
  display: block !important;
}

#mostbet-login .wrapflow {
  display: flex;
  align-items: flex-start;  /* Align items to the top */
  justify-content: flex-start; /* Align content to the left */
  gap: 20px; /* Space between text and image */
}

/* Text content styles */
#mostbet-login .text-content {
  max-width: 60%; /* Ensure the text takes up 60% of the container */
}

/* Floating container for the image */
#mostbet-login .login-media {
  max-width: 40%; /* Image will take up 40% of the container width */
  border-radius: 12px;
  border: 1px solid #133245;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: visible;  /* Ensure proper display of the image container */
  display: block;  /* Important to use block instead of inline */
}

/* Image will fill the container */
#mostbet-login .login-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hover effect for the image */
#mostbet-login .login-media:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 34px rgba(25, 198, 255, 0.35), 0 10px 30px rgba(0, 0, 0, 0.55);
}

/* Mobile version: Stacked layout (image on top, text below) */
@media (max-width: 768px) {
  #mostbet-login .login-media {
    max-width: 100%;
    margin: 0 0 16px 0;
    transform: none;
  }

  #mostbet-login .wrapflow {
    flex-direction: column; /* Stack content vertically on smaller screens */
  }

  #mostbet-login .text-content {
    max-width: 100%; /* Text takes full width on mobile */
  }
}



/* ─────────────────────────────────────────────────────────
   Footer
────────────────────────────────────────────────────────── */
.site-footer{
  margin-top:40px;
  background:linear-gradient(180deg,#0e2330,#0a1d29);
  border-top:1px solid #0d2a39;
  box-shadow:0 -10px 30px rgba(0,0,0,.35) inset;
}
.site-footer a{ color:#cfe6ff; text-decoration:none }
.site-footer a:hover{ color:#fff }
.ft-wrap{ max-width:1320px; margin:0 auto; padding:28px 14px 32px; color:#cfe6ff }
.ft-head{
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  justify-content:space-between; margin-bottom:16px;
}
.ft-logo img{ height:55px; display:block }
.ft-cta-center{ flex:1; display:flex; justify-content:center }
.ft-btn{
  display:inline-block; padding:12px 26px; font-weight:800; font-size:16px; color:#fff;
  text-decoration:none; border-radius:30px; max-width:320px;
  background:radial-gradient(60% 120% at 30% 20%, rgba(25,198,255,.35), transparent 40%),
             linear-gradient(180deg,#103648 20%, #0a2735 80%);
  border:1px solid #1b556e; box-shadow:0 0 20px rgba(25,198,255,.25),0 0 6px rgba(0,0,0,.35);
}
.ft-btn:hover{ transform:scale(1.05); box-shadow:0 0 25px rgba(25,198,255,.35) }
.ft-trust{ display:flex; align-items:center; gap:18px }
.ft-trust img{ height:30px; width:auto; display:block; opacity:.9; filter:drop-shadow(0 2px 6px rgba(0,0,0,.35)) }
.ft-trust a:hover img{ opacity:1 }
.ft-grid{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; padding:16px 0;
  border-top:1px solid #0f2b3a; border-bottom:1px solid #0f2b3a;
}
.ft-col{ display:flex; flex-direction:column; gap:8px }
.ft-title{ font-weight:800; color:#eaf2ff; margin-bottom:6px }
.ft-pay{
  display:flex; flex-direction:column; align-items:center; gap:10px; margin:14px 0;
}
.ft-pay span{ opacity:.9; text-align:center }
.ft-pay ul{
  display:flex; flex-wrap:wrap; justify-content:center; gap:14px; padding:0; margin:0; list-style:none;
}
.ft-pay img{ height:26px; width:auto; display:block; filter:drop-shadow(0 2px 6px rgba(0,0,0,.25)) }
.ft-bottom{
  border-top:1px solid #0f2b3a; margin-top:12px; padding-top:12px;
  font-size:13px; color:#9fb1c5; display:flex; justify-content:center; text-align:center;
}

/* ─────────────────────────────────────────────────────────
   Sticky patch (desktop header compensation)
────────────────────────────────────────────────────────── */
@media (min-width:993px){
  header{ position:fixed !important; top:0; left:0; right:0; z-index:120 }
  body{ padding-top:var(--hdrH) }
  .aside{
    position:sticky !important;
    top:calc(var(--hdrH) + 10px);
    max-height:calc(100vh - (var(--hdrH) + 24px));
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
}
/* mobile drawer усиленно скрыт за пределами */
@media (max-width:992px){
  .drawer{ transform:translateX(-110%) }
}

/* ─────────────────────────────────────────────────────────
   Responsive
────────────────────────────────────────────────────────── */
@media (max-width:1200px){
  .prov-grid{ grid-template-columns:repeat(3,1fr) }
  .medals{ grid-template-columns:repeat(6,1fr) }
  .grid{ grid-template-columns:repeat(3,1fr) }
}
@media (max-width:992px){
  .shell{ grid-template-columns:1fr }
  .aside{ display:none }
  .burger{ display:inline-flex }
  .search{ flex:1 1 50vw }
  .medals{ grid-template-columns:repeat(4,1fr) }
  .grid{ grid-template-columns:repeat(2,1fr) }
}
@media (max-width:520px){
  .head{ gap:8px }
  .btn{ padding:7px 10px; font-size:13px }
  .search{ padding:6px 10px }
  .medals{ grid-template-columns:repeat(3,1fr) }
  .head, .shell, .site-footer{ padding-left:12px; padding-right:12px }
  .frame{ padding:10px }
  .frame:before{ inset:6px }
}
@media (max-width:390px){
  .search{ display:none }
  .btn{ padding:6px 9px; font-size:12px }
  .medals{ grid-template-columns:repeat(2,1fr) }
  .grid{ grid-template-columns:1fr }
}

/* ─────────────────────────────────────────────────────────
   (Опционально) стиль для зафиксированного aside — на будущее
   Сейчас JS его не включает, но пусть будет один корректный блок
────────────────────────────────────────────────────────── */
.aside--fixed{
  position:fixed !important;
  top:var(--asideTop,74px);
  left:var(--asideLeft,14px);
  width:var(--asideWidth,260px);
  height:calc(100vh - (var(--asideTop,74px) + 14px));
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  z-index:90;
  transform:translateY(var(--asideShift,0px));
}
