:root{
  --bg:#f6f8fb;
  --bg2:#ffffff;

  --card:#ffffff;
  --card2:#fbfcfe;

  --text:#373839;
  --muted:#111318;

  --line:#e6ebf2;

  --yellow:#f7c600;
  --yellow2:#f2b700;

  --shadow:0 10px 28px rgba(14, 30, 53, .08);
  --shadow2:0 2px 10px rgba(14, 30, 53, .06);

  --radius:18px;
  --max:760px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Noto Sans",sans-serif;
  background:
    radial-gradient(900px 520px at 70% -10%, rgba(247,198,0,.18), transparent 60%),
    radial-gradient(900px 520px at 0% 0%, rgba(20,120,255,.07), transparent 55%),
    linear-gradient(180deg, var(--bg), #eef2f7);
  color:var(--text);
}

a{color:inherit;text-decoration:none}

.wrap{max-width:var(--max);margin:0 auto;padding:0 14px}

/* Top / header */
.top{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.33);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 5px;
  flex-wrap:nowrap;
  position:relative;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}

.logo img{
  display:block;
  height:auto;
  max-width:70px;
  margin-left:10px;
}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:10px;
  background:rgba(247,198,0,.22);
  color:#7a5a00;
  font-size:18px;
}

.szpic{
  max-width:100%;
  border-radius:4px;
  margin-top:10px;
  border:2px solid #2b5da8;
}

/* Tabs (если где-то ещё используются) */
.tabs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:10px 14px 14px;
}

.tab{
  flex:0 0 auto;
  padding:10px 12px;
  border-radius:14px;
  background:#f1f4f8;
  border:1px solid #e6ebf2;
  font-size:14px;
  color:var(--muted);
  white-space:nowrap;
}

.tab.is-active{
  background:rgba(247,198,0,.22);
  border-color:rgba(247,198,0,.45);
  color:var(--text);
}

/* Header menu (desktop + mobile dropdown) */
.topmenu{
  display:flex;
  align-items:center;
  gap:10px;
}

.toplink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border-radius:14px;
  background:#f1f4f8;
  border:1px solid #e6ebf2;
  font-size:14px;
  font-weight:800;
  color:var(--muted);
  line-height:1;
  white-space:nowrap;
  transition:background .12s ease, border-color .12s ease, transform .04s ease;
}

.toplink:hover{ background:#eaf0f7; }
.toplink:active{ transform:translateY(1px); }

.toplink.is-active{
  background:rgba(247,198,0,.22);
  border-color:rgba(247,198,0,.45);
  color:var(--text);
}

/* Burger button */
.menuBtn{
  display:none;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid #e6ebf2;
  background:#f1f4f8;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  padding:0;
  -webkit-tap-highlight-color: transparent;
}

.menuIcon{
  position:relative;
  width:18px;
  height:2px;
  border-radius:2px;
  background:rgba(17,19,24,.85);
  display:block;
}

.menuIcon::before,
.menuIcon::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  border-radius:2px;
  background:rgba(17,19,24,.85);
  transition:transform .12s ease, top .12s ease;
}

.menuIcon::before{ top:-6px; }
.menuIcon::after{ top:6px; }

.menuBtn.is-open .menuIcon{ background:transparent; }
.menuBtn.is-open .menuIcon::before{ top:0; transform:rotate(45deg); }
.menuBtn.is-open .menuIcon::after{ top:0; transform:rotate(-45deg); }

/* Mobile dropdown */
@media (max-width:560px){
  .menuBtn{ display:inline-flex; }

  .topbar nav.topmenu{
    display:none;
    position:absolute;
    left:14px;
    right:14px;
    top:calc(100% + 10px);
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:10px;
    background:rgba(255,255,255,.98);
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow2);
    z-index:60;
  }

  .topbar nav.topmenu.is-open{
    display:flex;
  }

  .toplink{ width:100%; }
}

/* Main */
.main{padding:18px 14px 26px}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
}

.cardPad{padding:18px}

/* Hero */
.hero{padding:10px}

.h1{
  margin:0 0 8px;
  font-size:27px;
  font-weight:700;
  line-height:27px;
  text-align:center;
}

.p{margin:0;color:var(--muted);line-height:1.55}

