:root {
  --bg: #070709;
  --panel: #141417;
  --panel2: #0f0f12;
  --text: #f1f1f1;
  --muted: #b7b7b7;
  --accent: #ff9f00;
  --accent2: #ffb000;
  --stroke: rgba(255, 255, 255, .08);
  --radius: 22px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .55);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  /* мягкие “свечения”, без резких линий */
  background: radial-gradient(1100px 680px at 68% 0%, rgba(255, 0, 0, .18), transparent 62%),
  radial-gradient(950px 650px at 14% 18%, rgba(255, 160, 0, .10), transparent 60%),
  radial-gradient(1100px 850px at 50% 120%, rgba(255, 0, 0, .22), transparent 70%),
  linear-gradient(180deg, #050507 0%, #0a0607 30%, #200003 62%, #3a0006 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  position: relative;
  padding: 26px 0 28px;
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 26px 0 28px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: /* тёмная вуаль */ linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .22) 50%, rgba(0, 0, 0, .72) 100%),
    /* мягкий “красный туман” */ radial-gradient(1200px 700px at 70% 15%, rgba(255, 0, 0, .22), transparent 60%),
    /* hero картинка */ url("../assets/background.webp") center top / cover no-repeat;
  z-index: -2;
  transform: scale(1.02); /* убирает швы по краям */
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -120px; /* важное: уводим ниже */
  height: 360px; /* важное: длинный фейд */

  /* 3 слоя: красный туман + тёмный фейд + микротень */
  background: radial-gradient(1100px 320px at 55% 10%, rgba(255, 0, 0, .25), transparent 70%),
  linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .10) 18%,
    rgba(12, 0, 2, .45) 48%,
    rgba(10, 0, 2, .85) 78%,
    rgba(10, 0, 2, 1) 100%
  );

  filter: blur(14px);
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}


.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.logo {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .55));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, .28);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  backdrop-filter: blur(6px);
}

.badge b {
  color: var(--text);
  font-weight: 700;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  padding: 52px 0 20px;
  align-items: start;
}

.heroGrid--single {
  grid-template-columns: 1fr; /* ✅ теперь только левый контент */
}

.heroLeft {
  max-width: 560px;
}

.heroTitle {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1.05;
  color: var(--accent);
  text-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}

.heroSub {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 6px;
}

.heroFund {
  font-size: clamp(44px, 6.2vw, 88px);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 0 0 18px;
  text-shadow: 0 18px 42px rgba(0, 0, 0, .65);
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  color: #140c00;
  box-shadow: 0 14px 35px rgba(255, 160, 0, .18);
  transition: transform .08s ease, filter .2s ease;
}

.btn:hover {
  filter: brightness(1.02);
}

.btn:active {
  transform: translateY(1px);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 160, 0, .55);
  box-shadow: none;
}

.cardsSection {
  position: relative;
  padding: 40px 0 36px;
  margin-top: -20px; /* чуть наезжаем на hero, чтобы склеить */
}

/* красная “подложка” с мягкими краями */
.cardsSection::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 260px;
  background: linear-gradient(90deg, rgba(255, 0, 0, 0) 0%, rgba(255, 0, 0, .20) 18%, rgba(255, 0, 0, .20) 82%, rgba(255, 0, 0, 0) 100%),
  radial-gradient(1200px 220px at 50% 40%, rgba(255, 0, 0, .22), transparent 68%);
  filter: blur(10px);
  opacity: .95;
  pointer-events: none;
  z-index: 0;
}

/* контент поверх подложки */
.cardsSection .wrap {
  position: relative;
  z-index: 1;
}

.cardsRow {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
}

/* Cards */
.card {
  border-radius: var(--radius);
  background: radial-gradient(1000px 300px at 50% 0%, rgba(255, 160, 0, .10), transparent 55%),
  linear-gradient(180deg, rgba(18, 18, 20, .92), rgba(10, 10, 12, .92));
  border: 1px solid rgba(255, 70, 0, .35);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.card.red {
  background: radial-gradient(1100px 400px at 20% 10%, rgba(255, 0, 0, .25), transparent 60%),
  linear-gradient(180deg, rgba(55, 0, 0, .70), rgba(14, 10, 12, .92));
  border: 1px solid rgba(255, 220, 160, .35);
}

.cardIn {
  padding: 18px 22px;
}

.cardTitle {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .3px;
}

.cardTitle .accent {
  color: var(--accent);
}

.cardP {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.35;
  font-size: 13px;
  max-width: 56ch;
}

.cardP--red {
  color: #f0d6d6;
}

/*.top3 {*/
/*  display: grid;*/
/*  grid-template-columns: repeat(3, 1fr);*/
/*  gap: 10px;*/
/*  align-items: end;*/
/*  margin-top: 6px;*/
/*}*/

/*.top3Item {*/
/*  text-align: center;*/
/*  padding: 10px 10px 12px;*/
/*  border-radius: 14px;*/
/*  border: 1px solid rgba(255, 255, 255, .06);*/
/*  background: rgba(0, 0, 0, .25);*/
/*}*/

/*.top3Item .label {*/
/*  font-size: 12px;*/
/*  color: var(--muted);*/
/*  margin-bottom: 6px;*/
/*  letter-spacing: .6px;*/
/*}*/

/*.top3Item .amt {*/
/*  font-size: 18px;*/
/*  font-weight: 900;*/
/*}*/

/*.top3Item:nth-child(1) .amt {*/
/*  color: #ffcf4a;*/
/*}*/

/*.top3Item:nth-child(2) .amt {*/
/*  color: #d6d6d6;*/
/*}*/

/*.top3Item:nth-child(3) .amt {*/
/*  color: #ff8a2a;*/
/*}*/

/*.top3Item{*/
/*  position: relative;*/
/*  overflow:hidden;*/
/*}*/

/*.medal{*/
/*  position:absolute;*/
/*  left: 12px;*/
/*  top: 10px;*/
/*  width: 34px;*/
/*  height: 34px;*/
/*  object-fit: contain;*/
/*  filter: drop-shadow(0 10px 14px rgba(0,0,0,.55));*/
/*  opacity: .95;*/
/*}*/

/*!* чуть сместим текст, чтобы не наезжал на медаль *!*/
/*.top3Item .label,*/
/*.top3Item .amt{*/
/*  padding-left: 34px;*/
/*}*/

/*!* тонкая подсветка по месту *!*/
/*.top3Item--first{ border-color: rgba(255,207,74,.22); }*/
/*.top3Item--second{ border-color: rgba(214,214,214,.16); }*/
/*.top3Item--third{ border-color: rgba(255,138,42,.18); }*/


/*.tickets{*/
/*  position:absolute;*/
/*  right:-14px;*/
/*  bottom:-10px;*/
/*  width:min(340px, 85%);*/
/*  opacity: .95;*/
/*  filter: drop-shadow(0 14px 22px rgba(0,0,0,.55));*/
/*  pointer-events:none;*/
/*  user-select:none;*/
/*}*/

/*.tickets img{*/
/*  width:100%;*/
/*  height:auto;*/
/*  display:block;*/
/*}*/

/* Prizes */
.sectionTitle {
  text-align: center;
  font-size: 28px;
  margin: 18px 0 14px;
  font-weight: 900;
}

.prizeGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 10px;
}

