/* ─────────────────────────────────────────────────────────
   БАЗА / RESET
────────────────────────────────────────────────────────── */
html, body{
  margin:0;
  max-width:100%;
  overflow-x:hidden;
}
html{ scrollbar-gutter: stable both-edges; } /* стабильная ширина скроллбара */

*{ box-sizing:border-box; }

img, video, canvas, svg, iframe{
  max-width:100%;
  height:auto;
  display:block;
}

.nav a{
  font-family:"Antonio", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.nav-ico{
  width:18px;
  height:18px;
  flex:0 0 18px;
  object-fit:contain;
  opacity:.9;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.35));
  transition:filter .2s ease, opacity .2s ease;
  stroke:currentColor;
  fill:none;
}
.nav-ico svg,
svg.nav-ico{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  color:currentColor;
}
.nav-ico svg [fill="currentColor"],
svg.nav-ico [fill="currentColor"]{
  fill:currentColor;
}
.nav a:hover .nav-ico{
  opacity:1;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.35)) drop-shadow(0 0 8px rgba(44, 240, 216, 0.5));
}
.nav-txt{ 
  line-height:1; 
  font-weight:500;
  letter-spacing:.02em;
}
.nav a.is-active .nav-txt{
  font-weight:700;
  color:var(--ref-gold,#e6bc43);
  text-shadow:0 0 14px rgba(230, 188, 67, 0.28);
  border-bottom:0;
  padding-bottom:0;
}

/* ─────────────────────────────────────────────────────────
   ПЕРЕМЕННЫЕ / ЦВЕТА
────────────────────────────────────────────────────────── */
:root{
  /* Slotuna — референс: почти чёрный teal в хедере/футере, панель чуть светлее, золото = актив */
  /* низ референсного radial-gradient */
  --bg:#02212f;
  --bg-elevated:#031a22;
  --bg-panel:#05242c;
  --panel:#062a34;
  --ink:#f2f8fa;
  --ink-bright:#ffffff;
  --ink-muted:#9db8c2;
  --line:rgba(52, 160, 175, 0.22);
  /* тонкая «каменная» сетка — хедер/футер/body */
  --ref-noise-layer:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><defs><filter id="n"><feTurbulence baseFrequency="0.65" numOctaves="2" seed="3" type="fractalNoise"/><feColorMatrix values="0 0 0 0 0.02 0 0 0 0 0.04 0 0 0 0 0.05 0 0 0 .07 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23n)"/></svg>')
    0 0 / 160px 160px repeat;
  --max:1320px;

  --primary:#2cf0d8;
  --primary-mid:#6effea;
  --primary-dark:#0d7d72;
  --primary-glow:rgba(44, 240, 216, 0.5);
  --secondary:#030a0e;
  --secondary-light:#0a222c;
  --text-heading:#ffffff;
  --on-lime:#021016;
  --accent-pink:#c41e3a;
  --accent-purple:#2cf0d8;
  --accent-blue:#5ab4ff;

  --ref-gold:#e6bc43;
  --ref-gold-dim:rgba(230, 188, 67, 0.45);
  --ref-cyan:rgba(44, 240, 216, 0.55);
  --ref-cyan-soft:rgba(44, 240, 216, 0.18);

  --gold1:#051a20;
  --gold2:#2cf0d8;
  --gold3:#e6bc43;

  --ring:
    0 0 0 1px rgba(44, 240, 216, 0.14) inset,
    0 1px 0 rgba(255,255,255,.05) inset,
    0 12px 36px rgba(0,0,0,.72);

  --hdrH:64px;

  --framePad: 14px;
  --bannerRad: 12px;
}

/* ─────────────────────────────────────────────────────────
   ГЛОБАЛЬНЫЙ ФОН / ТИПОГРАФИКА
────────────────────────────────────────────────────────── */
html{
  color-scheme:dark;
  /* Базовый фон здесь: body::before с position:fixed иначе перекрывает текст без z-index:-1 */
  background:#000000;
  background:var(--bg,#000000);
  min-height:100%;
}
html,body{
  color:#ffffff;
  color:var(--ink,#ffffff);
  font-family:"Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
body{
  background:transparent;
  position:relative;
  min-height:100%;
  isolation:isolate; /* stacking context: ::before с z-index:-1 всегда под текстом */
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:1;
  /* как у референса: геометрия #C8E1E9 @5% + radial сверху + лёгкий noise */
  background:
    url(../images/content/bg-slotuna-grid.svg) center center / cover no-repeat fixed,
    var(--ref-noise-layer),
    radial-gradient(70% 70% at 50% 0%, #0e3b4f 0%, #02212f 100%) fixed,
    radial-gradient(90% 60% at 50% 100%, rgba(0, 0, 0, 0.42), transparent 52%) fixed,
    linear-gradient(165deg, #02212f 0%, #011016 45%, #01060a 100%) fixed;
}

/* ─────────────────────────────────────────────────────────
   АНИМАЦИИ
────────────────────────────────────────────────────────── */
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(44, 240, 216, 0.5) }
  70%{ box-shadow:0 0 0 20px rgba(44, 240, 216, 0) }
  100%{ box-shadow:0 0 0 0 rgba(44, 240, 216, 0) }
}
.pulse{ animation:pulse 1.8s infinite; }

/* ─────────────────────────────────────────────────────────
   HEADER / TOPBAR
────────────────────────────────────────────────────────── */
header{
  position:sticky;
  top:0;
  z-index:100;
  background:
    linear-gradient(180deg, rgba(42, 95, 102, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, #021c23 0%, #011216 50%, #00070a 100%),
    var(--ref-noise-layer);
  border-bottom:1px solid var(--line);
  backdrop-filter:saturate(120%) blur(8px);
}
header.scrolled{ box-shadow:0 10px 24px rgba(0,0,0,.38); }

.head{
  max-width:var(--max);
  margin:0 auto;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.burger{
  display:none;
  background:rgba(3, 28, 34, 0.92);
  border:1px solid rgba(52, 160, 175, 0.32);
  color:#ffffff;
  border-radius:10px;
  padding:8px 10px;
}

.logo{ flex:0 0 auto; }
.logo img{
  height:40px;
  width:auto;
  max-width:220px;
  object-fit:contain;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.55)) drop-shadow(0 0 16px rgba(44,240,216,.32));
}

/* Адаптация логотипа */
@media (max-width:520px){ .logo img{ height:32px; max-width:180px; } }
@media (max-width:390px){ .logo img{ height:26px; max-width:150px; } }

.search{
  flex:1 1 420px;
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(180deg, rgba(4, 32, 40, 0.95), rgba(1, 12, 18, 0.98));
  border:1px solid rgba(52, 160, 175, 0.22);
  border-radius:999px;
  padding:8px 12px;
  box-shadow:var(--ring);
}
.search input{
  flex:1 1 auto;
  min-width:0;
  background:transparent;
  border:0;
  outline:0;
  color:var(--text-heading);
}
.search input::placeholder{
  color:rgba(255,255,255,.5);
}

/* Базовая кнопка (общая) */
.btn{
  flex:0 0 auto;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  text-decoration:none;
  color:var(--text-heading);
  background:linear-gradient(180deg, var(--secondary-light), var(--secondary));
  border:1px solid rgba(44, 240, 216, 0.32);
  box-shadow:var(--ring);
}

/* ДЕФОЛТНЫЕ темы login/reg (если нужно где-то вне хедера) */
.btn--login{
  background:
    radial-gradient(60% 120% at 30% 20%, rgba(44, 240, 216, 0.12), transparent 45%),
    linear-gradient(180deg, #0c2832 0%, var(--secondary) 100%);
  border:1px solid rgba(44, 240, 216, 0.35);
}
.btn--reg{
  color:#000000;
  -webkit-text-fill-color:#000000;
  background:
    radial-gradient(60% 120% at 30% 20%, rgba(120, 255, 230, 0.4), transparent 45%),
    linear-gradient(180deg, #7dffec 0%, var(--primary) 42%, var(--primary-dark) 100%);
  border:1px solid rgba(44, 240, 216, 0.55);
  animation:pulse 1.8s infinite;
  transition: transform .28s ease, filter .28s ease, box-shadow .28s ease;
  transform: translateZ(0) scale(1);
  transform-origin:center;
  will-change: transform;
}

/* КНОПКИ В ХЕДЕРЕ — «как в рефе» (компактные, «пластик») */
.head .btn{
  position:relative;
  height:40px;
  padding:0 18px;
  min-width:140px;
  border-radius:10px;
  font-size:14px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#ffffff;
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 4px 18px rgba(0,0,0,.4);
  animation:none;
  transform:none;
}

.head .btn--login{
  color:#eaf9f7;
  -webkit-text-fill-color:#eaf9f7;
  background:linear-gradient(180deg, rgba(13,42,53,.95) 0%, rgba(5,22,29,.98) 100%);
  border:2px solid rgba(46,230,214,.55);
  box-shadow:0 3px 0 #020a0e, 0 6px 16px rgba(0,0,0,.45), 0 0 12px rgba(46,230,214,.15);
  text-shadow:none;
}

.head .btn--reg{
  background:linear-gradient(180deg, #5ff5e8 0%, #2cf0d8 45%, #149b8f 100%);
  border:2px solid rgba(4,16,22,.75);
  box-shadow:0 3px 0 #021018, 0 6px 16px rgba(0,0,0,.45), 0 0 18px rgba(46,230,214,.35);
  color:#041016;
  -webkit-text-fill-color:#041016;
  text-shadow:0 1px 0 rgba(255,255,255,.25);
  /* wie .hero-cta-shell: äußeres Teal-Leuchten (drop-shadow) */
  animation: hero-cta-shell-aura 2.1s ease-in-out infinite;
  will-change: filter;
}

.head .btn::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:9px;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.14), transparent 42%);
  opacity:.45;
}

@media (hover:hover){
  .head .btn:hover{
    filter:brightness(1.04);
    box-shadow:0 4px 0 #0a0a0c, 0 8px 22px rgba(0,0,0,.45);
  }
  .head .btn--reg:hover{
    animation: none;
    filter:
      brightness(1.04)
      drop-shadow(0 0 4px rgba(200, 255, 248, 0.85))
      drop-shadow(0 0 20px rgba(44, 240, 216, 0.65))
      drop-shadow(0 0 36px rgba(11, 196, 176, 0.42))
      drop-shadow(0 4px 14px rgba(0,0,0,.38));
    box-shadow:0 4px 0 #0a0a0c, 0 8px 22px rgba(0,0,0,.45);
  }
}
.head .btn:active{
  filter:brightness(.94);
  box-shadow:0 2px 10px rgba(0,0,0,.45);
}

header.scrolled .head .btn--reg{
  background:linear-gradient(180deg, #7ff8ec 0%, #2cf0d8 40%, #118a80 100%);
  border:2px solid rgba(4,16,22,.8);
  color:#041016;
  -webkit-text-fill-color:#041016;
  text-shadow:0 1px 0 rgba(255,255,255,.22);
  box-shadow:
    0 4px 0 #021018,
    0 8px 22px rgba(0,0,0,.45),
    0 0 26px rgba(44, 240, 216, 0.4);
}

header.scrolled .head .btn--reg::before{
  opacity:.5;
}

@media (hover:hover){
  header.scrolled .head .btn--reg:hover{
    animation: none;
    filter:
      brightness(1.06)
      drop-shadow(0 0 4px rgba(200, 255, 248, 0.85))
      drop-shadow(0 0 20px rgba(44, 240, 216, 0.65))
      drop-shadow(0 0 36px rgba(11, 196, 176, 0.42))
      drop-shadow(0 4px 14px rgba(0,0,0,.38));
    box-shadow:
      0 5px 0 #021018,
      0 10px 28px rgba(0,0,0,.5),
      0 0 34px rgba(44, 240, 216, 0.48);
  }
  header.scrolled .head .btn--login{
    box-shadow:0 4px 0 #0a0a0c, 0 8px 22px rgba(0,0,0,.45);
  }
}

/* Хедер-кнопки на мобилке */
@media (max-width:520px){
  .head .btn{
    height:34px;
    padding:0 8px;
    min-width:0;
    flex:0 1 auto;
    font-size:9px;
    letter-spacing:.02em;
  }
}

/* Очень маленькие экраны - ещё более компактные кнопки */
@media (max-width:390px){
  .head .btn{
    padding:0 6px;
    font-size:8px;
    letter-spacing:.01em;
  }
}

/* Hover-увеличение оставляем только для .btn--reg (если используется где-то вне хедера) */
@media (hover:hover){
  .btn.btn--reg:hover,
  .btn.btn--reg:focus-visible{
    transform: translateZ(0) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce){
  .btn--reg{ transition:none; }
  .btn.btn--reg:hover,
  .btn.btn--reg:focus-visible{ transform:none; }
}

/* ─────────────────────────────────────────────────────────
   LAYOUT / SHELL
────────────────────────────────────────────────────────── */
.shell{
  max-width:var(--max);
  margin:0 auto;
  padding:18px 14px;
  display:grid;
  grid-template-columns:minmax(220px, 260px) minmax(0, 1fr);
  gap:20px;
  min-width:0;
  align-items:start;
}
.shell > *{ min-width:0; }
.shell > main{ min-width:0; }

main p, main h1, main h2, main h3, main a{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Где нужно — режем горизонтальный оверфлоу */
.frame, .medals, .grid{ overflow-x:hidden; }

/* ─────────────────────────────────────────────────────────
   SIDEBAR (DESKTOP)
────────────────────────────────────────────────────────── */
.aside{
  position:sticky;
  top:calc(var(--hdrH, 64px) + 2px);
  transform:translate3d(0, var(--asideDrift, 0px), 0);
  align-self:start;
  width:100%;
  max-width:260px;
  justify-self:stretch;
  box-sizing:border-box;
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(0,0,0,.14) 3px, rgba(0,0,0,.14) 4px),
    linear-gradient(180deg, #063038 0%, #042420 48%, #021016 100%);
  border:1px solid rgba(45, 140, 155, 0.16);
  border-radius:20px;
  padding:14px;
  box-shadow:var(--ring);
  /* transform от скролла — без transition, иначе меню «тянется» и отстаёт */
  will-change:transform;
  overflow-x:hidden;
  overflow-y:visible;
  scrollbar-gutter:auto;
}
.nav{ list-style:none; margin:0; padding:0; }
.nav li{ margin:6px 0; }
.nav a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:12px;
  color:#dceef2;
  border:1px solid transparent;
  text-decoration:none;
  position:relative;
  transition:all .2s ease;
}
.nav a:hover{
  background:rgba(44, 160, 175, 0.07);
  border-color:rgba(52, 160, 175, 0.22);
  color:#f4fbfc;
}
.nav a.is-active{
  background:linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, rgba(4, 28, 34, 0.35) 42%, rgba(3, 20, 26, 0.55) 100%);
  border:1px solid rgba(0,0,0,.22);
  border-right:3px solid #c9a227;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  color:var(--ref-gold,#e6bc43);
}
.nav a.is-active::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), transparent 55%);
  pointer-events:none;
  z-index:0;
}
.nav a.is-active .nav-ico,
.nav a.is-active svg{
  filter: drop-shadow(0 0 4px rgba(230, 188, 67, 0.55));
  position:relative;
  z-index:1;
}
.nav a.is-active .nav-txt{
  position:relative;
  z-index:1;
}
.sep{
  height:10px;
  margin:8px 6px;
  border-top:1px solid rgba(0,0,0,.38);
  border-bottom:1px solid rgba(255,255,255,.04);
  opacity:.85;
}
.sep-title{
  margin:8px 8px 4px;
  color:var(--ink-muted);
  font-size:12px;
  letter-spacing:.08em;
}
.flag-emoji{
  width:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  line-height:0.5;
  transform: translateY(1px);
}

/* ─────────────────────────────────────────────────────────
   DRAWER (MOBILE)
────────────────────────────────────────────────────────── */
.drawer{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:min(82vw,320px);
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(0,0,0,.14) 3px, rgba(0,0,0,.14) 4px),
    linear-gradient(180deg, #063038 0%, #042420 48%, #021016 100%);
  border-right:1px solid rgba(45, 140, 155, 0.2);
  box-shadow:0 20px 60px rgba(0,0,0,.72);
  transform:translateX(-100%);
  transition:transform .28s ease;
  z-index:120;
  display:flex;
  flex-direction:column;
  border-radius:0 18px 18px 0;
}
.drawer.open{ transform:translateX(0); }
.drawer .dhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(45, 140, 155, 0.18);
  color:var(--text-heading);
  font-weight:800;
  letter-spacing:.04em;
}
.dclose{
  background:rgba(3, 28, 34, 0.9);
  border:1px solid rgba(52, 160, 175, 0.3);
  color:#ffffff;
  border-radius:10px;
  padding:8px 10px;
}
.dnav{ padding:10px 10px 16px; flex:1; display:flex; flex-direction:column; min-height:0; }
.dnav .nav{ flex:1; overflow-y:auto; }

/* ─────────────────────────────────────────────────────────
   TITLE
────────────────────────────────────────────────────────── */
.page-title{
  text-align:center;
  margin:4px 0 14px;
  font-size:26px;
  font-weight:900;
  letter-spacing:.3px;
  color:#ffffff;
  text-shadow:0 6px 18px rgba(0,0,0,.45);
}

/* ─────────────────────────────────────────────────────────
   HERO / BANNER (КАРТИНКА + OVERLAY) — ОКОНЧАТЕЛЬНЫЙ ВАРИАНТ
   Работает с твоим HTML:
   .frame > a > img.banner  +  .hero-overlay
   ВАЖНО: оверлей привязан к ПЛОЩАДИ БАННЕРА (внутри padding),
   поэтому НЕ вылезает за рамку на любом телефоне.
────────────────────────────────────────────────────────── */
.frame{
  position:relative;
  background:linear-gradient(180deg, rgba(6, 40, 48, 0.32), rgba(2, 14, 20, 0.22));
  border:1px solid rgba(52, 160, 175, 0.18);
  border-radius:22px;
  padding: var(--framePad);
  box-shadow:var(--ring);
  overflow:hidden; /* режем всё строго по рамке .frame */
}

/* декоративная рамка */
.frame:before{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:18px;
  border:1px solid rgba(44, 240, 216, 0.12);
  background:transparent;
  pointer-events:none;
  z-index:0;
}

/* обёртка баннера */
.banner-wrap{
  position:relative;
  width:100%;
  border-radius: var(--bannerRad);
  overflow:hidden;
}

/* CTA-Kontur / drop-shadow darf über die Banner-Rundung hinaus sichtbar sein */
.banner-wrap:has(.hero-overlay),
.frame:has(.hero-overlay--cta-only){
  overflow: visible;
}

.banner-link{
  display:block;
  width:100%;
  position:relative;
}

/* картинка баннера */
.banner{
  width:100%;
  height:auto;
  display:block;
  border-radius: var(--bannerRad);
  position:relative;
  z-index:1;
  object-fit:cover;
  aspect-ratio: 21 / 9;
  max-height: 400px;
}

/* Для планшетов */
@media (max-width: 992px){
  .banner{
    aspect-ratio: 18 / 9;
    max-height: 350px;
  }
}

/* Для мобильных устройств */
@media (max-width: 768px){
  .banner{
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
}

@media (max-width: 480px){
  .banner{
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }
}

@media (max-width: 380px){
  .banner{
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }
}

/* ОВЕРЛЕЙ: позиционируем НЕ по всей .frame, а по области баннера */
.hero-overlay{
  position:absolute;
  z-index:2;

  /* ровно по области картинки (внутри padding .frame) */
  top: var(--framePad);
  left: var(--framePad);
  right: var(--framePad);
  bottom: var(--framePad);

  border-radius: var(--bannerRad);

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;

  gap: clamp(8px, 1.2vw, 17px);

  padding: clamp(12px, 2.2vw, 24px);

  pointer-events:none; /* кликается только .hero-cta */
}

/* Nur CTA auf dem Banner — mittig */
.hero-overlay--cta-only{
  justify-content:center;
  align-items:center;
}

/* Pulsierendes äußeres Leuchten (Teal) — gleiche Anzahl drop-shadows pro Keyframe */
@keyframes hero-cta-shell-aura{
  0%, 100%{
    filter:
      drop-shadow(0 0 2px rgba(44, 240, 216, 0.55))
      drop-shadow(0 0 10px rgba(11, 196, 176, 0.42))
      drop-shadow(0 0 22px rgba(11, 196, 176, 0.2))
      drop-shadow(0 4px 14px rgba(0,0,0,.4));
  }
  50%{
    filter:
      drop-shadow(0 0 5px rgba(200, 255, 248, 0.95))
      drop-shadow(0 0 18px rgba(44, 240, 216, 0.72))
      drop-shadow(0 0 34px rgba(11, 196, 176, 0.48))
      drop-shadow(0 4px 14px rgba(0,0,0,.38));
  }
}

.hero-overlay--cta-only .hero-cta-shell{
  position: relative;
  top: 20%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: visible;
  z-index: 3;
  animation: hero-cta-shell-aura 2.1s ease-in-out infinite;
}

.hero-overlay--cta-only .hero-cta-shell .hero-cta{
  pointer-events: auto;
}

@media (hover:hover){
  .hero-overlay--cta-only .hero-cta-shell:hover{
    animation: none;
    filter:
      drop-shadow(0 0 4px rgba(200, 255, 248, 0.85))
      drop-shadow(0 0 20px rgba(44, 240, 216, 0.65))
      drop-shadow(0 0 36px rgba(11, 196, 176, 0.42))
      drop-shadow(0 4px 14px rgba(0,0,0,.38));
  }
}

@media (prefers-reduced-motion: reduce){
  .hero-overlay--cta-only .hero-cta-shell{
    animation: none;
    filter:
      drop-shadow(0 0 3px rgba(44, 240, 216, 0.5))
      drop-shadow(0 0 14px rgba(11, 196, 176, 0.38))
      drop-shadow(0 0 24px rgba(11, 196, 176, 0.18))
      drop-shadow(0 4px 12px rgba(0,0,0,.35));
  }
}

/* Центральный блок: ограничение ширины для переносов длинной строки */
.hero-badge,
.hero-lines,
.hero-cta{
  max-width: min(92%, 640px);
}

/* Плашка */
.hero-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 4px 8px;
  border-radius: 14px;

  font-weight: 900;
  font-size: clamp(12px, 1.2vw, 8px);
  line-height: 1;

  color:#ffffff;
  background: linear-gradient(180deg, #0d3040 0%, #051018 100%);
  border: 1px solid rgba(44, 240, 216, 0.35);
  box-shadow:
    0 8px 18px rgba(0,0,0,.35),
    0 0 16px rgba(44, 240, 216, 0.22),
    0 1px 0 rgba(255,255,255,.15) inset;
}

/* Текст */
.hero-lines{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: 6px;
  text-align:left;
}

/* Banner-Promo: fett, kursiv, weiß mit schwarzem Rand (Referenz-Screenshot) */
.hero-lines--promo .hero-line{
  font-style: italic;
  font-weight: 900;
  color: #ffffff;
  text-shadow:
    -1.5px -1.5px 0 #0a0a0c, 1.5px -1.5px 0 #0a0a0c, -1.5px 1.5px 0 #0a0a0c, 1.5px 1.5px 0 #0a0a0c,
    0 0 2px #0a0a0c,
    0 4px 16px rgba(0,0,0,.55);
}
.hero-lines--promo .hero-line--intro{
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(11px, 1.65vw, 16px);
}
.hero-lines--promo .hero-line--big{
  font-size: clamp(26px, 5vw, 48px);
  line-height: 1.04;
}
.hero-lines--promo .hero-line--mid{
  font-size: clamp(18px, 3.6vw, 34px);
  line-height: 1.06;
}

.hero-line{
  color:#fff;
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 
    0 2px 4px rgba(0,0,0,.8),
    0 4px 8px rgba(0,0,0,.6),
    0 10px 22px rgba(0,0,0,.45);

  /* критично: переносы, чтобы не вылезало */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Улучшенная читаемость на мобильных */
@media (max-width: 768px){
  .hero-line{
    text-shadow: 
      0 1px 3px rgba(0,0,0,.9),
      0 2px 6px rgba(0,0,0,.7),
      0 4px 12px rgba(0,0,0,.5);
  }
}

/* Размеры текста (правильный clamp: min, preferred, max) */
.hero-line--intro{
  font-size: clamp(13px, 2.1vw, 20px);
  line-height: 1.25;
  font-weight: 700;
  max-width: 100%;
}
.hero-line--big{
  font-size: clamp(22px, 4.2vw, 40px);
  line-height: 1.06;
}
.hero-line--mid{
  font-size: clamp(18px, 3.4vw, 32px);
  line-height: 1.06;
}

/* Banner-CTA: wieder Teal-Pille wie Chips-Referenz (Leuchten bleibt am .hero-cta-shell) */
.hero-cta{
  pointer-events:auto;
  align-self:center;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin:0;
  padding: 14px 36px;
  border-radius: 999px;

  font-weight: 900;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration:none;
  color:#031012;
  -webkit-text-fill-color:#031012;
  text-shadow:0 1px 0 rgba(255,255,255,.35);

  position: relative;
  isolation:isolate;

  max-width: min(92%, 420px);

  background:linear-gradient(180deg, #6fd4c8 0%, #4abfb0 38%, #369d90 100%);
  border: 2px solid #0bc4b0;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.12) inset,
    0 4px 14px rgba(0,0,0,.4),
    0 0 18px rgba(11, 196, 176, 0.35);

  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, border-color .22s ease;
}

.hero-cta::before{
  content:"";
  position:absolute;
  inset: 2px;
  border-radius: 999px;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,.28) 0%,
      rgba(255,255,255,.1) 25%,
      transparent 60%
    );
  pointer-events:none;
  z-index:1;
}

.hero-cta::after{
  content:"";
  position:absolute;
  inset: -5px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(11, 196, 176, 0.45) 0%, rgba(44, 240, 216, 0.2) 50%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
  opacity: 0.75;
  pointer-events:none;
}

/* Ховер für CTA */
@media (hover:hover){
  .hero-cta:hover{
    transform: translateY(-2px) scale(1.02);
    border-color:#12e0cc;
    box-shadow:
      0 0 0 1px rgba(0,0,0,.1) inset,
      0 6px 20px rgba(0,0,0,.45),
      0 0 28px rgba(11, 196, 176, 0.5);
    filter: brightness(1.06);
  }
  .hero-cta:hover::after{
    opacity: 1;
    filter: blur(14px);
    background: radial-gradient(ellipse at center, rgba(11, 196, 176, 0.5) 0%, rgba(44, 240, 216, 0.25) 50%, transparent 70%);
  }
}

.hero-cta:active{
  transform: translateY(0px) scale(0.98);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.18) inset,
    0 3px 12px rgba(0,0,0,.5);
  filter: brightness(0.98);
}

/* Планшеты */
@media (max-width: 992px) and (min-width: 769px){
  .hero-badge,
  .hero-lines,
  .hero-cta{
    max-width: min(90%, 520px);
  }
  .hero-cta{ 
    padding: 12px 28px; 
    font-size: 15px;
  }
}

/* Большие мобильные устройства (iPhone Pro Max и подобные) */
@media (max-width: 768px) and (min-width: 481px){
  .hero-badge,
  .hero-lines,
  .hero-cta{
    max-width: min(94%, 480px);
  }
  
  .hero-line--big{ 
    font-size: clamp(20px, 4.5vw, 26px);
  }
  .hero-line--mid{ 
    font-size: clamp(16px, 3.8vw, 21px);
  }
  .hero-line--intro{
    font-size: clamp(12px, 2.8vw, 16px);
  }
}

/* Мобилки: CTA zentriert */
@media (max-width: 768px){
  :root{
    --framePad: 12px;
  }

  .hero-overlay{
    padding: 14px 16px;
    gap: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-badge,
  .hero-lines,
  .hero-cta-shell,
  .hero-cta{
    max-width: min(94%, 360px);
    position: relative;
    z-index: 3;
  }

  .hero-cta{
    padding: 9px 18px;
    font-size: 11px;
    border-radius: 999px;
    margin-top: 0;
    color:#031012;
    -webkit-text-fill-color:#031012;
    letter-spacing: .08em;
    box-shadow:
      0 0 0 1px rgba(0,0,0,.12) inset,
      0 4px 14px rgba(0,0,0,.45),
      0 0 20px rgba(11, 196, 176, 0.35);
  }
  .hero-cta::before{
    inset: 2px;
    border-radius: 999px;
  }
  .hero-cta::after{
    inset: -4px;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.65;
  }
}

/* Средние мобилки (480px - 720px) */
@media (max-width: 720px){
  .hero-badge,
  .hero-lines,
  .hero-cta-shell,
  .hero-cta{
    max-width: min(94%, 360px);
  }
  
  .hero-overlay{
    gap: 6px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-line--intro{
    font-size: clamp(11px, 3vw, 14px);
  }

  .hero-line--big{ 
    font-size: clamp(18px, 4.5vw, 24px);
  }
  .hero-line--mid{ 
    font-size: clamp(14px, 3.5vw, 20px);
  }

  .hero-cta{
    padding: 8px 16px;
    font-size: 10px;
    letter-spacing: .07em;
    border-radius: 999px;
  }
  .hero-cta::before,
  .hero-cta::after{
    border-radius: 999px;
  }
}

/* Маленькие мобилки (до 480px) */
@media (max-width: 480px){
  :root{
    --framePad: 10px;
  }

  .hero-overlay{
    padding: 12px 14px;
    gap: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-badge,
  .hero-lines,
  .hero-cta-shell,
  .hero-cta{
    max-width: min(94%, 340px);
  }

  .hero-cta{
    padding: 7px 14px;
    font-size: 9px;
    border-radius: 999px;
    color:#031012;
    -webkit-text-fill-color:#031012;
    letter-spacing: .07em;
    box-shadow:
      0 0 0 1px rgba(0,0,0,.12) inset,
      0 4px 12px rgba(0,0,0,.45),
      0 0 18px rgba(11, 196, 176, 0.32);
  }
  .hero-cta::before{
    inset: 2px;
    border-radius: 999px;
  }
  .hero-cta::after{
    inset: -3px;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.6;
  }
}

/* Очень узкие экраны (SE/360px и меньше) */
@media (max-width: 380px){
  :root{
    --framePad: 8px;
  }

  .hero-overlay{
    padding: 10px 12px;
    gap: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-badge,
  .hero-lines,
  .hero-cta-shell,
  .hero-cta{
    max-width: min(96%, 300px);
  }

  .hero-cta{
    padding: 6px 12px;
    font-size: 8px;
    border-radius: 999px;
    color:#031012;
    -webkit-text-fill-color:#031012;
    letter-spacing: .06em;
    box-shadow:
      0 0 0 1px rgba(0,0,0,.12) inset,
      0 3px 10px rgba(0,0,0,.45),
      0 0 16px rgba(11, 196, 176, 0.3);
  }
  .hero-cta::before{
    inset: 1px;
    border-radius: 999px;
  }
  .hero-cta::after{
    inset: -3px;
    border-radius: 999px;
    filter: blur(5px);
    opacity: 0.55;
  }
}

/* ─────────────────────────────────────────────────────────
   MEDALLIONS
────────────────────────────────────────────────────────── */
/* ===== Chips (Sierra Casino style) ===== */
.chips{
  margin:16px auto 0;
  display:flex;
  align-items:center;
  gap:10px;

  justify-content:center;

  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;

  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;

  padding:12px 14px;
  background:linear-gradient(180deg, rgba(14, 52, 60, 0.92), rgba(6, 26, 32, 0.96));
  border:1px solid rgba(44, 240, 216, 0.38);
  border-radius:14px;
  box-shadow:0 8px 28px rgba(0,0,0,.4), var(--ring);
  
  /* Скрываем scrollbar на десктопе */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE и Edge */
}

/* убираем «прилипание» к левому краю при скролле */
.chips::before,
.chips::after{
  content:"";
  flex:0 0 12px;
}

/* scrollbar - скрыт на десктопе, виден только на мобильных */

.chips::-webkit-scrollbar{ 
  height:0; 
  width:0;
  background:transparent;
}
.chips::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, var(--primary-mid), var(--primary-dark));
  border-radius:999px;
}
.chips::-webkit-scrollbar-track{ 
  background:transparent; 
}

/* Показываем scrollbar только на мобильных устройствах */
@media (max-width:768px){
  .chips{
    scrollbar-width: thin; /* Firefox */
    -ms-overflow-style: auto; /* IE и Edge */
  }
  
  .chips::-webkit-scrollbar{ 
    height:3px; 
    width:3px;
    display:block;
  }
}

@media (max-width:520px){
  .chips::-webkit-scrollbar{ 
    height:2px; 
    width:2px;
    display:block;
  }
}

.chip{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:10px;

  height:36px;
  padding:0 14px;
  border-radius:999px;

  white-space:nowrap;
  text-decoration:none;

  /* system-ui первым — если Antonio грузится криво, подписи не «пропадают» */
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif,"Antonio";
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:12px;

  color:#031012 !important;
  -webkit-text-fill-color:#031012;
  background:linear-gradient(180deg, #6fd4c8 0%, #4abfb0 42%, #36998c 100%);
  border:1.5px solid #0bc4b0;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.2) inset,
    0 2px 8px rgba(0,0,0,.35);

  transition:
    transform .18s ease,
    box-shadow .22s ease,
    background .22s ease,
    border-color .22s ease,
    color .22s ease;
}

/* Одинаковый URL /go/ у всех чипов — :visited иначе даёт тёмный/невидимый текст в Safari/Chrome */
.chip:link,
.chip:visited,
.chip:hover,
.chip:active,
.chip:focus-visible{
  color:#031012 !important;
  -webkit-text-fill-color:#031012;
}

/* ICON */
.chip-ico{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  color:#022a26;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.25));
}

.chip-ico svg{
  width:18px;
  height:18px;
  stroke:currentColor;
}

/* TEXT */
.chip-txt{
  line-height:1;
  color:#031012 !important;
  -webkit-text-fill-color:#031012;
}

/* HOVER — wie Referenz, etwas heller */
@media (hover:hover){
  .chip:hover{
    color:#010a0c !important;
    -webkit-text-fill-color:#010a0c;
    border-color:#12e0cc;
    background:linear-gradient(180deg, #86e8dc 0%, #5ed4c6 45%, #42b5a8 100%);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.28) inset,
      0 0 20px rgba(11, 196, 176, 0.35),
      0 6px 16px rgba(0,0,0,.35);
    transform: translateY(-1px);
  }
}

/* ACTIVE / TAP */
.chip:active{
  transform: translateY(1px);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.7) inset,
    0 4px 10px rgba(0,0,0,.6);
}

/* MOBILE — компактнее */
@media (max-width:768px){
  .chips{
    padding:8px 10px;
    gap:8px;
    margin-top:12px;
  }
  
  .chip{
    height:32px;
    padding:0 10px;
    font-size:10px;
    border-radius:999px;
    gap:6px;
  }
  
  .chip-ico,
  .chip-ico svg{
    width:14px;
    height:14px;
  }
}

@media (max-width:520px){
  .chips{
    padding:6px 8px;
    gap:6px;
    margin-top:10px;
  }
  
  .chip{
    height:30px;
    padding:0 8px;
    font-size:9px;
    border-radius:999px;
    gap:5px;
  }
  
  .chip-ico,
  .chip-ico svg{
    width:12px;
    height:12px;
  }
}

@media (max-width:380px){
  .chips{
    padding:5px 6px;
    gap:5px;
  }
  
  .chip{
    height:28px;
    padding:0 7px;
    font-size:8px;
    gap:4px;
  }
  
  .chip-ico,
  .chip-ico svg{
    width:11px;
    height:11px;
  }
}

/* На мобильных уменьшаем псевдо-элементы */
@media (max-width:768px){
  .chips::before,
  .chips::after{
    flex:0 0 8px;
  }
  
  .chips{
    justify-content:flex-start; /* важно для нормального скролла */
  }
}

@media (max-width:520px){
  .chips::before,
  .chips::after{
    flex:0 0 6px;
  }
}

/* ─────────────────────────────────────────────────────────
   CARDS GRID
────────────────────────────────────────────────────────── */
.grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-top:22px;
  min-width:0;
}
.card{
  display:block;
  text-decoration:none;
  color:inherit;
  background:linear-gradient(180deg, #071a20 0%, #030c10 100%);
  border:1px solid rgba(44, 240, 216, 0.28);
  border-radius:14px;
  overflow:hidden;
  box-shadow:
    0 4px 18px rgba(0,0,0,.55),
    0 0 0 1px rgba(44, 240, 216, 0.06) inset;
  transition:border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.card:hover{
  border-color:rgba(44, 240, 216, 0.55);
  box-shadow:
    0 10px 28px rgba(0,0,0,.6),
    0 0 26px rgba(44, 240, 216, 0.18),
    0 0 0 1px rgba(44, 240, 216, 0.15) inset;
  transform:translateY(-2px);
}
.media{
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#0a0a0a;
}
.media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1);
  transition:transform .6s ease;
}
.card:hover .media img{ transform:scale(1.08); }
.play{
  position:absolute;
  inset:auto 50% 50% auto;
  transform:translate(50%,50%);
  padding:10px 22px;
  border-radius:14px;
  font-weight:800;
  color:#021016;
  -webkit-text-fill-color:#021016;
  background:
    radial-gradient(60% 120% at 30% 20%, rgba(180, 255, 244, 0.45), transparent 42%),
    linear-gradient(180deg, #8dffef 0%, var(--primary) 45%, var(--primary-dark) 100%);
  border:1px solid rgba(44, 240, 216, 0.55);
  box-shadow:0 0 22px rgba(44, 240, 216, 0.45), var(--ring);
  opacity:0;
  transition:opacity .25s ease, transform .25s ease;
}
.card:hover .play{
  opacity:1;
  transform:translate(50%,50%) scale(1.05);
}
.info{
  padding:12px 14px 14px;
  background:linear-gradient(180deg, #2a6d68 0%, #1d5552 48%, #164541 100%);
  border-top:1px solid rgba(44, 240, 216, 0.35);
}
.title{ margin:0 0 4px; font-weight:800; font-size:15px; line-height:1.2; color:#ffffff; text-shadow:0 1px 2px rgba(0,0,0,.25); }
.vendor{ margin:0; color:rgba(255,255,255,.92); font-size:12px; font-weight:600; }

/* ─────────────────────────────────────────────────────────
   TABLE OF CONTENTS
────────────────────────────────────────────────────────── */
.toc-nav{
  margin:24px 0 20px;
  padding:16px 20px;
  background:linear-gradient(180deg, rgba(8, 36, 44, 0.92), rgba(4, 16, 22, 0.96));
  border:1px solid rgba(44, 240, 216, 0.22);
  border-radius:14px;
  box-shadow:0 4px 12px rgba(0,0,0,.45);
}

.toc-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:12px 16px;
  justify-content:flex-start;
  align-items:center;
}

.toc-list li{
  margin:0;
  padding:0;
}

.toc-list a{
  display:inline-block;
  padding:6px 14px;
  font-size:13px;
  font-weight:600;
  color:var(--ink-bright);
  text-decoration:none;
  border-radius:8px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  transition:all .2s ease;
  white-space:nowrap;
}

.toc-list a:hover{
  background:rgba(44, 240, 216, 0.15);
  border-color:rgba(44, 240, 216, 0.4);
  color:#ffffff;
  transform:translateY(-1px);
}

@media (max-width:768px){
  .toc-nav{
    padding:12px 14px;
    margin:20px 0 16px;
  }
  
  .toc-list{
    gap:8px 12px;
  }
  
  .toc-list a{
    padding:5px 11px;
    font-size:12px;
  }
}

@media (max-width:480px){
  .toc-list{
    gap:6px 10px;
  }
  
  .toc-list a{
    padding:4px 9px;
    font-size:11px;
  }
}

/* ─────────────────────────────────────────────────────────
   FAQ SECTION
────────────────────────────────────────────────────────── */
.faq-item{
  margin-bottom:24px;
  padding:18px 20px;
  background:linear-gradient(180deg, rgba(24, 22, 23, 0.6), rgba(35, 33, 33, 0.6));
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.3);
}

.faq-item h3{
  margin:0 0 12px 0;
  font-size:18px;
  font-weight:800;
  color:var(--text-heading);
  line-height:1.3;
}

.faq-item p{
  margin:0;
  color:var(--ink);
  line-height:1.6;
}

.faq-item:last-child{
  margin-bottom:0;
}

@media (max-width:768px){
  .faq-item{
    padding:14px 16px;
    margin-bottom:18px;
  }
  
  .faq-item h3{
    font-size:16px;
    margin-bottom:10px;
  }
}

/* ─────────────────────────────────────────────────────────
   SECTIONS / CTA
────────────────────────────────────────────────────────── */
.section{
  margin-top:30px;
  margin-bottom:20px;
  line-height:1.6;
  color:#ffffff;
}

.intro h2{
  max-width:900px;
  margin:0 auto 14px;
  text-align:center;
  color:#ffffff;
  font-size:clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight:800;
  letter-spacing:.04em;
  line-height:1.25;
}
.intro p{
  max-width:900px;
  margin:0 auto;
  text-align:left;
  color:#ffffff;
}
.cta-center{
  display:flex;
  justify-content:center;
  margin-top:16px;
}
.pulse-btn{
  display:inline-block;
  padding:16px 32px;
  font-weight:900;
  font-size:18px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#041016;
  -webkit-text-fill-color:#041016;
  text-decoration:none;
  border-radius:30px;
  position:relative;
  background:
    radial-gradient(ellipse at center top, rgba(180, 255, 244, 0.45) 0%, transparent 52%),
    linear-gradient(180deg, #b8fff4 0%, var(--primary) 40%, var(--primary-dark) 100%);
  border:2px solid rgba(4, 16, 22, 0.55);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 4px 14px rgba(0,0,0,.5),
    0 8px 28px rgba(44, 240, 216, 0.35),
    0 0 36px rgba(44, 240, 216, 0.22);
  transition:all .3s ease;
  animation:pulse 1.8s infinite;
}

/* Глянцевый эффект */
.pulse-btn::before{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,.05) 50%, transparent 100%);
  pointer-events:none;
  z-index:1;
}

/* Адаптивные стили для мобильных */
@media (max-width:768px){
  .pulse-btn{
    padding:14px 26px;
    font-size:16px;
  }
}

@media (max-width:480px){
  .pulse-btn{
    padding:12px 22px;
    font-size:15px;
    border-radius:25px;
  }
}

/* ─────────────────────────────────────────────────────────
   PROVIDERS
────────────────────────────────────────────────────────── */
.prov-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.prov{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
  color:var(--ink-bright);
  background:linear-gradient(180deg, #0a2228 0%, #050f14 100%);
  border:1px solid rgba(44, 240, 216, 0.35);
  border-radius:14px;
  padding:14px;
  box-shadow:
    0 4px 16px rgba(0,0,0,.45),
    0 0 0 1px rgba(44, 240, 216, 0.08) inset;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prov:hover{
  transform:translateY(-3px);
  border-color:rgba(44, 240, 216, 0.65);
  box-shadow:
    0 12px 28px rgba(0,0,0,.5),
    0 0 26px rgba(44, 240, 216, 0.22);
}
.prov-media{
  width:100%;
  aspect-ratio:16/9;
  background:#0d0d0d;
  border-radius:10px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(44, 240, 216, 0.15);
}
.prov-media img{
  width:80%;
  height:80%;
  object-fit:contain;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.prov-name{
  margin-top:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:13px;
  text-align:center;
  color:#ffffff;
}
.vmore-btn{
  display:inline-block;
  padding:12px 24px;
  font-weight:900;
  font-size:14px;
  letter-spacing:.04em;
  text-transform:uppercase;
  border-radius:999px;
  text-decoration:none;
  color:#021016;
  -webkit-text-fill-color:#021016;
  position:relative;
  background:
    radial-gradient(ellipse at center top, rgba(180, 255, 244, 0.4) 0%, transparent 52%),
    linear-gradient(180deg, #b8fff4 0%, var(--primary) 42%, var(--primary-dark) 100%);
  border:2px solid rgba(44, 240, 216, 0.5);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.35) inset,
    0 4px 12px rgba(0,0,0,.5),
    0 6px 22px rgba(44, 240, 216, 0.35),
    0 0 28px rgba(44, 240, 216, 0.22);
  transition:all .3s ease;
}

/* Глянцевый эффект */
.vmore-btn::before{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,.05) 50%, transparent 100%);
  pointer-events:none;
}

.vmore-btn:hover{ 
  transform:scale(1.05) translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.35) inset,
    0 6px 18px rgba(0,0,0,.55),
    0 8px 32px rgba(44, 240, 216, 0.45),
    0 0 40px rgba(44, 240, 216, 0.32);
  filter: brightness(1.08);
}

/* ─────────────────────────────────────────────────────────
   ТАБЛИЦЫ (ОБЩЕЕ)
────────────────────────────────────────────────────────── */
.table-wrapper{
  background:linear-gradient(180deg, rgba(8, 40, 48, 0.42), rgba(4, 16, 22, 0.72));
  border:1px solid rgba(44, 240, 216, 0.18);
  border-radius:16px;
  box-shadow:var(--ring);
  overflow:hidden; /* скругления без «утечек» */
}

/* Для таблиц с горизонтальным скроллом */
.table-wrapper--scroll{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(44, 240, 216, 0.4) rgba(0,0,0,0.2);
}

.table-wrapper--scroll::-webkit-scrollbar{
  height:8px;
}

.table-wrapper--scroll::-webkit-scrollbar-track{
  background:rgba(0,0,0,0.2);
  border-radius:4px;
}

.table-wrapper--scroll::-webkit-scrollbar-thumb{
  background:rgba(44, 240, 216, 0.4);
  border-radius:4px;
}

.table-wrapper--scroll::-webkit-scrollbar-thumb:hover{
  background:rgba(44, 240, 216, 0.6);
}

/* Базовая таблица — всегда 100% внутри wrapper */
table{
  width:100%;
  border-collapse:collapse;
}

/* Стили для таблиц с заголовками (thead/th) */
table thead{
  background:linear-gradient(180deg, rgba(44, 240, 216, 0.15), rgba(44, 240, 216, 0.1));
  border-bottom:2px solid rgba(44, 240, 216, 0.3);
}

table th{
  padding:14px 12px;
  text-align:left;
  font-weight:800;
  color:var(--text-heading);
  font-size:15px;
  letter-spacing:.02em;
  text-transform:uppercase;
  border-bottom:2px solid rgba(44, 240, 216, 0.3);
}

table tbody tr{
  transition:background-color .2s ease;
}

table tbody tr:hover{
  background:rgba(44, 240, 216, 0.08);
}

table tbody td{
  padding:12px;
  color:#ffffff;
  line-height:1.5;
  font-size:15px;
  border-bottom:1px solid rgba(255,255,255,.08);
  vertical-align:middle;
}

table tbody tr:last-child td{
  border-bottom:0;
}

table tbody tr:nth-child(even){
  background:rgba(255,255,255,.02);
}

/* Адаптивность для многоколоночных таблиц */
@media (max-width:768px){
  table th,
  table tbody td{
    padding:10px 8px;
    font-size:14px;
  }
  
  table th{
    font-size:13px;
  }
}

@media (max-width:480px){
  table th,
  table tbody td{
    padding:8px 6px;
    font-size:13px;
  }
  
  table th{
    font-size:12px;
    letter-spacing:.01em;
  }
}

/* Универсальный фикс для 2-колоночных таблиц без правок HTML
   (используется в секциях #facts, #bonuses) */
:is(#facts, #bonuses){
  overflow-x:hidden;
}
:is(#facts, #bonuses) table{
  width:100% !important;
  min-width:0 !important;
  margin:0;
  border-collapse:collapse;
  table-layout:fixed; /* ровные колонки на мобайле */
}
:is(#facts, #bonuses) td{
  padding:12px 14px;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
  vertical-align:top;
  border-bottom:1px solid rgba(255,255,255,.18);
  color:#ffffff;
  line-height:1.5;
  font-size:15px;
}
:is(#facts, #bonuses) tr:last-child td{ border-bottom:0; }

:is(#facts, #bonuses) td:first-child{
  width:42%;
  font-weight:700;
  color:#ffffff;
}
:is(#facts, #bonuses) td:last-child{ width:58%; }

:is(#facts, #bonuses) tr:nth-child(odd) td{
  background:rgba(255,255,255,.03);
}

@media (max-width:430px){
  :is(#facts, #bonuses) td{
    padding:10px 8px;
    font-size:14px;
  }
  :is(#facts, #bonuses) td:first-child{ width:46%; }
  :is(#facts, #bonuses) td:last-child{ width:54%; }
}

/* Стили для секции #payments с многоколоночной таблицей */
#payments .table-wrapper{
  overflow:hidden;
}

#payments table{
  width:100%;
  margin:0;
  border-collapse:collapse;
  table-layout:auto;
}

/* Мобильная адаптация для #payments */
@media (max-width:768px){
  #payments table th,
  #payments table tbody td{
    padding:10px 8px;
    font-size:13px;
  }
  
  #payments table th{
    font-size:12px;
    padding:10px 6px;
  }
  
  #payments table tbody td:last-child{
    font-size:12px;
  }
}

@media (max-width:480px){
  #payments table th,
  #payments table tbody td{
    padding:8px 6px;
    font-size:12px;
  }
  
  #payments table th{
    font-size:11px;
    padding:8px 5px;
    letter-spacing:0;
  }
  
  #payments table tbody td:first-child{
    font-size:12px;
  }
  
  #payments table tbody td:nth-child(2),
  #payments table tbody td:nth-child(3){
    text-align:center;
    font-size:12px;
  }
  
  #payments table tbody td:last-child{
    font-size:11px;
  }
}

