/* ================================================================== */
/* 1. ШАПКА                                                          */
/* ================================================================== */
.container-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1px !important;
    row-gap: 1px !important;
    background: linear-gradient(135deg, #0b3b2a, #145a40, #0b3b2a) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}
.container-header .grid-child {
    flex: 0 1 auto !important;
}
.container-header .grid-child[class*="brand"] {
    order: 1 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.container-header .container-nav {
    order: 2 !important;
}
.container-below-top {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.navbar-brand {
    padding-top: 5px !important;
    padding-bottom: 1px !important;
    margin: 0 !important;
    line-height: 1 !important;
}
.navbar-brand img {
    width: 300px !important;
    height: auto !important;
    transition: transform 0.25s ease !important;
    display: inline-block !important;
}
.navbar-brand img:hover {
    transform: translateY(-3px) !important;
}
.brand-logo span {
    display: inline-block !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-decoration: underline !important;
    letter-spacing: -0.5px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}
.brand-logo span:hover {
    text-decoration: underline !important;
}
.container-header .site-description {
    font-size: 35px !important;
    color: #ffffff !important;
    font-weight: normal !important;
    margin-top: 15px !important;
    margin-left: 20px !important;
    margin-bottom: -5px !important;
}
.container-nav a,
.container-header a {
    text-decoration: none !important;
    transition: text-decoration 0.3s ease !important;
}
.container-nav a:hover,
.container-header a:hover {
    text-decoration: underline !important;
}
.container-banner {
    margin-top: 20px !important;
    text-align: left !important;
    padding-left: 20px !important;
}
.logo-text .brand-logo span {
    margin-bottom: 5px !important;
    display: inline-block !important;
}
.logo-wrapper {
    gap: 15px !important;
}
.navbar-brand {
    margin-left: -10px !important;
}

/* ================================================================== */
/* 2. МОДУЛИ В ОБЛАСТИ BELOW-TOP                                      */
/* ================================================================== */
.grid-child.container-below-top {
    display: flex !important;
    align-items: flex-end !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}
.grid-child.container-below-top > div:first-child,
.grid-child.container-below-top > div:nth-child(2) {
    margin-right: 20px !important;
}
.grid-child.container-below-top > div:last-child {
    margin-left: auto !important;
    text-align: right !important;
    align-self: flex-end !important;
}

/* ================================================================== */
/* 3. МАТЕРИАЛЫ НА ГЛАВНОЙ (PLC, HMI, SCADA)                         */
/* ================================================================== */
.blog-featured {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-bottom: -10px !important;
}
.blog-featured .items-leading,
.blog-featured .blog-items {
    display: contents !important;
}
.blog-featured .blog-item {
    flex: 1 1 calc(33.333% - 20px) !important;
    min-width: 250px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.blog-featured .blog-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
.blog-item,
.com-content-article {
    border: 1px solid #d0d5d8 !important;
    border-radius: 12px !important;
    background-color: #f8f9fa !important;
    padding: 15px !important;
}
.blog-item {
    display: flex !important;
    align-items: stretch !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}
.blog-item figure.left.item-image {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    background-color: #145a40 !important;
    padding: 12px !important;
    border-radius: 12px !important;
    line-height: 0 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 160px !important;
    height: 60px !important;
}
.blog-item figure.left.item-image img {
    display: block !important;
    width: 135px !important;
    height: auto !important;
}
.blog-item .item-content {
    flex: 1 !important;
    background-color: transparent !important;
    padding: 0 !important;
}
.blog-item .item-content ul {
    font-size: 16px !important;
    list-style-type: disc !important;
    margin: 0 !important;
    padding-left: 20px !important;
}
.blog-item .item-content li {
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
}
.blog-item .item-content li:last-child {
    margin-bottom: 0 !important;
}

/* ================================================================== */
/* 4. ПРАВАЯ КОЛОНКА                                                 */
/* ================================================================== */
.sidebar-right .card,
.container-sidebar-right .card,
.custom-nav-bg {
    background-color: #f8f9fa !important;
    border-radius: 12px !important;
    border: 1px solid #d0d5d8 !important;
}
.work-stages {
    margin-top: 7px;
    padding: 7px;
    background-color: #f8f9fa;
    border-radius: 12px;
}
.container-sidebar-right {
    font-size: 14px;
}
.container-sidebar-right .mod-menu a {
    font-size: 14px !important;
}
.work-stages,
.work-stages li,
.work-stages p,
.work-stages ul,
.work-stages .stage {
    font-size: 16px;
}

/* ================================================================== */
/* 5. СТРАНИЦА "О НАС"                                               */
/* ================================================================== */
.com-content-article {
    margin-bottom: 20px !important;
}
.com-content-article .com-content-article__body {
    background-color: transparent !important;
    padding: 0 !important;
}

/* ================================================================== */
/* 6. ХЛЕБНЫЕ КРОШКИ                                                 */
/* ================================================================== */
.mod-breadcrumbs__wrapper {
    background-color: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;
    margin-bottom: 20px !important;
    border: 1px solid #d0d5d8 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.mod-breadcrumbs {
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.mod-breadcrumbs__here {
    color: #145a40 !important;
    font-weight: 500 !important;
}
.mod-breadcrumbs__item a {
    color: #145a40 !important;
    text-decoration: none !important;
}
.mod-breadcrumbs__item a:hover {
    text-decoration: underline !important;
}
.mod-breadcrumbs__item.active {
    color: #333 !important;
}

/* ================================================================== */
/* 7. КАРУСЕЛЬ "ВЫПОЛНЕННЫЕ РАБОТЫ"                                   */
/* ================================================================== */
.main-bottom.card {
    border-radius: 20px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}
.main-bottom .card-header {
    border-radius: 20px 20px 0 0 !important;
}
#br-carousel-116 {
    border-radius: 0 0 20px 20px !important;
    overflow: hidden !important;
}
#br-carousel-116 .br-carousel-item img {
    border-radius: 16px !important;
}

/* ================================================================== */
/* 8. ЭТАПЫ РАБОТЫ (СЕТКА)                                           */
/* ================================================================== */
.work-stages {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    align-items: stretch !important;
}
.work-stages .stage {
    background-color: #f8f9fa;
    border: 1px solid #d0d5d8 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    height: 100% !important;
}
.work-stages .stage:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
.work-stages .stage h4 {
    font-size: 18px !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    color: #145a40 !important;
}
.work-stages .stage ul {
    margin: 0 !important;
    padding-left: 20px !important;
}
.work-stages .stage li {
    font-size: 16px !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
}
.work-stages .stage li:last-child {
    margin-bottom: 0 !important;
}

/* ================================================================== */
/* 9. ПОДВАЛ                                                         */
/* ================================================================== */
.container-footer {
    background: linear-gradient(135deg, #0b3b2a, #145a40, #0b3b2a) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}
.container-footer a {
    color: #ffffff !important;
    text-decoration: none !important;
}
.container-footer a:hover {
    text-decoration: underline !important;
    opacity: 0.9 !important;
}
.container-footer .mod-custom {
    padding: 20px !important;
    text-align: center !important;
}
.container-footer .grid-child {
    text-align: center !important;
    display: block !important;
}
#mod-custom114 {
    text-align: center !important;
}
#mod-custom114 > div {
    text-align: center !important;
}

/* ================================================================== */
/* 10. ЭФФЕКТ НА БЕЙДЖ "ОПЫТ РАБОТЫ" (ШАПКА)                         */
/* ================================================================== */
#mod-custom113 div:last-child span {
    position: relative !important;
    top: -8px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    display: inline-block !important;
}
#mod-custom113 div:last-child span:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

/* ================================================================== */
/* 11. ВНЕШНЯЯ РАМКА И ТЕНЬ САЙТА                                    */
/* ================================================================== */
body {
    background-color: #eef2f5 !important;
    border: 2px solid #d0d5d8 !important;
    border-radius: 24px !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25), 0 15px 25px rgba(0, 0, 0, 0.15) !important;
    margin: 20px !important;
    padding: 20px !important;
}

/* ================================================================== */
/* 12. СТИЛИ ДЛЯ ФОРМЫ JO FORM                                       */
/* ================================================================== */
.jo-form-container .btn-primary {
    background: linear-gradient(135deg, #145a40, #0b3b2a) !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}
.jo-form-container .btn-primary:hover {
    background: linear-gradient(135deg, #1a6a4a, #0f4a35) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}
.jo-form-container .form-control {
    border: 1px solid #d0d5d8 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
}
.jo-form-container .form-control:focus {
    outline: none !important;
    border-color: #145a40 !important;
    box-shadow: 0 0 0 2px rgba(20, 90, 64, 0.2) !important;
}
.jo-form-container .form-group label {
    font-weight: 600 !important;
    color: #145a40 !important;
    margin-bottom: 5px !important;
    display: block !important;
}
.jo-form-container {
    padding: 0 !important;
}
#jo_fun_captcha_container {
    background-color: #f8f9fa;
    border: 1px solid #d0d5d8;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}
#jo_fun_captcha_container p {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}
.board .cell {
    background-color: #fff;
    border: 1px solid #d0d5d8;
}
.container-sidebar-right {
    margin-top: 2px !important;
}

/* ================================================================== */
/* 13. РАЗМЕР ПОЧТЫ В ШАПКЕ И ПОДВАЛЕ (ДЛЯ ВСЕХ УСТРОЙСТВ)            */
/* ================================================================== */
#mod-custom113 .cloaked_email {
    font-size: 25px !important;
    text-decoration: none !important;
    filter: none !important;
}
#mod-custom113 .cloaked_email:hover {
    text-shadow: none !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: underline !important;
}
#mod-custom114 a[href^="mailto"],
#mod-custom114 .cloaked_email {
    font-size: 25px !important;
}

/* ================================================================== */
/* 14. АДАПТИВ ДЛЯ МОБИЛЬНЫХ (ширина до 768px)                       */
/* ================================================================== */
@media (max-width: 768px) {
    .navbar-brand img {
        width: 80% !important;
        max-width: 200px !important;
        height: auto !important;
    }
    .container-header .site-description {
        font-size: 18px !important;
        margin-left: 0 !important;
        margin-top: 5px !important;
        text-align: left !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    #mod-custom113 div:last-child span {
        font-size: 10px !important;
        padding: 4px 8px !important;
        white-space: nowrap !important;
        display: inline-block !important;
        max-width: 90% !important;
    }
    #mod-custom113 img[src*="Phone.svg"] {
        height: 20px !important;
        width: auto !important;
    }
    .grid-child.container-below-top {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .grid-child.container-below-top > div:first-child,
    .grid-child.container-below-top > div:nth-child(2) {
        margin-right: 0 !important;
    }
    .grid-child.container-below-top > div:last-child {
        margin-left: 0 !important;
        text-align: center !important;
    }
    .grid-child.container-below-top > div {
        text-align: center !important;
        width: 100% !important;
    }
        body {
        border: 2px solid #d0d5d8 !important;
        border-radius: 24px !important;
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25), 0 15px 25px rgba(0, 0, 0, 0.15) !important;
        margin: 2px !important;          /* отступ от края экрана */
        padding: 0px !important;         /* внутренний отступ, чтобы контент не прилипал к рамке */
        background-color: #eef2f5 !important;
    }
    .site-grid {
        padding-left: 5px !important;
        padding-right: 5px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    .blog-featured {
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 10px !important;
    }
    .blog-featured .blog-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 10px !important;
        flex-direction: column !important;
        border-radius: 12px !important;
    }
    .blog-item figure.left.item-image {
        width: 100% !important;
        min-width: auto !important;
        height: auto !important;
        margin-bottom: 10px !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }
    .blog-item figure.left.item-image img {
        width: 120px !important;
    }
    .blog-item .item-content {
        width: 100% !important;
        padding: 0 !important;
    }
    .blog-item .item-content ul {
        padding-left: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .work-stages {
        gap: 10px !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        grid-template-columns: 1fr !important;
    }
    .work-stages .stage {
        margin: 0 !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }
    .main-bottom.card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 12px !important;
    }
    #br-carousel-116 {
        border-radius: 0 !important;
    }
    .sidebar-right .card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 12px !important;
    }
    .mod-breadcrumbs__wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 12px !important;
    }
    #system-message-container {
        display: none !important;
    }
    #mod-custom113 {
        text-align: center !important;
        font-size: 28px !important;
    }
    #mod-custom113 > div {
        text-align: center !important;
    }
    #mod-custom113 a[href^="mailto"] {
        font-size: inherit !important;
    }
    #mod-custom113 img,
    #mod-custom113 div:last-child span {
        display: inline-block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #mod-custom113 div:last-child span {
        font-size: 14px !important;
    }
    .container-header {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-bottom: 15px !important;
    }
    .mod-breadcrumbs__wrapper {
        margin-bottom: 15px !important;
    }
    main {
        margin-top: 20px !important;
    }
    .blog-featured {
        margin-bottom: 20px !important;
    }
    .container-footer {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-top: 20px !important;
    }
    .grid-child.container-below-top {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .card,
    .blog-item,
    .work-stages .stage,
    .main-bottom.card,
    .mod-breadcrumbs__wrapper {
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    .sidebar-right .card {
        border-radius: 12px !important;
    }
    .sidebar-right .card .card-header {
        border-radius: 12px 12px 0 0 !important;
    }
    .sidebar-right .card .card-body {
        border-radius: 0 0 12px 12px !important;
    }
         /* Уменьшаем отступы между элементами в блоке контактов (шапка) */
    #mod-custom113 > div > div {
        margin-top: 8px !important;
        margin-bottom: 0 !important;
    }
    /* Для первого элемента (иконка телефона) убираем лишний отступ сверху */
    #mod-custom113 > div > div:first-child {
        margin-top: 0 !important;
    }
    /* Для почты и бейджа оставляем небольшой отступ, но меньше 15px */
    #mod-custom113 > div > div:nth-child(2),
    #mod-custom113 > div > div:nth-child(3) {
        margin-top: 8px !important;
    }
            /* Сдвигаем только картинку логотипа левее */
    .navbar-brand img {
        transform: translateX(-15px) !important;
    }

}