/* Betxico MX — скин кросс-шаблона. Палитра со скриншота betxico.mx (21.09.2026, тема Noche):
   шапка/сайдбар #040705, контент #161616, зелёная CTA #4d8934, Nunito. */
:root{
  --black:#040705; --bg:#161616; --card:#1f1f1f; --card-2:#262626; --line:rgba(255,255,255,.08);
  --txt:#f2f2f2; --muted:#a3a3a3; --dim:#737373;
  --green:#4d8934; --green-h:#5aa03d; --green-l:#8fe36b; --green-bright:#3fbf4a;
  --red:#e0483e; --gold:#f2c14e;
  --r:12px; --rs:8px; --sidebar:300px; --header:64px;
  --font:'Nunito',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);background:var(--bg);color:var(--txt);line-height:1.5;font-size:15px}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;line-height:1.2;font-weight:700}
p{margin:0 0 .9em}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:14px;border-radius:999px;padding:10px 22px;border:1.5px solid transparent;cursor:pointer;transition:.18s;white-space:nowrap;font-family:inherit;line-height:1.2}
.btn--green{background:var(--green);color:#fff;border-color:var(--green)}.btn--green:hover{background:var(--green-h)}
.btn--outline{background:transparent;color:var(--green-l);border-color:var(--green)}.btn--outline:hover{background:rgba(77,137,52,.2)}
.btn--dark{background:var(--card-2);color:#fff}.btn--dark:hover{background:#333}
.btn--lg{padding:14px 30px;font-size:16px}
.chip{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;background:var(--card);border:1px solid var(--line);font-size:13px;font-weight:700;color:var(--muted)}
.chip img{width:20px;height:20px}
.chip.on{color:#fff;border-color:var(--green);background:rgba(77,137,52,.2)}
.count{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;border:1px solid var(--line);font-size:12px;font-weight:700;color:var(--muted)}
.count:hover{color:#fff;border-color:var(--muted)}
.count svg{width:14px;height:14px}

/* header */
.topbar{position:sticky;top:0;z-index:60;background:var(--black);height:var(--header);display:flex;align-items:center;padding:0 24px;gap:20px}
.brand{display:inline-flex;align-items:center;font-weight:900;font-size:26px;letter-spacing:1px;text-transform:uppercase;font-style:italic;flex:none}
.brand i{font-style:italic;color:var(--green-bright);display:inline-block;transform:skewX(-12deg) scale(1.15);margin:0 1px}
.brand small{font-style:normal;font-size:10px;letter-spacing:.14em;background:var(--green);padding:2px 6px;border-radius:4px;margin-left:8px;font-weight:800}
.tabs{display:flex;gap:6px;height:100%}
.tabs a{display:flex;align-items:center;padding:0 12px;font-size:16px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;border-bottom:3px solid transparent;color:#ddd}
.tabs a:hover{color:#fff}
.tabs a.active{color:#fff;border-color:var(--green-bright)}
.hacts{margin-left:auto;display:flex;align-items:center;gap:14px}
.icolink{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;color:#ccc}
.icolink svg{width:22px;height:22px;color:var(--green-l)}
.icolink:hover{color:#fff}
.searchbtn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;color:#ccc}
.searchbtn svg{width:22px;height:22px}
.burger{display:none;width:40px;height:40px;border:0;background:transparent;color:#fff;align-items:center;justify-content:center}
.burger svg{width:26px;height:26px}

/* layout */
.layout{display:flex;align-items:flex-start}
.sidebar{position:sticky;top:var(--header);width:var(--sidebar);flex:none;background:var(--black);height:calc(100vh - var(--header));overflow-y:auto;scrollbar-width:thin;padding:10px 0 20px;display:flex;flex-direction:column}
.sidebar .grp{padding:8px 16px;border-bottom:1px solid var(--line)}
.sidebar .grp:last-of-type{border:0}
.sidebar .ttl{font-size:16px;font-weight:700;padding:12px 12px 6px}
.sidebar a{display:flex;align-items:center;gap:14px;padding:9px 12px;border-radius:var(--rs);font-size:15px;font-weight:600;color:#ddd}
.sidebar a:hover{background:var(--card);color:#fff}
.sidebar a.active{color:#fff;background:var(--card)}
.sidebar a img,.sidebar a svg{width:24px;height:24px;flex:none}
.sidebar a svg{color:var(--green-l)}
.theme{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:18px;padding:22px 16px 8px;font-size:16px;font-weight:600}
.theme i{width:74px;height:38px;border-radius:999px;background:var(--green);position:relative;display:inline-block}
.theme i::after{content:"";position:absolute;right:5px;top:5px;width:28px;height:28px;border-radius:50%;background:#fff}
.content{flex:1;min-width:0;padding:22px 26px 40px;display:flex;flex-direction:column;gap:34px}
.page-head h1{font-size:26px;margin-bottom:4px}
.page-head p{color:var(--muted);max-width:820px;margin:0}

/* section head like brand: icon + title + count pill */
.shead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.shead h2,.shead h1{font-size:20px;display:flex;align-items:center;gap:12px;font-weight:700}
.shead img{width:36px;height:36px}
.shead svg{width:26px;height:26px;color:var(--green-l)}
.shead .tools{display:flex;gap:8px;align-items:center}
.rnav{width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.rnav svg{width:16px;height:16px}
.rnav:hover{border-color:var(--muted)}

/* game cards — landscape 453×286 как у бренда */
.rail{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 2px 10px;scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}
.rail .g{flex:none;width:calc((100% - 56px)/5);min-width:200px;scroll-snap-align:start}
.ggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.g{position:relative;cursor:pointer;border-radius:var(--r);overflow:hidden;background:var(--card);aspect-ratio:453/286}
.g img.p{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.g:hover img.p{transform:scale(1.05)}
.g .fav{position:absolute;top:8px;left:8px;width:26px;height:26px;color:rgba(255,255,255,.85);filter:drop-shadow(0 2px 4px rgba(0,0,0,.6));z-index:2}
.g .prov{position:absolute;right:8px;bottom:6px;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:rgba(0,0,0,.55);padding:3px 7px;border-radius:4px;z-index:2}
.g .ov{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0);transition:.2s}
.g .ov i{width:48px;height:48px;border-radius:50%;background:var(--green);display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.8);transition:.2s}
.g .ov i svg{width:22px;height:22px;fill:#fff;margin-left:2px}
.g:hover .ov{background:rgba(0,0,0,.45)}.g:hover .ov i{opacity:1;transform:scale(1)}
.g .nm{position:absolute;left:0;right:0;bottom:0;padding:22px 10px 8px;background:linear-gradient(transparent,rgba(0,0,0,.85));font-size:13px;font-weight:700;opacity:0;transition:.2s;z-index:1}
.g:hover .nm{opacity:1}
.g .tg{position:absolute;top:8px;right:8px;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:3px 7px;border-radius:4px;background:var(--green);z-index:2}
.tg--live{background:var(--red)!important}.tg--live::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#fff;margin-right:5px;animation:bl 1.2s infinite}
@keyframes bl{50%{opacity:.3}}
.cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.cats a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--rs);background:var(--card);border:1px solid var(--line);font-weight:700;font-size:14px}
.cats a img{width:28px;height:28px}
.cats a:hover{border-color:var(--green)}
.provs{display:flex;gap:8px;flex-wrap:wrap}
.provs span{padding:9px 16px;border-radius:var(--rs);background:var(--card);border:1px solid var(--line);font-size:13px;font-weight:700;color:var(--muted)}

/* live tables */
.tables{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.table{background:var(--card);border-radius:var(--r);overflow:hidden;cursor:pointer;border:1px solid var(--line)}
.table .img{aspect-ratio:16/10;overflow:hidden;position:relative}
.table img{width:100%;height:100%;object-fit:cover}
.table .lv{position:absolute;top:8px;left:8px;background:var(--red);font-size:10px;font-weight:800;padding:3px 7px;border-radius:4px}
.table .lv::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#fff;margin-right:5px;animation:bl 1.2s infinite}
.table .body{padding:10px 12px 12px}
.table b{display:block;font-size:14px}.table small{display:block;color:var(--muted);font-size:12px}
.table .meta{display:flex;justify-content:space-between;margin-top:8px;font-size:12px}
.table .meta span{background:var(--card-2);padding:3px 8px;border-radius:4px}
.table .meta .lim{color:var(--green-l);font-weight:700}

/* sports */
.matches{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.match{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px}
.match .mh{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:8px}
.match .mh b{color:#fff}
.match .t{display:flex;align-items:center;gap:10px;font-weight:700;font-size:14px;margin:4px 0}
.match .t img{width:24px;height:24px;object-fit:contain}
.match .odds{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}
.match .odds a{display:flex;flex-direction:column;align-items:center;padding:7px 4px;border-radius:var(--rs);background:var(--card-2);font-weight:800;font-size:14px;transition:.15s}
.match .odds a small{font-weight:600;font-size:11px;color:var(--muted)}
.match .odds a:hover{background:var(--green)}.match .odds a:hover small{color:#fff}
.match .odds a.na{grid-column:1/-1;background:transparent;border:1px dashed var(--line);color:var(--green-l);font-size:13px}
.sports{display:flex;gap:8px;flex-wrap:wrap}

/* generic */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px 20px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;counter-reset:s}
.step{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px}
.step::before{counter-increment:s;content:counter(s);display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--green);font-weight:800;font-size:18px;margin-bottom:12px}
.step b{display:block;font-size:16px;margin-bottom:6px}.step p{color:var(--muted);margin:0;font-size:14px}
.promo{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px;display:flex;flex-direction:column;gap:6px;position:relative;overflow:hidden}
.promo::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--green-bright)}
.promo .k{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--green-l)}
.promo h3{font-size:20px}.promo p{color:var(--muted);font-size:14px;margin:0}
.promo ul{margin:4px 0 0;padding-left:18px;font-size:13px;color:var(--muted)}
.promo .btn{align-self:flex-start;margin-top:8px}
.promo img{width:64px;height:64px;position:absolute;right:16px;top:16px;opacity:.9}
.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px;text-align:center}
.stat b{display:block;font-size:26px;font-weight:900;color:var(--green-l)}.stat small{color:var(--muted);font-size:13px}
.article{max-width:860px;color:#d4d4d4;font-size:15px}
.article h2{font-size:21px;margin:24px 0 10px;color:#fff}.article h3{font-size:17px;margin:16px 0 8px;color:#fff}
.article ul{padding-left:20px}.article a{color:var(--green-l);text-decoration:underline}
.faq details{background:var(--card);border:1px solid var(--line);border-radius:var(--rs);padding:0 16px;margin-bottom:8px}
.faq summary{cursor:pointer;font-weight:700;padding:13px 0;list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::after{content:"+";font-size:20px;color:var(--muted)}.faq details[open] summary::after{content:"–"}
.faq p{color:var(--muted);padding-bottom:13px;margin:0}
.cta-band{background:linear-gradient(90deg,#1d3a14,#2f5a22);border-radius:var(--r);padding:26px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.cta-band h2{font-size:22px}.cta-band p{margin:4px 0 0;color:#d4e8cc}
.note{font-size:12px;color:var(--dim);margin-top:8px}
.tscroll{overflow-x:auto}
.ptable{width:100%;border-collapse:collapse;font-size:14px}
.ptable th,.ptable td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}
.ptable th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.phone{width:220px;margin:0 auto;border:8px solid #2a2a2a;border-radius:32px;background:#000;padding:14px 10px;box-shadow:0 20px 50px rgba(0,0,0,.6)}
.phone .scr{background:var(--card);border-radius:18px;padding:10px;font-size:12px}
.store{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;border-radius:10px;background:#000;color:#fff;border:1px solid #333;font-size:13px;line-height:1.1}
.store small{display:block;font-size:10px;color:var(--muted)}.store svg{width:22px;height:22px}
.status{display:inline-block;padding:3px 10px;border-radius:5px;font-size:12px;font-weight:700}
.status.ok{background:var(--green)}.status.no{background:#333}
.review{background:var(--card);border:1px solid var(--line);border-radius:var(--rs);padding:14px 16px}
.review .rh{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:13px}
.review .stars{color:var(--gold);letter-spacing:2px}.review p{margin:0;font-size:14px;color:#d4d4d4}
.review .reply{margin-top:10px;padding:10px 12px;border-left:3px solid var(--green);background:var(--card-2);font-size:13px;border-radius:0 8px 8px 0}
.rating{display:grid;grid-template-columns:200px 1fr;gap:24px;align-items:center}
.rating .big b{font-size:54px;line-height:1;display:block;font-weight:900}
.rating .bars div{display:grid;grid-template-columns:32px 1fr 44px;gap:10px;align-items:center;font-size:13px;margin-bottom:6px}
.rating .bars i{display:block;height:10px;border-radius:5px;background:var(--card-2);overflow:hidden}
.rating .bars i b{display:block;height:100%;background:var(--gold);font-size:0}
.toc{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:0;list-style:none}
.toc a{padding:6px 12px;border-radius:8px;background:var(--card);font-size:13px}
.legal h2{font-size:18px;margin:24px 0 8px}.legal p,.legal li{color:#d4d4d4;font-size:14px}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.tools-grid .card b{display:block;margin-bottom:6px}.tools-grid .card p{color:var(--muted);font-size:14px;margin:0}
.pay{display:flex;flex-wrap:wrap;gap:8px}
.pay span{padding:8px 14px;border-radius:var(--rs);background:var(--card);border:1px solid var(--line);font-weight:700;font-size:13px}

/* footer */
.site-footer{background:var(--black);padding:36px 26px 100px;margin-top:auto;border-top:1px solid var(--line)}
.fwrap{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px;max-width:1300px}
.fwrap h4{margin:0 0 12px;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.fwrap a{display:block;font-size:14px;margin-bottom:8px;color:#ccc}.fwrap a:hover{color:#fff}
.fwrap p{font-size:13px;color:var(--muted)}
.age{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:2px solid var(--red);font-weight:800;font-size:12px;margin-right:10px}
.fbottom{margin-top:24px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--dim);display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}

/* fab + mobile */
.fab{position:fixed;left:50%;bottom:16px;transform:translate(-50%,120%);width:min(600px,100% - 32px);background:linear-gradient(90deg,#1f4a14,#3c7a29);color:#fff;border:1px solid rgba(143,227,107,.45);border-radius:999px;padding:8px 8px 8px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 12px 40px rgba(0,0,0,.6);transition:transform .3s;z-index:70}
.fab.show{transform:translate(-50%,0)}.fab b{font-size:14px;flex:1}.fab .btn{padding:9px 18px}
.fab-ic{width:36px;height:36px;border-radius:50%;background:var(--green-l);color:#123;display:inline-flex;align-items:center;justify-content:center;flex:none;animation:pulse 1.8s infinite}
.fab-ic svg{width:20px;height:20px}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(143,227,107,.6)}70%{box-shadow:0 0 0 10px rgba(143,227,107,0)}}
.btn--lime{background:var(--green-l);color:#123;border-color:var(--green-l);font-weight:800}.btn--lime:hover{background:#a6ee89}
.bottombar{display:none}
.mobile-menu{display:none}

@media (max-width:1180px){
  :root{--sidebar:240px}
  .rail .g{width:calc((100% - 42px)/4)}
  .grid4{grid-template-columns:1fr 1fr}
  .fwrap{grid-template-columns:1fr 1fr}
}
@media (max-width:920px){
  .sidebar{display:none}
  .tabs{display:none}
  .burger{display:inline-flex}
  .hacts .icolink,.searchbtn{display:none}
  .topbar{padding:0 12px;gap:8px}
  .content{padding:16px 14px 40px;gap:28px}
  .rail .g{width:calc((100% - 28px)/3);min-width:180px}
  .grid2,.grid3,.steps{grid-template-columns:1fr 1fr}
  .rating{grid-template-columns:1fr}
  .mobile-menu.open{display:block;position:fixed;top:var(--header);left:0;right:0;bottom:0;z-index:59;background:var(--black);overflow:auto;padding:10px 16px 90px}
  .mobile-menu a{display:flex;align-items:center;gap:12px;padding:11px 8px;border-bottom:1px solid var(--line);font-weight:700}
  .mobile-menu a img{width:24px;height:24px}
  .mobile-menu .btn{margin-top:14px;width:100%}
  .bottombar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:65;background:var(--black);border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));justify-content:space-around}
  .bottombar a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;color:#ccc;padding:4px 8px}
  .bottombar a svg{width:22px;height:22px;color:var(--green-l)}
  .fab{bottom:70px}
  .site-footer{padding-bottom:140px}
}
@media (max-width:560px){
  .brand{font-size:20px}.brand small{display:none}
  .hacts .btn{padding:8px 12px;font-size:12px}
  .rail .g{width:calc((100% - 14px)/2);min-width:150px}
  .ggrid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
  .grid2,.grid3,.steps,.grid4,.fwrap{grid-template-columns:1fr}
  .page-head h1{font-size:22px}.shead h2,.shead h1{font-size:17px}
  .cta-band{padding:20px}.cta-band h2{font-size:19px}
  .fab{padding:6px 6px 6px 10px}.fab b{font-size:12px}.fab-ic{width:30px;height:30px}
}
