/*
Theme Name: Kobold
Theme URI: http://kobold.kz
Author: Antigravity
Author URI: http://kobold.kz
Description: Кастомная премиум-тема для каталога промышленного оборудования Kobold.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kobold
*/

/* Базовые стили темы */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Стили для чистых текстовых страниц */
.kobold-clean-page {
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
}

.kobold-clean-page h3 {
    font-size: 22px;
    font-weight: 700;
    color: #005aa8;
    margin: 30px 0 15px 0;
}

.kobold-clean-page h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 20px 0 10px 0;
}

.kobold-clean-page h5 {
    font-size: 15px;
    font-weight: 700;
    color: #005aa8;
    margin: 15px 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lead-text {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Сетка Строка-Колонки */
.row-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin: 30px 0;
    align-items: center;
}

.row-grid.reverse {
    grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 768px) {

    .row-grid,
    .row-grid.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.fluid-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.border-rd {
    border-radius: 12px;
}

.shadow-sm {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 40px 0;
}

/* Сетка Галереи */
.gallery-grid {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.gallery-grid.col-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .gallery-grid.col-3 {
        grid-template-columns: 1fr;
    }
}

.gallery-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gallery-card img {
    border-radius: 10px;
    width: 100%;
    height: 180px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.gallery-card img:hover {
    transform: translateY(-2px);
}

.gallery-card span {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

/* Карточки информации (Опросники и Отрасли) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    background: #ffffff;
    border-color: rgba(0, 90, 168, 0.2);
    box-shadow: 0 8px 20px rgba(0, 90, 168, 0.04);
    transform: translateY(-2px);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.info-card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.btn-download {
    display: inline-block;
    background: #005aa8;
    color: #ffffff !important;
    text-align: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.2s ease;
}

.btn-download:hover {
    background: #004480;
}

.notice-box {
    background: #f0f9ff;
    border-left: 4px solid #005aa8;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 40px;
}

.notice-box p {
    margin: 0;
    font-weight: 600;
    color: #0369a1;
}

.notice-box a {
    color: #005aa8;
    text-decoration: underline;
}

/* Горизонтальный формат карточки (Отрасли) */
.info-card.format-horizontal {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    align-items: center;
}

@media (max-width: 576px) {
    .info-card.format-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }
}

.card-side-img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .card-side-img {
        width: 100%;
        height: 160px;
    }
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body h4 {
    margin: 0 0 8px 0;
}

.card-body p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px 0;
}

.btn-link {
    font-size: 13px;
    font-weight: 700;
    color: #005aa8;
    text-decoration: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Сетка блоков решений (Решения) */
.row-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.solution-block {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    gap: 24px;
    align-items: center;
    transition: all 0.2s ease;
}

.solution-block:hover {
    border-color: rgba(0, 90, 168, 0.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
}

.solution-block img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .solution-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .solution-block img {
        width: 100%;
        height: 200px;
    }
}

.solution-text h4 {
    margin: 0 0 8px 0;
    color: #005aa8;
}

.solution-text p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

/* Сетка видеокарт (Видео) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.video-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.video-card h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.video-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000000;
}

.video-wrapper video {
    display: block;
}

/* Страница контактов */
.contacts-page .contact-item {
    margin-bottom: 24px;
}

.contacts-page .contact-item h5 {
    margin-bottom: 8px;
}

.contacts-page .contact-item p {
    margin: 0;
    color: #475569;
}

.contacts-page .contact-item a {
    color: #005aa8;
    text-decoration: none;
}

.contacts-page .contact-item a:hover {
    text-decoration: underline;
}

/* Вкладки (Tabs) для страницы решений */
.solutions-tabs-container {
    margin-top: 30px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.solutions-tabs-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 10px 0 10px;
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
}

.solutions-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    border-bottom: none;
}

.solutions-tab-btn:hover {
    color: #ec7405;
    background: rgba(236, 116, 5, 0.05);
}

.solutions-tab-btn.active {
    color: #ec7405;
    background: #ffffff;
    border-color: #e2e8f0;
    border-bottom-color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.02);
}

.solutions-tabs-content {
    padding: 30px;
}

.solutions-tab-panel {
    display: none;
}

.solutions-tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solution-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.solution-img-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.solution-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.solution-details h3 {
    margin-top: 0;
    font-size: 22px;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 20px;
}

.solution-section {
    margin-bottom: 25px;
}

.solution-section p {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.solution-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.solution-section li {
    margin-bottom: 8px;
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
}

.section-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.badge-problem {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.badge-solution {
    background: #f0fdf4;
    color: #22c55e;
    border: 1px solid #dcfce7;
}

/* Боковое меню категорий как на доноре */
.kobold-category-sidebar-menu {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: none;
}

.sidebar-menu-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    background: #000000;
    padding: 12px 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
}

.category-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-menu-item {
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    border: none;
    border-bottom: 1px solid #e5e5e5;
}

.category-menu-item:last-child {
    border-bottom: none;
}

.category-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #475569;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    background: #efefef;
}

.category-menu-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 0;
}

