/* =========================================================
   rebatefund.css — rebatefund.html
   Подключать ПОСЛЕ base.css
   Только стили страницы rebatefund
   ========================================================= */

body.rebateFundPage .section{
  padding:56px 0;
}

/* ---------- HERO ---------- */
body.rebateFundPage .rfHero{
  padding-top:28px;
}

body.rebateFundPage .rfHeroCard{
  overflow:hidden;
}

body.rebateFundPage .rfHeroGrid{
  padding:26px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:18px;
  align-items:start;
}

body.rebateFundPage .rfTitle{
  margin:0;
}

body.rebateFundPage .rfPoint{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(10,46,116,.14);
  background:rgba(10,46,116,.04);
}

body.rebateFundPage .rfExperimentStatus{
  display:grid;
  gap:12px;
  margin-top:18px;
}

body.rebateFundPage .rfExperimentStatus > div{
  display:grid;
  grid-template-columns:minmax(130px, .38fr) minmax(0, 1fr);
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border:1px solid rgba(10,46,116,.2);
  border-left:4px solid var(--brand-blue);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 20px rgba(10,46,116,.08);
}

body.rebateFundPage .rfExperimentStatus b{
  display:block;
  color:var(--brand-blue);
  font-size:17px;
  line-height:1.25;
}

body.rebateFundPage .rfExperimentStatus span{
  display:block;
  color:var(--text-muted);
  font-size:15.5px;
  line-height:1.45;
}

body.rebateFundPage .rfExperimentActions{
  margin-top:16px;
}

body.rebateFundPage .rfHeroVisual{
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

body.rebateFundPage .rfVisualCard{
  padding:12px;
  border-radius:18px;
  border:1px solid var(--border-light);
  background:rgba(255,255,255,.9);
  overflow:hidden;
  width:100%;
}

body.rebateFundPage .rfHeroZoom{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:none;
  cursor:zoom-in;
}

body.rebateFundPage .rfHeroZoom img{
  max-width:420px;
  width:100%;
  height:auto;
  display:block;
  margin:0 auto;
  border-radius:14px;
  border:1px solid var(--border-light);
  background:rgba(255,255,255,.95);
}

/* ---------- TWO PARTS ---------- */
body.rebateFundPage .rfTwoGrid{
  margin-top:18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:start;
}

body.rebateFundPage .rfPart h3{
  margin:0 0 10px;
  font-size:20px;
  font-weight:600;
}

body.rebateFundPage .rfLead{
  margin:0 0 12px;
  font-size:16px;
  line-height:1.65;
  color:rgba(15,23,42,.90);
}

body.rebateFundPage .rfExperimentLead{
  max-width:880px;
  margin:10px 0 22px;
  font-size:17px;
  line-height:1.65;
}

body.rebateFundPage .rfBlock{
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(15,23,42,.02);
  border:1px solid rgba(15,23,42,.08);
}

body.rebateFundPage .rfBlockTitle{
  font-weight:700;
  font-size:12.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(15,23,42,.70);
  margin-bottom:8px;
}

body.rebateFundPage .rfBlock p{
  margin:0;
  font-size:15.5px;
  line-height:1.65;
  color:rgba(15,23,42,.88);
}

/* ---------- LISTS ---------- */
body.rebateFundPage .rfList{
  margin:10px 0 0;
  padding-left:18px;
}

body.rebateFundPage .rfList li{
  margin:8px 0;
  line-height:1.55;
}

body.rebateFundPage .rfBullets{
  margin:0;
  padding-left:18px;
  font-size:15.5px;
  line-height:1.65;
  color:rgba(15,23,42,.90);
}

body.rebateFundPage .rfBullets li{
  margin:6px 0;
}

body.rebateFundPage .list{
  margin:10px 0 0;
  padding-left:18px;
}

body.rebateFundPage .list li{
  margin:8px 0;
  line-height:1.45;
  color:var(--text-muted);
}

/* ---------- HOW / STEPS CARDS ---------- */
body.rebateFundPage .rfStepsGrid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}

body.rebateFundPage .rfStep{
  position:relative;
  overflow:hidden;
}

body.rebateFundPage .stepNum{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:14px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--brand-blue);
  background:rgba(10,46,116,.06);
  border:1px solid rgba(10,46,116,.12);
  margin-bottom:10px;
}

/* ---------- REWARDS ---------- */
body.rebateFundPage .rfRewards{
  margin-top:14px;
}

body.rebateFundPage .rfRewardsHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

body.rebateFundPage .rfRewardsGrid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

body.rebateFundPage .rfReward{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border-light);
  background:rgba(255,255,255,.85);
}

