/* ==========================================================================
   O serwisie
   Odwzorowanie makiety _docs/o serwisie.html
   ========================================================================== */

/* --- PASEK KOTWIC --------------------------------------------------------- */

.anchor-tabs {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(251, 250, 246, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.anchor-in { display: flex; overflow-x: auto; scrollbar-width: none; }
.anchor-in::-webkit-scrollbar { display: none; }

.anch {
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}

.anch:hover,
.anch.is-active { color: var(--ink); border-bottom-color: var(--mint-d); }

/* --- UKŁAD DWUKOLUMNOWY --------------------------------------------------- */

.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 56px 0 80px;
  align-items: start;
}

@media (max-width: 860px) { .content-layout { grid-template-columns: 1fr; } }

.content-main { min-width: 0; }
.content-section { margin-bottom: 60px; scroll-margin-top: 130px; }
.content-section h2 { font-size: 32px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--mint-bg); }
.content-section h3 { font-size: 21px; margin: 28px 0 12px; }
.content-section p { color: var(--ink-soft); font-size: 16px; margin-bottom: 16px; line-height: 1.7; }
.content-section p:last-child { margin-bottom: 0; }
.content-section ul { color: var(--ink-soft); font-size: 16px; padding-left: 1.3em; margin-bottom: 16px; }
.content-section li + li { margin-top: .4em; }
.content-section a { color: var(--mint-d); font-weight: 600; }

@media (max-width: 720px) { .content-section h2 { font-size: 26px; } }

/* --- SIATKA KROKÓW -------------------------------------------------------- */

.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }

@media (max-width: 600px) { .method-grid { grid-template-columns: 1fr; } }

.method-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }

.method-item .n {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-d);
  border: 1.5px solid var(--mint);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.method-item h4 { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.method-item p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* --- TABELA WAG ----------------------------------------------------------- */

.weights-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 20px 0;
}

.wt-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  align-items: center;
}

.wt-row:last-child { border-bottom: none; }
.wt-row.head { background: var(--ink); color: var(--paper); font-weight: 600; font-size: 13px; }
.wt-bar { height: 6px; background: var(--mint-bg); border-radius: 3px; overflow: hidden; }
.wt-bar-fill { height: 6px; background: var(--mint); border-radius: 3px; }
.wt-pct { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; text-align: center; }
.wt-desc { font-size: 13.5px; color: var(--ink-soft); }

@media (max-width: 600px) {
  .wt-row { grid-template-columns: 1fr 70px; }
  .wt-desc { grid-column: 1 / -1; }
}

/* --- BOKS WYRÓŻNIONY ------------------------------------------------------ */

.aff-box { background: var(--amber-bg); border: 2px solid var(--amber); border-radius: 16px; padding: 24px 28px; margin: 24px 0; }
.aff-box h4 { font-family: 'Fraunces', serif; font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.aff-box p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.aff-box p:last-child { margin-bottom: 0; }
.aff-box strong { color: var(--ink); font-weight: 600; }

/* --- ZESPÓŁ --------------------------------------------------------------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0; }

@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .team-grid { grid-template-columns: 1fr; } }

.team-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-align: center; box-shadow: var(--shadow); }

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint-bg);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  overflow: hidden;
  color: var(--mint-d);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .rp-icon { width: 24px; height: 24px; }

.team-card .name { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.team-card .role { font-size: 13px; color: var(--grey); }
.team-card .bio { font-size: 13px; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }

/* --- KOLUMNA BOCZNA ------------------------------------------------------- */

.sidebar { position: sticky; top: 130px; }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.sidebar-card h4 { font-family: 'Fraunces', serif; font-size: 17px; margin-bottom: 14px; }
.sidebar-card.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sidebar-card.dark h4 { color: var(--paper); }
.sidebar-card.dark .sidebar-text { color: #CDDAD3; }

.sidebar-text { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.55; }

.sidebar-links { list-style: none; display: flex; flex-direction: column; }

.sidebar-links a {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sidebar-links li:last-child a { border-bottom: none; }
.sidebar-links a:hover { color: var(--ink); }
.sidebar-links a .arr { color: var(--mint-d); }
.sidebar-links a.is-active { color: var(--mint-d); font-weight: 600; }

.sidebar-cta {
  display: block;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  padding: 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-card.dark .sidebar-cta { background: var(--mint); }

.update-pill { background: var(--mint-bg); border: 1px solid var(--mint); border-radius: 10px; padding: 14px; margin-bottom: 18px; }
.update-pill .label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mint-d); margin-bottom: 4px; }
.update-pill p { font-size: 13.5px; color: var(--ink-soft); }