.category-menu-item.active {
    border-color: var(--sec-color);
}

.category-menu-item.active>.category-menu-link {
    background: var(--sec-color);
    color: #ffffff;
}

.category-menu-item.active .category-menu-icon {
    background: #ffffff;
    padding: 2px;
}

.category-menu-item:not(.active):hover>.category-menu-link {
    color: var(--sec-color);
    background: #e2e8f0;
}

/* Подразделы в сайдбаре как на доноре */
.category-submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--sec-color);
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.category-submenu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.category-submenu-item:last-child {
    border-bottom: none;
}

.category-submenu-item a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    display: block;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.category-submenu-item.active>a,
.category-submenu-item a:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

/* Подподразделы */
.category-sub-submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-sub-submenu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-sub-submenu-item:last-child {
    border-bottom: none;
}

.category-sub-submenu-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    padding: 8px 30px;
}

.category-sub-submenu-item.active a,
.category-sub-submenu-item a:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.15);
}

/* Аккордеон для SEO текста внизу категорий */
.kobold-seo-text-accordion {
    margin-top: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: relative;
}

.seo-text-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.seo-text-content.collapsed {
    max-height: 140px;
    /* Ограничиваем высоту в свернутом состоянии */
}

.seo-text-content p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.seo-text-content p:last-child {
    margin-bottom: 0;
}

.seo-text-content.collapsed .seo-text-fade {
    display: block;
}

.seo-text-fade {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.seo-text-toggle-btn {
    display: block;
    margin: 20px auto 0 auto;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seo-text-toggle-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Список подкатегорий (Parent Category View - Full Width Rows) */
.kobold-subcategories-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.kobold-subcategory-row-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.kobold-subcategory-row-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.subcategory-row-header {
    background: #f1f5f9;
    padding: 14px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.subcategory-row-title-link {
    text-decoration: none;
}

.subcategory-row-title {
    font-size: 18px;
    font-weight: 700;
    color: #475569;
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.kobold-subcategory-row-card:hover .subcategory-row-title {
    color: #ec7405;
}

.subcategory-row-image-link {
    display: block;
    width: 100%;
}

.subcategory-row-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 30%;
    /* 16:9 Aspect Ratio */
    background: #ffffff;
    overflow: hidden;
}

.subcategory-row-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show the full product range/collage without cropping */
    background-color: #ffffff;
    transition: transform 0.3s ease;
}

.kobold-subcategory-row-card:hover .subcategory-row-image {
    transform: scale(1.02);
}

/* Хлебные крошки (Breadcrumbs) */
.kobold-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

.kobold-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kobold-breadcrumbs a:hover {
    color: #005aa8;
}

.kobold-breadcrumbs .breadcrumbs-separator {
    color: #cbd5e1;
    user-select: none;
}

.kobold-breadcrumbs .breadcrumbs-current {
    color: #0f172a;
    font-weight: 600;
}

/* Блок фильтра продуктов */
.kobold-product-filter-block {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    margin-bottom: 30px;
    border-radius: 0;
}

.filter-block-header {
    background: #efefef;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 700;
    color: #555555;
    border-bottom: 1px solid #e5e5e5;
    text-transform: none;
}

.filter-block-body {
    padding: 15px;
}

.filter-row {
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
}

.filter-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-row-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-row-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
    color: #ec7405;
    min-width: 100px;
}

.filter-toggle-btn {
    background: #ffffff;
    border: 1px solid #cccccc;
    color: #333333;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.filter-toggle-btn:hover {
    background: #efefef;
    border-color: #999999;
}

.filter-tags-wrapper {
    display: none;
    margin-top: 12px;
}

.filter-tags-wrapper.expanded {
    display: block;
}

.filter-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag-label {
    display: inline-block;
    cursor: pointer;
    margin: 0;
}

.filter-tag-label input {
    display: none;
}

.filter-tag-label span {
    display: inline-block;
    background: #ec7405;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.15s ease;
    user-select: none;
}

.filter-tag-label:hover span {
    background: #d56400;
}

.filter-tag-label.checked span {
    background: #005aa8;
}

.filter-tag-label.checked:hover span {
    background: #004480;
}

.filter-actions-row {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

/* Дополнительные изображения товара под главным фото */
.kobold-additional-images {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
    align-items: center;
}

.kobold-additional-image-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    text-align: center;
    width: 240px; /* Ровно в два раза меньше основного фото */
    box-sizing: border-box;
}

.kobold-additional-image-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    object-fit: contain;
}

