/* ==========================================================
   Milwaukee Service — pro header/footer rebuild
   Новая устойчивая шапка, большой подвал, защита от съезда текста
   ========================================================== */
html { overflow-x: hidden; }
body { overflow-x: hidden; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
[id] { scroll-margin-top: 126px; }
.mw-page, .mw-container, .mw-grid, .mw-card, .mw-card-link, .mw-hero-main, .mw-hero-side, .mw-layout, .mw-section-head, .mw-contact, .mw-footer, .mw-footer * { min-width: 0; }
.mw-card p, .mw-card-link p, .mw-lead, .mw-section-head p, .mw-contact p, .mw-check-list li, .mw-step, .mw-footer p, .mw-footer a, .mw-parts-table td, .mw-parts-table th { overflow-wrap: anywhere; }
.mw-card-meta { display: block; max-width: 100%; line-height: 1.35; overflow-wrap: anywhere; }
.mw-button, .mw-phone, .mw-status, .mw-chip { max-width: 100%; }
.mw-button { text-align: center; line-height: 1.16; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: anywhere; }
p, li { text-wrap: pretty; }

.mw-header--pro {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 8, 12, .92);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
}
.mw-header--pro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(218,3,29,.34), transparent 34%),
    linear-gradient(90deg, rgba(218,3,29,.10), transparent 44%, rgba(255,255,255,.035));
}
.mw-header--pro > * { position: relative; z-index: 1; }
.mw-header-line {
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.mw-header-line__inner {
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}
.mw-header-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(218,3,29,.18);
  border: 1px solid rgba(218,3,29,.34);
  color: #fff;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mw-header-line__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mw-header-line__link {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}
.mw-topbar--pro {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(250px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.mw-header--pro .mw-logo--pro {
  display: inline-grid !important;
  grid-template-columns: minmax(150px, 190px) minmax(0, 150px) !important;
  align-items: center !important;
  gap: 14px !important;
  max-width: 355px !important;
  text-decoration: none !important;
}
.mw-logo-mark {
  display: flex;
  align-items: center;
  min-width: 0;
}
.mw-header--pro .mw-logo--pro .mw-logo-clean {
  display: block !important;
  width: 190px !important;
  max-width: 100% !important;
  height: auto !important;
}
.mw-header--pro .mw-logo--pro .mw-logo-caption {
  display: block !important;
  color: rgba(255,255,255,.82) !important;
  font-size: 11px !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
  white-space: normal !important;
}
.mw-logo-caption em {
  color: #fff;
  font-style: normal;
}
.mw-nav--pro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}
.mw-nav--pro a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}
.mw-nav--pro a:hover,
.mw-nav--pro a.is-active {
  color: #fff;
  background: rgba(218,3,29,.22);
  border-color: rgba(218,3,29,.38);
}
.mw-header-actions--pro {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.mw-phone--pro {
  min-height: 52px;
  padding: 8px 16px;
  border-radius: 17px;
  display: inline-grid !important;
  align-content: center;
  justify-items: start;
  gap: 2px;
  line-height: 1.08;
  white-space: nowrap;
}
.mw-phone--pro span {
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mw-phone--pro strong {
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
}
.mw-burger--pro {
  display: none;
  place-items: center;
  gap: 4px;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}
.mw-burger--pro span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}
.mw-mobile-panel--pro {
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mw-mobile-panel--pro.is-open { display: grid; }
.mw-mobile-panel--pro a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.mw-mobile-panel--pro a.is-active {
  color: #fff;
  background: rgba(218,3,29,.22);
  border-color: rgba(218,3,29,.38);
}

.mw-footer--pro {
  position: relative;
  overflow: hidden;
  padding: 0 0 26px;
  background:
    radial-gradient(circle at 12% 10%, rgba(218,3,29,.28), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(145deg, #090b11 0%, #151a27 55%, #07080d 100%);
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.74);
}
.mw-footer-cta {
  transform: translateY(-1px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 34px;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(135deg, var(--mw-red), var(--mw-red-dark));
  box-shadow: 0 30px 85px rgba(218,3,29,.28);
}
.mw-footer-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: rgba(255,255,255,.80);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mw-footer-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.02;
}
.mw-footer-cta p {
  margin: 14px 0 0;
  max-width: 790px;
  color: rgba(255,255,255,.86);
  font-size: 17px;
  line-height: 1.62;
}
.mw-footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 450px;
}
.mw-footer-help {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
}
.mw-footer-help h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 23px;
  line-height: 1.12;
}
.mw-footer-help p {
  margin: 0;
  color: rgba(255,255,255,.70);
  line-height: 1.55;
}
.mw-footer-help__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mw-footer-help__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(218,3,29,.18);
  border: 1px solid rgba(218,3,29,.32);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.mw-footer-grid--pro {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) repeat(3, minmax(150px, .74fr)) minmax(215px, .9fr);
  gap: 26px;
  padding: 42px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.mw-footer-brand p {
  margin: 18px 0 0;
  max-width: 390px;
  line-height: 1.65;
}
.mw-footer-logo {
  display: inline-flex;
  max-width: 210px;
}
.mw-footer-logo img {
  display: block;
  width: 210px;
  max-width: 100%;
}
.mw-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.mw-footer-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 900;
  white-space: normal;
}
.mw-footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
  font-style: normal;
}
.mw-footer-col h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.mw-footer-col a,
.mw-footer-col span {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: anywhere;
}
.mw-footer-col a:hover { color: #fff; }
.mw-footer-contact .mw-footer-phone {
  color: #fff;
  font-size: 18px;
  font-weight: 1000;
}
.mw-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  color: rgba(255,255,255,.54);
  font-size: 13px;
  line-height: 1.45;
}

