/* Single news page */
.news-detail-body {
  --detail-bg: #fbfcff;
  --detail-breadcrumb-bg: #edf7ff;
  --detail-text: #404040;
  --detail-muted: rgba(64, 64, 64, 0.78);
  --detail-card: #e1efff;
  --detail-card-strong: #7297bd;
  --detail-card-strong-text: #ffffff;
  --detail-badge: #d7edff;
  --detail-share: #404040;
  --detail-line: rgba(64, 64, 64, 0.42);
}

html[data-theme="dark"] .news-detail-body {
  --detail-bg: #303b4d;
  --detail-breadcrumb-bg: #3d5977;
  --detail-text: #ffffff;
  --detail-muted: rgba(255, 255, 255, 0.75);
  --detail-card: #3f5873;
  --detail-card-strong: #7297bd;
  --detail-card-strong-text: #ffffff;
  --detail-badge: #4a7193;
  --detail-share: #ffffff;
  --detail-line: rgba(255, 255, 255, 0.42);
}

.news-detail-body.inner-page {
  background: var(--detail-bg);
}

.inner-page .header {
  position: relative;
  margin-bottom: 0;
  background: var(--color-header);
  border-bottom: 0;
  backdrop-filter: none;
}

.inner-page .top-nav {
  padding-top: 13px;
  padding-bottom: 13px;
}

.inner-page .top-nav__inner {
  min-height: 58px;
}

.inner-page .site-menu.is-mega-open .mega-menu {
  top: 86px;
}

.breadcrumbs {
  background: var(--detail-breadcrumb-bg);
  color: var(--detail-text);
}

.breadcrumbs__inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

.breadcrumbs span:last-child {
  font-weight: 600;
}

.news-detail {
  padding: 50px 0 0;
  background: var(--detail-bg);
}

.news-detail h1 {
  margin: 0 0 41px;
  color: var(--detail-text);
  font-family: var(--h2-font-family);
  font-style: var(--h2-font-style);
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-line-height);
}

.news-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.article {
  min-width: 0;
}

.article__image {
  float: left;
  width: 510px;
  height: 480px;
  margin: 0 24px 24px 0;
  object-fit: cover;
}

.article__content,
.article-share {
  color: var(--detail-text);
  font-family: var(--font-body);
}

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

.article__content p {
  margin: 0 0 25px;
  font-family: var(--body-2-font-family);
  font-style: var(--body-2-font-style);
  font-size: var(--body-2-size);
  font-weight: var(--body-2-weight);
  line-height: var(--body-2-line-height);
}

.article__content p:last-child {
  margin-bottom: 0;
}

.article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.article__meta span {
  display: inline-flex;
  min-width: 150px;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--detail-badge);
  color: var(--detail-text);
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}

.article__meta time {
  color: var(--detail-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  white-space: nowrap;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--detail-line);
  margin-top: 43px;
  padding-top: 20px;
}

.article-share span {
  font-size: 24px;
  font-weight: 400;
  line-height: 33px;
}

.article-share__link {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--detail-share);
  color: var(--detail-bg);
}

.article-share__link img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.article-share__link .icon-mask {
  --icon-size: 38px;
}

.detail-sidebar {
  display: grid;
  gap: 20px;
}

.detail-action-card {
  position: relative;
  overflow: hidden;
  min-height: 205px;
  border-radius: var(--radius-md);
  background: var(--detail-card);
  box-shadow: var(--shadow-sm);
  color: var(--detail-text);
  padding: 26px 22px 21px;
}

.detail-action-card--accent {
  background: var(--detail-card-strong);
  color: var(--detail-card-strong-text);
}

.detail-action-card img {
  position: absolute;
  top: 24px;
  right: 16px;
  width: 75px;
  height: 75px;
  object-fit: contain;
  opacity: 0.55;
}