.additional-image-caption {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    line-height: 1.4;
}

/* Лайтбокс (Lightbox) */
.kobold-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    box-sizing: border-box;
}

.kobold-lightbox.active {
    display: flex;
}

.lightbox-content {
    width: 90vw;
    height: 80vh;
    max-width: 1200px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.25s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.lightbox-close:hover {
    color: #ec7405;
}

.lightbox-caption {
    margin-top: 15px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* ==========================================================================
   MOBILE MENU & GENERAL RESPONSIVE NAVIGATION
   ========================================================================== */

/* Hamburger Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: 15px;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #1e293b;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Header Flex Alignment */
.top-header-right {
    display: flex;
    align-items: center;
}

/* Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 32px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover {
    color: #e28700;
}

.mobile-menu-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px 20px;
}

/* Mobile Menu Navigation List */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-list > li {
    position: relative;
    border-bottom: 1px solid #f8fafc;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.mobile-menu-list > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mobile-menu-list a {
    display: block;
    color: #334155;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list .current-menu-item > a {
    color: #005aa8;
}

.mobile-menu-list .menu-item-has-children > a::after {
    display: none !important; /* Hide desktop ::after chevron on mobile drawer links */
}


/* Submenu layout on Mobile */
.mobile-menu-list .sub-menu {
    list-style: none;
    padding-left: 16px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-list .sub-menu li {
    margin: 0;
}

.mobile-menu-list .sub-menu a {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    padding: 6px 0;
}

/* Toggle Accordion Arrow Styles */
.mobile-menu-list .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-list .menu-item-has-children > a {
    flex-grow: 1;
}

.sub-menu-toggle-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.sub-menu-toggle-arrow::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-bottom: 2px;
}

.submenu-open > .sub-menu-toggle-arrow {
    transform: rotate(180deg);
}

.submenu-open > .sub-menu {
    margin-top: 8px;
    margin-bottom: 12px;
    border-left: 2px solid #e2e8f0;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-contact-btn {
    display: block;
    background: #005aa8;
    color: #ffffff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.mobile-contact-btn:hover {
    background: #004480;
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.mobile-contact-info a {
    color: #475569;
    text-decoration: none;
    font-weight: 550;
    transition: color 0.2s ease;
}

.mobile-contact-info a:hover {
    color: #005aa8;
}

/* Breakpoint for Header adaptation */
@media (max-width: 992px) {
    .bottom-header {
        display: none !important; /* Hide sticky bottom header */
    }
    .mobile-menu-toggle {
        display: flex; /* Show hamburger toggle */
    }
    .header-contact {
        display: none !important; /* Hide direct contact button on mobile */
    }
    
    /* Top header adjustments on mobile */
    .top-header {
        position: sticky;
        top: 0;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        padding: 10px 0;
    }
    .site-logo-img {
        max-height: 48px; /* Slightly smaller logo to fit header */
    }
    .site-content {
        margin: 20px auto !important;
    }
}

/* Header Contacts & Blocks Styling */
.top-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.header-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-block .block-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 750;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    line-height: 1.1;
}

.header-block .block-value {
    font-size: 13px;
    color: #334155;
    font-weight: 600;
    line-height: 1.3;
}

.info-block {
    max-width: 250px;
}

.contacts-block {
    align-items: flex-start;
}

.contacts-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone-link {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-phone-link:hover {
    color: #005aa8;
}

.header-whatsapp-link {
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.header-whatsapp-link:hover {
    transform: scale(1.1);
}

.header-email-link {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    font-weight: 550;
    margin-top: 2px;
    transition: color 0.2s ease;
}

.header-email-link:hover {
    color: #005aa8;
}

.action-block {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

/* Hide desktop-only blocks on mobile */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .top-header-grid {
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .contacts-block {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header-phone-link {
        font-size: 12px;
    }
    .header-email-link {
        font-size: 11px;
    }
}

/* Mobile Spacing Optimizations (<= 768px) */
@media (max-width: 768px) {
    html, body {
        padding: 0;
        margin: 0;
    }

    .header-container {
        padding: 0 5px !important;
    }

    .site-main,
    .solutions-main-container,
    .video-main-container {
        padding: 15px 5px !important;
        border-radius: 8px !important;
        margin-bottom: 20px !important;
    }

    .site-content {
        padding: 0 !important;
        margin: 20px auto !important;
    }

    /* Solution panels */
    .solution-section {
        padding: 12px 8px !important;
    }
    
    .solution-grid {
        gap: 15px !important;
    }

    .solution-details h3 {
        margin: 0 0 15px 0 !important;
        font-size: 18px !important;
    }

    /* Video and company wrappers */
    .company-hero-container {
        padding: 20px 10px !important;
        border-radius: 10px !important;
        margin-bottom: 25px !important;
    }

    .company-hero-text h1 {
        font-size: 26px !important;
        margin-bottom: 12px !important;
    }

    .company-section {
        padding: 20px 10px !important;
        margin-bottom: 25px !important;
    }
}

/* Group Members Section Styles (Homepage and Company Page) */
.group-members-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.group-members-section .section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.group-members-section .company-section-icon {
    color: #005aa8;
    display: flex;
    align-items: center;
}

.group-members-section .section-title {
    font-size: 24px;
    font-weight: 800;
    color: #005aa8;
    margin: 0;
}

.partners-logos-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: center;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .partners-logos-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px !important;
        margin: 20px 0 !important;
    }
}

.partner-logo-box {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    height: 90px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.partner-logo-box:hover {
    border-color: rgba(0, 90, 168, 0.2);
}

.partner-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   PREMIUM HOMEPAGE DESIGN SYSTEM
   ========================================================================== */

/* Shared Homepage Container & Section Spacing */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.home-intro-section,
.home-categories-section,
.home-advantages-section,
.home-cta-section,
.home-members-section {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .home-intro-section,
    .home-categories-section,
    .home-advantages-section,
    .home-cta-section,
    .home-members-section {
        padding: 30px 0;
    }
}

/* Badge Indicator */
.home-section-badge {
    display: inline-block;
    background: rgba(0, 90, 168, 0.06);
    color: #005aa8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

/* Section Header */
.home-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.home-section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.home-section-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .home-section-header {
        margin-bottom: 30px;
    }
    .home-section-header h2 {
        font-size: 24px;
    }
}

/* Premium Buttons */
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.home-btn.primary {
    background: #005aa8;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 90, 168, 0.15);
}

.home-btn.primary:hover {
    background: #004480;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 90, 168, 0.25);
}

.home-btn.secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.home-btn.secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-2px);
}

.home-btn.secondary.light {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.home-btn.secondary.light:hover {
    background: #ffffff;
    color: #005aa8;
    transform: translateY(-2px);
}

.home-btn.accent {
    background: #e28700;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(226, 135, 0, 0.15);
}

.home-btn.accent:hover {
    background: #c57600;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(226, 135, 0, 0.25);
}

/* 1. Intro Section Grid */
.home-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.home-intro-text h1 {
    font-size: 40px;
    font-weight: 850;
    color: #1e293b;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.intro-benefits-list {
    margin: 25px 0 35px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.intro-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #475569;
    font-weight: 550;
}

.intro-actions {
    display: flex;
    gap: 15px;
}

.image-frame {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, #005aa8 0%, #e28700 100%);
    padding: 3px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.image-frame img {
    background: #ffffff;
    display: block;
}

@media (max-width: 991px) {
    .home-intro-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .home-intro-text h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .intro-actions {
        flex-direction: column;
        gap: 10px;
    }
    .home-btn {
        width: 100%;
    }
}

/* 2. Core Product Categories Grid */
.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-image {
    background: #f8fafc;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.category-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.category-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-card-content h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.category-card-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.category-card-content .card-link {
    font-size: 13.5px;
    font-weight: 700;
    color: #005aa8;
    transition: transform 0.2s ease;
}

/* Hover States */
.home-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 90, 168, 0.08);
    border-color: rgba(0, 90, 168, 0.2);
}

.home-category-card:hover .category-card-image img {
    transform: scale(1.08);
}

.home-category-card:hover .card-link {
    color: #e28700;
}

@media (max-width: 991px) {
    .home-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .home-categories-grid {
        grid-template-columns: 1fr;
    }
}

/* 3. Key Advantages Section */
.home-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    text-align: center;
}

.advantage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(0, 90, 168, 0.06);
    color: #005aa8;
    border-radius: 12px;
    margin-bottom: 24px;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.advantage-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.advantage-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 90, 168, 0.05);
    border-color: rgba(0, 90, 168, 0.15);
}

