.article-hero {
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: var(--bg-light);
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.72fr);
  gap: 72px;
  margin: 0 auto;
  padding: 56px 60px 32px;
  align-items: start;
  font-family: var(--font-main);
}

.article-meta {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  color: var(--text-dark);
}

.article-body,
.article-main p {
  font-size: 16px;
  line-height: 1.7;
  color: #4a4a4a;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-body img,
.article-figure img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 28px 0;
}

.article-sidebar {
  position: sticky;
  top: 108px;
}

.sidebar-block {
  margin-bottom: 36px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text-dark);
}

.sidebar-empty {
  font-size: 13px;
  color: var(--text-muted);
}

.popular-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  text-decoration: none;
  color: inherit;
}

.popular-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.popular-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}

.popular-item small {
  color: var(--text-muted);
  font-size: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4a7ab5;
  border: 1.4px solid #4a7ab5;
  border-radius: 50%;
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.recommended {
  padding: 24px 0 80px;
  font-family: var(--font-main);
}

.recommended__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 60px;
}

.recommended__header h2 {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}

.recommended__arrows {
  display: flex;
  gap: 10px;
}

.recommended__arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #f3f3f3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.recommended__arrows button:hover {
  background: #ececec;
}

.recommended__arrows svg {
  width: 18px;
  height: 18px;
}

.recommended__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 60px;
  scroll-padding-inline: 60px;
}

.recommended__track::-webkit-scrollbar {
  display: none;
}

.recommended-card {
  flex: 0 0 270px;
  text-decoration: none;
  color: inherit;
}

.recommended-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
  display: block;
}

.recommended-card span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.recommended-card strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}

.recommended-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .article-layout,
  .recommended__header,
  .recommended__track {
    padding-left: 32px;
    padding-right: 32px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    position: static;
  }

  .article-hero {
    height: 320px;
  }

  .article-title {
    font-size: 28px;
  }

  .recommended-card {
    flex: 0 0 46%;
  }
}

@media (max-width: 768px) {
  .article-layout,
  .recommended__header,
  .recommended__track {
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-hero {
    height: 240px;
  }

  .article-body img,
  .article-figure img {
    max-height: 220px;
  }

  .recommended-card {
    flex: 0 0 82%;
  }
}
