/* fxpro-polska.com — white + crimson, compact data-dense tables
   serif headings / sans body, no frameworks */

:root {
  --crimson: #b01030;
  --crimson-dark: #8c0c26;
  --crimson-pale: #fbeef1;
  --ink: #1c1c1e;
  --ink-soft: #4a4a4f;
  --line: #e3e3e6;
  --bg: #ffffff;
  --bg-alt: #f8f7f7;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

p + p { margin-top: 0.9rem; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 3px solid var(--crimson);
  padding: 14px 0;
  background: var(--bg);
}

.site-head .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand em {
  color: var(--crimson);
  font-style: normal;
}

.head-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- hero ---------- */

.hero {
  padding: 56px 0 44px;
  background:
    linear-gradient(160deg, var(--bg) 62%, var(--crimson-pale) 100%);
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--crimson);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  margin-bottom: 18px;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46em;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 30px;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--crimson-dark); }

.btn-ghost {
  background: transparent;
  color: var(--crimson);
  border: 1.5px solid var(--crimson);
}

.btn-ghost:hover {
  background: var(--crimson-pale);
}

.hero-risk {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- sections ---------- */

main section { padding: 44px 0; }

main section:nth-of-type(even) { background: var(--bg-alt); }

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 16px;
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  background: var(--crimson);
}

h2.plain-h2 {
  padding-left: 0;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2.plain-h2::before { display: none; }

.answer-first {
  font-size: 1.03rem;
  font-weight: 500;
  border-left: 3px solid var(--crimson);
  background: var(--crimson-pale);
  padding: 14px 18px;
  margin-bottom: 16px;
}

/* ---------- market stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat {
  border: 1px solid var(--line);
  border-top: 3px solid var(--crimson);
  background: var(--bg);
  padding: 14px 16px;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--crimson);
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
  display: block;
}

/* ---------- quick answer ---------- */

.quick-answer .qa-text {
  font-size: 1.05rem;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--crimson);
  border-left-width: 5px;
  padding: 18px 22px;
}

/* ---------- tables (compact, data-dense) ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 14px;
  font-size: 0.88rem;
  background: var(--bg);
}

caption {
  caption-side: top;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  padding-bottom: 8px;
}

th, td {
  border: 1px solid var(--line);
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--crimson);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

tbody tr:nth-child(even) { background: var(--bg-alt); }

tbody td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- protection list ---------- */

.shield-list {
  list-style: none;
  margin: 6px 0 16px;
}

.shield-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px dotted var(--line);
}

.shield-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 9px;
  height: 9px;
  background: var(--crimson);
  transform: rotate(45deg);
}

/* ---------- FAQ ---------- */

#faq details {
  border: 1px solid var(--line);
  border-left: 3px solid var(--crimson);
  background: var(--bg);
  margin-bottom: 10px;
}

#faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 16px;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

#faq summary::-webkit-details-marker { display: none; }

#faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--crimson);
}

#faq details[open] summary::after { content: "\2212"; }

#faq details p {
  padding: 0 16px 14px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink);
  color: #c9c9cd;
  padding: 34px 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.site-foot .risk + .risk { margin-top: 12px; }