/* ─────────────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────────────── */
.site-footer{
  margin-top:40px;
  background:
    linear-gradient(180deg, rgba(42, 95, 102, 0.06) 0%, transparent 38%),
    linear-gradient(180deg, #021c23 0%, #011216 50%, #000508 100%),
    var(--ref-noise-layer);
  border-top:1px solid var(--line);
  box-shadow:0 -12px 36px rgba(0,0,0,.52) inset;
}
.site-footer a{ color:#ffffff; text-decoration:none; }
.site-footer a:hover{ color:#ffffff; text-decoration:underline; text-underline-offset:2px; }

.ft-wrap{
  max-width:1320px;
  margin:0 auto;
  padding:28px 14px 32px;
  color:#ffffff;
}
.ft-head{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  justify-content:space-between;
  margin-bottom:16px;
}
.ft-logo img{ height:52px; max-width:280px; width:auto; object-fit:contain; display:block; }
.ft-cta-center{ flex:1; display:flex; justify-content:center; }

.ft-btn{
  display:inline-block;
  padding:14px 26px;
  font-weight:900;
  font-size:17px;
  letter-spacing:.1em;
  text-transform:uppercase;
  text-shadow:0 1px 0 rgba(255,255,255,.25);
  color:#041016;
  -webkit-text-fill-color:#041016;
  text-decoration:none;
  border-radius:12px;
  max-width:380px;
  position:relative;
  line-height:1.25;
  background:linear-gradient(180deg, #b8fff4 0%, #2cf0d8 42%, #0d7d72 100%);
  border:2px solid rgba(4,16,22,.65);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.2) inset,
    0 4px 0 #032028,
    0 8px 22px rgba(0,0,0,.5),
    0 0 28px rgba(44, 240, 216, 0.38);
  transition:all .3s ease;
}

/* Глянцевый эффект */
.ft-btn::before{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,.05) 50%, transparent 100%);
  pointer-events:none;
}

.ft-btn:hover{
  transform:scale(1.03) translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.22) inset,
    0 5px 0 #032028,
    0 10px 26px rgba(0,0,0,.55),
    0 0 36px rgba(44, 240, 216, 0.48);
  filter: brightness(1.05);
}

