body.single-post, body.single-post .wrapper {
  background: #1e1e1e;
}

body.single-post .wrapper {
  overflow: visible;
}

.article-page {
  background: #1e1e1e;
  color: #fff;
  padding: 110px 0 48px;
}

.article-page__container {
  max-width: 1260px;
  padding: 0 10px;
  margin: 0 auto;
  width: 100%;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: baseline;
  max-width: 100%;
  margin-bottom: 48px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  white-space: nowrap;
}

.article-breadcrumbs > * {
  flex: 0 0 auto;
}

.article-breadcrumbs a {
  color: #fff;
}

.article-breadcrumbs > span {
  color: #2f61d1;
}

.article-breadcrumbs [aria-current] {
  color: #ffffff4d;
  overflow-wrap: normal;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 850fr) minmax(0, 358fr);
  gap: 32px;
  align-items: start;
}

.article-sheet {
  min-width: 0;
  padding: 24px;
  border-radius: 36px;
  background: #fff;
  color: #1e1e1e;
}

.article-cover {
  position: relative;
  isolation: isolate;
  min-height: 485px;
  padding: 24px;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  background: #1f252c;
  color: #fff;
}

.article-cover__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 57%, #2f61d1 100%);
}

.article-cover__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  line-height: 1.3;
}

.article-cover__labels > * {
  padding: 10px;
  border-radius: 12px;
  background: #1f252c;
  color: #fff;
}

.article-cover__category {
  background: #fff;
  color: #1e1e1e;
}

.article-cover h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.article-excerpt {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.5;
}

.article-excerpt em {
  font-style: italic;
}

.article-excerpt strong {
  font-weight: 700;
}

.article-excerpt p {
  margin: 0;
  padding-bottom: 8px;
}
.article-excerpt p:last-child {
  padding-bottom: 0;
}

