.yc-emergency {
  padding: 32px 0 64px;
}
.yc-emergency__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.yc-emergency__badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  background: rgba(0, 0, 0, 0.06);
}
.yc-emergency__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}
.yc-emergency__text p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.92;
}
.yc-emergency__h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.yc-emergency__donations {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.yc-emergency__donations-lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.85;
}
/* Isolated receipt rows — do not rely on project-donations block CSS */
.yc-emergency__donations-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}
.yc-emergency__donations .list-item-receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.yc-emergency__donations .list-item-receipt .list-item__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.yc-emergency__donations .list-item-receipt .list-item__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.yc-emergency__donations .list-item-receipt .list-item__subtitle--date {
  order: -1;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.65;
}
.yc-emergency__donations .list-item-receipt .list-item__subtitle--relative,
.yc-emergency__donations .list-item-receipt .list-item__method {
  display: none;
}
.yc-emergency__donations .list-item-receipt .list-item__aside {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}
.yc-emergency__donations .list-item-receipt .list-item__num {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 24px;
  padding: 4px 10px;
  text-align: center;
  background: var(--list-item-num-background, var(--gradient-site, #2e7d32));
  color: var(--list-item-num-color, #fff);
}
.yc-emergency__contacts {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.yc-emergency__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.yc-emergency__list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 15px;
}
.yc-emergency__list span:first-child {
  opacity: 0.65;
}
.yc-emergency__footer-contacts {
  margin-top: 16px;
}
.yc-emergency__fc {
  margin-bottom: 12px;
}
.yc-emergency__fc-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.yc-emergency__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.yc-emergency__social {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}
.yc-emergency__pay {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.yc-emergency__pay-lead {
  margin: 0 0 16px;
  font-size: 15px;
  opacity: 0.85;
}
/* Header/footer: no page links, no login during emergency */
body.yc-emergency-mode .header__nav,
body.yc-emergency-mode .header__field-wrap_profile,
body.yc-emergency-mode .header__menu,
body.yc-emergency-mode .js-mobile-menu .header__nav,
body.yc-emergency-mode .js-mobile-menu .header__field-wrap_profile,
body.yc-emergency-mode #modal-login,
body.yc-emergency-mode .footer__col--menu,
body.yc-emergency-mode .footer__nav,
body.yc-emergency-mode .footer__menu {
  display: none !important;
}

/* Without menu, push «Помочь» to the right on desktop */
body.yc-emergency-mode .header__main-inner .header__actions {
  margin-left: auto;
}

/* Thanks page: no cabinet/subscription hint while autopay is off */
body.yc-emergency-mode .check-section__info-badge {
  display: none !important;
}

/* Hide subscription / autopay / phone on emergency forms */
.yc-emergency .hero-form__tabs,
.yc-emergency [data-form-type="subscription"],
.yc-emergency .js-autopay,
.yc-emergency .autopayment,
.yc-emergency .hero-form__period,
.yc-emergency .pay-form__period,
.yc-emergency .hero-form__field-wrap--phone,
#modal-help .hero-form__tabs,
#modal-help .hero-form__period,
#modal-help .hero-form__field-wrap--phone,
#modal-help .hero-form__type {
  display: none !important;
}
@media (max-width: 960px) {
  .yc-emergency__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .yc-emergency__list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