.ft-trust{ display:flex; align-items:center; gap:18px; }
.ft-trust img{
  height:30px;
  width:auto;
  display:block;
  opacity:.9;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.ft-trust a:hover img{ opacity:1; }

.ft-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  padding:16px 0;
  border-top:1px solid rgba(52, 160, 175, 0.12);
  border-bottom:1px solid rgba(0,0,0,.35);
}
.ft-col{ display:flex; flex-direction:column; gap:8px; }
.ft-title{ font-weight:800; color:var(--text-heading); margin-bottom:6px; }

.ft-pay{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin:14px 0;
}
.ft-pay span{ opacity:.9; text-align:center; }
.ft-pay ul{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
  padding:0;
  margin:0;
  list-style:none;
}
.ft-pay img{
  height:26px;
  width:auto;
  display:block;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
/* ─────────────────────────────────────────────────────────
   FOOTER LANGUAGE BUTTONS
────────────────────────────────────────────────────────── */
.ft-lang{
  border-top:1px solid rgba(52, 160, 175, 0.12);
  border-bottom:1px solid rgba(52, 160, 175, 0.12);
  margin:16px 0;
  padding:16px 0;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
}

.ft-lang-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.15);
  color:var(--ink-bright);
  text-decoration:none;
  font-family:"Antonio", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:12px;
  font-weight:600;
  transition:all .2s ease;
}

