@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: rgb(35, 44, 56);
  --muted: rgb(118, 126, 136);
  --line: rgb(216, 223, 230);
  --accent: rgb(22, 59, 96);
  --accent-soft: rgb(243, 247, 250);
  --radius: 10px;
  --shadow: 0 8px 20px rgba(16, 42, 65, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", "Arial Unicode MS", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.page {
  width: min(1040px, 92vw);
  margin: 0 auto;
}

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.kicker {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  color: var(--accent);
  font-weight: 700;
}

.subtitle {
  margin: 12px auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero::after {
  content: "";
  display: block;
  width: 100%;
  margin-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 65%, white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 12px 24px rgba(16, 42, 65, 0.1);
}

.card h3 {
  margin-top: 10px;
  font-size: 1.24rem;
  color: var(--accent);
}

.card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.topic-body {
  padding: 32px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.back {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.topic-title {
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
}

.topic-tag {
  color: var(--muted);
  font-size: 0.9rem;
}

.sections {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px 22px 24px;
}

.panel h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.panel p,
.panel li {
  color: var(--text);
  line-height: 1.56;
}

.panel > p,
.panel > ul,
.panel > ol {
  max-width: 78ch;
}

.teaser {
  color: var(--text);
  margin: 2px 0 14px;
}

.panel ul li,
.panel ol li {
  margin-bottom: 0.36em;
}

.panel ul,
.panel ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.panel ol {
  padding-left: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.actions-centered {
  justify-content: center;
  margin-top: 6px;
  margin-bottom: 8px;
}

.btn {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, white);
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  background: white;
  font-family: "IBM Plex Sans", "Arial Unicode MS", sans-serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.btn.primary {
  background: var(--accent);
  color: white;
}

.muted {
  color: var(--muted);
}

.pdf-wrap {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.pdf-preview-hidden {
  display: none;
}

.pdf-wrap iframe {
  width: 100%;
  min-height: 72vh;
  border: 0;
}

.plan-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.collapsible {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 360ms ease, opacity 260ms ease, margin-top 360ms ease;
}

.collapsible.is-open {
  max-height: 2400px;
  opacity: 1;
  margin-top: 10px;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.plan-table th,
.plan-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 0.94rem;
  line-height: 1.42;
}

.plan-table thead th {
  background: rgb(243, 247, 250);
  color: var(--accent);
  font-weight: 700;
}

.plan-table tbody tr:nth-child(even) {
  background: rgb(250, 252, 253);
}

.theme-smart {
  --accent: rgb(22, 59, 96);
  --accent-soft: rgb(238, 245, 251);
}

.theme-pv {
  --accent: rgb(24, 76, 118);
  --accent-soft: rgb(238, 245, 251);
}

.theme-wp {
  --accent: rgb(23, 72, 112);
  --accent-soft: rgb(238, 245, 251);
}

.theme-lade {
  --accent: rgb(21, 66, 103);
  --accent-soft: rgb(238, 245, 251);
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .landing {
    align-items: start;
  }

  .pdf-wrap iframe {
    min-height: 58vh;
  }
}
