/* ── Modal: O programie ──────────────────────────────────── */
.k2-about-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.k2-about-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,15,35,.6);
  backdrop-filter: blur(6px);
}
.k2-about-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06);
  width: 680px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: k2-about-in .24s cubic-bezier(.34,1.56,.64,1);
}

@keyframes k2-about-in {
  from { opacity: 0; transform: scale(.93) translateY(16px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* close button — nad layoutem */
.k2-about-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  line-height: 1;
}
.k2-about-close:hover { background: rgba(255,255,255,.26); color: #fff; }

/* Dwukolumnowy układ */
.k2-about-layout {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* Lewa — hero */
.k2-about-hero {
  position: relative;
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px 20px;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
  gap: 4px;
  overflow: hidden;
}
.k2-about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 190px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99,179,237,.18) 0%, transparent 70%);
  pointer-events: none;
}
.k2-about-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  display: block;
  margin-bottom: 6px;
}
.k2-about-hero-brand {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(147,197,253,.8);
}
.k2-about-hero-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 2px 0 0;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.k2-about-hero-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
  justify-content: center;
}
.k2-about-hero-ver {
  background: rgba(255,255,255,.14);
  color: #bfdbfe;
  border: 1px solid rgba(255,255,255,.18);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
}
.k2-about-hero-sep { color: rgba(255,255,255,.25); font-size: .65rem; }
.k2-about-hero-sub { font-size: .65rem; color: rgba(255,255,255,.45); }
.k2-about-hero-lead {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
  margin: 8px 0 6px;
}
.k2-about-feats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
}
.k2-about-feat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  padding: 4px 7px;
  text-align: left;
}

/* Prawa — body */
.k2-about-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 28px 26px 0;
  display: flex;
  flex-direction: column;
}
.k2-about-body a { color: #2563eb; text-decoration: none; }
.k2-about-body a:hover { text-decoration: underline; }

/* Opis główny */
.k2-about-desc { flex: 1 1 auto; display: flex; flex-direction: column; }

.k2-about-desc-title {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 12px;
}

.k2-about-desc-lead {
  font-size: .9rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.55;
  margin: 0 0 20px;
}
.k2-about-desc-lead strong { color: #1d4ed8; font-weight: 700; }

/* Definition list */
.k2-about-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
.k2-about-dl-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: baseline;
}
.k2-about-dl-row:last-child { border-bottom: none; }
.k2-about-dl dt {
  font-size: .73rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.k2-about-dl dd {
  font-size: .8rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* Footer (wewnątrz prawej kolumny) */
.k2-about-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 0 14px;
  border-top: 1px solid #e8edf4;
  font-size: .72rem;
  color: #94a3b8;
  margin-top: auto;
  flex-shrink: 0;
}
.k2-about-foot a { color: #94a3b8; text-decoration: none; }
.k2-about-foot a:hover { color: #475569; }
.k2-about-foot-link { font-weight: 600; color: #3b82f6 !important; }
.k2-about-foot-close {
  margin-left: auto;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--card-border);
  background: transparent;
  color: var(--tx-muted);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.k2-about-foot-close:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* sidebar: przycisk O programie */
.k2-nav-about { opacity: .7; }
.k2-nav-about:hover { opacity: 1; }

/* Dark mode */
.k2.k2--dark .k2-about-box         { background: #1e293b; }
.k2.k2--dark .k2-about-body a      { color: #60a5fa; }
.k2.k2--dark .k2-about-feat        { background: rgba(255,255,255,.05); color: rgba(255,255,255,.55); }
.k2.k2--dark .k2-about-desc-title  { color: #475569; }
.k2.k2--dark .k2-about-desc-lead   { color: #e2e8f0; }
.k2.k2--dark .k2-about-desc-lead strong { color: #93c5fd; }
.k2.k2--dark .k2-about-dl-row      { border-bottom-color: #1e3a5f; }
.k2.k2--dark .k2-about-dl dt       { color: #94a3b8; }
.k2.k2--dark .k2-about-dl dd       { color: #64748b; }
.k2.k2--dark .k2-about-foot        { border-color: #1e3a5f; color: var(--tx-faint); }
.k2.k2--dark .k2-about-foot a      { color: var(--tx-faint); }
.k2.k2--dark .k2-about-foot a:hover{ color: var(--tx-mid); }
.k2.k2--dark .k2-about-foot-link   { color: #60a5fa !important; }

/* Responsywność: na wąskim ekranie hero idzie na górę */
@media (max-width: 520px) {
  .k2-about-layout { flex-direction: column; }
  .k2-about-hero { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 16px; gap: 8px; text-align: left; align-items: center; }
  .k2-about-hero::before { width: 100%; }
  .k2-about-feats { display: none; }
  .k2-about-hero-lead { display: none; }
  .k2-about-box { max-height: calc(100vh - 32px); }
}