.ft-lang-btn:hover{
  border-color:rgba(255,255,255,.25);
  background:rgba(255,255,255,.12);
  color:#ffffff;
  transform:translateY(-1px);
}

.ft-lang-btn.is-active{
  background:rgba(52, 160, 175, 0.2);
  border-color:rgba(72, 185, 198, 0.45);
  color:#ffffff;
  cursor:default;
  pointer-events:none;
}

.ft-lang-btn .flag-emoji{
  font-size:18px;
  line-height:1;
  display:inline-flex;
  align-items:center;
}

.ft-legal{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px 18px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(52, 160, 175, 0.16);
  font-size:13px;
}
.ft-legal a{
  color:#ffffff;
  text-decoration:none;
  opacity:.92;
  border-bottom:1px solid rgba(255,255,255,.25);
  padding-bottom:1px;
  transition:opacity .2s ease, border-color .2s ease;
}
.ft-legal a:hover{
  opacity:1;
  border-bottom-color:rgba(44, 240, 216, 0.65);
}

.legal-doc{
  max-width:820px;
  margin:0 auto;
}
.legal-doc h2{
  margin:28px 0 12px;
  font-size:1.25rem;
  font-weight:800;
  color:var(--text-heading);
}
.legal-doc h2:first-of-type{
  margin-top:8px;
}
.legal-doc p,
.legal-doc li{
  color:var(--ink);
  line-height:1.65;
  margin:0 0 12px;
}
.legal-doc ul,
.legal-doc ol{
  margin:0 0 16px;
  padding-left:1.35em;
}
.legal-doc .legal-note{
  margin:20px 0;
  padding:14px 18px;
  border-radius:12px;
  border:1px solid rgba(44, 240, 216, 0.28);
  background:rgba(4, 22, 30, 0.88);
  font-size:14px;
}

