/* Блог (М3 маркетинга): те же цвета и шрифт, что у лендинга.
   Ширина текста статьи ограничена — длинные строки тяжело читать. */

:root {
  --bg: #E9EDF3;
  --card: #ffffff;
  --panel: #EEF1F6;
  --text: #111827;
  --muted: #4B5563;
  --faint: #9CA3AF;
  --accent: #2F4BC4;
  --accent-soft: #EEF2FF;
  --radius: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Шапка — как на лендинге */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-size: 22px; font-weight: 800; letter-spacing: -0.3px;
  color: var(--text); text-decoration: none;
}
.top a.enter {
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 14px; background: var(--card);
}

main { padding: 12px 0 30px; }
h1 {
  font-size: 34px; font-weight: 800; letter-spacing: -0.6px;
  line-height: 1.15;
}
.lead { margin: 12px 0 24px; font-size: 17px; color: var(--muted); }

/* Список статей */
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border-radius: var(--radius); padding: 20px;
  text-decoration: none; color: var(--text);
}
.post-card time { font-size: 13px; color: var(--faint); }
.post-card b { font-size: 18px; line-height: 1.3; }
.post-card span { font-size: 14.5px; color: var(--muted); }
.empty {
  background: var(--card); border-radius: var(--radius); padding: 20px;
  color: var(--muted);
}

/* Статья */
article {
  background: var(--card); border-radius: 26px; padding: 28px 30px 32px;
}
.back { font-size: 14px; text-decoration: none; font-weight: 500; }
article h1 { margin-top: 14px; }
article > time {
  display: block; margin-top: 8px; font-size: 14px; color: var(--faint);
}
.article-body { margin-top: 22px; font-size: 17px; }
.article-body > * + * { margin-top: 14px; }
.article-body h2 {
  font-size: 23px; font-weight: 700; letter-spacing: -0.3px;
  line-height: 1.25; margin-top: 30px;
}
.article-body h3 { font-size: 19px; font-weight: 700; margin-top: 22px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li + li { margin-top: 6px; }
.article-body blockquote {
  background: var(--accent-soft); border-radius: 14px; padding: 14px 18px;
  color: var(--text);
}
.article-body img { max-width: 100%; height: auto; border-radius: 14px; }
.article-body table {
  width: 100%; border-collapse: collapse; font-size: 15px;
}
.article-body th, .article-body td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--panel);
}
.article-body th { color: var(--muted); font-weight: 600; }
.article-body code {
  background: var(--panel); border-radius: 6px; padding: 1px 6px;
  font-size: 0.92em;
}

/* Блок «Попробовать» в конце статьи */
.cta-box {
  margin-top: 16px; background: var(--accent); color: #fff;
  border-radius: 26px; padding: 24px 26px;
}
.cta-box b { font-size: 19px; }
.cta-box p { margin: 8px 0 16px; opacity: 0.9; font-size: 15px; }
.cta-box .cta {
  display: inline-block; background: #fff; color: var(--accent);
  font-weight: 700; text-decoration: none; padding: 13px 26px;
  border-radius: 14px;
}

footer {
  padding: 26px 0 40px; font-size: 13.5px; color: var(--faint);
  display: flex; flex-wrap: wrap; gap: 8px 22px;
}
footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 600px) {
  h1 { font-size: 27px; }
  article { padding: 22px 18px 26px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 21px; }
}

/* Калькуляторы (М4): поля ввода и крупный результат */
.calc-lead { margin: 10px 0 20px; font-size: 17px; color: var(--muted); }
.calc { display: flex; flex-direction: column; gap: 14px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field > span:first-child { font-weight: 600; font-size: 15px; }
.calc-field small { font-size: 13px; color: var(--faint); }
.calc-input {
  display: flex; align-items: center; background: var(--panel);
  border-radius: 14px; padding: 0 14px;
}
.calc-input input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font: inherit; font-size: 18px; padding: 13px 0; color: var(--text);
  outline: none;
}
.calc-input:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.calc-input i { font-style: normal; color: var(--faint); margin-left: 8px; }
.calc-result {
  margin-top: 20px; background: var(--accent-soft); border-radius: 20px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px;
}
.calc-result-label { font-size: 14px; color: var(--muted); }
.calc-result b {
  font-size: 34px; font-weight: 800; letter-spacing: -0.6px;
  color: var(--accent);
}
.calc-result #explain { font-size: 14px; color: var(--muted); }
