/* Original desktop artboards stay intact. These source-backed flow layouts are
   deliberately outside t396 so its coordinate/zoom scripts cannot split rows. */
.local-responsive-branches,
.local-responsive-footer {
  display: none;
}

@media (max-width: 1199px) {
  #rec583827139 > .t396,
  #rec584048352 > .t396 {
    display: none !important;
  }

  #rec583827139 .local-responsive-branches,
  #rec584048352 .local-responsive-footer {
    display: block;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--t-text-font, Arial);
    font-weight: 400;
  }

  .local-responsive-branches *,
  .local-responsive-footer * {
    box-sizing: border-box;
    min-width: 0;
  }

  .local-responsive-branches p,
  .local-responsive-branches h2,
  .local-responsive-branches h3,
  .local-responsive-footer p,
  .local-responsive-footer h2 {
    margin: 0;
  }

  .local-responsive-branches {
    padding: 0 10px 18px;
    background: #fff;
    color: #0e0c28;
  }

  .contacts-branches__panel {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    grid-template-areas: "intro map" "cards map";
    gap: 28px 16px;
    padding: 20px 28px 44px;
    border-radius: 12px;
    background: #f3f6ff;
  }

  .contacts-branches__intro { grid-area: intro; }
  .contacts-branches__heading { max-width: 445px; font-size: 40px; font-weight: 500; line-height: 1.2; }
  .contacts-branches__subtitle { max-width: 323px; padding-top: 16px; font-size: 20px; line-height: 1.6; }
  .contacts-branches__map { grid-area: map; align-self: center; }
  .contacts-branches__map-image { display: block; width: 100%; height: auto; }
  .contacts-branches__cards { grid-area: cards; display: grid; gap: 10px; align-content: start; }
  .contacts-branches__card { width: 100%; padding: 8px 10px; border-radius: 8px; background: #fff; }
  .contacts-branches__name { color: #000; font-size: 18px; font-weight: 500; line-height: 1.55; }
  .contacts-branches__address { color: #767584; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }

  .local-responsive-footer { padding: 23px 10px 20px; color: #fff; background: #0d0b28; }
  .contacts-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 260px) minmax(0, 1fr);
    grid-template-areas:
      "brand contacts addresses"
      "brand pay addresses"
      "brand . licenses"
      "disclaimer disclaimer licenses"
      "specialists specialists specialists";
    gap: 20px 26px;
    align-items: start;
  }

  .contacts-footer__brand { grid-area: brand; }
  .contacts-footer__logo { display: block; width: 203px; max-width: 100%; height: auto; }
  .contacts-footer__tagline { max-width: 254px; padding-top: 15px; color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.29; }
  .contacts-footer__awards { display: grid; grid-template-columns: 136px; gap: 9px; margin-top: 16px; }
  .contacts-footer__award { display: block; width: 100%; height: auto; opacity: .7; }
  .contacts-footer__award:nth-child(2) { order: 3; }
  .contacts-footer__award:nth-child(3) { order: 2; }
  .contacts-footer__award:nth-child(4) { order: 4; }
  .contacts-footer__contacts { grid-area: contacts; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 16px; }
  .contacts-footer__heading { font-size: 18px; font-weight: 400; line-height: 1.56; }
  .contacts-footer__contact-row { display: flex; align-items: center; gap: 16px; width: 100%; }
  .contacts-footer__contact-text { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
  #allrecords .local-responsive-footer a { color: #fff; }
  .contacts-footer__phone-icon { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
  .contacts-footer__phone-icon svg { display: block; width: 100%; height: 100%; }
  .contacts-footer__email-icon { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
  .contacts-footer__email-part { position: absolute; display: block; }
  .contacts-footer__email-part svg { display: block; width: 100%; height: 100%; }
  .contacts-footer__email-part--0 { left: 0; top: 6px; width: 14px; height: 9px; }
  .contacts-footer__email-part--1 { left: 0; top: 0; width: 14px; height: 10px; }
  .contacts-footer__email-part--2 { left: 0; top: 10px; width: 4px; height: 4px; }
  .contacts-footer__email-part--3 { left: 10px; top: 10px; width: 4px; height: 4px; }
  #allrecords .local-responsive-footer .contacts-footer__privacy {
    display: block;
    max-width: 100%;
    width: 242px;
    padding: 6px 7px;
    border-radius: 4px;
    background: #141236;
    font-size: 14px;
    line-height: 1.71;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  #allrecords .local-responsive-footer .contacts-footer__privacy:hover { background: #222138; }
  .contacts-footer__pay { grid-area: pay; max-width: 276px; }
  .contacts-footer__addresses { grid-area: addresses; }
  .contacts-footer__address-list { display: grid; gap: 10px; margin-top: 20px; }
  .contacts-footer__address { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
  .contacts-footer__small { color: #6e6d7e; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .contacts-footer__disclaimer { grid-area: disclaimer; }
  .contacts-footer__licenses { grid-area: licenses; }
  .contacts-footer__specialists { grid-area: specialists; line-height: 1.55; }
}

@media (max-width: 959px) {
  .contacts-branches__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "map" "cards";
    gap: 24px;
    padding: 20px 28px 44px;
  }
  .contacts-branches__heading { max-width: 392px; font-size: 36px; }
  .contacts-branches__map { margin: 0 -16px; }
  .contacts-branches__cards { max-width: 465px; }
  .contacts-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand contacts"
      "brand pay"
      "addresses addresses"
      "disclaimer disclaimer"
      "licenses licenses"
      "specialists specialists";
    gap: 20px 24px;
  }
  .contacts-footer__awards { grid-template-columns: repeat(2, minmax(0, 136px)); gap: 9px 16px; }
  .contacts-footer__award:nth-child(n) { order: 0; }
  .contacts-footer__address-list { gap: 8px; margin-top: 16px; }
}

@media (max-width: 639px) {
  .contacts-branches__panel { padding: 24px 20px 40px; }
  .contacts-branches__heading { max-width: 340px; font-size: 30px; }
  .contacts-branches__subtitle { max-width: 291px; font-size: 18px; }
  .contacts-footer__grid { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 20px 12px; }
  .contacts-footer__logo { width: 168px; }
  .contacts-footer__awards { grid-template-columns: repeat(2, minmax(0, 104px)); gap: 14px 8px; }
  .contacts-footer__tagline { max-width: 200px; }
  .contacts-footer__contact-row { gap: 12px; }
}

@media (max-width: 479px) {
  .contacts-branches__panel { gap: 24px; padding: 14px 10px 40px; }
  .contacts-branches__heading { max-width: 287px; font-size: 26px; }
  .contacts-branches__subtitle { max-width: 225px; padding-top: 10px; font-size: 14px; }
  .contacts-branches__map { margin: 0 -8px; }
  .contacts-branches__card { padding: 8px; }
  .contacts-branches__name { font-size: 16px; }
  .contacts-branches__address { font-size: 14px; }
  .local-responsive-footer { padding-top: 12px; }
  .contacts-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "pay" "contacts" "addresses" "specialists" "disclaimer" "licenses";
    gap: 20px;
  }
  .contacts-footer__tagline { max-width: 311px; }
  .contacts-footer__awards { margin-top: 20px; grid-template-columns: repeat(2, 104px); gap: 14px 11px; }
  .contacts-footer__pay { max-width: 320px; }
  .contacts-footer__address { font-size: 13px; }
  .contacts-footer__address-list { gap: 8px; margin-top: 16px; }
}