.prize {
  background: linear-gradient(135deg, rgba(255, 0, 0, .20), rgba(0, 0, 0, .38));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
  min-height: 94px;
}

.prize::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(600px 200px at 0% 0%, rgba(255, 160, 0, .18), transparent 55%);
  pointer-events: none;
}

.prize .place {
  font-size: 13px;
  opacity: .95;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
}

.prize .value {
  font-size: 44px;
  font-weight: 950;
  letter-spacing: .4px;
  color: var(--accent);
  line-height: 1;
  position: relative;
}

.prize .unit {
  font-size: 16px;
  font-weight: 900;
  opacity: .92;
  margin-left: 8px;
  position: relative;
}

.prize .tag {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 160, 0, .55);
  color: var(--accent);
  font-weight: 900;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 10px;
  z-index: 1;
}

.prize.wide {
  grid-column: span 2;
}

.note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
}

.spin {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin: 10px 0 26px;
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}

.spin .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 160, 0, .45);
}

/* Registration */
.regWrap {
  padding: 22px 0 14px;
}

.reg {
  background: linear-gradient(180deg, rgba(20, 20, 23, .86), rgba(8, 8, 10, .86));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
}

.reg h3 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 950;
}

.reg p {
  margin: 8px 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.form {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 0, .35);
  background: rgba(0, 0, 0, .22);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}

.input:focus {
  border-color: rgba(255, 160, 0, .55);
  background: rgba(0, 0, 0, .30);
}

.btnRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.hint {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.hint a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.status {
  max-width: 720px;
  margin: 10px auto 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .22);
  display: none;
  font-size: 13px;
  line-height: 1.35;
}

.status.ok {
  border-color: rgba(0, 255, 160, .28);
}

.status.err {
  border-color: rgba(255, 0, 0, .35);
}

.telegram {
  display: flex;
  justify-content: center;
  padding: 10px 0 36px;
}

.tgBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .25);
  text-decoration: none;
  color: var(--text);
}

.tgIcon {
  width: 18px;
  height: 18px;
  display: block;
}

.tgSmall {
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
}

.tgBig {
  font-weight: 900;
  line-height: 1.2;
}

/* Responsive */
@media (max-width: 980px) {
  .cardsRow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .prizeGrid {
    grid-template-columns: 1fr;
  }

  .prize.wide {
    grid-column: auto;
  }

  .btnRow {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* === Leaderboard page === */
.hero--short {
  padding-bottom: 18px;
}

.brandLink {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.topbarRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btnSmall {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
}

.lbHead {
  padding: 18px 0 8px;
}

.lbTitle {
  margin: 0;
  font-weight: 950;
  letter-spacing: .2px;
  font-size: clamp(26px, 3.2vw, 42px);
  color: var(--accent);
  text-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}

.lbSub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lbMain {
  padding-top: 18px;
  padding-bottom: 40px;
}

.tableCard {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 20, 23, .86), rgba(8, 8, 10, .86));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}

.tableCardHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 10px;
}

.tableCardTitle {
  font-weight: 950;
  font-size: 16px;
}

.tableCardHint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.tableWrap {
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.lbTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.lbTable thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  padding: 12px 18px;
  background: rgba(0, 0, 0, .22);
}

.lbTable tbody td {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 14px;
}

.lbTable tbody tr:hover {
  background: rgba(255, 160, 0, .06);
}

.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.meHighlight {
  background: radial-gradient(900px 200px at 20% 50%, rgba(255, 160, 0, .18), transparent 60%),
  rgba(255, 160, 0, .06);
  outline: 1px solid rgba(255, 160, 0, .35);
  outline-offset: -1px;
}

