/*
 * Fotopomoc Content Design System v1.0
 * Owner: Fotopomoc System Pro
 * Scope: opt-in .fp-content + body.fp-content-enabled
 * Zasada: semantyczny HTML nie definiuje lokalnych fontów, kolorów, spacingu ani RWD.
 */
:root{
  --fp-content-max:1120px;
  --fp-content-reading:820px;
  --fp-content-gap:18px;
  --fp-content-section-gap:10px;
  --fp-content-radius:12px;
  --fp-content-radius-sm:8px;
  --fp-content-section-pad:clamp(18px,3vw,26px);
  --fp-content-hero-pad:clamp(24px,5vw,52px);
  --fp-content-h1-size:clamp(2.15rem,5vw,4rem);
  --fp-content-h2-size:clamp(1.08rem,2vw,1.32rem);
  --fp-content-h3-size:clamp(.98rem,1.7vw,1.12rem);
  --fp-content-body-size:clamp(.92rem,1.4vw,.98rem);
  --fp-content-lead-size:clamp(.98rem,2vw,1.08rem);
  --fp-content-eyebrow-size:.74rem;
  --fp-content-muted:#b9bdb8;
  --fp-content-muted-soft:#929690;
  --fp-content-surface:#111411;
  --fp-content-surface-soft:#0f1210;
  --fp-content-line:rgba(255,255,255,.075);
  --fp-content-accent-line:rgba(212,175,55,.30);
}

.fp-content-enabled .fps-page-hero h1,
.fp-content-enabled .fps-content-section .fps-prose>h1:first-child{
  max-width:var(--fp-content-max);
  color:var(--fp-text);
  font-family:var(--fp-font-heading);
  font-size:var(--fp-content-h1-size);
  font-weight:700;
  line-height:1.02;
  letter-spacing:-.035em;
}

.fp-content{
  box-sizing:border-box;
  width:min(100%,var(--fp-content-max));
  margin-inline:auto;
  color:var(--fp-text);
  font-family:var(--fp-font-body);
  font-size:var(--fp-content-body-size);
  line-height:1.72;
}
.fp-content *,
.fp-content *::before,
.fp-content *::after{box-sizing:border-box}

.fp-content__hero{
  position:relative;
  overflow:hidden;
  padding:var(--fp-content-hero-pad);
  border:1px solid var(--fp-border);
  border-radius:calc(var(--fp-content-radius) + 2px);
  background:linear-gradient(145deg,rgba(7,8,9,.94),rgba(20,23,20,.92));
  box-shadow:0 28px 70px rgba(0,0,0,.22);
}
.fp-content__hero::after{
  content:"";
  position:absolute;
  right:-12%;
  bottom:-80px;
  width:320px;
  height:220px;
  background:radial-gradient(circle,rgba(212,175,55,.12),transparent 68%);
  pointer-events:none;
}
.fp-content__eyebrow{
  margin:0 0 10px;
  color:var(--fp-gold);
  font-family:var(--fp-font-ui);
  font-size:var(--fp-content-eyebrow-size);
  font-weight:800;
  line-height:1.3;
  letter-spacing:.20em;
  text-transform:uppercase;
}
.fp-content__lead{
  max-width:var(--fp-content-reading);
  margin:0;
  color:#c1c4c0;
  font-size:var(--fp-content-lead-size);
  line-height:1.62;
}
.fp-content__hero .fp-content__lead{margin-top:6px}

.fp-content__meta,
.fp-content__actions,
.fp-content__links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.fp-content__meta{margin-top:22px}
.fp-content__chip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:#d5d7d4;
  font-family:var(--fp-font-ui);
  font-size:.79rem;
  line-height:1.2;
}
.fp-content__chip--accent{
  border-color:rgba(212,175,55,.35);
  background:rgba(212,175,55,.07);
  color:#e6c86e;
}