.ft-bottom{
  border-top:1px solid rgba(44, 240, 216, 0.22);
  margin-top:12px;
  padding-top:12px;
  font-size:13px;
  color:var(--ink-muted);
  display:flex;
  justify-content:center;
  text-align:center;
}

/* ─────────────────────────────────────────────────────────
   FOOTER MOBILE RESPONSIVE
────────────────────────────────────────────────────────── */
@media (max-width:768px){
  .ft-head{
    flex-direction:column;
    align-items:center;
    gap:16px;
    justify-content:center;
  }
  
  .ft-logo img{
    height:50px;
  }
  
  .ft-cta-center{
    width:100%;
    justify-content:center;
  }
  
  .ft-btn{
    padding:10px 20px;
    font-size:13px;
    max-width:280px;
    width:auto;
  }
  
  .ft-trust{
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
  }
  
  .ft-trust img{
    height:26px;
  }
  
  .ft-grid{
    grid-template-columns:repeat(2,1fr);
    gap:16px;
  }
}

@media (max-width:520px){
  .ft-wrap{
    padding:20px 12px 24px;
  }
  
  .ft-head{
    gap:14px;
    margin-bottom:14px;
  }
  
  .ft-logo img{
    height:45px;
  }
  
  .ft-btn{
    padding:8px 18px;
    font-size:12px;
    max-width:240px;
  }
  
  .ft-trust{
    gap:10px;
  }
  
  .ft-trust img{
    height:24px;
  }
  
  .ft-grid{
    grid-template-columns:1fr;
    gap:14px;
    padding:14px 0;
  }
  
  .ft-col{
    gap:6px;
  }
  
  .ft-title{
    font-size:14px;
    margin-bottom:8px;
  }
  
  .ft-pay{
    margin:12px 0;
    gap:8px;
  }
  
  .ft-pay ul{
    gap:10px;
  }
  
  .ft-pay img{
    height:22px;
  }
  
  .ft-lang{
    margin:12px 0;
    padding:12px 0;
    gap:8px;
  }
  
  .ft-lang-btn{
    padding:6px 12px;
    font-size:11px;
    gap:6px;
  }
  
  .ft-lang-btn .flag-emoji{
    font-size:16px;
  }
  
  .ft-bottom{
    font-size:12px;
    padding-top:10px;
    margin-top:10px;
  }
}

