/* ===== KNOWLEDGE PAGE ===== */

main,
.page-wrapper,
.site-content,
.page-content {
  background: #ffffff;
}

body {
  font-family: "Inter", Arial, sans-serif;
}

/* ===== LAYOUT ===== */

.kb-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 38px 28px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.kb-article,
.kb-header,
.kb-section-heading-text,
.kb-feature-content {
  min-width: 0;
}

.kb-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  width: 100%;
}

.kb-section {
  margin-bottom: 22px;
}

/* ===== HERO ===== */

.kb-hero {
  margin-bottom: 30px;
}

.kb-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(260px, 420px);
  gap: 48px;
  align-items: center;
  justify-content: space-between;
  min-height: 320px;
}

.kb-hero-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-width: 0;
}

.kb-hero-icon {
  display: none;
}

.kb-header h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2rem, 2.45vw, 2.75rem);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #0b1730;
}

.kb-header h1::after {
  display: none;
}

.kb-intro {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #536174;
}

.kb-hero-actions {
  max-width: 620px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.kb-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kb-hero-button:hover,
.kb-hero-button:focus {
  transform: translateY(-1px);
}

.kb-hero-button--primary {
  background: #ffffff;
  color: #e5007d;
  border: 1.5px solid #e5007d;
  box-shadow: 0 10px 24px rgba(229, 0, 125, 0.1);
}

.kb-hero-button--primary:hover,
.kb-hero-button--primary:focus {
  background: #fff5fa;
  color: #c9006d;
  border-color: #c9006d;
  box-shadow: 0 12px 28px rgba(229, 0, 125, 0.14);
}

.kb-hero-button--secondary {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid rgba(31, 42, 68, 0.24);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  font-weight: 500;
}

.kb-hero-button--secondary:hover,
.kb-hero-button--secondary:focus {
  background: #f8fafc;
  color: #111827;
  border-color: rgba(31, 42, 68, 0.42);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

/* ===== HERO VISUAL ===== */

.kb-hero-visual {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 420px;
  width: 100%;
  min-height: 260px;
  overflow: hidden;
}

.kb-hero-visual-bg {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #f1f4f8;
  transform: translateY(-50%);
  z-index: 0;
}

.kb-hero-image,
.kb-hero-visual img {
  position: relative;
  z-index: 2;
  max-width: min(100%, 380px);
  max-height: 260px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.kb-hero-dots {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  z-index: 1;
  opacity: 0.28;
  background-image: radial-gradient(#9aa6b2 1.6px, transparent 1.6px);
  background-size: 12px 12px;
}

/* ===== NOTICE ===== */

.kb-notice {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #dbe6f1;
  border-left: 4px solid #7fc7d0;
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.kb-notice-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 600;
  color: #12203b;
}

.kb-notice-text {
  color: #475467;
  line-height: 1.75;
}

.kb-notice-text > *:last-child {
  margin-bottom: 0;
}

/* ===== QUICK CARD ===== */

.kb-quick-card {
  background: #ffffff;
  border: 1px solid #e4ebf3;
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.kb-quick-header {
  margin-bottom: 14px;
}

.kb-quick-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
  color: #12203b;
}

.kb-quick-steps {
  color: #475467;
  line-height: 1.75;
}

.kb-quick-steps p {
  margin: 0 0 14px;
}

.kb-quick-steps ul,
.kb-quick-steps ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.kb-quick-actions {
  margin-top: 20px;
}

/* ===== MAIN BUTTONS ===== */

.kb-quick-button,
.kb-cta-button,
.kb-sidebar-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f2a44 0%, #e5007d 100%);
  color: #ffffff;
  border: 0;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 12px 24px rgba(229, 0, 125, 0.16);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.kb-quick-button:hover,
.kb-quick-button:focus,
.kb-cta-button:hover,
.kb-cta-button:focus,
.kb-sidebar-help-button:hover,
.kb-sidebar-help-button:focus {
  background: linear-gradient(135deg, #14203a 0%, #c9006d 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ===== SECTIONS ===== */

.kb-sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.kb-section-card {
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-radius: 20px;
  padding: 34px 38px 36px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.kb-section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.kb-section-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 16px;
  background: #f3f5f7;
  color: #1f2a44;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kb-section-icon svg {
  width: 25px;
  height: 25px;
}

.kb-section-heading-text h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #12203b;
}

.kb-section-heading-text h2::after,
.kb-content--legacy h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e5007d;
}

.kb-section-intro {
  margin: 12px 0 0;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: #667085;
}

/* ===== RICHTEXT ===== */

.kb-richtext > *:first-child,
.kb-content--legacy > *:first-child {
  margin-top: 0 !important;
}

.kb-richtext > *:last-child,
.kb-content--legacy > *:last-child {
  margin-bottom: 0 !important;
}

.kb-richtext ul,
.kb-richtext ol,
.kb-content--legacy ul,
.kb-content--legacy ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.kb-richtext p,
.kb-content--legacy p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.78;
  color: #344054;
}

.kb-richtext li,
.kb-content--legacy li {
  margin-bottom: 10px;
  color: #344054;
  line-height: 1.72;
}

.kb-richtext strong,
.kb-content--legacy strong {
  color: #12203b;
  font-weight: 700;
}

.kb-richtext a,
.kb-notice a,
.kb-quick-steps a,
.kb-content--legacy a,
.kb-sidebar-toc-like a,
#kb-toc a,
.kb-breadcrumbs a {
  color: #1f2a44;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 42, 68, 0.22);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.kb-richtext a:hover,
.kb-notice a:hover,
.kb-quick-steps a:hover,
.kb-content--legacy a:hover,
.kb-sidebar-toc-like a:hover,
#kb-toc a:hover,
.kb-breadcrumbs a:hover {
  color: #e5007d;
  border-bottom-color: #e5007d;
}

.kb-richtext h2,
.kb-content--legacy h2 {
  margin: 42px 0 16px;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 600;
  color: #12203b;
}

.kb-content--legacy h2:first-child {
  margin-top: 0;
}

.kb-richtext h3,
.kb-content--legacy h3 {
  margin: 26px 0 10px;
  font-size: 1.18rem;
  line-height: 1.3;
  font-weight: 700;
  color: #12203b;
}

.kb-richtext h4,
.kb-content--legacy h4 {
  margin: 20px 0 10px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: #12203b;
}

/* ===== FEATURE / INSTRUCTION CARDS LIKE HOME SHORTCUTS ===== */

.kb-feature-grid,
.kb-instruction-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
  width: 100%;
}

.kb-feature-item,
.kb-instruction-card {
  position: relative;
  min-height: 190px;
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #eef1f4;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: #122033;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kb-feature-item:hover,
.kb-instruction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  border-color: #d9e0ea;
}

.kb-feature-item::after,
.kb-instruction-card::after {
  display: none !important;
}

.kb-feature-icon,
.kb-instruction-card-icon {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 999px;
  background: #f4f6fb;
  color: #1f2a44;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.kb-feature-icon svg,
.kb-instruction-card-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
}

.kb-feature-content,
.kb-instruction-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.kb-feature-content h3,
.kb-instruction-card-content h3 {
  margin: 0;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
  color: #101828;
}

.kb-feature-content p,
.kb-instruction-card-content p {
  display: block;
  margin: 0;
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #667085;
}

.kb-feature-item::before {
  content: "→";
  margin-top: auto;
  padding-top: 18px;
  font-size: 1.5rem;
  line-height: 1;
  color: #1f2a44;
}

.kb-feature-item:hover::before {
  color: #e5007d;
}

.kb-instruction-card-link {
  margin-top: auto;
  padding-top: 18px;
  color: #1f2a44;
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 600;
}

.kb-instruction-card-link span {
  font-size: 1rem;
  line-height: 1;
}

.kb-instruction-card:hover .kb-instruction-card-link,
.kb-instruction-card-link:hover {
  color: #e5007d;
}

/* ===== CTA BOX ===== */

.kb-cta-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e6ebf2;
}

.kb-cta-text p:last-child {
  margin-bottom: 0;
}

.kb-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== LEGACY CONTENT ===== */

.kb-content--legacy {
  margin-top: 22px;
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-radius: 20px;
  padding: 30px 32px 36px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

/* ===== SIDEBAR ===== */

.kb-sidebar-nav,
.kb-sidebar-help,
.kb-sidebar-security {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.kb-sidebar-nav {
  padding: 24px 26px 18px;
  margin-bottom: 20px;
}

.kb-sidebar-title {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8edf3;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  color: #12203b;
}

.kb-sidebar-title::before,
.kb-sidebar-help-title::before {
  display: none;
}

#kb-toc,
.kb-sidebar-toc-like {
  list-style: none;
  margin: 0;
  padding: 0;
}

#kb-toc::before,
.kb-sidebar-toc-like::before,
#kb-toc li:first-child::before,
.kb-sidebar-toc-like li:first-child::before {
  display: none;
}

#kb-toc li,
.kb-sidebar-toc-like li {
  border-top: 1px solid #eef2f6;
}

#kb-toc li:first-child,
.kb-sidebar-toc-like li:first-child {
  border-top: 0;
}

#kb-toc a,
.kb-sidebar-toc-like a {
  position: relative;
  display: block;
  padding: 14px 28px 14px 0;
  color: #344054;
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 600;
  border-bottom: 0;
}

#kb-toc a::after,
.kb-sidebar-toc-like a::after {
  content: "›";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #667085;
  font-size: 1.35rem;
  line-height: 1;
}

#kb-toc a:hover,
.kb-sidebar-toc-like a:hover {
  color: #e5007d;
}

/* ===== SIDEBAR HELP ===== */

.kb-sidebar-help {
  margin-top: 20px;
  padding: 24px 26px;
}

.kb-sidebar-help-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
  color: #12203b;
}

.kb-sidebar-help-text {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #667085;
}

.kb-sidebar-help-button {
  width: 100%;
  justify-content: space-between;
  margin: 0;
}

.kb-sidebar-help-button::after {
  content: "→";
  font-size: 1rem;
}

/* ===== SECURITY NOTE ===== */

.kb-sidebar-security {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: none;
}

.kb-sidebar-security-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: #f1f3f5;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kb-sidebar-security-icon svg {
  width: 23px;
  height: 23px;
}

.kb-sidebar-security h3 {
  margin: 0 0 3px;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 700;
  color: #12203b;
}

.kb-sidebar-security p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #667085;
}

.kb-sidebar-security a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #667085;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
}