/* Layout safety on content blocks */
.mw-status, .mw-chip { white-space: normal; overflow-wrap: anywhere; }
.mw-parts-table th, .mw-parts-table td { overflow-wrap: anywhere; }
.mw-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mw-actions { min-width: 0; }
.mw-actions .mw-button { min-width: 0; }

@media (max-width: 1240px) {
  .mw-topbar--pro { grid-template-columns: minmax(210px, 1fr) auto; min-height: 76px; }
  .mw-nav--pro { display: none; }
  .mw-burger--pro { display: inline-grid; }
  .mw-phone--pro { display: inline-grid !important; }
  .mw-footer-grid--pro { grid-template-columns: minmax(250px, 1.2fr) repeat(2, minmax(190px, 1fr)); }
  .mw-footer-contact { grid-column: span 2; }
  .mw-section-head { align-items: start; }
}
@media (max-width: 920px) {
  .mw-header-line__inner { grid-template-columns: auto minmax(0, 1fr); }
  .mw-header-line__link { display: none; }
  .mw-footer-cta, .mw-footer-help { grid-template-columns: 1fr; padding: 28px; }
  .mw-footer-cta__actions { justify-content: flex-start; max-width: none; }
  .mw-footer-grid--pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-footer-brand, .mw-footer-contact { grid-column: span 2; }
  .mw-section-head { display: grid; grid-template-columns: 1fr; }
  .mw-section-head p { margin-top: 10px; }
}
@media (max-width: 760px) {
  [id] { scroll-margin-top: 86px; }
  .mw-header-line { display: none; }
  .mw-topbar--pro { min-height: 70px; gap: 10px; }
  .mw-header--pro .mw-logo--pro { grid-template-columns: minmax(145px, 172px) !important; max-width: 190px !important; }
  .mw-header--pro .mw-logo--pro .mw-logo-caption { display: none !important; }
  .mw-phone--pro { display: none !important; }
  .mw-burger--pro { width: 46px; height: 46px; border-radius: 15px; }
  .mw-mobile-panel--pro { grid-template-columns: 1fr; }
  .mw-actions { width: 100%; }
  .mw-actions .mw-button { flex: 1 1 220px; }
  .mw-contact .mw-actions .mw-button, .mw-footer-cta__actions .mw-button { width: 100%; }
  .mw-footer-cta { padding: 24px 20px; border-radius: 0 0 24px 24px; }
  .mw-footer-help { padding: 22px 20px; }
  .mw-footer-grid--pro { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .mw-footer-brand, .mw-footer-contact { grid-column: auto; }
  .mw-footer-bottom { display: grid; }
}
@media (max-width: 420px) {
  .mw-container { width: min(100% - 20px, 1200px); }
  .mw-header--pro .mw-logo--pro { max-width: 170px !important; }
  .mw-header--pro .mw-logo--pro .mw-logo-clean { width: 165px !important; }
  h1 { font-size: clamp(32px, 11vw, 40px); }
  h2 { font-size: clamp(26px, 9vw, 34px); }
  .mw-hero-main, .mw-hero-side, .mw-card-body, .mw-card-head, .mw-card-link { padding-left: 18px; padding-right: 18px; }
}

/* Logo visibility fix: the uploaded logo image sits inside .mw-logo-mark. Older logo-clean CSS hid that wrapper, so we re-enable it here. */
.mw-header--pro .mw-logo--pro .mw-logo-mark,
.mw-logo--pro .mw-logo-mark {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
}
.mw-header--pro .mw-logo--pro .mw-logo-clean,
.mw-logo--pro .mw-logo-clean,
.mw-logo--pro img[src*="milwaukee-logo"] {
  display: block !important;
  width: 190px !important;
  max-width: 100% !important;
  height: auto !important;
}
@media (max-width: 760px) {
  .mw-header--pro .mw-logo--pro .mw-logo-clean,
  .mw-logo--pro .mw-logo-clean,
  .mw-logo--pro img[src*="milwaukee-logo"] { width: 170px !important; }
}
@media (max-width: 420px) {
  .mw-header--pro .mw-logo--pro .mw-logo-clean,
  .mw-logo--pro .mw-logo-clean,
  .mw-logo--pro img[src*="milwaukee-logo"] { width: 165px !important; }
}
