/********** Template CSS **********/
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary: #FFE468;
    --secondary: #487615;
    --secondary-hover: #3b6111;
    --secondary-accent: #8CC641;
    --light: #F2F2F2;
    --dark: #272630;
    --bs-body-font-family: 'Google Sans', sans-serif;
    --bs-body-line-height: 1.15;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    font-family: 'Google Sans', sans-serif;
    line-height: 1.15;
    margin-top: 0px;
}

body {
    font-family: 'Google Sans', sans-serif;
    line-height: 1.15;
    margin-top: 0px;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn.btn-secondary {
    color: #FFFFFF !important;
    background-color: var(--secondary, #487615) !important;
    border-color: var(--secondary, #487615) !important;
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus {
    color: #FFFFFF !important;
    background-color: var(--secondary-hover, #3b6111) !important;
    border-color: var(--secondary-hover, #3b6111) !important;
}

.bg-secondary {
    background-color: var(--secondary, #487615) !important;
}

.text-secondary {
    color: var(--secondary, #487615) !important;
}

.border-secondary {
    border-color: var(--secondary, #487615) !important;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    text-align: center;
    line-height: 1 !important;
}

.btn-square i,
.btn-sm-square i,
.btn-lg-square i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin: 0 auto 1.25rem auto !important;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-card-icon i {
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    margin: 0;
    padding: 0;
}


.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.navbar-dark .navbar-nav {
    flex-wrap: wrap !important;
    justify-content: flex-end;
    align-items: center;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    margin-left: 18px;
    padding: 22px 0;
    font-size: 16px;
    color: var(--light);
    outline: none;
    transition: .5s;
    white-space: nowrap;
}

@media (min-width: 1300px) {
    .navbar-dark .navbar-nav .nav-link {
        margin-left: 24px;
        padding: 30px 0;
        font-size: 17px;
    }
}

.sticky,
.sticky-top {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1020 !important;
}

.sticky.navbar-dark .navbar-nav .nav-link,
.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 16px 0;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-logo {
    max-height: 45px;
    width: auto;
}

.navbar-title {
    font-size: 1.85rem;
    letter-spacing: -1px;
}

.navbar-title .navbar-logo-dot {
    color: var(--secondary, #8CC641);
}

@media (min-width: 992px) {
    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .border-end-lg {
        border-right: 5px solid var(--primary) !important;
    }
}

/* Mobile Navbar Customization: 5px side paddings, single row logo & burger */
@media (max-width: 991.98px) {
    nav.navbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1020 !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        margin-right: auto !important;
        padding: 0 !important;
        max-width: calc(100% - 55px) !important;
        min-width: 0 !important;
    }

    .navbar-logo {
        max-height: 36px !important;
        width: auto !important;
        margin-right: 8px !important;
        flex-shrink: 0;
    }

    .navbar-title {
        font-size: 1.35rem !important;
        letter-spacing: -0.5px;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .navbar-toggler {
        margin-left: auto !important;
        padding: 6px 9px !important;
        font-size: 1.15rem !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }

    .navbar-collapse {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    .navbar-dark .navbar-nav {
        border-right: none !important;
        padding-right: 0 !important;
    }

    .navbar-dark .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (max-width: 380px) {
    .navbar-title {
        font-size: 1.15rem !important;
    }
    .navbar-logo {
        max-height: 30px !important;
        margin-right: 6px !important;
    }
    .navbar-toggler {
        padding: 4px 7px !important;
    }
}

/* Navbar Dropdown Menu Styles */
.navbar-dark .dropdown-menu {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 8px 0;
    min-width: 280px;
    z-index: 1000;
}

.navbar-dark .dropdown-item {
    color: #eaeaea;
    font-size: 15px;
    padding: 9px 20px;
    transition: all 0.25s ease;
    white-space: normal;
    line-height: 1.4;
}

.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item.active {
    background: #252525;
    color: var(--primary);
    padding-left: 24px;
}

.navbar-dark .dropdown-item.border-bottom {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 991.98px) {
    .navbar-dark .dropdown-menu {
        background: #141414;
        border: none;
        border-left: 2px solid var(--primary);
        margin-left: 15px !important;
        margin-bottom: 10px;
        box-shadow: none;
        min-width: unset;
    }
}

.bg-hero {
    position: relative;
    background-color: var(--primary);
    background: url(../img/hero.webp?v=4) top right no-repeat;
    background-size: cover;
    overflow: hidden;
}

.bg-hero .hero-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
    pointer-events: none;
    z-index: 0 !important;
}

.bg-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(255, 228, 104, 0.95) 0%,
        rgba(255, 228, 104, 0.92) 50%,
        rgba(255, 228, 104, 0.80) 56%,
        rgba(255, 228, 104, 0.45) 64%,
        rgba(255, 228, 104, 0) 74%
    );
    pointer-events: none;
    z-index: 1;
}

.bg-hero > * {
    position: relative;
    z-index: 2;
}

/* High Contrast Override for Hero Headers on Yellow Background */
.bg-hero h1,
.bg-hero h2,
.bg-hero .h1,
.bg-hero .h2,
.bg-hero .h5,
.bg-hero span,
.bg-hero a {
    color: #111111 !important;
}

@media (min-width: 992px) {
    .home-hero {
        margin-bottom: 90px;
    }
}

@media (max-width: 991.98px) {
    .bg-hero {
        background-size: cover;
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-top: 3.5rem !important;
        padding-bottom: 2.5rem !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    .bg-hero .hero-bg-img {
        object-position: center right;
    }

    /* Full-Screen Immersive Home Hero on Mobile */
    .home-hero {
        min-height: calc(100vh - 58px);
        min-height: calc(100svh - 58px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
        margin-bottom: 5px !important;
        background-position: center right !important;
    }

    .home-hero .container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        flex: 1 1 auto !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        max-width: 100% !important;
    }

    .home-hero .row {
        margin: auto 0 !important;
        width: 100% !important;
    }

    .home-hero .row > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    .home-hero h1,
    .home-hero h1.display-1 {
        font-size: 1.95rem !important;
        font-weight: 800 !important;
        line-height: 1.22 !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 1.15rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .home-hero p,
    .home-hero p.fs-4 {
        font-size: 1.1rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.75rem !important;
        color: #1a1a1a !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .home-hero::before {
        background: linear-gradient(
            to bottom,
            rgba(255, 228, 104, 0.91) 0%,
            rgba(255, 228, 104, 0.86) 45%,
            rgba(255, 228, 104, 0.50) 75%,
            rgba(255, 228, 104, 0.65) 100%
        ) !important;
    }
}

/* Hero CTA Buttons - Responsive Layout */
.hero-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}

@media (min-width: 576px) {
    .hero-btn-group {
        flex-direction: row !important;
        width: auto !important;
        gap: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .home-hero h1,
    .home-hero h1.display-1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    .bg-hero .hero-btn-group,
    .bg-hero .pt-2,
    .bg-hero .pt-3 {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 14px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .bg-hero .btn,
    .hero-btn-group .btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 15px 24px !important;
        margin: 0 !important;
        font-size: 1.15rem !important;
        border-radius: 50rem !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    }
}

/* Article Body High-Legibility Typography */
.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4,
.blog-body h5 {
    color: #111111;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}
.blog-body p {
    color: #2b2b2b;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.blog-body a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
}
.blog-body a:hover {
    color: #111111;
}
.blog-body blockquote {
    border-left: 4px solid var(--secondary);
    background: #f8f9fa;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #333333;
}
.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-start,
.about-end {
    background: url(../img/about-bg.jpg) center center no-repeat;
    background-size: contain;
}

@media (min-width: 992px) {
    .about-start {
        position: relative;
        margin-right: -90px;
        z-index: 1;
    }

    .about-end {
        position: relative;
        margin-left: -90px;
        z-index: 1;
    }
}

/* Styling CMS Editor Content inside yellow About card */
.about-cms-card,
.about-start,
.about-end {
    font-size: 1.05rem;
    line-height: 1.6;
}
.about-cms-card h1,
.about-start h1,
.about-end h1 {
    font-size: 2rem;
    color: #212529 !important;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.about-cms-card h2,
.about-start h2,
.about-end h2 {
    font-size: 1.65rem;
    color: #212529 !important;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    margin-bottom: 0.65rem;
}
.about-cms-card h3,
.about-start h3,
.about-end h3 {
    font-size: 1.35rem;
    color: #212529 !important;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.about-cms-card h4,
.about-start h4,
.about-end h4 {
    font-size: 1.15rem;
    color: #212529 !important;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.about-cms-card p,
.about-cms-card div,
.about-cms-card span,
.about-start p,
.about-end p {
    color: #212529 !important;
    line-height: 1.6;
}
.about-cms-card p,
.about-start p,
.about-end p {
    margin-bottom: 0.75rem;
}
.about-cms-card p:last-child,
.about-start p:last-child,
.about-end p:last-child {
    margin-bottom: 0;
}
.about-cms-card ul,
.about-start ul,
.about-end ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}
.about-cms-card ul li,
.about-start ul li,
.about-end ul li {
    position: relative;
    padding-left: 1.85rem;
    margin-bottom: 0.5rem;
    color: #212529;
}
.about-cms-card ul li::before,
.about-start ul li::before,
.about-end ul li::before {
    content: "\f058"; /* Font Awesome check-circle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary);
    font-size: 1.1rem;
    line-height: 1;
}

.about-img-wrapper {
    overflow: hidden;
}

.about-img-container {
    min-height: 680px;
    height: 100%;
    border-radius: 0.5rem;
}

@media (max-width: 991.98px) {
    /* Mobile Content Container Side Paddings: exactly 5px */
    .container,
    .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
        max-width: 100% !important;
    }
    
    .container-fluid > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .container-fluid.py-5 > .container.py-5 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .home-services-section,
    .home-services-section.container-fluid,
    .home-blog-section,
    .home-blog-section.container-fluid {
        padding-top: 2rem !important;
    }

    /* Content Cards & Images: 5px gap and uniform corners */
    .about-start,
    .about-end {
        position: relative;
        margin: 0 0 5px 0 !important;
        border-radius: 0.5rem !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }

    .about-img-wrapper,
    .about-img-container {
        position: relative;
        display: block !important;
        width: 100% !important;
        min-height: 260px;
        height: 377px;
        max-height: 380px;
        margin: 0 0 5px 0 !important;
        border-radius: 0.5rem !important;
        overflow: hidden !important;
    }

    .about-start-img img,
    .about-end-img img {
        border-radius: 0.5rem !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem !important;
        max-width: 100% !important;
    }
    .row > * {
        max-width: 100% !important;
    }

    /* Features Stats Section: 5px side paddings and uniform 5px gap on mobile */
    .about-features-section {
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .about-features-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    .about-features-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        --bs-gutter-x: 0 !important;
        --bs-gutter-y: 0 !important;
    }

    .about-features-section .row > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 1.5rem !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .about-features-section .row > *:last-child {
        margin-bottom: 0 !important;
    }

    .about-features-section .bg-white {
        border-radius: 0.5rem !important;
    }

    /* Homepage Latest Blog Section: 5px side paddings and uniform 5px gap on mobile */
    .home-blog-section {
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .home-blog-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    .home-blog-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        --bs-gutter-x: 0 !important;
        --bs-gutter-y: 0 !important;
    }

    .home-blog-section .row > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 1.5rem !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .home-blog-section .row > *:last-child {
        margin-bottom: 0 !important;
    }

    .home-blog-section .blog-item {
        border-radius: 0.5rem !important;
    }
}

.about-img-wrapper a,
.about-img-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.about-img-wrapper img,
.about-img-wrapper picture img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center center;
    transition: object-position 0.25s ease;
}

/* Django CMS Image Plugin Alignment Mappings */
.about-img-wrapper img.float-start,
.about-img-wrapper picture img.float-start,
.about-img-wrapper img.object-left,
.object-left {
    object-position: left center !important;
}

.about-img-wrapper img.float-end,
.about-img-wrapper picture img.float-end,
.about-img-wrapper img.object-right,
.object-right {
    object-position: right center !important;
}

.about-img-wrapper img.mx-auto,
.about-img-wrapper picture img.mx-auto,
.about-img-wrapper img.object-center,
.object-center {
    object-position: center center !important;
}

/* Granular Object Position Classes */
.about-img-wrapper img.object-top,
.about-img-wrapper picture img.object-top,
.object-top {
    object-position: center top !important;
}

.about-img-wrapper img.object-bottom,
.about-img-wrapper picture img.object-bottom,
.object-bottom {
    object-position: center bottom !important;
}

.about-img-wrapper img.object-left-top,
.about-img-wrapper picture img.object-left-top,
.object-left-top {
    object-position: left top !important;
}

.about-img-wrapper img.object-right-top,
.about-img-wrapper picture img.object-right-top,
.object-right-top {
    object-position: right top !important;
}

.about-img-wrapper img.object-left-bottom,
.about-img-wrapper picture img.object-left-bottom,
.object-left-bottom {
    object-position: left bottom !important;
}

.about-img-wrapper img.object-right-bottom,
.about-img-wrapper picture img.object-right-bottom,
.object-right-bottom {
    object-position: right bottom !important;
}

/* Position Black Cat image on homepage so cat ornament ears are not cut off */
img[src*="black_cat_on_the_wall"],
picture img[src*="black_cat_on_the_wall"],
.about-img-wrapper img[src*="black_cat_on_the_wall"],
.about-img-wrapper picture img[src*="black_cat_on_the_wall"] {
    object-position: center 20% !important;
}

/* Position Krasotajs-3 image on About page */
img[src*="krasotajs3"],
img[src*="krasotajs-3"],
picture img[src*="krasotajs3"],
picture img[src*="krasotajs-3"],
.about-img-wrapper img[src*="krasotajs3"],
.about-img-wrapper img[src*="krasotajs-3"],
.about-img-wrapper picture img[src*="krasotajs3"],
.about-img-wrapper picture img[src*="krasotajs-3"] {
    object-position: center center !important;
}

.about-start-img img {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.about-end-img img {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

/*@media (max-width: 991.98px) {
    .about-start-img img,
    .about-end-img img {
        border-radius: 0.5rem !important;
    }

    /* Position Krasotajs-3 image on About page for mobile 
    img[src*="krasotajs3"],
    img[src*="krasotajs-3"],
    picture img[src*="krasotajs3"],
    picture img[src*="krasotajs-3"],
    .about-img-wrapper img[src*="krasotajs3"],
    .about-img-wrapper img[src*="krasotajs-3"],
    .about-img-wrapper picture img[src*="krasotajs3"],
    .about-img-wrapper picture img[src*="krasotajs-3"] {
        object-position: center center !important;
    }
}
*/

.service-item,
.contact-item {
    background: url(../img/service.jpg) top center no-repeat;
    background-size: cover;
    transition: .5s;
}

.service-item:hover,
.contact-item:hover {
    background: url(../img/service.jpg) bottom center no-repeat;
    background-size: cover;
}

.service-item .service-icon,
.contact-item .contact-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    color: var(--secondary);
    background: #FFFFFF;
    border-radius: 50% !important;
    transform: none !important;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-item .service-icon div,
.contact-item .contact-icon div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50% !important;
    transform: none !important;
    transition: .5s;
}

.service-item .service-icon i,
.contact-item .contact-icon i {
    transform: none !important;
    transition: .5s;
}

.service-item:hover .service-icon div,
.contact-item:hover .contact-icon div {
    background: var(--secondary);
}

.service-item:hover .service-icon i,
.contact-item:hover .contact-icon i {
    color: var(--primary);
}

.service-item a.btn,
.service-item .service-link,
.service-item .service-link a,
.service-item .service-link .cms-plugin {
    position: relative;
    bottom: -30px;
    opacity: 0;
    transition: all 0.5s ease !important;
}

.service-item:hover a.btn,
.service-item:hover .service-link,
.service-item:hover .service-link a,
.service-item:hover .service-link .cms-plugin {
    bottom: 0;
    opacity: 1;
}

.bg-quote {
    background: url(../img/quote.jpg?v=2) top right no-repeat;
    background-size: contain;
    margin: 90px 0;
}

@media (max-width: 991.98px) {
    .bg-quote {
        background: transparent !important;
        margin-top: 5px !important;
        margin-bottom: 5px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .bg-quote .container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .bg-quote .row,
    .bg-quote .col-lg-6 {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .bg-quote .bg-white {
        margin: 0 !important;
        padding: 2rem 1rem !important;
        border-radius: 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
    }

    .bg-quote h1 {
        font-size: 1.5rem !important;
        margin-bottom: 1.25rem !important;
    }

    .bg-quote .row.g-3 {
        margin: 0 !important;
        width: 100% !important;
    }

    .bg-quote .row.g-3 > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 12px !important;
        width: 100% !important;
    }

    .bg-quote .form-control {
        width: 100% !important;
        border-radius: 0.375rem !important;
    }
}

.team-item {
    position: relative;
    margin-bottom: 45px;
}

.team-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url(../img/team.jpg) bottom center no-repeat;
    background-size: cover;
    height: 90px;
    padding: 0 30px;
    right: 45px;
    left: 45px;
    bottom: -45px;
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-text {
    height: 100%;
    bottom: 0;
}

.team-social {
    position: absolute;
    transition: .1s;
    transition-delay: .0s;
    opacity: 0;
}

.team-item:hover .team-social {
    transition-delay: .3s;
    opacity: 1;
}

.bg-testimonial {
    background: url(../img/testimonial.jpg) top left no-repeat;
    background-size: contain;
}

@media (max-width: 991.98px) {
    .bg-testimonial {
        background-size: cover;
    }
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--secondary);
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .owl-item img {
    width: 60px;
    height: 60px;
}

.bg-call-to-action {
    background: url(../img/call-to-action.webp?v=4) top right no-repeat;
    background-size: contain;
}

.bg-footer {
    background: url(../img/footer.webp) center center no-repeat;
    background-size: contain;
}

@media (max-width: 991.98px) {
    .bg-call-to-action,
    .bg-call-to-action.container-fluid,
    .bg-call-to-action.container-fluid.py-5 {
        background: url(../img/call-to-action.webp?v=4) right bottom no-repeat, var(--primary) !important;
        background-size: contain !important;
        margin-top: 3.5rem !important;
        margin-bottom: 2rem !important;
        padding: 2rem 1.25rem 2.25rem 1.25rem !important;
        border-radius: 0.5rem !important;
        width: calc(100% - 10px) !important;
        margin-left: 5px !important;
        margin-right: 5px !important;
        overflow: hidden;
    }

    .bg-call-to-action .container,
    .bg-call-to-action .row,
    .bg-call-to-action .col-lg-6,
    .bg-call-to-action .col-lg-8 {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .bg-call-to-action h2,
    .bg-call-to-action h1 {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.3 !important;
    }

    .bg-call-to-action p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.25rem !important;
        max-width: 85% !important;
    }

    .bg-call-to-action .btn {
        margin-top: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .bg-footer,
    .bg-footer.container-fluid,
    .bg-footer.container-fluid.py-5 {
        background-size: cover;
        padding-top: 2.5rem !important;
        padding-bottom: 2rem !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-top: 2rem !important;
    }

    .bg-footer > .container,
    .bg-footer > .container.py-5 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .bg-footer .row.g-5 {
        --bs-gutter-y: 2rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .bg-footer .row.g-5 > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .bg-footer .btn-secondary {
        margin-bottom: 1.5rem !important;
        width: 100% !important;
        display: block !important;
        text-align: center !important;
    }

    .bg-footer + .container-fluid {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ==========================================================================
   Language Chooser Component
   ========================================================================== */
.language-chooser .btn {
    font-size: 12px;
    min-width: 36px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

/* On Topbar (Yellow background) */
.topbar .language-chooser .lang-active,
.bg-primary .language-chooser .lang-active {
    background-color: var(--dark) !important;
    border: 1px solid var(--dark) !important;
    color: #ffffff !important;
}

.topbar .language-chooser .lang-inactive,
.bg-primary .language-chooser .lang-inactive {
    background-color: transparent !important;
    border: 1px solid var(--dark) !important;
    color: var(--dark) !important;
}

.topbar .language-chooser .lang-inactive:hover,
.bg-primary .language-chooser .lang-inactive:hover {
    background-color: var(--dark) !important;
    color: #ffffff !important;
}

/* Inside Dark Navbar / Mobile Menu */
.navbar .language-chooser .lang-active {
    background-color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: var(--dark) !important;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.navbar .language-chooser .lang-inactive {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.navbar .language-chooser .lang-inactive:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--dark) !important;
}

/* ==========================================================================
   Calculator Responsive Mobile Adjustments (5px paddings, 100% cards and buttons)
   ========================================================================== */
@media (max-width: 767.98px) {
    #calculator-app,
    #calculator-app.container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    #calculator-app > .container,
    #calculator-app .row,
    #calculator-app .col-lg-11 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #calculator-app .bg-white.p-4 {
        padding: 1.25rem 0.75rem !important;
        border-radius: 0.5rem !important;
    }

    #calc-wizard-form .row:not(#calc-step-nav-row) > [class*="col-"],
    #calc-wizard-form .btn-check + .btn,
    #calc-wizard-form .card,
    #calc-wizard-form .form-check {
        width: 100% !important;
    }

    #calculator-app .d-none {
        display: none !important;
    }

    #calc-step-nav-row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    #calc-step-nav-row > #calc-prev-col.col-6,
    #calc-step-nav-row > #calc-next-col.col-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    #calc-step-nav-row > #calc-prev-col.col-12,
    #calc-step-nav-row > #calc-next-col.col-12 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .calc-steps-indicator {
        margin-bottom: 2rem !important;
        gap: 4px !important;
    }

    .step-icon-bubble {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 0.95rem;
    }

    .step-title {
        font-size: 0.7rem !important;
        line-height: 1.2;
    }

    /* Wizard navigation buttons */
    #calc-prev-btn:not(.d-none),
    #calc-next-btn:not(.d-none) {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    #calc-submit-btn:not(.d-none),
    #calc-recalc-quick-btn:not(.d-none),
    #calc-goto-results-btn:not(.d-none),
    #btn-download-pdf:not(.d-none),
    #btn-edit-params:not(.d-none),
    #res-header-recalc-btn:not(.d-none),
    #calc-stale-alert .btn:not(.d-none),
    #btn-add-window:not(.d-none),
    .js-lead-form button[type="submit"]:not(.d-none) {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #calc-results .d-flex.flex-wrap.justify-content-between {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    #calc-results .d-flex.gap-2 {
        flex-direction: column !important;
        width: 100% !important;
    }

    #res-summary-cards > [class*="col-"] {
        width: 100% !important;
    }
}

/* ==========================================================================
   Yellow-Green Card Selection Theme (Mockup & design_kit)
   ========================================================================== */

/* 1. Building Type Cards (Yellow outline / Yellow fill) */
#calc-wizard-form .btype-card {
    background-color: #ffffff !important;
    border: 1.5px solid #ffe169 !important;
    border-radius: 12px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
#calc-wizard-form .btype-card i {
    color: #f7b731 !important;
    transition: color 0.2s ease;
}
#calc-wizard-form .btype-card .fw-bold {
    color: #d99b1c !important;
}
#calc-wizard-form .btype-card .text-muted {
    color: #495057 !important;
}

/* Active & Hover Inversion (Yellow background, black text & black icon) */
#calc-wizard-form input[name="building_type"]:checked + .btype-card,
#calc-wizard-form .btype-card:hover {
    background-color: #ffe169 !important;
    border-color: #ffe169 !important;
    box-shadow: 0 4px 14px rgba(255, 225, 105, 0.45) !important;
}
#calc-wizard-form input[name="building_type"]:checked + .btype-card i,
#calc-wizard-form .btype-card:hover i {
    color: #000000 !important;
}
#calc-wizard-form input[name="building_type"]:checked + .btype-card .fw-bold,
#calc-wizard-form .btype-card:hover .fw-bold,
#calc-wizard-form input[name="building_type"]:checked + .btype-card div,
#calc-wizard-form .btype-card:hover div,
#calc-wizard-form input[name="building_type"]:checked + .btype-card span,
#calc-wizard-form .btype-card:hover span,
#calc-wizard-form input[name="building_type"]:checked + .btype-card .text-muted,
#calc-wizard-form .btype-card:hover .text-muted {
    color: #000000 !important;
}

/* 2. Category & Scenario Cards (Green outline / Green fill) */
#calc-wizard-form .btn-check + .btn-outline-secondary:not(.btype-card) {
    background-color: #ffffff !important;
    border: 1.5px solid #8CC641 !important;
    border-radius: 12px !important;
    color: #487615 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
#calc-wizard-form .btn-check + .btn-outline-secondary:not(.btype-card) i {
    color: #f7b731 !important;
    transition: color 0.2s ease;
}
#calc-wizard-form .btn-check + .btn-outline-secondary:not(.btype-card) .fw-bold,
#calc-wizard-form .btn-check + .btn-outline-secondary:not(.btype-card) .fw-semibold,
#calc-wizard-form .btn-check + .btn-outline-secondary:not(.btype-card) .fs-5,
#calc-wizard-form .btn-check + .btn-outline-secondary:not(.btype-card) .fs-6,
#calc-wizard-form .btn-check + .btn-outline-secondary:not(.btype-card) div,
#calc-wizard-form .btn-check + .btn-outline-secondary:not(.btype-card) span,
#calc-wizard-form .btn-check + .btn-outline-secondary:not(.btype-card) label {
    color: #487615 !important;
}
#calc-wizard-form .btn-check + .btn-outline-secondary:not(.btype-card) .text-muted,
#calc-wizard-form .btn-check + .btn-outline-secondary:not(.btype-card) .small {
    color: #495057 !important;
}

/* Active & Hover Inversion (Green background #5B901C, yellow text #ffe169 & yellow icon #ffe169) */
#calc-wizard-form .btn-check:checked + .btn-outline-secondary:not(.btype-card),
#calc-wizard-form .btn-check:not(:checked) + .btn-outline-secondary:not(.btype-card):hover,
#calc-wizard-form .btn-outline-secondary:not(.btype-card):hover {
    background-color: #5B901C !important;
    border-color: #5B901C !important;
    color: #ffe169 !important;
    box-shadow: 0 4px 14px rgba(91, 144, 28, 0.4) !important;
}
#calc-wizard-form .btn-check:checked + .btn-outline-secondary:not(.btype-card) i,
#calc-wizard-form .btn-check:not(:checked) + .btn-outline-secondary:not(.btype-card):hover i,
#calc-wizard-form .btn-outline-secondary:not(.btype-card):hover i {
    color: #ffe169 !important;
}
#calc-wizard-form .btn-check:checked + .btn-outline-secondary:not(.btype-card) .fw-bold,
#calc-wizard-form .btn-check:not(:checked) + .btn-outline-secondary:not(.btype-card):hover .fw-bold,
#calc-wizard-form .btn-outline-secondary:not(.btype-card):hover .fw-bold,
#calc-wizard-form .btn-check:checked + .btn-outline-secondary:not(.btype-card) .fw-semibold,
#calc-wizard-form .btn-check:not(:checked) + .btn-outline-secondary:not(.btype-card):hover .fw-semibold,
#calc-wizard-form .btn-outline-secondary:not(.btype-card):hover .fw-semibold,
#calc-wizard-form .btn-check:checked + .btn-outline-secondary:not(.btype-card) .fs-5,
#calc-wizard-form .btn-check:not(:checked) + .btn-outline-secondary:not(.btype-card):hover .fs-5,
#calc-wizard-form .btn-check:checked + .btn-outline-secondary:not(.btype-card) .fs-6,
#calc-wizard-form .btn-check:not(:checked) + .btn-outline-secondary:not(.btype-card):hover .fs-6,
#calc-wizard-form .btn-check:checked + .btn-outline-secondary:not(.btype-card) div,
#calc-wizard-form .btn-check:not(:checked) + .btn-outline-secondary:not(.btype-card):hover div,
#calc-wizard-form .btn-check:checked + .btn-outline-secondary:not(.btype-card) span,
#calc-wizard-form .btn-check:not(:checked) + .btn-outline-secondary:not(.btype-card):hover span,
#calc-wizard-form .btn-check:checked + .btn-outline-secondary:not(.btype-card) label,
#calc-wizard-form .btn-check:not(:checked) + .btn-outline-secondary:not(.btype-card):hover label {
    color: #ffe169 !important;
}
#calc-wizard-form .btn-check:checked + .btn-outline-secondary:not(.btype-card) .text-muted,
#calc-wizard-form .btn-check:not(:checked) + .btn-outline-secondary:not(.btype-card):hover .text-muted,
#calc-wizard-form .btn-check:checked + .btn-outline-secondary:not(.btype-card) .small,
#calc-wizard-form .btn-check:not(:checked) + .btn-outline-secondary:not(.btype-card):hover .small {
    color: #ffe169 !important;
    opacity: 0.95 !important;
}

/* Service Horizontal Cards */
.service-horizontal-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.service-horizontal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

@media (min-width: 768px) {
    .service-horizontal-card {
        height: 270px !important;
    }
    .service-horizontal-card > .row {
        height: 100% !important;
    }
    .service-horizontal-card > .row > [class*="col-"] {
        height: 100% !important;
    }
    .service-card-img-wrap {
        height: 100% !important;
        max-height: 270px !important;
    }
}

@media (max-width: 767.98px) {
    .service-card-img-wrap {
        height: 220px !important;
    }
}

.service-card-img-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.service-card-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.service-card-img-wrap img {
    transition: transform 0.4s ease;
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.service-horizontal-card:hover .service-card-img-wrap img {
    transform: scale(1.05);
}

.service-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.5rem 1.75rem !important;
}

.service-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.service-card-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-primary {
    transition: color 0.2s ease;
}

.hover-primary:hover {
    color: #495057 !important;
}

/* Big Card Template Wrapper */
.card-img-wrapper img,
.card-img-wrapper picture img {
    width: 100% !important;
    max-height: 480px !important;
    object-fit: cover !important;
    display: block;
}

.card-img-wrapper:empty,
.card-img-wrapper:not(:has(*)),
.card-actions:empty,
.card-actions:not(:has(*)) {
    display: none !important;
}

.container-card-section {
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
}

.container-card-wrapper {
    width: 100%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.container-card-body {
    padding: 5px !important;
}

@media (min-width: 768px) {
    .container-card-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .container-card-body {
        padding: 3rem !important;
    }
}

@media (max-width: 767.98px) {
    .container-card-section .row {
        --bs-gutter-x: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .container-card-section .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .contact-quick-card {
        margin-bottom: 12px;
    }

    .contact-map-card {
        height: 280px !important;
    }

    .gallery-item-col {
        margin-bottom: 12px;
    }
}

@media (max-width: 991.98px) {
    .contacts-form-card.sticky-top {
        position: static !important;
    }
}

/*DIN Table Component*/
.din-table-component {
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a202c;
    line-height: 1.5;
}

.din-table-component h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #2c3e50;
}

.din-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
}

.din-table-component table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
    border: none;
}

