/* Статьи «Полезное для родителей» (/stati/). Страницы собирает tools/stati.py. */
.post-wrap { padding: clamp(18px, 4vw, 40px) var(--gutter) 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 16px; }
.crumbs a { color: inherit; text-underline-offset: 3px; }

/* Статья: белый лист для длинного текста */
.post {
  max-width: 800px; margin: 0 auto;
  background: var(--paper); border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: clamp(20px, 5vw, 56px);
}
.post h1 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 16px; overflow-wrap: break-word; }
.post h2 { font-size: clamp(22px, 2.8vw, 29px); margin: 1.7em 0 .6em; }
.post p, .post li { font-size: 18px; line-height: 1.65; }
.post p { margin: 0 0 1em; }
.post .lead { font-size: 20px; }
.post ul, .post ol { padding-left: 1.35em; margin: 0 0 1.1em; }
.post li { margin-bottom: 8px; }
.post li::marker { color: var(--orange); font-weight: 800; }
.post a { text-underline-offset: 3px; text-decoration-thickness: 2px; }
.post strong { font-weight: 800; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1.5px dashed var(--hair); }
.byline .ava { width: 54px; height: 54px; flex: none; border-radius: 50%; border: 2px solid var(--ink); background: var(--orange-soft); overflow: hidden; display: grid; place-items: center; }
.byline .ava img { width: 100%; height: 100%; object-fit: cover; }
.byline .ava img.fallback { width: 78%; height: 78%; object-fit: contain; }
.byline .who { display: grid; font-size: 15px; line-height: 1.35; }
.byline .who b { font-size: 16px; }
.byline .meta { font-size: 15px; margin-left: auto; }
@media (max-width: 640px) { .byline .meta { margin-left: 0; flex-basis: 100%; } }

.post figure { margin: 28px 0 30px; }
.post figure img { width: 100%; height: auto; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); background: var(--cream); }

.post .tbl { overflow-x: auto; margin: 18px 0 22px; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); background: var(--paper); }
.post table { width: 100%; border-collapse: collapse; }
.post th, .post td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1.5px solid var(--hair); font-size: 16px; line-height: 1.45; }
.post th { background: var(--yellow-soft); font-family: var(--f-head); font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--ink); }
.post tbody tr:last-child td { border-bottom: 0; }
.post td:first-child { white-space: nowrap; font-weight: 800; }

/* Блок «Первый урок бесплатно» */
.post .final, .stati-cta .final { margin: 36px 0 22px; }
.post .final { padding: clamp(26px, 5vw, 48px) clamp(18px, 4vw, 36px); }
.post .final h2, .stati-cta .final h2 { font-size: clamp(22px, 3.2vw, 32px); margin: 0 0 12px; }
.post .final p { font-size: 17px; }
.post .final .btn, .stati-cta .final .btn { white-space: normal; max-width: 100%; }
.post .final + p { margin-bottom: 0; }

@media (max-width: 560px) {
  .post { border-radius: var(--r); box-shadow: none; }
  .post p, .post li { font-size: 17px; }
  .post .lead { font-size: 18px; }
  .post th, .post td { padding: 9px 12px; font-size: 15px; }
}

/* Список статей */
.stati { max-width: var(--wrap); margin: 0 auto; }
.stati-head { max-width: 800px; }
.stati-head h1 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 12px; }
.stati-head .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; margin: 0; }
.stati-list { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 28px 0 8px; }
.stati-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.stati-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.stati-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.stati-card img { width: 100%; height: auto; border-bottom: 2px solid var(--ink); }
.stati-card .in { padding: 18px 20px 20px; display: grid; gap: 8px; }
.stati-card h2 { font-size: 20px; margin: 0; }
.stati-card p { margin: 0; font-size: 16px; }
.stati-card .meta { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.stati-cta { max-width: 800px; margin: 0 auto; }
.nw { white-space: nowrap; }
