/* ============================================================================
   BizFlow — сторінка /pravyla-referalnoyi-prohramy/ (REFERRAL-PAGE-WOW-1, 23.11.2026).
   Лише ця сторінка: усі правила під main.refw (префікс .refw-*); спільні класи й параметри сайту НЕ перевизначаються глобально.
   • Кольори — токени сайту (--bf-*) і скляного шару (--glass-*, з запасними значеннями, якщо шар вимкнено); літерали — лише в §1 (токени сторінки).
   • Підключає сама сторінка в <head> (після перетворення v2), тож site-v2/site-wow з критичним CSS вантажаться ПІЗНІШЕ — правила тут
     мають специфічність «.refw .x» (0,2,0), щоб вигравати в однокласових правилах site-v2 незалежно від порядку.
   • Анімації: поява один раз (IntersectionObserver у site-refw.js, клас .refw-js лише коли JS працює), монети — лише поки герой видно;
     prefers-reduced-motion — усе статично, текст і числа видно одразу.
   ============================================================================ */

/* ── §1  ТОКЕНИ СТОРІНКИ ── */
.refw {
  --refw-card: var(--glass-bg, var(--bf-card));
  --refw-card-strong: var(--glass-bg-strong, var(--bf-card));
  --refw-inner: var(--glass-inner, var(--bf-surface-2));
  --refw-blur: var(--glass-blur, 0px);
  --refw-sat: var(--glass-sat, 1);
  --refw-hi: var(--glass-hi, var(--bf-shadow-edge));
  --refw-drop: var(--glass-drop, var(--bf-shadow-md));
  --refw-drop-strong: var(--glass-drop-strong, var(--bf-shadow-lg));
  --refw-gloss: var(--glass-gloss, none);
  --refw-rim: var(--glass-rim, var(--bf-border));
  --refw-gap: var(--sw-gap, 20px);
  --refw-head: var(--sw-head, 28px);
  --refw-gold: #F7C04A; --refw-gold-2: #E3962A; --refw-gold-ink: #8A5300; --refw-gold-hi: #FFE7A8;   /* монети */
  --refw-acc-grad: linear-gradient(135deg, var(--bf-accent-strong) 0%, color-mix(in oklab, var(--bf-accent) 70%, #1A1060) 55%, color-mix(in oklab, var(--bf-accent-2) 62%, #0B1A55) 100%);
  --refw-y: var(--bf-st-success-fg); --refw-y-bg: var(--bf-st-success-bg);
  --refw-n: var(--bf-st-danger-fg);  --refw-n-bg: var(--bf-st-danger-bg);
  --refw-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ── §2  БАЗА СЕКЦІЙ ── */
.refw .refw-sec { padding-block: clamp(36px, 5.2vw, 72px); }
.refw .refw-sec--tight { padding-block: 0 8px; }
.refw .refw-sec--last { padding-bottom: clamp(48px, 7vw, 96px); }
.refw .refw-head { text-align: center; max-width: 820px; margin: 0 auto var(--refw-head); display: grid; justify-items: center; gap: 10px; }
.refw .refw-head h2 { font-size: var(--bf-site-h2); margin: 0; }
.refw .refw-head p { margin: 0; color: var(--bf-text-muted); font-size: var(--bf-site-lead); max-width: 640px; }
.refw .refw-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.refw .refw-glass {
  background: var(--refw-card);
  box-shadow: var(--refw-hi), var(--refw-drop);
}
.refw :is(.refw-tl__s, .refw-tier, .refw-note, .refw-friend, .refw-calc, .refw-yn__col, .refw-lim__t, .refw-info__c, .refw-docs__a, .refw-mock__win, .refw-start, .refw-preview) {   /* лише одинарні класи в :is() — інакше специфічність зросте й перекриє акцентні картки нижче */
  background: var(--refw-gloss), var(--refw-card);
  box-shadow: var(--refw-hi), var(--refw-drop);
  border-radius: var(--bf-radius-2xl);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 769px) {
    .refw :is(.refw-tl__s, .refw-tier, .refw-calc, .refw-yn__col, .refw-lim__t, .refw-mock__win, .refw-card3d) {
      -webkit-backdrop-filter: blur(var(--refw-blur)) saturate(var(--refw-sat));
      backdrop-filter: blur(var(--refw-blur)) saturate(var(--refw-sat));
    }
  }
}
.refw a:not([class]) { color: var(--bf-accent-ink); text-decoration: none; font-weight: 600; }
.refw a:not([class]):hover { color: var(--bf-accent); }
.refw .refw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.refw .refw-actions--left { justify-content: flex-start; }

/* ── §3  ГЕРОЙ ── */
.refw .refw-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; justify-items: stretch; text-align: center; overflow-x: clip; }
.refw .refw-hero__txt { display: grid; justify-items: center; min-width: 0; }
.refw .refw-hero__txt > * { max-width: 100%; }
.refw .refw-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.refw .refw-hero h1 { margin-top: 14px; }
.refw .refw-hero .section-lead { margin-top: 16px; max-width: 600px; }
.refw .refw-hero .refw-actions { justify-content: center; }
.refw .refw-hero__chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.refw .refw-hero__chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: var(--bf-radius-full); background: var(--refw-card); box-shadow: var(--refw-hi), 0 0 0 1px var(--bf-hairline); color: var(--bf-text-2); font-size: 14.5px; font-weight: 550; }
.refw .refw-hero__chips .refw-ico { color: var(--bf-accent-ink); }
@media (min-width: 960px) {
  .refw .refw-hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); text-align: left; }
  .refw .refw-hero__txt { justify-items: start; }
  .refw .refw-hero .refw-actions, .refw .refw-hero__chips { justify-content: flex-start; }
  .refw .refw-hero .section-lead { margin-inline: 0; }
}

