/* MIR74 — afisha promo banner + unified template fixes.
   Loaded after editorial-b.css, so it wins on equal specificity. */

/* 1. Unified template: keep the useful A-side block ("По теме и городу")
      that the B layout used to hide. */
html[data-m74-variant=B] .m74-a-related {
  display: block !important;
  margin: 28px 0;
}
html[data-m74-variant=B] .m74-a-related > h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 14px;
}
html[data-m74-variant=B] .m74-a-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
html[data-m74-variant=B] .m74-a-related-grid article {
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 10px;
  padding: 16px;
}
html[data-m74-variant=B] .m74-a-related-grid h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 12px;
}
html[data-m74-variant=B] .m74-a-related-grid h3 a {
  color: inherit;
  text-decoration: none;
}
html[data-m74-variant=B] .m74-a-related-grid time {
  font-size: 12px;
  color: #52636f;
}

/* 2. Afisha promo field */
.m74-afisha-promo {
  position: relative;
  display: block;
  margin: 30px 0;
  min-height: 236px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: #fff;
  background: #0a1e2c url('/templates/Mir74Review/img/afisha/afisha-banner-desktop.png') center right / cover no-repeat;
  box-shadow: 0 10px 28px -18px rgba(7, 24, 36, .85);
  transition: transform .18s ease, box-shadow .18s ease;
}
.m74-afisha-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 19, 29, .94) 0%, rgba(6, 19, 29, .82) 38%, rgba(6, 19, 29, .38) 70%, rgba(6, 19, 29, .12) 100%);
}
.m74-afisha-promo:hover,
.m74-afisha-promo:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -18px rgba(7, 24, 36, .95);
}
.m74-afisha-promo:focus-visible {
  outline: 2px solid #ffb85c;
  outline-offset: 3px;
}
.m74-afisha-promo-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 660px;
  padding: 30px 34px;
}
.m74-afisha-promo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffcf8f;
}
.m74-afisha-promo-city {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 184, 92, .16);
  border: 1px solid rgba(255, 184, 92, .45);
  color: #ffd9a6;
  font-size: 11px;
  letter-spacing: .06em;
}
.m74-afisha-promo-title {
  font-size: 30px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}
.m74-afisha-promo-text {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(233, 242, 248, .82);
}
.m74-afisha-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #ffb85c;
  color: #17222a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: background .16s ease;
}
.m74-afisha-promo:hover .m74-afisha-promo-cta {
  background: #ffc97a;
}
.m74-afisha-promo-cta svg {
  width: 18px;
  height: 18px;
  flex: none;
}

@media (max-width: 900px) {
  html[data-m74-variant=B] .m74-a-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  html[data-m74-variant=B] .m74-a-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .m74-afisha-promo {
    min-height: 300px;
    margin: 24px 0;
    background-image: url('/templates/Mir74Review/img/afisha/afisha-banner-mobile.png');
    background-position: center bottom;
  }
  .m74-afisha-promo::after {
    background: linear-gradient(180deg, rgba(6, 19, 29, .92) 0%, rgba(6, 19, 29, .8) 46%, rgba(6, 19, 29, .42) 100%);
  }
  .m74-afisha-promo-body {
    padding: 24px 22px 26px;
    gap: 7px;
  }
  .m74-afisha-promo-title {
    font-size: 23px;
  }
  .m74-afisha-promo-text {
    font-size: 14px;
  }
}

/* 3. Transport promo (routes of Chelyabinsk) */
.m74-transport-promo {
  position: relative;
  margin: 24px 0;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #0a1e2c url('/templates/Mir74Review/img/afisha/transport-banner-desktop.png') center right / cover no-repeat;
  box-shadow: 0 8px 22px -18px rgba(7, 24, 36, .9);
}
.m74-transport-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 19, 29, .95) 0%, rgba(6, 19, 29, .84) 42%, rgba(6, 19, 29, .34) 76%, rgba(6, 19, 29, .1) 100%);
}
.m74-transport-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 620px;
  padding: 22px 26px;
}
.m74-transport-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7fd4ff;
}
.m74-transport-title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
}
.m74-transport-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(233, 242, 248, .84);
}
.m74-transport-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.m74-transport-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(127, 212, 255, .16);
  border: 1px solid rgba(127, 212, 255, .5);
  color: #e8f6ff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}
.m74-transport-links a:hover,
.m74-transport-links a:focus-visible {
  background: #7fd4ff;
  border-color: #7fd4ff;
  color: #08202e;
}
.m74-transport-links a:focus-visible {
  outline: 2px solid #ffb85c;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .m74-transport-promo {
    background-image: url('/templates/Mir74Review/img/afisha/transport-banner-mobile.png');
    background-position: center bottom;
  }
  .m74-transport-promo::after {
    background: linear-gradient(180deg, rgba(6, 19, 29, .9) 0%, rgba(6, 19, 29, .72) 55%, rgba(6, 19, 29, .4) 100%);
  }
  .m74-transport-body {
    padding: 18px 18px 20px;
  }
  .m74-transport-title {
    font-size: 20px;
  }
  .m74-transport-text {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m74-transport-links a {
    transition: none;
  }
  .m74-afisha-promo,
  .m74-afisha-promo-cta {
    transition: none;
  }
  .m74-afisha-promo:hover {
    transform: none;
  }
}