.din-table-component th, 
.din-table-component td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.din-table-component th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    white-space: nowrap;
}

.din-table-component tr:last-child td {
    border-bottom: none;
}

.din-table-component tr:hover td {
    background-color: rgba(52, 152, 218, 0.04);
}

.din-table-component .level-badge {
    display: inline-block;
    padding: 4px 8px;
    color: #ffffff;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Цветовое кодирование уровней качества */
.din-table-component tr:nth-child(1) .level-badge { background-color: #718096; }
.din-table-component tr:nth-child(2) .level-badge { background-color: #4a5568; }
.din-table-component tr:nth-child(3) .level-badge { background-color: #2b6cb0; }
.din-table-component tr:nth-child(4) .level-badge { background-color: #2c5282; }

.din-table-component ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.din-table-component li {
    margin-bottom: 4px;
}

.din-table-component li:last-child {
    margin-bottom: 0;
}

/* Мобильная адаптация (до 768px) */
@media screen and (max-width: 768px) {
    .din-table-wrapper {
        border: none;
        background: none;
        overflow-x: visible;
    }
    
    .din-table-component table, 
    .din-table-component thead, 
    .din-table-component tbody, 
    .din-table-component th, 
    .din-table-component td, 
    .din-table-component tr {
        display: block;
    }

    .din-table-component thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .din-table-component tr {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 16px;
        background-color: #ffffff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        overflow: hidden;
    }

    .din-table-component td {
        border: none;
        border-bottom: 1px solid #e2e8f0;
        position: relative;
        padding: 12px 14px 12px 42%;
        text-align: left;
        min-height: 36px;
        box-sizing: border-box;
    }

    .din-table-component td:not([data-label]) {
        padding-left: 14px !important;
    }

    .din-table-component td:last-child {
        border-bottom: none;
    }

    .din-table-component td::before {
        position: absolute;
        top: 12px;
        left: 14px;
        width: 38%;
        padding-right: 8px;
        font-weight: 600;
        color: #2c3e50;
        content: attr(data-label);
        white-space: normal;
        word-break: break-word;
        line-height: 1.25;
    }
    
    .din-table-component td .level-badge {
        margin-bottom: 4px;
    }
}

/* Сверхкомпактная адаптация для мобильных смартфонов (до 576px) */
@media screen and (max-width: 575.98px) {
    .din-table-component td {
        padding: 10px 12px !important;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .din-table-component td::before {
        position: static !important;
        width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 2px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #64748b;
    }
}

/* Общие стили адаптивности таблиц в теле статьи (.blog-body) */
.blog-body table:not(.din-table-component table) {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.blog-body table:not(.din-table-component table) th,
.blog-body table:not(.din-table-component table) td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    vertical-align: top;
}

.blog-body table:not(.din-table-component table) th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

@media screen and (max-width: 767.98px) {
    .blog-body table:not(.din-table-component table) {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Hide injected browser extension artifacts (e.g. Simple Translate) */
#simple-translate,
[class*="simple-translate"],
.simple-translate-system-theme,
.simple-translate-panel,
.simple-translate-button {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Bootstrap 5.3 Object-fit Utilities (eliminates need for duplicate Bootstrap 5.3 CDN) */
.object-fit-contain { object-fit: contain !important; }
.object-fit-cover   { object-fit: cover !important; }
.object-fit-fill    { object-fit: fill !important; }
.object-fit-scale   { object-fit: scale-down !important; }
.object-fit-none    { object-fit: none !important; }

/* ==========================================================================
   Blog Social Share Widget (.blog-share-widget)
   ========================================================================== */
.blog-share-widget {
    background: linear-gradient(135deg, #FBFBFB 0%, #F5F7F8 100%);
    border: 1px solid #E5E9EC !important;
    position: relative;
    overflow: hidden;
}

.blog-share-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary, #FFE468);
}

.blog-share-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #272630;
    color: var(--primary, #FFE468);
    box-shadow: 0 4px 10px rgba(39, 38, 48, 0.15);
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    line-height: 1.2;
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.blog-share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Share Button Themes */
.share-btn-telegram {
    background-color: #229ED9;
    color: #FFFFFF !important;
}
.share-btn-telegram:hover {
    background-color: #1b85b8;
    color: #FFFFFF !important;
}

.share-btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF !important;
}
.share-btn-whatsapp:hover {
    background-color: #1da851;
    color: #FFFFFF !important;
}

.share-btn-facebook {
    background-color: #1877F2;
    color: #FFFFFF !important;
}
.share-btn-facebook:hover {
    background-color: #135fc2;
    color: #FFFFFF !important;
}

.share-btn-linkedin {
    background-color: #0A66C2;
    color: #FFFFFF !important;
}
.share-btn-linkedin:hover {
    background-color: #084e96;
    color: #FFFFFF !important;
}

.share-btn-twitter {
    background-color: #0F1419;
    color: #FFFFFF !important;
}
.share-btn-twitter:hover {
    background-color: #000000;
    color: #FFFFFF !important;
}

.share-btn-native {
    background-color: var(--secondary, #487615);
    color: #FFFFFF !important;
}
.share-btn-native:hover {
    background-color: var(--secondary-hover, #3b6111);
    color: #FFFFFF !important;
}

.share-btn-copy {
    background-color: #FFFFFF;
    color: #272630 !important;
    border: 1px solid #D0D7DE;
}
.share-btn-copy:hover {
    background-color: #F6F8FA;
    border-color: #AFB8C1;
    color: #272630 !important;
}
.share-btn-copy.copied {
    background-color: #D1E7DD !important;
    color: #0F5132 !important;
    border-color: #BADBCC !important;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.2);
}

@media (max-width: 575.98px) {
    .blog-share-widget {
        padding: 1.25rem !important;
    }
    .blog-share-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}