/* =========================================================
   Global base (meine-gtp.de)
   Knowledge OS style: calm, structured, expert.
   ========================================================= */

/* ---- Reset / Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;            /* slate-900-ish */
  background: #f7f8fb;       /* calm light */
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(47, 93, 80, 0.35);
  outline-offset: 2px;
}

p {
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}

ul {
  margin: 0;
  padding: 0 0 0 1.2rem;
  list-style: disc;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* ---- Layout helpers ---- */
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b1220;
  margin-bottom: 1rem;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #2f5d50;     /* calm green */
  border-color: #2f5d50;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(47, 93, 80, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(47, 93, 80, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.btn-ghost:hover {
  border-color: rgba(15, 23, 42, 0.18);
}

/* =========================================================
   Home page
   ========================================================= */
.home {
  padding-bottom: 4rem;
}

/* ---- Hero ---- */

.hero{
  padding: 4rem 0 3rem;   /* zamiast 5rem / 4rem */
}

.home-hero {
  background:
    radial-gradient(900px 300px at 20% 20%, rgba(47, 93, 80, 0.10), transparent 60%),
    radial-gradient(700px 280px at 75% 30%, rgba(15, 23, 42, 0.08), transparent 60%),
    linear-gradient(#ffffff, #f7f8fb);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 3.25rem 0 2.25rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: start;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.70);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0;
  color: #0b1220;
  margin-bottom: 0.9rem;
}

.hero-title-accent {
  color: #2f5d50;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(15, 23, 42, 0.80);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: rgba(15, 23, 42, 0.75);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.7);
}

/* ---- Data cards ---- */
.hero-data {
  display: grid;
  gap: 0.9rem;
}

.data-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 1.25rem 1.25rem;
  /*box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);*/
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.data-value {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #0b1220;
}

.data-title {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.88);
}

.data-subtitle {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  color: rgba(15, 23, 42, 0.70);
}

.data-footnote {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.62);
}

/* ---- Sections / topic grid ---- */
.home-sections {
  padding: 2.25rem 0 0.5rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.topic-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  min-height: 120px;
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 93, 80, 0.30);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.topic-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #0b1220;
}

.topic-desc {
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.72);
  margin-bottom: 0.6rem;
}

.topic-meta {
  display: inline-block;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.70);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

/* ---- Panels ---- */
.home-panels {
  padding: 2rem 0 0.75rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1rem;
  align-items: start;
}

.panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.panel-muted {
  background: linear-gradient(#ffffff, #f6f7fb);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.panel-link {
  font-size: 0.9rem;
  color: rgba(47, 93, 80, 0.95);
  font-weight: 700;
}

.panel-link:hover {
  text-decoration: underline;
}

/* ---- Updates list ---- */
.updates-list {
  display: grid;
  list-style: none;
  gap: 0.5rem;
}

.updates-item {
  border-radius: 12px;
}

.updates-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.updates-link:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 93, 80, 0.28);
}

.updates-title {
  font-weight: 700;
  color: #0b1220;
  line-height: 1.25;
}

.updates-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.updates-date {
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.62);
}

/* ---- Badges for collections ---- */
.badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.80);
  text-transform: lowercase;
}

.badge-lexikon { border-color: rgba(47, 93, 80, 0.18); }
.badge-wissen  { border-color: rgba(59, 130, 246, 0.18); }
.badge-praxis  { border-color: rgba(245, 158, 11, 0.18); }
.badge-faq     { border-color: rgba(139, 92, 246, 0.18); }

/* ---- Legal block ---- */
.legal-list {
  display: grid;
  list-style: none;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.legal-item {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  padding: 0.9rem;
}

.legal-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.legal-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(47, 93, 80, 0.10);
  border: 1px solid rgba(47, 93, 80, 0.18);
  font-weight: 900;
  color: rgba(47, 93, 80, 0.95);
}

.legal-title {
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #0b1220;
}

.legal-link {
  font-size: 0.9rem;
  color: rgba(47, 93, 80, 0.95);
  font-weight: 700;
}

.legal-link:hover {
  text-decoration: underline;
}

.legal-foot {
  margin-top: 0.9rem;
}

