/* ========== Core / Variables ========== */
:root{
  --c-bg:#f1f1fa;
  --c-bg-dark:#000000;
  --c-surface:#f2f4fa;
  --c-surface-2:#e6e9f0;
  --c-text:#1a1a1a;
  --c-muted:#666;
  --c-primary:#ef233c;
  --c-primary-2:#ff5c00;
  --c-accent:#02891A;     /* CTA green */
  --c-link:#198cfe;
  --c-border:#e6e7f2;
  --radius:15px;
  --radius-sm:6px;
  --shadow:0 10px 104px 0 rgba(229,229,245,.8);
  --gap:15px;
}

/* ========== Base ========== */
html,body{margin:0;padding:0}
body{
  font-family: Roboto, "sans-serif";
  background:var(--c-bg);
  color:var(--c-text);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;height:auto;display:block}

/* Links */
a{color:var(--c-link);text-decoration:none;transition:.2s}
a:hover{text-decoration:underline}

/* Headings */
h1,h2,h3,h4,h5,h6{margin:0 0 15px;color:var(--c-text);line-height:1.1}
h1{font-size:2rem}
h2{font-size:1.75rem}
h3{font-size:1.25rem}

/* Container */
.nfad6e2{
  width:100%;
  margin:0 auto;
  padding:0 var(--gap);
  max-width:1260px;
}

/* ========== Header / Nav ========== */
.nfad81d{
  position:sticky;top:0;z-index:999;
  height:60px;
  background:var(--c-bg-dark);
}
.nfad945{display:flex;align-items:center;justify-content:space-between}
.nfadcf1{height:50px}

/* Primary menu */
.menu-main{
  display:flex;align-items:center;justify-content:flex-end;
}
#main_menu{
  display:flex;gap:20px;list-style:none;margin:0;padding:0;
}
#main_menu a{color:#fff;font-weight:600;font-size:.95rem}
#main_menu a:hover{color:#fff;opacity:.8;text-decoration:none}

