html {
  scroll-behavior: smooth;
}

/* ==== БАЗОВЫЕ ТОКЕНЫ (не цвет) ==== */
:root {
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.15);
  --ring: 0 0 0 3px rgba(93,208,255,.3);
}

/* ==== ТЁМНАЯ ТЕМА ==== */
[data-theme="dark"]{
  --bg:#0b0f14;
  --card:#121923;
  --text:#e9eef5;
  --muted:#a8b0bb;

  --accent:#5dd0ff;
  --accent-2:#7dffb6;

  /* кнопки */
  --btn-bg:#4dcfff;
  --btn-text:#ffffff;
  --btn-border:none;

  /* нейтральные поверхности/границы */
  --border: color-mix(in oklab, #fff 14%, transparent);
  --soft:   color-mix(in oklab, #fff 6%,  transparent);

  /* для чипов/инпутов/хедера */
  --chip-bg:        color-mix(in oklab, var(--card), #fff 8%);
  --chip-active-bg: color-mix(in oklab, var(--card), var(--accent) 18%);
  --input-bg:       color-mix(in oklab, var(--card), #fff 6%);
  --input-border:   color-mix(in oklab, #fff 12%, transparent);
  --header-bg:      linear-gradient(180deg,
                        color-mix(in oklab, var(--bg), #000 5%) 0%,
                        color-mix(in oklab, var(--bg), transparent) 70%,
                        transparent);
}

/* ==== СВЕТЛАЯ ТЕМА ==== */
[data-theme="light"]{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0b0f14;
  --muted:#5b6573;

  --accent:#0ea5e9;
  --accent-2:#10b981;

  /* кнопки */
  --btn-bg:#0ea5e9;
  --btn-text:#001018;
  --btn-border:none;

  --border: color-mix(in oklab, #000 14%, transparent);
  --soft:   color-mix(in oklab, #000 6%,  transparent);

  --chip-bg:        color-mix(in oklab, var(--card), #000 10%);
  --chip-active-bg: color-mix(in oklab, var(--card), var(--accent) 20%);
  --input-bg:       color-mix(in oklab, var(--card), #000 3%);
  --input-border:   color-mix(in oklab, #000 12%, transparent);
  --header-bg:      linear-gradient(180deg,
                        color-mix(in oklab, var(--bg), #000 6%) 0%,
                        color-mix(in oklab, var(--bg), transparent) 70%,
                        transparent);
}

/* ============================= */
/*        БАЗОВАЯ ВЕРСТКА        */
/* ============================= */
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1200px;margin:0 auto;padding:24px}

/* ============================= */
/*            CHIP               */
/* ============================= */
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:999px; cursor:pointer;
  background: var(--chip-bg);
  border: 1px solid var(--soft);
  color: var(--text);
}
.chip[aria-pressed="true"]{
  outline: var(--ring);
  background: var(--chip-active-bg);
  color: var(--btn-text) !important;
}
section {
  scroll-margin-top: 25px; /* или сколько нужно отступа сверху */
}
/* ============================= */
/*            BUTTONS            */
/* ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 6px 10px;
  font-size: 14px;
  border-radius: 14px;

  background: linear-gradient(90deg, #ff6600, #00c3ff);
  color: #fff !important;
  border: none;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, 
              box-shadow 0.25s ease, 
              opacity 0.25s ease;
}

/* Hover с сиянием */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.7), 
              0 0 20px rgba(255, 102, 0, 0.5);
  opacity: 0.95;
}

/* Active */
.btn:active {
  transform: scale(0.96);
  box-shadow: 0 0 6px rgba(255, 102, 0, 0.6);
}

/* Secondary */
.btn.secondary {
  background: transparent;
  color: #fff !important;
  border: 1px solid #fff;
}

.btn.secondary:hover {
  background: linear-gradient(45deg, rgba(255, 102, 0, 0.1), rgba(255, 204, 0, 0.1));
  box-shadow: 0 0 8px rgba(255, 153, 0, 0.6);
}


/* ============================= */
/*            HEADER             */
/* ============================= */
html, body {
  margin: 0;
  padding: 0;
}
body {
  overflow-x: hidden;
}

/* Хедер */
.site-header {
  position: static;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: transparent;
  backdrop-filter: none;
  z-index: 1000;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.logo { font-weight: 700; color: #fff; text-decoration: none; }

/* Меню для ПК */
.nav-desktop {
  display: flex;
  gap: 24px;
}
.nav-desktop a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.nav-desktop a:hover {
  color: #ff6600;
}

.site-header .logo {
  color: #fff !important; /* твой цвет */
}
.logo {
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ff6600, #00c3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 20px;
  background: none; border: none;
  cursor: pointer;
  z-index: 10001;
}
.burger span {
  display: block;
  height: 3px; width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: .3s;
}
/* Анимация крестика */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Дровер */
.drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 75%; max-width: 300px;
  height: 100%;
  background: #111;
  transition: right .3s ease;
  z-index: 10000;
  padding: 80px 20px 40px;
  overflow-y: auto;
}
.drawer.open { right: 0; }
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.drawer-nav a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: color .2s;
}
.drawer-nav a:hover {
  color: #ff6600;
}

/* Оверлей */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: none;
}
.drawer-overlay.active { display: block; }

/* Адаптив */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
}
/* АНОНС + ТГ ВА */
.event-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e1e1e;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 12px auto;
  max-width: 900px;
  font-size: 18px;
  color: #fff;
  flex-wrap: wrap; 
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.event-bar .highlight {
  color: #4dd0e1;
  font-weight: 600;
}

.event-bar p {
  margin: 0;
  flex: 1 1 auto;
  font-weight: 500;
}

.event-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Кнопки */
.btn.tg {
  background: #0088cc;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn.tg:hover {
  background: #0077b5;
}

.btn.yt {
  background: #ff0000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn.yt:hover {
  background: #cc0000;
}

.btn svg {
  flex-shrink: 0;
}

/* Мобильная версия */
@media (max-width: 600px) {
  .event-bar {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }

  .event-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .event-actions a {
    flex: 0 0 auto;
  }
}
/* ============================= */
/*            HERO               */
/* ============================= */
.hero{
  display: grid;
  grid-template-columns: 1.2fr .8fr; /* левая шире */
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}

/* Карточки */
.hero-card{
  background: radial-gradient(120% 120% at 80% 20%, rgba(93,208,255,.15), transparent), var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  min-width: 0;               /* не раздвигать сетку длинным контентом */
}

/* Тексты */
.hero h1{font-size:clamp(28px,5vw,44px);line-height:1.15;margin:0 0 8px}
.hero p{color:var(--muted);margin:0 0 16px}
.hero {
  position: relative;
  text-align: center;
  color: #fff;
}
.hero img {
  width: 100%;
  height: auto;
}
.hero figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7); /* мягкая тень под текстом */
}

/* Поиск */
.search {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap: wrap;      
}

/* Сам input стилизуем отдельно */
.search input{
  flex:1;
  background: var(--input-bg);         /* было rgba(255,255,255,.06) */
  border: 1px solid var(--input-border);/* было rgba(255,255,255,.12) */
  border-radius:12px; padding:10px 12px;
  color:var(--text); outline:none;
}

/* котент в карточке */
.hero-card--aside {
  width: 620px;
  height: 340px;         /* фиксируем одинаковую высоту */
  display: flex;
  flex-direction: column;
  position: relative;    /* нужно для абсолютного позиционирования fade-box */
  overflow: hidden;
}

/* Универсальные боксы (и быстрый старт, и карточки) */
#aside-default,
.casino-card-big {
  flex: 1;
  height: 100%;          
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  text-align: center;
}

/* Карточка казино */
.casino-card-big {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
}

.casino-card-big .content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Анимация fade */
.fade-box {
  opacity: 0;
  transform: translateX(40px); /* уезжает вправо */
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.fade-box.show {
  opacity: 1;
  transform: translateX(0); /* плавно заезжает */
  pointer-events: auto;
  position: relative;
}

.casino-card-big {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none; /* скрыты по умолчанию */
}

.casino-card-big.show-card {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.quick-start {
  display: flex;
  flex-direction: column;
  gap: 8px; /* расстояние между пунктами */
}

.quick-start p {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .hero {
    display: flex;             
    flex-direction: column;    
    gap: 20px;
  }

  .hero-card--aside {
    width: 100%;   
    height: auto;  
  }

  .hero-card {
    width: 100%;              
  }
}

/* ============================= */
/*            GRIDS              */
/* ============================= */
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.span-12{grid-column:1/-1}
.cards{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.card{
  background:var(--card);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius-sm);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  box-shadow:var(--shadow)
}
.card .thumb{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  aspect-ratio:16/9;
  background:linear-gradient(135deg,#1a2533,#0f1824)
}
.badge{
  position:absolute;
  top:10px;left:10px;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(6px);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  font-weight:700
}
.rating{display:inline-flex;align-items:center;gap:8px;font-weight:800}
.rating .dot{width:10px;height:10px;border-radius:50%}
.meta{color:var(--muted);font-size:14px}
.tags{display:flex;flex-wrap:wrap;gap:8px}
.tag{
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-size:13px
}

/* ============================= */
/*           SECTIONS            */
/* ============================= */
section{margin:28px 0}
section h2{margin:0 0 12px;font-size:clamp(22px,3.4vw,28px)}
section h3 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}
.sub{color:var(--muted);margin-bottom:16px}

/* ============================= */
/*         METHODOLOGY           */
/* ============================= */
.list{display:grid;gap:8px}
.list li{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  padding:12px;
  border-radius:12px
}

/* ============================= */
/*           FOOTER              */
/* ============================= */
footer{
  margin-top:36px;
  padding:24px;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted)
}

/* ============================= */
/*         AGE GATE              */
/* ============================= */
.age-gate{
  position:fixed;
  inset:0;
  background:rgba(11,15,20,.95);
  display:grid;
  place-items:center;
  z-index:50
}
.age-card{
  max-width:560px;
  margin:16px;
  background:var(--card);
  padding:24px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.1);
  text-align:center
}

/* ACTIVE LINK / БЭДЖИ / КАРТОЧКИ / СПИСКИ — те же токены */
.menu a[aria-current="page"]{ background: var(--soft); }
.card{ background: var(--card); border:1px solid var(--input-border); }
.badge{ background: var(--soft); border:1px solid var(--input-border); }
.list li{ background: var(--soft); border:1px solid var(--input-border); }

/*КАРТОЧКИ*/
.card-actions{
  display:flex;
  gap:10px;
  margin-top:auto;  /* ← это опускает блок к низу карточки */
}
.card .btn {
  margin-top: auto; /* прижимает кнопку вниз */
}


/* Лёгкие добивки под статьи (поверх базовых токенов сайта) */
.article{max-width:900px;margin:0 auto;padding:24px}
.lead{color:var(--muted)}

/*ТОС*/
.article-toc {
  display: flex;
  justify-content: left;
  gap: 16px;
  padding: 12px 16px;
  margin: 24px 0;
  background: var(--card);
  border: 1px solid var(--input-border);
  border-radius: 12px;

  flex-wrap: wrap; 
}
@media (max-width: 768px) {
  .article-toc {
    display: flex;
    flex-wrap: nowrap;         
    overflow-x: auto;         
    overflow-y: hidden;        
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none;     
  }

  .article-toc::-webkit-scrollbar {
    display: none;
  }

  .article-toc > * {
    flex: 0 0 auto;  
  }
}

.article-toc a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.article-toc a:hover {
  background: var(--soft);
}

.article-toc a.is-current {
  background: var(--accent);
  color: #000; 
}

.callout{border-left:4px solid var(--accent);padding:12px 12px;background:var(--soft);border-radius:12px;margin: 20px 0;}
.grid-article{display:grid;grid-template-columns:1fr 100%px;gap:24px}
@media (max-width: 980px){.grid-article{grid-template-columns:1fr}}
.kp-table{width:100%;border-collapse:separate;border-spacing:0;margin-top: 20px;}
.kp-table th,.kp-table td{border:1px solid var(--input-border);padding:10px;border-radius:8px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.faq details{background:var(--soft);border:1px solid var(--input-border);padding:12px;border-radius:12px}
.faq details+details{margin-top:8px}

/* ТАБЛИЦА КАРТОЧКА */
.kp-table-wrap, .kp-cards {
  display: none;
}

/* ПК: показываем таблицу, прячем карточки */
@media (min-width: 769px) {
  .kp-table { display: table; }
  .kp-cards { display: none; }
}

/* мобильные: показываем карточки, прячем таблицу */
@media (max-width: 768px) {
  .kp-table { display: none; }
  .kp-cards { display: block; }
}

.kp-card {
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--card);
}

/*ГЕРОЙ*/
.hero {
  width: 100%;
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
}

.hero img {
  width: calc(100% - 48px);
  max-width: 1600px;
  height: 60vh;         /* высота 80% от экрана */
  object-fit: cover;    /* обрезаем красиво */
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/*ЭЛЕМЕНТЫ КАЗИНО*/
.decor-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.25;
  z-index: -1;
  background-size: contain;
  background-repeat: no-repeat;
}

/* фишка красная */
.decor-1 {
  top: 80vh;
  right: -10vw;
  width: 12vw;
  height: 12vw;
  background-image: url('https://static.tildacdn.com/tild3237-3733-4735-b564-653439363039/Group_1.svg');
}

/* тузы */
.decor-2 {
  top: 180vh;
  left: -10vw;
  width: 18vw;
  height: 18vw;
  background-image: url('https://static.tildacdn.com/tild3438-6339-4332-b438-613837666130/Group_5.svg');
}

/* тузы */
.decor-3 {
  top: 200vh;
  right: -15vw;
  width: 10vw;
  height: 10vw;
  background-image: url('https://static.tildacdn.com/tild3137-6230-4638-b436-303037666537/Group_6.svg');
}

/* кубики */
.decor-4 {
  top: 15vh;
  right: -15vw;
  width: 10vw;
  height: 10vw;
  background-image: url('https://static.tildacdn.com/tild3865-3164-4537-a266-333763636434/Group_4.svg');
}

/* фишка черная */
.decor-5 {
  top: 110vh;
  left: -5vw;
  transform: translateY(-50%);
  width: 8vw;
  height: 8vw;
  background-image: url('https://static.tildacdn.com/tild3231-3564-4135-b634-346231663765/Group.svg');
}

/* 3 черви */
.decor-6 {
  top: 20vh;
  left: -15vw;
  width: 8vw;
  height: 8vw;
  background-image: url('https://static.tildacdn.com/tild3761-6164-4434-b563-333836343061/Group_14.svg');
}

/* 5 буб */
.decor-7 {
  top: 40vh;
  left: -18vh;
  transform: translateX(-50%);
  width: 16vw;
  height: 16vw;
  background-image: url('https://static.tildacdn.com/tild3532-3562-4461-b865-633765336237/Group_13.svg');
}

/* куча карт */
.decor-8 {
  top: 5vh;
  left: -15vw;
  width: 8vw;
  height: 8vw;
  background-image: url('https://static.tildacdn.com/tild6236-3264-4339-b631-633863336631/Group_10.svg');
}

/* --- адаптив --- */
@media (max-width: 1024px) {
  .decor-1, .decor-3, .decor-4, .decor-5 {
    width: 80px;
    height: 80px;
  }
  .decor-2 {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .decor-1, .decor-3, .decor-4, .decor-5 {
    width: 60px;
    height: 60px;
  }
  .decor-2 {
    width: 140px;
    height: 140px;
    right: 10px;
    bottom: 30px;
  }
}

/*ШКАЛА ОЦЕНКИ*/
#score {
  margin: 40px 0;
}

#score h2 {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 700;
}

.score {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.score .row {
  display: grid;
  grid-template-columns: 1fr 3fr 50px; /* название | шкала | цифра */
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.score .bar {
  background: rgba(255, 255, 255, 0.1); /* фон под шкалу */
  border-radius: 6px;
  overflow: hidden;
  height: 10px;
  position: relative;
}

.score .bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff6600, #ffcc00); /* заливка */
  box-shadow: 0 0 6px rgba(255, 153, 0, 0.5);
  transition: width 1s ease;
}

.score .row div:last-child {
  text-align: right;
  font-weight: 700;
  color: #ffcc00;
}

/*ТЕКСТ С ССЫЛКОЙ*/
.text-link {
  color: #ffcc00 !important;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 204, 0, 0.6);
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-bottom-color: #ffcc00;
}

.casino-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