/* візуал: скляна 3D-картка, світіння, монети, Бізик */
.refw .refw-hero__vis { position: relative; min-width: 0; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 1 / 0.86; perspective: 1000px; isolation: isolate; }
.refw .refw-hero__glow { position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--bf-accent) 46%, transparent), color-mix(in srgb, var(--bf-accent-2) 18%, transparent) 60%, transparent); filter: blur(28px); z-index: -2; transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -14px), 0); }
.refw .refw-hero__ring { position: absolute; inset: 12% 10%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--bf-accent) 34%, transparent); z-index: -1; }
.refw .refw-card3d {
  position: absolute; z-index: 2; left: 52%; top: 44%; width: min(78%, 360px); aspect-ratio: 1.58 / 1; translate: -50% -50%;
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(16px, 3.2vw, 24px); border-radius: 22px; overflow: hidden;
  background: var(--refw-gloss), var(--refw-card-strong);
  box-shadow: var(--refw-hi), var(--refw-drop-strong), 0 0 0 1px var(--refw-rim);
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); transform-style: preserve-3d; transition: transform .5s var(--refw-ease);
  color: var(--bf-text); text-align: left;
}
.refw .refw-card3d__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.refw .refw-card3d__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.refw .refw-card3d__brand i { width: 22px; height: 22px; border-radius: 7px; background: var(--refw-acc-grad); box-shadow: 0 4px 12px -4px var(--bf-accent-glow); }
.refw .refw-card3d__pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--bf-radius-full); background: var(--bf-accent-soft); color: var(--bf-accent-ink); font-size: 12.5px; font-weight: 650; }
.refw .refw-card3d__sum { margin: 0; display: flex; align-items: baseline; gap: 4px; font-size: clamp(40px, 6.4vw, 60px); line-height: 1; font-weight: 750; letter-spacing: -0.03em; color: var(--bf-accent-ink); }
.refw .refw-card3d__sum b { font-weight: 750; font-variant-numeric: tabular-nums; min-width: 2.6ch; }
.refw .refw-card3d__sum small { font-size: 0.55em; font-weight: 700; }
.refw .refw-card3d__cap { margin: -6px 0 0; color: var(--bf-text-muted); font-size: 14px; font-weight: 550; }
.refw .refw-card3d__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--bf-hairline); font-size: 12.5px; color: var(--bf-text-2); }
.refw .refw-card3d__row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refw .refw-card3d__ok { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; padding: 3px 8px; border-radius: var(--bf-radius-full); background: var(--refw-y-bg); color: var(--refw-y); font-weight: 650; }
.refw .refw-card3d__shine { position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 40%, var(--glass-sheen, rgba(255, 255, 255, 0.5)) 50%, transparent 60%); transform: translateX(-60%); pointer-events: none; opacity: 0.7; }
.refw .refw-bizik { position: absolute; z-index: 1; left: 0; bottom: 0; width: clamp(92px, 25%, 146px); height: auto; filter: drop-shadow(0 14px 22px rgb(var(--bf-shadow-c) / 0.22)); transform: translate3d(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 8px), 0); }
.refw .refw-hero__spark { position: absolute; color: var(--bf-accent); opacity: 0.7; font-size: 22px; }
.refw .refw-hero__spark--1 { left: 8%; top: 14%; }
.refw .refw-hero__spark--2 { right: 14%; top: 8%; font-size: 16px; color: var(--refw-gold-2); }