.skeletonRow td {
  color: var(--muted);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.pagerBtn {
  border: 1px solid rgba(255, 160, 0, .35);
  background: rgba(0, 0, 0, .22);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.pagerBtn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.pagerPages {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pageBtn {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 38px;
  font-weight: 900;
  cursor: pointer;
}

.pageBtn.active {
  border-color: rgba(255, 160, 0, .55);
  background: rgba(255, 160, 0, .12);
  color: var(--accent);
}

.pagerDots {
  color: var(--muted);
  padding: 0 4px;
  font-weight: 900;
}

@media (max-width: 820px) {
  .topbarRight {
    flex-direction: column;
    align-items: flex-end;
  }

  .lbTable {
    min-width: 640px;
  }
}

/* === Leaderboard page === */
.hero--short {
  padding-bottom: 18px;
}

.brandLink {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.topbarRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btnSmall {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
}

.lbHead {
  padding: 18px 0 8px;
}

.lbTitle {
  margin: 0;
  font-weight: 950;
  letter-spacing: .2px;
  font-size: clamp(26px, 3.2vw, 42px);
  color: var(--accent);
  text-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}

.lbSub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lbMain {
  padding-top: 18px;
  padding-bottom: 40px;
}

.tableCard {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 20, 23, .86), rgba(8, 8, 10, .86));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}

.tableCardHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 10px;
}

.tableCardTitle {
  font-weight: 950;
  font-size: 16px;
}

.tableCardHint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.tableWrap {
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.lbTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.lbTable thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  padding: 12px 18px;
  background: rgba(0, 0, 0, .22);
}

.lbTable tbody td {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 14px;
}

.lbTable tbody tr:hover {
  background: rgba(255, 160, 0, .06);
}

.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.meHighlight {
  background: radial-gradient(900px 200px at 20% 50%, rgba(255, 160, 0, .18), transparent 60%),
  rgba(255, 160, 0, .06);
  outline: 1px solid rgba(255, 160, 0, .35);
  outline-offset: -1px;
}

.skeletonRow td {
  color: var(--muted);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.pagerBtn {
  border: 1px solid rgba(255, 160, 0, .35);
  background: rgba(0, 0, 0, .22);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.pagerBtn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.pagerPages {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pageBtn {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 38px;
  font-weight: 900;
  cursor: pointer;
}

.pageBtn.active {
  border-color: rgba(255, 160, 0, .55);
  background: rgba(255, 160, 0, .12);
  color: var(--accent);
}

.pagerDots {
  color: var(--muted);
  padding: 0 4px;
  font-weight: 900;
}

@media (max-width: 820px) {
  .topbarRight {
    flex-direction: column;
    align-items: flex-end;
  }

  .lbTable {
    min-width: 640px;
  }
}

/* BONUS card layout: text + tickets area (responsive, no overlap) */
.card--bonus {
  overflow: hidden;
}

.cardIn--bonus {
  display: flow;
  grid-template-columns: 1.1fr .9fr;
  gap: 10px;
  align-items: center;
  min-height: 260px;
}

.bonusText {
  padding-right: 6px;
}

.bonusArt {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.bonusArt picture,
.bonusArt img {
  width: 100%;
  height: 100%;
  display: block;
}

.bonusArt img {
  object-fit: contain; /* чтобы не резало */
  object-position: right bottom;
  max-height: 240px;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .55));
}

/* На больших экранах пусть “заполняет свободную область” сильнее */
@media (min-width: 1100px) {
  .cardIn--bonus {
    min-height: 280px;
  }

  .bonusArt img {
    max-height: 270px;
  }
}

/* На узких экранах — картинка уходит вниз, но всё равно не перекрывает */
@media (max-width: 980px) {
  .cardIn--bonus {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bonusArt {
    height: 220px;
    justify-content: center;
  }

  .bonusArt img {
    max-height: 220px;
    object-position: center bottom;
  }
}

/* === REAL card re-layout (as in mock) === */
.card--real {
  border-radius: 28px;
}

.cardIn--real {
  padding: 44px 44px 34px;
  min-height: 360px; /* ✅ блок выше */
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 26px;

  background: radial-gradient(1100px 420px at 42% 0%, rgba(255, 160, 0, .14), transparent 62%),
  linear-gradient(180deg, rgba(18, 18, 20, .92), rgba(10, 10, 12, .92));
}

.realHead {
  max-width: 980px;
}

.realTitle {
  margin: 0 0 18px;
  font-weight: 950;
  letter-spacing: .3px;
  font-size: clamp(28px, 2.3vw, 40px);
  line-height: 1.1;
}

.realWhite {
  color: #fff;
}

.realDesc {
  margin: 0;
  color: rgba(255, 255, 255, .60);
  line-height: 1.55;
  font-size: 16px;
  max-width: 72ch;
}

/* три карточки как в макете */
.realPrizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.prizeMini {
  position: relative;
  border-radius: 18px;
  padding: 18px 18px 18px 92px; /* место под медаль */
  border: 1px solid rgba(255, 255, 255, .10);
  background: radial-gradient(700px 160px at 50% 0%, rgba(255, 255, 255, .06), transparent 70%),
  rgba(0, 0, 0, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
  min-height: 108px;
  display: flex;
  align-items: center;
}

.prizeMiniMedal {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px; /* ✅ минимум 64px */
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .65));
}

.prizeMiniText {
  display: grid;
  gap: 8px;
}

.prizeMiniTop {
  font-size: 14px;
  letter-spacing: .8px;
  color: rgba(255, 255, 255, .55);
}

.prizeMiniAmt {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: .2px;
  line-height: 1;
}

.prizeMiniAmt--gold {
  color: #ffcf4a;
}

.prizeMiniAmt--silver {
  color: #e8e8e8;
}

.prizeMiniAmt--bronze {
  color: #ff8a2a;
}

/* тонкая подсветка рамки под места */
.prizeMini--first {
  border-color: rgba(255, 207, 74, .22);
}

.prizeMini--second {
  border-color: rgba(232, 232, 232, .14);
}

.prizeMini--third {
  border-color: rgba(255, 138, 42, .18);
}

.realFoot {
  text-align: center;
  color: rgba(255, 255, 255, .60);
  font-size: 16px;
  padding-top: 4px;
}

/* адаптив */
@media (max-width: 1100px) {
  .cardIn--real {
    padding: 36px 28px 26px;
    min-height: 340px;
  }

  .realPrizes {
    grid-template-columns: 1fr;
  }

  .prizeMini {
    min-height: 104px;
  }
}

@media (max-width: 520px) {
  .cardIn--real {
    padding: 28px 18px 20px;
    gap: 18px;
  }

  .realDesc {
    font-size: 14px;
  }

  .prizeMini {
    padding-left: 86px;
  }

  .prizeMiniAmt {
    font-size: 28px;
  }
}

/* === REAL card fixes: keep everything inside, no drift === */

.cardIn--real {
  padding: 36px 32px 26px; /* меньше паддинги */
  min-height: 320px; /* чуть ниже, но “больше” чем раньше */
  gap: 20px;
}

.realTitle {
  font-size: clamp(24px, 2.2vw, 36px);
  margin-bottom: 14px;
}

.realDesc {
  font-size: 15px;
  line-height: 1.55;
  max-width: 78ch;
}

/* ВАЖНО: minmax(0,1fr) + min-width:0 чтобы элементы не раздвигали grid */
.realPrizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.prizeMini {
  min-width: 0; /* ✅ не даём контенту раздувать карточку */
  padding: 16px 14px 16px 76px;
  min-height: 96px;
  border-radius: 16px;
}

.prizeMiniText {
  min-width: 0;
}

/* медали заметные, но не ломают ширину */
.prizeMiniMedal {
  left: 16px;
  width: clamp(44px, 4vw, 56px);
  height: clamp(44px, 4vw, 56px);
}

/* TOP label компактнее */
.prizeMiniTop {
  font-size: 13px;
  letter-spacing: .7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* сумма адаптивная: не вылезает */
.prizeMiniAmt {
  font-size: clamp(22px, 2.2vw, 30px);
  white-space: nowrap;
}

/* если всё равно тесно — на средних экранах делаем 2+1 */
@media (max-width: 1100px) {
  .cardIn--real {
    padding: 32px 24px 22px;
    min-height: 320px;
  }

  .realPrizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* третий блок на всю ширину (как часто делают в макетах) */
  .realPrizes .prizeMini:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* на очень узких — в колонку */
@media (max-width: 640px) {
  .realPrizes {
    grid-template-columns: 1fr;
  }

  .realPrizes .prizeMini:nth-child(3) {
    grid-column: auto;
  }
}

/* CTA button (hero) — bigger and more visible */
.btn {
  padding: 16px 34px; /* вытянутее */
  border-radius: 16px; /* ближе к макету */
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .2px;

  box-shadow: 0 18px 40px rgba(255, 160, 0, .22),
  0 0 0 1px rgba(255, 190, 90, .20) inset;
}

/* чуть “поднять” кнопку визуально */
.btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* конкретно для кнопки в hero — ещё чуть длиннее */
.hero .btn {
  min-width: 220px;
  height: 56px; /* чтобы было как на макете */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile: кнопка на всю ширину, как в макете */
@media (max-width: 520px) {
  .hero .btn {
    width: 100%;
    min-width: 0;
    height: 58px;
    border-radius: 16px;
    font-size: 18px;
  }

  /* чтобы не прилипала к краям */
  .heroLeft {
    width: 100%;
  }
}

/* === Prizes: tastier look === */

/* общий стиль карточек */
.prize {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: radial-gradient(900px 220px at 0% 0%, rgba(255, 160, 0, .12), transparent 60%),
  linear-gradient(135deg, rgba(255, 0, 0, .18), rgba(0, 0, 0, .40));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35),
  inset 0 0 0 1px rgba(255, 255, 255, .03);
  overflow: hidden;
  min-height: 108px;
}

/* badge x5 вкуснее */
.prize .tag {
  right: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 160, 0, .55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

/* текст */
.prize .place {
  font-size: 14px;
  font-weight: 900;
  color: rgba(255, 255, 255, .85);
}

.prize .value {
  font-size: 52px;
}

.prize .unit {
  font-size: 18px;
}

/* === TOP 3 === */
.prize--top {
  min-height: 138px; /* ✅ выше */
  padding: 18px 18px 16px;
  border-color: rgba(255, 255, 255, .22);
  background: radial-gradient(1000px 320px at 20% 0%, rgba(255, 160, 0, .22), transparent 60%),
  radial-gradient(900px 260px at 100% 100%, rgba(255, 0, 0, .20), transparent 60%),
  linear-gradient(135deg, rgba(30, 0, 0, .45), rgba(0, 0, 0, .42));
}

/* watermark 1/2/3 как на макете */
.prize--top::after {
  content: attr(data-wm);
  position: absolute;
  right: 18px;
  bottom: -14px;
  font-weight: 950;
  font-size: 160px;
  line-height: 1;
  color: rgba(255, 255, 255, .10);
  pointer-events: none;
  filter: blur(.2px);
}

/* дай дефолтные значения watermark через nth-child,
   если не хочешь менять HTML */
.prizeGrid .prize--first {
  --wm: "1";
}

.prizeGrid .prize--second {
  --wm: "2";
}

.prizeGrid .prize--third {
  --wm: "3";
}

.prize--top::after {
  content: var(--wm);
}

/* разные акценты у топ-3 */
.prize--first {
  background: radial-gradient(900px 320px at 0% 0%, rgba(255, 190, 60, .32), transparent 62%),
  radial-gradient(900px 260px at 100% 120%, rgba(255, 0, 0, .18), transparent 60%),
  linear-gradient(135deg, rgba(60, 10, 0, .55), rgba(0, 0, 0, .42));
  border-color: rgba(255, 200, 80, .28);
}

.prize--second {
  background: radial-gradient(900px 320px at 0% 0%, rgba(220, 220, 220, .16), transparent 62%),
  radial-gradient(900px 260px at 100% 120%, rgba(255, 0, 0, .16), transparent 60%),
  linear-gradient(135deg, rgba(30, 10, 10, .55), rgba(0, 0, 0, .42));
  border-color: rgba(255, 255, 255, .22);
}

.prize--third {
  background: radial-gradient(900px 320px at 0% 0%, rgba(255, 138, 42, .22), transparent 62%),
  radial-gradient(900px 260px at 100% 120%, rgba(255, 0, 0, .16), transparent 60%),
  linear-gradient(135deg, rgba(40, 10, 0, .55), rgba(0, 0, 0, .42));
  border-color: rgba(255, 138, 42, .22);
}

/* в топ-3 цифры и текст чуть “плотнее” */
.prize--top .value {
  font-size: 64px;
  letter-spacing: .2px;
}

.prize--top .unit {
  font-size: 20px;
  font-weight: 950;
  opacity: .95;
}

/* hover — “вкус” */
.prize:hover {
  transform: translateY(-1px);
  transition: transform .12s ease, filter .2s ease;
  filter: brightness(1.03);
}

/* чтобы не ломалось на узких экранах */
@media (max-width: 980px) {
  .prize--top {
    min-height: 130px;
  }

  .prize--top::after {
    font-size: 140px;
  }
}

/* === Prize grid layout like mock === */
.prizeGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 14px;
}

/* 4 yer: wide 2 columns, 5 yer: 1 column */
.prizeGrid .prize:nth-child(4) {
  grid-column: span 2;
}

/* 4 yer wide */
.prizeGrid .prize:nth-child(5) {
  grid-column: span 1;
}

/* 5 yer */

/* 6-10 and 11-50: each half row */
.prizeGrid .prize:nth-child(6) {
  grid-column: span 2;
}

/* 6-10 wide */
.prizeGrid .prize:nth-child(7) {
  grid-column: span 1;
}

/* 11-50 */

/* make wide cards consistent height */
.prize.wide {
  min-height: 118px;
}

/* --- Mobile: 1st place full width, the rest as 2-column grid --- */
@media (max-width: 560px) {
  .prizeGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* 1 yer full width */
  .prizeGrid .prize:nth-child(1) {
    grid-column: 1 / -1;
  }

  /* 2-3 in a row */
  .prizeGrid .prize:nth-child(2) {
    grid-column: span 1;
  }

  .prizeGrid .prize:nth-child(3) {
    grid-column: span 1;
  }

  /* остальные — 2 колонки */
  .prizeGrid .prize:nth-child(4),
  .prizeGrid .prize:nth-child(5),
  .prizeGrid .prize:nth-child(6),
  .prizeGrid .prize:nth-child(7) {
    grid-column: span 1;
  }

  /* чуть компактнее типографика, чтобы реально влезло */
  .prize--top .value {
    font-size: 56px;
  }

  .prize--top::after {
    font-size: 160px;
    opacity: .08;
  }

  .prize .value {
    font-size: 44px;
  }

  .prize .unit {
    font-size: 16px;
  }

  .prize {
    min-height: 96px;
  }
}

/* === Note bar: background fades at edges (no solid ends) === */
.note.note--bar {
  position: relative;
  padding: 14px 16px;
  border-radius: 18px;
  border: none;
  background: transparent; /* ✅ убираем подложку у самого блока */
  box-shadow: none;
  text-align: center;
  color: rgba(255, 255, 255, .85);
  overflow: hidden; /* чтобы фон/линии резались радиусом */
}

/* фон-подложка с затуханием к краям */
.note.note--bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  /* сама заливка */
  background: radial-gradient(900px 140px at 50% 50%, rgba(255, 160, 0, .10), transparent 70%),
  rgba(0, 0, 0, .22);

  mask-image: linear-gradient(90deg,
  transparent 0%,
  #000 14%,
  #000 86%,
  transparent 100%
  );

  pointer-events: none;
}

/* две линии (верх/низ) с градиентом и без боковых рамок */
.note.note--bar::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;

  background: linear-gradient(
    90deg,
    rgba(255, 160, 0, 0) 0%,
    rgba(255, 160, 0, .60) 18%,
    rgba(255, 210, 110, .85) 50%,
    rgba(255, 160, 0, .60) 82%,
    rgba(255, 160, 0, 0) 100%
  );

  /* нижняя линия через тень */
  box-shadow: 0 calc(100% - 2px) 0 0 rgba(0, 0, 0, 0); /* placeholder */
  filter: drop-shadow(0 0 10px rgba(255, 160, 0, .12));
  pointer-events: none;
}

/* нижняя линия отдельным слоем через background-size hack */
.note.note--bar {
  /* добавим нижнюю линию вторым фоном прямо на элемент,
     чтобы не плодить псевдоэлементы */
  background-image: linear-gradient(90deg,
  rgba(255, 160, 0, 0) 0%,
  rgba(255, 160, 0, .52) 18%,
  rgba(255, 210, 110, .75) 50%,
  rgba(255, 160, 0, .52) 82%,
  rgba(255, 160, 0, 0) 100%
  );
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: calc(100% - 36px) 2px; /* left/right по 18px */
}

/* делаем верхнюю линию (after) тоже с теми же отступами */
.note.note--bar::after {
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
}

@media (max-width: 560px) {
  .note.note--bar {
    padding: 12px 12px;
    font-size: 14px;
    background-size: calc(100% - 24px) 2px;
  }

  .note.note--bar::after {
    left: 12px;
    right: 12px;
  }
}


/* === Desktop: 1-3 in a row, 4+ as 2-column equal grid === */
.prizeGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* 4+ cards go into a 2-col layout by spanning pattern */
.prizeGrid .prize:nth-child(n+4) {
  grid-column: span 1; /* сброс */
}

/* Make row for 4+ become 2 columns: 4&5 take first row, 6&7 second row */
.prizeGrid .prize:nth-child(4) {
  grid-column: 1 / 3;
}

/* занимает 2 колонки */
.prizeGrid .prize:nth-child(5) {
  grid-column: 3 / 4;
}

/* 1 колонка */
/* ^ это старый паттерн — убираем и делаем ровно 2х2 */

/* ✅ Правильный вариант: перестраиваем сетку, начиная с 4-го элемента */
@media (min-width: 981px) {
  .prizeGrid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  /* 1-3: каждый по 2 колонки = 3 в ряд */
  .prizeGrid .prize:nth-child(1),
  .prizeGrid .prize:nth-child(2),
  .prizeGrid .prize:nth-child(3) {
    grid-column: span 2;
  }

  /* 4-7: ровно по 3 колонки = 2 в ряд (одинаковый размер) */
  .prizeGrid .prize:nth-child(4),
  .prizeGrid .prize:nth-child(5),
  .prizeGrid .prize:nth-child(6),
  .prizeGrid .prize:nth-child(7) {
    grid-column: span 3;
  }
}

/* одинаковая высота для всех (кроме топ-3, они могут быть чуть выше) */
.prize {
  min-height: 118px;
}

.prize--top {
  min-height: 138px;
}

/* === Mobile: 1st full width, others 2-col === */
@media (max-width: 560px) {
  .prizeGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .prizeGrid .prize:nth-child(1) {
    grid-column: 1 / -1;
  }
}

/* === Mobile grid hard reset (fix drifting) === */
@media (max-width: 560px) {
  .prizeGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* ✅ сбрасываем ВСЕ grid-column, которые пришли с desktop */
  .prizeGrid .prize {
    grid-column: auto !important;
    min-width: 0;
  }

  /* 1 yer — на всю ширину */
  .prizeGrid .prize:nth-child(1) {
    grid-column: 1 / -1 !important;
  }

  /* размеры, чтобы влезало и не резалось */
  .prize {
    min-height: 96px;
    padding: 14px 14px 12px;
    border-radius: 16px;
  }

  .prize .place {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .prize .value {
    font-size: 42px;
    line-height: 1;
  }

  .prize .unit {
    font-size: 14px;
    white-space: nowrap;
  }

  /* x5 badge меньше, чтобы не наезжал */
  .prize .tag {
    right: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 12px;
    font-size: 13px;
  }

  /* watermark у топ-3 чуть легче и меньше, чтобы не мешал */
  .prize--top {
    min-height: 110px;
  }

  .prize--top .value {
    font-size: 54px;
  }

  .prize--top::after {
    font-size: 150px;
    opacity: .07;
    right: 10px;
    bottom: -22px;
  }

  .prize .unit {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: baseline;
  }
}

/* Bonus tickets: make block more compact on mobile + crop image */
@media (max-width: 560px) {
  .card--bonus {
    overflow: hidden;
  }

  .cardIn--bonus {
    padding-bottom: 0;
  }

  .bonusArt {
    height: 160px;
    min-height: 160px;
    margin-top: 6px;
    overflow: hidden;
  }

  .bonusArt img {
    transform: translate(0, 38%) scale(1.25);
    object-position: center bottom;
  }
}

/* === REAL TOP-3 mobile: TOP-1 row (medal left), TOP-2/3 tiles === */
@media (max-width: 560px) {
  .realPrizes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* TOP-1 на всю ширину */
  .realPrizes .prizeMini:nth-child(1) {
    grid-column: 1 / -1;
  }

  /* базовый вид (для TOP-2/3) */
  .prizeMini {
    min-height: 108px;
    padding: 12px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    text-align: center;
  }

  /* TOP-2/3: медаль сверху + текст под ней */
  .realPrizes .prizeMini:nth-child(2) .prizeMiniMedal,
  .realPrizes .prizeMini:nth-child(3) .prizeMiniMedal {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
    margin: 4px 0 8px;
  }

  .realPrizes .prizeMini:nth-child(2) .prizeMiniText,
  .realPrizes .prizeMini:nth-child(3) .prizeMiniText {
    display: grid;
    gap: 6px;
  }

  .realPrizes .prizeMini:nth-child(2) .prizeMiniTop,
  .realPrizes .prizeMini:nth-child(3) .prizeMiniTop {
    font-size: 12px;
    letter-spacing: .6px;
    color: rgba(255, 255, 255, .55);
  }

  .realPrizes .prizeMini:nth-child(2) .prizeMiniAmt,
  .realPrizes .prizeMini:nth-child(3) .prizeMiniAmt {
    font-size: 22px;
    white-space: nowrap;
  }

  /* === TOP-1: row layout, medal left (bigger) + bigger text === */
  .realPrizes .prizeMini:nth-child(1) {
    padding: 12px 12px 12px 92px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .realPrizes .prizeMini:nth-child(1) .prizeMiniMedal {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    margin: 0;
  }

  .realPrizes .prizeMini:nth-child(1) .prizeMiniText {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .realPrizes .prizeMini:nth-child(1) .prizeMiniTop {
    font-size: 13px;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .60);
  }

  .realPrizes .prizeMini:nth-child(1) .prizeMiniAmt {
    font-size: 28px;
    font-weight: 950;
    white-space: nowrap;
  }
}

/* === Mobile: TOP-1 centered group (medal + text) === */
@media (max-width: 560px) {
  .realPrizes .prizeMini:nth-child(1) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
    padding: 12px;
  }

  /* медаль в потоке, не absolute */
  .realPrizes .prizeMini:nth-child(1) .prizeMiniMedal {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
  }

  /* текстовый блок */
  .realPrizes .prizeMini:nth-child(1) .prizeMiniText {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
  }

  .realPrizes .prizeMini:nth-child(1) .prizeMiniTop {
    font-size: 13px;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .60);
  }

  .realPrizes .prizeMini:nth-child(1) .prizeMiniAmt {
    font-size: 30px;
    font-weight: 950;
    white-space: nowrap;
  }
}

/* === Note bar: top/bottom lines одинаковые === */
.note.note--bar {
  position: relative;
  border: none;
  overflow: hidden;
  background: transparent; /* подложка уходит в ::bg ниже */
}

/* фон-подложка (как раньше), можно оставить твой mask */
.note.note--bar ._noop {
}

/* просто чтобы блок был заметен */

/* ✅ общий градиент для обеих линий */
.note.note--bar {
  --lineGrad: linear-gradient(
    90deg,
    rgba(255, 160, 0, 0) 0%,
    rgba(255, 160, 0, .58) 18%,
    rgba(255, 210, 110, .82) 50%,
    rgba(255, 160, 0, .58) 82%,
    rgba(255, 160, 0, 0) 100%
  );
  --lineGlow: drop-shadow(0 0 10px rgba(255, 160, 0, .10));
}

/* верхняя линия */
.note.note--bar::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--lineGrad);
  filter: var(--lineGlow);
  pointer-events: none;
  z-index: 2;
}

/* нижняя линия — ТАКАЯ ЖЕ */
.note.note--bar::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--lineGrad);
  filter: var(--lineGlow);
  pointer-events: none;
  z-index: 2;
}

