.post-article,
.post-article__container {
  overflow: visible;
}
@media (max-width: 990px) {
  .post-article,
  .post-article__container {
    overflow-x: clip;
    max-width: 100%;
  }
  .post-article:has(.post-slider),
  .post-article__container:has(.post-slider) {
    overflow-x: visible;
  }
}

.post {
  margin-top: 160px;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 160px;
  align-items: start;
  overflow: visible;
}
@media (max-width: 1200px) {
  .post {
    gap: 80px;
  }
}
@media (max-width: 990px) {
  .post {
    margin-top: 100px;
    grid-template-columns: 1fr;
    gap: 40px;
    overflow-x: clip;
  }
  .post:has(.post-slider) {
    overflow-x: visible;
  }
}
@media (max-width: 576px) {
  .post {
    gap: 20px;
    margin-top: 80px;
  }
}
.post__sidebar {
  position: sticky;
  box-sizing: border-box;
  top: 120px;
  align-self: start;
  width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: 4px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
@media (max-width: 990px) {
  .post__sidebar {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    z-index: auto;
  }
}
@media (max-width: 576px) {
  .post__sidebar {
    padding: 15px;
  }
}
.post__sidebar-title {
  font-size: 24px;
  font-weight: 500;
  color: #1E1E1E;
  line-height: 100%;
  margin-bottom: 15px;
}
.post__sidebar-anchor {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}
@media (max-width: 990px) {
  .post__sidebar-anchor {
    overflow: visible;
    max-height: none;
    padding-right: 0;
  }
}
.post__sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.post__sidebar-item {
  margin: 0;
  padding: 0;
}
.post__sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 8px;
  background: #EAEAEA;
  color: #1E1E1E;
  font-size: 14px;
  line-height: 130%;
  font-weight: 600;
}
.post__sidebar-link::before {
  content: "";
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #fff url("../../img/arrow-header.svg") center/18px 15px no-repeat;
  transition: background-color 0.35s, background-image 0.35s;
}
.post__sidebar-link:hover::before, .post__sidebar-link.is-active::before, .post__sidebar-link.active::before {
  background-color: #1E1E1E;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='15' viewBox='0 0 18 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6.36328C0.447715 6.36328 0 6.811 0 7.36328C0 7.91557 0.447715 8.36328 1 8.36328V7.36328V6.36328ZM17.7071 8.07039C18.0976 7.67986 18.0976 7.0467 17.7071 6.65617L11.3431 0.292213C10.9526 -0.0983109 10.3195 -0.0983109 9.92893 0.292213C9.53841 0.682738 9.53841 1.3159 9.92893 1.70643L15.5858 7.36328L9.92893 13.0201C9.53841 13.4107 9.53841 14.0438 9.92893 14.4343C10.3195 14.8249 10.9526 14.8249 11.3431 14.4343L17.7071 8.07039ZM1 7.36328V8.36328H17V7.36328V6.36328H1V7.36328Z' fill='%23ffffff'/%3E%3C/svg%3E");
}
@media (max-width: 990px) {
  .post__sidebar-link {
    min-width: 0;
    word-break: break-word;
  }
}
.post__content {
  color: #1E1E1E;
  font-weight: 500;
  max-width: 800px;
  overflow: visible;
  min-width: 0;
}
@media (max-width: 990px) {
  .post__content {
    max-width: 100%;
    overflow-x: clip;
  }
  .post__content:has(.post-slider) {
    overflow-x: visible;
  }
}
.post__content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  box-sizing: border-box;
}
.post__content a {
  color: #ED3026;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}
.post__content a:hover {
  opacity: 0.75;
}
.post__content b,
.post__content strong {
  font-weight: 500;
}
.post__content p {
  font-size: 16px;
  line-height: 130%;
  margin-bottom: 20px;
}
.post__content figure {
  margin: 0 0 20px;
  max-width: 100%;
}
.post__content .post__date {
  display: block;
  margin: 24px 0 52px;
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  color: rgba(30, 30, 30, 0.4);
}
@media (max-width: 990px) {
  .post__content .post__date {
    margin-bottom: 32px;
  }
}
.post__content h1 {
  font-size: 44px;
  font-weight: 500;
  line-height: 110%;
  margin-bottom: 0;
}
@media (max-width: 990px) {
  .post__content h1 {
    font-size: 32px;
  }
}
@media (max-width: 576px) {
  .post__content h1 {
    font-size: 28px;
  }
}
.post__content h2, .post__content h3, .post__content h4, .post__content h5 {
  font-size: 24px;
  font-weight: 500;
  line-height: 120%;
  margin-top: 52px;
  margin-bottom: 20px;
  scroll-margin-top: 120px;
}
@media (max-width: 990px) {
  .post__content h2, .post__content h3, .post__content h4, .post__content h5 {
    font-size: 20px;
    scroll-margin-top: 100px;
  }
}
.post__content ul, .post__content ol {
  margin: 0 0 20px;
  padding-left: 22px;
  list-style-position: outside;
}
.post__content ul li, .post__content ol li {
  font-size: 16px;
  line-height: 130%;
  padding-left: 4px;
}
.post__content ul li::marker, .post__content ol li::marker {
  color: #1E1E1E;
}
.post__content ul li p, .post__content ol li p {
  margin-bottom: 0;
}
.post__content ul li:last-child, .post__content ol li:last-child {
  margin-bottom: 0;
}
.post__content ul li ul, .post__content ul li ol, .post__content ol li ul, .post__content ol li ol {
  margin: 12px 0 0;
}
.post__content ul {
  list-style-type: disc;
}
.post__content ul li {
  margin-bottom: 12px;
}
.post__content ol {
  list-style-type: decimal;
}
.post__content ol li {
  margin-bottom: 20px;
}
.post__content ol li::marker {
  font-weight: 500;
}
.post__content ol li strong {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}
.post__content > .post__author {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-gap: 5px;
  align-items: center;
  margin-bottom: 35px;
}
@media (max-width: 990px) {
  .post__content > .post__author {
    margin-bottom: 20px;
  }
}
.post__content > .post__author img {
  display: block;
  width: 40px;
  height: 40px;
  max-width: 40px;
  border-radius: 4px;
  object-fit: cover;
}
.post__content > .post__author p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 130%;
  font-weight: 400;
  color: #1E1E1E;
}
.post__content > .post__author .post__author-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.post__content > .post__author .post__author-job {
  opacity: 0.5;
}
