/* 7K Casino — «клюква и снег» — дашборд со sticky-сайдбаром */

:root{
  --bg:#130d11;
  --panel:#1c1419;
  --accent:#d2436a;
  --accent-2:#f2e7ea;
  --text:#eee4e7;
  --muted:#a58f96;
  --line:#2e2126;
  --shadow:0 14px 34px rgba(0,0,0,.4);
  --ff-head:'Alegreya', Georgia, 'Times New Roman', serif;
  --ff-body:'Nunito', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{background:var(--bg);scroll-behavior:smooth}
::selection{background:var(--accent);color:#130d11}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--ff-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%;display:block}
a{color:var(--accent-2)}
h1,h2,h3,h4{font-family:var(--ff-head);color:var(--accent-2);line-height:1.25;margin:0 0 .5em}
p{margin:0 0 1em}
ul,dl{margin:0;padding:0}
li{list-style:none}

.berry-skip{
  position:absolute;left:-9999px;top:0;
  background:var(--accent);color:#130d11;
  padding:.6em 1em;border-radius:0 0 8px 0;
  font-weight:700;z-index:100;
}
.berry-skip:focus{left:0}

/* ---------- TOP HEADER ---------- */
.berry-top{
  display:flex;align-items:center;gap:1.5rem;
  padding:.9rem 1.5rem;
  background:var(--panel);
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:40;
  flex-wrap:wrap;
}
.berry-mark{display:flex;align-items:center;gap:.6rem;text-decoration:none;margin-right:auto;transition:opacity .15s ease}
.berry-mark:hover{opacity:.85}
.berry-mark svg{width:34px;height:34px;flex:0 0 auto}
.berry-mark__t{display:flex;flex-direction:column;line-height:1.2}
.berry-mark__n{font-family:var(--ff-head);font-weight:700;color:var(--accent-2);font-size:1.1rem}
.berry-mark__s{color:var(--muted);font-size:.75rem}
.berry-nav{display:flex;gap:1.1rem;flex-wrap:wrap}
.berry-nav a{color:var(--text);text-decoration:none;font-size:.92rem;opacity:.85;position:relative;padding-bottom:.2em;transition:opacity .15s ease,color .15s ease}
.berry-nav a:hover{opacity:1;color:var(--accent-2)}
.berry-nav a::after{
  content:"";
  position:absolute;left:0;right:100%;bottom:0;
  height:2px;background:var(--accent);
  transition:right .2s ease;
}
.berry-nav a:hover::after{right:0}

/* ---------- CTA BUTTON ---------- */
.berry-go{
  display:inline-block;
  background:var(--accent);
  color:#130d11;
  font-weight:700;
  text-decoration:none;
  padding:.65em 1.3em;
  border-radius:6px 16px 6px 16px;
  border:1px solid var(--accent);
  transition:background .15s ease, transform .15s ease;
  text-align:center;
}
.berry-go:hover{background:#e15c81;transform:translateY(-1px)}
.berry-go--wide{display:block;width:100%}
.berry-go--big{font-size:1.05rem;padding:.85em 1.5em}
.berry-go--line{
  background:transparent;color:var(--accent-2);
  border:1px solid var(--accent-2);
}
.berry-go--line:hover{background:var(--accent-2);color:#130d11}

/* ---------- LAYOUT ---------- */
.berry-layout{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:2rem;
  max-width:1240px;
  margin:0 auto;
  padding:2rem 1.5rem 3rem;
  align-items:start;
}

/* ---------- SIDEBAR ---------- */
.berry-side{
  position:sticky;
  top:5.2rem;
  display:flex;
  flex-direction:column;
  gap:1.2rem;
}
.berry-eyebrow{
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.75rem;
  font-weight:700;
  color:var(--accent);
  margin-bottom:.4em;
}
.berry-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px 4px 14px 4px;
  padding:1.1rem 1.2rem;
  box-shadow:var(--shadow);
}
.berry-card__n{font-family:var(--ff-head);font-size:1.15rem;color:var(--accent-2);font-weight:700;margin-bottom:.7em}
.berry-meta{display:grid;grid-template-columns:auto 1fr;gap:.35em .8em;font-size:.85rem}
.berry-meta dt{color:var(--muted)}
.berry-meta dd{margin:0;color:var(--text)}

.berry-acts{display:flex;flex-direction:column;gap:.6rem}
.berry-acts a{
  display:block;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:10px 3px 10px 3px;
  padding:.7em .9em;
  color:var(--text);
  text-decoration:none;
  font-size:.85rem;
  line-height:1.4;
}
.berry-acts a:hover{border-color:var(--accent)}
.berry-acts a span{
  display:block;
  font-family:var(--ff-head);
  color:var(--accent-2);
  font-weight:700;
  font-size:.95rem;
  margin-bottom:.15em;
}

.berry-kpis{
  display:flex;
  flex-direction:column;
  gap:0;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px 4px 14px 4px;
  overflow:hidden;
}
.berry-kpis li{
  display:flex;
  justify-content:space-between;
  gap:1em;
  padding:.65em 1rem;
  border-bottom:1px solid var(--line);
  font-size:.85rem;
}
.berry-kpis li:last-child{border-bottom:none}
.berry-kpis span{color:var(--muted)}
.berry-kpis em{font-style:normal;color:var(--accent-2);font-weight:700}

/* ---------- CONTENT FEED ---------- */
.berry-feed{min-width:0}
.berry-sec{
  padding:2rem 0;
  border-bottom:1px solid var(--line);
}
.berry-sec:last-child{border-bottom:none}
.berry-sec h2{font-size:1.55rem}
.berry-sec h3{font-size:1.15rem;margin-top:1.2em}

.berry-hero{padding-bottom:2rem;border-bottom:1px solid var(--line)}
.berry-hero h1{font-size:2rem;margin-bottom:.5em}
.berry-lead{color:var(--text);font-size:1.05rem;max-width:60ch}
.berry-hero__btns{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.2rem}

/* ---------- GRID 2 (deposits, catalog, reviews) ---------- */
.berry-grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.1rem;
  margin:1.2rem 0;
}
.berry-dep,.berry-slot,.berry-rev{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px 5px 16px 5px;
  padding:1.2rem 1.3rem;
  transition:border-color .15s ease, transform .15s ease;
}
.berry-dep:hover,.berry-slot:hover,.berry-rev:hover{
  border-color:var(--accent);
  transform:translateY(-2px);
}
.berry-rev footer{
  margin-top:.9em;
  color:var(--muted);
  font-size:.82rem;
  border-top:1px solid var(--line);
  padding-top:.7em;
}
.berry-dep__p{
  font-family:var(--ff-head);
  color:var(--accent);
  font-size:1.8rem;
  font-weight:700;
  margin-bottom:.2em;
}
.berry-dep--terms ul{display:flex;flex-direction:column;gap:.4em;padding-left:0}
.berry-dep--terms li{
  list-style:none;
  padding-left:1.1em;
  position:relative;
  color:var(--text);
  font-size:.92rem;
}
.berry-dep--terms li::before{
  content:"—";
  position:absolute;left:0;color:var(--accent);
}

.berry-slot h3{margin-bottom:.4em}
.berry-slot__m{display:flex;flex-wrap:wrap;gap:.5em;margin-top:.7em}
.berry-slot__m span{
  background:rgba(210,67,106,.14);
  border:1px solid var(--line);
  color:var(--muted);
  font-size:.75rem;
  padding:.25em .6em;
  border-radius:999px;
}

.berry-fig{margin:1.6rem 0 0;padding:0;background:var(--panel);border:1px solid var(--line);border-radius:16px 5px 16px 5px;overflow-x:auto}
.berry-fig svg{margin:1rem auto;min-width:320px}
.berry-fig figcaption{color:var(--muted);font-size:.82rem;text-align:center;padding:0 1rem 1rem}

/* ---------- ROWS (live tables list) ---------- */
.berry-rows{display:flex;flex-direction:column;gap:.6rem;margin:1.2rem 0}
.berry-rows li{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:1rem;
  align-items:center;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:10px 3px 10px 3px;
  padding:.75em 1.1em;
}
.berry-rows__a{font-family:var(--ff-head);color:var(--accent-2);font-weight:700}
.berry-rows__b{color:var(--muted);font-size:.88rem}
.berry-rows__c{color:var(--text);font-size:.88rem;text-align:right}

/* ---------- LOYALTY RAIL (horizontal scroll) ---------- */
.berry-rail{
  display:flex;
  gap:1rem;
  overflow-x:auto;
  padding:.4rem 0 1rem;
  margin-top:1.2rem;
  scroll-snap-type:x proximity;
}
.berry-rail article{
  flex:0 0 240px;
  scroll-snap-align:start;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px 5px 16px 5px;
  padding:1.2rem 1.3rem;
}
.berry-rail__v{
  font-family:var(--ff-head);
  color:var(--accent);
  font-size:1.6rem;
  font-weight:700;
  margin-bottom:.2em;
}
.berry-rail::-webkit-scrollbar{height:8px}
.berry-rail::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}
.berry-rail::-webkit-scrollbar-track{background:transparent}

/* ---------- TOURNAMENT BANNER ---------- */
.berry-banner{
  background:linear-gradient(135deg,rgba(210,67,106,.18),var(--panel));
  border:1px solid var(--accent);
  border-radius:20px 6px 20px 6px;
  padding:1.6rem 1.7rem;
  margin-top:1.2rem;
}
.berry-banner__sum{
  font-family:var(--ff-head);
  color:var(--accent-2);
  font-size:2.4rem;
  font-weight:800;
  margin-bottom:.1em;
}
.berry-banner__fs{color:var(--muted);margin-bottom:1.2rem}
.berry-stages{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:.9rem;
}
.berry-stages div{
  background:rgba(19,13,17,.55);
  border:1px solid var(--line);
  border-radius:10px 3px 10px 3px;
  padding:.8em .9em;
  display:flex;
  flex-direction:column;
  gap:.25em;
}
.berry-stages span{color:var(--accent);font-weight:700;font-size:.85rem;text-transform:uppercase;letter-spacing:.04em}
.berry-stages em{color:var(--muted);font-style:normal;font-size:.8rem}
.berry-stages .berry-figure{color:var(--accent);font-weight:600;font-size:1.02rem}

/* ---------- CASHIER MATRIX ---------- */
.berry-scroll{overflow-x:auto;margin:1.2rem 0;border-radius:14px 4px 14px 4px}
.berry-matrix{
  width:100%;
  min-width:600px;
  border-collapse:collapse;
  background:var(--panel);
  border:1px solid var(--line);
}
.berry-matrix caption{
  caption-side:top;
  text-align:left;
  color:var(--muted);
  font-size:.82rem;
  padding:.7em .9em;
}
.berry-matrix th,.berry-matrix td{
  border-bottom:1px solid var(--line);
  padding:.7em .9em;
  text-align:left;
  font-size:.9rem;
}
.berry-matrix thead th{
  color:var(--accent-2);
  font-family:var(--ff-head);
  font-weight:700;
  background:rgba(210,67,106,.1);
}
.berry-matrix tbody tr:last-child td{border-bottom:none}
.berry-matrix tbody tr:hover{background:rgba(210,67,106,.06)}

/* ---------- FAQ ---------- */
.berry-faq{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
  margin-top:1.2rem;
}
.berry-faq details{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px 4px 12px 4px;
  padding:.8em 1em;
}
.berry-faq summary{
  cursor:pointer;
  font-family:var(--ff-head);
  color:var(--accent-2);
  font-weight:700;
  list-style:none;
  position:relative;
  padding-right:1.4em;
}
.berry-faq summary::-webkit-details-marker{display:none}
.berry-faq summary::after{
  content:"+";
  position:absolute;right:0;top:0;
  color:var(--accent);
  font-size:1.1rem;
}
.berry-faq details[open] summary::after{content:"−"}
.berry-faq details p{margin:.7em 0 0;color:var(--text);font-size:.92rem}

/* ---------- FOOTER ---------- */
.berry-bottom{
  background:var(--panel);
  border-top:1px solid var(--line);
  padding:2.5rem 1.5rem 1.5rem;
}
.berry-bottom__in{
  max-width:1240px;
  margin:0 auto;
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:2rem;
}
.berry-bottom__in h4{color:var(--accent-2);font-size:1rem;margin-bottom:.6em}
.berry-bottom__in p{color:var(--muted);font-size:.85rem;line-height:1.7}
.berry-bottom__in a{color:var(--muted);text-decoration:underline}
.berry-bottom__in a:hover{color:var(--accent-2)}
.berry-bottom__end{
  margin-top:1.5rem;
  padding-top:1.2rem;
  border-top:1px solid var(--line);
  grid-template-columns:1fr;
}
.berry-18{
  display:inline-block;
  background:var(--accent);
  color:#130d11;
  font-weight:800;
  font-size:.75rem;
  padding:.15em .5em;
  border-radius:4px;
  margin-right:.4em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1000px){
  .berry-layout{grid-template-columns:1fr;padding:1.5rem 1.2rem 2.5rem}
  .berry-side{position:static;top:auto}
  .berry-grid2{grid-template-columns:1fr}
  .berry-stages{grid-template-columns:1fr 1fr}
  .berry-faq{grid-template-columns:1fr}
  .berry-bottom__in{grid-template-columns:1fr}
}

@media (max-width:760px){
  .berry-top{padding:.8em 1rem}
  .berry-nav{gap:.7rem;font-size:.85rem}
  .berry-hero h1{font-size:1.5rem}
  .berry-sec h2{font-size:1.25rem}
  .berry-rows li{grid-template-columns:1fr;text-align:left}
  .berry-rows__c{text-align:left}
  .berry-stages{grid-template-columns:1fr}
  .berry-rail article{flex:0 0 210px}
  .berry-hero__btns{flex-direction:column}
  .berry-hero__btns a{width:100%}
  .berry-banner__sum{font-size:1.8rem}
}
