/* ===============================
   GoRanked — Partners (Affiliate)
   Brand-first, premium, glass UI
   =============================== */

:root{
  /* Graphite surfaces */
  --gr-bg: #0c0f14;
  --gr-bg-soft: #11151c;
  --gr-card: #121722;
  --gr-border: rgba(255,255,255,0.08);

  /* Brand colors (per brandbook) */
  --gr-text: #e7ecf3;
  --gr-text-dim: #aab2c0;
  --gr-primary: #FF8036;   /* Flame Orange */
  --gr-primary-2: #FFB24D; /* warm blend to gold */
  --gr-gold: #C9A227;      /* Champion Gold */
  --gr-accent: #23C199;    /* subtle accent if needed */

  --gr-shadow: 0 20px 50px rgba(0,0,0,0.45);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --grad-primary: linear-gradient(135deg, var(--gr-primary) 0%, var(--gr-primary-2) 100%);
}

/* Typography */
@font-face{
  font-family: 'Gilroy';
  src: local('Gilroy'); /* подключите свой файл, если есть */
  font-weight: 700;
  font-display: swap;
}
html,body{ background: var(--gr-bg); color: var(--gr-text); }
.gr-aff{ font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif; }
.gr-aff .title, .gr-aff h1, .gr-aff h2, .gr-aff h3 { font-family: "Gilroy","Open Sans",system-ui; }

/* Utilities */
.container{ max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.i{ width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
.muted{ color: var(--gr-text-dim); }
.accent{ color: var(--gr-primary-2); }

/* Buttons */
.btn-primary{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .2px;
  background: var(--grad-primary);
  box-shadow: 0 16px 40px rgba(255,128,54,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-primary .i{ filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 20px 60px rgba(255,128,54,.45), inset 0 0 0 1px rgba(255,255,255,.08); }
.btn-primary:active{ transform: translateY(0); filter: brightness(.95); }
.btn-primary.btn-lg{ padding: 18px 26px; border-radius: 18px; font-size: 1.05rem; }
.btn-primary.btn-wide{ width: 100%; justify-content: center; }

/* HERO */
.aff-hero{
  position: relative; padding: 84px 0 36px;
  background:
    radial-gradient(1200px 300px at 50% -50px, rgba(255,128,54,.25), transparent 60%),
    linear-gradient(180deg, rgba(255,178,77,.08), rgba(12,15,20,0) 30%),
    var(--gr-bg);
  overflow: hidden;
}
.aff-hero:before{
  content:""; position:absolute; inset:-1px;
  background: radial-gradient(800px 300px at 90% 10%, rgba(255,178,77,.10), transparent 60%);
  pointer-events:none;
}
.hero-wrap{ display:grid; grid-template-columns: 1.18fr .82fr; gap: 36px; align-items: center; }
.hero-text .eyebrow{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px;
  border:1px solid var(--gr-border); border-radius:999px; font-size:.9rem; color:var(--gr-text-dim);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.hero-text .title{ font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin: 18px 0 10px; letter-spacing:.2px; }
.hero-text .subtitle{ font-size: 1.15rem; color: var(--gr-text-dim); }
.hero-bullets{ margin: 22px 0 26px; padding:0; list-style:none; }
.hero-bullets li{ display:flex; align-items:center; gap:10px; color:#dfe6f1; margin-bottom:10px; }
.hero-cta{ display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.cta-note{ color:var(--gr-text-dim); }

.hero-stats{
  display:grid; gap:14px;
}
.stat-card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--gr-border);
  padding: 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--gr-shadow);
  backdrop-filter: blur(6px);
}
.stat-num{ font-size: 36px; font-weight: 900; background: var(--grad-primary); -webkit-background-clip:text; background-clip:text; color: transparent; }
.stat-label{ color: var(--gr-text-dim); font-size:.95rem; }

/* Sections */
.section-head{ margin-bottom: 22px; }
.section-head h2{
  display:flex; align-items:center; gap:10px;
  font-size: clamp(22px, 3.2vw, 30px); font-weight: 900;
}
.section-head .i{ width:22px; height:22px; color: var(--gr-primary-2); }
.section-head .hint{ color: var(--gr-text-dim); margin-top: 6px; }

/* Steps */
.aff-steps{ padding: 40px 0; }
.steps-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.step{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--gr-border);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--gr-shadow);
}
.step .badge{
  display:inline-flex; width:34px; height:34px; align-items:center; justify-content:center;
  border-radius: 50%; font-weight:800; color:#fff; background: var(--grad-primary);
  box-shadow: 0 6px 20px rgba(255,128,54,.35);
}
.step h3{ margin: 14px 0 6px; font-size: 1.05rem; }
.step p{ color: var(--gr-text-dim); margin: 0; }

/* Benefits */
.aff-benefits{ padding: 18px 0 10px; }
.cards-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card{
  position:relative;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--gr-border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--gr-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-2px); border-color: rgba(255,178,77,.3); box-shadow: 0 24px 70px rgba(255,128,54,.18); }
.card-ico{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center;
  color:#fff; background: var(--grad-primary); box-shadow: 0 6px 18px rgba(255,128,54,.35); }
.card-ico .i{ width:20px; height:20px; }
.card h3{ margin: 12px 0 6px; font-size: 1.1rem; font-weight:800; }
.card p{ color: var(--gr-text-dim); margin: 0; }

/* Placements */
.aff-placements{ padding: 22px 0 10px; }
.chips{ display:flex; flex-wrap:wrap; gap: 10px; list-style:none; padding:0; margin:10px 0 0; }
.chips li{
  padding:10px 14px; border-radius: 999px; font-weight:700; color:#fff;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--gr-border); backdrop-filter: blur(4px);
}

/* Calc */
.aff-calc{ padding: 26px 0; }
.calc-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc-card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--gr-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--gr-shadow);
}
.f-label{ display:block; font-weight:700; margin: 8px 0 6px; }
.f-input{
  width: 100%; background: #0f131a; color: var(--gr-text);
  border: 1px solid var(--gr-border); border-radius: 12px; padding: 12px 12px; outline: none;
}
.f-input:focus{ border-color: rgba(255,178,77,.35); }
.f-range{ width:100%; margin-top: 6px; }
.range-val{ color: var(--gr-text-dim); margin-bottom: 10px; }

