@import url('../landings/modular-solutions/assets/css/screens/00-base.css');
@import url('../landings/modular-solutions/assets/css/screens/01-topline.css');
@import url('../landings/modular-solutions/assets/css/screens/02-header.css');
@import url('../landings/modular-solutions/assets/css/screens/03-layout-sidebar.css');
@import url('../landings/modular-solutions/assets/css/screens/14-footer.css');
@import url('../landings/modular-solutions/assets/css/screens/98-site-shell.css');
@import url('../landings/modular-solutions/assets/css/screens/99-responsive.css');

body.modres-global-shell {
    --modres-blue: #0b7fc3;
    --modres-blue-hover: #066fac;
    --modres-blue-light: #dff0fb;
    --modres-blue-soft: #f0f7fc;
    --modres-blue-dark: #064d7e;
    --modres-blue-deep: #052f50;
    --modres-cyan: #17a8d8;
    --modres-pink: #FF0038;
    --modres-pink-soft: rgba(255, 0, 56, .51);
    --modres-pink-dark: #d60031;
    --modres-yellow: #f5d000;
    --modres-text: #1d2430;
    --modres-heading: #151a21;
    --modres-muted: #687482;
    --modres-muted-light: #8b97a5;
    --modres-line: #dce8f2;
    --modres-line-soft: #edf3f7;
    --modres-soft: #f5f9fc;
    --modres-card: #fff;
    --modres-footer: #052f50;
    --modres-border: rgba(11, 127, 195, .18);
    --modres-shadow: 0 18px 45px rgba(20, 45, 70, .12);
    --modres-radius: 24px;
    --modres-radius-xs: 4px;
    --modres-radius-sm: 8px;
    --modres-radius-md: 14px;
    --modres-radius-lg: 18px;
    --modres-container: 1400px;
    --modres-page-x: 48px;
    --modres-section-y: 92px;
    --modres-section-gap: 44px;
    --modres-section-gap-tight: 30px;
    --modres-head-gap: 18px;
    --modres-grid-gap: 24px;
    --modres-grid-gap-sm: 16px;
    --modres-card-pad: 20px;
    --modres-card-pad-lg: 28px;
    --modres-control-h: 44px;
    --modres-font: Arial, Helvetica, sans-serif;
    --modres-shadow-soft: 0 10px 28px rgba(5, 47, 80, .07);
    --modres-shadow-card: 0 16px 38px rgba(5, 47, 80, .09);
    --modres-letter-tight: -.018em;
    margin: 0;
    color: var(--modres-text);
    background: #fff;
    font-family: var(--modres-font);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@supports not (overflow-x: clip) {
    body.modres-global-shell {
        overflow-x: hidden;
    }
}

body.modres-global-shell *,
body.modres-global-shell *::before,
body.modres-global-shell *::after {
    box-sizing: border-box;
}

body.modres-global-shell .modres-topline,
body.modres-global-shell .modres-header,
body.modres-global-shell .modres-sidebar,
body.modres-global-shell .modres-footer {
    font-family: var(--modres-font);
}

body.modres-global-shell .modres-container {
    width: min(var(--modres-container), calc(100% - var(--modres-page-x)));
    max-width: none;
}

body.modres-global-shell .modres-sidebar--global {
    margin-bottom: 30px;
}

body.modres-global-shell .modres-footer__about p,
body.modres-global-shell .modres-footer__contacts p {
    margin: 0 0 10px;
}

body.modres-global-shell .modres-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

body.modres-global-shell .modres-footer__socials span {
    flex-basis: 100%;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

body.modres-global-shell .modres-footer__socials img {
    display: block;
    width: 30px;
    height: 30px;
}

@media (max-width: 900px) {
    body.modres-global-shell {
        --modres-page-x: 18px;
        --modres-section-y: 54px;
    }
}

/* Global shell on legacy pages: align to the old Bootstrap content grid
   and protect shell colors from legacy theme utility classes. */
body.modres-global-shell {
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    color: #212529;
}

body.modres-global-shell .modres-container {
    width: 100%;
    max-width: 1140px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 1199.98px) {
    body.modres-global-shell .modres-container {
        max-width: 960px;
    }
}

@media (max-width: 991.98px) {
    body.modres-global-shell .modres-container {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {
    body.modres-global-shell .modres-container {
        max-width: 540px;
    }
}

@media (max-width: 575.98px) {
    body.modres-global-shell .modres-container {
        max-width: none;
        padding-right: 14px;
        padding-left: 14px;
    }
}

body.modres-global-shell .modres-topline,
body.modres-global-shell .modres-header,
body.modres-global-shell .modres-sidebar,
body.modres-global-shell .modres-footer {
    font-family: Arial, Helvetica, sans-serif;
}

body.modres-global-shell .modres-topline__link,
body.modres-global-shell .modres-topline__link:visited,
body.modres-global-shell .modres-topline__callback,
body.modres-global-shell .modres-topline__callback:visited,
body.modres-global-shell .modres-topline__callback.btn-call,
body.modres-global-shell .modres-topline__callback.btn-call:visited {
    color: #fff !important;
}

body.modres-global-shell .modres-topline__callback:hover,
body.modres-global-shell .modres-topline__callback:focus,
body.modres-global-shell .modres-topline__callback.btn-call:hover,
body.modres-global-shell .modres-topline__callback.btn-call:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .82);
}

body.modres-global-shell .modres-footer {
    color: rgba(255, 255, 255, .86);
}

body.modres-global-shell .modres-footer h2,
body.modres-global-shell .modres-footer strong {
    color: #fff;
}

body.modres-global-shell .modres-footer p {
    color: rgba(255, 255, 255, .72);
}

body.modres-global-shell .modres-footer a:not(.modres-btn--footer),
body.modres-global-shell .modres-footer a:not(.modres-btn--footer):visited {
    color: rgba(255, 255, 255, .76) !important;
}

body.modres-global-shell .modres-footer a:not(.modres-btn--footer):hover,
body.modres-global-shell .modres-footer a:not(.modres-btn--footer):focus {
    color: #fff !important;
}

body.modres-global-shell .modres-btn--footer,
body.modres-global-shell .modres-btn--footer:visited,
body.modres-global-shell .modres-btn--footer.btn-call,
body.modres-global-shell .modres-btn--footer.btn-call:visited {
    color: #fff !important;
    background: rgba(11, 127, 195, .9) !important;
    border-color: rgba(255, 255, 255, .16) !important;
}

body.modres-global-shell .modres-btn--footer:hover,
body.modres-global-shell .modres-btn--footer:focus,
body.modres-global-shell .modres-btn--footer.btn-call:hover,
body.modres-global-shell .modres-btn--footer.btn-call:focus {
    color: #fff !important;
    background: #0b7fc3 !important;
}

/* Legacy pages: keep the new shell nav colors independent from old Bootstrap link rules. */
body.modres-global-shell .modres-header .modres-nav a {
    text-decoration: none;
}

body.modres-global-shell .modres-header .modres-nav__link,
body.modres-global-shell .modres-header .modres-nav__link:visited,
body.modres-global-shell .modres-header.is-catalog-open .modres-nav__link--catalog,
body.modres-global-shell .modres-header .modres-nav__item--dropdown.is-dropdown-open .modres-nav__link--dropdown {
    color: #2a2d31 !important;
}

body.modres-global-shell .modres-header .modres-nav__link:hover,
body.modres-global-shell .modres-header .modres-nav__link:focus-visible {
    color: #2a2d31 !important;
}

body.modres-global-shell .modres-header .modres-nav__dropdown-list a,
body.modres-global-shell .modres-header .modres-nav__dropdown-list a:visited {
    color: #637080 !important;
}

body.modres-global-shell .modres-header .modres-nav__dropdown-list a:hover,
body.modres-global-shell .modres-header .modres-nav__dropdown-list a:focus-visible {
    color: var(--modres-blue) !important;
}

/* Legacy pages: the catalog mega-menu lives inside the narrower old 1140px grid.
   Keep the company stats strip from becoming squeezed or touching adjacent rows. */
body.modres-global-shell .modres-header .modres-catalog-menu__body {
    padding-right: 34px;
    padding-left: 34px;
}

body.modres-global-shell .modres-header .modres-catalog-menu__info {
    padding: 14px 34px 24px;
    border-top: 1px solid rgba(217, 227, 235, .72);
}

body.modres-global-shell .modres-header .modres-catalog-menu__info-title {
    margin: 0 0 16px;
    line-height: 1.25;
}

body.modres-global-shell .modres-header .modres-catalog-menu__stats {
    align-items: stretch;
}

body.modres-global-shell .modres-header .modres-catalog-menu__stats li {
    min-height: 58px;
    gap: 8px;
    padding: 4px 10px;
}

body.modres-global-shell .modres-header .modres-catalog-menu__stats img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

body.modres-global-shell .modres-header .modres-catalog-menu__stat-content {
    gap: 4px;
}

body.modres-global-shell .modres-header .modres-catalog-menu__stat-value {
    font-size: 24px;
    line-height: 1;
}

body.modres-global-shell .modres-header .modres-catalog-menu__stat-value span {
    font-size: 13px;
}

body.modres-global-shell .modres-header .modres-catalog-menu__stat-text {
    font-size: 11px;
    line-height: 1.18;
}

@media (max-width: 1199.98px) and (min-width: 901px) {
    body.modres-global-shell .modres-header .modres-catalog-menu__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 14px;
    }

    body.modres-global-shell .modres-header .modres-catalog-menu__stats li {
        padding: 4px 18px;
    }

    body.modres-global-shell .modres-header .modres-catalog-menu__stats li:nth-child(3n):after,
    body.modres-global-shell .modres-header .modres-catalog-menu__stats li:last-child:after {
        display: none;
    }
}

/* Legacy single/category side columns can place old promo thumbnails after get_sidebar('left').
   The global shell sidebar is sticky on the landing, but on legacy pages it lets the following
   .thumbnail_wrapper scroll underneath it. Keep this sidebar in normal flow inside old content grids. */
body.modres-global-shell #content .col-md-3 > .modres-sidebar--global,
body.modres-global-shell #content .col-lg-3 > .modres-sidebar--global,
body.modres-global-shell #content [class*="col-"] > .modres-sidebar--global {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

body.modres-global-shell #content .modres-sidebar--global + .thumbnail_wrapper {
    clear: both;
    position: relative;
    z-index: 0;
    margin-top: 22px;
}