/* монети (SVG): статичні позиції; рух — лише з .is-play і без reduced-motion */
.refw .refw-coin { position: absolute; width: 40px; height: 40px; display: block; z-index: 1; filter: drop-shadow(0 6px 10px rgb(var(--bf-shadow-c) / 0.2)); transform: translate3d(calc(var(--mx, 0) * var(--d, 8px)), calc(var(--my, 0) * var(--d, 8px)), 0); }
.refw .refw-coin svg { width: 100%; height: 100%; display: block; }
.refw .refw-coin__o { fill: var(--refw-gold); stroke: var(--refw-gold-2); stroke-width: 2.5; }
.refw .refw-coin__i { fill: none; stroke: var(--refw-gold-hi); stroke-width: 1.5; opacity: 0.9; }
.refw .refw-coin__s { fill: none; stroke: var(--refw-gold-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.refw .refw-coin--1 { left: 4%; top: 30%; width: 46px; height: 46px; --d: 16px; }
.refw .refw-coin--2 { left: 40%; bottom: 6%; width: 34px; height: 34px; --d: 10px; }
.refw .refw-coin--3 { right: 4%; top: 22%; width: 42px; height: 42px; --d: 18px; }
.refw .refw-coin--4 { right: 26%; top: 2%; width: 28px; height: 28px; --d: 6px; }
.refw .refw-coin--5 { left: 30%; top: 4%; width: 24px; height: 24px; --d: 5px; opacity: 0.85; }
.refw .refw-coin--6 { right: 30%; bottom: 2%; width: 30px; height: 30px; --d: 12px; }
.refw .refw-coin--f1, .refw .refw-coin--f2, .refw .refw-coin--f3 { top: -12%; width: 26px; height: 26px; opacity: 0; }
.refw .refw-coin--f1 { left: 22%; } .refw .refw-coin--f2 { left: 58%; width: 20px; height: 20px; } .refw .refw-coin--f3 { left: 80%; width: 22px; height: 22px; }

@media (prefers-reduced-motion: no-preference) {
  .refw .refw-hero__vis .refw-coin svg { animation: refw-bob 4.8s ease-in-out infinite; animation-play-state: paused; }
  .refw .refw-coin--2 svg { animation-delay: -1.2s; } .refw .refw-coin--3 svg { animation-delay: -2.4s; animation-duration: 5.6s; }
  .refw .refw-coin--4 svg { animation-delay: -3.1s; } .refw .refw-coin--5 svg { animation-delay: -0.6s; animation-duration: 6s; } .refw .refw-coin--6 svg { animation-delay: -1.8s; }
  .refw .refw-hero__vis :is(.refw-coin--f1, .refw-coin--f2, .refw-coin--f3) { animation: refw-fall 5.4s linear infinite; animation-play-state: paused; }
  .refw .refw-hero__vis :is(.refw-coin--f1, .refw-coin--f2, .refw-coin--f3) svg { animation: none; }
  .refw .refw-coin--f2 { animation-delay: -1.8s !important; animation-duration: 6.4s !important; }
  .refw .refw-coin--f3 { animation-delay: -3.6s !important; animation-duration: 5.9s !important; }
  .refw .refw-hero__spark { animation: refw-twinkle 3.2s ease-in-out infinite; animation-play-state: paused; }
  .refw .refw-hero__spark--2 { animation-delay: -1.6s; }
  .refw .refw-hero__ring { animation: refw-spin 40s linear infinite; animation-play-state: paused; }
  .refw .refw-card3d__shine { animation: refw-shine 6s ease-in-out infinite; animation-play-state: paused; }
  .refw .refw-hero__vis.is-play :is(.refw-coin svg, .refw-coin--f1, .refw-coin--f2, .refw-coin--f3, .refw-hero__spark, .refw-hero__ring, .refw-card3d__shine) { animation-play-state: running; }
  .refw .refw-hero__vis.is-tilt .refw-card3d { transition: transform .12s linear; }
}
@keyframes refw-bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes refw-fall { 0% { transform: translateY(0) rotate(0); opacity: 0; } 12% { opacity: 0.95; } 80% { opacity: 0.9; } 100% { transform: translateY(520%) rotate(300deg); opacity: 0; } }
@keyframes refw-twinkle { 0%, 100% { transform: scale(0.8); opacity: 0.35; } 50% { transform: scale(1.15); opacity: 0.9; } }
@keyframes refw-spin { to { transform: rotate(360deg); } }
@keyframes refw-shine { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }

/* ── §4  ПЕРЕГЛЯД ПРИХОВАНОЇ СТОРІНКИ ── */
.refw .refw-preview { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 18px; color: var(--bf-text-2); }
.refw .refw-preview .refw-ico { color: var(--bf-accent-ink); margin-top: 3px; }

/* ── §5  ЯК ЦЕ ПРАЦЮЄ: стартовий рядок + таймлайн ── */
.refw .refw-start { display: flex; align-items: center; gap: 14px; max-width: 820px; margin: 0 auto var(--refw-gap); padding: 14px 18px; color: var(--bf-text-2); font-size: 15.5px; }
.refw .refw-start strong { color: var(--bf-text); }
.refw .refw-start__ic { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bf-accent-soft); color: var(--bf-accent-ink); font-size: 18px; }
.refw .refw-tl { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--refw-gap); counter-reset: none; }
.refw .refw-tl::before { content: ""; position: absolute; left: 47px; top: 40px; bottom: 40px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--bf-accent), var(--bf-accent-2)); transform-origin: top; opacity: 0.55; transition: transform 1.2s var(--refw-ease); }
.refw .refw-tl__s { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 20px; margin: 0; transition: transform .3s var(--refw-ease), box-shadow .3s var(--refw-ease); }
.refw .refw-tl__s > :not(.refw-tl__ic) { grid-column: 2; }
.refw .refw-tl__ic { grid-row: 1 / span 4; position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--refw-inner); box-shadow: inset 0 0 0 1px var(--bf-hairline); color: var(--bf-accent-ink); font-size: 26px; z-index: 1; }
.refw .refw-tl__ic--acc { background: var(--refw-acc-grad); color: var(--bf-on-accent); box-shadow: 0 10px 24px -10px var(--bf-accent-glow); }
.refw .refw-tl__n { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bf-inverse); color: var(--bf-on-inverse); font-style: normal; font-size: 12.5px; font-weight: 700; box-shadow: 0 0 0 3px var(--bf-canvas); }
.refw .refw-tl__t { margin: 2px 0 0; font-size: 17.5px; }
.refw .refw-tl__big { margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; color: var(--bf-accent-ink); line-height: 1; }
.refw .refw-tl__big b { font-size: clamp(36px, 4.4vw, 50px); font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.refw .refw-tl__big span { font-size: 17px; font-weight: 650; }
.refw .refw-tl__p { margin: 10px 0 0; color: var(--bf-text-muted); font-size: 15px; line-height: 1.5; }
@media (hover: hover) { .refw .refw-tl__s:hover { transform: translateY(-4px); box-shadow: var(--refw-hi), var(--refw-drop-strong); } }
@media (min-width: 900px) {
  .refw .refw-tl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .refw .refw-tl::before { left: 16%; right: 16%; top: 52px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--bf-accent), var(--bf-accent-2)); transform-origin: left; }
  .refw .refw-tl__s { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 22px 22px 26px; }
  .refw .refw-tl__s > :not(.refw-tl__ic) { grid-column: 1; }
  .refw .refw-tl__ic { grid-row: auto; width: 64px; height: 64px; font-size: 28px; margin-bottom: 12px; }
  .refw .refw-tl__big { justify-content: center; }
}