.calc-card.result .res-wrap{ display:flex; flex-direction:column; gap: 12px; }
.res-line{ display:flex; align-items:center; justify-content:space-between; gap: 16px; border-bottom: 1px dashed var(--gr-border); padding-bottom: 10px; }
.res-line span{ color: var(--gr-text-dim); }
.res-line strong{ font-size: 1.35rem; }
.res-line.final strong{
  font-size: 1.6rem; background: var(--grad-primary);
  -webkit-background-clip:text; background-clip:text; color: transparent;
}

/* Trust */
.aff-trust{ padding: 16px 0; }
.trust-card{
  display:flex; align-items:center; gap: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--gr-border); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--gr-shadow);
}
.trust-icon .i{ width:26px; height:26px; color: var(--gr-gold); }
.trust-text h3{ margin:0 0 4px; font-weight:800; }
.trust-text p{ margin:0; color: var(--gr-text-dim); }

/* Final CTA + banner */
.aff-cta{ padding: 28px 0 50px; }
.cta-wrap{
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
  background: linear-gradient(135deg, rgba(255,128,54,.18), rgba(255,178,77,.08));
  border: 1px solid rgba(255,178,77,.25);
  border-radius: var(--radius-xl); padding: 20px;
  box-shadow: var(--gr-shadow);
}
.cta-text h2{ margin:0 0 6px; font-weight:900; }
.cta-text p{ color: var(--gr-text-dim); margin:0; }
.banner{ margin-top: 18px; }
.banner img{ width:100%; height:auto; border-radius: var(--radius-xl); border:1px solid var(--gr-border); box-shadow: var(--gr-shadow); }

/* Responsive */
@media (max-width: 1024px){
  .hero-wrap{ grid-template-columns: 1fr; }
  .hero-stats{ grid-template-columns: repeat(3,1fr); }
  .steps-grid{ grid-template-columns: repeat(2,1fr); }
  .cards-grid{ grid-template-columns: repeat(2,1fr); }
  .calc-grid{ grid-template-columns: 1fr; }
  .cta-wrap{ flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px){
  .hero-stats{ grid-template-columns: 1fr; }
  .steps-grid, .cards-grid{ grid-template-columns: 1fr; }
  .btn-primary{ width:100%; justify-content:center; }
}