/* === Note bar: even top/bottom lines + fading background edges (no mask) === */
.note.note--bar {
  position: relative;
  border: none;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  text-align: center;
  color: rgba(255, 255, 255, .85);
  padding: 14px 16px;
}

/* Подложка, которая ЗАТУХАЕТ к краям */
.note.note--bar ._noop {
}

/* nothing */

.note.note--bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  /* базовая тёмная подложка */
  background: rgba(0, 0, 0, .22);
  pointer-events: none;
  z-index: 0;
}

/* золотистая подмешка по центру, с затуханием слева/справа */
.note.note--bar::marker {
}

/* nothing */

.note.note--bar::selection {
}

/* nothing */

/* второй слой подмешки через inner overlay */
.note.note--bar {
  /* ничего */
}

.note.note--bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  /* центральное свечение + затухание по краям */
  background: radial-gradient(900px 140px at 50% 50%, rgba(255, 160, 0, .14), transparent 70%),
  linear-gradient(90deg,
    rgba(255, 160, 0, 0) 0%,
    rgba(255, 160, 0, .12) 22%,
    rgba(255, 160, 0, .08) 50%,
    rgba(255, 160, 0, .12) 78%,
    rgba(255, 160, 0, 0) 100%
  );

  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

/* ОДИНАКОВЫЕ линии — отдельными псевдоэлементами-линиями */
.note.note--bar {
  --lineGrad: linear-gradient(
    90deg,
    rgba(255, 160, 0, 0) 0%,
    rgba(255, 160, 0, .58) 18%,
    rgba(255, 210, 110, .82) 50%,
    rgba(255, 160, 0, .58) 82%,
    rgba(255, 160, 0, 0) 100%
  );
}

