/* +7 Telecom Design Lab — final visual QA layer.
   Keeps the Signal Line direction while closing responsive and failure-state gaps. */

body::before,
body::after {
  content: none !important;
  display: none !important;
}

/* A service outage should read as a recoverable state, not replace the site shell. */
#loadErrorBanner {
  top: 16px !important;
  left: 50% !important;
  right: auto !important;
  width: min(620px, calc(100vw - 32px)) !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(240, 68, 82, .24) !important;
  border-radius: 16px !important;
  color: #7b2430 !important;
  background: rgba(255, 247, 248, .96) !important;
  box-shadow: 0 18px 48px rgba(7, 26, 49, .16) !important;
  backdrop-filter: blur(16px) !important;
  transform: translateX(-50%) !important;
  text-align: left !important;
}

#loadErrorBanner button {
  min-height: 36px !important;
  margin-left: 10px !important;
  border: 1px solid rgba(240, 68, 82, .22) !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: #f04452 !important;
}

.catalog-page .cat-tile span,
.catalog-page .cat-tile b {
  overflow-wrap: anywhere;
}

.avail-st.ask { white-space: nowrap; }
.drawer-foot .checkout,
.modal .submit { min-height: 48px; }
footer h4,
footer a,
footer .bottom { text-wrap: balance; }

@media (max-width: 680px) {
  .hero .wrap {
    min-height: 0 !important;
    padding: 36px 19px 34px !important;
  }

  .hero .cta {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
  }

  .hero-stats { margin-top: 26px; row-gap: 18px; }
  .hero-stat b { font-size: 21px; }

  #loadErrorBanner {
    top: auto !important;
    bottom: 82px !important;
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    font-size: 13px !important;
  }

  #loadErrorBanner button { margin-left: 0 !important; }
  .avail-st.ask { white-space: normal; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: clamp(30px, 9.5vw, 36px); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  #loadErrorBanner { backdrop-filter: none !important; }
}
