/* mobile-first overrides for maiorskikh.ru copy */
@media (max-width: 768px) {
  html { font-size: 16px; }
  body { font-size: 16px; line-height: 1.5; }
  .page-title { font-size: 28px !important; line-height: 1.2 !important; margin-bottom: 18px !important; }
  .first-logo-text { font-size: 20px !important; line-height: 1.25 !important; }
  .first-logo-text p { font-size: 16px !important; margin-top: 10px !important; }
  .about-lead { font-size: 16px !important; line-height: 1.55 !important; }
  .about-lead b { font-size: 17px !important; }
  .page h2, .page h3, #service .page-title, #review .page-title, #article .page-title { font-size: 26px !important; line-height: 1.2 !important; margin-bottom: 18px !important; }
  .sd-features-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 16px !important; }
  .sd-feature-new { font-size: 15px !important; padding: 16px !important; }
  .sd-feature-new strong { font-size: 17px !important; }
  .idx-sc-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 16px !important; }
  .service-card { font-size: 15px !important; padding: 16px !important; }
  .service-card p { font-size: 18px !important; margin-bottom: 8px !important; }
  .about-main { padding-top: 0 !important; }
  .about-results { margin-top: 18px !important; padding: 16px !important; }
  .review-item, .article { margin-bottom: 12px !important; }
  .article-name { font-size: 15px !important; }
  .footer-wrapper { padding: 16px !important; }
  .footer { flex-direction: column !important; gap: 8px !important; text-align: center !important; font-size: 14px !important; }
  .main_menu-menu ul { gap: 8px !important; }
  .main_menu-menu li a { font-size: 14px !important; }
  .menu_soc { gap: 6px !important; }
  .main_menu-rbtn { padding: 6px 10px !important; font-size: 12px !important; }
  .article-all { padding: 10px 18px !important; font-size: 14px !important; }
}

@media (max-width: 768px) {
  .brain-widget { right: 16px; bottom: 16px; }
  .brain-bubble { width: 96px; height: 96px; }
  .brain-bubble img { width: 76px; height: 76px; }
  .brain-bubble .bolts { width: 116px; height: 116px; inset: -10px; }
  .bubble-label { font-size: 8px; bottom: -14px; }
  .chat-window {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    backdrop-filter: blur(20px);
  }
  .brain-widget:has(.chat-window.is-open) .brain-bubble { display: none; }
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
    flex-wrap: wrap;
    width: 40px;
    height: 40px;
    justify-content: space-between;
    align-content: space-between;
    padding: 6px;
    cursor: pointer;
  }
}

/* mobile add-on: страницы кроме главной (крошки, лиды, гриды about) */
@media (max-width: 768px) {
  .bx-breadcrumb { font-size: 13px !important; }
  .bx-breadcrumb-item, .bx-breadcrumb-item span { font-size: 13px !important; }
  .about-hero-lead, .about-lead { font-size: 17px !important; line-height: 1.5 !important; }
  .about-team-grid { grid-template-columns: 1fr !important; }
  .about-team-poster, .about-team-poster--darya { max-width: 60% !important; height: auto !important; position: static !important; }
  .about-person h2 { font-size: 22px !important; }
  .about-person p, .about-person li { font-size: 16px !important; }
  .team-extra { grid-template-columns: 1fr !important; }
  .thanks-item h2, .thanks-item h3 { font-size: 20px !important; }
  .news-detail-body .sub-title { font-size: 22px !important; }
  .review-item { font-size: 15px !important; }
}