@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #f7f8fb;
  --bg-2: #edf1f7;
  --accent: #ff8b3d;
  --accent-2: #1f6feb;
  --ink: #1a2233;
  --muted: #5b667a;
  --card: #ffffff;
  --border: #e4e9f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(1100px 500px at 10% -10%, #ffffff 0%, transparent 60%),
    radial-gradient(800px 400px at 95% 10%, #f2f5fb 0%, transparent 60%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;

  padding: 0 36px;              /* 去掉上下 padding */
  aspect-ratio: 4352 / 640;     /* 核心：锁定比例 */

  border-radius: 18px;

  background-image: url("/FINITE/pic/my-webserver-head.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(32, 48, 72, 0.08);
  margin: 18px auto 24px;
}

.nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: #5d6678;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
}

.nav a.active,
.nav a:hover {
  color: #1f2a44;
  background: rgba(255, 255, 255, 0.85);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin: 0 0 8px;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 40px rgba(32, 48, 72, 0.08);
}

.explore-hero {
  margin-bottom: 28px;
}

.explore-block {
  padding: 28px 32px;
  margin: 0 0 28px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(32, 48, 72, 0.06);
}

.explore-block.light {
  background: #f8fbff;
}

.explore-block h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  line-height: 1.25;
}

.explore-block .lead {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-strong, #243447);
}

.explore-block p:last-child {
  margin-bottom: 0;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.explore-card {
  padding: 24px 26px;
}

.explore-card h3 {
  margin: 6px 0 10px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.explore-process {
  margin-bottom: 28px;
}

.section-title.compact {
  margin-bottom: 18px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.process-card {
  padding: 24px 24px 22px;
}

.process-card h3 {
  margin: 6px 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}


.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

.section {
  margin-top: 40px;
  min-height: auto;
  padding-top: 24px;
  scroll-margin-top: 24px;
}

.section-view {
  display: none;
}

.section-view.active {
  display: block;
}

.section-title h2 {
  margin: 0 0 6px;
}

.section-title p {
  color: var(--muted);
  margin: 0 0 24px;
}

.home-hero {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f7fd 100%);
  box-shadow: 0 20px 44px rgba(32, 48, 72, 0.08);
  margin-bottom: 20px;
}

.home-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin: 0 0 10px;
}

.home-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  margin: 0 0 12px;
  line-height: 1.1;
  text-align: justify;
}

.home-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.about-block {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(32, 48, 72, 0.08);
  font-family: "Fraunces", serif;
  color: #2d3445;
}

.about-block h2,
.about-block h3 {
  font-style: italic;
  margin-top: 0;
}

.about-block p {
  font-family: "Space Grotesk", sans-serif;
  color: #4a5568;
  line-height: 1.75;
  font-size: 1rem;
}

.about-list {
  margin: 18px 0 18px 28px;
  font-family: "Space Grotesk", sans-serif;
  color: #5a6477;
  font-style: italic;
  line-height: 1.7;
}

.about-list li {
  margin-bottom: 8px;
}

.about-block a {
  color: #d33c3c;
  font-weight: 600;
  text-decoration: none;
}

.about-block a:hover {
  text-decoration: underline;
}

.page-footer {
  margin-top: 28px;
  padding: 16px 12px 8px;
  color: #5a6477;
}

.footer-divider {
  height: 1px;
  background: #e2e7f0;
  margin: 18px 0;
}

.footer-title {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: #2d3445;
}

.footer-text {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 10px;
  color: #4a5568;
}

.footer-cite {
  font-family: "Space Grotesk", sans-serif;
  font-style: italic;
  color: #2d3445;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.footer-grid h4 {
  font-family: "Fraunces", serif;
  font-style: italic;
  margin: 0 0 8px;
  color: #2d3445;
}

.footer-grid p {
  margin: 0;
  font-style: italic;
  color: #6b7486;
  line-height: 1.7;
}

.footer-copy {
  text-align: center;
  font-style: italic;
  color: #8a93a3;
  margin: 0;
}
.contact-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 18px;
  align-items: start;
}

.contact-label {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.08rem;
  color: #d33c3c;
}

.contact-text {
  font-size: 1.05rem;
  color: #5a6477;
  line-height: 1.7;
  font-style: italic;
}

.contact-email {
  color: var(--accent-2);
  font-weight: 600;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(32, 48, 72, 0.08);
}