body.rebateFundPage .rfReward b{
  display:block;
  margin-bottom:4px;
  font-weight:700;
}

body.rebateFundPage .rfReward span{
  display:block;
  font-size:13px;
  line-height:1.35;
}

/* ---------- RULES ---------- */
body.rebateFundPage .rfRulesGrid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}

body.rebateFundPage .ruleCard h3{
  margin:0 0 8px;
}

/* ---------- PIPELINE ---------- */
body.rebateFundPage .rfPipeline{
  margin-top:14px;
  overflow:hidden;
}

body.rebateFundPage .rfPipelineRow{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

body.rebateFundPage .rfPipe{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(10,46,116,.14);
  background:rgba(10,46,116,.04);
  font-weight:700;
}

body.rebateFundPage .rfArrow{
  color:var(--text-muted);
}

/* ---------- IDEAS ---------- */
body.rebateFundPage .ideasGrid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}

body.rebateFundPage .ideaCard{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:hidden;
}

body.rebateFundPage .ideaTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

body.rebateFundPage .ideaTag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--brand-blue);
  background:rgba(10,46,116,.06);
  border:1px solid rgba(10,46,116,.12);
}

body.rebateFundPage .ideaStatus{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid var(--border-light);
  background:rgba(255,255,255,.9);
  color:rgba(31,41,55,.88);
}

body.rebateFundPage .statusLive{
  border-color:rgba(16,185,129,.25);
  background:rgba(16,185,129,.06);
}

body.rebateFundPage .statusSoon{
  border-color:rgba(245,158,11,.25);
  background:rgba(245,158,11,.06);
}

body.rebateFundPage .statusLab{
  border-color:rgba(37,99,235,.25);
  background:rgba(37,99,235,.06);
}

body.rebateFundPage .ideaTitle{
  margin:0;
  font-size:16px;
  line-height:1.25;
  font-weight:600;
}

body.rebateFundPage .ideaDesc{
  margin:0;
}

body.rebateFundPage .ideaMeta{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border-light);
  background:rgba(255,255,255,.85);
}

body.rebateFundPage .ideaMeta b{
  display:block;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(107,114,128,1);
  font-weight:700;
}

body.rebateFundPage .ideaMeta span{
  display:block;
  margin-top:4px;
  font-weight:700;
  color:rgba(31,41,55,.92);
}

body.rebateFundPage .ideaActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:auto;
}

body.rebateFundPage .profit{
  font-weight:700;
  color:#16a34a;
}

body.rebateFundPage .loss{
  font-weight:700;
  color:#dc2626;
}

/* ---------- ACCORDION ---------- */
body.rebateFundPage .rfAcc{
  margin-top:12px;
  border:1px solid var(--border-light);
  border-radius:16px;
  background:rgba(255,255,255,.9);
  overflow:hidden;
}

body.rebateFundPage .rfAcc > summary{
  list-style:none;
  cursor:pointer;
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-weight:700;
}

body.rebateFundPage .rfAcc > summary::-webkit-details-marker{
  display:none;
}

body.rebateFundPage .rfAccBody{
  padding:0 16px 14px 16px;
}

/* ---------- PARTNERS ---------- */
body.rebateFundPage .partnersGrid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}

/* ---------- JOIN ---------- */
body.rebateFundPage .joinCard{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

body.rebateFundPage .joinActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
  body.rebateFundPage .rfHeroGrid{ grid-template-columns:1fr; }
  body.rebateFundPage .rfTwoGrid{ grid-template-columns:1fr; }
  body.rebateFundPage .rfStepsGrid{ grid-template-columns:1fr; }
  body.rebateFundPage .rfRewardsGrid{ grid-template-columns:1fr; }
  body.rebateFundPage .rfRulesGrid{ grid-template-columns:1fr; }
  body.rebateFundPage .ideasGrid{ grid-template-columns:1fr; }
  body.rebateFundPage .partnersGrid{ grid-template-columns:1fr; }

  body.rebateFundPage .joinCard{
    flex-direction:column;
    align-items:flex-start;
  }

  body.rebateFundPage .joinActions{
    justify-content:flex-start;
  }
}

@media (max-width: 560px){
  body.rebateFundPage .section{
    padding:40px 0;
  }

  body.rebateFundPage .rfHeroGrid{
    padding:18px;
  }
}

@media (max-width: 430px){
  body.rebateFundPage .rfExperimentStatus > div{
    grid-template-columns:1fr;
    gap:5px;
  }

  body.rebateFundPage .rfExperimentActions .btn{
    width:100%;
  }
}
