/* eMedics — style dla podstron SEO (Apka-2v8).
 * Uzupełniają /css/main.css o klasy specyficzne dla podstron tematycznych:
 * breadcrumb, sub-section, check-list, steps-list, comparison-table,
 * related-links, foot-links, sub-cta-final.
 *
 * Kolorystyka i typografia spójne z głównej strony (var() z main.css).
 */

body.subpage {
  background: #0b1220;
  color: #e2e8f0;
}

main.subpage-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

@media (max-width: 720px) {
  main.subpage-main { padding: 5rem 1rem 3rem; }
}

/* ---------- Breadcrumb ---------- */
nav.breadcrumb {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

nav.breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  border-bottom: 1px dotted #475569;
}

nav.breadcrumb a:hover {
  color: #cbd5e1;
  border-bottom-color: #94a3b8;
}

nav.breadcrumb .bc-sep {
  margin: 0 0.6rem;
  color: #475569;
}

nav.breadcrumb .bc-current {
  color: #cbd5e1;
}

/* ---------- Hero podstrony ---------- */
header.subpage-hero {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1e293b;
}

header.subpage-hero h1 {
  font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 1.2rem;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

p.subpage-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 1.8rem;
  max-width: 760px;
}

.subpage-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .subpage-cta-row { flex-direction: column; }
  .subpage-cta-row .btn-hero { text-align: center; }
}

/* ---------- Sekcje treści ---------- */
section.sub-section {
  margin: 3rem 0;
}

section.sub-section h2 {
  font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 700;
  line-height: 1.2;
  color: #f1f5f9;
  margin: 0 0 1.2rem;
  letter-spacing: -0.005em;
}

section.sub-section p {
  font-size: 1rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 0 1rem;
}

section.sub-section p strong {
  color: #f1f5f9;
  font-weight: 600;
}

section.sub-section a {
  color: #60a5fa;
  text-decoration: none;
  border-bottom: 1px dotted #3b82f6;
}

section.sub-section a:hover {
  color: #93c5fd;
  border-bottom-color: #60a5fa;
}

/* ---------- Check-list (✓ items) ---------- */
ul.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

ul.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.7rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
}

ul.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: 700;
  font-size: 1.05rem;
}

ul.check-list li strong {
  color: #f1f5f9;
  font-weight: 600;
}

/* ---------- Steps-list (numerowana) ---------- */
ol.steps-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

ol.steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
}

ol.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: #1e293b;
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid #334155;
}

ol.steps-list li strong {
  color: #f1f5f9;
  font-weight: 600;
}

/* ---------- Comparison table ---------- */
table.comparison-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.comparison-table th,
table.comparison-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #1e293b;
}

table.comparison-table thead th {
  background: #111827;
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

table.comparison-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

table.comparison-table td {
  color: #cbd5e1;
}

table.comparison-table td:first-child {
  color: #f1f5f9;
  font-weight: 500;
}

@media (max-width: 600px) {
  table.comparison-table {
    font-size: 0.85rem;
  }
  table.comparison-table th,
  table.comparison-table td {
    padding: 0.55rem 0.5rem;
  }
}

/* ---------- Related links ---------- */
section.sub-related {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid #1e293b;
}

section.sub-related h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.related-links .related-link {
  display: block;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.98rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.related-links .related-link:hover {
  background: rgba(96, 165, 250, 0.06);
  border-color: #3b82f6;
  color: #f1f5f9;
  transform: translateX(2px);
}

/* ---------- Final CTA ---------- */
section.sub-cta-final {
  margin: 4rem 0 0;
  padding: 2.5rem 1.8rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.04));
  border: 1px solid #1e293b;
  border-radius: 14px;
  text-align: center;
}

section.sub-cta-final h2 {
  font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: #f1f5f9;
}

section.sub-cta-final p {
  font-size: 1rem;
  color: #cbd5e1;
  margin: 0 0 1.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

section.sub-cta-final .subpage-cta-row {
  justify-content: center;
}

/* ---------- Footer linki ---------- */
footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin-top: 1rem;
  font-size: 0.82rem;
}

footer .foot-links a {
  color: #94a3b8;
  text-decoration: none;
  border-bottom: 1px dotted #475569;
}

footer .foot-links a:hover {
  color: #cbd5e1;
  border-bottom-color: #94a3b8;
}