.intro p {
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

/* 下方两图两列 */
.intro-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

/* 每个 figure 自成一列：上图下文字 */
.figure-block {
  margin: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(32, 48, 72, 0.08);

  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* 关键：图片自然缩放，不设固定高度，不加大内边距盒子 */
.figure-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #ffffff;
}

/* 图和说明之间保持自然、紧凑的间距 */
.figure-block figcaption {
  margin-top: clamp(8px, 1vw, 14px);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* 如果还保留 panel label */
.panel label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* figure block */
.explore-figure-block {
  margin: 32px 0 28px;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.figure-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(32, 48, 72, 0.06);
}

.figure-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.figure-card figcaption {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4a5a6a;
}

.figure-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.figure-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(32, 48, 72, 0.06);
}

.figure-panel img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.figure-text {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #445566;
}

.figure-text p {
  margin: 0 0 8px;
}

.figure-text p:last-child {
  margin-bottom: 0;
}

.figure-interpretation {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 3px solid #3a6df0;
  background: #f6f9ff;
  border-radius: 8px;
  font-size: 0.98rem;
  line-height: 1.7;
}

textarea,
input {
  width: 100%;
  background: #f9fbff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  padding: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.sequence-textarea {
  min-height: 220px;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  line-height: 1.55;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: auto;
}

.server-task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.task-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.task-panel-head {
  display: grid;
  gap: 8px;
}

.task-panel-head h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  line-height: 1.15;
}

.task-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.task-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent-2);
}

.task-sequence-large {
  padding: 18px 16px;
  font-size: 1.1rem;
  min-height: 82px;
  line-height: 1.45;
}

.task-sequence-medium {
  padding: 14px 14px;
  font-size: 1rem;
  min-height: 52px;
  line-height: 1.3;
}

.task-antigen-large {
  min-height: 180px;
}

.task-antigen-compact {
  min-height: 88px;
  height: 88px;
  line-height: 1.35;
}

.task-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.task-run,
.task-example {
  min-width: 132px;
}

.task-score-card {
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #d9e7fb;
  background: linear-gradient(135deg, #f7fbff 0%, #edf4ff 100%);
  display: grid;
  gap: 8px;
}

.task-score-card span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6f7d93;
}

.task-score-card strong {
  font-size: 2rem;
  color: var(--accent-2);
  font-weight: 700;
}

.task-status {
  margin: 0;
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.92rem;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.95rem;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: #1c1207;
  font-weight: 600;
}

button.ghost {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.outputs .meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.outputs textarea {
  min-height: 180px;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.output-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 24px rgba(32, 48, 72, 0.06);
}

.output-card h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.output-card .value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-2);
  margin: 0;
}

.doc-hero {
  display: block;
  padding: 22px 26px;
  border-radius: 20px;
  border: 1px solid #e6ecf5;
  background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 20px 44px rgba(24, 41, 69, 0.12);
  margin-bottom: 20px;
}

.doc-hero h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  color: #1a2440;
}

.doc-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.doc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.doc-card {
  background: var(--card);
  border: 1px solid #e1e7f1;
  border-radius: 20px;
  padding: 24px 24px 22px;
  box-shadow: 0 16px 30px rgba(24, 41, 69, 0.08);
  display: grid;
  gap: 14px;
  align-content: start;
  height: 100%;
}

.doc-card h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  line-height: 1.12;
  color: #1f2a44;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.doc-card strong {
  color: #111827;
  font-weight: 700;
}

.doc-card code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #111827;
  font-weight: 700;
  font-family: inherit;
}

.doc-install-card {
  gap: 16px;
}

.doc-install-card h4 {
  margin: 6px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.28rem;
  line-height: 1.2;
  color: #111827;
}

.doc-code-block {
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid #d8deea;
  background: #fbfcfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.doc-code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #14213d;
}

.doc-link-list,
.doc-bullet-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.doc-link-list li,
.doc-bullet-list li {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #23314e;
  line-height: 1.62;
  font-size: 0.95rem;
}

.doc-link-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.doc-link-list span {
  font-weight: 600;
  color: #17233a;
}

.doc-link-list a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.doc-link-list a:hover {
  text-decoration: underline;
}

.doc-reference-list {
  display: grid;
  gap: 10px;
}

.doc-reference-list p {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f7fc;
  border: 1px solid #e4ebf6;
  color: #23314e;
}

.doc-block {
  padding: 28px 32px;
  margin: 0 0 28px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(32, 48, 72, 0.06);
}

.doc-block.light {
  background: #f8fbff;
}

.doc-block h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  line-height: 1.25;
}

.doc-block .lead {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-strong, #243447);
}

.doc-block p:last-child {
  margin-bottom: 0;
}

.doc-architecture {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.doc-stage-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(32, 48, 72, 0.06);
}

.doc-stage-card.reverse {
  grid-template-columns: 1fr 1.05fr;
}

.doc-stage-card.reverse .doc-stage-media {
  order: 2;
}

.doc-stage-card.reverse .doc-stage-copy {
  order: 1;
}

.doc-stage-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.doc-stage-copy h3 {
  margin: 6px 0 12px;
  font-size: 1.32rem;
  line-height: 1.35;
}

.doc-stage-copy p:last-child {
  margin-bottom: 0;
}

.doc-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.doc-card {
  padding: 24px 26px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(32, 48, 72, 0.06);
}

.doc-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.35;
}


.download-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 22px 26px;
  border-radius: 20px;
  border: 1px solid #e6ecf5;
  background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
  box-shadow: 0 20px 44px rgba(24, 41, 69, 0.12);
  margin-bottom: 20px;
}

.download-hero h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  color: #1a2440;
}

.download-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.download-subline {
  white-space: nowrap;
}

