:root {
  --ink: #102c46;
  --muted: #536b80;
  --blue: #1f6196;
  --blue-dark: #12436d;
  --sky: #eaf5fb;
  --line: #c9dce9;
  --paper: #ffffff;
  --wash: #f4f8fb;
  --red: #e31e2a;
  --shadow: 0 16px 40px rgba(16, 44, 70, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--blue-dark);
  color: white;
  box-shadow: 0 8px 24px rgba(16, 44, 70, .16);
}
.top__inner { min-height: 72px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; min-width: 245px; }
.brand img { width: 86px; height: 44px; object-fit: contain; }
.brand span { font-weight: 800; line-height: 1.1; text-transform: uppercase; font-size: 14px; }
.nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-left: auto; }
.nav a { color: white; text-decoration: none; font-weight: 700; font-size: 14px; }
.phone { color: white; text-decoration: none; font-weight: 800; white-space: nowrap; }
.menu-button { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 9px; cursor: pointer; }
.menu-button span { display: block; height: 3px; background: white; margin: 5px 0; border-radius: 2px; }

.crumbs { padding-block: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { font-weight: 700; }
.hero { padding: 44px 0 70px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; border: 1px solid #9dd4e7; background: #edfafd; color: #08718d; padding: 6px 12px; border-radius: 6px; text-transform: uppercase; font-size: 13px; font-weight: 800; }
h1, h2, h3 { margin: 0 0 .55em; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: clamp(38px, 5vw, 66px); max-width: 780px; }
h2 { font-size: clamp(27px, 3vw, 38px); margin-top: 1.55em; }
h3 { font-size: 21px; }
.lead { font-size: 21px; color: #294b68; max-width: 760px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; background: var(--blue); color: white; text-decoration: none; font-weight: 800; border-radius: 6px; }
.btn--red { background: var(--red); }
.btn--ghost { color: var(--blue); background: white; border: 1px solid var(--line); }
.hero-figure, .article-photo { margin: 0; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.hero-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { padding: 13px 16px; font-size: 14px; color: var(--muted); background: white; }
.art-note { display: inline-block; margin-right: 6px; color: #08718d; font-weight: 800; }

.book-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.book-stats div { padding: 16px; border: 1px solid var(--line); background: var(--sky); border-radius: 6px; }
.book-stats strong { display: block; font-size: 22px; color: var(--blue-dark); }
.book-stats span { color: var(--muted); font-size: 14px; }
.intro { padding: 64px 0; }
.intro__grid { display: grid; grid-template-columns: 1fr .88fr; gap: 38px; align-items: start; }
.author-card, .notice, .toc-card, .sidebar-card { border: 1px solid var(--line); border-radius: 8px; background: white; }
.author-card { padding: 26px; display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; }
.author-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; }
.author-card p { margin: 4px 0 0; color: var(--muted); }
.notice { padding: 22px; border-left: 4px solid var(--blue); }
.notice strong { display: block; margin-bottom: 5px; }

.toc { padding: 64px 0 82px; background: white; border-block: 1px solid var(--line); }
.toc__head { max-width: 720px; margin-bottom: 30px; }
.toc__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.toc-card { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px; text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.toc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.toc-card__num { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 6px; background: var(--blue-dark); color: white; font-weight: 900; font-size: 22px; }
.toc-card h3 { margin-bottom: 8px; }
.toc-card p { margin: 0; color: var(--muted); }

.chapter-hero { padding: 42px 0 54px; background: white; border-bottom: 1px solid var(--line); }
.chapter-label { display: flex; align-items: center; gap: 12px; color: var(--blue); font-weight: 800; text-transform: uppercase; font-size: 13px; }
.chapter-label span { display: grid; place-items: center; width: 38px; height: 38px; background: var(--blue); color: white; border-radius: 50%; font-size: 17px; }
.chapter-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-top: 18px; }
.reading-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.chapter-layout { display: grid; grid-template-columns: minmax(0, 760px) 290px; gap: 42px; align-items: start; padding: 54px 0 84px; }
.article { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 5vw, 52px); box-shadow: 0 10px 30px rgba(16, 44, 70, .06); }
.article > p { margin: 0 0 1.15em; }
.expert-quote { margin: 30px 0; padding: 25px 28px; background: var(--sky); border-left: 4px solid var(--blue); font-size: 20px; font-weight: 700; }
.article-photo { margin: 34px 0; box-shadow: none; }
.article-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.checklist { margin: 32px 0; padding: 26px; background: #f4f9fc; border: 1px solid var(--line); border-radius: 8px; }
.checklist h2 { margin-top: 0; font-size: 25px; }
.checklist ul { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 9px 0 9px 34px; border-top: 1px solid #dce9f1; }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; top: 8px; color: var(--blue); font-weight: 900; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 16px; }
.sidebar-card { padding: 20px; }
.sidebar-card ul { margin: 0; padding-left: 20px; }
.sidebar-card li + li { margin-top: 8px; }
.chapter-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 42px; }
.chapter-nav a { min-height: 82px; padding: 16px; border: 1px solid var(--line); background: var(--sky); border-radius: 6px; text-decoration: none; font-weight: 800; display: flex; align-items: center; }
.chapter-nav a:last-child { text-align: right; justify-content: flex-end; }

.footer { background: #0e314e; color: #dbe9f3; padding: 34px 0 90px; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer a { color: white; }
.footfix { display: none; }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 24px, 760px); }
  .top__inner { min-height: 60px; gap: 12px; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand img { width: 68px; height: 38px; }
  .brand span { display: none; }
  .phone { margin-left: auto; font-size: 16px; }
  .menu-button { display: block; flex: 0 0 44px; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; padding: 18px 24px 22px; background: var(--blue-dark); border-top: 1px solid rgba(255,255,255,.22); flex-direction: column; align-items: stretch; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .hero { padding: 26px 0 44px; }
  .hero__grid, .intro__grid, .chapter-layout { grid-template-columns: 1fr; }
  .hero__grid { gap: 30px; }
  .hero__grid > div { min-width: 0; }
  h1 { font-size: 38px; overflow-wrap: anywhere; }
  .lead { font-size: 18px; }
  .book-stats { grid-template-columns: 1fr; }
  .intro, .toc { padding-block: 42px; }
  .toc__grid { grid-template-columns: 1fr; }
  .chapter-layout { padding: 28px 0 76px; gap: 28px; }
  .sidebar { position: static; }
  .article { padding: 22px 16px; overflow: hidden; }
  .article h2 { overflow-wrap: anywhere; }
  .expert-quote { margin-inline: 0; padding: 20px; font-size: 18px; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav a:last-child { text-align: left; justify-content: flex-start; }
  .footer__inner { display: grid; }
  .footfix { display: block; position: fixed; z-index: 60; left: 10px; right: 10px; bottom: 8px; }
  .footfix a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px; background: var(--red); color: white; text-decoration: none; font-weight: 800; border: 2px solid white; box-shadow: 0 8px 26px rgba(16,44,70,.28); }
}

@media (max-width: 430px) {
  .phone { font-size: 14px; }
  .crumbs { padding-block: 12px; }
  h1, .chapter-hero h1 { font-size: 32px; }
  h2 { font-size: 25px; }
  .hero__actions { display: grid; }
  .btn { width: 100%; }
  .toc-card { grid-template-columns: 48px 1fr; padding: 18px 14px; gap: 12px; }
  .toc-card__num { width: 44px; height: 44px; }
  .author-card { grid-template-columns: 64px 1fr; padding: 18px; }
  .author-card img { width: 64px; height: 64px; }
  .footer { padding-bottom: 88px; }
}

@media print {
  .top, .footfix, .footer, .chapter-nav, .sidebar { display: none !important; }
  body { background: white; color: black; }
  .chapter-layout { display: block; padding: 0; }
  .article { border: 0; box-shadow: none; padding: 0; }
}
