/* font.html — ФИНАНСОВАЯ ПОМОЩЬ / ФИНАНСОВАЯ ПОМОЩЬ ДЕТЯМ: 1:1 index.html */

html body.page-font {
  --index-font-block-title: 1.08rem;
  --index-modal-field-label-font: 0.8125rem;
  --index-modal-field-value-font: 0.875rem;
  --index-news-btn-width: 6.4cm;
  --index-news-btn-height: 1.3cm;
  --index-news-btn-radius: 14px;
}

/* QR + реквизиты в одном окне (combined) */
html body.page-font #fundPlFinancialModal.fund-pl-payment-mode-combined .payment-switcher {
  display: none !important;
  visibility: hidden !important;
}

html body.page-font #fundPlFinancialModal.fund-pl-payment-mode-combined #fundPlPaymentEmptyState,
html body.page-font #fundPlFinancialModal.fund-pl-payment-mode-combined #fundPlPaymentEmptyState.active {
  display: none !important;
}

html body.page-font #fundPlFinancialModal.fund-pl-payment-mode-combined #fundPlQrPanel,
html body.page-font #fundPlFinancialModal.fund-pl-payment-mode-combined #fundPlRequisitesPanel {
  display: block !important;
}

html body.page-font #fundPlFinancialModal.fund-pl-payment-mode-combined .financial-payment-submit-actions {
  display: flex !important;
}

