/* MedMigrant — program poleceń: zapowiedź na stronie głównej (.erh) i strona „Polecaj i zarabiaj” (.erl-*), od 0.49.72.
   Kolory z motywu (--mcq-*), więc działa tryb dzienny i nocny. Animacje włącza earn-home.js, wyłącza prefers-reduced-motion. */
.erh, .erh-scene, .mcqp-earn--land { --e-bg: var(--mcq-bg, #202329); --e-card: var(--mcq-card, #2c2f34); --e-card2: var(--mcq-card2, #353a41); --e-line: var(--mcq-border, #45505e); --e-text: var(--mcq-text, #dddde2); --e-strong: var(--mcq-strong, #fff); --e-soft: var(--mcq-soft, #b6b6c3); --e-pri: var(--mcq-primary, #f0a500); --e-ptext: var(--mcq-ptext, #f0a500); --e-on: var(--mcq-on-primary, #1b1608); --e-ok: #2fcf74; --e-ease: cubic-bezier(.22, 1, .36, 1); }
html[data-theme="light"] .erh, html[data-theme="light"] .erh-scene, html[data-theme="light"] .mcqp-earn--land { --e-ok: #0f8a45; }

/* ---------- ilustracja: rozmowa z kodem i powiadomienie o prowizji ---------- */
.erh-scene { position: relative; display: grid; place-items: center; min-width: 0; padding: 14px 6px; }
.erh-chat { position: relative; z-index: 1; display: grid; gap: 10px; width: min(330px, 100%); padding: 14px 14px 16px; border-radius: 26px; border: 1px solid var(--e-line); background: var(--e-bg); box-shadow: 0 34px 60px -44px rgba(0, 0, 0, .75); }
.erh-chat::before { content: ""; justify-self: center; width: 44px; height: 5px; margin-bottom: 4px; border-radius: 99px; background: var(--e-line); }
.erh-msg { margin: 0; max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.4; text-align: left; }
.erh-msg span { display: block; }
.erh-msg.is-out { justify-self: end; border-bottom-right-radius: 5px; background: var(--e-pri); color: var(--e-on); }
.erh-msg.is-out b { display: inline-block; margin-top: 7px; padding: 3px 10px; border: 1.5px dashed currentColor; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; letter-spacing: .1em; }
.erh-msg.is-in { justify-self: start; border-bottom-left-radius: 5px; background: var(--e-card2); color: var(--e-strong); }
.erh-msg.is-in i { display: block; margin-top: 4px; color: var(--e-ok); font-style: normal; font-weight: 800; }
.erh-msg.is-in s { margin-left: 4px; color: var(--e-soft); font-weight: 400; }
.erh-note { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--e-ok); background: var(--e-card); text-align: left; }
.erh-note-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: rgba(47, 207, 116, .16); color: var(--e-ok); }
.erh-note-ic svg { width: 22px; height: 22px; }
.erh-note-t { display: grid; min-width: 0; }
.erh-note small { color: var(--e-soft); font-size: .76rem; line-height: 1.3; }
.erh-note strong { color: var(--e-ok); font-size: 1.3rem; line-height: 1.2; white-space: nowrap; }
.erh-coin { position: absolute; z-index: 0; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffe7a1, #f0a500 58%, #b67800); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .22), 0 10px 18px -10px rgba(0, 0, 0, .6); animation: erh-float 7s ease-in-out infinite; }
.erh-coin.is-1 { top: 2%; right: 4%; }
.erh-coin.is-2 { bottom: 4%; left: 2%; width: 28px; height: 28px; animation-delay: -2.5s; }
.erh-coin.is-3 { top: 40%; right: -2%; width: 20px; height: 20px; animation-delay: -4.5s; opacity: .85; }
@keyframes erh-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(10deg); } }
.erh-scene.is-anim .erh-msg, .erh-scene.is-anim .erh-note { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s var(--e-ease), transform .6s var(--e-ease); }
.erh-scene.is-anim .erh-msg.is-in { transition-delay: .9s; }
.erh-scene.is-anim .erh-note { transition-delay: 1.8s; transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.erh-scene.is-anim.is-in .erh-msg, .erh-scene.is-anim.is-in .erh-note { opacity: 1; transform: none; }

/* ---------- strona główna: karta „Polecaj MedMigrant i zarabiaj” ---------- */
.erh.section { padding: 0 0 56px; }
.erh-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(18px, 4vw, 44px); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--e-line); border-radius: 28px; background: var(--e-card); overflow: hidden; }
@supports (background: color-mix(in srgb, red 10%, transparent)) {
	.erh-card, .erl-hero { background: radial-gradient(110% 120% at 100% 0%, color-mix(in srgb, var(--e-pri) 22%, transparent), transparent 58%), radial-gradient(80% 110% at 0% 100%, color-mix(in srgb, var(--e-ok) 11%, transparent), transparent 60%), var(--e-card); }
	.erh-note { border-color: color-mix(in srgb, var(--e-ok) 55%, var(--e-line)); box-shadow: 0 16px 30px -20px color-mix(in srgb, var(--e-ok) 80%, #000); }
}
.erh-card.is-anim { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--e-ease), transform .6s var(--e-ease); }
.erh-card.is-anim.is-in { opacity: 1; transform: none; }
.erh-text { min-width: 0; }
.erh-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--mcq-primary-bg, #3a3122); color: var(--e-ptext); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.erh-kicker svg { width: 16px; height: 16px; }
.erh.section h2 { margin: 0 0 10px; color: var(--e-strong); font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; text-align: left; }
.erh-lead { max-width: 46ch; margin: 0 0 18px; color: var(--e-soft); font-size: 1.02rem; line-height: 1.6; }
.erh-facts { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 0 0 22px; padding: 0; list-style: none; }
.erh-facts li { display: grid; margin: 0; }
.erh-facts b { color: var(--e-ptext); font-size: 1.55rem; line-height: 1.15; }
.erh-facts span { color: var(--e-soft); font-size: .82rem; }
.erh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.erh-more { color: var(--e-ptext); font-weight: 800; text-decoration: none; }
.erh-more span { display: inline-block; transition: transform .25s var(--e-ease); }
.erh-more:hover span { transform: translateX(4px); }

/* ---------- strona „Polecaj i zarabiaj” ---------- */
.mcqp-earn.mcqp-earn--land { max-width: none; margin-top: 0; }
.erl-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(18px, 4vw, 44px); margin-bottom: 16px; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--e-line); border-radius: 24px; background: var(--e-card); overflow: hidden; }
.erl-hero-text { min-width: 0; }
.mcqp-earn--land .erl-hero h2 { margin: 0 0 12px; color: var(--e-strong); font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.15; text-wrap: balance; }
.erl-lead { max-width: 48ch; margin: 0 0 20px; color: var(--e-text); font-size: 1.05rem; line-height: 1.6; }
.erl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.erl-actions .mcqp-btn { margin: 0; }
.erl-fine { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; color: var(--e-soft); font-size: .84rem; }
.erl-fine .mcqp-ic { width: 17px; height: 17px; color: var(--e-ok); }
.erl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.erl-facts li { display: grid; gap: 4px; margin: 0; padding: 16px 18px; border: 1px solid var(--e-line); border-radius: 16px; background: var(--e-card); }
.erl-facts strong { color: var(--e-ptext); font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.1; }
.erl-facts span { color: var(--e-soft); font-size: .86rem; line-height: 1.4; }
.erl-facts.is-anim li, .erl-ways.is-anim .erl-way { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--e-ease), transform .5s var(--e-ease); transition-delay: calc(var(--i, 0) * 90ms); }
.erl-facts.is-anim.is-in li, .erl-ways.is-anim.is-in .erl-way { opacity: 1; transform: none; }
.mcqp-earn--land .erl-h { margin: 30px 0 14px; color: var(--e-strong); font-size: 1.3rem; line-height: 1.3; }
.mcqp-earn--land .mcqp-earn-panel > .mcqp-earn-how { margin-bottom: 22px; }
.erl-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.erl-way { --a: var(--e-ok); position: relative; padding: 22px; border: 1px solid var(--e-line); border-radius: 18px; background: var(--e-card); overflow: hidden; }
.erl-way.is-points { --a: var(--e-ptext); }
.erl-way::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--a); opacity: .09; pointer-events: none; }
.erl-way-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--e-bg); color: var(--a); }
.erl-way-ic svg { width: 24px; height: 24px; }
.mcqp-earn--land .erl-way h4 { margin: 14px 0 6px; font-size: 1.12rem; }
.erl-way p { margin: 0 0 14px; color: var(--e-text); font-size: .95rem; line-height: 1.55; }
.erl-way ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.erl-way li { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--e-strong); font-size: .9rem; }
.erl-way li .mcqp-ic { width: 18px; height: 18px; color: var(--a); }
.erl-faq { display: grid; gap: 8px; margin-bottom: 20px; }
.erl-faq details { padding: 0 18px; border: 1px solid var(--e-line); border-radius: 14px; background: var(--e-card); transition: border-color .2s ease; }
.erl-faq details[open] { border-color: var(--e-pri); }
.erl-faq summary { position: relative; padding: 15px 34px 15px 0; color: var(--e-strong); font-weight: 700; line-height: 1.4; list-style: none; cursor: pointer; }
.erl-faq summary::-webkit-details-marker { display: none; }
.erl-faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--e-ptext); border-bottom: 2px solid var(--e-ptext); transform: rotate(45deg); transition: transform .25s var(--e-ease); }
.erl-faq details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.erl-faq summary:focus-visible { outline: 2px solid var(--e-pri); outline-offset: 4px; border-radius: 6px; }
.erl-faq p { margin: 0 0 16px; color: var(--e-text); line-height: 1.6; }
.erl-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 16px; padding: 22px 24px; border: 1px solid var(--e-pri); border-radius: 20px; background: var(--mcq-primary-bg, #3a3122); }
.mcqp-earn--land .erl-end h3 { margin: 0 0 4px; color: var(--e-strong); font-size: 1.25rem; }
.erl-end p { margin: 0; color: var(--e-text); }
.erl-terms { margin: 12px 0 0; }

@media (max-width: 760px) {
	.erh-card, .erl-hero { grid-template-columns: minmax(0, 1fr); }
	.erh-scene { padding: 6px 0 2px; }
	.erl-ways { grid-template-columns: minmax(0, 1fr); }
	.erl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.erl-actions .mcqp-btn, .erh-actions .btn { flex: 1 1 100%; text-align: center; }
	.erl-end { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.erh-coin { animation: none; }
	.erh-scene.is-anim .erh-msg, .erh-scene.is-anim .erh-note, .erh-card.is-anim, .erl-facts.is-anim li, .erl-ways.is-anim .erl-way { opacity: 1; transform: none; transition: none; }
}