.fp-content__rules{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.fp-content__rule,
.fp-content__card{
  min-width:0;
  border:1px solid var(--fp-content-line);
  border-radius:var(--fp-content-radius-sm);
  background:var(--fp-content-surface);
}
.fp-content__rule{padding:14px}
.fp-content__rule strong{
  display:block;
  margin-bottom:3px;
  color:var(--fp-text);
  font-family:var(--fp-font-heading);
  font-size:.9rem;
}
.fp-content__rule span{
  display:block;
  color:var(--fp-content-muted-soft);
  font-size:.76rem;
  line-height:1.45;
}

.fp-content__toc{
  margin:20px 0;
  padding:18px;
  border:1px solid var(--fp-content-line);
  border-radius:var(--fp-content-radius);
  background:var(--fp-content-surface-soft);
}
.fp-content__toc>h2{
  margin:0 0 12px;
  padding:0;
  border:0;
  color:#959a95;
  font-family:var(--fp-font-ui);
  font-size:.78rem;
  font-weight:800;
  line-height:1.3;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.fp-content__toc-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.fp-content__toc a{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--fp-content-radius-sm);
  background:#141714;
  color:#bdc0bc;
  font-family:var(--fp-font-ui);
  font-size:.78rem;
  line-height:1.35;
  text-decoration:none;
  transition:border-color .2s ease,background .2s ease,color .2s ease;
}
.fp-content__toc a span{
  flex:0 0 auto;
  color:var(--fp-gold);
  font-weight:800;
  font-variant-numeric:tabular-nums;
}

.fp-content__section{
  scroll-margin-top:110px;
  margin:0 0 var(--fp-content-section-gap);
  padding:var(--fp-content-section-pad);
  border:1px solid var(--fp-content-line);
  border-radius:var(--fp-content-radius);
  background:linear-gradient(180deg,var(--fp-content-surface),var(--fp-content-surface-soft));
}
.fp-content__section h2,
.fp-content__section h3,
.fp-content__card h2,
.fp-content__card h3{
  color:var(--fp-text);
  font-family:var(--fp-font-heading);
}
.fp-content__section h2,
.fp-content__card h2{
  margin:0 0 12px;
  font-size:var(--fp-content-h2-size);
  line-height:1.3;
  letter-spacing:-.015em;
}
.fp-content__section h3,
.fp-content__card h3{
  margin:20px 0 8px;
  font-size:var(--fp-content-h3-size);
  line-height:1.35;
}
.fp-content__section p,
.fp-content__card p,
.fp-content__section li,
.fp-content__card li{
  color:var(--fp-content-muted);
}
.fp-content__section p,
.fp-content__card p{margin:0 0 10px}
.fp-content__section p:last-child,
.fp-content__card p:last-child{margin-bottom:0}
.fp-content__section ul,
.fp-content__section ol,
.fp-content__card ul,
.fp-content__card ol{padding-left:1.25rem}
.fp-content__section li+li,
.fp-content__card li+li{margin-top:.38rem}

.fp-content__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--fp-content-gap);
  margin-block:var(--fp-content-gap);
}
.fp-content__card{padding:var(--fp-content-section-pad)}

.fp-content__note,
.fp-content__contact,
.fp-content__quote{
  margin-top:18px;
  padding:20px;
  border-left:2px solid var(--fp-gold);
  background:rgba(212,175,55,.055);
  color:#c8cac6;
}
.fp-content__note strong,
.fp-content__contact strong,
.fp-content__quote strong{color:var(--fp-text)}
.fp-content__quote{
  margin-inline:0;
  font-style:normal;
}

.fp-content__links{
  margin-top:18px;
  padding:18px 0 4px;
  border-top:1px solid var(--fp-content-line);
  gap:10px;
}
.fp-content__links a,
.fp-content__actions a,
.fp-content__actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 13px;
  border:1px solid var(--fp-content-accent-line);
  border-radius:var(--fp-content-radius-sm);
  background:rgba(212,175,55,.06);
  color:#e4c468;
  font-family:var(--fp-font-ui);
  font-size:.82rem;
  font-weight:700;
  line-height:1.25;
  text-decoration:none;
  transition:border-color .2s ease,background .2s ease,color .2s ease;
}
.fp-content a:focus-visible,
.fp-content button:focus-visible{
  outline:2px solid var(--fp-gold);
  outline-offset:3px;
}

