/* Лендинг «Дневник стоика» — тёмный пергамент и золото, эстетика Memento Mori. */
:root {
  --ink: #14100c;
  --ink-2: #1d1712;
  --ink-3: #241c15;
  --paper: #e9ddc7;
  --muted: #a8977c;
  --gold: #c9a227;
  --gold-2: #e3c05c;
  --line: rgba(201, 162, 39, 0.28);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Шапка */
header {
  border-bottom: 1px solid var(--line);
  background: rgba(20, 16, 12, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1040px;
  margin: 0 auto;
}
.wordmark {
  font-family: var(--serif);
  letter-spacing: 0.22em;
  font-size: 15px;
  color: var(--gold-2);
  text-transform: uppercase;
  text-decoration: none;
}
.nav a.cta-small {
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.nav a.cta-small:hover { border-color: var(--gold); color: var(--gold-2); }

/* Hero */
.hero { text-align: center; padding: 96px 24px 72px; }
.eyebrow {
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  margin: 0 0 28px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.15;
  margin: 0 auto 24px;
  max-width: 18ch;
}
.hero p.lede {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 56ch;
  margin: 0 auto 40px;
}
.rule {
  width: 72px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
  position: relative;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.06em;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #201808;
  font-weight: 600;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(201, 162, 39, 0.25); }
.btn-ghost { border: 1px solid var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* Полоса жизни (Memento Mori) */
.life-strip {
  display: flex;
  gap: 4px;
  max-width: 560px;
  margin: 56px auto 0;
  height: 10px;
}
.life-strip .lived,
.life-strip .left {
  height: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    currentColor 0 6px,
    transparent 6px 10px
  );
}
.life-strip .lived { flex: 0 0 37%; color: var(--gold); }
.life-strip .left { flex: 1; color: rgba(233, 221, 199, 0.22); }
.life-caption {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-top: 14px;
}

/* Секции */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-label {
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  margin: 0 0 12px;
}
section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 16px;
}
section p.section-lede { color: var(--muted); max-width: 62ch; margin: 0 0 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}
.card .num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin: 0 0 12px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 10px;
}
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* Цитата */
.quote-block { text-align: center; padding: 88px 24px; }
.quote-block blockquote {
  font-family: var(--serif);
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.4;
  max-width: 26ch;
  margin: 0 auto 24px;
  color: var(--paper);
}
.quote-block cite {
  display: block;
  font-style: normal;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

/* Футер */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--gold-2); }

@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 20px 56px; }
  section { padding: 56px 0; }
}