body.modres-global-shell #content .thumbnail_wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Legacy templates can append an old .thumbnail_wrapper right after get_sidebar('left').
   Keep the new global sidebar and this old promo/card block in a strict vertical stack
   so responsive landing sidebar rules cannot make them overlap inside Bootstrap columns. */
body.modres-global-shell #content .modres-legacy-sidebar-col {
    position: relative;
    z-index: 1;
    min-width: 0;
}

body.modres-global-shell #content .modres-legacy-sidebar-stack {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
}

body.modres-global-shell #content .modres-legacy-sidebar-stack > .modres-sidebar--global,
body.modres-global-shell #content .col-md-3 > .modres-sidebar--global,
body.modres-global-shell #content .col-lg-3 > .modres-sidebar--global,
body.modres-global-shell #content [class*="col-"] > .modres-sidebar--global {
    position: relative !important;
    top: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    flex: 0 0 auto;
    padding-right: 0 !important;
}

body.modres-global-shell #content .modres-legacy-sidebar-stack > .modres-sidebar--global .modres-sidebox {
    width: 100%;
    max-width: 100%;
}

body.modres-global-shell #content .modres-legacy-sidebar-stack > .thumbnail_wrapper,
body.modres-global-shell #content .modres-legacy-thumbnail {
    position: relative !important;
    z-index: 0;
    clear: both !important;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding-top: 2px;
    overflow: hidden;
}