/* Buttons */
.actions{display:grid;gap:10px;margin-top:14px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin: 0;
  gap:10px;
  padding:14px 16px;
  border-radius:10px;
  font-weight:500;
  font-size:18px;
  line-height:20px;
  cursor:pointer;
  transition:transform .04s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.btn:active{transform:translateY(1px)}

.btn-primary{
  background:#FECC00;
  color:#1a1a1a;
}

.btn-primary:hover{
  box-shadow:0 12px 26px rgba(247,198,0,.24);
}

.btn-ghost{
  background:#ffffff;
  border-color:var(--line);
  color:var(--text);
  box-shadow:var(--shadow2);
}

.btn-ghost:hover{box-shadow:var(--shadow)}

.btn-dark{
  background:#eef2f7;
  border-color:var(--line);
  color:var(--text);
}

/* Blocks */
.grid{display:grid;gap:14px;margin-top:16px}

.block{
  padding:16px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow:var(--shadow2);
}

.h2{
  margin:0 0 8px;
  font-size:24px;
  font-style:normal;
  font-weight:700;
  line-height:24px;
}

.list{margin:10px 0 0;padding:0 0 0 16px;color:var(--muted);line-height:1.6}

/* Small UI */
.kbd{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:12px;
  padding:2px 8px;
  border-radius:10px;
  background:#f1f4f8;
  border:1px solid var(--line);
  color:#3f4f61;
}

.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}

.tag{
  padding:8px 10px;
  border-radius:999px;
  background:#f1f4f8;
  border:1px solid var(--line);
  font-size:13px;
  color:var(--muted);
}

.hr{height:1px;background:var(--line);margin:14px 0}

/* Table */
.tableWrap{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  background:#fff;
  position:relative;
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
}

.table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#fff;
  font-weight:800;
  text-align:left;
  border-bottom:1px solid rgba(0,0,0,.10);
}

.table th,
.table td{
  padding:12px 14px;
  vertical-align:top;
  border-bottom:1px solid rgba(0,0,0,.06);
  font-size:14px;
  line-height:1.35;
  background-color:#fff;
}

.table tbody tr:hover td{background:rgba(0,0,0,.02)}

.table .rowLink{
  font-weight:800;
  text-decoration:none;
  color:inherit;
}

.table .actionsCell{white-space:nowrap}

.table .miniLink{
  display:inline-block;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.10);
  text-decoration:none;
  color:inherit;
  font-weight:700;
  font-size:13px;
  margin-right:8px;
}

.table .miniLink.primary{
  border-color:rgba(0,0,0,0);
  background:rgba(0,0,0,.06);
}

.tableWrap.tableWrap--compare{
  isolation:isolate;
  box-shadow:inset -18px 0 18px -22px rgba(0,0,0,.28);
}

.table.table--compare{
  min-width:1100px;
  position:relative;
  z-index:1;
}

.table.table--compare thead th{z-index:5}

.table.table--compare th:first-child,
.table.table--compare td:first-child{
  position:sticky;
  left:0;
  z-index:4;
  background:#fff;
  background-clip:padding-box;
  transform:translateZ(0);
  backface-visibility:hidden;
}

.table.table--compare thead th:first-child{z-index:6}

.table.table--compare th:first-child::after,
.table.table--compare td:first-child::after{
  content:"";
  position:absolute;
  top:0;
  right:-1px;
  width:1px;
  height:100%;
  background:rgba(0,0,0,.10);
}

@media (max-width:420px){
  .table th,
  .table td{padding:10px 12px;font-size:13px}
  .table.table--compare{min-width:1050px}
}

.ticketCheck{
  max-width:920px;
  margin-left:auto;
  margin-right:auto;
}

.ticketTitle{margin:0 0 12px 0}

.ticketLead{
  margin:10px 0 12px 0;
  max-width:720px;
}

.ticketNote{margin-top:10px;opacity:.9}

.segTabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  padding:6px;
  border-radius:16px;
  background:rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.06);
}

.segBtn{
  appearance:none;
  border:0;
  border-radius:14px;
  padding:12px 12px;
  font-weight:900;
  background:transparent;
  color:inherit;
  cursor:pointer;
}

.segBtn.isActive{
  background:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
  border:1px solid rgba(0,0,0,.08);
}

.tabPanel{margin-top:14px}

.stepTitle{font-weight:900;margin:0 0 8px 0}

.paperForm{max-width:520px}

.whereNum{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}

.whereNum summary{
  padding:12px 14px;
  cursor:pointer;
  font-weight:900;
  list-style:none;
}

.whereNum summary::-webkit-details-marker{display:none}

.whereNumBody{
  padding:12px 14px 14px 14px;
  border-top:1px solid rgba(0,0,0,.06);
  display:grid;
  gap:10px;
}

.whereNumPic{
  width:100%;
  height:180px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.02);
  overflow:hidden;
}

.miniSpin{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  border:2px solid rgba(0,0,0,.25);
  border-top-color:rgba(0,0,0,.75);
  margin-right:8px;
  transform:translateY(1px);
  animation:miniSpin .7s linear infinite;
}

@keyframes miniSpin{
  to{transform:translateY(1px) rotate(360deg)}
}

.ticketCheck .input,
.ticketCheck select.input{
  width:100%;
  height:48px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color:inherit;
  font-size:16px;
  line-height:1;
  outline:none;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
  transition:border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.ticketCheck .input::placeholder{color:rgba(0,0,0,.45)}

.ticketCheck .input:focus,
.ticketCheck select.input:focus{
  border-color:rgba(0,0,0,.22);
  box-shadow:0 0 0 4px rgba(0,0,0,.06);
}

.ticketCheck .input:disabled,
.ticketCheck select.input:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.ticketCheck select.input{
  appearance:none;
  -webkit-appearance:none;
  padding-right:44px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.65) 50%),
    linear-gradient(135deg, rgba(0,0,0,.65) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 12px) 20px,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat:no-repeat;
}

