/* ==========================================================================
   SPRAWDZIQ.PL - INTERAKTYWNY TEST MVP (PROMPT #8)
   Styling arkusza CSS zoptymalizowany pod kątem UX, czytelności i responsywności
   ========================================================================== */

:root {
  --bg-body: #F4F6F9;
  --bg-card: #FFFFFF;
  --text-main: #2C3E50;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --border-focus: #3B82F6;
  --primary: #2980B9;
  --primary-hover: #1F618D;
  --primary-light: #EBF5FB;
  --accent-green: #27AE60;
  --accent-green-bg: #E8F8F5;
  --accent-red: #E74C3C;
  --accent-red-bg: #FDEDEC;
  --accent-orange: #E67E22;
  --dark-header: #1E293B;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

/* NAGŁÓWEK APLIKACJI */
.app-header {
  background-color: var(--dark-header);
  color: #FFFFFF;
  padding: 10px 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.brand-logo span {
  color: #60A5FA;
}

.brand-tagline {
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 500;
}

/* NAWIGACJA GŁÓWNA */
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.header-nav-link {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.header-nav-link:hover,
.header-nav-link.active {
  color: #FFFFFF;
  background: #334155;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.timer-box {
  background: #334155;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  justify-content: center;
}

.btn-restart {
  background: transparent;
  border: 1px solid #475569;
  color: #CBD5E1;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 32px;
}

.btn-restart:hover {
  background: #334155;
  color: #FFFFFF;
  border-color: #64748B;
}

/* GŁÓWNY KONTENER */
.main-content {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 12px auto;
  padding: 0 10px;
}

/* EKRANY */
.screen {
  display: none;
  animation: fadeIn 0.2s ease-out;
  width: 100%;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* EKRAN STARTOWY */
.start-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  box-shadow: var(--shadow-md);
  text-align: center;
  width: 100%;
}

.start-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.25;
  word-break: break-word;
}

.start-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 16px;
  line-height: 1.45;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 18px;
  text-align: left;
  width: 100%;
}

@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.disclaimer-alert {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.45;
}

.btn-start {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(41, 128, 185, 0.35);
  min-height: 46px;
  width: auto;
}

.btn-start:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* EKRAN PYTANIA (TEST) */
.test-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.progress-header {
  margin-bottom: 12px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.progress-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.progress-percent {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-bar-track {
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 12.5%;
  transition: width 0.3s ease;
  border-radius: 3px;
}

/* PLANSZA ZADANIA */
.board-wrapper-box {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.board-svg-render {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.board-svg-render svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
}

.options-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.options-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.selection-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: #F1F5F9;
  color: #64748B;
}

.selection-status-badge.selected {
  background: var(--primary-light);
  color: var(--primary);
}

/* SIATKA OPCJI ODPOWIEDZI */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}

@media (min-width: 641px) and (max-width: 880px) {
  .options-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 881px) {
  .options-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.option-tile-btn {
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  outline: none;
  width: 100%;
  min-height: 44px;
}

.option-tile-btn:hover {
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.option-tile-btn:focus-visible {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.option-tile-btn.is-selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.35);
}

.option-tile-letter {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
}

.option-tile-btn.is-selected .option-tile-letter {
  color: var(--primary);
}

.option-tile-svg {
  width: 100%;
  max-width: 110px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.option-tile-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* NAWIGACJA W TEŚCIE */
.nav-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.btn-nav {
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  min-width: 90px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
}

.btn-prev {
  background: var(--bg-body);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-prev:hover {
  background: #E2E8F0;
}

.btn-prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-next {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(41, 128, 185, 0.3);
}

.btn-next:hover {
  background: var(--primary-hover);
}

.btn-finish {
  background: var(--accent-green);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-finish:hover {
  background: #219653;
}

/* EKRAN WYNIKU */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.result-badge-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 4px;
}

.result-main-score {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.result-percentage {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.result-metrics {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.metric-pill {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.result-description-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  max-width: 540px;
  margin: 0 auto 20px;
}

.result-desc-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 6px;
}

.result-desc-note {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-review {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-review:hover {
  background: var(--primary-hover);
}

.btn-restart-alt {
  background: var(--bg-body);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 11px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-restart-alt:hover {
  background: #E2E8F0;
}

/* EKRAN PRZEGLĄDU ODPOWIEDZI */
.review-header-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.review-title-group h2 {
  font-size: 1.05rem;
  font-weight: 800;
}

.review-title-group p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  box-shadow: var(--shadow-sm);
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.badges {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.badge-id { background: #E0E7FF; color: #3730A3; font-weight: 800; }
.badge-rule { background: #E2E8F0; color: #1E293B; font-weight: 500; }

.badge-status {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-status.correct {
  background: var(--accent-green-bg);
  color: var(--accent-green);
}

.badge-status.incorrect {
  background: var(--accent-red-bg);
  color: var(--accent-red);
}

.review-tiles-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.review-tiles-comparison.single-tile {
  grid-template-columns: 1fr;
  max-width: 240px;
  margin: 10px auto;
}

.comparison-box {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  text-align: center;
}

.comparison-box.is-correct-box {
  border-color: var(--accent-green);
  background: var(--accent-green-bg);
}

.comparison-box.is-wrong-box {
  border-color: var(--accent-red);
  background: var(--accent-red-bg);
}

.comparison-label {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.comparison-svg-render {
  width: 70px;
  height: 70px;
  margin: 0 auto;
}

.comparison-svg-render svg {
  width: 100%;
  height: 100%;
}

.explanation-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.82rem;
  color: #334155;
  margin-top: 10px;
}

/* MODALE I DIALOGI */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 14px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 18px 16px;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.modal-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-modal {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 38px;
  border: none;
}

.btn-modal-cancel {
  background: var(--bg-body);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-modal-confirm {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-modal-warning {
  background: var(--accent-red);
  color: #FFFFFF;
}

/* ========================================================
   SEKCJA EDUKACYJNA I KLASTER TREŚCI SEO (PROMPT #11)
   ======================================================== */

/* Sekcja polecanych poradników na ekranie wyniku */
.result-edu-section {
  margin-top: 24px;
  text-align: left;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.result-edu-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.result-edu-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.edu-guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .edu-guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.edu-guide-card {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.edu-guide-card:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.edu-guide-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.edu-guide-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.35;
}

.edu-guide-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: auto;
}

/* Style artykułów klastra SEO */
.article-lead {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 500;
}

.article-section {
  margin-bottom: 28px;
}

.article-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.article-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E293B;
  margin: 16px 0 8px;
}

.article-section p {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-section ul, 
.article-section ol {
  margin: 10px 0 16px 20px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
}

.article-section li {
  margin-bottom: 6px;
}

.example-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 16px;
  margin: 16px 0;
}

.example-box-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.example-box p {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 6px;
}

.strategy-grid,
.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}

@media (min-width: 650px) {
  .strategy-grid,
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.strategy-card,
.rule-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}

.strategy-card-num,
.rule-card-icon {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
  display: inline-block;
}

.strategy-card-title,
.rule-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.strategy-card-desc,
.rule-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Baner CTA do testu wewnątrz artykułów */
.article-cta-banner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin: 32px 0 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.article-cta-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.article-cta-desc {
  font-size: 0.9rem;
  color: #CBD5E1;
  max-width: 520px;
  margin: 0 auto 18px;
  line-height: 1.5;
}

.btn-cta-test {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, #2563EB 100%);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.btn-cta-test:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.article-related-links {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 28px;
}

.article-related-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.related-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-link-item {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.related-link-item:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   PUBLICZNA STOPKA I STRONY INFORMACYJNO-PRAWNE (PROMPT #10)
   ========================================================================== */

.app-footer {
  background: var(--dark-header);
  color: #94A3B8;
  padding: 32px 16px 24px;
  margin-top: auto;
  border-top: 1px solid #334155;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-links a:hover, .footer-links a:focus {
  color: #60A5FA;
  text-decoration: underline;
}

.footer-notice {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 12px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  font-size: 0.75rem;
  color: #475569;
}

/* STRONY PRAWNE I INFORMACYJNE */
.doc-page-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  margin-bottom: 30px;
}

.doc-page-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.breadcrumb-nav {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.breadcrumb-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.doc-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.doc-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.doc-content h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 24px;
  margin-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 6px;
}

.doc-content p {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 12px;
}

.doc-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.6;
}

.doc-content li {
  margin-bottom: 6px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.82rem;
}

.doc-table th, .doc-table td {
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  text-align: left;
}

.doc-table th {
  background: #F8FAFC;
  font-weight: 700;
  color: var(--text-main);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

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

.contact-card {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.contact-card h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.contact-mail-link {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.contact-mail-link:hover {
  text-decoration: underline;
}

.public-notify-notice {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
}

/* Klasy pomocnicze dla czystego HTML bez inline styles */
.is-hidden {
  display: none !important;
}

.modal-actions-mt {
  margin-top: 16px;
}

.btn-full-width {
  width: 100%;
}

.hosting-placeholder-box {
  background: #F8FAFC;
  border-left: 3px solid #64748B;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #475569;
  margin-top: 12px;
}

.contact-card-sub {
  margin-top: 12px;
  font-size: 0.9rem;
}

.contact-card-mail {
  margin-top: 16px;
}

.contact-card-time {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #64748B;
}

.notfound-card {
  text-align: center;
  padding: 48px 24px;
}

.notfound-icon {
  font-size: 3rem;
  display: block;
}

.notfound-title {
  margin-top: 12px;
}

.notfound-desc {
  color: #64748B;
  margin-top: 8px;
  font-size: 1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.notfound-actions {
  margin-top: 24px;
}

.notfound-btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 24px;
}


