:root {
  --navy: #0f2b5b;
  --navy-2: #173f7a;
  --green: #0f9f73;
  --green-dark: #087454;
  --ink: #0f172a;
  --muted: #526277;
  --line: #dbe3ed;
  --soft: #f6f8fb;
  --mint: #e9faf4;
  --white: #fff;
  --shadow: 0 18px 55px rgba(15, 43, 91, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--navy-2); }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; }
.skip-link:focus { left: 8px; z-index: 100; padding: 10px 14px; background: #fff; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(219, 227, 237, .92);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.nav__inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.logo { color: var(--navy); font-size: 21px; font-weight: 850; text-decoration: none; }
.nav__links { display: flex; gap: 24px; align-items: center; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a { color: #435269; font-size: 14px; font-weight: 700; text-decoration: none; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--navy); }

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  border: 0;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 43, 91, .13);
}
.btn:hover { background: var(--navy-2); }
.btn--green { background: var(--green-dark); }
.btn--green:hover { background: #075f47; }
.btn--ghost { border: 1px solid #bcc9d8; background: #fff; color: var(--navy); box-shadow: none; }

.breadcrumb { padding: 24px 0 0; color: #64748b; font-size: 14px; }
.breadcrumb a { color: #526277; }
.breadcrumb span { margin: 0 8px; }

.template-hero { padding: 46px 0 72px; background: linear-gradient(145deg, #f8fafc 0%, #edf7f4 100%); }
.template-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 470px); gap: 70px; align-items: center; }
.eyebrow { display: inline-flex; padding: 6px 11px; border-radius: 999px; background: #d9f7eb; color: #087454; font-size: 12px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.template-hero h1 { margin: 17px 0 18px; color: var(--navy); font-size: clamp(38px, 6vw, 63px); line-height: 1.04; letter-spacing: -.04em; }
.lead { margin: 0; max-width: 680px; color: #475569; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.file-facts { display: flex; flex-wrap: wrap; gap: 10px 20px; color: #556477; font-size: 14px; }
.preview-shell { padding: 20px; border: 1px solid #d9e2ec; border-radius: 22px; background: rgba(255,255,255,.84); box-shadow: var(--shadow); }
.preview-shell img { width: 100%; height: auto; border: 1px solid #e2e8f0; background: #fff; }

.section { padding: 76px 0; }
.section--soft { background: var(--soft); }
.section h2 { margin: 0 0 16px; color: var(--navy); font-size: clamp(29px, 4vw, 40px); line-height: 1.18; letter-spacing: -.025em; }
.section-intro { max-width: 740px; margin: 0 0 34px; color: var(--muted); font-size: 17px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 58px; align-items: start; }
.prose { font-size: 17px; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 8px; color: var(--navy); font-size: 21px; }
.prose p { margin: 0 0 20px; }
.prose li { margin: 8px 0; }
.prose blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--green); background: var(--mint); color: #174b3c; }
.side-card { position: sticky; top: 98px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 34px rgba(15, 43, 91, .08); }
.side-card h2 { font-size: 22px; }
.side-card ul { margin: 14px 0 22px; padding-left: 20px; }
.side-card .btn { width: 100%; }

.fit-grid, .steps-grid, .related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.info-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.info-card p { margin: 0; color: var(--muted); }
.example-box { margin: 24px 0; padding: 25px; border: 1px solid #b8e8d7; border-radius: 14px; background: var(--mint); }
.example-box strong { display: block; margin-bottom: 8px; color: #086045; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; color: var(--navy); font-size: 18px; font-weight: 800; }
.faq details p { margin: 0 0 22px; color: var(--muted); }

.related-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.related-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #eef2f7; }
.related-card__body { padding: 20px; }
.related-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.related-card p { margin: 0 0 12px; color: var(--muted); }
.related-card a { font-weight: 800; }

.trust-hero { padding: 76px 0 58px; background: linear-gradient(145deg, #f8fafc, #eff8f5); }
.trust-hero h1 { max-width: 800px; margin: 12px 0 18px; color: var(--navy); font-size: clamp(40px, 7vw, 66px); line-height: 1.05; }
.trust-main { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 66px 0 90px; font-size: 17px; }
.trust-main h2 { margin: 44px 0 12px; color: var(--navy); font-size: 30px; }
.trust-main h2:first-child { margin-top: 0; }
.trust-main h3 { color: var(--navy); }
.trust-main li { margin: 8px 0; }
.notice { padding: 20px 22px; border-left: 4px solid var(--green); background: var(--mint); }

.download-cta { padding: 46px; border-radius: 22px; background: var(--navy); color: #fff; }
.download-cta h2 { color: #fff; }
.download-cta p { max-width: 720px; color: #dce8f8; }

.footer { padding: 38px 0; border-top: 1px solid var(--line); background: #f8fafc; }
.footer__inner { display: flex; align-items: flex-start; gap: 30px; }
.footer__brand { max-width: 360px; }
.footer__brand p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 15px 22px; margin-left: auto; }
.footer__links a { color: #4a5a6e; font-size: 14px; }

@media (max-width: 900px) {
  .template-hero__grid, .content-grid { grid-template-columns: 1fr; }
  .preview-shell { max-width: 520px; }
  .side-card { position: static; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .template-hero { padding-top: 34px; }
  .template-hero__grid { gap: 38px; }
  .section { padding: 56px 0; }
  .fit-grid, .steps-grid, .related-grid { grid-template-columns: 1fr; }
  .download-cta { padding: 30px 24px; }
  .footer__inner { flex-direction: column; }
  .footer__links { margin-left: 0; }
}
