/* Ukrainian company page: restore the Joomla 3 layout without loading old libraries. */
body:is(.itemid-116, .itemid-124, .itemid-106) { font-size: 14px; line-height: 24px; }
body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder p { margin: 0 0 10px; }
body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder strong,
body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder b { font-weight: 700; }
body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder h3 {
    font-size: 24px;
    line-height: 1.1;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* The original Bootstrap 3 / SPPB containers: fluid, 750, 970, 1170. */
body:is(.itemid-116, .itemid-124, .itemid-106) .container,
body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder .sppb-row-container,
body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder .sppb-container {
    width: auto;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
@media (min-width: 768px) {
    body:is(.itemid-116, .itemid-124, .itemid-106) .container,
    body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder .sppb-row-container,
    body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder .sppb-container { width: 750px; }
}
@media (min-width: 992px) {
    body:is(.itemid-116, .itemid-124, .itemid-106) .container,
    body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder .sppb-row-container,
    body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder .sppb-container { width: 970px; }
}
@media (min-width: 1200px) {
    body:is(.itemid-116, .itemid-124, .itemid-106) .container,
    body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder .sppb-row-container,
    body:is(.itemid-116, .itemid-124, .itemid-106) #sp-page-builder .sppb-container { width: 1170px; }
}

/* Modern testimonial markup, old blockquote appearance. The author is empty here. */
body:is(.itemid-116, .itemid-124, .itemid-106) #sppb-addon-1488674001818 .fa-quote-left,
body:is(.itemid-116, .itemid-124, .itemid-106) #sppb-addon-1488674001818 .sppb-addon-testimonial-footer { display: none; }
body:is(.itemid-116, .itemid-124, .itemid-106) #sppb-addon-1488674001818 .sppb-addon-testimonial-review {
    padding: 10px 20px;
    margin: 0 0 20px;
    border-left: 5px solid #eee;
    font-size: 17.5px;
    line-height: 24px;
}

/* The old image-content addon still emits a Bootstrap 3 offset class. */
body:is(.itemid-116, .itemid-124, .itemid-106) #sppb-addon-1489170516221 .sppb-col-sm-offset-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-left: 0;
}
@media (min-width: 768px) {
    body:is(.itemid-116, .itemid-124, .itemid-106) #sppb-addon-1489170516221 .sppb-col-sm-offset-6 {
        width: 50%;
        max-width: 50%;
        flex-basis: 50%;
        margin-left: 50%;
    }
}

/* Original Widgetkit image ratio (1500 x 500), minimum slide height 300px. */
body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow { height: auto; }
body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-carousel-inner {
    height: auto;
    min-height: 300px;
    aspect-ratio: 3 / 1;
}
body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-item {
    position: absolute;
    inset: 0;
    height: 100%;
    padding: 0;
}
body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-item > img {
    left: 0;
    width: 100%;
}
body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-carousel-caption { padding: 0; }
body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-carousel-content {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 1500px;
    max-width: none;
}
body:is(.itemid-116, .itemid-124, .itemid-106) .company-legacy-logo { background: rgba(255,255,255,.8); }
body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-carousel-content .logo_slide {
    box-sizing: content-box;
    width: 331px;
    height: 158px;
    max-width: none;
    max-height: none;
    padding: 5px 0 10px;
    margin: 0 auto;
}
body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-carousel-content h4 {
    margin: 0 0 15px;
    color: #fff;
    background: rgba(228,86,33,.95);
    font-size: 20px;
    font-weight: 700;
    line-height: 55px;
    text-shadow: none;
}
@media (min-width: 992px) {
    body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-carousel-content h4 { font-size: 35px; }
}

/* Fit the complete logo and slogan inside phone/tablet viewports. */
@media (max-width: 991px) {
    body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-carousel-caption {
        width: 100%; min-width: 0; max-width: 100%;
    }
    body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-carousel-content {
        left: 0; transform: none; width: 100%; max-width: 100%;
    }
    body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .company-legacy-logo {
        padding: 8px 12px;
    }
    body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-carousel-content .logo_slide {
        box-sizing: border-box; width: 75%; max-width: 240px;
        height: auto; padding: 0; margin: 0 auto;
    }
    body:is(.itemid-116, .itemid-124, .itemid-106) .widgetkit-about-slideshow .sppb-carousel-content h4 {
        box-sizing: border-box; width: 100%; max-width: 100%;
        font-size: clamp(14px, 3.6vw, 20px); line-height: 1.4;
        padding: 10px 14px; margin: 0;
        white-space: normal; overflow-wrap: anywhere; text-align: center;
    }
}
