/* Расширение дизайн-системы лендинга (styles.css) под блог. Переменные не переопределяем. */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 22px 0 18px;
}

.breadcrumbs a {
  color: var(--nav);
  transition: color 140ms ease;
}

.breadcrumbs a:hover {
  color: #bdbdbd;
}

.breadcrumbs__sep {
  color: #5a5a5a;
}

.postGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.postCard {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transition: transform 140ms ease, border-color 140ms ease;
  overflow: hidden;
}

.postCard:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.postCard__coverLink {
  display: block;
}

.postCard__cover {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 400;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.03);
}

.postCard__body {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.postCard__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.postCard__title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.postCard__excerpt {
  margin: 0;
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.5;
}

.postCard__date {
  color: #8e8e8e;
  font-size: 12px;
}

.categoryGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.categoryCard {
  padding: 20px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.categoryCard__title {
  margin: 0 0 8px;
  font-size: 18px;
}

.categoryCard__text {
  margin: 0;
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.55;
}

/* Article */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 56px;
}

.article__header {
  margin-bottom: 28px;
}

.article__cover {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 0 28px;
  display: block;
}

.article__title {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 12px 0 14px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.article__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.article__body h2 {
  font-size: 26px;
  letter-spacing: -0.3px;
  margin: 40px 0 14px;
}

.article__body h3 {
  font-size: 20px;
  margin: 28px 0 12px;
}

.article__body p {
  margin: 0 0 16px;
}

.article__body ul,
.article__body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  line-height: 1.7;
}

.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 14px;
}

.article__body th,
.article__body td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  text-align: left;
}

.article__body th {
  background: rgba(0, 0, 0, 0.2);
}

.article__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__body code {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 14px;
}

.article__body img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 20px 0;
  display: block;
}

.toc {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 24px 0 32px;
  font-size: 13px;
}

.toc__title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
}

.toc ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.toc a {
  color: var(--nav);
}

.toc a:hover {
  color: #bdbdbd;
}

.authorBox {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 32px 0;
}

.authorBox__avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--panel);
}

.authorBox__name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
}

.authorBox__role {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

.authorBox__bio {
  font-size: 12px;
  color: #a8a8a8;
  margin: 0;
  line-height: 1.5;
}

.updatedBadge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 106, 61, 0.35);
  background: rgba(255, 106, 61, 0.12);
  color: #ffd6ca;
  font-size: 11px;
}

@media (max-width: 860px) {
  .postGrid,
  .categoryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .postGrid,
  .categoryGrid {
    grid-template-columns: 1fr;
  }
  .article__title {
    font-size: 26px;
  }
}
