/* =========================
   ARTICLE PAGE
========================= */

.page-shell.article-page {
  width: min(1480px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.65fr) minmax(310px, 1fr);
  align-items: start;
  gap: 26px;
  margin: 20px 0 54px;
}

.article-main {
  min-width: 0;
}

/* =========================
   TEASER MODULE HEADINGS
========================= */

.story-teasers {
  margin-bottom: 22px;
}

.story-teasers__heading {
  margin-bottom: 10px;
  padding-top: 11px;
  border-top: 4px solid var(--navy, #061a33);
}

.story-teasers__heading span {
  display: block;
  color: var(--red, #d60000);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.story-teasers__heading h2 {
  margin: 7px 0 0;
  color: var(--navy, #061a33);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.story-teasers__grid {
  display: grid;
  gap: 10px;
}

.story-teasers__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-teasers__grid--bottom {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================
   SHARED TEASER CARD
========================= */

.story-teaser-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.story-teaser-card:hover {
  box-shadow: 0 10px 28px rgba(2, 11, 23, 0.1);
  transform: translateY(-1px);
}

.story-teaser-card__link {
  display: block;
  color: var(--navy, #061a33);
  text-decoration: none;
}

.story-teaser-card__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #071a32;
}

/* contain не обрезает изображение и видео */
.story-teaser-card__media img,
.story-teaser-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #071a32;
}

.story-teaser-card__body {
  padding: 11px 12px 13px;
}

.story-teaser-card__tag {
  display: block;
  margin-bottom: 7px;
  color: var(--red, #d60000);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.story-teaser-card__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--navy, #061a33);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.13;
  letter-spacing: -0.032em;
}

/* Верхние и встроенные тизеры */

.story-teaser-card--top .story-teaser-card__media,
.story-teaser-card--inline .story-teaser-card__media {
  aspect-ratio: 16 / 8.8;
}

/* Нижний блок */

.story-teasers--bottom {
  margin-top: 30px;
  margin-bottom: 0;
  padding: 18px;
  background: #f6f8fb;
  border-top: 4px solid var(--navy, #061a33);
}

.story-teasers--bottom .story-teasers__heading {
  padding-top: 0;
  border-top: 0;
  margin-bottom: 15px;
}

.story-teaser-card--bottom .story-teaser-card__title {
  font-size: 16px;
}

/* =========================
   ARTICLE CONTENT
========================= */

.story-article {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  box-shadow: 0 8px 28px rgba(2, 11, 23, 0.045);
}

.story-header {
  padding: clamp(22px, 3.2vw, 38px) clamp(20px, 3.8vw, 46px) 26px;
}

.story-disclosure {
  display: inline-flex;
  margin: 0 0 15px;
  padding: 6px 9px;
  background: #f5f7fa;
  border-left: 3px solid var(--red, #d60000);
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.story-meta__category {
  color: var(--red, #d60000);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.story-meta__separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #98a2b3;
}

.story-title {
  max-width: 940px;
  margin: 0;
  color: var(--navy, #061a33);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

.story-subtitle {
  max-width: 860px;
  margin: 17px 0 0;
  color: #475467;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.story-hero,
.story-inline-figure {
  margin: 0;
}

.story-hero__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #071a32;
}

.story-inline-figure {
  margin: 30px 0 29px;
}

.story-inline-figure__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #071a32;
}

.story-hero__media img,
.story-hero__media video,
.story-inline-figure__media img,
.story-inline-figure__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-media.is-media-missing {
  min-height: 230px;
  background:
    linear-gradient(135deg, rgba(6, 26, 51, 0.97), rgba(214, 0, 0, 0.68)),
    #061a33;
}

.story-media.is-media-missing::after {
  content: "BREAKING NEWS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(25px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: -0.08em;
}

.story-caption {
  margin: 0;
  padding: 9px 14px 10px;
  background: #f6f8fb;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.story-content {
  padding: clamp(25px, 3.5vw, 42px) clamp(20px, 3.8vw, 46px) clamp(36px, 4vw, 52px);
}

.story-block {
  max-width: 820px;
}

.story-paragraph {
  margin: 0 0 22px;
  color: #1d2939;
  font-size: clamp(17px, 1.45vw, 18px);
  line-height: 1.74;
  letter-spacing: -0.01em;
}

.story-heading {
  margin: 37px 0 16px;
  color: var(--navy, #061a33);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.story-heading--h2 {
  font-size: clamp(28px, 3vw, 39px);
}

.story-heading--h3 {
  font-size: clamp(23px, 2.4vw, 30px);
}

.story-quote {
  max-width: 820px;
  margin: 31px 0;
  padding: 19px 22px;
  border-left: 5px solid var(--red, #d60000);
  background: #f6f8fb;
}

.story-quote blockquote {
  margin: 0;
  color: var(--navy, #061a33);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 750;
  line-height: 1.38;
  letter-spacing: -0.032em;
}

.story-quote cite {
  display: block;
  margin-top: 12px;
  color: #667085;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.story-list {
  max-width: 820px;
  margin: 8px 0 25px;
  padding-left: 24px;
  color: #1d2939;
  font-size: 17px;
  line-height: 1.68;
}

.story-list li + li {
  margin-top: 7px;
}

.story-notice {
  max-width: 820px;
  margin: 31px 0 0;
  padding: 16px 18px;
  border: 1px solid #e4e7ec;
  border-left: 4px solid var(--red, #d60000);
  background: #f7f9fb;
  color: #667085;
  font-size: 13px;
  line-height: 1.52;
}

/* =========================
   INLINE TEASERS INSIDE ARTICLE
========================= */

.story-inline-teasers {
  max-width: none;
  margin: 32px 0 35px;
  padding: 16px;
  border-top: 4px solid var(--navy, #061a33);
  background: #f6f8fb;
}

.story-inline-teasers__heading {
  margin-bottom: 13px;
}

.story-inline-teasers__heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--red, #d60000);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.story-inline-teasers__heading h2 {
  margin: 0;
  color: var(--navy, #061a33);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.045em;
}

/* =========================
   SIDEBAR — LARGER DESKTOP CARDS
========================= */

.article-sidebar__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  padding: 14px 15px;
  background: var(--navy, #061a33);
  border-bottom: 4px solid var(--red, #d60000);
  color: #ffffff;
}

.article-sidebar__heading h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.article-sidebar__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: articleLiveDot 1.45s infinite;
}

.article-sidebar__list {
  display: grid;
  gap: 12px;
}

.story-teaser-card--sidebar .story-teaser-card__media {
  aspect-ratio: 16 / 9;
}

.story-teaser-card--sidebar .story-teaser-card__body {
  padding: 12px 13px 15px;
}

.story-teaser-card--sidebar .story-teaser-card__title {
  font-size: 18px;
  line-height: 1.13;
}

@keyframes articleLiveDot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.68);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* =========================
   LOADING / ERROR
========================= */

.story-skeleton {
  background:
    linear-gradient(100deg, #e7eaef 30%, #f7f8fa 45%, #e7eaef 60%);
  background-size: 220% 100%;
  animation: articleSkeleton 1.15s infinite linear;
}

.story-skeleton__header {
  padding: 34px 42px 28px;
}

.story-skeleton--small {
  width: 24%;
  height: 12px;
  margin-bottom: 16px;
}

.story-skeleton--title {
  height: 49px;
  margin-bottom: 11px;
}

.story-skeleton--title-short {
  width: 70%;
  height: 49px;
  margin-bottom: 24px;
}

.story-skeleton--subtitle {
  width: 82%;
  height: 21px;
}

.story-skeleton--hero {
  aspect-ratio: 16 / 9;
}

.story-skeleton__body {
  padding: 33px 42px 42px;
}

.story-skeleton--text {
  height: 15px;
  margin-bottom: 13px;
}

.story-skeleton--text-short {
  width: 66%;
  height: 15px;
}

.article-error {
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
}

.article-error h1 {
  margin: 0 0 10px;
  color: var(--navy, #061a33);
  font-size: 34px;
}

.article-error p {
  margin: 0;
  color: #667085;
}

@keyframes articleSkeleton {
  to {
    background-position-x: -220%;
  }
}

/* =========================
   TABLET
========================= */

@media (max-width: 1120px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
  }

  .story-teaser-card--sidebar .story-teaser-card__title {
    font-size: 16px;
  }

  .story-teasers__grid--bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 880px) {
  .page-shell.article-page {
    width: min(100% - 18px, 720px);
  }

  .article-layout {
    display: block;
    margin-top: 13px;
  }

  .article-sidebar {
    display: none !important;
  }

  .story-teasers {
    margin-bottom: 14px;
  }

  .story-teasers__grid--three,
  .story-teasers__grid--bottom {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  /*
    На смартфоне верхние, встроенные и нижние тизеры
    имеют одинаковый компактный вид: изображение слева, текст справа.
  */
 .story-teaser-card__link {
    display: grid;
    grid-template-columns: clamp(108px, 33vw, 132px) minmax(0, 1fr);
    align-items: start;
    min-height: 0;
  }

  .story-teaser-card__media,
  .story-teaser-card--top .story-teaser-card__media,
  .story-teaser-card--inline .story-teaser-card__media,
  .story-teaser-card--bottom .story-teaser-card__media {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--teaser-media-ratio, 16 / 9);
    align-self: start;
    background: #071a32;
  }

  .story-teaser-card__media img,
  .story-teaser-card__media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .story-teaser-card__body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 9px 10px 10px;
  }

  .story-teaser-card__tag {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .story-teaser-card__title,
  .story-teaser-card--bottom .story-teaser-card__title {
    font-size: 12px;
    line-height: 1.14;
    -webkit-line-clamp: 3;
  }

  .story-teaser-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 9px 10px 10px;
  }

.story-teaser-card__body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 9px 9px;
}

.story-teaser-card__tag {
  margin-bottom: 5px;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.055em;
}

.story-teaser-card__title,
.story-teaser-card--top .story-teaser-card__title,
.story-teaser-card--inline .story-teaser-card__title,
.story-teaser-card--bottom .story-teaser-card__title {
  font-size: clamp(12.5px, 3.6vw, 14px);
  line-height: 1.16;
  letter-spacing: -0.022em;

  -webkit-line-clamp: 3;
}

  .story-teasers--bottom {
    margin-top: 21px;
    padding: 12px 9px;
  }

  .story-teasers__heading h2 {
    font-size: 23px;
  }

  .story-header {
    padding: 20px 15px 18px;
  }

  .story-disclosure {
    margin-bottom: 13px;
    font-size: 10px;
  }

  .story-meta {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .story-title {
    font-size: clamp(32px, 10.5vw, 45px);
    line-height: 0.95;
    letter-spacing: -0.06em;
  }

  .story-subtitle {
    margin-top: 13px;
    font-size: 16px;
    line-height: 1.45;
  }

  .story-content {
    padding: 21px 15px 29px;
  }

  .story-paragraph {
    margin-bottom: 19px;
    font-size: 16px;
    line-height: 1.68;
  }

  .story-heading {
    margin: 29px 0 13px;
  }

  .story-heading--h2 {
    font-size: 28px;
  }

  .story-heading--h3 {
    font-size: 22px;
  }

  .story-inline-teasers {
    margin: 25px -3px 28px;
    padding: 12px 9px 11px;
  }

  .story-inline-teasers__heading h2 {
    font-size: 20px;
  }

  .story-inline-figure {
    margin: 24px 0;
  }

  .story-quote {
    padding: 15px;
    margin: 26px 0;
  }

  .story-quote blockquote {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 390px) {
  .story-teaser-card__body {
    padding: 7px 8px 8px;
  }

  .story-teaser-card__tag {
    font-size: 7.5px;
    margin-bottom: 4px;
  }

  .story-teaser-card__title,
  .story-teaser-card--top .story-teaser-card__title,
  .story-teaser-card--inline .story-teaser-card__title,
  .story-teaser-card--bottom .story-teaser-card__title {
    font-size: 12px;
    line-height: 1.15;
  }
}