/* ===== Base / Body ===== */
body{
  margin: 0;
  font-family: Arial, sans-serif;
  color: #e5e7eb;

  /* fallback, если картинка не загрузится */
  background-color: #0f172a;

  /* фон-картинка */
  background-image: url('/assets/img/casino-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  /* ВАЖНО: отступ под фиксированную шапку */
  padding-top: 90px;
}

/* ===== Header (тонкая шапка + большой логотип) ===== */
header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;              /* тонкая шапка */
  z-index: 1000;

  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.35);

  display: flex;
  align-items: center;        /* выравнивание содержимого по вертикали */
}

/* ===== Layout ===== */
.wrap{
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Nav ===== */
nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ссылки в меню */
nav a{
  color: #cbd5f5;
  margin-left: 15px;
  text-decoration: none;
}

nav a:hover{
  color: #ffffff;
}

/* ===== Brand (logo) ===== */
.brand a{
  display: flex;
  align-items: center;
}

.brand img{
  height: 105px; /* большой логотип */
  display: block;

  /* чтобы логотип красиво "выступал" за тонкую шапку */
  margin-top: 14px;

  filter: drop-shadow(0 0 6px rgba(59,130,246,0.6));
}

/* ===== Hero ===== */
.hero{
  margin-top: 40px;
}

/* ===== Cards ===== */
.card{
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 20px;

  /* лёгкий стеклянный эффект на карточках */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ===== Minor helpers (чтобы все страницы выглядели едино) ===== */
.muted{
  color: rgba(229, 231, 235, 0.78);
}

.btnrow{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid .card{
  margin-bottom: 0; /* чтобы grid сам управлял отступами */
}

/* ===== Glow Buttons ===== */
.btn{
  display: inline-block;
  padding: 10px 18px;
  background: #3b82f6;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  margin-right: 10px;

  box-shadow: 0 0 12px rgba(59,130,246,0.6);
  transition: all 0.25s ease;
}

.btn:hover{
  background: #2563eb;
  box-shadow: 0 0 22px rgba(59,130,246,0.95);
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(1px);
  box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

/* ===== Promo Card: Animated Glow ===== */
.promo{
  position: relative;
  overflow: hidden;
  isolation: isolate; /* чтобы слои glow не влияли на соседей */

  /* чуть плотнее, чтобы glow выглядел дороже */
  background: rgba(2, 6, 23, 0.88);
}

/* анимированная "неоновая рамка" */
.promo::before{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;

  background: linear-gradient(
    120deg,
    rgba(59,130,246,0.0),
    rgba(59,130,246,0.70),
    rgba(168,85,247,0.70),
    rgba(34,197,94,0.55),
    rgba(59,130,246,0.0)
  );

  opacity: 0.75;
  filter: blur(0px);
  z-index: 0;

  animation: promoGlowRotate 6s linear infinite;
}

/* чтобы контент карточки был поверх glow */
.promo > *{
  position: relative;
  z-index: 1;
}

/* мягкий hover-эффект */
.promo:hover::before{
  opacity: 1;
  filter: blur(2px);
}

.promo:hover{
  transform: translateY(-2px);
  transition: 0.3s ease;
}

/* плавное вращение градиента */
@keyframes promoGlowRotate{
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== Mobile tweaks ===== */
@media (max-width: 920px){
  .grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  header{
    height: 58px;
  }

  body{
    padding-top: 84px;
  }

  .brand img{
    height: 92px;
    margin-top: 12px;
  }

  nav a{
    margin-left: 10px;
    font-size: 14px;
  }
}