/* Структура модалки */
html body.page-font #fundPlFinancialModal .fund-contract-like-modal {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22) !important;
  box-sizing: border-box !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .fund-contract-like-header {
  position: relative !important;
  height: 1.5cm !important;
  min-height: 1.5cm !important;
  max-height: 1.5cm !important;
  flex: 0 0 1.5cm !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 22px !important;
  padding-right: 54px !important;
  margin: 0 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e7edf5 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04) !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .fund-contract-like-header h2 {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: var(--index-font-block-title, 1.08rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
  color: var(--text-main, #111111) !important;
}

html body.page-font #fundPlFinancialModal .index-modal-close-btn {
  position: absolute !important;
  top: 5px !important;
  right: 12px !important;
  pointer-events: auto !important;
  z-index: 120 !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  color: var(--text-main, #111111) !important;
  cursor: pointer !important;
  transform: none !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

html body.page-font #fundPlFinancialModal .fund-contract-like-form {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

html body.page-font #fundPlFinancialModal .index-modal-close-btn:hover,
html body.page-font #fundPlFinancialModal .index-modal-close-btn:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--blue-dark, #4f8df0) !important;
  outline: none !important;
}

html body.page-font #fundPlFinancialModal .fund-contract-like-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 14px 22px 0 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .fund-contract-like-footer,
html body.page-font #fundPlFinancialModal#fundPlFinancialModal .financial-payment-footer {
  height: 1.5cm !important;
  min-height: 1.5cm !important;
  max-height: 1.5cm !important;
  flex: 0 0 1.5cm !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
  margin: 0 !important;
  background: #ffffff !important;
  border-top: 1px solid #e7edf5 !important;
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html body.page-font #fundPlFinancialModal .pay-actions,
html body.page-font #fundPlFinancialModal .financial-payment-submit-actions {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.page-font #fundPlFinancialModal .fund-contract-like-footer > *,
html body.page-font #fundPlFinancialModal .financial-payment-footer > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .requisite-item strong {
  font-size: var(--index-modal-field-label-font, 0.8125rem) !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .requisite-item span {
  font-size: var(--index-modal-field-value-font, 0.875rem) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .requisites-box h3 {
  font-size: var(--index-font-block-title, 1.08rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal {
  --index-fund-financial-copy-font: 1rem;
  --index-fund-financial-copy-line-height: 1.6;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal :is(
  .requisite-info > p,
  .okved-info > p,
  .contact-info > p,
  .requisite-info h4,
  .okved-info h4,
  .contact-info h4,
  .payment-legal-card h4,
  .form-group label:not(.social-legal-consent-label),
  .legal-note,
  .legal-note a
) {
  font-size: var(--index-fund-financial-copy-font, 1rem) !important;
  line-height: var(--index-fund-financial-copy-line-height, 1.6) !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .form-group input:not([type="checkbox"]):not([type="radio"]),
html body.page-font #fundPlFinancialModal#fundPlFinancialModal .form-group textarea {
  width: 100% !important;
  padding: 13px 14px !important;
  background: #ffffff !important;
  border: 1px solid #d8dce2 !important;
  color: #111111 !important;
  border-radius: 12px !important;
  font-size: var(--index-modal-field-value-font, 0.875rem) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  outline: none !important;
  transition: 0.2s ease !important;
  box-sizing: border-box !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .form-group textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .form-group input::placeholder,
html body.page-font #fundPlFinancialModal#fundPlFinancialModal .form-group textarea::placeholder {
  color: #111111 !important;
  opacity: 0.55 !important;
  font-size: var(--index-modal-field-value-font, 0.875rem) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .requisites-view-action {
  margin-top: 16px !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  width: 100% !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal #fundPlRequisitesViewBtn,
html body.page-font #fundPlFinancialModal#fundPlFinancialModal #fundPlRequisitesViewBtn.index-fund-modal-btn {
  inline-size: var(--index-news-btn-width, 6.4cm) !important;
  width: var(--index-news-btn-width, 6.4cm) !important;
  min-width: var(--index-news-btn-width, 6.4cm) !important;
  max-width: var(--index-news-btn-width, 6.4cm) !important;
  block-size: var(--index-news-btn-height, 1.3cm) !important;
  height: var(--index-news-btn-height, 1.3cm) !important;
  min-height: var(--index-news-btn-height, 1.3cm) !important;
  max-height: var(--index-news-btn-height, 1.3cm) !important;
  flex: 0 0 var(--index-news-btn-width, 6.4cm) !important;
  padding: 0 0.32cm !important;
  margin: 0 !important;
  border: none !important;
  border-radius: var(--index-news-btn-radius, 14px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 1.12 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  background: var(--site-picture-blue-gradient, linear-gradient(135deg, #2f7085 0%, #3f93ad 52%, #92cbdb 100%)) !important;
  background-image: var(--site-picture-blue-gradient, linear-gradient(135deg, #2f7085 0%, #3f93ad 52%, #92cbdb 100%)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: var(--site-picture-blue-shadow, 0 12px 30px rgba(37, 84, 100, 0.28)) !important;
  filter: none !important;
  transform: none !important;
  transition: transform var(--m-dur, 0.2s) var(--m-ease, ease), background var(--m-dur, 0.2s) var(--m-ease, ease), box-shadow var(--m-dur, 0.2s) var(--m-ease, ease) !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal #fundPlRequisitesViewBtn:hover,
html body.page-font #fundPlFinancialModal#fundPlFinancialModal #fundPlRequisitesViewBtn:focus-visible,
html body.page-font #fundPlFinancialModal#fundPlFinancialModal #fundPlRequisitesViewBtn.index-fund-modal-btn:hover,
html body.page-font #fundPlFinancialModal#fundPlFinancialModal #fundPlRequisitesViewBtn.index-fund-modal-btn:focus-visible {
  background: var(--site-picture-blue-gradient-hover, linear-gradient(135deg, #1f4b5b 0%, #2f7892 52%, #75adbc 100%)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: var(--site-picture-blue-shadow-hover, 0 16px 36px rgba(37, 84, 100, 0.36)) !important;
  transform: translateY(-2px) !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .pay-link-btn {
  inline-size: var(--index-news-btn-width, 6.4cm) !important;
  width: var(--index-news-btn-width, 6.4cm) !important;
  min-width: var(--index-news-btn-width, 6.4cm) !important;
  max-width: var(--index-news-btn-width, 6.4cm) !important;
  flex: 0 0 var(--index-news-btn-width, 6.4cm) !important;
  padding: 0 0.32cm !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  border: none !important;
  border-radius: var(--index-news-btn-radius, 14px) !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: var(--site-picture-blue-gradient, linear-gradient(135deg, #2f7085 0%, #3f93ad 52%, #92cbdb 100%)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: var(--site-picture-blue-shadow, 0 12px 30px rgba(37, 84, 100, 0.28)) !important;
  transition: transform var(--m-dur, 0.2s) var(--m-ease, ease), background var(--m-dur, 0.2s) var(--m-ease, ease), box-shadow var(--m-dur, 0.2s) var(--m-ease, ease) !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .pay-link-btn:hover,
html body.page-font #fundPlFinancialModal#fundPlFinancialModal .pay-link-btn:focus-visible {
  background: var(--site-picture-blue-gradient-hover, linear-gradient(135deg, #1f4b5b 0%, #2f7892 52%, #75adbc 100%)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: var(--site-picture-blue-shadow-hover, 0 16px 36px rgba(37, 84, 100, 0.36)) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
  html body.page-font #fundPlFinancialModal .fund-contract-like-header {
    padding-left: 22px !important;
    padding-right: 54px !important;
  }

  html body.page-font #fundPlFinancialModal .fund-contract-like-header h2 {
    font-size: var(--index-font-block-title, 1.08rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  html body.page-font #fundPlFinancialModal .index-modal-close-btn {
    top: 5px !important;
    right: 8px !important;
  }

  html body.page-font #fundPlFinancialModal#fundPlFinancialModal #fundPlRequisitesViewBtn,
  html body.page-font #fundPlFinancialModal#fundPlFinancialModal #fundPlRequisitesViewBtn.index-fund-modal-btn {
    max-width: min(var(--index-news-btn-width, 6.4cm), 100%) !important;
    width: 100% !important;
    min-width: 0 !important;
    inline-size: 100% !important;
    flex: 1 1 auto !important;
    block-size: var(--index-news-btn-height, 1.3cm) !important;
    height: var(--index-news-btn-height, 1.3cm) !important;
    min-height: var(--index-news-btn-height, 1.3cm) !important;
    max-height: var(--index-news-btn-height, 1.3cm) !important;
  }
}

/* font.css legacy: ширина как у капсулы шапки, перебиваем max-width 860px */
html body.page-font #fundPlFinancialModal#fundPlFinancialModal.active {
  padding-left: var(--index-header-capsule-gutter, clamp(12px, 2vw, 20px)) !important;
  padding-right: var(--index-header-capsule-gutter, clamp(12px, 2vw, 20px)) !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal.active .fund-contract-like-modal {
  width: var(--index-header-capsule-width, min(var(--m-content-w, 1240px), calc(100vw - (clamp(12px, 2vw, 20px) * 2)))) !important;
  max-width: var(--index-header-capsule-width, min(var(--m-content-w, 1240px), calc(100vw - (clamp(12px, 2vw, 20px) * 2)))) !important;
  height: calc(100vh - var(--site-header-height, 96px) - var(--modal-edge-gap, 8mm) - var(--modal-edge-gap, 8mm)) !important;
  max-height: calc(100vh - var(--site-header-height, 96px) - var(--modal-edge-gap, 8mm) - var(--modal-edge-gap, 8mm)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .fund-contract-like-modal {
  width: var(--index-header-capsule-width, min(var(--m-content-w, 1240px), calc(100vw - (clamp(12px, 2vw, 20px) * 2)))) !important;
  max-width: var(--index-header-capsule-width, min(var(--m-content-w, 1240px), calc(100vw - (clamp(12px, 2vw, 20px) * 2)))) !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .fund-contract-like-header h2 {
  font-size: var(--index-font-block-title, 1.08rem) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .sheet-close-btn,
html body.page-font #fundPlFinancialModal#fundPlFinancialModal .index-modal-close-btn {
  top: 5px !important;
  right: 12px !important;
  transform: none !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .fund-contract-like-body {
  padding: 14px 22px 0 !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .fund-contract-like-footer.financial-payment-footer {
  height: 1.5cm !important;
  min-height: 1.5cm !important;
  max-height: 1.5cm !important;
  flex: 0 0 1.5cm !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .financial-payment-footer .pay-actions,
html body.page-font #fundPlFinancialModal#fundPlFinancialModal .financial-payment-footer .financial-payment-submit-actions {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

html body.page-font #fundPlFinancialModal#fundPlFinancialModal .financial-payment-footer .pay-link-btn {
  block-size: var(--index-news-btn-height, 1.3cm) !important;
  height: var(--index-news-btn-height, 1.3cm) !important;
  min-height: 0 !important;
  max-height: var(--index-news-btn-height, 1.3cm) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 1mm 0 0 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

@media (max-width: 768px) {
  html body.page-font #fundPlFinancialModal#fundPlFinancialModal .fund-contract-like-footer.financial-payment-footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  html body.page-font #fundPlFinancialModal#fundPlFinancialModal .financial-payment-footer {
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: center !important;
  }

  html body.page-font #fundPlFinancialModal#fundPlFinancialModal .financial-payment-submit-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
  }

  html body.page-font #fundPlFinancialModal#fundPlFinancialModal .financial-payment-footer .pay-link-btn {
    width: var(--index-news-btn-width, 6.4cm) !important;
    min-width: 0 !important;
    max-width: min(var(--index-news-btn-width, 6.4cm), 100%) !important;
    flex: 0 0 auto !important;
  }
}
