/* OMNISHIELD – ankieta NIS2 (prefiks osn-). Korzysta ze zmiennych i przycisków z home.css. */

.osn-section { padding-top: 72px; scroll-margin-top: 72px; }
.osn-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 52px;
  border-radius: 28px;
  background: var(--osh-card);
  box-shadow: var(--osh-shadow-lg);
  overflow: hidden;
}
.osn-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #4c56e6 0%, #3841be 55%, #232a8a 100%);
}
.osn-stage { min-height: 300px; }
.osn-stage h3 { outline: none; }
.osn h3 span { color: var(--osh-accent); }

/* ekran startowy */
.osn-result h3, .osn-thanks h3 {
  font-family: "Inter Display Medium", "Inter Display Medium Placeholder", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.osn-micro { display: block; margin-top: 14px; font-size: 14px; color: var(--osh-muted); }

/* pasek postępu */
.osn-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; font-size: 14px; font-weight: 600; color: var(--osh-eyebrow); white-space: nowrap; }
.osn-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--osh-tint); overflow: hidden; }
.osn-bar i { display: block; height: 100%; border-radius: 6px; background: var(--osh-btn); transition: width .35s ease; }

/* pytanie */
.osn-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.osn-q legend { padding: 0; }
.osn-q h3 { font-size: 24px; line-height: 1.3; }
.osn-hint { margin-top: 8px !important; font-size: 15px; color: var(--osh-muted); }
.osn-opts { display: grid; gap: 12px; margin-top: 22px; }
.osn-opts--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.osn-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(56, 65, 190, 0.18);
  cursor: pointer;
  transition: box-shadow .15s ease, background .15s ease;
}
.osn-opt--short { align-items: center; }
.osn-opt:hover { background: #f7f7ff; box-shadow: inset 0 0 0 1px rgba(56, 65, 190, 0.4); }
.osn-opt input { position: absolute; opacity: 0; pointer-events: none; }
.osn-opt-mark { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(56, 65, 190, 0.45); background: #fff; transition: box-shadow .15s ease; }
.osn-opt--short .osn-opt-mark { margin-top: 0; }
.osn-opt-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.5; color: var(--osh-muted); }
.osn-opt-text strong { font-size: 16px; color: var(--osh-ink); font-weight: 600; }
.osn-opt:has(input:checked) { background: var(--osh-tint); box-shadow: inset 0 0 0 2px var(--osh-btn); }
.osn-opt input:checked + .osn-opt-mark { box-shadow: inset 0 0 0 6px var(--osh-btn); }
.osn-opt input:focus-visible + .osn-opt-mark { outline: 2px solid var(--osh-btn); outline-offset: 3px; }

/* nawigacja */
.osn-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.osn-nav .osh-btn[disabled] { opacity: .45; cursor: not-allowed; }
.osn .osh-btn { border: 0; font: inherit; cursor: pointer; }

/* loader */
.osn-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 300px; color: var(--osh-muted); }
.osn-spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--osh-tint); border-top-color: var(--osh-btn); animation: osn-spin .8s linear infinite; }
@keyframes osn-spin { to { transform: rotate(360deg); } }

/* wynik */
.osn-result { --osn-c: #c8382c; --osn-bg: #fdecea; }
.osn-result--w { --osn-c: #c46a0a; --osn-bg: #fff3e0; }
.osn-result--p { --osn-c: #8a6d00; --osn-bg: #fff8d6; }
.osn-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px; border-radius: 32px; background: var(--osn-bg); color: var(--osn-c); font-size: 14px; font-weight: 600; }
.osn-badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--osn-c); }
.osn-result > p { margin-top: 14px; }
.osn-note { padding: 14px 18px; border-radius: 14px; background: var(--osh-tint); font-size: 15px; line-height: 1.6; }
.osn-note strong { color: var(--osh-ink); }
.osn-disclaimer { font-size: 13px; line-height: 1.55; color: var(--osh-muted); }
.osn-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.osn-restart { margin-top: 18px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--osh-accent); text-decoration: underline; cursor: pointer; }

/* formularz */
.osn-form-wrap { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--osh-line); }
.osn-form h3 { font-size: 24px; }
.osn-form > p { margin-top: 8px; color: var(--osh-muted); font-size: 16px; }
.osn-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.osn-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--osh-ink); }
.osn-fields input {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(56, 65, 190, 0.22);
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--osh-ink);
}
.osn-fields input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--osh-btn); }
.osn-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--osh-muted); cursor: pointer; }
.osn-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--osh-btn); }
.osn-check a { color: var(--osh-accent); }
.osn-req { margin-top: 10px !important; font-size: 13px; color: var(--osh-muted); }
.osn-error { margin-top: 12px !important; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #a12a20; font-size: 14px; }
.osn-nav--form { justify-content: flex-start; flex-wrap: wrap; }

/* podziękowanie */
.osn-thanks { text-align: center; max-width: 620px; margin: 0 auto; }
.osn-thanks-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--osh-tint); color: var(--osh-btn); }
.osn-thanks-ico svg { width: 28px; height: 28px; }
.osn-thanks > p { margin-top: 14px; }
.osn-thanks .osh-btn { margin-top: 24px; }
.osn-thanks a:not(.osh-btn) { color: var(--osh-accent); }

