/* Общие правила мобильного публичного сайта. */
.site-header > .site-menu { display: contents; }
.site-menu > summary { display: none; }
.site-menu-panel { display: flex; flex: 1; align-items: center; gap: 20px; }
.site-menu-panel .site-nav { flex: 1; }
.site-header .nav-cta { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.article-updated { font-size: 13px; color: #5a6270; margin: 0 0 24px; }
.toc-details > summary { cursor: pointer; font-size: 16px; font-weight: 600; padding: 8px 0; }
.toc-details ol { margin-top: 12px; }
.scheme-view > summary { display: none; }
.scheme-description { font-size: 14px; line-height: 1.6; color: #5a6270; margin: 12px 0; }
.scheme-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.tbl-wrap { max-width: 100%; overscroll-behavior-x: contain; }
.tbl-wrap.is-scrollable::before { content: 'Листайте таблицу в сторону →'; display: block; padding: 10px 14px; font-size: 13px; color: #5a6270; }
.scheme-scroll:focus-visible, .tbl-wrap:focus-visible, .toc-details > summary:focus-visible, .scheme-view > summary:focus-visible { outline: 3px solid #a80024; outline-offset: 3px; }
.contact-choice { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; border: 0; }
.contact-choice[hidden] { display: none; }
.contact-choice legend { font-size: 14px; margin-bottom: 8px; }
#final .contact-choice label { flex-direction: row; align-items: center; min-height: 44px; font: 15px var(--body); text-transform: none; letter-spacing: normal; }
#final .contact-choice input { width: 20px; height: 20px; padding: 0; }
#final input, #final select, #final textarea { font-size: 16px; }
.cell-ctl button { min-height: 44px; min-width: 44px; }
.cell-ctl .play { padding: 8px 12px; }
.cell-ctl .step button, .cell-ctl .step b { width: 44px; height: 44px; }
@media (max-width: 1100px) {
  .site-header { position: relative; display: flex; align-items: center; flex-wrap: nowrap; min-height: 68px; padding: 10px 16px; gap: 12px; }
  .site-header .brand { flex-shrink: 0; }
  .site-header > .site-menu { display: block; position: static; margin-left: auto; }
  .site-menu > summary { display: flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 8px 14px; border: 1px solid #657181; border-radius: 3px; list-style: none; }
  .site-menu > summary::-webkit-details-marker { display: none; }
  .site-menu[open] > summary { background: #303844; }
  .site-menu-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 70; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; background: #11151c; border-bottom: 1px solid #657181; max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }
  .site-header .site-nav { display: flex; flex-direction: column; gap: 4px; order: 0; }
  .site-header .site-nav > a, .site-header .site-nav summary, .site-header .nav-contact { display: flex; align-items: center; min-height: 44px; padding: 10px 8px; font-size: 16px; }
  .site-header .site-nav details { position: static; }
  .site-header .nav-panel { position: static; padding: 4px 8px 12px; border: 0; box-shadow: none; max-height: none; min-width: 0; background: #171c25; }
  .site-header .nav-panel a { min-height: 44px; padding: 10px 12px; font-size: 15px; }
  .site-header .nav-contact { margin: 0; }
  .site-header .nav-cta { justify-content: center; min-height: 48px; }
}
@media (max-width: 640px) {
  #hero { padding-top: 32px; padding-bottom: 40px; }
  #hero h1 { font-size: clamp(29px, 8.3vw, 40px); overflow-wrap: normal; }
  #hero .lead { font-size: 17px; }
  .cell-ctl .row { flex-wrap: wrap; }
  .cell-ctl .segs { flex-wrap: wrap; }
  .cell-ctl .lbl { font-size: 12px; }
  main { padding-top: 24px; }
  main, main > *, .route-grid > *, .dsheet > *, .specgrid > *, .cta-block > * { min-width: 0; }
  .specgrid .col { padding: 18px 16px; }
  .spec { width: 100%; table-layout: fixed; }
  .spec th, .spec td { overflow-wrap: anywhere; }
  main h1, main h2, main h3 { overflow-wrap: anywhere; }
  .crumb { font-size: 12px; gap: 6px; }
  .crumb > * { overflow-wrap: anywhere; }
  .dsheet .key, .defbox, .calc { padding: 18px 16px; }
  .kparam { flex-direction: column; gap: 6px; align-items: stretch; }
  .kparam .k { flex: auto; font-size: 12px; }
  .kparam .v { font-size: 16px; overflow-wrap: anywhere; }
  .toc { padding: 10px 16px; margin-bottom: 32px; }
  .toc li { font-size: 15px; margin: 8px 0; }
  .cta-block { padding: 24px 16px; display: block; }
  .cta-block .acts { margin-top: 18px; }
  .cta-block .btn, .route-project-cta { width: 100%; min-height: 48px; text-align: center; white-space: normal; overflow-wrap: anywhere; box-sizing: border-box; }
  .route-project { padding: 20px 16px; }
  .faq .ans { padding-right: 0; font-size: 16px; }
  .faq summary { font-size: 17px; }
  .schematic { padding: 16px 12px; }
  .scheme-view > summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
  .scheme-view > summary::-webkit-details-marker { display: none; }
  .scheme-view[open] > summary span { transform: rotate(45deg); }
  .scheme-scroll svg { width: 1080px; max-width: none; }
  .scheme-scroll::before { content: 'Листайте схему в сторону →'; display: block; padding-bottom: 12px; font-size: 13px; color: #5a6270; }
  .schematic figcaption { font-family: var(--body); font-size: 13px; }
  ol.tl { --tl-date-width: 54px; }
  ol.flow { grid-template-columns: 1fr; gap: 18px; }
  ol.flow li:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -15px; }
  .fnote { font-family: var(--body); font-size: 13px; }
  #final .lead-consent { min-height: 44px; font-size: 14px; }
  #final .lead-status { font-size: 16px; line-height: 1.6; scroll-margin-top: 24px; }
  .site-footer-nav { gap: 8px 18px; }
  .site-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