@media (max-width:390px){
  .ft-wrap{
    padding:18px 10px 20px;
  }
  
  .ft-logo img{
    height:40px;
  }
  
  .ft-btn{
    padding:9px 18px;
    font-size:12px;
  }
  
  .ft-trust img{
    height:22px;
  }
  
  .ft-title{
    font-size:13px;
  }
  
  .ft-pay img{
    height:20px;
  }
  
  .ft-lang{
    margin:10px 0;
    padding:10px 0;
    gap:6px;
  }
  
  .ft-lang-btn{
    padding:5px 10px;
    font-size:10px;
    gap:5px;
  }
  
  .ft-lang-btn .flag-emoji{
    font-size:14px;
  }
  
  .ft-bottom{
    font-size:11px;
    line-height:1.5;
  }
}

/* Десктоп: ограничение высоты сайдбара при длинном меню + запас под вертикальный drift */
@media (min-width:993px){
  .aside{
    max-height:none;
    overflow-y:visible;
    overflow-x:hidden;
    -webkit-overflow-scrolling:auto;
    overscroll-behavior:auto;
  }
}

/* Средние десктопы: сетка и сайдбар без горизонтального скролла страницы */
@media (min-width:993px) and (max-width:1199px){
  .shell{
    grid-template-columns:minmax(200px, 240px) minmax(0, 1fr);
    gap:16px;
    padding:16px 12px;
  }
  .aside{
    max-width:240px;
    padding:12px 10px;
    border-radius:16px;
  }
  .nav a{
    padding:10px 10px;
    font-size:13px;
    gap:8px;
  }
  .nav-ico,
  .nav-ico svg,
  svg.nav-ico{
    width:16px;
    height:16px;
    flex:0 0 16px;
  }
}

