.top-menu>ul { display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;margin:0;padding:0;height:100%; }
.top-menu>ul>li { position:relative;list-style:none;margin:0;padding:10px 0; }
.top-menu>ul>li>a,.top-menu .nav-header,.top-menu .separator { color:#252525;font-size:15px;text-decoration:none;cursor:pointer;white-space:nowrap; }
.top-menu ul ul { display:none;position:absolute;z-index:500;top:100%;left:0;min-width:240px;list-style:none;margin:0;padding:12px;background:#fff;box-shadow:0 8px 25px #0002;border-radius:5px; }
.top-menu ul ul li { padding:7px 5px;list-style:none; }
.top-menu ul li:hover>ul,.top-menu ul li:focus-within>ul,.top-menu ul li.mb-menu-open>ul { display:block; }
.top-menu a:focus-visible,.top-menu [role=button]:focus-visible { outline:2px solid #14618d;outline-offset:4px; }
.mb-dialog { padding:0;border:0;border-radius:10px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);overflow:auto;box-shadow:0 18px 70px #0006; }
.mb-dialog::backdrop { background:rgba(0,0,0,.7); }
.mb-dialog-open { overflow:hidden; }
.mb-dialog-close { position:absolute;right:8px;top:8px;z-index:10;border:0;border-radius:50%;background:#fff;color:#111;width:36px;height:36px;font-size:28px;line-height:28px;cursor:pointer; }
.mb-dialog-image { background:#fff;max-width:94vw; }
.mb-dialog-image>img { display:block;max-width:92vw;max-height:88dvh;object-fit:contain; }
.mb-dialog #popup-form,.mb-dialog #calc_form,.mb-dialog #calc_form_msk { max-width:100%;width:min(500px,calc(100vw - 28px));height:auto!important;min-height:0;padding:42px 28px 24px; }
.mb-dialog form { max-width:100%; }
.mb-dialog>.modal { position:static;opacity:1;display:block;overflow:visible; }
.mb-dialog .mbforms-consent { color:#fff; }
.calc .wr { width:100%!important;max-width:100%; }
.calc input[type=range] { width:100%!important;max-width:100%; }
@media(max-width:575px) { .mb-dialog input:not([type=checkbox]):not([type=hidden]),.mb-dialog button[type=submit] { width:100%!important;max-width:100%; } }

.mb-news { display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 32px)/3);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:10px 0 20px; }
.mb-news-card { scroll-snap-align:start;background:#fff;padding:16px;border-radius:8px;min-width:0; }
.mb-news-card>img { width:100%;height:180px;object-fit:cover; }
.mb-news-card h4 { font-size:20px; }.mb-news-card a { color:#14618d; }
.mb-news-card .down_info { display:flex;justify-content:space-between; }
@media(max-width:991px){ .mb-news { grid-auto-columns:calc((100% - 16px)/2); } }
@media(max-width:575px){ .mb-news { grid-auto-columns:90%; } }

.mb-dialog>.modal { width:min(500px,calc(100vw - 28px))!important;padding:0!important;height:auto!important; }
.mb-dialog .modal-dialog { margin:0;max-width:none;width:100%; }
.mb-dialog .modal-content { border:0;height:auto!important;min-height:0; }
.mb-dialog .modal-header { border:0; }.mb-dialog .close-form { display:none; }
.mb-dialog .modal-body { padding:24px; }
.mb-dialog .mbforms input:not([type=checkbox]):not([type=hidden]) { width:100%!important;margin:0 0 12px!important; }
.mb-dialog .mbforms .row { margin:0; }.mb-dialog .mbforms .row>* { flex:0 0 100%;max-width:100%;padding:0; }
.mb-dialog .mbforms-status { color:#fff; }

.mb-dialog .modal-dialog { transform:none!important;transition:none!important; }

.mb-dialog .modal-header { padding:32px 24px 8px; }

.mb-dialog:not(.mb-dialog-image) { border:1px solid #fff;border-radius:0; }
.mb-dialog:not(.mb-dialog-image) .mb-dialog-close { background:transparent;color:#fff;border-radius:0;right:20px;top:20px;width:48px;height:48px;font-size:64px;font-weight:200;line-height:42px; }
.mb-dialog:not(.mb-dialog-image) .modal-content { border-radius:0; }
.mb-turnstile { width:100%;min-height:65px;margin:14px 0 20px; }
.mb-dialog .modal-header { padding-top:42px; }
.mb-dialog:not(.mb-dialog-image) .mb-dialog-close:focus { outline:none; }
.mb-dialog:not(.mb-dialog-image) .mb-dialog-close:focus-visible { outline:2px solid #fff;outline-offset:2px; }

/* Joomla 6 category/article markup replaces the old Joomla 3 template hooks. */
.com-content-category-blog .blog-items { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;align-items:start;margin:20px 0 30px; }
.com-content-category-blog .blog-item { min-width:0; }
.mb-news-list-card { background:#fff;padding:20px;box-shadow:0 3px 22px #164d7310; }
.mb-news-list-image { display:block; }
.mb-news-list-image img { display:block;width:100%;height:220px;object-fit:cover;border-radius:4px; }
.mb-news-list-card h2 { margin:14px 0 16px;font-size:18px;line-height:1.25;font-weight:700; }
.mb-news-list-card h2 a { color:#1d5d83; }
.mb-news-list-meta { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.mb-news-list-meta time { color:#777;font-size:13px; }
.mb-news-read { background:#205f89;color:#fff!important;border-radius:4px;padding:9px 18px;font-size:13px;line-height:1.2;white-space:nowrap; }
.mb-news-read span { margin-left:8px; }
.com-content-article,.com-content-category-blog { min-width:0; }
.com-content-article img,.com-content-category-blog img { max-width:100%!important; }
.com-content-article img { height:auto!important; }
.com-content-article__body { overflow-wrap:anywhere; }
.com-content-article__body iframe,.com-content-article__body video { max-width:100%; }
.com-content-article__body table { max-width:100%; }
.com-content-category-blog>h1 { font-size:32px;line-height:1.2;font-weight:700; }
@media(max-width:991.98px) { .com-content-category-blog .blog-items { grid-template-columns:repeat(2,minmax(0,1fr));gap:22px; } }
@media(max-width:575.98px) { .com-content-category-blog .blog-items { grid-template-columns:minmax(0,1fr);gap:20px; } .mb-news-list-image img { height:auto;max-height:280px;object-fit:contain; } }

/* Bootstrap 5 accessibility helpers required by Joomla 6 with the retained theme CSS. */
.visually-hidden:not(:focus):not(:active),.visually-hidden-focusable:not(:focus):not(:focus-within) { position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important; }
.com-content-article .pagenavigation .pagination { display:flex;flex-wrap:wrap;gap:12px;padding:0;list-style:none; }
.com-content-article .pagenavigation .btn { max-width:100%;white-space:normal; }

@media(max-width:575.98px) {
 .calc-prise { width:auto!important;min-width:0;flex:1; }
 .calc-prise p { width:auto!important; }
 .btn-calc { max-width:100%; }
 .com-content-article:has(>.page-header) { margin-top:160px; }
}

@media(max-width:575.98px) {
 .d-flex:has(>.calc-prise) { flex-wrap:wrap;max-width:100%;width:100%;justify-content:center;gap:8px; }
 .calc-prise { flex:0 0 100%!important;align-items:center; }
 .prise.m-0 { max-width:100%;font-size:34px!important;white-space:normal; }
 .calc-prise .btn-calc { width:min(250px,100%)!important; }
}

/* Keep office maps aligned with the Bootstrap content container. */
.container-fluid.c-map {
    width:calc(100% - 30px);
    max-width:1140px;
    margin:0 auto 48px;
    padding:0;
    border:1px solid #dbe5eb;
    border-radius:8px;
    overflow:hidden;
    background:#f3f6f8;
}
.c-map>.row { margin:0; }
.c-map #map,.c-map #map2 { width:100%!important;height:400px!important; }
.c-map iframe { display:block;width:100%;height:100%;border:0; }
.nn-block .nn-block-in,.msk-block .msk-block-in { padding-bottom:24px; }
.nn-block-city,.msk-block-city { padding:0;margin:0 0 24px; }
.nn-block-city .page_title,.msk-block-city .page_title { padding:0;margin:0; }
@media(max-width:767.98px) {
    .container-fluid.c-map { margin-bottom:32px; }
    .c-map #map,.c-map #map2 { height:320px!important; }
}

@media(max-width:359.98px) {
 .license_block .wrapp>.left { min-width:0;max-width:100%;overflow-wrap:anywhere; }
 .container:has(>.row>.bottom-contacts-left) { padding-right:15px; }
}

/* The service banner has no breadcrumb spacer below the mobile fixed header. */
@media(max-width:767.98px) {
 .wrapper > .banner-it-source.mb-mobile-service-banner {
  margin-top:var(--mb-mobile-header-offset,140px)!important;
 }
}