.note.note--bar {
  /* создаём место для линий поверх ::after */
}

.note.note--bar > * {
  position: relative;
  z-index: 2;
}

/* линии делаем отдельными “псевдо-полосками” через box-shadow не выйдет,
   поэтому используем дополнительные псевдоэлементы через background-image на самом блоке */
.note.note--bar {
  background-image: var(--lineGrad),
  var(--lineGrad);
  background-repeat: no-repeat, no-repeat;
  background-size: calc(100% - 36px) 2px, calc(100% - 36px) 2px;
  background-position: 18px 0, 18px 100%;
}

/* mobile */
@media (max-width: 560px) {
  .note.note--bar {
    padding: 12px 12px;
    background-size: calc(100% - 24px) 2px, calc(100% - 24px) 2px;
    background-position: 12px 0, 12px 100%;
  }
}

/* === Auth tabs (registration/login) === */
.authTabs {
  display: flex;
  gap: 22px;
  margin: 18px 0 18px;
  align-items: flex-end;
  justify-content: center;
}

.authTab {
  position: relative;
  background: transparent;
  border: 0;
  padding: 10px 2px 12px;
  cursor: pointer;

  color: rgba(255, 255, 255, .65);
  font-weight: 950;
  font-size: 18px;
  letter-spacing: .2px;
}