/* Широкие экраны: стабильная колонка меню */
@media (min-width:1200px){
  .shell{
    grid-template-columns:260px minmax(0, 1fr);
    gap:20px;
  }
  .aside{
    max-width:260px;
  }
}

/* На мобилке drawer усиленно прячем «за пределы» */
@media (max-width:992px){
  .drawer{ transform:translateX(-110%); }
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE (СЕТКИ)
────────────────────────────────────────────────────────── */
@media (max-width:1200px){
  .prov-grid{ grid-template-columns:repeat(3,1fr); }
  .medals{ grid-template-columns:repeat(6,1fr); }
  .grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:992px){
  header{
    position:fixed;
    top:0;
    left:0;
    right:0;
  }
  body{
    padding-top:var(--hdrH, 64px);
  }

  .shell{ grid-template-columns:1fr; }
  .aside{ display:none; }
  .burger{ display:inline-flex; }
  .search{ display:none; }
  .medals{ grid-template-columns:repeat(4,1fr); }
  .grid{ grid-template-columns:repeat(2,1fr); }
  
  .head .btn--login{
    margin-left:auto;
  }
}
@media (max-width:520px){
  .head{ gap:8px; }
  .medals{ grid-template-columns:repeat(3,1fr); }

  .head, .shell, .site-footer{
    padding-left:12px;
    padding-right:12px;
  }

  /* синхроним с переменной --framePad (см. выше) */
  .frame{ padding: var(--framePad); }
  .frame:before{ inset:6px; }
}
@media (max-width:390px){
  .medals{ grid-template-columns:repeat(2,1fr); }
  .grid{ grid-template-columns:1fr; }
}

/* ─────────────────────────────────────────────────────────
   (ОПЦИОНАЛЬНО) ASIDE FIXED — НА БУДУЩЕЕ
────────────────────────────────────────────────────────── */
.aside--fixed{
  position:fixed !important;
  top:var(--asideTop,74px);
  left:var(--asideLeft,14px);
  width:var(--asideWidth,260px);
  height:var(--asideHeight,calc(100vh - (var(--asideTop,74px) + 14px)));
  max-height:calc(100vh - (var(--asideTop,74px) + 14px));
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  z-index:90;
  transform:translateY(var(--asideShift,0px));
}

/* ─────────────────────────────────────────────────────────
   ПАК АНИМАЦИЙ/ЭФФЕКТОВ ДЛЯ CTA (без дублей)
   ВАЖНО: не ломаем transform у кнопок в хедере, поэтому
   применяем эффекты только там, где это уместно.
────────────────────────────────────────────────────────── */
:where(.pulse-btn, .hero-cta, .vmore-btn, .ft-btn, .btn--login, .btn--reg){
  position:relative;
  display:inline-block;
  transition: transform .2s ease, box-shadow .3s ease, filter .3s ease, background .3s ease;
  will-change: transform, box-shadow;
  transform: translateZ(0);
}

/* Hover: подъём и свечение */
.pulse-btn:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.4) inset,
    0 6px 16px rgba(0,0,0,.6),
    0 10px 30px rgba(44, 240, 216, 0.5),
    0 0 50px rgba(44, 240, 216, 0.4);
  filter: brightness(1.1) saturate(1.1);
}

.vmore-btn:hover,
.ft-btn:hover{
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.4) inset,
    0 6px 16px rgba(0,0,0,.6),
    0 8px 28px rgba(44, 240, 216, 0.4),
    0 0 35px rgba(44, 240, 216, 0.3);
  filter: brightness(1.1);
}

/* Для .btn--reg — только свечение */
.btn--reg:hover,
.btn--reg:focus-visible{
  box-shadow: 0 10px 24px rgba(44, 240, 216, 0.35), var(--ring);
  filter: saturate(1.06);
}

/* Active: эффект нажатия */
:where(.pulse-btn, .hero-cta, .vmore-btn, .ft-btn, .btn--login, .btn--reg):active{
  transform: translateY(0) scale(0.97);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  filter: saturate(1);
}

/* Фокус-обводка */
:where(.pulse-btn, .hero-cta, .vmore-btn, .ft-btn, .btn--login, .btn--reg):focus-visible{
  outline:0;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.35),
    0 0 0 5px rgba(44, 240, 216, 0.4),
    0 10px 24px rgba(0, 0, 0, 0.45);
}

/* Мягкая пульсация по классу .is-pulsing */
@keyframes pulse-glow2{
  0%   { box-shadow: 0 0 0 0 rgba(44, 240, 216, .45) }
  70%  { box-shadow: 0 0 0 14px rgba(44, 240, 216, 0) }
  100% { box-shadow: 0 0 0 0 rgba(44, 240, 216, 0) }
}
:where(.pulse-btn, .hero-cta, .vmore-btn, .ft-btn).is-pulsing{
  animation: pulse-glow2 2s infinite;
}

/* Лёгкий «ripple» без JS */
:where(.pulse-btn, .hero-cta, .vmore-btn, .ft-btn, .btn--login, .btn--reg)::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(160px 160px at 50% 50%, rgba(255,255,255,0), transparent 60%);
  opacity:0;
  transition: opacity .35s ease;
}
:where(.pulse-btn, .hero-cta, .vmore-btn, .ft-btn, .btn--login, .btn--reg):hover::after{
  opacity:1;
}