/* ── §6  БОНУСИ: картки тарифів, підказка, друг ── */
.refw .refw-you { text-align: center; margin-bottom: 18px; }
.refw .refw-you h3 { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(19px, 2vw, 22px); }
.refw .refw-you h3 .refw-ico { color: var(--bf-accent-ink); }
.refw .refw-you p { margin: 6px 0 0; color: var(--bf-text-muted); }
.refw .refw-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--refw-gap); align-items: end; }
.refw .refw-tier { position: relative; margin: 0; padding: 22px 22px 20px; display: grid; gap: 8px; transition: transform .35s var(--refw-ease), box-shadow .35s var(--refw-ease); }
.refw .refw-tier__k { margin: 0; color: var(--bf-text-muted); font-size: 14.5px; font-weight: 600; }
.refw .refw-tier__v { margin: 0; display: flex; align-items: baseline; gap: 4px; line-height: 1; color: var(--bf-text); }
.refw .refw-tier__v b { font-size: clamp(38px, 4.6vw, 52px); font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.refw .refw-tier__v small { font-size: 22px; font-weight: 700; }
.refw .refw-tier__bar { display: block; height: 8px; border-radius: var(--bf-radius-full); background: var(--bf-fill); overflow: hidden; }
.refw .refw-tier__bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--bf-accent), var(--bf-accent-2)); transform-origin: left; transition: transform 1.1s var(--refw-ease) .15s; }
.refw .refw-tier__c { margin: 0; color: var(--bf-text-muted); font-size: 13.5px; }
.refw .refw-tier--std { background: linear-gradient(160deg, var(--bf-accent-soft), transparent 70%), var(--refw-gloss), var(--refw-card); }
.refw .refw-tier--std .refw-tier__v { color: var(--bf-accent-ink); }
.refw .refw-tier--top { padding-top: 30px; background: var(--refw-acc-grad); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bf-accent) 40%, transparent), 0 24px 48px -20px var(--bf-accent-glow), var(--refw-drop-strong); color: var(--bf-on-accent); }
.refw .refw-tier--top :is(.refw-tier__k, .refw-tier__c, .refw-tier__v) { color: var(--bf-on-accent); }
.refw .refw-tier--top .refw-tier__bar { background: color-mix(in srgb, var(--bf-on-accent) 22%, transparent); }
.refw .refw-tier--top .refw-tier__bar i { background: var(--refw-gold); }
.refw .refw-tier__badge { position: absolute; top: -13px; left: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--bf-radius-full); background: var(--refw-gold); color: var(--refw-gold-ink); font-size: 12.5px; font-weight: 750; box-shadow: 0 6px 16px -6px var(--refw-gold-2); }
@media (hover: hover) { .refw .refw-tier:hover { transform: translateY(-8px); box-shadow: var(--refw-hi), var(--refw-drop-strong); }
  .refw .refw-tier--top:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--bf-accent) 50%, transparent), 0 30px 60px -20px var(--bf-accent-glow), var(--refw-drop-strong); } }