.download-badge {
  align-self: center;
  justify-self: end;
  background: #ffffff;
  border: 1px solid #e0e7f2;
  border-radius: 16px;
  padding: 16px 20px;
  display: grid;
  gap: 6px;
  text-align: right;
  min-width: 200px;
  box-shadow: 0 14px 28px rgba(24, 41, 69, 0.12);
}

.download-badge span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
}

.download-badge strong {
  font-size: 1.05rem;
  color: #1f2a44;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.download-card {
  background: var(--card);
  border: 1px solid #e1e7f1;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 36px rgba(24, 41, 69, 0.12);
  display: grid;
  gap: 14px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  align-content: start;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #ff8b3d 0%, #1f6feb 100%);
}

.download-card h4 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: #1f2a44;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 0;
}

.download-stack .download-card {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
}


.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f6feb 0%, #5a8dff 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 14px 26px rgba(31, 111, 235, 0.24);
  gap: 8px;
}

.download-button:hover {
  transform: translateY(-1px);
}

.download-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.download-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f7fc;
  border: 1px solid #e4ebf6;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.download-list a {
  color: #17233a;
  text-decoration: none;
  font-weight: 600;
}

.download-list a:hover {
  color: var(--accent-2);
}

.download-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1f6feb;
  background: #e9f0ff;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d6e4ff;
  white-space: nowrap;
}

.download-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.download-block {
  padding: 28px 32px;
  margin: 0 0 28px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(32, 48, 72, 0.06);
}

.download-block.light {
  background: #f8fbff;
}

.download-block h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  line-height: 1.25;
}

.download-block .lead {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-strong, #243447);
}

.download-card {
  padding: 24px 26px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(32, 48, 72, 0.06);
}

.download-card header h4 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.download-card header p {
  margin: 0 0 14px;
  color: #566579;
  line-height: 1.65;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list li + li {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(60, 80, 110, 0.12);
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.download-item a {
  color: #22364d;
  text-decoration: none;
  font-weight: 600;
}

.download-item a:hover {
  text-decoration: underline;
}

.download-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #3056a5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.download-note {
  margin-top: 12px;
  color: #5d6b7d;
  line-height: 1.65;
  font-size: 0.95rem;
}

.disabled-link {
  pointer-events: none;
  cursor: default;
  opacity: 0.78;
  text-decoration: none !important;
}

.download-button.disabled-link {
  opacity: 0.82;
}

.about-block {
  padding: 28px 32px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(32, 48, 72, 0.06);
}

.about-lead {
  margin: 0 0 16px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-strong, #243447);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 28px;
}

.about-card {
  padding: 22px 24px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(70, 95, 130, 0.12);
}

.about-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.about-subblock {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(70, 95, 130, 0.12);
}

.about-subblock.light {
  background: #f8fbff;
}

.about-subblock h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.about-list {
  margin: 12px 0 0 20px;
  padding: 0;
  line-height: 1.8;
}

.contact-hero {
  padding: 26px 30px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(32, 48, 72, 0.06);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.contact-card {
  padding: 22px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(70, 95, 130, 0.12);
  box-shadow: 0 10px 24px rgba(32, 48, 72, 0.06);
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  line-height: 1.35;
}

.contact-role {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4c6ea8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-name {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #22364d;
}

.contact-meta {
  margin: 0 0 10px;
  color: #566579;
  line-height: 1.6;
}

.contact-email {
  margin: 0 0 10px;
  line-height: 1.6;
}

.contact-email a {
  color: #22364d;
  text-decoration: none;
  font-weight: 600;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-note {
  margin: 0;
  color: #5b697a;
  line-height: 1.7;
  font-size: 0.96rem;
}

.contact-block {
  padding: 22px 24px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(70, 95, 130, 0.12);
  margin-bottom: 28px;
}

.contact-block h3 {
  margin: 0 0 12px;
  font-size: 1.14rem;
  line-height: 1.35;
}

.contact-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

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

  .contact-hero {
    padding: 22px 22px;
  }
}

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

code {
  background: #eef2f9;
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 960px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .explore-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .explore-block {
    padding: 24px 22px;
  }

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

  .figure-split {
    grid-template-columns: 1fr;
  }

  .download-subline {
    white-space: normal;
  }

  .button-row {
    flex-direction: column;
  }

  .intro-layout {
    grid-template-columns: 1fr;
  }

  .intro-figures {
    grid-template-columns: 1fr;
  }

  .download-badge {
    justify-self: start;
    text-align: left;
  }

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

  .download-block {
    padding: 24px 22px;
  }

  .server-task-grid {
    grid-template-columns: 1fr;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-stage-card,
  .doc-stage-card.reverse {
    grid-template-columns: 1fr;
  }

  .doc-stage-card.reverse .doc-stage-media,
  .doc-stage-card.reverse .doc-stage-copy {
    order: initial;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-block {
    padding: 24px 22px;
  }

  .about-block {
    padding: 24px 22px;
  }

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

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

  .contact-hero {
    padding: 22px 22px;
  }
}