/* ============ Post: текст статьи ============ */
.post-article { margin-top: 64px; }

.post-article__body {
  max-width: 960px;
  display: grid;
  gap: 26px;

  /* базовый текст: 20/18 */
  font-size: 20px;
  line-height: 1.5;
}

/* --- Типографика --- */
.post-article__body h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.15;
}

.post-article__body h3 {
  margin-top: 36px; /* + gap 20 = 48px до подзаголовка */
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.post-article__body h4 {
  margin-top: 12px; /* + gap 20 = 32px до варианта */
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.post-article__body strong { font-weight: 600; }

.post-article__body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.post-article__body a:hover { color: var(--color-accent); }

/* --- Списки --- */
.post-article__body ul,
.post-article__body ol {
  margin: 0;
  line-height: 1;
}
.post-article__body ul { list-style: disc; padding-left: 24px;}
.post-article__body ol { list-style: decimal; padding-left: 20px;}
.post-article__body li + li { margin-top: 8px; }

/* --- Картинка в тексте --- */
.post-article__figure {
  margin: 18px 0; /* + gap 20 = 32px сверху и снизу */
}

.post-article__figure img {
  width: 100%;
  border-radius: 20px;
  background-color: #1d2026;
}

/* --- Таблица условий --- */
.post-table {
  border-radius: 16px;
  background-color: var(--color-white);
  overflow: hidden;
  margin-top:2em;
}

.post-table__head,
.post-table__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 28px;
}

.post-table__head {
  padding-block: 22px;
  color: var(--color-gray);
  font-size: 20px;
}

.post-table__row + .post-table__row { border-top: 1px solid var(--color-line); }

.post-table__value { font-weight: 600; }

/* --- Теги статьи --- */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 68px;
}

.post-tags__chip {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background-color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark);
  transition: background-color 0.2s, color 0.2s;
}

.post-tags__chip:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* --- Мобильные --- */
@media (max-width: 1024px) {
  .post-article { margin-top: 40px; }

  .post-article__body {
    gap: 14px;
    font-size: 18px;
  }

  .post-article__body h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .post-article__body h3 {
    margin-top: 10px; /* + gap = 24px */
    font-size: 24px;
  }

  .post-article__body h4 {
    margin-top: 4px; /* + gap = 18px */
    font-size: 18px;
  }

  .post-article__figure { margin: 6px 0; }
  .post-article__figure img { border-radius: 16px; }

  /* таблица → стек: метка над значением */
  .post-table__head { display: none; }

  .post-table__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 18px;
  }

  .post-table__label {
    font-size: 15px;
    color: var(--color-gray);
  }

  .post-table__value { font-size: 18px; }

  .post-tags {
    gap: 8px;
    margin-top: 32px;
  }

  .post-tags__chip {
    padding: 10px 20px;
    font-size: 13px;
  }
}