/* Index Moscow Month. All changes are scoped to this development page. */
.index-moscow-month {
  --month-ink: #114e6d;
  --month-mid: #17658c;
  --month-blue: #63caff;
  --month-panel-70: radial-gradient(100% 250% at 100% 100%,
    rgb(186 232 255 / 70%) 0%, rgb(124 196 232 / 70%) 50%,
    rgb(93 178 221 / 70%) 75%, rgb(61 160 210 / 70%) 100%);
  --month-panel-40: radial-gradient(100% 250% at 100% 0%,
    rgb(186 232 255 / 40%) 0%, rgb(124 196 232 / 40%) 50%,
    rgb(93 178 221 / 40%) 75%, rgb(61 160 210 / 40%) 100%);
  background: var(--month-ink);
  color: #fff;
}

/* The banner and navigation occupy the hero image, as on the desktop frame. */
.index-moscow-month .month-banner {
  position: absolute;
  z-index: 1003;
  inset: 0 0 auto;
  display: grid;
  place-items: center;
  height: 40px;
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 70%);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: .055em;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}
.index-moscow-month .month-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 25%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.index-moscow-month .month-banner span { position: relative; }
.index-moscow-month .month-banner strong {
  margin-left: 18px;
  color: #fff;
  font-weight: inherit;
}
.index-moscow-month > .header {
  position: absolute;
  z-index: 1002;
  top: 40px;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgb(255 255 255 / 68%);
}
.index-moscow-month .header__wrapper {
  min-height: 60px;
  padding-block: 15px;
}
.index-moscow-month .header__menu {
  gap: clamp(15px, 1.55vw, 30px);
  font-size: clamp(13px, .84vw, 16px);
  font-weight: 500;
}
.index-moscow-month .header__menu a,
.index-moscow-month .header__menu a:visited { color: #fff; }
.index-moscow-month .global-search { position: absolute; z-index: 1010; top: 100px; }
.index-moscow-month .month-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #114e6d 0%, #17658c 33%, #114e6d 76%);
}
.index-moscow-month .month-main > :not(.month-decor) { position: relative; z-index: 1; }

/* Independent second background layer: its positions do not depend on section order. */
.index-moscow-month .month-decor {
  position: absolute;
  z-index: 0;
  top: 994px;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: none;
  overflow: hidden;
  pointer-events: none;
}
.index-moscow-month .month-decor img { position: absolute; max-width: none; pointer-events: none; }
.index-moscow-month .month-decor__wave {
  width: min(215vw, 3200px);
  opacity: .27;
  mix-blend-mode: overlay;
}
.index-moscow-month .month-decor__wave--one { top: 230px; left: -470px; transform: rotate(-9deg); }
.index-moscow-month .month-decor__wave--two { top: 3350px; right: -560px; transform: rotate(180deg); opacity: .20; }
.index-moscow-month .month-decor__circuit { width: 1521px; opacity: .90; }
.index-moscow-month .month-decor__circuit--one { top: 910px; right: -430px; }
.index-moscow-month .month-decor__circuit--two { top: 3200px; left: -990px; transform: rotate(180deg); }
.index-moscow-month .month-decor__shuttle {
  width: min(112vw, 1900px);
  right: -110px;
  bottom: 105px;
  opacity: .30;
  transform: rotate(-30deg);
  transform-origin: 50% 50%;
}

/* Hero remains fixed as the entrance to the modular page. */
.index-moscow-month .month-hero {
  min-height: 994px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}
