/* Strona WWW resellera (kreator /reseller/site). Kolory z brandingu (--brand-*), warianty per szablon. */
.rsite {
  --s-primary: var(--brand-primary, #0ea5a0);
  --s-accent: var(--brand-accent, #10c8a0);
  --s-bg: var(--brand-bg, #030b1e);
  --s-surface: var(--brand-surface, #081630);
  --s-border: var(--brand-border, #123252);
  --s-text: var(--brand-text, #e2f0ee);
  --s-muted: var(--brand-muted, #6a9b95);
  --s-radius: 14px;
  background: var(--s-bg);
  color: var(--s-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
.rsite *, .rsite *::before, .rsite *::after { box-sizing: border-box; }
.rsite a { color: inherit; text-decoration: none; }
.rsite h1, .rsite h2, .rsite h3 { margin: 0 0 .6em; line-height: 1.2; }
.rsite h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
.rsite h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; text-align: center; margin-bottom: 1.2em; }
.rsite h3 { font-size: 1.1rem; }
.rsite p { margin: 0 0 1em; }
.rsite-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.rsite-muted { color: var(--s-muted); }
.rsite-lead { font-size: 1.15rem; color: var(--s-muted); max-width: 640px; }
.rsite-text { white-space: pre-line; max-width: 760px; margin: 0 auto; color: var(--s-muted); }

.rsite-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--s-bg) 80%, transparent); border-bottom: 1px solid var(--s-border); }
.rsite-preview .rsite-header { position: static; }
.rsite-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.rsite-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.rsite-brand img { height: 32px; width: auto; }
.rsite-header-actions { display: flex; align-items: center; gap: 12px; }
.rsite-link { color: var(--s-muted); font-weight: 600; font-size: .9rem; }
.rsite-link:hover { color: var(--s-text); }

.rsite-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: calc(var(--s-radius) / 1.6); background: var(--s-primary); color: var(--s-bg) !important; font-weight: 700; font-size: .9rem; border: 1px solid var(--s-primary); transition: filter .15s, transform .15s; }
.rsite-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.rsite-btn-lg { padding: 14px 28px; font-size: 1rem; }
.rsite-btn-ghost { background: transparent; color: var(--s-text) !important; border-color: var(--s-border); }

.rsite-block { padding: 72px 0; }
.rsite-hero { padding: 110px 0 90px; }
.rsite-hero .rsite-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.rsite-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rsite-card { padding: 24px; border: 1px solid var(--s-border); border-radius: var(--s-radius); background: var(--s-surface); }
.rsite-card p { color: var(--s-muted); }
.rsite-product { display: flex; flex-direction: column; }
.rsite-product ul { list-style: none; padding: 0; margin: 0 0 16px; color: var(--s-muted); }
.rsite-product ul li { padding: 4px 0; border-bottom: 1px dashed var(--s-border); }
.rsite-product .rsite-btn { margin-top: auto; }
.rsite-price { font-size: 1.8rem; font-weight: 800; color: var(--s-text) !important; }
.rsite-price small { font-size: .85rem; color: var(--s-muted); font-weight: 500; }
.rsite-image { display: block; max-width: 100%; margin: 0 auto; border-radius: var(--s-radius); }
.rsite-faq { max-width: 760px; margin: 0 auto 10px; border: 1px solid var(--s-border); border-radius: calc(var(--s-radius) / 1.6); background: var(--s-surface); padding: 14px 18px; }
.rsite-faq summary { cursor: pointer; font-weight: 600; }
.rsite-faq p { margin: 10px 0 0; color: var(--s-muted); }
.rsite-cta { text-align: center; padding: 48px 24px; border-radius: var(--s-radius); border: 1px solid var(--s-border); background: color-mix(in srgb, var(--s-primary) 12%, var(--s-surface)); }
.rsite-cta .rsite-lead { margin: 0 auto 1.4em; }
.rsite-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rsite-footer { border-top: 1px solid var(--s-border); padding: 28px 0; color: var(--s-muted); font-size: .85rem; }
.rsite-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.rsite-footer a { margin-left: 16px; }
.rsite-footer a:hover { color: var(--s-text); }
.rsite-selected { outline: 2px dashed var(--s-primary); outline-offset: -6px; }

/* Szablon: Gaming — poświata i gradient. */
.rsite-gaming .rsite-hero { background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--s-primary) 30%, transparent), transparent 60%), radial-gradient(ellipse at 90% 30%, color-mix(in srgb, var(--s-accent) 18%, transparent), transparent 55%); }
.rsite-gaming h1 { background: linear-gradient(90deg, var(--s-text), var(--s-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rsite-gaming .rsite-card:hover { border-color: var(--s-primary); box-shadow: 0 0 24px color-mix(in srgb, var(--s-primary) 25%, transparent); }

/* Szablon: Minimal — jasny, bez ozdobników. */
.rsite-minimal { --s-bg: #fafafa; --s-surface: #ffffff; --s-border: #e5e7eb; --s-text: #111827; --s-muted: #6b7280; --s-radius: 8px; }
.rsite-minimal .rsite-btn { color: #fff !important; }
.rsite-minimal .rsite-hero .rsite-wrap { align-items: center; text-align: center; }
.rsite-minimal .rsite-lead { margin-left: auto; margin-right: auto; }

/* Szablon: Biznes — naprzemienne tła sekcji, ostrzejsze rogi. */
.rsite-business { --s-radius: 4px; }
.rsite-business .rsite-block:nth-of-type(even) { background: var(--s-surface); }
.rsite-business .rsite-block:nth-of-type(even) .rsite-card { background: var(--s-bg); }
.rsite-business .rsite-hero { border-bottom: 3px solid var(--s-primary); }

@media (max-width: 640px) {
  .rsite-block { padding: 48px 0; }
  .rsite-hero { padding: 64px 0 56px; }
  .rsite-link { display: none; }
}
