/*
 * OMNI SHIELD – podstrona „Plany” (pl/plans). Ładowana po home.css i service.css
 * (hero .osv-hero, notatka .osv-note). Własne elementy mają prefiks osp-.
 */

/* szybkie linki w hero */
.osp-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.osp-jump a {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: background-color 0.2s ease;
}
.osp-jump a:hover { background: rgba(255, 255, 255, 0.2); }

/* wstęp: karta nachodząca na dół banera */
.osp-intro-section { position: relative; z-index: 2; margin-top: -40px; }
.osp-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 32px;
  border-radius: 22px;
  background: var(--osh-card);
  box-shadow: var(--osh-shadow-lg);
}
.osp-intro-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--osh-tint);
  color: var(--osh-accent);
}
.osp-intro-icon svg { width: 24px; height: 24px; }
.osh .osp-intro p { font-size: 17px; color: var(--osh-text); }
.osh .osp-intro strong { color: var(--osh-ink); font-weight: 600; }

/* sekcja planu: nagłówek w dwóch kolumnach + kafle */
.osp-plan-head {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.osh .osp-plan-head h2 { margin: 0 0 16px; }
.osh .osp-promise { font-size: 17px; line-height: 1.65; color: var(--osh-ink); }
.osp-for {
  padding: 28px;
  border-radius: 20px;
  background: var(--osh-card);
  box-shadow: var(--osh-shadow);
}
.osh .osp-for h3 {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--osh-eyebrow);
}
.osh .osp-for p { margin-bottom: 20px; font-size: 16px; line-height: 1.6; }
.osh .osp-tiles-label {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--osh-eyebrow);
}
.osp-tiles { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.osp-tiles--5 { grid-template-columns: repeat(5, 1fr); }
.osp-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.osp-tiles li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f1f2ff 55%, #e2e5ff 100%);
  box-shadow: 0 10px 24px -16px rgba(30, 40, 120, 0.35), inset 0 0 0 1px rgba(56, 65, 190, 0.12);
}
.osp-txt { display: flex; flex-direction: column; gap: 2px; }
.osp-nw { white-space: nowrap; }
.osp-tiles--3 li { flex-direction: row; align-items: center; gap: 14px; }
.osp-ico {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--osh-btn);
  color: #fff;
}
.osp-tiles--3 .osp-ico { margin-bottom: 0; }
.osp-ico svg { width: 20px; height: 20px; }
.osp-tiles strong { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--osh-ink); }
.osp-tiles small { font-size: 14px; line-height: 1.4; color: var(--osh-muted); }

/* Premium na zdjęciu (jak sekcja planów na stronie głównej) */
.osh .osp-plan-section--premium .osp-promise { color: rgba(255, 255, 255, 0.9); }
.osp-plan-section--premium .osp-for {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.osh .osp-plan-section--premium .osp-for h3,
.osh .osp-plan-section--premium .osp-tiles-label { color: #c9cdff; }
.osh .osp-plan-section--premium .osp-for p { color: rgba(255, 255, 255, 0.88); }
.osp-plan-section--premium .osp-tiles li {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.osp-plan-section--premium .osp-tiles strong { color: #fff; }
.osp-plan-section--premium .osp-tiles small { color: rgba(255, 255, 255, 0.72); }
.osp-plan-section--premium .osp-ico { background: #fff; color: var(--osh-accent); }

/* tabele */
.osp-compare-section { background: #ffffff; }
.osp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--osh-card);
  box-shadow: var(--osh-shadow-lg);
  font-size: 16px;
  line-height: 1.5;
}
.osp-table th, .osp-table td { padding: 16px 24px; text-align: left; vertical-align: middle; }
.osp-table thead th {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--osh-eyebrow);
  background: #f4f5ff;
}
.osp-table tbody th { font-weight: 500; color: var(--osh-ink); }
.osp-table tbody tr + tr > * { border-top: 1px solid var(--osh-line); }

.osp-table--compare { table-layout: fixed; }
.osp-table--compare th:first-child { width: 56%; }
.osp-table--compare thead th:not(:first-child),
.osp-table--compare td { text-align: center; }
.osp-table--compare thead th:last-child { color: #fff; background: var(--osh-accent); }
.osp-table--compare td:last-child { background: #f7f8ff; }
.osp-yes, .osp-no {
  display: inline-block;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 50%;
  text-indent: 100px;
  white-space: nowrap;
  vertical-align: middle;
}
.osp-yes { background: var(--osh-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.osp-no { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4b8cc' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 18px no-repeat; }

.osp-table--addons th:first-child { width: 34%; }
.osp-table--addons th:last-child, .osp-table--addons td:last-child { width: 20%; }
.osp-bill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--osh-accent);
  background: var(--osh-tint);
}

/* ścieżka rozwoju */
.osh .osp-path-title {
  margin: 48px 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--osh-eyebrow);
}
.osp-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: osp-path;
}
.osp-path li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 22px;
  border-radius: 16px;
  text-align: center;
  background: var(--osh-card);
  box-shadow: var(--osh-shadow);
}
.osp-path li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -32px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c56e6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.osp-path li:nth-child(2) { background: var(--osh-tint); }
.osp-path li:nth-child(3) { background: var(--osh-accent); }
.osp-path strong { font-size: 17px; font-weight: 600; color: var(--osh-ink); }
.osp-path span { font-size: 15px; color: var(--osh-muted); }
.osp-path li:nth-child(3) strong { color: #fff; }
.osp-path li:nth-child(3) span { color: rgba(255, 255, 255, 0.82); }

/* CTA końcowe */
.osp-cta-btns { margin-top: 28px; }
.osh .osh-cta .osh-btns { margin-top: 28px; justify-content: center; }
.osp-btn-ghost { color: #fff; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.osp-btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* responsywność */
@media (max-width: 1023px) {
  .osp-plan-head { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .osp-tiles--5 { grid-template-columns: repeat(3, 1fr); }
  .osp-tiles--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .osp-intro { flex-direction: column; align-items: flex-start; padding: 24px; }
  .osp-tiles--5, .osp-tiles--3 { grid-template-columns: 1fr; }
  .osp-path { grid-template-columns: 1fr; gap: 36px; }
  .osp-path li + li::before { top: -30px; left: 50%; transform: translateX(-50%) rotate(90deg); }
  .osp-table th, .osp-table td { padding: 14px 16px; }
  .osp-table--compare { font-size: 15px; }
  .osp-table--compare th:first-child { width: 54%; }
  .osp-table--compare thead th { font-size: 11px; letter-spacing: 0.03em; }

  /* tabela dodatków jako karty */
  .osp-table--addons, .osp-table--addons tbody, .osp-table--addons tr,
  .osp-table--addons th, .osp-table--addons td { display: block; width: auto !important; }
  .osp-table--addons thead { display: none; }
  .osp-table--addons tbody tr { padding: 18px 20px; }
  .osp-table--addons tbody tr + tr { border-top: 1px solid var(--osh-line); }
  .osp-table--addons tbody tr + tr > * { border-top: 0; }
  .osp-table--addons tbody th, .osp-table--addons tbody td { padding: 0; }
  .osp-table--addons tbody td { margin-top: 6px; }
}

/* dodatki: zakres pod nazwą dodatku */
.osh .osp-table--addons .osp-scope { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--osh-muted); }

/* Dla kogo: przyciski obok siebie (wycena + karta katalogowa) */
.osp-for-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.osp-btn-doc { display: inline-flex; align-items: center; gap: 8px; }
.osp-btn-doc svg { width: 16px; height: 16px; flex: none; }