@media (min-width: 760px) {
  .refw .refw-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .refw .refw-tier--std { padding-top: 30px; }
  .refw .refw-tier--top { padding-top: 40px; }
}
.refw .refw-note { display: flex; gap: 14px; align-items: flex-start; max-width: 860px; margin: var(--refw-gap) auto 0; padding: 16px 20px; }
.refw .refw-note__ic { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--bf-accent-soft); color: var(--bf-accent-ink); font-size: 18px; }
.refw .refw-note p { margin: 0; color: var(--bf-text-2); font-size: 15px; }
.refw .refw-note p + p { margin-top: 6px; color: var(--bf-text-muted); }
.refw .refw-friend { display: flex; gap: 16px; align-items: center; max-width: 860px; margin: 14px auto 0; padding: 18px 22px; background: linear-gradient(100deg, color-mix(in srgb, var(--bf-success) 14%, transparent), transparent 65%), var(--refw-gloss), var(--refw-card); }
.refw .refw-friend__ic { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--refw-y-bg); color: var(--refw-y); font-size: 22px; }
.refw .refw-friend h3 { font-size: 17px; margin: 0 0 4px; }
.refw .refw-friend p { margin: 0; color: var(--bf-text-2); font-size: 15px; }

/* ── §7  КАЛЬКУЛЯТОР ── */
.refw .refw-calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; max-width: 1000px; margin-inline: auto; }
.refw .refw-calc__in { display: grid; gap: 18px; padding: clamp(18px, 3vw, 28px); }
.refw .refw-calc__row { display: grid; gap: 8px; }
.refw .refw-calc__lab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-weight: 600; font-size: 15.5px; }
.refw .refw-calc__lab small { color: var(--bf-text-muted); font-weight: 500; font-size: 13.5px; }
.refw .refw-step { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px 48px; align-items: center; gap: 10px; }
.refw .refw-step__b { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: var(--refw-inner); box-shadow: inset 0 0 0 1px var(--bf-hairline); color: var(--bf-text); font-size: 18px; cursor: pointer; transition: background .2s, transform .15s; }
.refw .refw-step__b:hover { background: var(--bf-accent-soft); color: var(--bf-accent-ink); }
.refw .refw-step__b:active { transform: scale(0.94); }
.refw .refw-step__b:focus-visible, .refw .refw-step__r:focus-visible, .refw .refw-calc__up input:focus-visible { outline: none; box-shadow: var(--bf-focus-ring); }
.refw .refw-step__r { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: pointer; accent-color: var(--bf-accent); border-radius: var(--bf-radius-full); }
.refw .refw-step__r::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--bf-accent) var(--p, 0%), var(--bf-fill) var(--p, 0%)); }
.refw .refw-step__r::-moz-range-track { height: 8px; border-radius: 8px; background: var(--bf-fill); }
.refw .refw-step__r::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--bf-accent); }
.refw .refw-step__r::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--bf-card); border: 3px solid var(--bf-accent); box-shadow: 0 4px 10px -2px var(--bf-accent-glow); }
.refw .refw-step__r::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--bf-card); border: 3px solid var(--bf-accent); box-shadow: 0 4px 10px -2px var(--bf-accent-glow); }
.refw .refw-step__o { display: grid; place-items: center; height: 44px; border-radius: 12px; background: var(--bf-accent-soft); color: var(--bf-accent-ink); font-weight: 750; font-size: 18px; font-variant-numeric: tabular-nums; }
.refw .refw-calc__up { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--refw-inner); box-shadow: inset 0 0 0 1px var(--bf-hairline); font-size: 14.5px; color: var(--bf-text-2); cursor: pointer; }
.refw .refw-calc__up input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bf-accent); }
.refw .refw-calc__out { position: relative; display: grid; align-content: center; gap: 8px; padding: clamp(20px, 3.4vw, 32px); background: var(--refw-acc-grad); color: var(--bf-on-accent); }
.refw .refw-calc__out::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--refw-gold) 35%, transparent), transparent); pointer-events: none; }
.refw .refw-calc__k { margin: 0; font-size: 14.5px; font-weight: 600; opacity: 0.92; }
.refw .refw-calc__sum { margin: 0; display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.refw .refw-calc__sum b { font-size: clamp(48px, 7vw, 72px); font-weight: 780; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.refw .refw-calc__sum small { font-size: 28px; font-weight: 700; }
.refw .refw-calc__meta { margin: 0; font-size: 15px; font-weight: 600; }
.refw .refw-calc__months { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.refw .refw-calc__months li { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 10px; border-radius: var(--bf-radius-full); background: color-mix(in srgb, var(--bf-on-accent) 16%, transparent); font-size: 13px; }
.refw .refw-calc__months b { font-weight: 700; }
.refw .refw-calc__lim, .refw .refw-calc__cap { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; }
.refw .refw-calc__lim .refw-ico, .refw .refw-calc__cap .refw-ico { margin-top: 2px; }
.refw .refw-calc__fine { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--bf-on-accent) 24%, transparent); font-size: 12.5px; line-height: 1.45; opacity: 0.92; }
.refw .refw-calc__lim[hidden] { display: none; }
@media (min-width: 900px) {
  .refw .refw-calc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

/* ── §8  ТАК / НІ ── */
.refw .refw-yn { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--refw-gap); }
.refw .refw-yn__col { padding: 22px; position: relative; overflow: hidden; }
.refw .refw-yn__col::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.refw .refw-yn__col--y::before { background: var(--bf-success); }
.refw .refw-yn__col--n::before { background: var(--bf-danger); opacity: 0.75; }
.refw .refw-yn__t { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.refw .refw-yn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.refw .refw-yn li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--bf-text-2); font-size: 15px; line-height: 1.5; }
.refw .refw-yn__m { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 15px; }
.refw .refw-yn__col--y .refw-yn__m { background: var(--refw-y-bg); color: var(--refw-y); }
.refw .refw-yn__col--n .refw-yn__m { background: var(--refw-n-bg); color: var(--refw-n); }
.refw .refw-yn__col--n .refw-yn__m--part { background: var(--bf-st-neutral-bg); color: var(--bf-st-neutral-fg); }
.refw .refw-yn__t .refw-yn__m { width: 32px; height: 32px; font-size: 17px; }
@media (min-width: 860px) { .refw .refw-yn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── §9  ЛІМІТИ Й ПЕРЕВІРКА ── */
.refw .refw-lim { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--refw-gap); }
.refw .refw-lim__t { margin: 0; padding: 22px; display: grid; align-content: start; gap: 10px; transition: transform .3s var(--refw-ease); }
.refw .refw-lim__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bf-accent-soft); color: var(--bf-accent-ink); font-size: 21px; }
.refw .refw-lim__big { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; line-height: 1.05; }
.refw .refw-lim__big b { font-size: clamp(40px, 4.6vw, 54px); font-weight: 760; letter-spacing: -0.03em; color: var(--bf-accent-ink); font-variant-numeric: tabular-nums; }
.refw .refw-lim__big--txt b { font-size: clamp(30px, 3.4vw, 40px); }
.refw .refw-lim__big span { font-size: 15.5px; font-weight: 650; color: var(--bf-text); }
.refw .refw-lim__t > p:last-child { margin: 0; color: var(--bf-text-muted); font-size: 14.5px; line-height: 1.5; }
@media (hover: hover) { .refw .refw-lim__t:hover { transform: translateY(-4px); } }
@media (min-width: 900px) { .refw .refw-lim { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── §10  ЯК ОТРИМАТИ ПОСИЛАННЯ: текст + мокап ── */
.refw .refw-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.refw .refw-split__txt h2 { font-size: var(--bf-site-h2); margin: 10px 0 16px; }
.refw .refw-split__txt p { margin: 0 0 10px; color: var(--bf-text-2); font-size: 16px; max-width: 560px; }
.refw .refw-split__txt .refw-actions { margin-top: 18px; }
@media (min-width: 900px) { .refw .refw-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.refw .refw-mock { margin: 0; min-width: 0; }
.refw .refw-mock figcaption { margin-top: 10px; text-align: center; color: var(--bf-text-faint); font-size: 13px; }
.refw .refw-mock__win { overflow: hidden; }
.refw .refw-mock__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--bf-hairline); background: var(--refw-inner); }
.refw .refw-mock__dots { display: inline-flex; gap: 5px; flex: 0 0 auto; }
.refw .refw-mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--bf-fill-hover); }
.refw .refw-mock__nav { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.refw .refw-mock__btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--bf-radius-full); background: var(--bf-fill); color: var(--bf-text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.refw .refw-mock__btn--hi { background: var(--bf-accent-strong); color: var(--bf-on-accent); box-shadow: 0 0 0 4px var(--bf-accent-soft-2), 0 8px 18px -8px var(--bf-accent-glow); }
.refw .refw-mock__cur { position: absolute; right: -8px; bottom: -14px; color: var(--bf-text); font-size: 18px; filter: drop-shadow(0 2px 2px rgb(var(--bf-shadow-c) / 0.3)); }
.refw .refw-mock__cur .refw-ico { fill: var(--bf-card); stroke-width: 1.6; }
.refw .refw-mock__body { padding: 16px; display: grid; gap: 10px; }
.refw .refw-mock__lab { margin: 4px 0 0; color: var(--bf-text-muted); font-size: 12.5px; font-weight: 650; text-transform: none; }
.refw .refw-mock__link { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--refw-inner); box-shadow: inset 0 0 0 1px var(--bf-hairline); color: var(--bf-accent-ink); }
.refw .refw-mock__copy { margin-left: auto; flex: 0 0 auto; padding: 6px 10px; border-radius: 9px; background: var(--bf-inverse); color: var(--bf-on-inverse); font-size: 12px; font-weight: 650; }
.refw .refw-mock__sk { display: inline-block; height: 9px; border-radius: 6px; background: var(--bf-fill-hover); vertical-align: middle; }
.refw .refw-mock__sk--logo { width: 70px; height: 12px; }
.refw .refw-mock__sk--url { flex: 1 1 auto; min-width: 40px; max-width: 220px; }
.refw .refw-mock__sk--s { width: 46px; }
.refw .refw-mock__sk--d { width: 44px; }
.refw .refw-mock__tbl { display: grid; gap: 4px; font-size: 12.5px; }
.refw .refw-mock__tr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.7fr); align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--refw-inner); color: var(--bf-text-2); }
.refw .refw-mock__tr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refw .refw-mock__tr--h { background: transparent; color: var(--bf-text-faint); font-weight: 650; padding-block: 2px; }
.refw .refw-mock__st { justify-self: start; max-width: 100%; padding: 3px 8px; border-radius: var(--bf-radius-full); font-weight: 650; font-size: 11.5px; }
.refw .refw-mock__st--ok { background: var(--bf-st-success-bg); color: var(--bf-st-success-fg); }
.refw .refw-mock__st--hold { background: var(--bf-st-warning-bg); color: var(--bf-st-warning-fg); }
.refw .refw-mock__st--trial { background: var(--bf-st-neutral-bg); color: var(--bf-st-neutral-fg); }
@media (prefers-reduced-motion: no-preference) {
  .refw .refw-mock.is-in .refw-mock__btn--hi { animation: refw-pulse 2.4s ease-out 0.6s 3; }
}
@keyframes refw-pulse { 0% { box-shadow: 0 0 0 0 var(--bf-accent-glow), 0 8px 18px -8px var(--bf-accent-glow); } 70% { box-shadow: 0 0 0 12px transparent, 0 8px 18px -8px var(--bf-accent-glow); } 100% { box-shadow: 0 0 0 4px var(--bf-accent-soft-2), 0 8px 18px -8px var(--bf-accent-glow); } }
@media (max-width: 420px) {
  .refw .refw-mock__btn:not(.refw-mock__btn--hi) { display: none; }
  .refw .refw-mock__tr { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr); }
  .refw .refw-mock__tr > :nth-child(4) { display: none; }
}