.article-body {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.article-body > * {
  max-width: 100%;
}

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

.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 {
  margin: 24px 0 8px;
  color: #1e1e1e;
  font-weight: 700;
  text-transform: none;
  line-height: 1.25;
  scroll-margin-top: 120px;
}

.article-body h1 {
  font-size: 28px;
}

.article-body h2 {
  font-size: 24px;
}

.article-body h3 {
  font-size: 20px;
}

.article-body h4 {
  font-size: 18px;
}

.article-body h5, .article-body h6 {
  font-size: 16px;
}

.article-body strong, .article-body b {
  font-weight: 700;
}

.article-body em, .article-body i {
  font-style: italic;
}

.article-body a {
  color: #2f61d1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body p a,
.article-body li a {
  font-weight: 600;
  text-decoration-thickness: 1px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.article-body p a:hover,
.article-body p a:focus-visible,
.article-body li a:hover,
.article-body li a:focus-visible {
  color: #1e1e1e;
  text-decoration-color: #2f61d1;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin: 12px 0 20px;
}

.article-body ul {
  list-style: disc outside;
}

.article-body ol {
  list-style: decimal outside;
}

.article-body li {
  margin-bottom: 4px;
}

.article-body li > ul, .article-body li > ol {
  margin: 8px 0;
}

.article-body figure {
  margin: 20px 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 32px;
}

.article-body .wp-block-image img {
  display: block;
  cursor: zoom-in;
}

.article-body .wp-block-image img:focus-visible {
  outline: 3px solid #2f61d1;
  outline-offset: 4px;
}

.article-lightbox-open {
  overflow: hidden;
}

.article-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.article-lightbox[hidden] {
  display: none;
}

.article-lightbox.is-open {
  opacity: 1;
}

.article-lightbox__image {
  display: block;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.article-lightbox.is-open .article-lightbox__image {
  transform: scale(1);
}

.article-lightbox__close {
  position: fixed;
  z-index: 1;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.article-lightbox__close::before,
.article-lightbox__close::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 13px;
  width: 22px;
  height: 2px;
  background: #1e1e1e;
}

.article-lightbox__close::before {
  transform: rotate(45deg);
}

.article-lightbox__close::after {
  transform: rotate(-45deg);
}

.article-lightbox__close:focus-visible {
  outline: 3px solid #2f61d1;
  outline-offset: 3px;
}

@media (max-width: 575px) {
  .article-lightbox {
    padding: 16px;
  }

  .article-lightbox__image {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 64px);
    border-radius: 14px;
  }

  .article-lightbox__close {
    top: 12px;
    right: 12px;
  }
}

.article-body figcaption {
  color: #686868;
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
}

.article-body .wp-block-table, .article-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: #2f61d1 #f4f7fc;
}

.article-body .is-custom-scroll {
  overflow: visible;
}

.article-table-scroll__viewport {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.article-table-scroll__viewport::-webkit-scrollbar {
  display: none;
}

.article-table-scroll__bar {
  position: relative;
  width: 100%;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f4f4;
  cursor: pointer;
  touch-action: none;
}

.article-table-scroll__bar[hidden] {
  display: none;
}

.article-table-scroll__thumb {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 40px;
  border-radius: inherit;
  background: #686868;
  cursor: grab;
  will-change: transform;
}

.article-table-scroll__thumb.is-dragging {
  cursor: grabbing;
}

.article-body .wp-block-table {
  margin-top: 8px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  font-size: 14px;
  line-height: 1.3;
}

.article-body table.has-fixed-layout {
  min-width: 680px;
  table-layout: fixed;
}

.article-body table th,
.article-body table td {
  padding: 8px 8px;
  border: 2px solid #fff;
  vertical-align: middle;
  min-width: 110px;
  text-align: left;
  height: 64px;
}

.article-body table th,
.article-body table.article-table--first-row-header tbody:first-of-type tr:first-child td {
  background: #353535;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  height: 44px;
}

.article-body table td {
  background: #f4f7fc;
}

.article-body table.article-table--first-row-header tbody:first-of-type tr:first-child td {
  background: #353535;
}

.article-body blockquote,
.article-body .wp-block-pullquote {
  margin: 24px 0;
  padding: 24px;
  background: #f4f7fc;
  border-radius: 24px;
  border: 0 !important;
  border-left: 2px solid #2f61d1 !important;
  border-right: 2px solid #2f61d1 !important;
  box-sizing: border-box;
  text-align: left;
}

.article-body blockquote > h2,
.article-body blockquote > h3,
.article-body blockquote > h4,
.article-body blockquote > h5,
.article-body blockquote > h6 {
  margin: 0 0 12px;
  color: #2f61d1;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.article-body blockquote p,
.article-body .wp-block-pullquote p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
}

.article-body .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
}

.article-body cite {
  color: #686868;
  font-size: 14px;
}

.article-body .article-summary {
  padding: 20px;
  background: #f4f7fc;
  border-radius: 24px;
  margin-top: 24px;
}

.article-body .article-summary h2, .article-body .article-summary h3 {
  color: #2f61d1;
  text-transform: uppercase;
  font-size: 20px;
  margin-top: 0;
}

.article-body > :last-child, .article-body blockquote > :last-child {
  margin-bottom: 0;
}

.article-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 120px;
  align-self: start;
}

.article-sidebar__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: 20px;
  line-height: 1.4;
  text-transform: none;
}

.article-toc[hidden] {
  display: none;
}

.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc li + li {
  margin-top: 3px;
}

.article-toc a {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 10px 20px;
  border-left: 4px solid #353535;
  color: #ffffff80;
  font-size: 16px;
  line-height: 1.5;
}

.article-toc a:hover, .article-toc a[aria-current] {
  color: #fff;
  border-color: #2f61d1;
}

.article-socials__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  background: #ffffff1a;
  font-size: 16px;
  line-height: 1.5;
  flex: 1;
  transition: color 0.35s ease, background-color 0.35s ease;
}