.authTab.is-active {
  color: #fff;
}

/* orange underline with gradient (in your style) */
.authTab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 160, 0, 0) 0%,
    rgba(255, 160, 0, .60) 18%,
    rgba(255, 210, 110, .82) 50%,
    rgba(255, 160, 0, .60) 82%,
    rgba(255, 160, 0, 0) 100%
  );
  filter: drop-shadow(0 0 10px rgba(255, 160, 0, .10));
}

/* panels */
.authPanel {
  display: grid;
  gap: 14px;
}

.authPanel[hidden] {
  display: none;
}

/* 2-col small grid */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 560px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

/* Buttons smaller (less “fat”) */
.btn.btnCompact {
  height: 50px;
  padding: 12px 22px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
}

/* if you have a global .btn height override, ensure compact wins */
.btnCompact {
  min-width: 0;
}

/* === Modal === */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

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

.modalBox {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  margin: 80px auto;
  padding: 54px 32px 34px;
  border-radius: 18px;

  background: rgba(10, 10, 12, .92);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);

  text-align: center;
}

.modalClose {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: transparent;
  color: rgba(255, 255, 255, .85);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modalTitle {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 950;
  letter-spacing: .5px;
  color: #ffb000;
}

.modalText {
  margin: 0 auto 26px;
  max-width: 44ch;
  color: rgba(255, 255, 255, .78);
  font-size: 20px;
  line-height: 1.45;
}

.modalAvatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  margin: 0 auto 14px;

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

  background: #1fb56a;
  color: #fff;
  font-weight: 950;
  font-size: 28px;

  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  border: 3px solid rgba(255, 255, 255, .85);
}