@media (max-width: 991px) {
    .home-advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .advantage-card {
        padding: 25px 15px;
    }
}

/* 4. Interactive Call-To-Action (CTA) Banner */
.home-cta-banner {
    background: linear-gradient(135deg, #005aa8 0%, #003366 100%);
    border-radius: 16px;
    padding: 50px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 51, 102, 0.15);
    position: relative;
    overflow: hidden;
}

.home-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(226, 135, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 850;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.cta-content p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 30px 0;
    color: #cbd5e1;
}

.cta-actions {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .home-cta-banner {
        padding: 35px 20px;
        text-align: center;
    }
    .cta-content h2 {
        font-size: 24px;
    }
    .cta-content p {
        font-size: 14.5px;
    }
    .cta-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================================================
   MOBILE HEADER SEARCH
   ========================================================================== */
.mobile-search-block {
    display: none;
}

@media (max-width: 992px) {
    .mobile-search-block {
        display: block;
        flex: 1;
        margin: 0 12px;
        position: relative;
        max-width: 450px;
    }
    
    .mobile-search-form {
        position: relative;
        width: 100%;
        margin: 0;
    }
    
    .mobile-search-input-wrap {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .mobile-search-field {
        width: 100%;
        padding: 8px 36px 8px 12px;
        border: 1px solid #cbd5e1;
        border-radius: 20px;
        font-size: 13px;
        outline: none;
        background: #f8fafc;
        transition: all 0.25s ease;
        box-sizing: border-box;
        height: 36px;
        font-family: inherit;
    }
    
    .mobile-search-field:focus {
        background: #ffffff;
        border-color: #005aa8;
        box-shadow: 0 0 0 3px rgba(0, 90, 168, 0.15);
    }
    
    .mobile-search-submit {
        position: absolute;
        right: 4px;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 14px;
        color: #64748b;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .mobile-search-results-popup {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 16px -8px rgba(0, 0, 0, 0.08);
        z-index: 10000;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .mobile-search-popup-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-search-popup-item {
        border-bottom: 1px solid #f1f5f9;
        margin: 0;
    }
    
    .mobile-search-popup-item:last-child {
        border-bottom: none;
    }
    
    .mobile-search-popup-item a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        text-decoration: none;
        color: #1e293b;
    }
    
    .mobile-search-popup-item a:hover {
        background-color: #f0f7fc;
    }
    
    .mobile-search-popup-img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        background: #ffffff;
        border-radius: 4px;
        border: 1px solid #e2e8f0;
        padding: 2px;
        flex-shrink: 0;
    }
    
    .mobile-search-popup-title {
        font-size: 12.5px;
        font-weight: 500;
        line-height: 1.3;
        color: #1e293b;
    }
    
    .mobile-search-loading,
    .mobile-search-no-results,
    .mobile-search-error {
        padding: 12px;
        text-align: center;
        font-size: 13px;
        color: #64748b;
    }
}