body.modres-global-shell #content .modres-legacy-thumbnail .header2,
body.modres-global-shell #content .modres-legacy-thumbnail h2 {
    margin: 0 0 12px;
    line-height: 1.18;
}

body.modres-global-shell #content .modres-legacy-thumbnail img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

body.modres-global-shell #content .modres-legacy-thumbnail span {
    display: block;
    margin-top: 8px;
}

/* Legacy pages: keep a small breathing space after the old page header/breadcrumb
   and after the global header on templates that start content immediately.
   The new modular landing does not load this global shell stylesheet. */
body.modres-global-shell #heading-breadcrumbs {
    margin-bottom: 18px;
}

body.modres-global-shell .modres-header + #content,
body.modres-global-shell .modres-sticky-shell + #content {
    margin-top: 22px;
}

@media (max-width: 767.98px) {
    body.modres-global-shell #heading-breadcrumbs {
        margin-bottom: 14px;
    }

    body.modres-global-shell .modres-header + #content,
    body.modres-global-shell .modres-sticky-shell + #content {
        margin-top: 16px;
    }
}

/* Common mobile header search: lives in the shared site header, not in the landing screens. */
body.modres-global-shell .modres-header__mobile-search {
    display: none;
}

body.modres-global-shell .modres-topline__mobile-note {
    display: none;
}