/* ── §11  FAQ (компонент sw-fx — без змін; лише відступ секції) ── */
.refw .refw-faq { scroll-margin-top: calc(var(--bf-site-header-h) + 16px); }

/* ── §12  ЗМІНИ, ДОКУМЕНТИ ── */
.refw .refw-info { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.refw .refw-info__c { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 18px; }
.refw .refw-info p { margin: 0; color: var(--bf-text-2); font-size: 15px; line-height: 1.5; }
.refw .refw-info__ic { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bf-accent-soft); color: var(--bf-accent-ink); font-size: 19px; }
@media (min-width: 900px) { .refw .refw-info { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.refw .refw-upd { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; color: var(--bf-text-muted); font-size: 14px; }
.refw .refw-docs { margin-top: 26px; }
.refw .refw-docs__l { margin: 0 0 12px; text-align: center; color: var(--bf-text-2); font-size: 15px; }
.refw .refw-docs__u { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.refw .refw-docs__u li { margin: 0; min-width: 0; }
.refw .refw-docs__a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; color: var(--bf-text); text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .25s var(--refw-ease), box-shadow .25s var(--refw-ease); }
.refw .refw-docs__a > .refw-ico:first-child { color: var(--bf-accent-ink); font-size: 19px; }
.refw .refw-docs__a > .refw-ico:last-child { margin-left: auto; color: var(--bf-text-faint); transition: transform .25s var(--refw-ease), color .25s; }
.refw .refw-docs__a span { min-width: 0; }
.refw .refw-docs__a:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--refw-hi), var(--refw-drop-strong); }
.refw .refw-docs__a:hover > .refw-ico:last-child { transform: translateX(3px); color: var(--bf-accent-ink); }
@media (min-width: 560px) { .refw .refw-docs__u { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .refw .refw-docs__u { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── §13  ФІНАЛЬНИЙ ЗАКЛИК ── */
.refw .refw-final { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; justify-items: center; text-align: center; padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 56px); border-radius: 28px; background: var(--refw-acc-grad); box-shadow: var(--glass-cta-hi, inset 0 1px 0 rgba(255, 255, 255, 0.3)), var(--refw-drop-strong); color: var(--bf-on-accent); }
.refw .refw-final::before { content: ""; position: absolute; inset: -40% 40% auto -20%; height: 140%; background: radial-gradient(closest-side, color-mix(in srgb, var(--bf-on-accent) 16%, transparent), transparent); pointer-events: none; }
.refw .refw-final__txt { position: relative; }
.refw .refw-final__t { margin: 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.refw .refw-final__s { margin: 10px 0 0; font-size: 16.5px; opacity: 0.92; }
.refw .refw-final .refw-actions { position: relative; justify-content: center; margin-top: 4px; }
.refw .refw-final .bf-btn-primary { background: var(--bf-on-accent); color: var(--bf-accent-strong); }
.refw .refw-final .bf-btn-primary:hover { background: color-mix(in srgb, var(--bf-on-accent) 90%, var(--bf-accent)); }
.refw .refw-final .bf-btn-secondary { background: color-mix(in srgb, var(--bf-on-accent) 14%, transparent); color: var(--bf-on-accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bf-on-accent) 34%, transparent); }
.refw .refw-final .bf-btn-secondary:hover { background: color-mix(in srgb, var(--bf-on-accent) 22%, transparent); }
.refw .refw-final__deco { position: absolute; inset: 0; pointer-events: none; }
.refw .refw-final__deco .refw-coin { opacity: 0.9; }
.refw .refw-coin--a { left: 46%; top: 14%; width: 34px; height: 34px; }
.refw .refw-coin--b { right: 6%; bottom: 12%; width: 44px; height: 44px; }
.refw .refw-coin--c { right: 16%; top: 10%; width: 24px; height: 24px; opacity: 0.7; }
@media (min-width: 900px) {
  .refw .refw-final { grid-template-columns: minmax(0, 1fr) auto; justify-items: start; text-align: left; }
  .refw .refw-final .refw-actions { justify-content: flex-end; }
}
@media (max-width: 560px) { .refw .refw-final__deco .refw-coin--a, .refw .refw-final__deco .refw-coin--c { display: none; } }

/* ── §14  ПОЯВА ПРИ ПРОКРУТЦІ (лише коли JS працює й анімації дозволені) ── */
@media (prefers-reduced-motion: no-preference) {
  .refw.refw-js [data-refw-rv] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--refw-ease), transform .7s var(--refw-ease); }
  .refw.refw-js [data-refw-rv].is-in { opacity: 1; transform: none; }
  .refw.refw-js .refw-tl__s:nth-child(2) { transition-delay: .12s; } .refw.refw-js .refw-tl__s:nth-child(3) { transition-delay: .24s; }
  .refw.refw-js .refw-tier:nth-child(2) { transition-delay: .1s; } .refw.refw-js .refw-tier:nth-child(3) { transition-delay: .2s; }
  .refw.refw-js .refw-lim__t:nth-child(2) { transition-delay: .1s; } .refw.refw-js .refw-lim__t:nth-child(3) { transition-delay: .2s; }
  .refw.refw-js .refw-tl::before { transform: scaleY(0); }
  .refw.refw-js .refw-tl.is-in::before { transform: none; }
  .refw.refw-js .refw-tier:not(.is-in) .refw-tier__bar i { transform: scaleX(0); }
  @media (min-width: 900px) { .refw.refw-js .refw-tl::before { transform: scaleX(0); } .refw.refw-js .refw-tl.is-in::before { transform: none; } }
}
/* hover-підйом не повинен скасовувати появу: після появи transform знову керує :hover */
.refw.refw-js [data-refw-rv].is-in:is(.refw-tl__s, .refw-tier, .refw-lim__t) { transition-delay: 0s; }