/* Уважение prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  :where(.pulse-btn, .hero-cta, .vmore-btn, .ft-btn, .btn--login, .btn--reg){
    transition:none;
    animation:none;
  }
  .hero-overlay--cta-only .hero-cta-shell{
    animation: none;
  }
  .head .btn--reg{
    animation: none;
    will-change: auto;
  }
  :where(.pulse-btn, .hero-cta, .vmore-btn, .ft-btn, .btn--login, .btn--reg):hover{
    transform:none;
    box-shadow:none;
    filter:none;
  }
}

/* Disabled-состояние */
:where(.pulse-btn, .hero-cta, .vmore-btn, .ft-btn, .btn--login, .btn--reg)[disabled]{
  opacity:.6;
  pointer-events:none;
  filter: grayscale(.2);
  box-shadow:none !important;
  transform:none !important;
}

/* ===== Language button (bottom of menus) ===== */
.lang-btn{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  background:
    radial-gradient(ellipse at center top, rgba(120, 255, 236, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(44, 240, 216, 0.2) 0%, rgba(44, 240, 216, 0.15) 100%);
  border:1.5px solid rgba(44, 240, 216, 0.4);
  color:#ffffff;
  cursor:pointer;
  font-family:"Antonio", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform:uppercase;
  letter-spacing:.06em;
  position:relative;
  box-shadow:
    0 0 8px rgba(44, 240, 216, 0.3),
    0 0 16px rgba(44, 240, 216, 0.2),
    0 4px 12px rgba(0,0,0,.4);
  transition:all .3s ease;
}
.lang-btn:hover{ 
  border-color:rgba(44, 240, 216, 0.8);
  background:
    radial-gradient(ellipse at center top, rgba(120, 255, 236, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, rgba(44, 240, 216, 0.3) 0%, rgba(44, 240, 216, 0.25) 100%);
  box-shadow:
    0 0 12px rgba(44, 240, 216, 0.5),
    0 0 24px rgba(44, 240, 216, 0.3),
    0 6px 16px rgba(0,0,0,.5);
  transform: translateY(-1px);
}

.lang-flag{ 
  width:20px; 
  height:20px; 
  object-fit:contain; 
  border-radius:3px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}

.lang-label-main{
  font-weight:800;
  font-size:14px;
  letter-spacing:.08em;
  color:var(--text-heading);
  text-shadow:0 0 8px rgba(44, 240, 216, 0.4);
}

.lang-label-sub{
  font-weight:500;
  font-size:11px;
  letter-spacing:.04em;
  color:var(--ink-muted);
  opacity:.95;
  margin-left:auto;
}

/* ===== Language modal ===== */
.lang-modal{
  position:fixed; inset:0;
  z-index:999;
  display:none;
}
.lang-modal.is-open{ display:block; }

.lang-backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

.lang-panel{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(520px, 92vw);
  max-height:min(78vh, 720px);
  overflow:auto;

  background:linear-gradient(180deg,#2b2b2b,#171717);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
}

.lang-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.lang-title{
  color:var(--text-heading);
  font-family:"Antonio", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:18px;
}
.lang-x{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:var(--text-heading);
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
}

.lang-list{ padding:14px; display:flex; flex-direction:column; gap:10px; }

.lang-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:12px;

  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  color:var(--ink-bright);
  cursor:pointer;
  text-decoration:none;

  font-family:"Antonio", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform:uppercase;
  letter-spacing:.06em;
  transition: all 0.2s ease;
}
.lang-item img{ width:18px; height:18px; object-fit:contain; border-radius:3px; }
.lang-item:hover{ border-color:rgba(44, 240, 216, 0.5); background:rgba(44, 240, 216, 0.1); }

.lang-item.is-active,
.lang-item.is-current,
.lang-item[disabled]{
  background: linear-gradient(135deg, rgba(44, 240, 216, 0.2), rgba(35, 42, 22, 0.5));
  border-color: rgba(44, 240, 216, 0.45);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(44, 240, 216, 0.25) inset, 0 2px 10px rgba(44, 240, 216, 0.2);
  cursor: default !important;
  pointer-events: none;
  text-decoration: none;
}
.lang-item.is-active:hover,
.lang-item.is-current:hover,
.lang-item[disabled]:hover{
  background: linear-gradient(135deg, rgba(44, 240, 216, 0.2), rgba(35, 42, 22, 0.5));
  border-color: rgba(44, 240, 216, 0.45);
}

/* ─────────────────────────────────────────────────────────
   LOGIN SECTION — float + wrap
────────────────────────────────────────────────────────── */
#login .login-shot{
  float:right;
  width:300px;
  max-width:min(45%, 100%);
  margin:0 0 1.25rem 1.5rem;
  display:block;
  line-height:0;
}
#login .login-shot img{
  width:100%;
  height:auto;
  border-radius:10px;
  display:block;
  vertical-align:middle;
  transition:transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  cursor:pointer;
}
#login .login-cta{
  clear:both;
  margin-top:20px;
}
@media (max-width:640px){
  #login .login-shot{
    float:none;
    width:100%;
    max-width:280px;
    margin:0 auto 1.25rem;
  }
}

#login .login-shot:hover img{
  transform:scale(1.05);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(44, 240, 216, 0.45),
    0 0 40px rgba(44, 240, 216, 0.22);
  filter:brightness(1.08) drop-shadow(0 0 10px rgba(44, 240, 216, 0.35));
}

/* ─────────────────────────────────────────────────────────
   BANNER PROMO IMAGE HOVER EFFECTS (glow with slight zoom)
────────────────────────────────────────────────────────── */
.promo-img,
img[src*="bannerpromo/"] {
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

a:hover .promo-img,
a:hover img[src*="bannerpromo/"] {
  border-radius: 18px;
  transform: scale(1.005);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(44, 240, 216, 0.45),
    0 0 40px rgba(44, 240, 216, 0.22);
  filter: brightness(1.08) drop-shadow(0 0 10px rgba(44, 240, 216, 0.35));
}

/*
  Единый белый текст: body + main + футер. Без -webkit-text-fill на массовых селекторах (ломает картинки в ссылках в WebKit).
  Текстовые ссылки в секциях — белые + подчёркивание; ссылки-картинки — отдельно.
*/
body{
  color:#ffffff !important;
}
header,
.drawer,
.site-footer,
.shell,
.search input{
  color:#ffffff !important;
}

:is(.shell > main, main){
  color:#ffffff !important;
}

:is(.shell > main, main) :is(
  .page-title,
  .section,
  p, h1, h2, h3, h4, h5, h6,
  li, td, th, dt, dd,
  figcaption, blockquote,
  .intro, address, label,
  .hero-line, .hero-line--intro, .hero-line--big, .hero-line--mid,
  .hero-badge,
  strong, em, small,
  span
){
  color:#ffffff !important;
}

:is(.shell > main, main) .vendor{
  color:#ffffff !important;
}

/* Карточки игр: подписи на салатовой плашке — чёрные (перебиваем глобальные p/span) */
:is(.shell > main, main) a.card .info,
:is(.shell > main, main) a.card .info :is(p, .title, .vendor, span){
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
}
:is(.shell > main, main) a.card .info .vendor{
  color:rgba(0,0,0,.7) !important;
  -webkit-text-fill-color:rgba(0,0,0,.7) !important;
}

:is(.shell > main, main) .section a:not(.pulse-btn):not(.vmore-btn):not(.card):not(.chip):not(.prov):not(.banner-link):not(.hero-cta):not(.play){
  color:#ffffff !important;
  text-decoration:underline;
  text-underline-offset:2px;
}
:is(.shell > main, main) .section a:not(.pulse-btn):not(.vmore-btn):not(.card):not(.chip):not(.prov):not(.banner-link):not(.hero-cta):not(.play):hover{
  color:#ffffff !important;
}

/* Ссылки с картинками (login, promo): WebKit */
:is(.shell > main, main) .section a:has(img),
:is(.shell > main, main) .section a:has(picture){
  -webkit-text-fill-color:unset;
  text-decoration:none;
}
:is(.shell > main, main) .section a:has(img) img,
:is(.shell > main, main) .section a:has(picture) img,
:is(.shell > main, main) .section a:has(picture) picture{
  opacity:1 !important;
  visibility:visible !important;
  -webkit-text-fill-color:unset;
}

:is(.shell > main, main) :is(.pulse-btn, .vmore-btn, .hero-cta, .play){
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
  text-decoration:none;
}
:is(.shell > main, main) :is(.chip, .chip-txt){
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
  text-decoration:none;
}
:is(.shell > main, main) .chip-ico{
  color:#000000 !important;
}

/* Чипы: отдельный «якорь» в конце файла (перебивает кэш/каскад/visited) */
.shell .chips a.chip,
.shell .chips a.chip:link,
.shell .chips a.chip:visited,
.shell .chips a.chip:hover,
.shell .chips a.chip:active,
.shell .chips a.chip:focus-visible{
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
}
.shell .chips a.chip .chip-txt,
main .chips a.chip span.chip-txt{
  color:#000000 !important;
  -webkit-text-fill-color:#000000 !important;
  opacity:1 !important;
  visibility:visible !important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
  font-weight:600 !important;
}