﻿.news-post-page {
  background: var(--white);
}

.post-hero {
  background: var(--blue);
  color: #ffffff;
  height: 410px;
  padding: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.post-hero .container {
  width: min(980px, calc(100% - 32px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
  padding-block: 20px;
}

.post-hero .breadcrumbs {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
}

.post-hero .breadcrumbs li::after {
  opacity: 0.8;
}

.post-hero__title {
  margin: 0;
  max-width: 980px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.post-hero__meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 600;
  color: #ffffff;
  opacity: 1;
}

@media (max-width: 980px) {
  .post-hero .container {
    width: min(980px, calc(100% - 24px));
    padding-block: 18px;
  }
}

@media (max-width: 520px) {
  .post-hero .container {
    padding-block: 14px;
  }
}

.post-content {
  padding-top: 42px;
}

.post-back {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
}

.post-article {
  max-width: 980px;
  margin: 0 auto;
}

.post-article__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}

.post-article__media img {
  width: 100%;
  height: auto;
  display: block;
}

.post-article__body {
  padding-top: 28px;
  display: grid;
  gap: 18px;
  font-family: var(--font-sans);
  color: #1f2937;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.7;
  font-weight: 400;
}

.post-article__html,
.post-article__html * {
  font-family: inherit !important;
}

.post-article__html {
  color: inherit;
}

.post-article__html :where(p, li, div, span, a) {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.post-article__text,
.post-article__html p {
  margin: 0;
  white-space: pre-wrap;
  color: #1f2937;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.7;
  font-weight: 400;
}

.post-article__html strong,
.post-article__text strong {
  font-weight: 700;
}

.post-article__html em,
.post-article__text em {
  font-style: italic;
}

.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.img-modal.is-open {
  display: block;
}

.img-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.74);
}

.img-modal__dialog {
  position: relative;
  width: min(1100px, calc(100% - 24px));
  margin: 18px auto;
}

.img-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(2, 6, 23, 0.6);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

#img-modal-src {
  width: 100%;
  height: calc(100vh - 60px);
  object-fit: contain;
  display: block;
  background: transparent;
}

@media (max-width: 980px) {

  .post-content {
    padding-top: 34px;
  }
}

@media (max-width: 640px) {
  .post-hero__title {
    font-size: clamp(24px, 7.2vw, 34px);
    line-height: 1.1;
  }

  .post-hero__meta {
    font-size: 11px;
  }

  .post-article__body {
    padding-top: 20px;
    gap: 14px;
  }

  .post-article__text,
  .post-article__html p {
    font-size: 15px;
    line-height: 1.7;
  }
}