/* ---- CTA ---- */
.home-cta {
  padding: 2.25rem 0 0;
}

.cta-box {
  background:
    radial-gradient(700px 220px at 20% 20%, rgba(47, 93, 80, 0.12), transparent 60%),
    linear-gradient(#ffffff, #f7f8fb);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  text-align: center;
}

.cta-title {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0;
  color: #0b1220;
}

.cta-lead {
  max-width: 68ch;
  margin: 0.5rem auto 1.25rem;
  color: rgba(15, 23, 42, 0.75);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-footnote {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.60);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-data {
    grid-template-columns: repeat(3, 1fr);
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .home-hero {
    padding: 1.35rem 0 1.2rem;
  }

  .hero-title {
    font-size: clamp(1.78rem, 9.4vw, 2.25rem);
    letter-spacing: 0;
    margin-bottom: 0.7rem;
    overflow-wrap: anywhere;
  }

  .hero-kicker {
    margin-bottom: 0.75rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .hero-note {
    margin-top: 0.9rem;
    border-radius: 14px;
  }

  .hero-data {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .data-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .data-value {
    font-size: 1.45rem;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    gap: 0.6rem;
  }

  .updates-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .updates-meta {
    margin-top: 0.35rem;
  }
}

/* =========================================================
   Header / Footer for Knowledge OS layout
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  position: relative;
}

.brand {
  font-weight: 900;
  letter-spacing: 0;
  color: #0b1220;
  white-space: nowrap;
  padding: 0.35rem 0;
}

.nav-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-toggle-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}

.nav-toggle-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #0b1220;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.78);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.main-nav a:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.92);
}

.main-nav a[aria-current="page"] {
  background: rgba(47, 93, 80, 0.10);
  border-color: rgba(47, 93, 80, 0.18);
  color: rgba(47, 93, 80, 0.95);
}

/* Optional: make Kontakt feel like a soft CTA without being salesy */
.main-nav .nav-cta {
  background: rgba(47, 93, 80, 0.10);
  border-color: rgba(47, 93, 80, 0.18);
  color: rgba(47, 93, 80, 0.95);
}

.main-nav .nav-cta:hover {
  background: rgba(47, 93, 80, 0.14);
  border-color: rgba(47, 93, 80, 0.26);
}

@media (max-width: 640px) {
  .site-header {
    background: rgba(255, 255, 255, 0.96);
  }

  .header-inner {
    min-height: 58px;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-block: 0.45rem;
  }

  .nav-toggle-button {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.15rem 0 0.45rem;
  }

  .nav-toggle:checked ~ .nav-toggle-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle:checked ~ .main-nav {
    display: grid;
  }

  .main-nav a {
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
  }

  .main-nav .nav-cta {
    grid-column: 1 / -1;
  }
}

/* Main wrapper: pages control their own containers */
.site-main {
  padding: 0;
}

/* =========================================================
   Footer (FIX)
   ========================================================= */

.site-footer {
  margin-top: 3.5rem;
  background: #fafbfc;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-inner {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

/* zapobiega rozpychaniu kolumn przez długie treści/linki */
.footer-brand,
.footer-links,
.footer-meta {
  min-width: 0;
}

.site-footer .footer-inner > :nth-child(2),
.site-footer .footer-inner > :nth-child(3) {
  padding-left: 0.75rem;
}

.footer-title {
  font-weight: 900;
  margin: 0 0 0.35rem;
  color: #0b1220;
}

.footer-text {
  margin: 0.35rem 0;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.95rem;
}

.footer-meta-title {
  margin-bottom: 0.6rem;
  letter-spacing: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

/* Navigation */
.footer-links {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.site-footer .footer-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.68);
}

.site-footer .footer-links a:hover {
  color: rgba(47, 93, 80, 0.95);
  text-decoration: underline;
}

/* Feeds */
.footer-meta {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer-feeds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

/* UWAGA: dajemy większą specyficzność niż .site-footer .footer-meta a */
.site-footer .footer-feeds a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 0.35rem 0.55rem;
  border-radius: 10px;

  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);

  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.68);
}

.site-footer .footer-feeds a:hover {
  background: rgba(47, 93, 80, 0.06);
  border-color: rgba(47, 93, 80, 0.18);
  color: rgba(47, 93, 80, 0.95);
}

/* Bottom */
.site-footer .footer-bottom {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);

  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;

  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.60);
}

.site-footer .footer-bottom a {
  color: rgba(47, 93, 80, 0.95);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .footer-feeds {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Listing pages (Wissen / Praxis / etc.)
   ========================================================= */

.page {
  padding: 1.25rem 0 3rem;
}

.page-hero {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1rem;
  align-items: start;
  min-width: 0;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background:
    radial-gradient(700px 220px at 20% 15%, rgba(47, 93, 80, 0.10), transparent 60%),
    linear-gradient(#ffffff, #f7f8fb);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.page-kicker {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.70);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  margin: 0 0 0.75rem;
}

.page-title {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
}

.page-lead {
  color: rgba(15, 23, 42, 0.80);
  max-width: 70ch;
  margin: 0;
}

.page-lead a {
  color: rgba(47, 93, 80, 0.95);
  font-weight: 800;
}

.page-hero-side {
  display: grid;
  gap: 0.75rem;
}

.section-visual-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: #f3f6f8;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.section-visual-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.mini-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 1rem;
}

.mini-panel-muted {
  background: linear-gradient(#ffffff, #f6f7fb);
}

.mini-panel-title {
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.mini-list {
  display: grid;
  gap: 0.35rem;
  color: rgba(15, 23, 42, 0.75);
  font-size: 0.95rem;
}

.mini-text {
  margin: 0;
  color: rgba(15, 23, 42, 0.75);
  font-size: 0.95rem;
}

.mini-text a {
  color: rgba(47, 93, 80, 0.95);
  font-weight: 800;
}

.section {
  margin-top: 1.75rem;
}

.section-head {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
}

.topics-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.03);
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.75);
}

.topic-chip:hover {
  border-color: rgba(47, 93, 80, 0.18);
  color: rgba(47, 93, 80, 0.95);
}

.topic-section {
  margin-top: 2rem;
}

.topic-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.topic-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.topic-meta {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.92rem;
}

.topic-jump {
  color: rgba(47, 93, 80, 0.95);
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.entry-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.entry-card:hover {
  border-color: rgba(47, 93, 80, 0.20);
}

.entry-link {
  display: block;
}

.entry-title {
  font-size: 1.02rem;
  font-weight: 900;
  margin: 0;
  color: #0b1220;
}

.entry-desc {
  margin: 0.55rem 0 0;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.95rem;
}

.entry-meta {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.03);
  font-weight: 700;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.68);
}

.entry-updated {
  font-size: 0.88rem;
  color: rgba(15, 23, 42, 0.60);
}

.note-box {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 1rem;
  color: rgba(15, 23, 42, 0.78);
}

.note-box a {
  color: rgba(47, 93, 80, 0.95);
  font-weight: 800;
}

/* Responsive */
@media (max-width: 980px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section-visual-card {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
  .topic-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Article page (Wissen slug)
   ========================================================= */

.article-hero {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.article-hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background:
    radial-gradient(700px 220px at 20% 15%, rgba(47, 93, 80, 0.10), transparent 60%),
    linear-gradient(#ffffff, #f7f8fb);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.article-title {
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
  color: #0b1220;
}

.article-lead {
  margin: 0;
  color: rgba(15, 23, 42, 0.80);
  max-width: 75ch;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.03);
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.72);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.article-hero-side {
  display: grid;
  gap: 0.75rem;
}

.mini-actions {
  display: grid;
  gap: 0.4rem;
}

.mini-link {
  color: rgba(47, 93, 80, 0.95);
  font-weight: 800;
  font-size: 0.95rem;
}

.mini-link:hover {
  text-decoration: underline;
}

.article-body {
  margin-top: 1rem;
}

.related-grid {
  display: grid;
  gap: 1rem;
}

.related-cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.entry-card-compact {
  padding: 0.85rem 0.9rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.entry-card-compact .entry-title {
  font-size: 0.98rem;
}

.entry-card-compact .entry-desc {
  font-size: 0.92rem;
}

.missing-box {
  margin-top: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.02);
  border-radius: 12px;
  padding: 0.85rem;
  color: rgba(15, 23, 42, 0.75);
}

/* Make prose fit the new system */
.prose {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

/* Responsive */
@media (max-width: 980px) {
  .article-hero-inner {
    grid-template-columns: 1fr;
  }
  .related-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .prose {
    padding: 1rem;
  }
}

.prose a {
  text-decoration: underline;
  color: rgba(47, 93, 80, 0.95);
  font-weight: 800;
}

.prose a:hover {
  text-decoration: none;
  opacity: 0.8;
}

a.cta-link {
  font-weight: 800;
}
/* =========================================================
   Praxis checklist panel
   ========================================================= */

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.panel-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.panel-link {
  color: rgba(47, 93, 80, 0.95);
  font-weight: 800;
}

.panel-link:hover {
  text-decoration: underline;
}

.panel-hint {
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.92rem;
}

.panel-accent {
  background:
    radial-gradient(650px 180px at 10% 0%, rgba(47, 93, 80, 0.08), transparent 60%),
    linear-gradient(#ffffff, #f7f8fb);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.checklist-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.checklist-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem;
  align-items: start;
  cursor: pointer;
}

.checklist-box {
  margin-top: 0.15rem;
  width: 18px;
  height: 18px;
  accent-color: rgba(47, 93, 80, 0.95);
}

.checklist-text {
  color: rgba(15, 23, 42, 0.82);
  line-height: 1.45;
}

.panel-foot {
  margin-top: 0.85rem;
}

.panel-note {
  margin: 0;
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.92rem;
}

/* make checklist 2 columns on wide screens (optional) */
@media (min-width: 980px) {
  .checklist {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   Praxis index – extras
   ========================================================= */

.entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 93, 80, 0.18);
  background: rgba(47, 93, 80, 0.08);
  color: rgba(47, 93, 80, 0.95);
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
}

.steps-preview {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.93rem;
}

.steps-preview li {
  border-left: 2px solid rgba(15, 23, 42, 0.10);
  padding-left: 0.6rem;
  line-height: 1.35;
}

.steps-preview .steps-more {
  color: rgba(15, 23, 42, 0.52);
}

/* =========================================================
   Lexikon index – search + A–Z
   ========================================================= */

.search-panel {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-size: 1rem;
  outline: none;
  background: #fff;
}

.search-input:focus {
  border-color: rgba(47, 93, 80, 0.32);
  box-shadow: 0 0 0 4px rgba(47, 93, 80, 0.10);
}

.search-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.7rem;
}

.search-count {
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.92rem;
}

.search-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.78);
}

.search-actions .btn:hover {
  border-color: rgba(15, 23, 42, 0.22);
}

.page-hero-inner > *,
.article-hero-inner > *,
.prose,
.entry-card,
.mini-panel,
.panel,
.topic-card {
  min-width: 0;
}

.page,
.prose,
.page-lead,
.entry-desc,
.mini-text,
.panel-body {
  overflow-wrap: anywhere;
}

.search-actions .btn-ghost {
  background: transparent;
}

.az-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.az-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
  font-weight: 800;
  color: rgba(15, 23, 42, 0.78);
}

.az-chip:hover {
  border-color: rgba(47, 93, 80, 0.18);
  color: rgba(47, 93, 80, 0.95);
}

.az-chip-disabled {
  opacity: 0.35;
}

.hiddenSearch {
  display: none;
}

/* =========================================================
   Lexikon article – meta blocks
   ========================================================= */

.lexikon-metas {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.meta-block-title {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.meta-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-muted {
  color: rgba(15, 23, 42, 0.65);
  background: rgba(15, 23, 42, 0.02);
}

.chip-strong {
  border-color: rgba(47, 93, 80, 0.22);
  background: rgba(47, 93, 80, 0.10);
  color: rgba(47, 93, 80, 0.95);
}

.panel-body {
  color: rgba(15, 23, 42, 0.78);
}

/* =========================================================
   FAQ article – subtle Q/A vibe
   ========================================================= */

.faq-hero .page-kicker {
  background: rgba(15, 23, 42, 0.03);
}

.faq-hero .article-title {
  letter-spacing: 0;
}

/* Datenschutz / Impressum – spis treści */
.toc-link {
  display: inline-block;
  margin: 0.25rem 0.5rem 0.25rem 0;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  text-decoration: none;
}

.toc-link:hover {
  border-color: rgba(0,0,0,.22);
}

/* ===== Contact / Forms ===== */
.notice{
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
}

.form-card{
  margin-top: 1rem;
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
}

.form-row{ margin-bottom: .9rem; }
.form-label{
  display:block;
  font-weight: 650;
  margin-bottom: .35rem;
}

.form-input,
.form-textarea{
  width: 100%;
  padding: .8rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  font: inherit;
}

.form-textarea{ resize: vertical; }

.form-hint{
  margin: .35rem 0 0;
  opacity: .8;
  font-size: .95rem;
}

.form-actions{
  display:flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .2rem;
  margin-bottom: .6rem;
}

.muted{ opacity: .82; }

.faq-list {
  margin: 0.25rem 0 0 1.1rem;
  padding: 0;
}
.faq-item {
  margin: 0.45rem 0;
  line-height: 1.55;
}
.faq-desc {
  opacity: 0.72;
}

.topic-block { margin-top: 2.25rem; }
.topic-head { margin-bottom: .75rem; }
.topic-title { margin: 0; }
.topic-subtitle { margin: .35rem 0 0; opacity: .82; }

/* FAQ (i inne listingi): section header + chips */
.section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.5rem .75rem;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  text-decoration:none;
  background:#fff;
}

.chip:hover{
  border-color: rgba(0,0,0,.22);
}

.chip-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 1.6rem;
  padding:.05rem .5rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  opacity:.8;
  font-size:.9rem;
}

.chip-link{
  text-decoration:none;
  opacity:.75;
  font-size:.95rem;
  white-space:nowrap;
}

.chip-link:hover{ opacity:1; }

/* FAQ – spójność z hero/listing */

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background: radial-gradient(1200px 500px at 20% 10%, rgba(14, 110, 85, .08), transparent 60%),
              #fff;
}