.modalBtn {
  width: min(520px, 100%);
  height: 56px;
  font-weight: 950;
  letter-spacing: .4px;
}

@media (max-width: 560px) {
  .modalBox {
    margin: 40px auto;
    padding: 40px 18px 22px;
  }

  .modalText {
    font-size: 16px;
  }

  .modalBtn {
    height: 54px;
  }
}

/* 1) Space between form card and Telegram block */
.regWrap {
  row-gap: 18px; /* если у тебя regWrap = grid/flex */
}

.regWrap .telegram {
  margin-top: 16px; /* на всякий случай, если не grid */
}

@media (max-width: 560px) {
  .regWrap {
    row-gap: 14px;
  }

  .regWrap .telegram {
    margin-top: 14px;
  }
}

.formHint {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, .75);
}

.formLink {
  color: #ffb000;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.formLink:hover {
  filter: brightness(1.08);
}

/* desktop: keep in one line */
.formHint {
  white-space: nowrap;
}

/* mobile: link goes to new line */
@media (max-width: 560px) {
  .formHint {
    white-space: normal;
  }

  .formHint .formLink {
    display: block;
    margin-top: 4px; /* можно убрать/подкрутить */
  }
}

/* ===== Campaign info bar (NO hard edges) ===== */
.helpRow.helpRow--bar{
  /* layout */
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  align-items: center;

  /* spacing */
  padding: 14px 18px;
  margin: 18px 0;

  /* kill any inherited “edges” */
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  /* text */
  color: rgba(255,255,255,.88);
  font-size: 12px;
  line-height: 1.35;

  /* IMPORTANT: background + lines fade to 0 at sides */
  background:
    /* top line (fades out to transparent at sides) */
    linear-gradient(90deg,
      rgba(255,178,0,0) 0%,
      rgba(255,178,0,.45) 12%,
      rgba(255,178,0,.45) 88%,
      rgba(255,178,0,0) 100%) top / 100% 2px no-repeat,

    /* bottom line */
    linear-gradient(90deg,
      rgba(255,178,0,0) 0%,
      rgba(255,178,0,.45) 12%,
      rgba(255,178,0,.45) 88%,
      rgba(255,178,0,0) 100%) bottom / 100% 2px no-repeat,

    /* fill (also fades out to transparent at sides!) */
    linear-gradient(90deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.32) 14%,
      rgba(0,0,0,.32) 86%,
      rgba(0,0,0,0) 100%);
}