.article-social > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 9px;
  transition: background-color 0.35s ease;
}

.article-social > span img {
  transition: filter 0.35s ease;
}

.article-social--telegram > span {
  background: #2f61d1;
}

.article-social:hover,
.article-social:focus-visible {
  background: #fff;
  color: #1e1e1e;
}

.article-social:hover > span,
.article-social:focus-visible > span {
  background: #2f61d1;
}

.article-social:hover > span img,
.article-social:focus-visible > span img {
  filter: brightness(0) invert(1);
}

.article-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 21px 20px;
  border-radius: 36px;
  background: #2f61d1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: color 0.35s ease, background-color 0.35s ease;
}

.article-contact:hover {
  background: #3f6fda;
  color: #fff;
}

.article-page a:focus-visible {
  outline: 3px solid #3f6fda;
  outline-offset: 4px;
}

.article-related {
  width: calc((100% - 32px) * 850 / 1208);
  margin-top: 48px;
}

.article-related > h2 {
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 16px;
  text-transform: none;
}

.article-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.article-related .blog-card {
  margin: 0;
  grid-column: auto;
}

.article-related .blog-card .blog-card__media {
  aspect-ratio: 1;
  min-height: 0;
  height: auto;
  background: #353535;
}

.article-related .blog-card .blog-card__media::after {
  display: none;
}

.article-related .blog-card .blog-card__caption {
  position: static;
  margin-top: 24px;
  color: #fff;
}

.article-related .blog-card time {
  color: #888;
}

.article-related h3 {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 991px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-sidebar {
    display: none;
  }

  .article-body .wp-block-table,
  .article-body .article-table-scroll {
    width: calc(100% + 48px);
    max-width: none;
    margin-right: -24px;
    margin-left: -24px;
  }

  .article-body .wp-block-table table,
  .article-body .article-table-scroll table {
    margin-left: 24px;
  }

  .article-body .wp-block-table figcaption {
    margin-right: 24px;
    margin-left: 24px;
  }

  .article-related {
    width: 100%;
  }
}
@media (max-width: 575px) {
  .article-page {
    padding-top: 100px;
  }

  .article-page p, .article-page ul li, .article-page ol li {
    font-size: 14px;
  }

  .article-body blockquote,
  .article-body .wp-block-pullquote {
    margin: 20px 0;
    padding: 16px;
    border-radius: 16px;
  }

  .article-body blockquote p,
  .article-body .wp-block-pullquote p {
    font-size: 14px;
  }

  .article-body blockquote > h2,
  .article-body blockquote > h3,
  .article-body blockquote > h4,
  .article-body blockquote > h5,
  .article-body blockquote > h6 {
    font-size: 16px;
  }

  .article-breadcrumbs {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .article-sheet {
    padding: 12px;
    border-radius: 28px;
  }

  .article-body .wp-block-table,
  .article-body .article-table-scroll {
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-left: -12px;
  }

  .article-body .wp-block-table table,
  .article-body .article-table-scroll table {
    margin-left: 12px;
  }

  .article-body .wp-block-table figcaption {
    margin-right: 12px;
    margin-left: 12px;
  }

  .article-body table {
    font-size: 12px;
  }

  .article-body table th,
  .article-body table td {
    padding: 6px 8px;
  }

  .article-body table th,
  .article-body table.article-table--first-row-header tbody:first-of-type tr:first-child td {
    font-size: 10px;
  }

  .article-cover {
    min-height: 0;
    aspect-ratio: 1;
    padding: 12px;
    border-radius: 18px;
  }

  .article-cover__labels {
    font-size: 12px;
    gap: 6px;
  }

  .article-cover__labels > * {
    padding: 8px;
  }

  .article-cover h1 {
    font-size: 18px;
  }

  .article-body h2 {
    font-size: 20px;
  }

  .article-body h3, .article-body h4 {
    font-size: 16px;
  }

  .article-body img {
    border-radius: 20px;
  }

  .article-related__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
