:root {
  --demo-bg: #eef8ff;
  --demo-card: #ffffff;
  --demo-text: #14304d;
  --demo-muted: #637f99;
  --demo-primary: #1597e5;
  --demo-primary-dark: #0574bd;
  --demo-line: #cfe7f7;
  --demo-shadow: 0 18px 48px rgba(18, 92, 143, .10);
}

.demo-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 20%, rgba(53, 183, 255, .22), transparent 24rem),
    linear-gradient(135deg, #f6fbff, var(--demo-bg));
}

.demo-hero::after {
  content: "ОГЭ";
  position: absolute;
  right: max(20px, calc((100vw - 1120px) / 2));
  bottom: -54px;
  color: rgba(21, 151, 229, .08);
  font-size: clamp(120px, 24vw, 290px);
  font-weight: 950;
  letter-spacing: -.1em;
  line-height: 1;
  pointer-events: none;
}

.demo-hero .container {
  position: relative;
  z-index: 1;
}

.demo-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  color: var(--demo-muted);
  font-size: 14px;
  font-weight: 750;
}

.demo-status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--demo-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}

.demo-status span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24a36f;
  box-shadow: 0 0 0 4px rgba(36, 163, 111, .12);
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.demo-stat {
  padding: 22px;
  border: 1px solid var(--demo-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--demo-shadow);
}

.demo-stat-value {
  display: block;
  margin-bottom: 5px;
  color: var(--demo-primary-dark);
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.demo-stat-label {
  color: var(--demo-muted);
  font-size: 14px;
  line-height: 1.45;
}

.demo-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid #bce2f7;
  border-radius: 22px;
  background: linear-gradient(135deg, #e8f7ff, #ffffff);
  box-shadow: var(--demo-shadow);
}

.demo-callout-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #24a36f, #12855a);
  font-size: 21px;
  font-weight: 950;
}

.demo-callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
}

.demo-callout p {
  margin: 0;
  color: var(--demo-muted);
  line-height: 1.65;
}

.demo-changes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.demo-change {
  padding: 24px;
  border: 1px solid var(--demo-line);
  border-radius: 22px;
  background: var(--demo-card);
  box-shadow: var(--demo-shadow);
}

.demo-change-number {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--demo-primary-dark);
  background: #dff3ff;
  font-size: 13px;
  font-weight: 950;
}

.demo-change h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.demo-change p {
  margin: 0;
  color: var(--demo-muted);
  line-height: 1.65;
}

.demo-download {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 16px;
  align-items: stretch;
}

.demo-download-card,
.demo-facts {
  padding: 26px;
  border: 1px solid var(--demo-line);
  border-radius: 22px;
  background: var(--demo-card);
  box-shadow: var(--demo-shadow);
}

.demo-file {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.demo-file-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 62px;
  border: 1px solid #bce2f7;
  border-radius: 14px;
  color: var(--demo-primary-dark);
  background: #e8f7ff;
  font-size: 13px;
  font-weight: 950;
}

.demo-file h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.demo-file p {
  margin: 0;
  color: var(--demo-muted);
  font-size: 14px;
}

.demo-download-card .actions {
  margin-top: 0;
}

.demo-source {
  margin: 18px 0 0;
  color: var(--demo-muted);
  font-size: 13px;
  line-height: 1.55;
}

.demo-source a,
.demo-inline-link {
  color: var(--demo-primary-dark);
  text-decoration: underline;
  text-decoration-color: rgba(5, 116, 189, .35);
  text-underline-offset: 3px;
}

.demo-facts h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.demo-facts ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-facts li {
  position: relative;
  padding-left: 22px;
  color: var(--demo-muted);
  line-height: 1.55;
}

.demo-facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #24a36f;
  font-weight: 950;
}

.demo-pdf {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--demo-line);
  border-radius: 22px;
  background: #dceefa;
  box-shadow: var(--demo-shadow);
}

.demo-pdf iframe {
  display: block;
  width: 100%;
  min-height: 820px;
  border: 0;
  background: #eef8ff;
}

.demo-pdf-fallback {
  padding: 14px 20px;
  color: var(--demo-muted);
  font-size: 14px;
  text-align: center;
}

.demo-faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.demo-faq details {
  border: 1px solid var(--demo-line);
  border-radius: 16px;
  background: #fff;
}

.demo-faq summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 850;
  list-style-position: inside;
}

.demo-faq p {
  margin: 0;
  padding: 0 20px 18px 41px;
  color: var(--demo-muted);
  line-height: 1.65;
}

@media (max-width: 820px) {
  .demo-stats,
  .demo-download {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-download {
    grid-template-columns: 1fr;
  }

  .demo-pdf iframe {
    min-height: 640px;
  }
}

@media (max-width: 520px) {
  .demo-stats,
  .demo-changes {
    grid-template-columns: 1fr;
  }

  .demo-stat,
  .demo-change,
  .demo-download-card,
  .demo-facts,
  .demo-callout {
    padding: 20px;
  }

  .demo-callout {
    grid-template-columns: 1fr;
  }

  .demo-pdf iframe {
    min-height: 520px;
  }
}