.detail-action-card h2 {
  position: relative;
  max-width: 210px;
  margin: 0 0 24px;
  color: currentColor;
  font-family: var(--body-3-font-family);
  font-style: var(--body-3-font-style);
  font-size: var(--body-3-size);
  font-weight: var(--body-3-weight);
  line-height: var(--body-3-line-height);
}

.detail-action-card p {
  position: relative;
  max-width: 230px;
  margin: 0 0 32px;
  color: currentColor;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

.detail-action-card a {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: var(--radius-pill);
  color: currentColor;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

.account--inner {
  padding: 75px 0 58px;
  background: var(--detail-bg);
}

@media (max-width: 1200px) {
  .news-detail__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .article__image {
    width: 440px;
    height: 410px;
  }

  .article__content p {
    font-size: 18px;
    line-height: 25px;
  }
}

@media (max-width: 992px) {
  .inner-page .header {
    background: var(--color-header);
  }

  .inner-page .top-nav {
    padding-top: 0;
    padding-bottom: 0;
  }

  .inner-page .top-nav__inner {
    min-height: 56px;
  }

  .inner-page .site-menu {
    top: 56px;
  }

  .breadcrumbs__inner {
    min-height: 42px;
    font-size: 14px;
    line-height: 17px;
  }

  .breadcrumbs__news {
    display: none;
  }

  .news-detail {
    padding-top: 38px;
  }

  .news-detail h1 {
    margin-bottom: 30px;
    font-size: 46px;
    line-height: 1.13;
  }

  .news-detail__layout {
    display: block;
  }

  .detail-sidebar {
    display: none;
  }

  .article__image {
    width: 330px;
    height: 340px;
  }

  .article__content p {
    margin-bottom: 21px;
    font-size: 18px;
    line-height: 24px;
  }

  .article__meta {
    margin-bottom: 21px;
  }

  .article-share {
    margin-top: 40px;
  }

  .account--inner {
    padding-top: 58px;
  }
}

@media (max-width: 575px) {
  .inner-page .page-container {
    width: min(100% - 28px, var(--container));
  }

  .inner-page .top-nav {
    border-bottom: 0;
  }

  .inner-page .top-nav__inner {
    min-height: 31px;
  }

  .inner-page .logo img {
    width: 19px;
    height: 19px;
  }

  .inner-page .logo span {
    max-width: calc(100vw - 74px);
    font-size: 7px;
    line-height: 9px;
  }

  .inner-page .menu-toggle {
    width: 23px;
    height: 19px;
  }

  .inner-page .menu-toggle span {
    width: 23px;
    height: 3px;
    margin: 2px 0;
  }

  .inner-page .site-menu {
    top: 31px;
  }

  .breadcrumbs__inner {
    min-height: 28px;
    gap: 8px;
    font-size: 10px;
    line-height: 12px;
  }

  .news-detail {
    padding-top: 25px;
  }

  .news-detail h1 {
    margin-bottom: 17px;
    font-size: 30px;
    line-height: 41px;
  }

  .article__image {
    float: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.82;
    margin: 0 0 12px;
  }

  .article__content p {
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 15px;
  }

  .article-share {
    gap: 10px;
    margin-top: 31px;
    padding-top: 11px;
  }

  .article-share span {
    font-size: 12px;
    line-height: 17px;
  }

  .article-share__link,
  .article-share__link img,
  .article-share__link .icon-mask {
    --icon-size: 25px;
    width: 25px;
    height: 25px;
  }

  .account--inner {
    padding: 37px 0 31px;
  }

  .account--inner .block-title {
    max-width: 245px;
    margin-bottom: 22px;
    font-size: 30px;
    line-height: 41px;
  }

  .account--inner .cabinet-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .account--inner .soft-card {
    min-height: 164px;
    padding: 18px 16px;
  }

  .account--inner .soft-card h3 {
    max-width: 250px;
    margin: 14px 0 16px;
    font-size: 20px;
    line-height: 24px;
  }
}

@media (max-width: 390px) {
  .inner-page .page-container {
    width: min(100% - 16px, var(--container));
  }
}
