:root {
  --ink: #171717;
  --muted: #66615a;
  --paper: #fbf7ef;
  --panel: #fffdf8;
  --line: #252525;
  --accent: #2f6f5e;
  --accent-soft: #d9eadf;
  --warning: #9b4b19;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-size: 22px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  padding: 72px 0 96px;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.9;
  margin: 0;
  letter-spacing: 0;
}

.hero-copy {
  margin: 28px 0 0;
  max-width: 620px;
  font-size: 22px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--line);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.phone-card {
  border: 2px solid var(--line);
  background: var(--panel);
  padding: 22px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 10px 10px 0 var(--line);
}

.month-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.metric {
  border-top: 2px solid var(--line);
  padding-top: 18px;
  margin-top: 28px;
}

.metric-value {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.book-list {
  display: grid;
  gap: 12px;
}

.book-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 2px solid var(--line);
  padding: 14px;
  background: var(--accent-soft);
  font-weight: 800;
}

.page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.page h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  margin: 0 0 28px;
}

.page h2 {
  margin: 44px 0 14px;
  font-size: 24px;
}

.page p,
.page li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.page ul,
.page ol {
  padding-left: 22px;
}

.notice {
  border: 2px solid var(--line);
  background: var(--panel);
  padding: 18px;
  margin: 24px 0;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.metadata {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 32px;
}

.site-footer {
  border-top: 2px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 780px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .phone-card {
    min-height: 420px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