.index-moscow-month .month-hero::before,
.index-moscow-month .month-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}
.index-moscow-month .month-hero::before {
  background: url("../month-assets/hero-industrial.png") center top / cover no-repeat;
  opacity: .4;
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}
.index-moscow-month .month-hero::after {
  top: 60%;
  background: linear-gradient(180deg, transparent, rgb(17 78 109 / 10%));
}
.index-moscow-month .month-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 994px;
  padding-top: 148px;
  /* Резерв под абсолютную пагинацию (bottom: 30px + высота буллетов),
     чтобы длинный заголовок в 3–4 строки не перекрывал буллеты. */
  padding-bottom: 90px;
}
.index-moscow-month .month-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 940fr) minmax(0, 460fr);
  gap: 20px;
  min-width: 0;
}
.index-moscow-month .month-hero__feature,
.index-moscow-month .month-hero__slider { min-width: 0; width: 100%; }
.index-moscow-month .month-hero__slider { overflow: hidden; }
.index-moscow-month .month-hero__slide {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: auto;
}
.index-moscow-month .month-hero__image {
  display: block;
  width: 100%;
  aspect-ratio: 940 / 528;
  overflow: hidden;
  border-radius: 5px;
  background: #1c709c;
}
.index-moscow-month .month-hero__image img,
.index-moscow-month .month-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}
.index-moscow-month .month-hero__story { margin-top: 30px; }
.index-moscow-month .month-hero__story h2 { margin: 18px 0 0; }
.index-moscow-month .month-hero__story .section-hero__slide__title {
  display: block;
  max-width: 940px;
  font-size: clamp(32px, 2.72vw, 52px);
  font-weight: 500;
  line-height: 1.23;
  text-decoration: none;
  text-wrap: balance;
}
.index-moscow-month .month-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: underline;
}
.index-moscow-month .month-tag::before,
.index-moscow-month .month-dot {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #a46cff;
}
.index-moscow-month .month-tag--interesting::before,
.index-moscow-month .month-dot--interesting { background: #53bd71; }
.index-moscow-month .month-tag--events::before { background: #fbc552; }
.index-moscow-month .month-tag--factories::before { background: #55bce8; }
.index-moscow-month .month-dot--career { background: #55bce8; }
/* Правая колонка первого экрана — редизайн по макету Index 8:
   карточка «Слово дня» с переворотом, баннер ко Дню города и плитка новостей 2×2.
   Данные приходят из тех же включений компонента, что и раньше. */
.index-moscow-month .month-hero__rail {
  position: static;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-width: 0;
  gap: 14px;
  overflow: visible;
  container-type: inline-size;
}
.index-moscow-month .section-hero__ad {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 100px;
  padding: 12px;
  gap: 14px;
}
.index-moscow-month .section-hero__ad .section-hero__ad__logo {
  width: 72px;
  height: 72px;
}
.index-moscow-month .section-hero__ad__text {
  font-size: clamp(15px, 4cqi, 18px);
  line-height: 1.25;
}
.index-moscow-month .hero-flip {
  --flip-front-height: clamp(160px, 42cqi, 220px);
  width: 100%;
  height: var(--flip-front-height);
  flex-shrink: 0;
}
.index-moscow-month .hero-flip .flip-card__inner {
  height: 100%;
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
}
.index-moscow-month .hero-flip.is-flipped .flip-card__inner {
  transform: rotateY(-180deg);
  -webkit-transform: rotateY(-180deg);
}
.index-moscow-month .hero-flip .flip-card__front__content {
  padding: 0;
  gap: 8px;
}
.index-moscow-month .hero-flip__heading {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 6px;
}
.index-moscow-month .hero-flip__eyebrow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgb(3 33 51 / 85%);
  color: #fff;
  line-height: 1.2;
  font-weight: 500;
}
.index-moscow-month .hero-flip__label {
  font-size: clamp(14px, 4cqi, 18px);
}
.index-moscow-month .hero-flip__hashtag {
  font-size: clamp(12px, 3.2cqi, 14px);
}
.index-moscow-month .hero-flip .flip-card__front {
  padding: 8px;
  gap: 6px;
}
.index-moscow-month .hero-flip .flip-card__front .flip-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  font-size: clamp(16px, 4.6cqi, 23px);
  line-height: 1.2;
}
.index-moscow-month .hero-flip .flip-card__front .flip-card__text::before {
  display: none;
}
.index-moscow-month .hero-flip .flip-card__front .flip-card__text span {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 5px;
}
.index-moscow-month .hero-flip .flip-card__front .flip-card__text span:first-child {
  border-bottom-left-radius: 0;
}
.index-moscow-month .hero-flip .flip-card__front .flip-card__text span:last-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.index-moscow-month .hero-flip .flip-card__front .flip-card__text span:only-child {
  border-radius: 5px;
}
.index-moscow-month .hero-flip .flip-card__front__arrow {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #124f6c;
  padding: 6px;
}
/* Explicit SVG dimensions prevent the padded circle from stretching in WebKit. */
.index-moscow-month .hero-flip .flip-card__front__arrow svg {
  display: block;
  width: 22px;
  height: 22px;
}
.index-moscow-month .hero-flip .flip-card__front__caption {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 100%;
  border-radius: 0 4px 0 4px;
  pointer-events: none;
  font-size: 8px;
}
.index-moscow-month .hero-flip .flip-card__back {
  padding: 8px;
  gap: 6px;
}
.index-moscow-month .hero-flip .flip-card__text_back {
  font-size: clamp(20px, 4.8cqi, 24px);
  line-height: 1.4;
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: visible;
}
.index-moscow-month .hero-flip .flip-card__text_back p {
  margin: 0;
}
.index-moscow-month .hero-flip .flip-card__back-link {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: 4px;
  cursor: pointer;
}
.index-moscow-month .hero-flip__open {
  position: absolute;
  inset: 0;
  z-index: 10;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}
.index-moscow-month .hero-flip__close {
  position: relative;
  order: 2;
  align-self: flex-end;
  flex-shrink: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #124f6c;
  cursor: pointer;
}
.index-moscow-month .hero-flip__close svg {
  display: block;
  width: 20px;
  height: 20px;
}
.index-moscow-month .hero-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}
.index-moscow-month .hero-news-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: clamp(168px, 39cqi, 200px);
  padding: clamp(10px, 3cqi, 16px);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 5px;
  background: rgb(3 33 51 / 62%);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.index-moscow-month .hero-news-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 350ms ease;
}
.index-moscow-month .hero-news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(3 25 40 / 8%) 0%, rgb(3 25 40 / 12%) 40%, rgb(3 25 40 / 72%) 70%, rgb(3 25 40 / 96%) 100%);
}
.index-moscow-month .hero-news-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 8px;
}
.index-moscow-month .hero-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  gap: 3px 6px;
  padding: 4px 6px;
  border-radius: 3px;
  background: rgb(3 25 40 / 75%);
  font-size: clamp(8px, 2cqi, 9px);
  line-height: 1.15;
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgb(0 0 0 / 50%);
}
.index-moscow-month .hero-news-card__rubric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.index-moscow-month .hero-news-card__rubric::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #50bf71;
}
.index-moscow-month .hero-news-card__rubric--interesting::before { background: #53bd71; }
.index-moscow-month .hero-news-card__rubric--events::before { background: #fbc552; }
.index-moscow-month .hero-news-card__rubric--career::before,
.index-moscow-month .hero-news-card__rubric--factories::before { background: #55bce8; }
.index-moscow-month .hero-news-card__meta time {
  color: rgb(255 255 255 / 90%);
}
.index-moscow-month .hero-news-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: auto 0 0;
  font-size: clamp(11.5px, 3.1cqi, 14px);
  font-weight: 500;
  line-height: 1.22;
  text-wrap: pretty;
}
.index-moscow-month .hero-flip__open:focus-visible,
.index-moscow-month .hero-flip__close:focus-visible,
.index-moscow-month .hero-news-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
@media (hover: hover) {
  .index-moscow-month .hero-news-card:hover {
    background-color: rgb(3 33 51 / 85%);
    border-color: rgb(255 255 255 / 50%);
  }
  .index-moscow-month .hero-news-card:hover .hero-news-card__title {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .index-moscow-month .hero-news-card:hover .hero-news-card__image {
    transform: scale(1.05);
  }
}
.index-moscow-month .month-hero__arrow {
  position: absolute;
  z-index: 3;
  top: 387px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #fff;
  cursor: pointer;
}
.index-moscow-month .month-hero__arrow svg { display: block; width: 50px; height: 50px; }
.index-moscow-month .month-hero__arrow--previous { left: max(-150px, -7.8vw); }
.index-moscow-month .month-hero__arrow--next { right: max(-150px, -7.8vw); }
.index-moscow-month .month-hero__pagination {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 30px;
  left: 0;
  width: 100%;
}

.index-moscow-month .month-links {
  min-height: 160px;
  padding-block: 50px;
  background: transparent;
}
.index-moscow-month .month-links .template { gap: 20px; }
.index-moscow-month .month-links .section-links__item { min-height: 60px; background: rgb(255 255 255 / 5%); }
.index-moscow-month .month-links .section-links__item--new { position: relative; }
.index-moscow-month .month-links .section-links__item--new .new {
  position: absolute;
  top: 0;
  right: 18px;
  z-index: 1;
  margin-left: 0;
  transform: translateY(-50%);
}

/* Translucent surfaces reveal the uninterrupted page-wide decoration. */
.index-moscow-month .main-nr,
.index-moscow-month .section-career,
.index-moscow-month .section-cards,
.index-moscow-month .section-factories,
.index-moscow-month .support-measures,
.index-moscow-month .section-news,
.index-moscow-month .section-specprojects { background: transparent; }
.index-moscow-month .main-nr__background,
.index-moscow-month .section-career__background,
.index-moscow-month .section-factories__background,
.index-moscow-month .section-news__background,
.index-moscow-month .section-specprojects__background { display: none; }
.index-moscow-month .section-announcements::before,
.index-moscow-month .section-career::before,
.index-moscow-month .section-news::before,
.index-moscow-month .support-measures__top::before,
.index-moscow-month .support-measures__bottom::before {
  background: var(--month-panel-70);
}
.index-moscow-month .section-relevant::before { background: var(--month-panel-40); }
.index-moscow-month .section-cards::before { background: rgb(17 78 109 / 66%); }
.index-moscow-month .section-factories::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgb(23 101 140 / 58%), rgb(17 78 109 / 72%));
  pointer-events: none;
}
.index-moscow-month .section-specprojects::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgb(17 78 109 / 70%);
  pointer-events: none;
}
.index-moscow-month .section-specprojects > .main-title,
.index-moscow-month .section-specprojects > .section-specprojects__slider {
  position: relative;
  z-index: 1;
}
/* The panel's edge follows its position, so announcements and relevant may swap. */
.index-moscow-month .main-nr > .section-announcements::before,
.index-moscow-month .main-nr > .section-relevant::before {
  top: 0;
  bottom: 0;
  border: 0;
  border-radius: 0;
}
.index-moscow-month .main-nr > div:first-of-type::before {
  top: 5px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}