/* stronger bold bits */
.helpRow.helpRow--bar b{
  color: rgba(255,255,255,.95);
  font-weight: 900;
}

/* sponsors block + links */
.helpRow.helpRow--bar .helpSponsors{
  justify-self: end;
  white-space: nowrap;
}

.helpRow.helpRow--bar .tgLink{
  color: rgba(255,255,255,.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 900;
  margin-left: 10px;
}

.helpRow.helpRow--bar .tgLink:hover{
  text-decoration-thickness: 2px;
}

/* ===== Mobile: 3 lines, centered ===== */
@media (max-width: 560px){
  .helpRow.helpRow--bar{
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    justify-items: center;
    padding: 14px 14px;
  }

  .helpRow.helpRow--bar .helpSponsors{
    justify-self: center;
    display: grid;
    gap: 6px;
    white-space: normal;
  }

  .helpRow.helpRow--bar .helpSponsors b{
    display: block;
  }

  .helpRow.helpRow--bar .tgLink{
    margin-left: 0;
    display: block;
  }
}

/* ===== bar alignment (desktop) ===== */
.helpRow.helpRow--bar{
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr; /* центр чуть шире */
  align-items: center;
  column-gap: 28px;
}

.helpRow.helpRow--bar .helpAksiya{
  justify-self: start;
  text-align: left;
  white-space: nowrap;
}

.helpRow.helpRow--bar .helpResults{
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

.helpRow.helpRow--bar .helpSponsors{
  justify-self: end;
  text-align: right;
  white-space: nowrap; /* чтобы не ломалось на десктопе */
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.helpRow.helpRow--bar .helpSponsors b{
  font-weight: 900;
  margin-right: 4px;
}

/* links */
.helpRow.helpRow--bar .tgLink{
  color: rgba(255,255,255,.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 900;
}

/* ===== mobile ===== */
@media (max-width: 560px){
  .helpRow.helpRow--bar{
    grid-template-columns: 1fr;
    row-gap: 10px;
    text-align: center;
    justify-items: center;
  }

  .helpRow.helpRow--bar .helpAksiya,
  .helpRow.helpRow--bar .helpResults{
    white-space: normal;
  }

  /* ✅ sponsors in ONE line with label */
  .helpRow.helpRow--bar .helpSponsors{
    justify-self: center;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .helpRow.helpRow--bar .helpSponsors b{
    margin-right: 6px;
  }
}

/* ===== warning info bar (red lines) ===== */
.helpRow.helpRow--warn{
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  margin: 14px 0 0;

  color: rgba(255,255,255,.88);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;

  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  background:
    /* top red line (fades at edges) */
    linear-gradient(90deg,
      rgba(255,60,60,0) 0%,
      rgba(255,60,60,.55) 12%,
      rgba(255,60,60,.55) 88%,
      rgba(255,60,60,0) 100%) top / 100% 2px no-repeat,

    /* bottom red line */
    linear-gradient(90deg,
      rgba(255,60,60,0) 0%,
      rgba(255,60,60,.55) 12%,
      rgba(255,60,60,.55) 88%,
      rgba(255,60,60,0) 100%) bottom / 100% 2px no-repeat,

    /* same soft fill with fading edges */
    linear-gradient(90deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.32) 14%,
      rgba(0,0,0,.32) 86%,
      rgba(0,0,0,0) 100%);
}

/* mobile spacing */
@media (max-width: 560px){
  .helpRow.helpRow--warn{
    text-align: center;
    padding: 14px 14px;
  }
}