.kb-sidebar-security a:hover {
  color: #e5007d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== BREADCRUMBS ===== */

.kb-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: -12px 0 28px;
  padding: 0;
  color: #8a94a6;
  font-size: 0.82rem;
  line-height: 1.4;
}

.kb-breadcrumbs a {
  color: #667085;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 0;
}

.kb-breadcrumbs a:hover {
  color: #e5007d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kb-breadcrumbs span {
  color: #98a2b3;
}

.kb-breadcrumbs span[aria-current="page"] {
  color: #8a94a6;
  font-weight: 500;
}

/* ===== SERVICE LOGIN PAGE BLOCK ===== */

.service-login-article {
  min-width: 0;
}

.service-login-lead {
  margin: 0 0 26px;
  font-size: 1rem;
  line-height: 1.7;
  color: #475467;
  max-width: 860px;
}

.service-login-section {
  margin: 22px 0 30px;
}

.service-login-section-header {
  margin-bottom: 16px;
}

.service-login-section-header h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: #122033;
}

.service-login-section-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #475467;
}

.service-login-list {
  display: grid;
  gap: 16px;
}

.service-login-card {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 10px 24px rgba(20, 30, 60, 0.05);
}

.service-login-card-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 700;
  color: #122033;
}

.service-login-card-desc {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #475467;
}