.fp-content__table-wrap{
  width:100%;
  margin-block:18px;
  overflow-x:auto;
  border:1px solid var(--fp-content-line);
  border-radius:var(--fp-content-radius-sm);
  background:var(--fp-content-surface-soft);
}
.fp-content table{
  width:100%;
  min-width:620px;
  border-collapse:collapse;
  color:var(--fp-content-muted);
  font-size:.88rem;
}
.fp-content th,
.fp-content td{
  padding:12px 14px;
  border-bottom:1px solid var(--fp-content-line);
  text-align:left;
  vertical-align:top;
}
.fp-content th{
  color:var(--fp-text);
  font-family:var(--fp-font-ui);
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.fp-content tr:last-child td{border-bottom:0}

@media (hover:hover) and (pointer:fine){
  .fp-content__toc a:hover,
  .fp-content__links a:hover,
  .fp-content__actions a:hover,
  .fp-content__actions button:hover{
    border-color:rgba(212,175,55,.42);
    background:rgba(212,175,55,.10);
    color:#f0d580;
  }
}

@media(max-width:760px){
  .fp-content__rules{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fp-content__toc-grid{grid-template-columns:1fr 1fr}
  .fp-content__grid{grid-template-columns:1fr}
}

@media(max-width:430px){
  :root{
    --fp-content-hero-pad:22px 17px;
    --fp-content-section-pad:17px 15px;
    --fp-content-h1-size:clamp(2rem,10vw,3rem);
  }
  .fp-content__hero{border-radius:10px}
  .fp-content__rules{grid-template-columns:1fr}
  .fp-content__toc{padding:14px}
  .fp-content__toc-grid{grid-template-columns:1fr}
  .fp-content__meta{gap:6px}
  .fp-content__chip{font-size:.75rem}
}

@media(prefers-reduced-motion:reduce){
  .fp-content *,
  .fp-content *::before,
  .fp-content *::after{
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}

/* Content Design System v1.1 — ogólne media + chronione dane kontaktowe. */
.fp-content__grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}

.fp-content__media,
.fp-content__figure{
  width:100%;
  margin:18px 0;
}
.fp-content__figure{display:block}
.fp-content__media img,
.fp-content__figure img,
.fp-content__media video,
.fp-content__figure video{
  display:block;
  max-width:100%;
  height:auto;
  border:1px solid var(--fp-content-line);
  border-radius:var(--fp-content-radius-sm);
}
.fp-content__caption{
  margin:8px 0 0;
  color:var(--fp-content-muted-soft);
  font-size:.78rem;
  line-height:1.5;
}

.fp-content__protected-contact{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 10px;
  min-height:42px;
  max-width:100%;
  padding:8px 10px;
  border:1px solid var(--fp-content-line);
  border-radius:var(--fp-content-radius-sm);
  background:rgba(255,255,255,.025);
  color:var(--fp-content-muted);
  font-family:var(--fp-font-ui);
  vertical-align:middle;
}
.fp-content__protected-contact-label{
  color:var(--fp-content-muted-soft);
  font-size:.72rem;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.fp-content__protected-contact-value{
  min-width:0;
  color:var(--fp-text);
  font-family:var(--fp-font-mono);
  font-size:.86rem;
  font-weight:650;
  line-height:1.35;
  overflow-wrap:anywhere;
}
a.fp-content__protected-contact-value{
  color:#ead27d;
  text-decoration:none;
}
.fp-content__protected-contact-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:6px 9px;
  border:1px solid var(--fp-content-accent-line);
  border-radius:6px;
  background:rgba(212,175,55,.065);
  color:#e4c468;
  font-family:var(--fp-font-ui);
  font-size:.70rem;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.055em;
  text-transform:uppercase;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,color .2s ease,opacity .2s ease;
}
.fp-content__protected-contact-button:disabled{
  opacity:.52;
  cursor:wait;
}
.fp-content__protected-contact-status{
  color:var(--fp-content-muted-soft);
  font-size:.76rem;
  line-height:1.4;
}
.fp-content__protected-contact.is-revealed{
  border-color:rgba(212,175,55,.25);
  background:rgba(212,175,55,.045);
}
.fp-content__protected-contact.is-error{
  border-color:rgba(200,107,102,.36);
}

@media (hover:hover) and (pointer:fine){
  .fp-content__protected-contact-button:hover,
  .fp-content__protected-contact-button:focus-visible,
  a.fp-content__protected-contact-value:hover,
  a.fp-content__protected-contact-value:focus-visible{
    border-color:rgba(212,175,55,.45);
    color:#f0d580;
  }
}

@media(max-width:900px){
  .fp-content__grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .fp-content__grid--3{grid-template-columns:1fr}
}
@media(max-width:430px){
  .fp-content__protected-contact{
    display:grid;
    grid-template-columns:1fr;
    align-items:start;
    width:100%;
  }
  .fp-content__protected-contact-button{justify-self:start}
}
