/* NavX — мобильный слой (20.11.2026): сайт, разделы, кабинет */
html, body { overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; }

@media (max-width: 760px) {
  /* ---- шапка ---- */
  .hdr { gap: 10px !important; padding: 0 14px !important; height: 58px !important; }
  .brand { gap: 8px !important; }
  .brand b { font-size: 19px !important; }
  .brand svg { width: 28px !important; height: 24px !important; }
  .nav { display: none !important; }
  .langs { margin-left: auto !important; gap: 8px !important; font-size: 13px !important; }
  .langs a.on { padding: 1px 7px !important; }
  .nx-acc { height: 34px !important; padding: 0 3px !important; }
  .nx-acc .nm { display: none !important; }

  /* ---- контент ---- */
  main { padding: 86px 0 44px !important; min-height: 0 !important; }
  .wrap { padding: 0 16px !important; }
  .hero { min-height: 0 !important; }
  .hero-in { padding: 96px 0 44px !important; }
  h1 { font-size: 32px !important; line-height: 1.12 !important; letter-spacing: -.8px !important; }
  h2 { font-size: 22px !important; }
  .lead { font-size: 15.5px !important; line-height: 1.6 !important; }
  .eyebrow { font-size: 11.5px !important; letter-spacing: 2.4px !important; }
  .btn { height: 48px !important; padding: 0 20px !important; font-size: 15px !important; }
  .cta { gap: 10px !important; }
  .hsearch { max-width: 100% !important; height: 52px !important; }

  /* ---- сетки: длинные слова не распирают колонки ---- */
  .cards, .ecos, .grid, .tiers, .ct { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cards > *, .ecos > *, .grid > *, .tiers > *, .ct > * { min-width: 0 !important; }
  .card b, .card p, .eco-item b, .eco-item p, .tier b, .tier p, .feat b, .feat p { overflow-wrap: anywhere; }
  .card { padding: 18px 16px !important; }
  .card b { font-size: 15px !important; }
  .card p { font-size: 13px !important; }

  /* ---- таблицы и код ---- */
  .tbl { table-layout: fixed; width: 100% !important; font-size: 13.5px; }
  .tbl th, .tbl td { padding: 9px 8px !important; }
  .tbl code { white-space: normal !important; overflow-wrap: anywhere !important; word-break: break-word !important; font-size: 12px !important; }
  pre, code, kbd, samp { overflow-wrap: anywhere; }
  pre { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { max-width: 100%; }

  /* ---- футер ---- */
  footer { padding: 26px 0 34px !important; font-size: 12.5px !important; }
  footer .fr { gap: 12px !important; flex-direction: column; align-items: flex-start; }
  footer .cp { margin-left: 0 !important; }
}

@media (max-width: 430px) {
  .cards, .ecos, .grid, .tiers, .ct { grid-template-columns: minmax(0, 1fr) !important; }
  h1 { font-size: 29px !important; }
}

/* PWA (20.11): iPhone standalone — статус-бар поверх шапки */
@supports (padding-top: env(safe-area-inset-top)) {
  .hdr { padding-top: env(safe-area-inset-top, 0px) !important;
         height: calc(76px + env(safe-area-inset-top, 0px)) !important; }
  main { padding-top: calc(150px + env(safe-area-inset-top, 0px)) !important; }
  @media (max-width: 760px) {
    .hdr { height: calc(58px + env(safe-area-inset-top, 0px)) !important; }
    main { padding-top: calc(86px + env(safe-area-inset-top, 0px)) !important; }
  }
}
