/**
 * Layout-правки hero-контактов (после theme.css).
 * ПК: телефон + мессенджеры в ряд, иконки по высоте кнопки.
 */
@media (min-width: 901px) {
  body.service-page .b24-lp-logic-box,
  body.service-page .b24-left-contacts-box {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
  }

  body.service-page .b24-lp-logic-box > .b24-phones-row,
  body.service-page .b24-left-contacts-box > .b24-phones-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 0;
  }

  body.service-page .b24-lp-logic-box > .b24-messengers-left,
  body.service-page .b24-left-contacts-box > .b24-messengers-left {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    margin: 0;
  }

  body.service-page .b24-lp-logic-box .b24-messengers-label,
  body.service-page .b24-left-contacts-box .b24-messengers-label {
    display: none;
  }

  body.service-page .b24-lp-logic-box .b24-social-grid,
  body.service-page .b24-left-contacts-box .b24-social-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    height: 100%;
    margin: 0;
  }

  body.service-page .b24-lp-logic-box .b24-social-item,
  body.service-page .b24-left-contacts-box .b24-social-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    width: auto !important;
    height: auto !important;
    align-self: stretch;
    aspect-ratio: 1 / 1;
    min-width: 0;
    padding: 0 !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    line-height: 0 !important;
  }

  body.service-page .b24-lp-logic-box .b24-social-item img,
  body.service-page .b24-left-contacts-box .b24-social-item img {
    width: 52% !important;
    height: 52% !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.service-page .b24-lp-logic-box .b24-social-item svg,
  body.service-page .b24-left-contacts-box .b24-social-item svg {
    width: 52% !important;
    height: 52% !important;
    max-width: 28px !important;
    max-height: 28px !important;
    display: block !important;
    margin: 0 auto !important;
    flex-shrink: 0;
  }

  /* Minsk: телефон + мессенджеры в одну строку */
  body.service-page .msk-smart-logic-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
  }

  body.service-page .msk-smart-logic-wrap > .msk100-phones-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 0;
  }

  body.service-page .msk-smart-logic-wrap > .msk100-messengers-left {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    margin: 0 !important;
  }

  body.service-page .msk-smart-logic-wrap .msk100-messengers-label {
    display: none;
  }

  body.service-page .msk-smart-logic-wrap .msk100-social-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    height: 100%;
    margin: 0 !important;
  }

  body.service-page .msk-smart-logic-wrap .msk100-social-item,
  body.service-page .msk-smart-logic-wrap .mg24-social-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    width: auto !important;
    height: auto !important;
    align-self: stretch;
    aspect-ratio: 1 / 1;
    min-width: 0;
    padding: 0 !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    line-height: 0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  }

  body.service-page .msk-smart-logic-wrap .msk100-social-item img,
  body.service-page .msk-smart-logic-wrap .mg24-social-item img {
    width: 52% !important;
    height: 52% !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.service-page .msk-smart-logic-wrap .msk100-social-item svg,
  body.service-page .msk-smart-logic-wrap .mg24-social-item svg {
    width: 52% !important;
    height: 52% !important;
    max-width: 28px !important;
    max-height: 28px !important;
    display: block !important;
    margin: 0 auto !important;
    flex-shrink: 0;
  }

  /* Mogilev: телефон + мессенджеры в одну строку */
  body.service-page .mg24-smart-logic-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
  }

  body.service-page .mg24-smart-logic-wrap > .mg24-phones-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 0;
  }

  body.service-page .mg24-smart-logic-wrap > .mg24-messengers-left {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    margin: 0 !important;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-messengers-label {
    display: none;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-social-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    height: 100%;
    margin: 0 !important;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-social-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    width: auto !important;
    height: auto !important;
    align-self: stretch;
    aspect-ratio: 1 / 1;
    min-width: 0;
    padding: 0;
    border-radius: 14px !important;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-social-item img {
    width: 52% !important;
    height: 52% !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-social-item svg {
    width: 52%;
    height: 52%;
    max-width: 28px;
    max-height: 28px;
    display: block;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-social-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
    filter: brightness(1.05);
  }

  body.service-page .mg24-smart-logic-wrap .mg24-social-item--viber {
    background: #7360f2;
    color: #fff;
  }
  body.service-page .mg24-smart-logic-wrap .mg24-social-item--telegram {
    background: #2aabee;
    color: #fff;
  }
  body.service-page .mg24-smart-logic-wrap .mg24-social-item--whatsapp {
    background: #25d366;
    color: #fff;
  }
  body.service-page .mg24-smart-logic-wrap .mg24-social-item--instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
    color: #fff;
  }
  body.service-page .mg24-smart-logic-wrap .mg24-social-item--vk {
    background: #0077ff;
    color: #fff;
  }
  body.service-page .mg24-smart-logic-wrap .mg24-social-item--tiktok {
    background: #111;
    color: #fff;
  }
}

/* Современные SVG-кнопки мессенджеров (consult и прочие блоки) */
body.service-page .mg24-social-item.mg24-social-item--viber,
body.service-page .mg24-social-item.mg24-social-item--telegram,
body.service-page .mg24-social-item.mg24-social-item--whatsapp,
body.service-page .mg24-social-item.mg24-social-item--instagram,
body.service-page .mg24-social-item.mg24-social-item--vk,
body.service-page .mg24-social-item.mg24-social-item--tiktok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, filter 0.2s ease;
}
body.service-page .mg24-social-item[class*="mg24-social-item--"] svg {
  width: 24px;
  height: 24px;
  display: block;
}
body.service-page .mg24-social-item[class*="mg24-social-item--"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
body.service-page .mg24-social-item--viber { background: #7360f2; color: #fff; }
body.service-page .mg24-social-item--telegram { background: #2aabee; color: #fff; }
body.service-page .mg24-social-item--whatsapp { background: #25d366; color: #fff; }
body.service-page .mg24-social-item--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
  color: #fff;
}
body.service-page .mg24-social-item--vk { background: #0077ff; color: #fff; }
body.service-page .mg24-social-item--tiktok { background: #111; color: #fff; }

/* Мобильный: компактные одинаковые иконки по центру */
@media (max-width: 900px) {
  body.service-page .mg24-smart-logic-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.service-page .mg24-smart-logic-wrap > .mg24-phones-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-ph-btn,
  body.service-page .mg24-smart-logic-wrap .mg24-btn-green {
    width: auto !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  body.service-page .mg24-smart-logic-wrap > .mg24-messengers-left {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-messengers-label {
    text-align: center;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-social-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  body.service-page .mg24-smart-logic-wrap .mg24-social-item img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-social-item svg {
    width: 24px;
    height: 24px;
    display: block;
  }

  body.service-page .mg24-smart-logic-wrap .mg24-social-item--viber {
    background: #7360f2;
    color: #fff;
  }
  body.service-page .mg24-smart-logic-wrap .mg24-social-item--telegram {
    background: #2aabee;
    color: #fff;
  }
  body.service-page .mg24-smart-logic-wrap .mg24-social-item--whatsapp {
    background: #25d366;
    color: #fff;
  }
  body.service-page .mg24-smart-logic-wrap .mg24-social-item--instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
    color: #fff;
  }
  body.service-page .mg24-smart-logic-wrap .mg24-social-item--vk {
    background: #0077ff;
    color: #fff;
  }
  body.service-page .mg24-smart-logic-wrap .mg24-social-item--tiktok {
    background: #111;
    color: #fff;
  }
}

.hero-breadcrumb-trail {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
}

body.service-page .b24-lp-overlay::after,
body.service-page [class$="-svc-hero__shade"]::after,
body.service-page .msk-hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/b24-hero-marks.svg?v=20261020c") left 8% center / min(680px, 62vw) auto no-repeat;
  opacity: 0.9;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 34%, transparent 68%);
  mask-image: linear-gradient(90deg, #000 0%, #000 34%, transparent 68%);
}

@media (max-width: 980px) {
  body.service-page .b24-lp-overlay::after,
  body.service-page [class$="-svc-hero__shade"]::after,
  body.service-page .msk-hero-overlay::after {
    background-position: left 6% center;
    background-size: 108vw auto;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%);
  }
}
