м/* Close icon compatible with old and new Bitrix popup markup. */
.popup-window .popup-window-close-icon::before,
.popup-window .popup-window-close-icon::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    margin: 0;
    background: #555;
    opacity: 1;
    border-radius: 1px;
    transform: translate(-50%, -50%) rotate(45deg);
    pointer-events: none;
}
.popup-window .popup-window-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.popup-window .popup-window-close-icon > .ui-icon-set {
    display: none;
}
.popup-window .popup-window-close-icon:focus-visible {
    outline: 2px solid #287e83;
    outline-offset: -4px;
}


/* MAX beside the address in the desktop header. */
.c-header-template-1 .widget-view-desktop-1 .widget-panel-social-wrap { margin-left: auto; }
.c-header-template-1 .widget-view-desktop-1 .widget-panel-social-wrap + .intec-grid-item { display: none; }
.c-header-template-1 .widget-panel-social-item:has(.header-max-icon) {
    display: inline-flex; align-items: center; gap: 7px;
    width: auto; height: auto; background: none;
    text-decoration: none; color: #888; font-size: 12px; line-height: 24px;
}
.c-header-template-1 .header-max-icon { display: inline-flex; color: #0065ff; flex-shrink: 0; }
.c-header-template-1 .header-max-icon svg { display: block; }
.c-header-template-1 .widget-panel-social-item:hover .header-max-label { color: #0065ff; }

/* MAX links in footer, contacts and mobile menu. */
.iris-max-link { display:inline-flex; align-items:center; gap:7px; color:#888; font-size:12px; line-height:24px; text-decoration:none; white-space:nowrap; vertical-align:middle; }
.iris-max-link:hover { color:#0065ff; text-decoration:none; }
.iris-max-icon { display:inline-flex; color:#0065ff; flex-shrink:0; }
.iris-max-icon svg { display:block; width:18px; height:18px; }
.iris-max-footer { margin-top:8px; }
.iris-max-contacts { display:inline-block; margin-left:12px; }
.iris-max-mobile { margin-top:10px; }
.iris-max-mobile .iris-max-link { font-size:14px; }
.ns-bitrix.c-menu.c-menu-mobile-1 .menu-panel-logotype img { width:130px!important; height:auto!important; max-width:100%; max-height:60px; object-fit:contain; }

/* MAX as a separate contact row. */
.c-footer-template-1 .iris-max-footer-row { width:100%; flex-basis:100%; text-align:right; margin-top:10px; }
.c-footer-template-1 .iris-max-footer-row .iris-max-icon { color:#888; }
.c-footer-template-1 .iris-max-footer-row .iris-max-link { color:#888; }
.c-menu-mobile-1 .iris-max-menu-content .iris-max-link { display:flex; width:100%; gap:20px; font-size:16px; font-weight:700; color:#222; }
.c-menu-mobile-1 .iris-max-menu-content .iris-max-icon { width:20px; justify-content:center; }
@media(max-width:550px) { .c-footer-template-1 .iris-max-footer-row { text-align:center; } }

.c-footer-template-1 .widget-phone { flex-wrap:wrap; }
.c-footer-template-1 .widget-phone > .iris-max-footer-row { padding:0; margin-left:0; margin-right:0; }

/* Align footer contact rows: email / phone, address / MAX. */
.c-footer-template-1 .iris-max-footer-row .iris-max-icon { color:#555; }
.c-footer-template-1 .iris-max-footer-row .iris-max-link { color:#1d1d1d; }
.c-footer-template-1 .iris-max-footer-row { width:50%; flex-basis:50%; margin-top:0; align-self:flex-start; }
.c-footer-template-1 .widget-phone { align-self:flex-start; align-items:flex-start; }
.c-footer-template-1 .widget-email { align-self:flex-start; }
@media(max-width:550px) { .c-footer-template-1 .iris-max-footer-row { width:100%; flex-basis:100%; } }

/* MAX matches contact text and icon sizes. */
.c-news-list-contacts .iris-max-contacts .iris-max-link,
.contacts-contact-text .iris-max-contacts .iris-max-link {
    font-size:16px;
    line-height:1.4;
    color:#333;
}
.iris-max-contacts .iris-max-icon svg { width:28px; height:28px; }
.iris-max-contacts .iris-max-link { gap:10px; }

/* Quiet secondary MAX contact beneath the telephone. */
.contacts-contact-text .iris-max-contacts { display:block; margin:8px 0 0; }
.contacts-contact-text .iris-max-contacts .iris-max-link { font-size:14px; line-height:22px; color:#333; gap:7px; }
.contacts-contact-text .iris-max-contacts .iris-max-icon { color:#999; }
.contacts-contact-text .iris-max-contacts .iris-max-icon svg { width:19px; height:19px; }
.contacts-contact-text .iris-max-contacts .iris-max-link:hover,
.contacts-contact-text .iris-max-contacts .iris-max-link:hover .iris-max-icon { color:#0065ff; }

/* Mobile slider: let long headings and descriptions take their real height. */
@media(max-width:768px) {
  .c-slider.c-slider-template-1 .widget-item-content-body {
    height:auto!important;
    min-height:340px;
    padding-top:32px;
    padding-bottom:56px;
  }
  .c-slider.c-slider-template-1 .widget-item-text {
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-width:0;
  }
  .c-slider.c-slider-template-1 .widget-item-header[data-view] {
    max-height:none!important;
    height:auto!important;
    font-size:24px;
    line-height:1.25;
    overflow:visible;
  }
  .c-slider.c-slider-template-1 .widget-item-description[data-view] {
    max-height:none!important;
    height:auto!important;
    margin-top:14px;
    overflow:visible;
  }
  .c-slider.c-slider-template-1 .widget-item-buttons[data-view] { margin-top:20px; }
}
