/* ─────────────────────────────────────────────────────────
   БАЗА / 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 4px rgba(213, 144, 76, 0.4));
}
.nav-txt{ 
  line-height:1; 
  font-weight:500;
  letter-spacing:.02em;
}
.nav a.is-active .nav-txt{
  font-weight:700;
  text-shadow:0 0 6px rgba(255, 186, 90, 0.4);
}

/* ─────────────────────────────────────────────────────────
   ПЕРЕМЕННЫЕ / ЦВЕТА
────────────────────────────────────────────────────────── */
:root{
  --bg: rgb(30, 27, 27);
  --panel:#301d0e;
  --ink:#d050003b;
  --line:#23160b;
  --max:1320px;

  --gold1:#813c00;
  --gold2:#c65c00;
  --gold3:#813c00;

  --ring:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 1px 0 rgba(255,255,255,.05) inset,
    0 10px 30px rgba(0,0,0,.55);

  --hdrH:64px; /* реальную высоту проставляет JS */

  /* ВАЖНО: единый источник правды для Hero/баннера */
  --framePad: 14px;        /* соответствует padding у .frame */
  --bannerRad: 12px;       /* радиус баннера */
}

/* ─────────────────────────────────────────────────────────
   ГЛОБАЛЬНЫЙ ФОН / ТИПОГРАФИКА
────────────────────────────────────────────────────────── */
html,body{
  color:var(--ink);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.9;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(149, 72, 0, 0.664), transparent 60%),
    radial-gradient(1000px 700px at 120% 10%, rgba(149, 72, 0, 0.664), transparent 55%),
    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.7" numOctaves="2" seed="2" type="fractalNoise"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23n)"/></svg>') repeat;
}

/* ─────────────────────────────────────────────────────────
   АНИМАЦИИ
────────────────────────────────────────────────────────── */
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(206, 132, 5, 0.6) }
  70%{ box-shadow:0 0 0 20px rgba(251, 26, 26, 0) }
  100%{ box-shadow:0 0 0 0 rgba(255, 25, 25, 0) }
}
.pulse{ animation:pulse 1.8s infinite; }

/* ─────────────────────────────────────────────────────────
   HEADER / TOPBAR
────────────────────────────────────────────────────────── */
header{
  position:sticky;
  top:0;
  z-index:100;
  background:linear-gradient(180deg,rgb(58, 52, 50),rgb(62, 38, 30));
  border-bottom:1px solid rgb(58, 52, 50);
  backdrop-filter:saturate(130%) blur(6px);
}
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:none;
  border:1px solid #202020;
  color:#cfe6ff;
  border-radius:10px;
  padding:8px 10px;
}

.logo{ flex:0 0 auto; }
.logo img{
  height:50px;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.5));
}

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