.ticketCheck .paperForm{max-width:520px}
.ticketCheck .paperForm .input{margin:0}
.ticketCheck .stepTitle{font-weight:900;margin:0 0 8px 0;letter-spacing:-0.2px}
.ticketCheck .paperForm .input + .input{margin-top:10px}

.ticketCheck .btn.btn-primary:active{transform:translateY(1px)}

.ticketCheck .fieldHint{
  margin-top:10px;
  font-size:13px;
  opacity:.85;
}

/* Coupon items */
.coupon{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  padding:14px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow:var(--shadow2);
}

.couponTitle{margin:0 0 6px;font-size:15px;line-height:1.35}
.couponMeta{font-size:13px;color:var(--muted);line-height:1.45}

.code{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.codeBox{
  min-width:110px;
  text-align:center;
  padding:10px 12px;
  border-radius:14px;
  background:#f1f4f8;
  border:1px dashed #d8e0ea;
  font-weight:800;
  letter-spacing:.8px;
  color:#1d2b3a;
}

.btn-small{padding:10px 12px;border-radius:14px;font-weight:800}
.note{font-size:13px;color:var(--muted);line-height:1.55}

button.btn{
  -webkit-appearance:none;
  appearance:none;
  border:0 !important;
  outline:none !important;
  background-clip:padding-box;
  font:inherit;
  letter-spacing:inherit;
  color:inherit;
  -webkit-tap-highlight-color:transparent;
}

button.btn::-moz-focus-inner{border:0;padding:0}
button.btn:focus{outline:none !important}

button.btn.btn-primary{box-shadow:none}
button.btn.btn-primary:disabled{
  box-shadow:none !important;
  border:0 !important;
}
button.btn.btn-primary:disabled:active{transform:none}

/* Footer */
.footer{
  margin-top:22px;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.92);
}

.footerGrid{display:grid;gap:18px;padding:18px 14px}
.footerTitle{font-weight:900;margin-bottom:8px}
.footerText{color:var(--muted);line-height:1.55}
.footerLinks{display:grid;gap:10px}

.footerLinks a{color:var(--muted)}
.footerLinks a:hover{color:var(--text)}

/* Focus */
:focus{outline:none}
:focus-visible{
  outline:3px solid rgba(247,198,0,.45);
  outline-offset:2px;
  border-radius:12px;
}

@media(min-width:720px){
  .actions{grid-template-columns:1fr 1fr}
  .grid{grid-template-columns:1fr 1fr}
}

/* === Lottery result cards === */
.resultCard {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface, #F8FAFC);
  border: 1px solid var(--border, #E2E8F0);
}
.resultCard__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.resultCard__title {
  font-weight: 900;
  font-size: 1rem;
  margin: 0;
}
.resultCard__meta {
  font-size: 13px;
  opacity: .75;
}
.resultCard__jackpot {
  margin-top: 10px;
  font-size: 14px;
}
.resultCard__insight {
  margin-top: 4px;
  font-size: 13px;
  opacity: .7;
  font-style: italic;
}
.resultCard__streak {
  margin-top: 4px;
  font-size: 13px;
  opacity: .75;
}
.resultCard__ev {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #E2E8F0);
  font-size: 13px;
  opacity: .75;
}

/* Balls */
.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary, #2563EB);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}
.ball--bonus {
  background: var(--accent, #F59E0B);
  color: #000;
}
/* Второй барабан (4/20) — зелёный */
.ball--drum2 {
  background: #16A34A;
  color: #fff;
}
.balls--drum2 {
  margin-top: 4px;
}
/* ТелеБинго: маленькие шарики для 40 чисел */
.ball--sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
  min-width: 30px;
}
.balls--bingo {
  gap: 5px;
  margin-top: 8px;
}
.resultCard--bingo .resultCard__jackpot {
  font-size: 13px;
}

/* === EV comparison table === */
.evTable { width:100%; border-collapse:collapse; font-size:14px; }
.evTable th { text-align:left; padding:8px 6px; border-bottom:2px solid var(--border, #E2E8F0); font-weight:600; white-space:nowrap; }
.evTable td { padding:8px 6px; border-bottom:1px solid var(--border, #E2E8F0); }
.evTable-best td { font-weight:600; }
.evTable small { opacity:.7; font-size:12px; }
.ev-date { font-size:13px; opacity:.7; margin:0 0 8px; }
.ev-insight { font-style:italic; opacity:.85; margin:10px 0 0; font-size:14px; }
.ev-disclaimer { font-size:12px; opacity:.6; margin:8px 0 0; }