/* ==========================================================================
   News Single V3
   Автономные стили третьей версии страницы новости.
   ========================================================================== */

.news-single-page {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.news-single-head {
  max-width: 920px;
}

.news-single-lead {
  max-width: 760px;
  font-size: 18px;
  color: #46607f;
}

.news-single-cover,
.news-inline-image,
.next-article-card,
.news-meta-card {
  border-radius: 12px;
  overflow: hidden;
}

.news-single-cover {
  margin-bottom: 36px;
  box-shadow: 0 18px 42px rgba(22, 64, 117, 0.1);
}

.news-single-cover img,
.news-inline-image img,
.next-article-image img {
  width: 100%;
  display: block;
}

.article-content {
  color: #4d6280;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 34px 0 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #173e72;
}

.article-content h1 {
  font-size: clamp(36px, 4vw, 46px);
  letter-spacing: -0.02em;
}

.article-content h2 {
  font-size: 34px;
  letter-spacing: -0.02em;
}

.article-content h3 {
  margin: 34px 0 16px;
  font-size: 30px;
  letter-spacing: -0.015em;
}

.article-content h4 {
  font-size: 24px;
  color: #1d4f89;
}

.article-content p,
.article-content p[class],
.article-content li,
.article-content li[class] {
  font-size: 17px;
  line-height: 1.75;
  color: #4d6280;
}

.article-content p,
.article-content p[class] {
  margin: 0 0 18px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px;
  padding-left: 28px;
}

.article-content li + li {
  margin-top: 10px;
}

.article-content ul li::marker {
  color: #2da8df;
}

.article-content ol li::marker {
  color: #164075;
  font-weight: 700;
}

.article-content ul ul,
.article-content ul ol,
.article-content ol ul,
.article-content ol ol {
  margin-top: 14px;
  margin-bottom: 0;
}

.article-content hr {
  margin: 42px 0;
  border: 0;
  border-top: 1px solid #d7e4f2;
  position: relative;
}

.article-content hr::after {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #164075 0%, #59b5e8 100%);
}

.article-content blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 4px solid #59b5e8;
  background: linear-gradient(135deg, #eef7ff 0%, #e6f2fb 100%);
  border-radius: 0 14px 14px 0;
  box-shadow: 0 14px 30px rgba(22, 64, 117, 0.08);
}

.article-content blockquote p {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  color: #173e72;
}

.article-content figure {
  margin: 34px 0;
}

.article-content figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #6a7f9d;
}

.article-content a {
  color: #164075;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(89, 181, 232, 0.8);
  text-decoration-thickness: 1px;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:hover,
.article-content a:focus {
  color: #2da8df;
  text-decoration-color: rgba(45, 168, 223, 0.95);
}

.article-content a:visited {
  color: #1d4f89;
}

.article-content strong {
  color: #173e72;
  font-weight: 700;
}

.article-content em {
  color: #5a7293;
}

.article-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.article-content iframe {
  width: 100%;
  min-height: 420px;
  display: block;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(22, 64, 117, 0.1);
}

.article-content table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(22, 64, 117, 0.08);
  background: #ffffff;
}

.article-content table th,
.article-content table td {
  padding: 14px 16px;
  border: 1px solid #dbe7f3;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.6;
}

.article-content table th {
  background: #164075;
  color: #ffffff;
  font-weight: 700;
}

.article-content table tr:nth-child(even) td {
  background: #f7fbff;
}

.article-content img.alignleft,
.article-content img.image-left,
.article-content figure.alignleft,
.article-content figure.image-left {
  float: left;
  width: min(46%, 320px);
  margin: 8px 28px 18px 0;
}

.article-content img.alignright,
.article-content img.image-right,
.article-content figure.alignright,
.article-content figure.image-right {
  float: right;
  width: min(46%, 320px);
  margin: 8px 0 18px 28px;
}

.article-content::after {
  content: "";
  display: block;
  clear: both;
}

.news-inline-image {
  margin: 34px 0;
  box-shadow: 0 18px 42px rgba(22, 64, 117, 0.08);
}

.news-meta-card {
  position: relative;
  top: auto;
  will-change: transform;
}

.news-meta-col {
  position: relative;
  align-self: flex-start;
}

.news-single-page .row.g-5 {
  align-items: flex-start;
}

.news-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.next-article-card {
  margin-top: 48px;
  padding: 32px;
  background: #fff;
  border: 1px solid #dbe5f2;
  box-shadow: 0 18px 42px rgba(22, 64, 117, 0.08);
}

.next-article-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.next-article-title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: #173e72;
}

.next-article-card-link:hover .next-article-title,
.next-article-card-link:focus-visible .next-article-title {
  color: #1d4f89;
}

.next-article-link {
  display: inline-block;
  margin-top: 14px;
  color: #164075;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.next-article-image {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  border-radius: 10px;
  overflow: hidden;
}

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

.news-single-v3-hero {
  margin-bottom: 28px;
}

.news-single-v3-image {
  width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #12345e 0%, #2da8df 100%);
  box-shadow: 0 12px 28px rgba(22, 64, 117, 0.14);
}

.news-single-v3-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-single-v3-head {
  max-width: none;
}

.news-single-v3-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  row-gap: 4px;
}

.news-single-v3-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7b8596;
}

.news-single-v3-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f7faa;
}

.news-single-v3-head h2 {
  margin-bottom: 0;
}

.news-single-v3-content .article-content {
  max-width: none;
}

@media (max-width: 991.98px) {
  .news-single-v3-image {
    width: 180px;
  }
}

@media (max-width: 767.98px) {
  .news-single-page.reveal-on-scroll,
  .news-single-page.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
  }

  .article-content h1 {
    font-size: 30px;
  }

  .article-content h2 {
    font-size: 28px;
  }

  .article-content h3,
  .next-article-title {
    font-size: 18px;
  }

  .next-article-card {
    padding: 24px;
  }

  .next-article-card-link .row {
    flex-wrap: wrap;
    align-items: flex-start !important;
  }

  .next-article-text {
    flex: 0 0 100%;
    width: 100%;
  }

  .next-article-media {
    order: -1;
    flex: 0 0 100%;
    width: 100%;
  }

  .next-article-image {
    max-width: none;
    aspect-ratio: 1 / 1;
    margin: 0 0 18px;
  }

  .article-content h4 {
    font-size: 20px;
  }

  .article-content p,
  .article-content li {
    font-size: 16px;
  }

  .article-content ul,
  .article-content ol {
    padding-left: 22px;
  }

  .article-content blockquote {
    padding: 20px 20px 20px 22px;
  }

  .article-content blockquote p {
    font-size: 19px;
  }

  .article-content iframe {
    min-height: 280px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-content img.alignleft,
  .article-content img.alignright,
  .article-content img.image-left,
  .article-content img.image-right,
  .article-content figure.alignleft,
  .article-content figure.alignright,
  .article-content figure.image-left,
  .article-content figure.image-right {
    float: none;
    width: 100%;
    margin: 24px 0;
  }

  .page-breadcrumbs {
    margin-bottom: 22px;
  }

  .news-single-v3-hero {
    margin-bottom: 22px;
  }

  .news-single-v3-image {
    width: 140px;
    margin: 0 auto;
  }

  .news-single-v3-meta-line {
    gap: 8px;
    margin-bottom: 8px;
    row-gap: 4px;
  }

  .news-single-v3-date {
    font-size: 11px;
  }

  .news-single-v3-category {
    font-size: 11px;
  }

  .news-single-v3-head h2 {
    margin-bottom: 0;
  }
}