.index-moscow-month .main-nr > div:last-of-type::before {
  bottom: 5px;
  border-top: 10px solid rgb(255 255 255 / 30%);
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}
.index-moscow-month .section-announcements .card-style_1,
.index-moscow-month .section-announcements__calendar {
  background: rgb(223 244 255 / 72%);
  border: 1px solid #fff;
  backdrop-filter: blur(3px);
}
.index-moscow-month .section-relevant .card-style_3 { background: rgb(255 255 255 / 6%); }
.index-moscow-month .section-career__grid__item,
.index-moscow-month .section-career__quiz { background-color: rgb(223 244 255 / 62%); }

@media (max-width: 1599px) {
  .index-moscow-month .month-hero { min-height: 850px; }
  .index-moscow-month .month-hero__inner { min-height: 850px; padding-top: 135px; }
  .index-moscow-month .month-hero__arrow { top: 330px; }
  .index-moscow-month .month-decor { top: 850px; }
}
@media (max-width: 1439px) {
  .index-moscow-month .header__wrapper { flex-direction: row; gap: 18px; padding-block: 15px; }
  .index-moscow-month .header__logo { width: 220px; flex: 0 0 220px; }
  .index-moscow-month .header__menu { gap: 14px; font-size: 13px; }
  .index-moscow-month .header__actions { gap: 15px; }
  .index-moscow-month .month-hero__story .section-hero__slide__title { font-size: 37px; }
}
@media (max-width: 1199px) {
  .index-moscow-month .header__menu { display: none; }
  .index-moscow-month .header__menu-toggler { display: inline-flex; }
  .index-moscow-month .month-hero { min-height: 0; }
  .index-moscow-month .month-hero__inner { min-height: 0; padding-top: 132px; padding-bottom: 55px; }
  .index-moscow-month .month-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .index-moscow-month .month-hero__rail { max-width: 640px; margin-inline: auto; overflow: visible; }
  .index-moscow-month .section-hero__ad { align-self: stretch; }
  .index-moscow-month .section-hero__ad .section-hero__ad__logo { display: block; }
  .index-moscow-month .month-hero__arrow { top: clamp(200px, 26vw, 340px); }
  .index-moscow-month .month-hero__arrow--previous { left: -55px; }
  .index-moscow-month .month-hero__arrow--next { right: -55px; }
  .index-moscow-month .month-hero__pagination { bottom: 17px; }
  .index-moscow-month .month-decor { top: 850px; }
}
@media (max-width: 767px) {
  .index-moscow-month .month-banner { height: 36px; font-size: 14px; letter-spacing: .02em; }
  .index-moscow-month .month-banner strong { margin-left: 7px; }
  .index-moscow-month > .header { top: 36px; }
  .index-moscow-month .header__wrapper { min-height: 58px; }
  .index-moscow-month .header__logo { width: 180px; flex-basis: 180px; }
  .index-moscow-month .month-hero__inner { padding-top: 113px; }
  .index-moscow-month .month-hero__story { margin-top: 16px; }
  .index-moscow-month .month-hero__story h2 { margin-top: 8px; }
  .index-moscow-month .month-hero__story .section-hero__slide__title { font-size: clamp(24px, 6vw, 34px); }
  .index-moscow-month .month-hero__rail { margin-top: 18px; }
  .index-moscow-month .month-hero__arrow { display: none; }
  .index-moscow-month .month-links { display: grid; min-height: 0; padding-block: 20px; }
  .index-moscow-month .month-links .template { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .index-moscow-month .month-links .section-links__item { grid-column: auto; font-size: 13px; }
  .index-moscow-month .month-links .section-links__item svg { width: 35px; height: 35px; }
  .index-moscow-month .month-decor__wave { width: 2500px; }
  .index-moscow-month .month-decor__circuit { width: 900px; }
  .index-moscow-month .month-decor__shuttle { width: 900px; right: -335px; bottom: 0; }
}
@media (max-width: 1023px) {
  .index-moscow-month .main-nr > div:first-of-type::before {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .index-moscow-month .main-nr > div:last-of-type::before {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
}
@media (max-width: 479px) {
  .index-moscow-month .month-banner { font-size: 11px; }
  .index-moscow-month .header__logo { width: 155px; flex-basis: 155px; }
  .index-moscow-month .section-hero__ad { padding: 10px; gap: 10px; }
  .index-moscow-month .section-hero__ad .section-hero__ad__logo { width: 56px; height: 56px; }
  .index-moscow-month .month-links .section-links__item { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .index-moscow-month .hero-flip .flip-card__inner,
  .index-moscow-month .hero-news-card,
  .index-moscow-month .hero-news-card__image { transition: none; }
  .index-moscow-month .month-hero__pagination .swiper-pagination-bullet-active::before { animation: none; width: 100%; }
}