@media (max-width: 900px) {
    body.modres-global-shell .modres-topline__inner {
        min-height: 0;
        align-items: stretch;
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 10px;
    }

    body.modres-global-shell .modres-topline__contacts {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        line-height: 1.15;
        overflow: visible;
    }

    body.modres-global-shell .modres-topline__contacts:before {
        display: none !important;
    }

    body.modres-global-shell .modres-topline__contact-card,
    body.modres-global-shell .modres-topline__callback--mobile {
        min-width: 0;
        min-height: 44px;
        padding: 7px 9px 8px;
        gap: 0;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
    }

    body.modres-global-shell .modres-topline__contact-label,
    body.modres-global-shell .modres-topline__city {
        display: none !important;
    }

    body.modres-global-shell .modres-topline__mobile-note {
        display: inline;
    }

    body.modres-global-shell .modres-topline__link,
    body.modres-global-shell .modres-topline__callback-text {
        max-width: 100%;
        font-size: 13.4px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.modres-global-shell .modres-topline__contact-main {
        min-width: 0;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    body.modres-global-shell .modres-topline__contact-card--email {
        flex-direction: row;
        justify-content: space-between;
        gap: 7px;
    }

    body.modres-global-shell .modres-topline__contact-card--email .modres-topline__contact-main {
        flex: 1 1 auto;
        align-items: flex-start;
    }

    body.modres-global-shell .modres-topline__contact-card--email .modres-topline__telegram {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
    }

    body.modres-global-shell .modres-topline__contact-card--email .modres-topline__telegram img {
        width: 20px;
        height: 20px;
    }

    body.modres-global-shell .modres-topline__callback--desktop,
    body.modres-global-shell .modres-topline__right {
        display: none !important;
    }

    body.modres-global-shell .modres-header__inner {
        position: relative;
        display: flex;
        align-items: center;
        gap: 9px;
    }

    body.modres-global-shell .modres-logo {
        min-width: 0;
        margin-right: auto;
    }

    body.modres-global-shell .modres-menu-toggle {
        flex: 0 0 auto;
        margin-left: 0;
    }

    body.modres-global-shell .modres-header__mobile-search,
    body.modres-global-shell .modres-header__mobile-search.is-open {
        position: relative;
        inset: auto;
        z-index: 35;
        display: block;
        width: 38px;
        flex: 0 0 38px;
        margin-left: auto;
        margin-right: 2px;
        color: #174f7a;
        transition: width .22s ease, flex-basis .22s ease;
    }

    body.modres-global-shell .modres-header__mobile-search .modres-search__field,
    body.modres-global-shell .modres-header__mobile-search.is-open .modres-search__field {
        width: 38px;
        height: 38px;
        justify-content: flex-end;
        padding: 0;
        overflow: hidden;
        background: #fff;
        border: 1px solid rgba(11, 127, 195, .22);
        border-radius: 13px;
        box-shadow: 0 6px 18px rgba(5, 47, 80, .08);
    }

    body.modres-global-shell .modres-header__mobile-search .modres-search__input {
        width: 0;
        min-width: 0;
        height: 100%;
        flex: 1 1 auto;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        font-size: 14px;
    }

    body.modres-global-shell .modres-header__mobile-search .modres-search__submit,
    body.modres-global-shell .modres-header__mobile-search.is-open .modres-search__submit {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        color: #164f79;
        background: transparent;
        border-radius: 12px;
    }

    body.modres-global-shell .modres-header__mobile-search .modres-search__submit:hover,
    body.modres-global-shell .modres-header__mobile-search .modres-search__submit:focus {
        color: #0b7fc3;
        background: rgba(11, 127, 195, .08);
        transform: none;
    }

    body.modres-global-shell .modres-header__mobile-search .modres-search__submit:before,
    body.modres-global-shell .modres-header__mobile-search.is-open .modres-search__submit:before {
        width: 10px;
        height: 10px;
        top: 10px;
        left: 10px;
        border: 2px solid currentColor;
        background: transparent;
        border-radius: 50%;
        transform: none;
    }

    body.modres-global-shell .modres-header__mobile-search .modres-search__submit:after,
    body.modres-global-shell .modres-header__mobile-search.is-open .modres-search__submit:after {
        width: 8px;
        height: 2px;
        top: 22px;
        left: 22px;
        border: 0;
        background: currentColor;
        border-radius: 999px;
        transform: rotate(45deg);
        transform-origin: left center;
    }

    body.modres-global-shell .modres-header__mobile-search.is-open {
        position: absolute;
        left: 14px;
        right: 104px;
        top: 50%;
        width: auto;
        flex: 1 1 auto;
        margin: 0;
        transform: translateY(-50%);
    }

    body.modres-global-shell .modres-header__mobile-search.is-open .modres-search__field {
        width: 100%;
        padding: 2px;
        background: #fff;
        border-color: rgba(11, 127, 195, .28);
        box-shadow: 0 12px 30px rgba(5, 47, 80, .16);
    }

    body.modres-global-shell .modres-header__mobile-search.is-open .modres-search__input {
        width: 100%;
        padding: 0 10px 1px 12px;
        opacity: 1;
        pointer-events: auto;
    }

    /* в раскрытом виде иконка лупы превращается в крестик (закрыть) */
    body.modres-global-shell .modres-header__mobile-search.is-open .modres-search__submit:before {
        width: 16px;
        height: 2px;
        top: 17px;
        left: 10px;
        border: 0;
        background: currentColor;
        border-radius: 2px;
        transform: rotate(45deg);
        transform-origin: center;
    }

    body.modres-global-shell .modres-header__mobile-search.is-open .modres-search__submit:after {
        width: 16px;
        height: 2px;
        top: 17px;
        left: 10px;
        border: 0;
        background: currentColor;
        border-radius: 2px;
        transform: rotate(-45deg);
        transform-origin: center;
    }

    body.modres-global-shell .modres-header__mobile-search.is-open .modres-search__panel {
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: 100%;
        max-height: min(420px, 70vh);
        overflow: auto;
        border-radius: 14px;
    }
}

@media (max-width: 380px) {
    body.modres-global-shell .modres-topline__link,
    body.modres-global-shell .modres-topline__callback-text {
        font-size: 12.4px;
    }

    body.modres-global-shell .modres-topline__contact-card,
    body.modres-global-shell .modres-topline__callback--mobile {
        padding-right: 7px;
        padding-left: 7px;
    }
}