/* Mobile toggle */
.nfadfdac{display:none}
.mobile-menu-toggle{background:#a19d9d42;border:0;color:#fff}
@media (max-width:1199.98px){
  .nfadfdac{display:block}

  .menu-main.active{transform:translateX(0)}
  #main_menu{flex-direction:column;gap:20px;max-width:575px;margin-left:auto}
}

/* ========== Hero ========== */
.nfadbb8.hero{
  background:linear-gradient(140.34deg,#999 22.6%, #2c2b2e 66.84%);
  color:#fff;border-radius:var(--radius);margin:40px 0 20px;padding:30px var(--gap);
}
.hero-wrapper{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.hero .nfad5216, .hero p{color:#fff}
.hero .nfad3c3{max-width:770px}
.hero-image{width:310px;height:auto;border-radius:20px;border:3px solid #200051}
@media (max-width:1080px){.hero-wrapper{flex-wrap:wrap}}

/* ========== Typography tweaks inside article ========== */
.nfad1be0 p{color:var(--c-muted);font-size:1rem}
.nfadc263 h2{font-size:2rem}

/* ========== Buttons ========== */
.nfad62b{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:12px 16px;border:0;border-radius:5px;
  font-weight:700;cursor:pointer;transition:.15s;
  text-transform:uppercase;font-size:.95rem;
}
.nfad62b.nfadf536{
  background:var(--c-accent);color:#fff;
}
.nfad62b.nfadf536:hover{filter:brightness(0.95)}
.table-link.nfad0ea{
  display:flex;align-items:center;justify-content:center;
  height:44px;border-radius:5px;background:var(--c-surface);color:#000;
  font-size:.9rem;padding:0 10px;text-decoration:none;
}
.table-link.nfad0ea:hover{background:var(--c-surface-2);text-decoration:none}

/* ========== Top Casinos table (grid) ========== */
/* Card base (mobile) */
.nfadcbc{background:transparent}
.nfadbde{background:#fff;border-radius:var(--radius);padding:0}
.nfad484{display:grid;gap:10px}
.nfad6f2.nfad2d5b{
  display:grid;gap:10px;background:#fff;border-radius:9px;padding:12px;
  box-shadow:var(--shadow);
  grid-template-columns:1fr; /* mobile stack */
  align-items:center;
}

/* Elements inside item */
.nfada8f{ /* counter */
  position:absolute;left:12px;top:12px;
  background:#6f60ed;color:#fff;font-weight:700;font-size:.85rem;
  padding:3px 7px;border-radius:9px 0 9px 0;
}
.nfad88f img{border-radius:13px}
.nfad060{position:relative}
.nfad3c9 .stars-box{display:inline-flex;align-items:flex-end}
.nfadc6100{font-weight:700}

.nfad5423{display:flex;flex-direction:column;gap:8px}
.nfad125 .nfad999{font-weight:700}

/* Desktop grid mapping */
@media (min-width:992px){
  .nfad484{gap:12px}
  .nfad6f2.nfad2d5b{
    grid-template-columns: 40px 164px 1fr 110px minmax(250px,1fr) 220px;
    grid-template-areas:
      "count logo rating deposit offer cta";
    align-items:center;
  }
  .nfada8f{position:static;grid-area:count;justify-self:start;border-radius:9px;padding:4px 8px}
  .nfad060{grid-area:logo}
  .nfad3c9{grid-area:rating}
  .table-column-min-deposit{grid-area:deposit;text-align:center}
  .nfad125{grid-area:offer}
  .nfad5423{grid-area:cta;align-items:flex-end}
}

/* Visual polish */
.nfad484 .nfad88f{
  background:transparent;padding:0;margin:0;min-height:auto;width:auto
}
.nfad484 .nfad060{min-height:auto;padding:10px;background:transparent}
.nfad484 .nfad6b3{font-weight:700}
.nfadebc1 b{font-size:1.25rem}

/* Badges / chips */
.nfad532{ /* "top" label if used */
  position:absolute;top:10px;left:10px;background:#fa0;color:#111;
  border-radius:25px;border:none;font-size:.7rem;font-weight:700;padding:2px 6px
}

/* ========== Lists under table (content) ========== */
table:not([class]){width:100%;border-collapse:separate;border-spacing:0;margin:15px 0;border-radius:5px;overflow:hidden}
table:not([class]) th{background:var(--c-surface-2)}
table:not([class]) tr:nth-child(odd){background:var(--c-surface)}
table:not([class]) td, table:not([class]) th{padding:10px;color:var(--c-text);font-size:.875rem}

/* ========== Footer ========== */
.nfadd6e{
  background:linear-gradient(140.34deg,#0E0022 22.6%, #210052 66.84%);
  color:#fff;padding:30px 0;margin-top:30px;
}
#footer_menu_1,#footer_menu_2{list-style:none;margin:0;padding:0}
#footer_menu_1 a,#footer_menu_2 a{color:#838383;font-size:14px}
.nfad031{filter:opacity(.5);max-height:30px;margin:6px 15px}

/* ========== Utilities / Small tweaks ========== */
/* Container gutters on narrow screens */
@media (min-width:1200px){
  .nfad6e2{padding:0 15px}
}
.nfad6b5{padding-top:20px}
.nfadc263{margin-bottom:40px}

/* Make CTA row compact on very small screens */
@media (max-width:375px){
  .nfad5423 .nfad62b{min-width:100%}
}

/* Ensure mobile header menus are accessible */
.nfadab0 .nfad663f,
.nfadab0 .nfad663f:before,
.nfadab0 .nfad663f:after{background:#fff}

/* ========== Vars (можно один раз в проекте) ========== */
:root{
  --c-bg:#f1f1fa;
  --c-bg-dark:#000000;
  --c-surface:#f2f4fa;
  --c-text:#1a1a1a;
  --c-muted:#888;
  --c-link:#198cfe;
  --c-primary:#ef233c;
  --c-accent:#02891A;
  --radius:15px;
  --gap:15px;
}

/* Универсальный контейнер */
.nfad6e2{max-width:1260px;margin:0 auto;padding:0 var(--gap)}

/* =========================
   HERO (мобиль‑first)
   ========================= */
.nfadbb8.hero{
  margin:40px 0 20px;
  padding:30px var(--gap);
  color:#fff;
  border-radius:var(--radius);
  background:linear-gradient(140.34deg,#999 22.6%, #2c2b2e 66.84%);
}
.hero-wrapper{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:center;
  justify-content:space-between;
}
.hero .nfad5216{color:#fff}
.hero .nfad3c3{flex:1 1 320px;min-width:280px}
.hero .nfad3c3 p{color:#fff;opacity:.9}
.hero-image{
  width:310px;max-width:100%;height:auto;
  border-radius:20px;border:3px solid #200051;
}

/* планшет+ — чуть крупнее заголовок и компактнее поля */
@media (min-width:768px){
  .hero .nfad5216{font-size:2.25rem}
}

/* десктоп+ — фиксируем контентную ширину */
@media (min-width:1200px){
  .hero .nfad3c3{max-width:770px}
}

/* =========================
   МОБИЛЬНОЕ МЕНЮ / ХЕДЕР
   ========================= */
.nfad81d{
  position:sticky;top:0;z-index:999;
  height:60px;background:var(--c-bg-dark);
}
.nfad945{display:flex;align-items:center;justify-content:space-between}
.nfadcf1{height:30px}

/* меню по умолчанию (desktop visible) */
.menu-main{display:flex;align-items:center;justify-content:flex-end}
#main_menu{display:flex;gap:20px;list-style:none;margin:0;padding:0}
#main_menu a{color:#fff;font-weight:600;font-size:.95rem;text-decoration:none}
#main_menu a:hover{opacity:.85}

/* кнопка-бургер */
.nfadfdac{display:none}
.mobile-menu-toggle{background:transparent;border:0;color:#fff;cursor:pointer}

/* мобильная версия меню */
@media (max-width:1199.98px){
  .nfadfdac{display:block}
  .menu-main{
    position:fixed;inset:auto 0 0 0;top:60px;
    height:calc(100dvh - 60px);
    background:#000;
    transform:translateX(100%);
    transition:transform .3s ease;
    padding:20px var(--gap);
  }
  .menu-main.active{transform:translateX(0)} /* добавляйте/снимайте класс из JS */
  #main_menu{
    flex-direction:column;
    gap:20px;
    max-width:575px;
    margin-left:auto;
  }
}

/* =========================
   ФУТЕР (мобиль‑first)
   ========================= */
.nfadd6e{
  margin-top:30px;
  padding:30px 0;
  color:#fff;
  background:linear-gradient(140.34deg,#0E0022 22.6%, #210052 66.84%);
  background-color:#130D38;
}

/* колонки футера (Recent posts / Information) */
.nfad6a5{display:flex;flex-wrap:wrap;gap:20px}
.nfad486{flex:1 1 280px;padding:0}
.nfaddf9{display:block;font-size:.9rem;color:#e6e9f0;margin:0 0 12px}

/* списки ссылок */
#footer_menu_1,#footer_menu_2{margin:0;padding:0;list-style:none}
#footer_menu_1 a,#footer_menu_2 a{
  color:#838383;font-size:14px;text-decoration:none
}
#footer_menu_1 a:hover,#footer_menu_2 a:hover{color:#bfbfbf}

/* плашка с логотипами и копирайтом */
.nfadc4c{display:flex;flex-wrap:wrap;gap:15px;margin-top:10px}
.nfad1e9,.nfad7e0e{flex:1 1 280px}
.nfadcd1{
  display:flex;flex-wrap:wrap;gap:12px;align-items:center;
  justify-content:flex-start;width:100%;
}
.nfad031{max-height:30px;filter:opacity(.5)}
.nfad178{font-size:.85rem;color:#e6e9f0}

/* планшет: выравнивания */
@media (min-width:768px){
  .nfadcd1{justify-content:flex-start}
  .nfad178{text-align:left}
}

/* десктоп: аккуратные поля контейнера */
@media (min-width:1200px){
  .nfad6e2{padding:0 15px}
}

/* =========================
   ПАТЧ СТИЛЕЙ ПОД ТЗ
   Добавьте этот блок последним
   ========================= */

/* Базовые переменные (если уже есть — можно пропустить) */
:root{
  --c-bg:#f1f1fa;
  --c-surface:#f2f4fa;
  --c-surface-2:#e6e9f0;
  --c-text:#1a1a1a;
  --c-muted:#666;
  --c-brand:#6862c3;      /* новый фирменный цвет (шапка/футер) */
  --c-cta:#040289;        /* кнопка “Играть” */
  --radius:15px;
  --gap:15px;
}

/* Контейнер */
.nfad6e2{max-width:1260px;margin:0 auto;padding:0 var(--gap)}

/* =========================
   ШАПКА / МЕНЮ
   ========================= */
.nfad81d{
  position:sticky;top:0;z-index:999;
  height:56px; background:var(--c-brand) !important;
}
.nfad945{display:flex;align-items:center;justify-content:space-between}
.nfadcf1{height:28px}

/* Показать название “Топ онлайн казино” справа от логотипа (если текста нет в разметке) */
.nfad8ad{display:inline-flex;align-items:center;gap:10px}


/* Меню сдвинуть левее и выравнять влево на десктопе */
.menu-main{display:flex;align-items:center;justify-content:flex-start}
.menu-main{margin-left:20px}
#main_menu{display:flex;gap:18px;list-style:none;margin:0;padding:0}
#main_menu a{color:#fff;text-decoration:none;font-weight:600}
#main_menu a:hover{opacity:.9}

/* Мобильное меню (открывается по .active) */
.nfadfdac{display:none}
.mobile-menu-toggle{background:transparent;border:0;color:#fff;cursor:pointer}
@media (max-width:1199.98px){
  .nfadfdac{display:block}
  .menu-main{
    position:fixed;inset:auto 0 0 0;top:56px;height:calc(100dvh - 56px);
    background:var(--c-brand);transform:translateX(100%);transition:transform .3s;
    padding:20px var(--gap);z-index:998;
  }
  .menu-main.active{transform:translateX(0)}
  #main_menu{flex-direction:column;gap:20px;max-width:575px;margin-left:auto}
}

/* =========================
   ТЕЛО: убрать баннер, H1 после шапки
   ========================= */
/* Скрыть баннер (hero) полностью */
.nfadbb8.hero{display:none !important}

/* Отступ для первого H1 после шапки */
.nfadc263 h1{margin-top:22px}

/* =========================
   СПИСОК КАЗИНО (таблица/карточки)
   ========================= */

/* Вертикальный разделитель после лого */
.nfad484 .nfad060{
  position:relative;
  padding-right:12px;margin-right:12px;
  border-right:1px solid var(--c-surface-2);
}

/* Метка над депозитом */
.table-column-min-deposit{position:relative}
.table-column-min-deposit::before{
  content:"Мин. депозит";
  display:block;margin-bottom:4px;
  font-size:.75rem;color:var(--c-muted);font-weight:600;
}

/* Рейтинг — сдвигаем в отдельную колонку, допускаем редактирование (числовой инпут) */
.nfad3c9 .table-rating{display:flex;align-items:center;gap:8px}
.nfad3c9 .table-rating input[type="number"]{
  width:72px;height:36px;padding:6px 8px;border:1px solid var(--c-surface-2);
  border-radius:8px;font-weight:700;
}

/* Последнее поле — бонусы (оставляем, делаем столбцом) */
.nfad125{display:flex;flex-direction:column;gap:6px}

/* Кнопки: “Играть” и “Обзор” с возможностью реф-ссылок (HTML уже их содержит) */
/* Играть — поменять цвет на #040289 и текст (если правка HTML затруднена) */
.nfad62b.nfadf536.table-button{
  background:var(--c-cta) !important;color:transparent !important;
  position:relative;border:0;border-radius:5px;min-height:44px
}
.nfad62b.nfadf536.table-button::after{
  content:"Играть"; color:#fff; position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;letter-spacing:.2px
}

/* “Обзор” — переименовать и стилизовать */
.table-link.nfad0ea{
  background:var(--c-surface);color:transparent !important;position:relative;
  border-radius:5px;min-height:44px
}
.table-link.nfad0ea::after{
  content:"Обзор"; color:#000; position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  font-weight:600;
}

/* Десктопная сетка элементов строки (если уже использовалась — оставляем, лишь полируем) */
@media (min-width:992px){
  .nfad6f2.nfad2d5b{
    display:grid;gap:12px;background:#fff;border-radius:9px;padding:12px;
    grid-template-columns: 40px 164px 1fr 110px minmax(250px,1fr) 220px;
    grid-template-areas: "count logo rating deposit offer cta";
    align-items:center;box-shadow:0 10px 104px 0 rgba(229,229,245,.8);
  }
  .nfada8f{grid-area:count;position:static;background:#6f60ed;color:#fff;
    font-weight:700;font-size:.85rem;padding:4px 8px;border-radius:9px}
  .nfad060{grid-area:logo}
  .nfad3c9{grid-area:rating}
  .table-column-min-deposit{grid-area:deposit;text-align:center}
  .nfad125{grid-area:offer}
  .nfad5423{grid-area:cta;display:flex;flex-direction:column;gap:8px;align-items:flex-end}
}

/* Панель фильтра (поле ввода названия казино) — вставьте блок .casino-filter над таблицей */
.casino-filter{
  margin:18px 0 12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap
}
.casino-filter input[type="search"], .casino-filter input[type="text"]{
  flex:1 1 260px;min-height:44px;padding:10px 12px;border:1px solid var(--c-surface-2);
  border-radius:10px;font-size:.95rem
}
.casino-filter .divider{
  height:1px;background:var(--c-surface-2);width:100%;
}

/* =========================
   FAQ (аккордеон на details/summary)
   ========================= */
.faq{margin:30px 0}
.faq details{
  background:var(--c-surface);border-radius:10px;margin-bottom:8px;overflow:hidden;
  border:1px solid var(--c-surface-2)
}
.faq summary{
  cursor:pointer;list-style:none;padding:14px 44px 14px 16px;font-weight:700;position:relative
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"";position:absolute;right:14px;top:50%;width:10px;height:10px;
  border-right:2px solid var(--c-text);border-bottom:2px solid var(--c-text);
  transform:translateY(-50%) rotate(-45deg);transition:.2s;
}
.faq details[open] summary::after{transform:translateY(-50%) rotate(45deg)}
.faq .answer{padding:0 16px 16px;color:var(--c-muted);line-height:1.55}

/* =========================
   ФУТЕР
   ========================= */
.nfadd6e{
  background:var(--c-brand) !important;color:#fff !important;
  padding:20px 0 !important; margin-top:30px;
}

/* Прячем старые заголовки “Recent posts / Information”, если остаются в шаблоне */
.nfadd6e .nfad18d.nfaddf9{display:none}

/* Сетки футера (готово под 3 блока: лого / название / копирайт) */
.nfad6a5{display:flex;flex-wrap:wrap;gap:15px;align-items:center}
.footer-col{flex:1 1 200px;display:flex;align-items:center;justify-content:center}
.footer-brand img{max-height:28px;filter:brightness(0) invert(1)}
.footer-name{font-weight:800;font-size:16px}
.footer-copy{font-size:14px;opacity:.9}

/* Нижняя секция с логотипами/копирайтом — сделать компактнее */
.nfadc4c{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.nfadcd1{display:flex;gap:10px;align-items:center}
.nfad031{max-height:26px;filter:opacity(.6)}
.nfad178{font-size:.85rem;color:#fff;opacity:.9}

/* =========================
   Доп. косметика
   ========================= */
.nfad62b{min-height:44px;border-radius:5px}
.table-link.nfad0ea{min-height:44px}

/* ----- Хэдер: фиксируем, красим, убираем верхний «системный» отступ WP ----- */

/* WP админ-бар: убираем margin у html и фиксируем сам бар (чтобы не сдвигал страницу) */
html{ margin-top:0 !important; }
body.admin-bar #wpadminbar{ position:fixed; }

/* переменные высот */
:root{ --header-h: 64px; }          /* фактическая высота шапки (логотип+меню+внутр. отступ) */
body.admin-bar{ --adminbar-h:32px; } /* WP admin bar desktop */
@media (max-width:782px){
  body.admin-bar{ --adminbar-h:46px; } /* WP admin bar mobile */
}

/* шапка: фиксированная, на всю ширину, с нижним отступом в том же цвете */
.nfad81d{
  position:fixed; left:0; right:0; top:0; z-index:9999;
  background:#6862c3; color:#fff;
  min-height:var(--header-h);
  display:flex; align-items:center;
  /* добавляем «полоску» снизу цветом шапки */
  box-shadow: 0 10px 0 0 #6862c3 inset;
}
/* когда есть админ-бар — смещаем шапку ровно под него */
body.admin-bar .nfad81d{ top:var(--adminbar-h); }

/* внутренние отступы и выравнивание */
.nfad81d .nfad6e2{ padding-top:8px; padding-bottom:12px; }
.nfad945{ gap:16px; }
.menu-main{ justify-content:flex-start; }

/* контент: добавляем отступ сверху, равный сумме высоты шапки (+ админ-бар при наличии) */
body:not(.admin-bar) .nfad6b5{ padding-top:var(--header-h); }
body.admin-bar .nfad6b5{ padding-top:calc(var(--header-h) + var(--adminbar-h)); }

/* лёгкая тень под шапкой, если нужно визуально отделить */
.nfad81d{ box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 0 0 #6862c3 inset; }

/* меню и элементы в шапке — белый текст, без лишних отступов */
#main_menu{ margin:0; }
#main_menu a{ color:#fff; font-weight:600; }
#main_menu a:hover{ opacity:.9; text-decoration:none; }

/* логотип и название слева */
.nfad8ad{ display:inline-flex; align-items:center; gap:10px; }
.nfadcf1{ height:28px; }
.nfad8ad .site-title{ color:#fff; font-weight:800; font-size:15px; white-space:nowrap; }

/* мобильное меню (остается как было, но учитывает фиксированную шапку/админ-бар) */
@media (max-width:1199.98px){
  .menu-main{
    position:fixed; inset:auto 0 0 0;
    top:calc(var(--adminbar-h, 0px) + var(--header-h));
    height:calc(100dvh - (var(--adminbar-h, 0px) + var(--header-h)));
    background:#6862c3;
    transform:translateX(100%); transition:transform .3s ease; z-index:9998;
    padding:20px 15px;
  }
  .menu-main.active{ transform:translateX(0); }
  #main_menu{ flex-direction:column; gap:20px; }
}

/* Заголовок сразу после шапки */
.h1-padded{ margin:22px 0 12px; }

/* Панель поиска */
.casino-filter{ display:flex; align-items:center; gap:12px; margin:12px 0 14px; }
.casino-filter .divider{ flex:1 1 auto; height:1px; background:#e6e9f0; }
.casino-filter__input{
  flex:0 0 260px; min-height:44px; padding:10px 12px;
  border:1px solid #e6e9f0; border-radius:10px; font-size:.95rem;
}

/* Таблица/карточки */
.casino-table{ display:grid; gap:12px; }
.casino-row{
  display:grid; gap:12px; align-items:center;
  background:#fff; border-radius:12px; padding:12px;
  box-shadow:0 10px 104px 0 rgba(229,229,245,.8);
}

/* Колонки (мобайл: столбцами) */
.col--pos   { order:1 }
.col--logo  { order:2 }
.col--name  { order:3 }
.col--rating{ order:4 }
.col--deposit{ order:5 }
.col--offer { order:6 }
.col--cta   { order:7 }

.pos{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:28px; height:24px; padding:0 8px; border-radius:9px;
  background:#6f60ed; color:#fff; font-weight:700; font-size:.85rem;
}
.logo{ width:auto; max-width:160px; max-height:70px; }
.casino-name{ font-weight:800; font-size:1rem; color:#1a1a1a; text-decoration:none; }
.casino-name:hover{ color:#6862c3; }

.rating-input{
  width:76px; height:40px; padding:6px 10px;
  border:1px solid #e6e9f0; border-radius:8px; font-weight:700; font-size:1rem;
}
.rating-max{ margin-left:6px; color:#666; }

.col--deposit .label{
  display:block; font-size:.75rem; color:#888; font-weight:700; margin-bottom:4px;
}
.col--deposit .value{ font-weight:700; }


.col--rtp .label{
  display:block; font-size:.75rem; color:#888; font-weight:700; margin-bottom:4px;
}
.col--rtp .value{ font-weight:700; }

.col--offer{ display:flex; flex-direction:column; gap:6px; }
.col--offer .rtp{ font-weight:700; }
.col--offer .bonus{ font-weight:700; line-height:1.35; }

/* Кнопки */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:20px; padding:10px 16px; border-radius:6px; font-weight:700;
  text-decoration:none; transition:.15s; white-space:nowrap;
}
.btn--play  { background:#040289; color:#fff; }
.btn--play:hover{ filter:brightness(.95); }
.btn--review{
  background:#f2f4fa; color:#000; margin-left:8px;
}
.btn--review:hover{ background:#e6e9f0; }

/* Вертикальный разделитель после лого + между основными колонками (desktop) */
@media (min-width:992px){
  .casino-row{
            grid-template-columns: 40px 160px 1fr 95px 62px 62px minmax(260px, 1fr) 220px
  }
  .col--logo{ border-right:1px solid #e6e9f0; padding-right:12px; margin-right:4px; }
  .col--name{ border-right:1px solid #e6e9f0; padding-right:12px; }
  .col--rating{ display:flex; align-items:center; border-right:1px solid #e6e9f0; padding-right:12px; }
  .col--deposit{ text-align:center; border-right:1px solid #e6e9f0; padding-right:12px; }
  .col--cta{ display:flex; justify-content:flex-end; }
}

/* Вспомогательное */
.sr-only{
  position:absolute !important; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0);
  white-space:nowrap; border:0; padding:0;
}

/* Размеры; если у вас уже есть — можно не дублировать */
:root{ --header-h:64px; }
body.admin-bar{ --adminbar-h:32px; }
@media (max-width:782px){ body.admin-bar{ --adminbar-h:46px; } }

/* Бургер-иконка */
.mobile-menu-toggle{ width:44px;height:44px;display:grid;place-items:center;background:#00000026;border:0;color:#00000026;cursor:pointer }
.mobile-menu-toggle .nfad663f,
.mobile-menu-toggle .nfad663f::before,
.mobile-menu-toggle .nfad663f::after{
  content:""; display:block; width:22px; height:2px; background:#fff; border-radius:2px;
  transition:transform .2s ease, opacity .2s ease; position:relative;
}
.mobile-menu-toggle .nfad663f::before{ position:absolute; top:-7px; left:0 }
.mobile-menu-toggle .nfad663f::after{ position:absolute; top:7px; left:0 }

/* Состояние «открыто» */
.mobile-menu-toggle[aria-expanded="true"] .nfad663f{ opacity:0 }
.mobile-menu-toggle[aria-expanded="true"] .nfad663f::before{ transform:translateY(7px) rotate(45deg) }
.mobile-menu-toggle[aria-expanded="true"] .nfad663f::after{ transform:translateY(-7px) rotate(-45deg) }

/* Слайд-меню (мобайл) — у вас уже есть базовые правила; дополним z-index и цвета */
@media (max-width:1199.98px){
  .menu-main{
    position:fixed; inset:auto 0 0 0;
    top:calc(var(--adminbar-h, 0px) + var(--header-h));
    height:calc(100dvh - (var(--adminbar-h, 0px) + var(--header-h)));
    background:#6862c3; transform:translateX(100%); transition:transform .3s ease;
    padding:20px 16px; z-index:9998;
  }
  .menu-main.active{ transform:translateX(0) }
  #main_menu{ flex-direction:column; gap:18px; margin:0; padding:0; list-style:none }
  #main_menu a{ color:#fff; font-weight:700; text-decoration:none }
  #main_menu a:hover{ opacity:.9 }
}

/* Оверлей */
.mobile-menu-backdrop{
  position:fixed; left:0; right:0;
  top:calc(var(--adminbar-h, 0px) + var(--header-h)); bottom:0;
  background:rgba(0,0,0,.35); 
  opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:9997;
}
body.menu-open .mobile-menu-backdrop{ opacity:1; pointer-events:auto }

/* Блокировка скролла страницы при открытом меню */
body.menu-open{ overflow:hidden }

/* Фикс-отступ у контента под фиксированной шапкой (если ещё не добавили ранее) */
body:not(.admin-bar) .nfad6b5{ padding-top:var(--header-h) }
body.admin-bar .nfad6b5{ padding-top:calc(var(--header-h) + var(--adminbar-h)) }

.site_title_text {
    color: #ffffff;
    font-weight: bold;
    font-size: 17px;
    position: relative;
    top: 2px;
    left: -5px;
    text-shadow: 0 0 20px #111;
}

.footer-partners {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Сетка логотипов */
.partners-grid {
  --gap: 24px;
  --item-h: 56px;
  --img-max-h: 36px;

  list-style: none;
  display: grid;
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: var(--gap);
  align-items: center;
  padding: 0;
  margin: 0;
}

/* Карточка партнёра */
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--item-h);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.partner:hover,
.partner:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  outline: none;
}

.partner img {
  max-width: 100%;
  max-height: var(--img-max-h);
  object-fit: contain;
  filter: grayscale(1) contrast(1.05) opacity(.8);
  transition: filter .2s ease, opacity .2s ease;
}
.partner:hover img,
.partner:focus-visible img {
  filter: none;
  opacity: 1;
}

/* Вспомогательный класс для скрытия заголовка визуально, но доступного для скринридеров */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Адаптация */
@media (max-width: 1200px) {
  .partners-grid { grid-template-columns: repeat(6, minmax(110px, 1fr)); }
}
@media (max-width: 992px) {
  .partners-grid { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
}
@media (max-width: 600px) {
  .footer-partners { padding: 20px 0; }
  .partners-grid {
    --gap: 16px;
    --item-h: 52px;
    --img-max-h: 32px;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }
}
@media (max-width: 400px) {
  .partners-grid { grid-template-columns: repeat(2, minmax(90px, 1fr)); }
}

/* Светлая тема (опционально) */
@media (prefers-color-scheme: light) {
  .footer-partners { border-top-color: rgba(0,0,0,0.06); }
  .partner { background: rgba(0,0,0,0.035); }
  .partner:hover { background: rgba(0,0,0,0.06); }
}

/* Брейкпоинты (можно подстроить под проект) */
@media (min-width: 600px) { /* tablet ≥600px */ }
@media (min-width: 992px) { /* desktop ≥992px */ }

/* Базовый контейнер: центрирование + небольшие паддинги */
.container {
  max-width: 1200px;          /* ширина контейнера на больших экранах */
  margin-inline: auto;         /* центрирование */
  padding-inline: 12px;        /* моб: небольшой отступ слева/справа */
}

/* Планшеты: чуть больше */
@media (min-width: 600px) {
  .container {
    padding-inline: 16px;
  }
}

/* Десктоп: немного шире отступ */
@media (min-width: 992px) {
  .container {
    padding-inline: 24px;
  }
}

/* Вариант более компактного контейнера (если нужно ещё меньше) */
.container--tight {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 8px;
}
@media (min-width: 600px) {
  .container--tight { padding-inline: 12px; }
}
@media (min-width: 992px) {
  .container--tight { padding-inline: 16px; }
}

/* Флюидный контейнер на всю ширину, но с теми же отступами */
.container--fluid {
  width: 100%;
  margin: 0;
  padding-inline: 12px;
}
@media (min-width: 600px) {
  .container--fluid { padding-inline: 16px; }
}
@media (min-width: 992px) {
  .container--fluid { padding-inline: 24px; }
}

header .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 20px;
}

.casino-table .logo {
    max-width: 100%;
    width: 100%;
    max-height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

/* База */
.header {
  --brand: #6862c3;  /* ваш цвет */
  --ink: #fff;
  position: relative;
  background: var(--brand);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;  /* чтобы слои не влияли на остальную страницу */
}

/* 1) Aurora glow — мягные «полярные» блики */
.header--aurora::before {
  content: "";
  position: absolute;
  inset: -20% -20% -30% -20%;
  background:
    radial-gradient(60% 40% at 15% 25%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(45% 35% at 85% 10%, rgba(77,215,255,.32), transparent 60%),
    radial-gradient(50% 45% at 70% 85%, rgba(255,113,181,.25), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,0) 55%);
  filter: blur(26px);
  opacity: .95;
  pointer-events: none;
  z-index: -1;
}

/* легкая динамика (опционально добавь класс .header--animated) */
@keyframes auroraFloat {
  0%   { transform: translateY(0) translateX(0) scale(1); }
  50%  { transform: translateY(-12px) translateX(6px) scale(1.02); }
  100% { transform: translateY(0) translateX(0) scale(1); }
}
.header--aurora.header--animated::before {
  animation: auroraFloat 10s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .header--aurora.header--animated::before { animation: none; }
}

/* 2) Mesh gradient — актуальный «меш» без явных повторов */
.header--mesh {
  background:
    radial-gradient(1200px 500px at 0% 0%, #7f7ae0 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 20%, #4dd7ff 0%, transparent 55%),
    radial-gradient(700px 400px at 70% 100%, #ff89c6 0%, transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 50%),
    var(--brand);
}

/* 3) Curve edge — стильная изогнутая нижняя кромка + лёгкий блик */
.header--curve {
  background:
    radial-gradient(120% 80% at 0% -10%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(120% 90% at 100% -20%, rgba(0,0,0,.18), transparent 60%),
    var(--brand);
}
.header--curve::after {
  /* создаём плавную «волну» внизу */
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -12%;
  height: 40%;
  background: inherit;             /* продолжает фон */
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  filter: blur(8px) saturate(1.05);
  z-index: -1;
}

/* Нежная микросетка для фактуры (можно добавить к любому варианту) */
.header--texture::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 31px, rgba(255,255,255,.04) 32px),
    linear-gradient(90deg, transparent 31px, rgba(255,255,255,.04) 32px);
  background-size: 32px 32px;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
}

/* Адаптация: на мобильных слегка уменьшаем контраст */
@media (max-width: 600px) {
  .header--mesh,
  .header--aurora,
  .header--curve {
    background-blend-mode: normal;
	  z-index: 5;
  }
  .header--texture::before { opacity: .25; }
}

/* Пример размера/внутренних отступов — подстрой под свой макет */
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px;
}
@media (min-width: 992px) {
  .header__inner { padding: 40px 24px; }
}

/* Мобильная версия карточки казино */
@media (max-width: 640px) {
  .casino-row {
    --brand: #6862c3;
    --chip-bg: rgba(255,255,255,.08);
    --chip-ink: #fff;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.06);
    transition: background .2s ease, transform .06s ease;
    will-change: background, transform;
  }
  .casino-row:active { transform: translateY(1px); }
  .casino-row .col { margin: 0; }

  /* Позиция (номер) */
  .casino-row .col--pos { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .casino-row .pos {
    display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 30px;border-radius: 8px;
    background: rgb(105 97 193);
    font: 700 14px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  }

  /* Лого */
  .casino-row .col--logo { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .casino-row .logo {
    width: 70px; height: 70px; object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  }

  /* Название */
  .casino-row .col--name { grid-column: 3; grid-row: 1; align-self: end; }
  .casino-row .casino-name {
    display: block;
    font: 800 16px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: inherit; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .casino-row .casino-name:focus-visible {
    outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px;
  }

  /* Рейтинг */
  .casino-row .col--rating {
    grid-column: 3; grid-row: 2;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px;
  }
  .casino-row .col--rating::before {
    content: "★"; color: #ffd166; font-size: 14px; line-height: 1;
  }
  .casino-row .rating-max { opacity: .6; margin-left: 2px; }

  /* Депозит и оффер — чипы */
  .casino-row .col--deposit { grid-column: 2; grid-row: 3; align-self: start; }
  .casino-row .col--offer   { grid-column: 3; grid-row: 3; align-self: start; }

.casino-row .col--rtp { grid-column: 1; grid-row: 3; align-self: start; }

  .casino-row .col--deposit .value,
  .casino-row .col--offer .rtp,
  .casino-row .col--offer .bonus,  .casino-row .col--rtp .rtp {
    display: inline-flex; align-items: center; height: 28px;
     margin-right: 8px;
    border-radius: 999px;
    font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    letter-spacing: .01em;
    background: var(--chip-bg); 
  }
  .casino-row .col--offer .rtp   { background: color-mix(in srgb, var(--brand) 22%, transparent); }


  /* Кнопки */
  .casino-row .col--cta {
    grid-column: 1 / -1; grid-row: 4;
    display: grid; grid-template-columns: 1fr;
    gap: 6px; align-items: center;
    margin-top: 2px;
  }
  .casino-row .btn {
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; border: 0;
    height: 44px; border-radius: 10px; padding: 0 16px;
    font: 800 15px/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  }
  .casino-row .btn--play {
    background: linear-gradient(135deg, #6f69d9, var(--brand) 60%, #5b55b0);
    box-shadow: 0 8px 20px rgba(104,98,195,.35);
    transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
  }
  .casino-row .btn--play:hover { filter: brightness(1.02); }
  .casino-row .btn--play:active {
    transform: translateY(1px);
    box-shadow: 0 6px 16px rgba(104,98,195,.28);
  }

  /* Вторая кнопка: аккуратная текст-ссылка под основной CTA */
  .casino-row .btn--review {
    height: auto; padding: 6px 0; background: transparent;
    text-decoration: underline; text-underline-offset: 3px;
    justify-self: center; font-weight: 700; font-size: 13px;
  }

}

/* Небольшое улучшение для широких телефонов: от 420px разместим 2-ю кнопку справа от CTA */
@media (min-width: 420px) and (max-width: 640px) {
  .casino-row .col--cta { grid-template-columns: 1fr auto; }
  .casino-row .btn--review {
    justify-self: end; padding: 0 10px; height: 44px;
    background: rgba(255,255,255,.08); border-radius: 10px;
    text-decoration: none;
  }
}

/* 1) Меню должно быть выше всего контента + прокрутка внутри */
@media (max-width:1199.98px){
  .nfad81d{ z-index: 10001; }          /* хедер над меню, чтобы бургер был кликабелен */
  .menu-main{
    position: fixed;
    inset: auto 0 0 0;
    top: calc(var(--adminbar-h, 0px) + var(--header-h));
    height: calc(100dvh - (var(--adminbar-h, 0px) + var(--header-h)));
    background: #6862c3;
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 20px 16px;
    z-index: 10000;                    /* ПОВЫШЕ карточек и всего остального */
    overflow-y: auto;                  /* чтобы длинное меню скроллилось */
    pointer-events: auto;
    will-change: transform;
  }
  .menu-main.active{ transform: translateX(0);         align-items: baseline;
        margin-left: auto;
    }}

  /* Оверлей ниже меню, но выше страницы */
  .mobile-menu-backdrop{ z-index: 9999; }
}

/* 2) Крестик: не прячем псевдоэлементы через opacity, а убираем фон средней полоски */
.mobile-menu-toggle[aria-expanded="true"] .nfad663f{ background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .nfad663f::before{
  transform: translateY(7px) rotate(45deg);
  opacity: 1;
}
.mobile-menu-toggle[aria-expanded="true"] .nfad663f::after{
  transform: translateY(-7px) rotate(-45deg);
  opacity: 1;
}

/* ===== MOBILE NAV – ABSOLUTE OVERRIDE PACK ===== */

/* Шапка фиксируется, но не создаёт новый контекст наложения */
.nfad81d{
  position: fixed !important;
  left: 0; right: 0;
  top: var(--adminbar-h, 0px) !important;
  height: var(--header-h, 60px) !important;
  background: var(--c-brand, #6862c3) !important;
  color: #fff; display: flex; align-items: center;
  z-index: 2147483600 !important; /* ниже только системные окна браузера */
  transform: none !important; filter: none !important; perspective: none !important;
}

/* ЕДИНЫЙ офф‑канвас (всегда поверх контента) */
@media (max-width:1199.98px){
  .menu-main{
    position: fixed !important;
    inset: auto 0 0 0 !important;
    top: calc(var(--adminbar-h, 0px) + var(--header-h, 60px)) !important;
    height: calc(100dvh - (var(--adminbar-h, 0px) + var(--header-h, 60px))) !important;
    background: var(--c-brand, #6862c3) !important;

    transform: translateX(100%) !important;
    transition: transform .32s ease !important;
    padding: 20px var(--gap, 15px) !important;

    z-index: 2147483500 !important;   /* ниже шапки, выше всего контента */
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    pointer-events: auto !important;
    will-change: transform;
  }
  .menu-main.active{ transform: translateX(0) !important; }

  /* Бэкдроп под панелью */
  .mobile-menu-backdrop{
    position: fixed !important;
    left: 0; right: 0;
    top: calc(var(--adminbar-h, 0px) + var(--header-h, 60px)) !important;
    bottom: 0;
    background: rgba(0,0,0,.35) !important;
    opacity: 0; pointer-events: none; transition: opacity .2s ease !important;
    z-index: 2147483400 !important;
  }
  body.menu-open .mobile-menu-backdrop{ opacity: 1; pointer-events: auto; }

  /* Контент не должен иметь спец‑z-index */
  main, .nfad6b5, .casino-table, .casino-row, .nfadbde, .nfad484{
    position: relative !important; z-index: auto !important;
  }
}

/* Бургер -> крестик без opacity-ловушек */
.mobile-menu-toggle{
  width:44px;height:44px;display:grid;place-items:center;
  background:#00000026;border:0;color:#fff;cursor:pointer;border-radius:8px;
}
.mobile-menu-toggle .nfad663f,
.mobile-menu-toggle .nfad663f::before,
.mobile-menu-toggle .nfad663f::after{
  content:"";display:block;width:22px;height:2px;background:#fff;border-radius:2px;
  transition:transform .2s ease, background .2s ease;position:relative;
}
.mobile-menu-toggle .nfad663f::before{position:absolute;top:-7px;left:0}
.mobile-menu-toggle .nfad663f::after{position:absolute;top:7px;left:0}
.mobile-menu-toggle[aria-expanded="true"] .nfad663f{background:transparent}
.mobile-menu-toggle[aria-expanded="true"] .nfad663f::before{transform:translateY(7px) rotate(45deg)}
.mobile-menu-toggle[aria-expanded="true"] .nfad663f::after{ transform:translateY(-7px) rotate(-45deg) }

.casino-name {
    color: #1F1D95;
    font-size: 1.2rem;
}


.col--rtp {
    order: 5;
}

@media (min-width: 992px) {
    .col--rtp {
        text-align: center;
        border-right: 1px solid #e6e9f0;
        padding-right: 12px;
    }
}


.col--rtp .rtp {
    font-weight: 700;
}

.col--deposit .label, .col--rtp .label {
    line-height: 1;
}


/* Только мобильная карточка (≤640px): компактная, без «пустот».
   RTP и Мин. депозит — справа от логотипа/имени/рейтинга.
   Бонусы — на всю ширину ниже. */
@media (max-width: 640px) {
  .casino-row{
    display:grid !important;
    grid-template-columns: 36px 60px 1fr auto !important; /* № | лого | текст | правая колонка */
    grid-auto-rows:min-content !important;
    gap:8px 10px !important;
    align-items:start !important;
    padding:12px !important;
    border-radius:12px;
    background:#fff;
  }

  /* Порядок/позиции */
  .casino-row .col--pos     { grid-column:1; grid-row:1 / span 2; align-self:start }
  .casino-row .col--logo    { grid-column:2; grid-row:1 / span 2; align-self:center }
  .casino-row .col--name    { grid-column:3; grid-row:1; align-self:end }
  .casino-row .col--rating  { grid-column:3; grid-row:2; align-self:start; display:flex; gap:6px; font-size:13px; line-height:1 }
  .casino-row .col--rtp     { grid-column:4; grid-row:1; justify-self:end; align-self:end }
  .casino-row .col--deposit { grid-column:4; grid-row:2; justify-self:end; align-self:start }
  .casino-row .col--offer   { grid-column:1 / -1; grid-row:3 }
  .casino-row .col--cta     { grid-column:1 / -1; grid-row:4 }

  /* Лого компактнее, чтобы не тянуть строки по высоте */
  .casino-row .logo{
    width:56px !important; height:56px !important;
    object-fit:cover !important; border-radius:10px;
  }

  /* Имя + рейтинг: одна «левая» колонка из двух строк */
  .casino-row .casino-name{
    font-weight:800; font-size:16px; line-height:1.2;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .casino-row .col--rating::before{ content:"★"; color:#ffd166 }

  /* ПРАВАЯ колонка: делаем элементы в одну строку каждый (убираем рост строки) */
  .casino-row .col--rtp,
  .casino-row .col--deposit{
    margin:0 !important; padding:0 !important; background:none !important;
    white-space:nowrap !important; line-height:1 !important; text-align:right;
  }
  .casino-row .col--rtp .label,
  .casino-row .col--deposit .label{
    display:inline !important;
    margin:0 6px 0 0 !important;
    font-size:12px !important; font-weight:700; color:#888;
  }
  .casino-row .col--rtp .rtp,
  .casino-row .col--deposit .value{
    display:inline !important; font-weight:700;
  }

  /* Бонусы — широким блоком под основной зоной */
  .casino-row .col--offer .bonus{
    display:block !important;
    white-space:normal !important;
    margin-top:2px !important;
    line-height:1.35; font-weight:500;
  }

  /* CTA: компактная сетка */
  .casino-row .col--cta{
    display:grid; grid-template-columns:1fr; gap:6px;
  }
  .casino-row .btn--review{
    height:auto; padding:6px 0; background:transparent !important;
    text-decoration:underline; text-underline-offset:3px;
    justify-self:center;
  }
}

/* Мобайл: увеличиваем лого и колонку под него */
@media (max-width: 640px) {
  .casino-row{
    grid-template-columns: 36px 72px 1fr auto !important; /* была 60px */
  }
  .casino-row .logo{
    width:72px !important;
    height:72px !important;
    max-height:72px !important; /* перекрываем max-height:70px из общих стилей */
    object-fit:contain !important;
    border-radius:10px;
  }
}



/* Мобайл: делаем RTP и Мин. депозит компактнее (узкая правая колонка) */
@media (max-width: 640px) {
  /* Укладываем правую колонку в узкий столбец */
  .casino-row{
    grid-template-columns: 32px 72px 1fr minmax(88px, 26vw) !important; /* № | лого | имя+рейтинг | RTP/Деп. */
    gap: 8px 8px !important;
  }

  /* Правая колонка: плотная двухстрочная верстка (label над значением) */
  .casino-row .col--rtp,
  .casino-row .col--deposit{
    display: grid !important;
    grid-auto-flow: row;
    justify-items: end;
    align-content: start;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    min-width: 0 !important;
    max-width: 26vw !important;
    text-align: right;
    white-space: normal !important;
  }

  .casino-row .col--rtp .label,
  .casino-row .col--deposit .label{
    display: block !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    color: #888 !important;
  }

  .casino-row .col--rtp .rtp,
  .casino-row .col--deposit .value{
    display: block !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
  }

  /* Чуть уплотним левую часть */
  .casino-row .logo{ width: 68px !important; height: 68px !important; }
  .casino-row .col--rating{ font-size: 12.5px !important; gap: 4px !important; }
}

/* ≤450px: ещё компактнее — ужимаем правую колонку и шрифты */
@media (max-width: 450px) {
  .casino-row{
    grid-template-columns: 28px 64px 1fr minmax(76px, 28vw) !important;
  }
  .casino-row .col--rtp .label,
  .casino-row .col--deposit .label{ font-size: 10.5px !important; }
  .casino-row .col--rtp .rtp,
  .casino-row .col--deposit .value{ font-size: 12.5px !important; }
}

/* ≤360px: максимально плотно — в одну строку "Метка: значение" */
@media (max-width: 360px) {
  .casino-row{
    grid-template-columns: 26px 60px 1fr minmax(70px, 30vw) !important;
  }
  .casino-row .col--rtp,
  .casino-row .col--deposit{ gap: 1px !important; }

  .casino-row .col--rtp .label,
  .casino-row .col--deposit .label,
  .casino-row .col--rtp .rtp,
  .casino-row .col--deposit .value{
    display: inline !important;
    white-space: nowrap !important;
  }
  .casino-row .col--rtp .label::after,
  .casino-row .col--deposit .label::after{ content: ": " }
}


@media (max-width: 640px) {
.casino-row .col--rtp, .casino-row .col--deposit {
    display: none !important;
	}
}


@media (max-width: 640px) {
    .casino-row .col--offer .bonus {
        text-align: center;
    }
}



/* ====== MOBILE XL CARD (≥1.5x) – DROP-IN PATCH ====== */
@media (max-width: 640px) {

  /* Сама карточка: крупнее сетка, отступы, зазоры */
  .casino-row{
        grid-template-columns: 5px 104px 1fr !important;
        gap: 12px 12px !important;
        padding: 18px !important;
        border-radius: 14px !important;
        box-shadow: 0 10px 104px rgba(229, 229, 245, .9) !important;
        box-sizing: border-box;
  }

  /* Позиции (сохраняем существующую раскладку, но без правой колонки) */
  .casino-row .col--pos    { grid-column: 1 !important; grid-row: 1 / span 2 !important; align-self: start !important; }
  .casino-row .col--logo   { grid-column: 2 !important; grid-row: 1 / span 2 !important; align-self: center !important; }
  .casino-row .col--name   { grid-column: 3 !important; grid-row: 1 !important; align-self: end !important; }
  .casino-row .col--rating { grid-column: 3 !important; grid-row: 2 !important; align-self: start !important; }

  /* Прячем правую колонку, если где-то не перекрылось */
  .casino-row .col--rtp,
  .casino-row .col--deposit{ display: none !important; }

  /* Номер (бейдж) — чуть крупнее */
  .casino-row .pos{
        min-width: 19px !important;
        height: 31px !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
        font: 700 16px / 1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
        z-index: 5;
        position: relative;
        top: -20px;
        left: -20px;
  }

  /* Лого — с 72px → 108px (1.5x) */
  .casino-row .logo{
    width: 108px !important;
    height: 108px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)) !important;
  }

  /* Название — 16px → 20px+ */
  .casino-row .casino-name{
    font-size: 20px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Рейтинг — 13px → 16px */
  .casino-row .col--rating{
    font-size: 16px !important;
    gap: 8px !important;
  }
  .casino-row .col--rating::before{
    content: "★" !important;
    color: #ffd166 !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }
  .casino-row .rating-max{ margin-left: 4px !important; opacity: .65 !important; }

  /* Оффер — крупнее текст бонуса */
  .casino-row .col--offer .bonus{
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  /* Кнопки — выше/шире/крупнее шрифт */
  .casino-row .col--cta{
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 15px !important;
  }
  .casino-row .btn{
    height: 56px !important;         /* 44px → 56px */
    border-radius: 12px !important;
    padding: 0 18px !important;
    font-size: 17px !important;      /* 15px → 17px */
    font-weight: 800 !important;
  }
  .casino-row .btn--review{
    height: auto !important;
    padding: 8px 0 !important;
    background: transparent !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    font-size: 15px !important;
    justify-self: center !important;
  }
}

