.topic-hero {
  position: relative;
  padding: 56px 20px 48px;
  background: #0C4A6E;
  color: #fff;
  overflow: hidden;
}

.topic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.55;
  pointer-events: none;
}

.topic-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topic-hero h1 {
  font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  transform: rotate(-0.7deg);
  text-shadow: 3px 3px 0 rgba(14, 165, 233, 0.4);
  max-width: 720px;
}

.topic-hero .lede {
  margin-top: 12px;
  color: #BAE6FD;
  max-width: 560px;
}

.topic-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.topic-wrap h2 {
  font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  font-size: 1.35rem;
  margin: 32px 0 12px;
  transform: rotate(0.4deg);
}

.topic-wrap h3 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
}

.topic-wrap p {
  margin-bottom: 14px;
  max-width: 720px;
}

.topic-wrap ul {
  margin: 0 0 16px 1.2rem;
  max-width: 680px;
}

.topic-wrap li {
  margin-bottom: 6px;
}

.rb-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.rb-rail {
  position: sticky;
  top: 70px;
  background: #FFFFFF;
  border: 2px dashed rgba(14, 165, 233, 0.35);
  padding: 18px;
  transform: rotate(0.6deg);
  box-shadow: 4px 4px 0 rgba(14, 165, 233, 0.12);
}

.rb-rail h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.rb-rail ol {
  margin-left: 1.1rem;
  font-size: 14px;
}

.rb-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
  max-width: 520px;
}

.rb-mosaic .decor-clip {
  overflow: hidden;
  max-width: 100%;
}

.rb-mosaic img {
  width: 100%;
  max-width: 500px;
  max-height: 220px;
  object-fit: cover;
  transform: rotate(-1deg);
}

.rb-mosaic .decor-clip:nth-child(2) img {
  transform: rotate(1.5deg);
}

.fs-hero-strip {
  background:
    linear-gradient(100deg, rgba(12, 74, 110, 0.88), rgba(14, 165, 233, 0.55)),
    url("/images/decorative/decor_8.webp") center/cover;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 32px 20px;
  color: #fff;
  overflow: hidden;
}

.fs-hero-strip h1 {
  font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  transform: rotate(-0.5deg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.fs-stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.fs-stat {
  background: #FFFFFF;
  border-top: 3px solid #0EA5E9;
  padding: 16px;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(12, 74, 110, 0.08);
}

.fs-stat:nth-child(2) {
  transform: translateY(8px) rotate(-0.5deg);
}

.fs-stat strong {
  display: block;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.2rem;
  color: #0EA5E9;
  margin-bottom: 4px;
}

.fs-callout {
  margin: 24px 0;
  padding: 18px 20px;
  background: rgba(186, 230, 253, 0.35);
  border-left: 5px solid #38BDF8;
  max-width: 640px;
  transform: rotate(-0.3deg);
}

.lc-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.lc-quote {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.25rem;
  color: #0EA5E9;
  line-height: 1.35;
  margin: 20px 0;
  padding: 16px;
  border: 2px solid rgba(14, 165, 233, 0.25);
  transform: rotate(-0.8deg);
  background: #FFFFFF;
}

.lc-visual-band {
  margin: 28px 0;
  height: 240px;
  max-width: 100%;
  overflow: hidden;
  background:
    linear-gradient(rgba(12, 74, 110, 0.35), rgba(12, 74, 110, 0.55)),
    url("/images/decorative/decor_9.png") center/cover;
  border: 3px solid rgba(12, 74, 110, 0.15);
  clip-path: polygon(0 4%, 100% 0, 98% 100%, 2% 96%);
}

.lc-checklist {
  list-style: none;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.lc-checklist li {
  padding: 12px 14px 12px 42px;
  background: #FFFFFF;
  border: 1px solid rgba(12, 74, 110, 0.12);
  position: relative;
}

.lc-checklist li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 14px;
  height: 14px;
  background: #0EA5E9;
  transform: rotate(45deg);
}

@media (max-width: 800px) {
  .rb-layout,
  .lc-split,
  .fs-stat-band {
    grid-template-columns: 1fr;
  }

  .rb-rail {
    position: static;
  }

  .rb-mosaic {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .rb-mosaic img {
    max-width: 100%;
    max-height: 200px;
  }

  .fs-hero-strip {
    min-height: 180px;
    max-width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }

  .lc-visual-band {
    height: 180px;
    max-width: 100%;
    overflow: hidden;
  }

  .topic-hero,
  .topic-wrap {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 400px) {
  .rb-mosaic,
  .lc-visual-band,
  .fs-hero-strip {
    max-width: 100%;
    overflow: hidden;
  }

  .rb-mosaic img {
    width: 100%;
    max-width: 100%;
    max-height: 180px;
  }
}
