/* Mobile homepage corrections: readable hero and collapsible contacts. */

@media (max-width: 1060px) {
  .site-header.is-menu-open .header-contact-menu {
    height: auto;
    min-height: 32px;
    overflow: visible;
  }

  .site-header.is-menu-open .header-phone {
    width: fit-content;
    max-width: 100%;
    touch-action: manipulation;
  }

  .site-header.is-menu-open .header-phone-chevron {
    cursor: pointer;
    touch-action: manipulation;
  }

  .site-header.is-menu-open .header-contact-dropdown {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
    width: 100%;
    min-width: 0;
    max-width: none;
    position: static;
    transform: none !important;
  }

  .site-header.is-menu-open
    .header-contact-menu.is-contact-open
    .header-contact-dropdown {
    display: grid !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible;
  }

  .header-contact-menu.is-contact-open .header-phone-chevron::before {
    transform: rotate(225deg) translate(-1px, -1px);
  }
}

@media (max-width: 760px) {
  .hero.hero-compact {
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .hero.hero-compact .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }

  .hero.hero-compact .hero-copy {
    display: block;
    visibility: visible;
    opacity: 1;
    max-width: none;
    min-width: 0;
    transform: none;
  }

  .hero.hero-compact .eyebrow {
    max-width: 100%;
    margin-bottom: 12px;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.35;
  }

  .hero.hero-compact h1 {
    max-width: none;
    margin-bottom: 14px;
    font-size: 34px;
    line-height: 1.08;
  }

  .hero.hero-compact .hero-lead {
    max-width: none;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero.hero-compact .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }

  .hero.hero-compact .hero-actions .btn {
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }

  .hero.hero-compact .hero-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero.hero-compact .proof-card {
    min-width: 0;
    min-height: 82px;
    padding: 12px;
  }

  .hero.hero-compact .proof-card strong,
  .hero.hero-compact .proof-card span {
    overflow-wrap: anywhere;
  }

  .hero.hero-compact .ops-dashboard {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .hero.hero-compact .ops-topline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 4px;
    font-size: 12px;
  }

  .hero.hero-compact .ops-topline > span:nth-child(2) {
    min-width: 0;
    line-height: 1.3;
  }

  .hero.hero-compact .ops-topline strong {
    white-space: nowrap;
    padding: 6px 8px;
  }

  .hero.hero-compact .hero-radar-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    gap: 10px;
    min-height: 0;
    padding: 14px;
    overflow: hidden;
  }

  .hero.hero-compact .hero-radar-card::before {
    opacity: 0.32;
    inset: 6%;
  }

  .hero.hero-compact .radar-sweep,
  .hero.hero-compact .radar-ring,
  .hero.hero-compact .radar-route {
    display: none;
  }

  .hero.hero-compact .radar-node,
  .hero.hero-compact .radar-hub,
  .hero.hero-compact .radar-status {
    inset: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 0;
    position: relative;
    transform: none;
  }

  .hero.hero-compact .radar-node {
    z-index: 3;
    align-self: stretch;
    padding: 11px;
    font-size: 12px;
  }

  .hero.hero-compact .radar-node strong,
  .hero.hero-compact .radar-node span {
    overflow-wrap: anywhere;
  }

  .hero.hero-compact .node-wb {
    grid-column: 1;
    grid-row: 1;
  }

  .hero.hero-compact .node-ozon {
    grid-column: 2;
    grid-row: 1;
  }

  .hero.hero-compact .radar-hub {
    z-index: 3;
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    justify-self: stretch;
    padding: 18px 14px;
    border-radius: 10px;
  }

  .hero.hero-compact .radar-hub strong {
    font-size: 20px;
    line-height: 1.12;
  }

  .hero.hero-compact .node-store {
    grid-column: 1;
    grid-row: 3;
  }

  .hero.hero-compact .node-ym {
    grid-column: 2;
    grid-row: 3;
  }

  .hero.hero-compact .radar-status {
    z-index: 3;
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: stretch;
    padding: 14px;
  }

  .hero.hero-compact .radar-status strong {
    font-size: 18px;
  }

  .hero.hero-compact .ops-bottomline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .hero.hero-compact .ops-bottomline span {
    min-width: 0;
    padding: 9px 11px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .hero.hero-compact {
    padding-top: 24px;
  }

  .hero.hero-compact h1 {
    font-size: 30px;
  }

  .hero.hero-compact .proof-card {
    min-height: 0;
    padding: 10px;
  }

  .hero.hero-compact .hero-radar-card {
    gap: 8px;
    padding: 10px;
  }

  .hero.hero-compact .radar-node {
    padding: 9px;
    font-size: 11px;
  }

  .hero.hero-compact .radar-hub {
    padding: 15px 10px;
  }

  .hero.hero-compact .radar-hub strong {
    font-size: 18px;
  }
}