/* banner wejściowy (strona główna, baza wiedzy) */
.osn-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, #4c56e6 0%, #3841be 55%, #232a8a 100%);
  box-shadow: 0 30px 60px -30px rgba(30, 40, 140, 0.6);
  color: rgba(255, 255, 255, 0.85);
}
.osn-promo h2, .osn-promo h3 { color: #fff !important; font-size: clamp(24px, 2.8vw, 32px) !important; line-height: 1.25 !important; }
.osn-promo p { margin-top: 8px !important; font-size: 17px; }
.osn-promo .osh-btn { flex: none; }
.osn-promo-section { padding: 56px 0; }

@media (max-width: 767px) {
  .osn-section { padding-top: 48px; }
  .osn-card { padding: 34px 20px 28px; border-radius: 22px; }
  .osn-opts--row { grid-template-columns: 1fr; }
  .osn-fields { grid-template-columns: 1fr; }
  .osn-nav .osh-btn, .osn-ctas .osh-btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .osn-nav:not(.osn-nav--form) { flex-direction: row; }
  .osn-nav:not(.osn-nav--form) .osh-btn { flex: 1 1 0; }
  .osn-promo { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .osn-promo-section { padding: 40px 0; }
}

/* ekran startowy: baner w kolorach marki */
.osn-card { transition: background .3s ease; }
.osn-card--start {
  max-width: 1072px;
  padding: 0;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(140, 150, 255, 0.35) 0%, rgba(140, 150, 255, 0) 60%),
    linear-gradient(135deg, #4c56e6 0%, #3841be 55%, #232a8a 100%);
  box-shadow: 0 30px 60px -30px rgba(30, 40, 140, 0.6);
}
.osn-card--start::before { display: none; }
.osn-card--start .osn-stage { min-height: 0; }
.osn-start { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: stretch; color: rgba(255, 255, 255, 0.82); }
.osn-start-main { padding: 52px 48px 52px 56px; display: flex; flex-direction: column; justify-content: center; }
.osn-start-eyebrow {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 32px;
  background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
}
.osn-start-eyebrow svg { width: 15px; height: 15px; }
.osn-start h3 {
  margin-top: 20px;
  color: #fff !important;
  font-family: "Inter Display Medium", "Inter Display Medium Placeholder", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.osn .osn-start h3 span { color: #c9cdff; }
.osn-start-main > p { margin-top: 16px; font-size: 17px; line-height: 1.6; }
.osn-start-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.osn-start-cta .osh-btn { gap: 10px; }
.osn-start-cta .osh-btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.osn-start-cta .osh-btn:hover svg { transform: translateX(3px); }
.osn-start-cta small { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.osn-start-side {
  margin: 20px 20px 20px 0;
  padding: 30px 30px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.osn-start-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.osn-start-steps { list-style: none; margin: 14px 0 26px; padding: 0; display: grid; gap: 10px; }
.osn-start-steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #fff; }
.osn-start-steps b {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--osh-accent); font-size: 14px; font-weight: 700;
}
.osn-start-results { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.osn-start-results li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 32px;
  background: rgba(255, 255, 255, 0.95); color: var(--osh-ink); font-size: 13px; font-weight: 600;
}
.osn-start-results i { width: 9px; height: 9px; border-radius: 50%; }
.osn-start-results .k i { background: #e0473a; }
.osn-start-results .w i { background: #f08c1a; }
.osn-start-results .p i { background: #e3b400; }

@media (max-width: 899px) {
  .osn-start { grid-template-columns: 1fr; }
  .osn-start-main { padding: 36px 24px 8px; }
  .osn-start-side { margin: 24px 16px 16px; padding: 24px 22px; }
  .osn-card--start { padding: 0; }
}

.osn-card { scroll-margin-top: 96px; }

/* okno z testem (strona główna) */
html.osn-lock, html.osn-lock body { overflow: hidden; }
.osn-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 16px; overflow-y: auto;
  background: rgba(18, 24, 102, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: osn-fade .2s ease;
}
@keyframes osn-fade { from { opacity: 0; } to { opacity: 1; } }
.osn-modal-box { position: relative; width: 100%; max-width: 860px; margin: auto 0; }
.osn-modal .osn-card { max-width: none; }
.osn-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--osh-tint); color: var(--osh-accent); cursor: pointer;
}
.osn-close:hover { background: #dfe2fc; }
.osn-close svg { width: 20px; height: 20px; }
.osn-modal .osn-progress { padding-right: 48px; }
@media (max-width: 767px) {
  .osn-modal { padding: 12px 10px; }
}
.osn-modal[hidden] { display: none; }
.osn-promo-section--kb { padding: 0 0 96px; }
@media (max-width: 767px) { .osn-promo-section--kb { padding: 0 0 56px; } }
