/* Блог: список статей (/blog/) и страница статьи (/blog/<slug>/).
   Подключается после styles-lms.css — шрифты, шапка, FAQ и кнопки оттуда. */

.post-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: rgba(89, 157, 21, 0.12);
  font-family: var(--lms-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--lms-accent);
}
.post-lead {
  max-width: 760px;
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.55;
  color: #44515c;
}

/* ------------------------------ список ------------------------------ */
.blog-hero {
  padding: 132px 0 40px;
  background:
    radial-gradient(45% 60% at 85% 0%, rgba(141, 198, 63, 0.2), transparent 70%),
    linear-gradient(180deg, #f6faf1, #ffffff);
}
.blog-hero h1 {
  margin-top: 16px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--lms-ink);
}
.blog-hero h1 em {
  font-style: normal;
  color: var(--lms-accent-bright);
}
.blog-list {
  padding: 24px 0 96px;
}
.post-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #e6eae2;
  border-radius: 28px;
  background-color: #ffffff;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-feature img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.post-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 40px;
}
.post-feature__body b {
  font-family: var(--lms-head);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--lms-ink);
}
.post-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6eae2;
  border-radius: 22px;
  background-color: #ffffff;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}
.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 24px;
}
.post-card__body b {
  font-family: var(--lms-head);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--lms-ink);
}
.post-card em,
.post-feature em {
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lms-accent);
}
.post-card__body > span,
.post-feature__body > span {
  font-size: 15px;
  line-height: 1.5;
  color: var(--lms-muted);
}
.post-card:hover,
.post-feature:hover {
  box-shadow: 0 22px 50px -22px rgba(30, 60, 20, 0.35);
  transform: translateY(-3px);
}

/* ------------------------------ статья ------------------------------ */
.post-hero {
  padding: 124px 0 44px;
  background:
    radial-gradient(45% 60% at 90% 0%, rgba(141, 198, 63, 0.18), transparent 70%),
    linear-gradient(180deg, #f6faf1, #ffffff);
}
.post-hero__inner {
  max-width: 1000px;
}
.post-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--lms-muted);
}
.post-crumbs a {
  color: var(--lms-muted);
  text-decoration: none;
}
.post-crumbs a:hover {
  color: var(--lms-accent);
}
.post-crumbs [aria-current] {
  overflow: hidden;
  max-width: 420px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--lms-ink);
}
.post-hero h1 {
  margin-top: 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--lms-ink);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--lms-muted);
}
.post-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 32px;
  border-radius: 24px;
  object-fit: cover;
}
.post-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 64px;
}
.post-side {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.post-toc p {
  margin-bottom: 10px;
  font-family: var(--lms-head);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lms-ink);
}
.post-toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid #e6eae2;
}
.post-toc a {
  display: block;
  margin-left: -2px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  font-size: 14.5px;
  line-height: 1.35;
  text-decoration: none;
  color: var(--lms-muted);
}
.post-toc a:hover {
  border-left-color: var(--lms-accent-bright);
  color: var(--lms-ink);
}
.post-product {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e0ead4;
  border-radius: 18px;
  background-color: #f6faf1;
  text-decoration: none;
}
.post-product img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.post-product b {
  display: block;
  font-family: var(--lms-head);
  font-size: 15.5px;
  color: var(--lms-ink);
}
.post-product span span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--lms-muted);
}
.post-product em {
  grid-column: 2;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  color: var(--lms-accent);
}

/* типографика текста статьи */
.post-body {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
  color: #24303a;
}
.post-body > * + * {
  margin-top: 18px;
}
.post-body h2 {
  margin-top: 52px;
  scroll-margin-top: 90px;
  font-size: clamp(25px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--lms-ink);
}
.post-body h3 {
  margin-top: 32px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--lms-ink);
}
.post-body a {
  font-weight: 600;
  color: var(--lms-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-body ul,
.post-body ol {
  padding-left: 24px;
}
.post-body li + li {
  margin-top: 8px;
}
.post-body li::marker {
  color: var(--lms-accent-bright);
  font-weight: 700;
}
.post-body strong {
  color: var(--lms-ink);
}
.post-body blockquote {
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--lms-accent-bright);
  font-size: 20px;
  font-style: italic;
  color: var(--lms-ink);
}
.post-tldr,
.post-note,
.post-tool,
.post-template {
  padding: 22px 26px;
  border-radius: 20px;
}
.post-tldr {
  background-color: #f6f8f4;
}
.post-tldr ul {
  margin-top: 8px;
}
.post-note {
  border: 1px solid #f3dcb0;
  background-color: #fffaf0;
  font-size: 16.5px;
}
.post-tool {
  border: 1px solid #d9e8c7;
  background: linear-gradient(135deg, #f4faec, #ffffff);
}
.post-tool__t {
  font-family: var(--lms-head);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lms-accent);
}
.post-tool p + p {
  margin-top: 8px;
}
.post-template {
  border: 1px dashed #c9d3c0;
  background-color: #ffffff;
  font-size: 16.5px;
}
.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.45;
}
.post-table th,
.post-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e6eae2;
  text-align: left;
  vertical-align: top;
}
.post-table thead th {
  background-color: #f6f8f4;
  font-family: var(--lms-head);
  font-size: 14px;
  color: var(--lms-ink);
}
.post-scroll {
  overflow-x: auto;
}
.post-formula {
  padding: 18px 22px;
  border-radius: 16px;
  background-color: #10241a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
  color: #d9f2bd;
}

/* заявка после статьи */
.post-cta {
  padding-bottom: 72px;
}
.post-cta__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(141, 198, 63, 0.22), transparent 70%),
    #10241a;
}
.post-cta__band h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: #ffffff !important;
}
.post-cta__band p {
  margin-top: 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
}
.post-cta__band .lms-cta {
  flex: none;
  background-color: #ffffff;
  color: var(--lms-ink);
}
.post-related {
  padding: 72px 0 24px;
  background-color: #f6f8f4;
}
.post-related h2 {
  margin-bottom: 28px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  color: var(--lms-ink);
}

@media (max-width: 1100px) {
  .post-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .post-side {
    position: static;
  }
  .post-toc {
    display: none;
  }
  .post-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .post-hero,
  .blog-hero {
    padding-top: 100px;
  }
  .post-body {
    font-size: 17px;
  }
  .post-feature {
    grid-template-columns: 1fr;
  }
  .post-feature img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .post-feature__body {
    padding: 24px;
  }
  .post-cards {
    grid-template-columns: 1fr;
  }
  .post-cta__band {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
  .post-tldr,
  .post-note,
  .post-tool,
  .post-template {
    padding: 18px 20px;
  }
}

/* «Статьи по теме» на страницах модулей — перед FAQ */
.post-related--module {
  padding: 80px 0;
  background-color: #ffffff;
  border-top: 1px solid #eef1ea;
}
.post-related--module h2 {
  text-align: center;
}