.hero-left { min-width: 0; }
.hero-right { display: grid; gap: .9rem; align-content: start; }

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  text-decoration: none;
  font-weight: 600;
}

.hero .btn-ghost { background: transparent; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.to-top { opacity: .75; text-decoration: none; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: .95;
}

.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 .45rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  font-size: .85rem;
  opacity: .85;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.btn-cta {
  font-size: 1.05rem;
  padding: 0.9rem 1.4rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.badge-primary {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--color-accent, #2f6fed);
  color: #fff;
  margin-bottom: 0.5rem;
}

.rec-lit__item {
  background: #f6f8fa;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

.rec-lit__item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.rec-lit__link {
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.rec-lit__link::after {
  content: " →";
  color: #0b5bd3;
  font-weight: 700;
}

.rec-lit__button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: #0b5bd3;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.rec-lit__button:hover {
  background: #0848a6;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th,
.prose td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.prose th {
  background: #f5f5f5;
  font-weight: 600;
}

.prose tr:nth-child(even) {
  background: #fafafa;
}

.prose .toc {
  background: #f8fafc;
  border: 1px solid #d7dee7;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}

.prose .toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prose .toc h2::before {
  content: "≡";
  font-weight: 700;
  opacity: 0.7;
}

.prose .toc ul {
  margin: 0;
  padding-left: 1.2rem;
}

.prose .toc li {
  margin: 0.3rem 0;
}

.prose .toc a {
  text-decoration: none;
}

.prose .toc a:hover {
  text-decoration: underline;
}

.image-actions{
  margin-top:12px;
}

.btn-download{
  display:inline-block;
  padding:10px 16px;
  background:#111;
  color:white;
  text-decoration:none;
  border-radius:6px;
  font-size:14px;
}

.btn-download:hover{
  background:#333;
}

.hero-quicklink {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: #475569;
}

.hero-quicklink a {
  font-weight: 600;
  text-decoration: none;
}

.hero-quicklink a:hover,
.hero-quicklink a:focus-visible {
  text-decoration: underline;
}

.topic-card-tools {
  border-color: #d6e4f5;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.tools-feature {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

.tools-feature-copy {
  max-width: 720px;
}

.tools-feature-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #64748b;
}

.tools-feature-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.tools-feature-text {
  margin: 0;
  color: #475569;
}

.tools-feature-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .tools-feature {
    flex-direction: column;
    align-items: flex-start;
  }
}

.affiliate-box {
  border: 1px solid var(--border, #e6e6e6);
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  margin: 1rem 0;
}

.affiliate-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.affiliate-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #eef2f5;
  font-weight: 600;
}

.affiliate-merchant {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #f6f7f8;
  color: #555;
  border: 1px solid #e2e5e8;
}

.affiliate-merchant[data-merchant="amazon"] {
  background: #fff4e5;
  border-color: #ffe0b2;
}

.affiliate-merchant[data-merchant="thalia"] {
  background: #eef6ff;
  border-color: #d6e9ff;
}

.affiliate-content {
  display: grid;
  gap: 0.7rem;
}

.affiliate-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.affiliate-description {
  margin: 0;
  color: #444;
}

.affiliate-note {
  margin: 0;
  font-size: 0.92rem;
  color: #666;
}

.affiliate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #d9d9d9;
}

.affiliate-button:hover {
  text-decoration: none;
}

.affiliate-grid-section {
  margin: 1.5rem 0;
}

.affiliate-grid-heading {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.affiliate-grid-intro {
  margin: 0 0 1rem;
  color: #555;
}

.affiliate-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.affiliate-disclosure {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border, #e6e6e6);
  border-radius: 16px;
  background: #fafafa;
}

.affiliate-disclosure-text {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* =========================================================
   Home visual refresh
   ========================================================= */
.home-hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #ffffff;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.98) 0%, rgba(247, 248, 251, 0.92) 38%, rgba(247, 248, 251, 0.34) 73%, rgba(247, 248, 251, 0.12) 100%),
    url("/images/home/hero-cockpit-v2.webp");
  background-size: cover;
  background-position: center right;
}

.home-hero .container,
.home-hero .hero-inner {
  position: relative;
}

.home-hero .hero-inner {
  min-height: 610px;
  align-items: center;
  padding: 3.5rem 0;
}

.home-hero .hero-title {
  max-width: 900px;
  font-size: clamp(2.45rem, 5.2vw, 4rem);
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-hero .hero-lead {
  max-width: 650px;
}

.home-hero .hero-kicker,
.home-hero .hero-note,
.home-hero .data-card {
  backdrop-filter: blur(8px);
}

.hero-quicklink a::after,
.panel-link::after,
.feature-link::after {
  content: " ->";
}

.related-grid .panel-link {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .section[aria-labelledby="related-title"] > .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

.topic-card-visual {
  overflow: hidden;
  padding: 0;
  min-height: 0;
}

.topic-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  background: #f3f6f8;
}

.topic-body {
  padding: 1.1rem;
}

.home-featured {
  padding: 1.65rem 0 0.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.feature-image {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  border-right: 1px solid rgba(15, 23, 42, 0.10);
  background: #f3f6f8;
}

.feature-body {
  padding: 1.15rem 1.15rem 1.15rem 0;
}

.feature-title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: #0b1220;
}

.feature-desc {
  margin: 0 0 1rem;
  color: rgba(15, 23, 42, 0.72);
}

.feature-link {
  color: rgba(47, 93, 80, 0.95);
  font-weight: 800;
}

@media (max-width: 980px) {
  .home-hero .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 2rem 0 15rem;
  }

  .home-hero::before {
    background:
      linear-gradient(180deg, rgba(247, 248, 251, 0.98) 0%, rgba(247, 248, 251, 0.92) 50%, rgba(247, 248, 251, 0.20) 100%),
      url("/images/home/hero-cockpit-v2.webp");
    background-size: cover;
    background-position: 64% center;
  }

  .home-hero .hero-data {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 0;
  }

  .home-hero .hero-inner {
    padding: 1.55rem 0 11.5rem;
  }

  .home-hero .hero-title {
    font-size: clamp(1.78rem, 8vw, 2.18rem);
    line-height: 1.08;
  }

  .topic-body {
    padding: 1rem;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  }

  .feature-body {
    padding: 1rem;
  }
}