.search{
  flex:1 1 420px;
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(180deg,#35353576,#0e0e0e);
  border:1px solid #2b2b2b;
  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:#ccdef0;
}

/* Базовая кнопка (общая) */
.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:#eaf2ff;
  background:linear-gradient(180deg,#3a1032,#300b2e);
  border:1px solid #341341;
  box-shadow:var(--ring);
}

/* ДЕФОЛТНЫЕ темы login/reg (если нужно где-то вне хедера) */
.btn--login{
  background:
    radial-gradient(60% 120% at 30% 20%, rgba(120,120,120,.35), transparent 40%),
    linear-gradient(180deg,rgb(55,55,55) 20%, #212121 80%);
  border:1px solid #5b5b5b87;
}
.btn--reg{
  background:
    radial-gradient(60% 120% at 30% 20%, rgba(255, 89, 0, 0.35), transparent 40%),
    linear-gradient(180deg, rgb(255, 129, 39) 20%, rgb(172, 72, 0) 80%);
  border:1px solid #92470087;
  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:#5a5652;

  background:linear-gradient(180deg,#f6f2ed 0%, #ece5de 55%, #ded6ce 100%);
  border:1px solid rgba(0,0,0,.18);

  box-shadow:
    0 6px 12px rgba(0,0,0,.28),
    0 1px 0 rgba(255,255,255,.75) inset,
    0 -1px 0 rgba(0,0,0,.10) inset;

  animation:none;
  transform:none;
}

/* Внутренний кант */
.head .btn::before{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:8px;
  pointer-events:none;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.10) inset,
    0 0 0 1px rgba(255,255,255,.20);
}

@media (hover:hover){
  .head .btn:hover{
    filter:brightness(1.03);
    box-shadow:
      0 8px 14px rgba(0,0,0,.32),
      0 1px 0 rgba(255,255,255,.8) inset,
      0 -1px 0 rgba(0,0,0,.10) inset;
  }
}
.head .btn:active{
  filter:brightness(.98);
  box-shadow:
    0 4px 8px rgba(0,0,0,.30),
    0 2px 4px rgba(0,0,0,.18) inset;
}

/* Кнопка REGISTER при скролле - оранжевая */
header.scrolled .head .btn--reg{
  background:
    radial-gradient(ellipse at center top, rgba(255, 220, 100, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #ff8c42 0%, #ff6b1a 30%, #ff5500 70%, #e04500 100%);
  border:1px solid rgba(255, 140, 66, 0.4);
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  box-shadow:
    0 6px 12px rgba(0,0,0,.35),
    0 1px 0 rgba(255,255,255,.2) inset,
    0 -1px 0 rgba(0,0,0,.15) inset,
    0 0 15px rgba(255, 140, 66, 0.3);
}

header.scrolled .head .btn--reg::before{
  box-shadow:
    0 0 0 1px rgba(0,0,0,.15) inset,
    0 0 0 1px rgba(255,255,255,.15);
}

@media (hover:hover){
  header.scrolled .head .btn--reg:hover{
    filter:brightness(1.1);
    box-shadow:
      0 8px 16px rgba(0,0,0,.4),
      0 1px 0 rgba(255,255,255,.25) inset,
      0 -1px 0 rgba(0,0,0,.15) inset,
      0 0 20px rgba(255, 140, 66, 0.4);
  }
}

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

/* 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:260px 1fr;
  gap:20px;
  min-width:0;
}
.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:74px;
  align-self:start;
  background:linear-gradient(180deg,rgb(24, 22, 23),rgb(35, 33, 33));
  border:1px solid rgb(47, 44, 44);
  border-radius:20px;
  padding:14px;
  box-shadow:var(--ring);
}
.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:#cfe6ff;
  border:1px solid transparent;
  text-decoration:none;
  position:relative;
  transition:all .2s ease;
}
.nav a:hover{
  background:rgba(112, 102, 28, 0.068);
  border-color:rgba(213, 144, 76, 0.4);
}
.nav a.is-active{
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 186, 90, 0.12) 0px,
      rgba(255, 186, 90, 0.12) 2px,
      transparent 2px,
      transparent 4px
    ),
    linear-gradient(180deg, rgba(24, 22, 23, 0.98), rgba(35, 33, 33, 0.98));
  border:1.5px solid rgb(213, 144, 76);
  box-shadow:
    0 0 8px rgba(255, 186, 90, 0.4),
    0 0 14px rgba(255, 175, 27, 0.25),
    0 0 22px rgba(255, 175, 27, 0.2),
    inset 0 0 0 1px rgba(255, 186, 90, 0.15);
  color:#ffe6bf;
}
.nav a.is-active::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:12px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 186, 90, 0.06) 0px,
      rgba(255, 186, 90, 0.06) 1px,
      transparent 1px,
      transparent 2px
    );
  pointer-events:none;
  z-index:0;
}
.nav a.is-active .nav-ico,
.nav a.is-active svg{
  filter: drop-shadow(0 0 4px rgba(255, 186, 90, 0.7));
  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 #00000072;
  border-bottom:1px solid #08082100;
  opacity:.8;
}
.sep-title{
  margin:8px 8px 4px;
  color:#95b7d0;
  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:linear-gradient(180deg,#1e1b00,#000000);
  border-right:1px solid #39360d;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
  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 #0f2b3a;
}
.dclose{
  background:none;
  border:1px solid #6e661b;
  color:#cfe6ff;
  border-radius:10px;
  padding:8px 10px;
}
.dnav{ padding:10px 10px 16px; }

/* ─────────────────────────────────────────────────────────
   TITLE
────────────────────────────────────────────────────────── */
.page-title{
  text-align:center;
  margin:4px 0 14px;
  font-size:26px;
  font-weight:900;
  letter-spacing:.3px;
  color:#eaf2ff;
  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:#0202008d;
  border:1px solid rgb(51, 50, 50);
  border-radius:22px;
  padding: var(--framePad);
  box-shadow:var(--ring);
  overflow:hidden; /* режем всё строго по рамке .frame */
}

/* декоративная рамка */
.frame:before{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:18px;
  border:3px solid transparent;
  background:
    linear-gradient(#3b2407,#211708) padding-box,
    linear-gradient(135deg,var(--gold3),var(--gold1) 40%, var(--gold2) 70%, var(--gold3)) border-box;
  pointer-events:none;
  z-index:0;
}

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

.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:flex-start;   /* слева как на десктопе */
  text-align:left;

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

  /* внутренние отступы в зоне текста */
  padding: clamp(10px, 2.2vw, 22px);
  padding-left: clamp(14px, 4vw, 72px);

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

/* “левая колонка” — ограничиваем ширину, чтобы не залезать на машину */
.hero-badge,
.hero-lines,
.hero-cta{
  max-width: min(46%, 560px);
}

/* Плашка */
.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:#eaf7ef;
  background: linear-gradient(180deg,#2f6f5c 0%, #235243 100%);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow:
    0 8px 18px rgba(0,0,0,.30),
    0 1px 0 rgba(255,255,255,.25) inset,
    0 -1px 0 rgba(0,0,0,.20) inset;
}

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

.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--big{
  font-size: clamp(18px, 3.2vw, 32px);
  line-height: 1.06;
}
.hero-line--mid{
  font-size: clamp(16px, 2.8vw, 34px);
  line-height: 1.06;
}

/* Кнопка */
.hero-cta{
  pointer-events:auto;
  align-self:flex-start;

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

  margin-top: 4px;
  padding: 16px 52px;
  border-radius: 999px;

  font-weight: 900;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration:none;
  color:#f5e6d3;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);

  position: relative;
  isolation:isolate;

  max-width: 100%;

  /* Оранжевый градиент с горизонтальными полосками */
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.1) 0px,
      rgba(255,255,255,.1) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(180deg, #ff8c42 0%, #ff6b1a 25%, #ff5500 60%, #e04500 100%);
  
  /* Убраны черные обводки, только желтое свечение с блюром */
  border: none;
  box-shadow:
    /* Яркое оранжево-желтое свечение с размытием */
    0 0 20px rgba(255, 220, 100, 0.6),
    0 0 40px rgba(255, 200, 80, 0.5),
    0 0 60px rgba(255, 184, 58, 0.4),
    /* Внешние тени для объема */
    0 8px 16px rgba(0,0,0,.5),
    0 12px 24px rgba(0,0,0,.4);
  
  transition:all .3s ease;
}

/* Дополнительный слой для глянца */
.hero-cta::before{
  content:"";
  position:absolute;
  inset: 3px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, 
      rgba(255,255,255,.2) 0%, 
      rgba(255,255,255,.08) 20%,
      rgba(255,255,255,.03) 40%,
      transparent 70%
    );
  pointer-events:none;
  z-index:1;
}

/* Внешнее свечение с блюром */
.hero-cta::after{
  content:"";
  position:absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 220, 100, 0.5) 0%, rgba(255, 200, 80, 0.3) 40%, transparent 70%);
  filter: blur(12px);
  z-index: -1;
  opacity: 0.8;
  pointer-events:none;
}

/* Ховер для CTA (только десктоп) */
@media (hover:hover){
  .hero-cta:hover{ 
    transform: translateY(-2px) scale(1.02);
    box-shadow:
      /* Усиленное желтое свечение с блюром */
      0 0 30px rgba(255, 220, 100, 0.8),
      0 0 50px rgba(255, 200, 80, 0.7),
      0 0 70px rgba(255, 184, 58, 0.6),
      /* Внешние тени */
      0 10px 20px rgba(0,0,0,.6),
      0 14px 28px rgba(0,0,0,.5);
    filter: brightness(1.1);
  }
  .hero-cta:hover::after{
    opacity: 1;
    filter: blur(16px);
  }
  .hero-cta:active{ 
    transform: translateY(0px) scale(0.98);
    box-shadow:
      0 0 15px rgba(255, 220, 100, 0.5),
      0 0 30px rgba(255, 200, 80, 0.4),
      0 4px 12px rgba(0,0,0,.6);
  }
}

/* Сдвиг левее как в рефе (десктоп сильнее) */
@media (min-width: 1200px){
  .hero-overlay{
    padding-left: clamp(18px, 4.4vw, 92px);
  }
}

/* Планшеты: даём чуть больше ширины слева, чтобы текст не ломался */
@media (max-width: 992px) and (min-width: 769px){
  .hero-badge,
  .hero-lines,
  .hero-cta{
    max-width: min(55%, 480px);
  }
  .hero-overlay{
    padding-left: clamp(16px, 3vw, 48px);
  }
  .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: 62%;
  }
  
  .hero-overlay{
    padding-left: 14px;
  }
  
  .hero-line--big{ 
    font-size: clamp(20px, 4.5vw, 26px);
  }
  .hero-line--mid{ 
    font-size: clamp(16px, 3.8vw, 21px);
  }
}

/* Мобилки: надписи слева, заметные, не перекрывают картинку */
@media (max-width: 768px){
  :root{
    --framePad: 12px;
  }

  .hero-overlay{
    padding: 12px 14px;
    padding-left: 14px;
    gap: 8px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  /* Ограничиваем ширину, чтобы не перекрывать картинку */
  .hero-badge,
  .hero-lines,
  .hero-cta{
    max-width: 65%;
    position: relative;
    z-index: 3;
  }

  /* Полупрозрачный фон для лучшей читаемости */
  .hero-badge{
    background: linear-gradient(180deg, rgba(47, 111, 92, 0.95) 0%, rgba(35, 82, 67, 0.95) 100%);
    backdrop-filter: blur(6px);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    align-self: flex-start;
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
  }

  .hero-lines{
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    padding: 8px 12px;
    border-radius: 10px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
  }

  .hero-line--big{ 
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.1;
  }
  .hero-line--mid{ 
    font-size: clamp(16px, 4vw, 22px);
    line-height: 1.1;
  }

  .hero-cta{
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 16px;
    margin-top: 4px;
    color:#f5e6d3;
    box-shadow:
      0 0 15px rgba(255, 220, 100, 0.5),
      0 0 30px rgba(255, 200, 80, 0.4),
      0 0 45px rgba(255, 184, 58, 0.3),
      0 6px 12px rgba(0,0,0,.5);
  }
  .hero-cta::before{
    inset: 3px;
    border-radius: 13px;
  }
  .hero-cta::after{
    inset: -6px;
    border-radius: 22px;
    filter: blur(10px);
    opacity: 0.7;
  }
}

/* Средние мобилки (480px - 720px) */
@media (max-width: 720px){
  .hero-badge,
  .hero-lines,
  .hero-cta{
    max-width: 60%;
  }
  
  .hero-overlay{
    padding-left: 12px;
    gap: 6px;
  }

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

  .hero-cta{
    padding: 9px 18px;
    font-size: 12px;
  }
}

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

  .hero-overlay{
    padding: 10px 12px;
    padding-left: 12px;
    gap: 6px;
  }

  .hero-badge,
  .hero-lines,
  .hero-cta{
    max-width: 58%;
  }

  .hero-badge{
    padding: 3px 6px;
    font-size: 10px;
    background: linear-gradient(180deg, rgba(47, 111, 92, 0.95) 0%, rgba(35, 82, 67, 0.95) 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,.45);
  }

  .hero-lines{
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 3px 10px rgba(0,0,0,.45);
  }

  .hero-line--big{ 
    font-size: clamp(16px, 4vw, 22px);
  }
  .hero-line--mid{ 
    font-size: clamp(13px, 3.2vw, 18px);
  }

  .hero-cta{
    padding: 8px 16px;
    font-size: 11px;
    border-radius: 14px;
    color:#f5e6d3;
    box-shadow:
      0 0 12px rgba(255, 220, 100, 0.4),
      0 0 25px rgba(255, 200, 80, 0.3),
      0 0 35px rgba(255, 184, 58, 0.25),
      0 5px 10px rgba(0,0,0,.5);
  }
  .hero-cta::before{
    inset: 2px;
    border-radius: 12px;
  }
  .hero-cta::after{
    inset: -5px;
    border-radius: 19px;
    filter: blur(8px);
    opacity: 0.6;
  }
}

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

  .hero-overlay{
    padding: 8px 10px;
    padding-left: 10px;
    gap: 5px;
  }

  .hero-badge,
  .hero-lines,
  .hero-cta{
    max-width: 55%;
  }

  .hero-badge{
    padding: 2px 5px;
    font-size: 9px;
    background: linear-gradient(180deg, rgba(47, 111, 92, 0.95) 0%, rgba(35, 82, 67, 0.95) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
  }

  .hero-lines{
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
  }

  .hero-line--big{ 
    font-size: clamp(14px, 3.8vw, 20px);
  }
  .hero-line--mid{ 
    font-size: clamp(12px, 3vw, 16px);
  }

  .hero-cta{
    padding: 7px 14px;
    font-size: 10px;
    border-radius: 12px;
    color:#f5e6d3;
    box-shadow:
      0 0 10px rgba(255, 220, 100, 0.4),
      0 0 20px rgba(255, 200, 80, 0.3),
      0 0 30px rgba(255, 184, 58, 0.25),
      0 4px 8px rgba(0,0,0,.5);
  }
  .hero-cta::before{
    inset: 2px;
    border-radius: 10px;
  }
  .hero-cta::after{
    inset: -4px;
    border-radius: 16px;
    filter: blur(6px);
    opacity: 0.6;
  }
}

/* ─────────────────────────────────────────────────────────
   MEDALLIONS
────────────────────────────────────────────────────────── */
/* ===== Chips: Neon54 gold style (REF MATCH) ===== */
.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:10px 12px;
  
  /* Remove top/bottom dividers */
  border-top:0;
  border-bottom:0;
  box-shadow:none;
  
  /* Скрываем 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,#ffb23a,#cc6a00);
  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:12px;

  white-space:nowrap;
  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;

  /* REF colors */
  color:#f3d3a2;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,190,80,.18), transparent 45%),
    linear-gradient(180deg,#2b1d14 0%, #18110c 100%);
  border:1px solid rgba(255,186,90,.25);

  box-shadow:
    0 0 0 1px rgba(0,0,0,.6) inset,
    0 6px 14px rgba(0,0,0,.45);

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

/* ICON */
.chip-ico{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  color:#ffb23a;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,.6))
    drop-shadow(0 0 6px rgba(255,170,40,.35));
}

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

/* TEXT */
.chip-txt{
  line-height:1;
  color:#f3d3a2;
}

/* HOVER — как в рефе */
@media (hover:hover){
  .chip:hover{
    color:#ffe6bf;
    border-color:#ffb23a;
    background:
      radial-gradient(120% 120% at 30% 20%, rgba(255,200,90,.25), transparent 45%),
      linear-gradient(180deg,#3a2617 0%, #1f140d 100%);
    box-shadow:
      0 0 0 1px rgba(255,170,40,.35) inset,
      0 0 14px rgba(255,170,40,.25),
      0 10px 22px rgba(0,0,0,.55);
    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:10px;
    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:8px;
    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:#1e1e1c;
  border:1px solid #262222;
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--ring);
}
.media{
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
}
.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:#fff;
  background:
    radial-gradient(60% 120% at 30% 20%, rgba(255, 254, 207, 0.35), transparent 40%),
    linear-gradient(180deg,#d27400 20%, #af4c00 80%);
  border:1px solid #6e421b44;
  box-shadow:0 0 20px rgba(255, 163, 25, 0.25), 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:10px 12px 12px; }
.title{ margin:0 0 2px; font-weight:800; }
.vendor{ margin:0; color:#9fb1c5; font-size:12px; }

/* ─────────────────────────────────────────────────────────
   TABLE OF CONTENTS
────────────────────────────────────────────────────────── */
.toc-nav{
  margin:24px 0 20px;
  padding:16px 20px;
  background:linear-gradient(180deg, rgba(24, 22, 23, 0.95), rgba(35, 33, 33, 0.95));
  border:1px solid rgba(255, 186, 90, 0.2);
  border-radius:14px;
  box-shadow:0 4px 12px rgba(0,0,0,.4);
}

.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:#cfe6ff;
  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(255, 186, 90, 0.15);
  border-color:rgba(255, 186, 90, 0.4);
  color:#ffe6bf;
  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:#ffe6bf;
  line-height:1.3;
}

.faq-item p{
  margin:0;
  color:#dce9ff;
  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;
  color:#dce9ff;
  line-height:1.6;
}
.intro p{
  max-width:900px;
  margin:0 auto;
  text-align:left;
}
.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:#fff;
  text-decoration:none;
  border-radius:30px;
  position:relative;
  
  /* Золотой градиент как на офсайте */
  background:
    radial-gradient(ellipse at center top, rgba(255, 220, 100, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #ffd700 0%, #ffb23a 30%, #ff8c00 70%, #cc6a00 100%);
  
  border:2px solid #8b6914;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.4) inset,
    0 4px 12px rgba(0,0,0,.5),
    0 8px 24px rgba(255, 184, 58, 0.3),
    0 0 30px rgba(255, 184, 58, 0.2);
  
  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:#dce9ff;
  background:#262523b4;
  border:1px solid #373736;
  border-radius:16px;
  padding:14px;
  box-shadow:var(--ring);
  transition:transform .2s ease, box-shadow .2s ease;
}
.prov:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(0,0,0,.35), var(--ring);
}
.prov-media{
  width:100%;
  aspect-ratio:16/9;
  background:#282826;
  border-radius:10px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.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:10px;
  font-weight:800;
  letter-spacing:.2px;
  text-align:center;
  color:#eaf2ff;
}
.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:#fff;
  position:relative;
  
  /* Золотой градиент */
  background:
    radial-gradient(ellipse at center top, rgba(255, 220, 100, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #ffd700 0%, #ffb23a 30%, #ff8c00 70%, #cc6a00 100%);
  
  border:2px solid #8b6914;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.4) inset,
    0 4px 12px rgba(0,0,0,.5),
    0 6px 20px rgba(255, 184, 58, 0.3),
    0 0 25px rgba(255, 184, 58, 0.2);
  
  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,.4) inset,
    0 6px 16px rgba(0,0,0,.6),
    0 8px 28px rgba(255, 184, 58, 0.4),
    0 0 35px rgba(255, 184, 58, 0.3);
  filter: brightness(1.1);
}

/* ─────────────────────────────────────────────────────────
   ТАБЛИЦЫ (ОБЩЕЕ)
────────────────────────────────────────────────────────── */
.table-wrapper{
  background:#2a292618;
  border:1px solid #0000007d;
  border-radius:16px;
  box-shadow:var(--ring);
  overflow:hidden; /* скругления без «утечек» */
}

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

/* Универсальный фикс для 2-колоночных таблиц без правок HTML
   (используется в секциях #facts, #payments, #bonuses) */
:is(#payments, #facts, #bonuses){
  overflow-x:hidden;
}
:is(#payments, #facts, #bonuses) table{
  width:100% !important;
  min-width:0 !important;
  margin:0;
  border-collapse:collapse;
  table-layout:fixed; /* ровные колонки на мобайле */
}
:is(#payments, #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:#e9edf3;
  line-height:1.5;
  font-size:15px;
}
:is(#payments, #facts, #bonuses) tr:last-child td{ border-bottom:0; }

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

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

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

/* ─────────────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────────────── */
.site-footer{
  margin-top:40px;
  background:linear-gradient(180deg,rgb(46, 46, 46),#0b0b0b);
  border-top:1px solid #2a2845;
  box-shadow:0 -10px 30px rgba(0,0,0,.35) inset;
}
.site-footer a{ color:#cfe6ff; text-decoration:none; }
.site-footer a:hover{ color:#fff; }

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

.ft-btn{
  display:inline-block;
  padding:14px 28px;
  font-weight:900;
  font-size:16px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#fff;
  text-decoration:none;
  border-radius:30px;
  max-width:320px;
  position:relative;
  
  /* Золотой градиент */
  background:
    radial-gradient(ellipse at center top, rgba(255, 220, 100, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #ffd700 0%, #ffb23a 30%, #ff8c00 70%, #cc6a00 100%);
  
  border:2px solid #8b6914;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.4) inset,
    0 4px 12px rgba(0,0,0,.5),
    0 8px 24px rgba(255, 184, 58, 0.3),
    0 0 30px rgba(255, 184, 58, 0.2);
  
  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.05) translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.4) inset,
    0 6px 16px rgba(0,0,0,.6),
    0 10px 30px rgba(255, 184, 58, 0.4),
    0 0 40px rgba(255, 184, 58, 0.3);
  filter: brightness(1.1);
}

.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 #140f3a4a;
  border-bottom:1px solid #120f3a67;
}
.ft-col{ display:flex; flex-direction:column; gap:8px; }
.ft-title{ font-weight:800; color:#eaf2ff; 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));
}
.ft-bottom{
  border-top:1px solid #0f2b3a;
  margin-top:12px;
  padding-top:12px;
  font-size:13px;
  color:#9fb1c5;
  display:flex;
  justify-content:center;
  text-align:center;
}

/* ─────────────────────────────────────────────────────────
   FIX: ФИКСИРОВАННЫЙ HEADER НА ДЕСКТОПЕ + КОМПЕНСАЦИЯ
────────────────────────────────────────────────────────── */
@media (min-width:993px){
  header{
    position:fixed !important;
    top:0; left:0; right:0;
    z-index:120;
  }
  body{ padding-top:var(--hdrH); }

  .aside{
    position:sticky !important;
    top:calc(var(--hdrH) + 10px);
    max-height:calc(100vh - (var(--hdrH) + 24px));
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
}

/* На мобилке 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){
  .shell{ grid-template-columns:1fr; }
  .aside{ display:none; }
  .burger{ display:inline-flex; }
  .search{ flex:1 1 50vw; }
  .medals{ grid-template-columns:repeat(4,1fr); }
  .grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:520px){
  .head{ gap:8px; }
  .search{ padding:6px 10px; }
  .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){
  .search{ display:none; }
  .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: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(255, 184, 58, 0.5),
    0 0 50px rgba(255, 184, 58, 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(255, 184, 58, 0.4),
    0 0 35px rgba(255, 184, 58, 0.3);
  filter: brightness(1.1);
}

/* Для .btn--reg — только свечение */
.btn--reg:hover,
.btn--reg:focus-visible{
  box-shadow: 0 10px 24px rgba(55, 0, 255, 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.424),
    0 0 0 5px rgba(0, 30, 255, 0.45),
    0 10px 24px rgba(72, 0, 255, 0.35);
}

/* Мягкая пульсация по классу .is-pulsing */
@keyframes pulse-glow2{
  0%   { box-shadow: 0 0 0 0 rgba(255, 0, 0, .40) }
  70%  { box-shadow: 0 0 0 14px rgba(255, 0, 0, 0) }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 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;
  }
  :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) ===== */
.aside-lang{ margin-top:12px; padding-top:10px; border-top:1px solid rgba(255,255,255,.06); }
.drawer-lang{ margin-top:10px; padding:10px 6px 0; border-top:1px solid rgba(255,255,255,.08); }

.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(255, 220, 100, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255, 186, 90, 0.2) 0%, rgba(255, 140, 66, 0.15) 100%);
  border:1.5px solid rgba(255, 186, 90, 0.4);
  color:#ffe6bf;
  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(255, 186, 90, 0.3),
    0 0 16px rgba(255, 184, 58, 0.2),
    0 4px 12px rgba(0,0,0,.4);
  transition:all .3s ease;
}
.lang-btn:hover{ 
  border-color:rgba(255, 186, 90, 0.8);
  background:
    radial-gradient(ellipse at center top, rgba(255, 220, 100, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255, 186, 90, 0.3) 0%, rgba(255, 140, 66, 0.25) 100%);
  box-shadow:
    0 0 12px rgba(255, 186, 90, 0.5),
    0 0 24px rgba(255, 184, 58, 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:#ffe6bf;
  text-shadow:0 0 8px rgba(255, 186, 90, 0.4);
}

.lang-label-sub{
  font-weight:500;
  font-size:11px;
  letter-spacing:.04em;
  color:#f3d3a2;
  opacity:.8;
  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:#eaf2ff;
  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:#eaf2ff;
  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:#dce9ff;
  cursor:pointer;

  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:rgb(213, 144, 76); background:rgba(112, 102, 28, 0.08); }

/* Активный язык - зеленый фон как на скриншоте */
.lang-item.is-active,
.lang-item.is-current,
.lang-item[disabled]{
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.2));
  border-color: rgba(34, 197, 94, 0.4);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2) inset, 0 2px 8px rgba(34, 197, 94, 0.15);
  cursor: default !important;
  pointer-events: none;
}
.lang-item.is-active:hover,
.lang-item.is-current:hover,
.lang-item[disabled]:hover{
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.2));
  border-color: rgba(34, 197, 94, 0.4);
}