.site-foot strong { color: #fff; }

.foot-meta {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #3a3a3e;
  font-size: 0.76rem;
  color: #8f8f95;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }

  table { display: block; overflow-x: auto; white-space: normal; }

  .hero { padding: 40px 0 34px; }

  main section { padding: 34px 0; }

  .cta-row .btn { width: 100%; text-align: center; }
}

/* FxPro partner disclosure bar + about block (brand guidelines) */
.partner-bar { background: #f7eef0; color: #7a1020; font-size: .82rem; padding: .45rem 1rem; text-align: center; }
.partner-bar a { color: inherit; text-decoration: underline; font-weight: 600; }
.about-fxpro { padding: 1.5rem 1rem; max-width: 900px; margin: 0 auto; }
.about-fxpro h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.about-fxpro p { font-size: .88rem; opacity: .85; line-height: 1.6; }

/* Guide hub (home + inner pages) */
/* Guide hub (home + inner pages) */
.guide-accent-green { --guide-accent: #27b573; --guide-accent-soft: #1e8e5a; }
.guide-accent-gold { --guide-accent: #c9a24b; --guide-accent-soft: #e4c477; }
.guide-accent-crimson { --guide-accent: #b01030; --guide-accent-soft: #8c0c26; }
.guide-accent-teal { --guide-accent: #0e7a6f; --guide-accent-soft: #0a5c54; }
.guide-accent-red { --guide-accent: #c8102e; --guide-accent-soft: #9c0c24; }

.guide-header {
  border-bottom: 1px solid var(--line, rgba(255,255,255,.12));
  background: var(--guide-header-bg, var(--charcoal-deep, #121418));
  position: sticky;
  top: 0;
  z-index: 40;
}
.guide-header--light {
  --guide-header-bg: var(--bg, #fff);
  --guide-pill-bg: var(--bg-alt, #f4f4f5);
  --guide-pill-border: var(--line, #e3e3e6);
  --guide-pill-text: var(--ink, #1c1c1e);
}
.guide-header--dark {
  --guide-header-bg: var(--navy-deep, var(--charcoal-deep, #121418));
  --guide-pill-bg: rgba(255,255,255,.08);
  --guide-pill-border: rgba(255,255,255,.18);
  --guide-pill-text: var(--ink, #e8ebee);
}
.guide-header .wrap { max-width: var(--max, 1080px); margin: 0 auto; padding: 0 20px; }
.guide-header-inner { padding: 12px 0 14px; }
.guide-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.guide-header a { text-decoration: none; }
.guide-logo {
  font-weight: 800;
  color: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.guide-logo em { font-style: normal; color: var(--crimson, inherit); }
.guide-logo-accent { color: var(--guide-accent-soft, var(--guide-accent, #27b573)); }
.guide-home-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--guide-pill-border, rgba(255,255,255,.2));
  background: var(--guide-pill-bg, rgba(255,255,255,.06));
  color: var(--guide-pill-text, inherit);
  white-space: nowrap;
}
.guide-home-btn:hover { border-color: var(--guide-accent, #27b573); color: var(--guide-pill-text, inherit); }
.guide-pills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.guide-pills a.guide-pill,
.guide-pills span.guide-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid var(--guide-pill-border, rgba(255,255,255,.18));
  background: var(--guide-pill-bg, rgba(255,255,255,.08));
  color: var(--guide-pill-text, inherit);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.guide-pills a.guide-pill:hover {
  border-color: var(--guide-accent, #27b573);
  transform: translateY(-1px);
  color: var(--guide-pill-text, inherit);
}
.guide-pills a.guide-pill:visited { color: var(--guide-pill-text, inherit); }
.guide-pills span.guide-pill.is-active,
.guide-pills a.guide-pill.is-active {
  background: var(--guide-accent, #27b573);
  border-color: var(--guide-accent, #27b573);
  color: #fff;
}

.guide-hub {
  padding: 52px 0 56px;
  background: var(--guide-hub-bg, var(--bg-alt, #f8f7f7));
  border-top: 1px solid var(--line, rgba(255,255,255,.08));
}
.guide-hub-on-dark { --guide-hub-bg: var(--charcoal-panel, var(--navy-panel, #2b3036)); }
.guide-header--light ~ .guide-hub { --guide-hub-bg: var(--bg-alt, #f8f7f7); }
.guide-hub-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
  margin: 0 0 8px;
  font-weight: 700;
}
.guide-hub h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.guide-hub-lead { margin: 0; opacity: 0.78; max-width: 52ch; font-size: 0.95rem; }
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin-top: 22px;
}
a.guide-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 18px;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--line, #e3e3e6);
  background: var(--card, var(--white, #fff));
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,.06));
  transition: transform .15s ease, border-color .15s, box-shadow .15s;
}
a.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--guide-accent, #27b573);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  color: inherit;
}
a.guide-card:visited { color: inherit; }
.guide-card-title { font-weight: 700; font-size: 1.02rem; line-height: 1.35; margin: 0; }
.guide-card-teaser { font-size: 0.88rem; opacity: 0.76; line-height: 1.55; margin: 0; flex: 1; }
.guide-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--guide-accent, #27b573);
}

.page-main { padding-bottom: 40px; }
.page-hero { padding: 36px 0 28px; }
.page-hero h1 { margin: 8px 0 16px; line-height: 1.2; }
.breadcrumb { font-size: 0.88rem; opacity: 0.72; margin-bottom: 10px; }
.breadcrumb a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.breadcrumb a:hover { opacity: 1; }
.cta-center { text-align: center; }
.page-main details {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--line, rgba(128,128,128,.28));
  border-radius: 8px;
  background: var(--card, rgba(255,255,255,.03));
}
.page-main details summary { cursor: pointer; font-weight: 600; }
.page-main details p { margin: 10px 0 0; }
@media (max-width: 640px) {
  .guide-header-top { flex-wrap: wrap; }
  .guide-pills { gap: 8px; }
  .guide-pills a.guide-pill,
  .guide-pills span.guide-pill { padding: 8px 14px; font-size: 0.82rem; }
}