.service-login-meta {
  display: grid;
  gap: 10px;
}

.service-login-meta-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid #eef2f6;
}

.service-login-meta-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2a44;
}

.service-login-meta-value {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #475467;
}

.service-login-actions {
  margin-top: 18px;
}

.service-login-actions a,
.service-login-actions .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 10px;
  background: #ffffff;
  color: #e5007d;
  border: 1.5px solid #e5007d;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(229, 0, 125, 0.1);
}

.service-login-actions a:hover,
.service-login-actions .action-btn:hover {
  background: #fff5fa;
  color: #c9006d;
  border-color: #c9006d;
}

.service-login-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
}

.service-login-sidebar-list li {
  margin: 0;
}

.service-login-sidebar-list a {
  display: block;
  padding: 10px 18px;
  color: #344054;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.45;
  border-left: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.service-login-sidebar-list a:hover {
  background: #f8fafc;
  color: #e5007d;
  border-left-color: #e5007d;
}

/* ===== ADMIN EDIT BUTTON ===== */

.admin-edit-page-link {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1f2a44;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.admin-edit-page-link:hover {
  background: #e5007d;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
  .kb-hero-main {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  .kb-header h1,
  .kb-intro,
  .kb-hero-actions {
    max-width: 720px;
  }

  .kb-hero-visual {
    justify-self: start;
    min-height: 220px;
  }

  .kb-hero-image,
  .kb-hero-visual img {
    max-width: 340px;
    max-height: 230px;
  }

  .kb-feature-grid,
  .kb-instruction-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .kb-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .kb-sidebar {
    position: static;
    width: 100%;
  }

  .kb-sidebar-nav,
  .kb-sidebar-help,
  .kb-sidebar-security {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .kb-layout {
    padding: 28px 20px 56px;
  }

  .kb-hero-main {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
  }

  .kb-hero-visual {
    display: none;
  }

  .kb-header h1 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .kb-section-card,
  .kb-content--legacy,
  .kb-quick-card,
  .kb-notice,
  .kb-sidebar-nav,
  .kb-sidebar-help {
    padding: 22px;
    border-radius: 16px;
  }

  .kb-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 620px) {
  .kb-feature-grid,
  .kb-instruction-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .kb-layout {
    padding: 24px 16px 48px;
  }

  .kb-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kb-hero-button,
  .kb-cta-button,
  .kb-quick-button {
    width: 100%;
  }

  .service-login-card {
    padding: 20px 18px;
  }

  .service-login-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ===== FEATURES – spokojniej niż kafelki linków ===== */

.kb-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.kb-feature-item {
  min-height: auto;
  padding: 18px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  box-shadow: none;

  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  text-align: left;
}

.kb-feature-item:hover {
  transform: none;
  box-shadow: none;
  border-color: #d9e0ea;
  background: #ffffff;
}

.kb-feature-item::before,
.kb-feature-item::after {
  display: none !important;
}

.kb-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  margin: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid #e2e8f0;
}

.kb-feature-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.kb-feature-content h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 650;
  color: #122033;
}

.kb-feature-content p {
  display: block;
  margin: 6px 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #667085;
}

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

/* ===== NOTICE / WARTO WIEDZIEĆ – dopasowane do nowego layoutu ===== */

.kb-notice {
  position: relative;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-left: 0;
  border-radius: 18px;
  padding: 24px 26px 24px 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.kb-notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 999px;
  background: #e5007d;
}

.kb-notice-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
  color: #122033;
}

.kb-notice-text {
  color: #475467;
  line-height: 1.72;
}

.kb-notice-text p {
  margin: 0 0 12px;
}

.kb-notice-text p:last-child {
  margin-bottom: 0;
}

.kb-notice a {
  color: #1f2a44;
  font-weight: 700;
  border-bottom: 1px solid rgba(31, 42, 68, 0.22);
}

.kb-notice a:hover {
  color: #e5007d;
  border-bottom-color: #e5007d;
}

/* ===== FINAL: mniej różu w treści ===== */

/* alert / Warto wiedzieć - kreska neutralna */
.kb-notice::before {
  background: #cfd6e2;
}

/* zwykłe linki w treści i kartach */
.kb-richtext a,
.kb-notice a,
.kb-quick-steps a,
.kb-content--legacy a,
.kb-instruction-card-link,
.kb-breadcrumbs a {
  color: #344054;
  border-bottom: 1px solid rgba(52, 64, 84, 0.26);
  text-decoration: none;
}

/* hover dopiero różowy */
.kb-richtext a:hover,
.kb-notice a:hover,
.kb-quick-steps a:hover,
.kb-content--legacy a:hover,
.kb-instruction-card-link:hover,
.kb-breadcrumbs a:hover {
  color: #e5007d;
  border-bottom-color: #e5007d;
}

/* link w kafelku instrukcji bardziej jak tekstowy link, nie ozdoba */
.kb-instruction-card-link {
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
  color: #475467;
}

/* strzałka też spokojna */
.kb-instruction-card-link span,
.kb-instruction-card-link::after {
  color: #667085;
}

.kb-instruction-card:hover .kb-instruction-card-link {
  color: #344054;
}

.kb-instruction-card:hover .kb-instruction-card-link span,
.kb-instruction-card:hover .kb-instruction-card-link::after {
  color: #344054;
}

.kb-richtext img,
.kb-content img {
  max-width: 100px;
  height: auto;
  border-radius: 12px;
  cursor: zoom-in;
}

.instruction-lightbox[hidden] {
  display: none;
}

.instruction-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.instruction-lightbox-image {
  /* max-width: 92vw;
  max-height: 88vh; */
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.instruction-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10000;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.instruction-lightbox-image {
  width: auto;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}


.kb-image-preview-hint {
  font-size: 13px;
  color: #414141;
  margin-top: 6px;
  margin-bottom: 12px;
}

.kb-cta-button{
    background: #ffffff;
    color: #1f2a44;
    border: 1px solid rgba(31, 42, 68, 0.24);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    font-weight: 500;
}



.kb-cta-button:hover,
.kb-cta-button:focus {
  background: #f8fafc;
  color: #111827;
  border-color: rgba(31, 42, 68, 0.42);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}
.kb-sidebar-help-button--missing {
  margin-top: 10px;
  background: #ffffff;
  color: #164449;
  border: 1px solid #d7e2dd;
  box-shadow: none;
}



.kb-sidebar-help-button--missing:hover,
.kb-sidebar-help-button--missing:hover:focus {
  background: #f7fbf6;
}

.kb-sidebar-help-button--missing {
  color: #1f2a44;
  border-color: #ccd4df;
}

.kb-sidebar-help-button--missing:hover,
.kb-sidebar-help-button--missing:focus {
  background: #f7f9fc;
    color: #344054;
}