/* ── §15  ТЕЛЕФОН (≤ 560 px): менші відступи, без горизонтальної прокрутки ── */
@media (max-width: 560px) {
  .refw .refw-hero__vis { max-width: 360px; aspect-ratio: 1 / 0.9; }
  .refw .refw-card3d { width: 82%; }
  .refw .refw-coin--1 { width: 34px; height: 34px; } .refw .refw-coin--3 { width: 32px; height: 32px; }
  .refw .refw-tl__s, .refw .refw-tier, .refw .refw-yn__col, .refw .refw-lim__t { padding: 18px; }
  .refw .refw-tier--top { padding-top: 30px; }
  .refw .refw-step { grid-template-columns: 44px minmax(0, 1fr) 44px 42px; gap: 8px; }
  .refw .refw-start { align-items: flex-start; font-size: 15px; }
  .refw .refw-friend { align-items: flex-start; }
}

/* ── §16  REDUCED MOTION / REDUCED TRANSPARENCY ── */
@media (prefers-reduced-motion: reduce) {
  .refw *, .refw *::before, .refw *::after { animation: none !important; transition: none !important; }
  .refw .refw-card3d { transform: none; }
  .refw .refw-coin--f1, .refw .refw-coin--f2, .refw .refw-coin--f3 { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .refw { --refw-card: var(--glass-bg-solid, var(--bf-card)); --refw-card-strong: var(--glass-bg-solid, var(--bf-card)); }
}
