/* ===== POST PAGE ===== */

.post-page__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* === POST === */

.post {
  background-color: var(--color-light);
  padding: 24px;
  border-radius: 8px;
}

.post__header {
  margin-bottom: 24px;
}

.post__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

.post__meta {
  font-size: 14px;
  color: var(--color-gray);
  margin-top: 8px;
}

.post__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post__paragraph {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  font-weight: 500;
}

.post__subtitle {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 32px 0 12px;
}

.post__image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

/* === SIDEBAR === */

.post-sidebar {
  position: relative;
}
.post-sidebar__inner {
  position: sticky;
  top: 96px; /* или 64px, если хедер ниже */
}
.post-sidebar__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.post-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-sidebar__item {
  margin-bottom: 12px;
}

.post-sidebar__link {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.post-sidebar__link:hover {
  color: var(--color-primary);
}

/* === ADAPTIVE === */

@media (max-width: 992px) {
  .post-page__layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    display: none;
  }
}