/* ===================================================
   MARIUSZ DOMERADZKI — additions.css | v2.0
   Nowe komponenty: stats bar, kroki, cookie, CTA float,
   back-to-top, FAQ, page transitions
   =================================================== */

/* ─── PAGE TRANSITION ─── */
.page-transition {
  position: fixed; inset: 0;
  background: var(--navy-deep);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s cubic-bezier(.4,0,.2,1);
}
.page-transition.active { opacity: 1; pointer-events: all; }
body { animation: fadeIn .4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
}
.stats-bar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.stat-item {
  padding: 36px 28px; text-align: center;
  border-right: 1px solid var(--cream-dark);
  position: relative;
  transition: background .3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(201,168,76,.04); }
.stat-num {
  font-family: var(--serif); font-size: 44px; font-weight: 600;
  color: var(--navy); line-height: 1; letter-spacing: -.03em; margin-bottom: 8px;
  display: flex; align-items: baseline; justify-content: center; gap: 3px;
}
.stat-num .stat-unit {
  font-size: 22px; color: var(--gold); font-style: italic; font-weight: 400;
}
.stat-num .stat-suffix {
  font-family: var(--cond); font-size: 16px; color: var(--gold);
  font-style: normal; font-weight: 600; letter-spacing: .05em;
}
.stat-lbl {
  font-family: var(--cond); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-light);
}
.stat-desc {
  font-size: 12px; font-weight: 300; color: var(--text-light);
  margin-top: 4px; line-height: 1.4;
}
@media (max-width: 900px) {
  .stats-bar-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--cream-dark); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--cream-dark); border-right: none; }
}
@media (max-width: 560px) {
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 24px 16px; }
  .stat-num { font-size: 34px; }
}

/* ─── HOW WE WORK — 4 STEPS ─── */
.steps-section { background: var(--navy); padding: 104px 0; position: relative; overflow: hidden; }
.steps-section::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,.15), transparent);
}
.steps-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; position: relative; margin-top: 72px;
}
.steps-connector {
  position: absolute; top: 44px; left: calc(12.5% + 20px); right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg,
    rgba(201,168,76,.1),
    rgba(201,168,76,.5) 30%,
    rgba(201,168,76,.5) 70%,
    rgba(201,168,76,.1)
  );
}
.steps-connector::after {
  content: '';
  position: absolute; top: -2px; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.2), transparent);
  filter: blur(3px);
}
.step {
  padding: 0 28px 0 0; position: relative; z-index: 1;
}
.step:last-child { padding-right: 0; }
.step-n {
  width: 88px; height: 88px;
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  color: var(--gold); margin-bottom: 28px;
  position: relative;
  transition: border-color .3s, background .3s;
}
.step-n::after {
  content: '';
  position: absolute; inset: -4px;
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 50%;
}
.step:hover .step-n {
  border-color: rgba(201,168,76,.65);
  background: rgba(201,168,76,.08);
}
.step-tag {
  font-family: var(--cond); font-size: 10px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 10px;
}
.step-title {
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  color: var(--white); margin-bottom: 12px; line-height: 1.3;
}
.step-text {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,.45); line-height: 1.8;
}
@media (max-width: 900px) {
  .steps-section { padding: 72px 0; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .steps-connector { display: none; }
  .step { padding: 0; }
}
@media (max-width: 580px) {
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── FAQ ─── */
.faq-container { max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--cream-dark);
  overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid var(--cream-dark); }
.faq-q {
  padding: 22px 0; font-family: var(--serif); font-size: 19px; font-weight: 500;
  color: var(--navy); cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; list-style: none; transition: color .2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--gold); }
.faq-icon {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .25s, border-color .25s;
}
.faq-icon svg {
  width: 14px; height: 14px; stroke: var(--gold); fill: none;
  stroke-width: 2.5; transition: transform .35s cubic-bezier(.4,0,.2,1);
}
details[open] .faq-icon { background: rgba(201,168,76,.1); border-color: var(--gold); }
details[open] .faq-icon svg { transform: rotate(45deg); }
.faq-a {
  padding: 0 48px 24px 0; font-size: 15px; font-weight: 300;
  color: var(--text-light); line-height: 1.9;
  animation: faqOpen .3s ease;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── FLOATING CTA BUTTON ─── */
.float-cta {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 500;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.float-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--gold-light) !important;
  padding: 14px 22px; border-radius: 100px;
  text-decoration: none; font-family: var(--cond);
  font-size: 13px; font-weight: 600; letter-spacing: .1em;
  box-shadow: 0 8px 32px rgba(9,20,34,.35), 0 2px 8px rgba(9,20,34,.2);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  white-space: nowrap;
  border: 1px solid rgba(201,168,76,.25);
}
.float-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(9,20,34,.42);
}
.float-btn svg {
  width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2; flex-shrink: 0;
}
.float-btn-small {
  width: 44px; height: 44px; padding: 0; justify-content: center;
  border-radius: 50%;
  display: none;
}
.float-cta.minimal .float-btn { display: none; }
.float-cta.minimal .float-btn-small { display: flex; }
.float-pulse {
  position: absolute; top: 0; right: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201,168,76,.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%  { box-shadow: 0 0 0 0 rgba(201,168,76,.45); }
  70% { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
  100%{ box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}
@media (max-width: 640px) {
  .float-cta { bottom: 80px; right: 16px; }
  .float-btn { display: none; }
  .float-btn-small { display: flex; }
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 499;
  box-shadow: 0 4px 16px rgba(9,20,34,.1);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, box-shadow .2s, border-color .2s;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover {
  border-color: var(--gold); box-shadow: 0 8px 24px rgba(9,20,34,.18);
}
.back-to-top svg {
  width: 16px; height: 16px; stroke: var(--gold); fill: none;
  stroke-width: 2.5; transition: transform .2s;
}
.back-to-top:hover svg { transform: translateY(-2px); }
@media (max-width: 640px) {
  .back-to-top { bottom: 80px; left: 16px; }
}

/* ─── COOKIE CONSENT BANNER ─── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy-deep);
  border-top: 1px solid rgba(201,168,76,.2);
  padding: 18px 28px;
  z-index: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 40px rgba(5,13,24,.5);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-text {
  font-size: 13.5px; font-weight: 300; color: rgba(255,255,255,.55);
  line-height: 1.6; flex: 1; min-width: 200px;
}
.cookie-text a {
  color: var(--gold-light); text-decoration: underline;
  text-decoration-color: rgba(201,168,76,.4);
}
.cookie-text a:hover { color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--cond); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 20px; border-radius: var(--radius); cursor: pointer;
  border: none; transition: .2s; white-space: nowrap;
}
.cookie-btn-accept {
  background: var(--gold); color: var(--navy);
}
.cookie-btn-accept:hover { background: var(--gold-light); }
.cookie-btn-reject {
  background: transparent; color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.12);
}
.cookie-btn-reject:hover { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }
@media (max-width: 640px) {
  .cookie-banner { padding: 16px 20px 20px; }
  .cookie-text { font-size: 12.5px; }
}
