/* info-doc pages — модалки «Краснодар» / «Донецк» / «ОСТАВИТЬ ЗАЯВКУ» = font.html (mobile) */

@media (max-width: 768px) {
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) .site-header .header-inner .header-actions > .home-link.top-news-btn,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) .site-header .header-inner .header-actions > a.home-link.top-news-btn {
    flex: 1 1 0 !important;
    flex-basis: 0 !important;
    inline-size: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    block-size: 48px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) .site-header .header-actions .home-link.top-news-btn:first-child {
    display: inline-flex !important;
  }

  /* Заголовок по центру (симметричные отступы под крестик / «назад») */
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeMapModal#officeMapModal .social-legal-modal-header,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeFeedbackModal#officeFeedbackModal .social-legal-modal-header,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) div#officeFeedbackModal#officeFeedbackModal .social-legal-modal-header {
    padding-left: 54px !important;
    padding-right: 54px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeMapModal#officeMapModal .social-legal-modal-header h2,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeMapModal#officeMapModal #officeMapModalTitle,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeFeedbackModal#officeFeedbackModal .social-legal-modal-header h2,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeFeedbackModal#officeFeedbackModal #officeFeedbackModalTitle {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Кнопки в подвале — как font-mobile.css */
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeMapModal#officeMapModal .social-legal-modal-footer,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeFeedbackModal#officeFeedbackModal .social-legal-modal-footer {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeMapModal#officeMapModal #officeFeedbackBtn#officeFeedbackBtn,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeMapModal#officeMapModal button#officeFeedbackBtn#officeFeedbackBtn.social-legal-submit-btn,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeFeedbackModal#officeFeedbackModal #officeFeedbackSubmitBtn#officeFeedbackSubmitBtn,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeFeedbackModal#officeFeedbackModal button#officeFeedbackSubmitBtn#officeFeedbackSubmitBtn.social-legal-submit-btn,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) div#officeFeedbackModal#officeFeedbackModal button#officeFeedbackSubmitBtn#officeFeedbackSubmitBtn.social-legal-submit-btn {
    inline-size: var(--index-news-btn-width, 6.4cm) !important;
    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;
    height: var(--index-news-btn-height, 1.3cm) !important;
    min-height: 0 !important;
    max-height: var(--index-news-btn-height, 1.3cm) !important;
    block-size: var(--index-news-btn-height, 1.3cm) !important;
    padding: 0 0.32cm !important;
    margin: 1mm 0 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    font-size: 15px !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) #officeFeedbackModal#officeFeedbackModal :is(.index-modal-select-trigger, button.index-modal-select-trigger) {
    min-height: 48px !important;
    padding: 11px 38px 11px 13px !important;
  }
}

@media (max-width: 480px) {
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) .site-header .header-inner .header-actions > .home-link.top-news-btn,
  html body.page-font:is(
    .page-privacy-policy,
    .page-personal-data-consent,
    .page-payment-acceptance-terms
  ) .site-header .header-inner .header-actions > a.home-link.top-news-btn {
    display: inline-flex !important;
    flex: 1 1 0 !important;
    flex-basis: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    block-size: 48px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    line-height: 1.12 !important;
    border-radius: 14px !important;
  }
}
