/* Блог Expo Helper. Палитра и типографика — те же токены, что в o-servise.html и в App.jsx
   (дизайн «1b Спокойный офис»). Вынесено в отдельный файл, потому что страниц блога будет
   много: держать одинаковые 150 строк стилей в каждой статье нельзя.
   Файл лежит в public/, Vite копирует его в dist/blog/blog.css как есть. */
:root {
  --ink: #14231F;
  --paper: #F2F6F4;
  --accent: #0E7A6B;
  --accent-hover: #0B6459;
  --accent-dark: #0E2A25;
  --tint-strong: #E3EFEB;
  --line: #E2EAE6;
  --line-light: #ECF0EE;
  --muted: #5C6B65;
  --faint: #8A9691;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Onest', system-ui, sans-serif;
  line-height: 1.65;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line-light);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 16px; text-decoration: none; letter-spacing: -0.3px; }
.logo .sq { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.login { color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; }

main { max-width: 720px; margin: 0 auto; padding: 36px 20px 60px; }
.eyebrow { font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.25; margin: 0 0 14px; }
h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.2px; margin: 34px 0 12px; }
p { margin: 0 0 16px; }
b, strong { color: var(--ink); font-weight: 700; }
a { color: var(--accent); }

/* Служебная строка статьи: дата и автор. Дата в tabular-nums, как все числа в проекте. */
.meta { font-size: 13px; color: var(--faint); margin-bottom: 26px; font-variant-numeric: tabular-nums; }
.meta .sep { margin: 0 7px; }

/* Первый абзац — крупнее остального текста, на подложке. */
.lead { background: var(--paper); border-radius: 14px; padding: 18px 20px; font-size: 17px; line-height: 1.65; margin-bottom: 26px; }
.lead p:last-child { margin-bottom: 0; }

article ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
article ul li { position: relative; padding-left: 20px; margin-bottom: 10px; }
article ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.callout { display: flex; gap: 10px; background: var(--tint-strong); border-left: 3px solid var(--accent); border-radius: 10px; padding: 13px 15px; font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.callout svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.callout p:last-child { margin-bottom: 0; }

.cta-box { margin-top: 34px; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.cta-box .t { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.cta-box p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.cta { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: 10px; }
.cta:hover { background: var(--accent-hover); }

/* Список статей на /blog/ */
.posts { display: flex; flex-direction: column; gap: 14px; }
.post { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: inherit; }
.post:hover { border-color: var(--accent); }
.post .d { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.post .t { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; margin: 4px 0 6px; line-height: 1.35; }
.post .x { font-size: 14px; color: var(--muted); line-height: 1.6; }

.backlink { display: inline-block; margin-top: 34px; font-size: 13.5px; font-weight: 700; text-decoration: none; }

footer { border-top: 1px solid var(--line-light); margin-top: 40px; padding: 22px 20px 40px; }
footer .inner { max-width: 720px; margin: 0 auto; font-size: 12.5px; color: var(--faint); line-height: 1.7; }
footer .docs { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; font-weight: 600; }
footer .docs a { text-decoration: none; }
footer .docs span { color: var(--faint); }

@media (max-width: 760px) {
  h1 { font-size: 25px; }
  .lead { font-size: 16px; }
}

/* Обложка статьи и картинки в тексте. Появились 16.08.2026: раньше статьи шли сплошным
   текстом, а в ленте Дзена материал без единой картинки показывается пустым серым
   квадратом — на своём сайте это тоже выглядит неубедительно. */
.cover {
  width: 100%;
  /* height: auto обязателен. В разметке у картинки стоят атрибуты width/height — они нужны,
     чтобы браузер зарезервировал место и страница не прыгала при загрузке. Но CSS-ширина
     100% без сброса высоты оставляет высоту из атрибута (1080px), и обложка растягивается
     по вертикали. Поймано на живом сайте 16.08.2026. */
  height: auto;
  border-radius: 14px;
  display: block;
  margin: 4px 0 30px;
}
figure {
  margin: 30px 0;
}
figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--line);
}
figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
