/*
Theme Name: Structuralist
Theme URI: https://structuralist.example
Author: Structuralist Team
Author URI: https://structuralist.example
Description: Современная WordPress-тема с кастомным навбаром Structuralist (Bento-меню, мегаменю, мультибрендовые логотипы). Чистый, резкий шрифтовой стек Onest + Unbounded.
Version: 3.2.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: structuralist
Domain Path: /languages
Tags: custom-menu, custom-logo, threaded-comments, translation-ready, blog, one-column, two-columns
*/

/* ==========================================================================
   Base & Fonts
   ========================================================================== */

body {
    margin: 0;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    min-height: 100vh;
    
    /* ФИКС РЕЗКОСТИ ШРИФТОВ */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    --content-max: 1400px;
    --content-pad: 24px;
    /* Внутренний pad hero-карточек (не сдвигает навбар) */
    --hero-card-pad-x: 24px;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/*
 * ЕДИНАЯ СЕТКА ОТСТУПОВ
 * 1) Оболочки (.site-navbar, .hero-bento, .page-shell, .press-portal…)
 *    → padding-left/right: var(--content-pad)
 * 2) Внутренние контейнеры (…-inner, .navbar-container)
 *    → max-width: var(--content-max); margin: 0 auto; без бокового padding
 * 3) Логотип и заголовки страниц/пресс-центра стартуют с одного края
 * 4) Текст внутри hero-card имеет свой --hero-card-pad-x (только внутри карточки)
 */

/* ==========================================================================
   Navbar Layout
   ========================================================================== */

.site-navbar {
    background-color: #fafafa;
    border-bottom: none;
    padding-top: 20px;
    padding-bottom: 20px;
    /* left/right: var(--content-pad) from shared shell rule */
    position: relative;
    z-index: 1000;
}

/* Единый левый край: padding на внешней оболочке, контент max-width по центру */
.site-navbar,
.hero-bento,
.chips-marquee,
.press-portal,
.press-single,
.site-footer,
.services-section {
    padding-left: var(--content-pad);
    padding-right: var(--content-pad);
    box-sizing: border-box;
}

.navbar-container,
.hero-bento-inner,
.chips-marquee-inner,
.press-portal-inner,
.press-single-inner,
.site-content,
.footer-inner,
.services-inner {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    width: 100%;
}

/* Default = stacked (menu under logo, full width). Inline overrides below. */
.navbar-container {
    width: 100%;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 8px;
    align-items: center;
}

.navbar-left {
    display: contents;
    overflow: visible;
}

.brand-group {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
    justify-self: start;
}

/* Inline: logo + menu on one row */
body.navbar-layout-inline .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    grid-template-columns: none;
    grid-template-rows: none;
}

body.navbar-layout-inline .navbar-left {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
}

body.navbar-layout-inline .brand-group {
    grid-column: auto;
    grid-row: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    justify-self: auto;
}

/* Both: inline menu on row 1 (with logo), stacked full-width on row 2 */
body.navbar-layout-both .navbar-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 8px;
    align-items: center;
}

body.navbar-layout-both .navbar-left {
    display: contents;
}

body.navbar-layout-both .brand-group {
    grid-column: 1;
    grid-row: 1;
}

body.navbar-layout-both .navbar-menu--inline-row,
body.navbar-layout-both .navbar-menu.navbar-menu--primary {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-self: start;
    min-width: 0;
}

body.navbar-layout-both .navbar-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

body.navbar-layout-both .navbar-menu--stack-row,
body.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
}



/* Логотип всегда на общем крае контейнера — без сдвига на главной */
/* Комбинированный логотип */
.navbar-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

/* Основная часть логотипа: всегда Unbounded Black, цвет не от бренда */
.logo-main,
.st-name {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    line-height: 1;
    color: #111111;
}

.logo-main {
    font-size: 29px;
}

/* Суббренд: Unbounded Light, цвет свой у каждого */
.logo-sub,
.st-sub {
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    line-height: 1;
}

.logo-sub {
    font-size: 29px;
}

.st-wordmark {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.28em;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.logo-sub.wp { color: #21759b; } 
.logo-sub.editorial { color: #ff5a00; } 
.logo-sub.mobility { color: #2563eb; }
.logo-sub.it { color: #6b7280; }

/* Bento Interactive Wrapper */
.bento-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bento-btn {
    background: none;
    border: none;
    padding: 8px;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
}

.bento-btn:hover {
    background-color: #f3f4f6;
    color: #111111;
}

.bento-btn:active {
    transform: scale(0.95);
}

.bento-btn[aria-expanded="true"] {
    background-color: #f3f4f6;
    color: #111111;
}

.bento-btn .bento-grip-icon,
.bento-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke-width: 2;
}

/* Bento Dropdown Window */
.bento-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 280px;
    max-width: 420px;
    width: max-content;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.12);
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 8px 10px;
    align-items: start;
    justify-items: center;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: top left;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100; /* выше мегаменю */
    pointer-events: none;
}

.bento-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Bento Apps (Projects) — equal cells, stacked wordmark */
.bento-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 112px;
    text-decoration: none;
    padding: 10px 6px 12px;
    border-radius: 12px;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.bento-app:hover {
    background-color: #f9fafb;
}

.app-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
    margin: 0 auto;
    box-sizing: border-box;
    border: 1px solid transparent; /* same outer size for all */
    letter-spacing: -0.02em;
}

.app-structuralist { background-color: #111111; color: #ffffff; border-color: #111111; }
.app-wp { background-color: #f0f8ff; color: #21759b; }
.app-editorial { background-color: #fff4ed; color: #ff5a00; }
.app-mobility { background-color: #eff6ff; color: #2563eb; }

.app-title.st-wordmark,
.bento-app .st-wordmark {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start;
    gap: 2px !important;
    width: 100%;
    min-height: 2.6em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.bento-app .st-name {
    display: block;
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 900 !important;
    font-size: 9px !important;
    color: #111 !important;
    line-height: 1.2;
}

.bento-app .st-sub {
    display: block;
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 300 !important;
    font-size: 9px !important;
    line-height: 1.2;
    text-align: center;
}

.app-title {
    font-size: 11px;
    color: #374151;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}
.bento-app .app-structuralist + .app-title,
.mobile-bento-item .app-structuralist + span { color: #111111; }
.bento-app .app-wp + .app-title,
.mobile-bento-item .app-wp + span { color: #21759b; }
.bento-app .app-editorial + .app-title,
.mobile-bento-item .app-editorial + span { color: #ff5a00; }
.bento-app .app-mobility + .app-title,
.mobile-bento-item .app-mobility + span { color: #2563eb; }

/* Main Menu — stacked full width by default */
.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px 8px;
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
    position: relative;
    z-index: 20;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
}

.navbar-menu > .menu-item:first-child > a {
    margin-left: 0;
    padding-left: 0;
}

body.navbar-layout-inline .navbar-menu {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    flex-wrap: nowrap;
    justify-self: auto;
}

/* Single-mode: hide the other menu if both were printed */
body.navbar-layout-stacked .navbar-menu--inline-row {
    display: none;
}
body.navbar-layout-inline .navbar-menu--stack-row {
    display: none;
}


.menu-item { position: relative; }

.menu-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #111111;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

/* Без «нажатого» фона у текущего пункта — только hover */
.menu-item > a:hover {
    background-color: #f3f4f6;
}

.menu-item.current-menu-item > a,
.menu-item.current-menu-ancestor > a,
.menu-item.active > a {
    background-color: transparent;
    color: #111111;
}

/* Стрелка внешней ссылки (target=_blank) */
.menu-external-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
    margin-top: 1px;
}

.icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 2px;
}

/* Megamenu — GSAP open/close (class .is-mega-open) + CSS fallback */
.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    max-width: 680px;
    width: max-content;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transform-origin: top left;
    z-index: 2000;
}

.menu-item.has-megamenu {
    position: relative;
    z-index: 1;
}

.menu-item.has-megamenu:hover,
.menu-item.has-megamenu.is-mega-open {
    z-index: 30;
}

.menu-item.has-megamenu::after {
    content: '';
    position: absolute;
    /* bridge so cursor can reach megamenu without mouseleave */
    top: 50%;
    left: -8px;
    right: -8px;
    bottom: -24px;
    height: auto;
    z-index: 0;
}

.menu-item.has-megamenu.is-mega-open > .megamenu {
    visibility: visible;
    pointer-events: auto;
}

/* Invisible strip above panel (covers margin-top gap) */
.megamenu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

/* Fallback without GSAP: pure CSS hover */
html:not(.gsap-mega) .menu-item.has-megamenu:hover > .megamenu,
html:not(.gsap-mega) .menu-item.has-megamenu:focus-within > .megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.28s;
}

.megamenu-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 260px;
    min-width: 240px;
}

.megamenu-title { 
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: #6b7280; 
    margin: 16px 0 8px 0;
    padding: 0;
}

.megamenu-col > .megamenu-title:first-child {
    margin-top: 0;
}

.megamenu-link { 
    text-decoration: none; 
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px; 
    border-radius: 8px; 
    transition: background-color 0.2s ease; 
    margin: 0;
}
.megamenu-link:hover { background-color: #f9fafb; }

.mm-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}
.mm-icon svg,
.mm-icon .mm-lucide {
    display: block;
    width: 18px;
    height: 18px;
    stroke-width: 2;
}
.mm-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Цвет иконки следует за цветовым классом */
.megamenu-link.app-structuralist .mm-icon { background: #111111; color: #fff; }
.megamenu-link.app-wp .mm-icon { background: #f0f8ff; color: #21759b; }
.megamenu-link.app-editorial .mm-icon { background: #fff4ed; color: #ff5a00; }
.megamenu-link.app-mobility .mm-icon { background: #eff6ff; color: #2563eb; }

.mm-title { 
    display: block; 
    color: #111111; 
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 13px; 
    margin-bottom: 4px; 
    text-transform: uppercase;
}


.mm-desc { display: block; color: #6b7280; font-size: 13px; line-height: 1.4; }

/* Цветовые акценты пунктов мегаменю (те же классы, что у Bento) */
.megamenu-link.app-structuralist .mm-title { color: #111111; }
.megamenu-link.app-wp .mm-title { color: #21759b; }
.megamenu-link.app-editorial .mm-title { color: #ff5a00; }
.megamenu-link.app-mobility .mm-title { color: #2563eb; }






/* Action Buttons */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    position: relative;
    z-index: 30;
}

.navbar-right {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
    align-self: center;
}

body.navbar-layout-inline .navbar-right {
    grid-column: auto;
    grid-row: auto;
    margin-left: auto;
    justify-self: auto;
}

.btn-secondary { 
    background-color: transparent; 
    color: #111111; 
    text-decoration: none; 
    padding: 14px 22px; 
    border-radius: 8px; 
    font-size: 18px; 
    font-weight: 500; 
    transition: background-color 0.2s ease; 
}
.btn-secondary:hover { background-color: #f3f4f6; }

.btn-primary { 
    background-color: #1a1a1a; 
    color: #ffffff; 
    text-decoration: none; 
    padding: 14px 28px; 
    border-radius: 8px; 
    font-size: 18px; 
    font-weight: 500; 
    transition: background-color 0.2s ease; 
}
.btn-primary:hover { background-color: #333333; }

/* ==========================================================================
   Content Area (legacy wrapper)
   ========================================================================== */

.site-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

.site-main {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
   Pages & Posts — Structuralist shell
   ========================================================================== */

.page-shell {
    background: #fafafa;
    padding-top: 28px;
    padding-bottom: 64px;
    padding-left: var(--content-pad);
    padding-right: var(--content-pad);
    box-sizing: border-box;
}

.page-shell-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 28px;
}

.page-breadcrumb a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
}

.page-breadcrumb a:hover {
    color: #111;
}

.page-breadcrumb-sep {
    color: #9ca3af;
}

.page-breadcrumb-current {
    color: #111;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-header {
    margin-bottom: 24px;
    max-width: 720px;
}

/* Белая карточка только для тела — заголовок на общем краю, как в пресс-центре */
.page-article {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 32px 32px 40px;
    box-sizing: border-box;
}

.page-header--archive {
    margin-bottom: 32px;
    max-width: none;
}

.page-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 36px;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: #111;
    margin: 0 0 12px;
}

/* page-content full width of card on wide pages; readable measure */


.page-lead {
    font-size: 18px;
    line-height: 1.55;
    color: #4b5563;
    margin: 0;
}

.page-meta {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.page-meta-sep {
    opacity: 0.6;
}

.page-cover {
    margin: 0 0 32px;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
}

.page-cover-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- Typography inside pages ---- */
.page-content {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

.page-content > *:first-child {
    margin-top: 0;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin: 2em 0 0.6em;
}

.page-content h2 { font-size: 24px; }
.page-content h3 { font-size: 20px; }
.page-content h4 { font-size: 17px; }

.page-content p {
    margin: 0 0 1.15em;
}

.page-content a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content a:hover {
    opacity: 0.7;
}

.page-content ul,
.page-content ol {
    margin: 0 0 1.15em;
    padding-left: 1.35em;
}

.page-content li {
    margin-bottom: 0.4em;
}

.page-content blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-left: 3px solid #111;
    background: #f9fafb;
    border-radius: 0 12px 12px 0;
    color: #1f2937;
}

.page-content blockquote p:last-child {
    margin-bottom: 0;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.page-content figure {
    margin: 1.5em 0;
}

.page-content figcaption {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 8px;
}

.page-content pre,
.page-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

.page-content pre {
    background: #111;
    color: #f9fafb;
    padding: 16px 18px;
    border-radius: 12px;
    overflow-x: auto;
}

.page-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 6px;
}

.page-content pre code {
    background: transparent;
    padding: 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 15px;
}

.page-content th,
.page-content td {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
}

.page-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #111;
}

.page-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}

.page-content .wp-block-button__link,
.page-content .button {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 10px;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
}

.page-footer {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-tax-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    margin-bottom: 8px;
}

.page-tax-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-tax-list a {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.page-tax-list a:hover {
    background: #e5e7eb;
    color: #111;
}

/* Blog grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.post-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.12);
}

.post-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.post-card-date {
    font-size: 13px;
    color: #9ca3af;
}

.post-card-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
    margin: 0;
    line-height: 1.3;
}

.post-card-title a {
    color: #111;
    text-decoration: none;
}

.post-card-title a:hover {
    opacity: 0.75;
}

.post-card-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    flex: 1;
}

.post-card-more {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    margin-top: 4px;
}

.page-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.page-pagination .nav-links {
    display: flex;
    gap: 8px;
}

.page-pagination a,
.page-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111;
    text-decoration: none;
    font-weight: 500;
}

.page-pagination .current {
    background: #111;
    border-color: #111;
    color: #fff;
}

.page-empty {
    color: #6b7280;
    padding: 24px 0;
}

@media (max-width: 768px) {
    .page-article {
        padding: 24px 18px 28px;
        border-radius: 20px;
    }
    .page-title {
        font-size: 28px;
    }
    .page-lead {
        font-size: 16px;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding-top: 56px;
    padding-bottom: 28px;
    margin-top: 64px;
}

.footer-inner {
    display: block;
    color: #4b5563;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(200px, 1.2fr) minmax(0, 2fr);
    gap: 40px 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-logo-main {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: -0.4px;
    line-height: 1;
}

.footer-logo-sub {
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    line-height: 1;
}

.footer-tagline {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.footer-contacts {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contacts a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.footer-contacts a:hover {
    opacity: 0.7;
}

.footer-address {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social-link {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.footer-social-link:hover {
    border-color: #111;
    color: #111;
    background: #f9fafb;
}

.footer-menus {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-col-title {
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 14px;
}

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

.footer-menu a {
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.footer-menu a:hover {
    opacity: 0.65;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding-top: 20px;
}

.footer-copy {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.footer-legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.footer-legal a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.footer-legal a:hover {
    color: #111;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-menus {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .footer-menus {
        grid-template-columns: 1fr;
    }
    .site-footer {
        padding-top: 40px;
        margin-top: 40px;
    }
}


/* ==========================================================================
   Mobile Toggle (Hamburger)
   ========================================================================== */

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    color: #111;
    transition: background-color 0.2s ease;
}

.mobile-toggle:hover {
    background-color: #f3f4f6;
}

.hamburger-box {
    display: inline-block;
    width: 22px;
    height: 16px;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    display: block;
    width: 22px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger-inner {
    top: 7px;
}

.hamburger-inner::before {
    content: '';
    top: -7px;
}

.hamburger-inner::after {
    content: '';
    top: 7px;
}

/* Animate to X when open */
body.mobile-menu-open .hamburger-inner {
    background-color: transparent;
}

body.mobile-menu-open .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

body.mobile-menu-open .hamburger-inner::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Mobile Overlay & Panel
   ========================================================================== */

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1100;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 92vw);
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0 0 32px;
}

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

.mobile-menu-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #111;
}

.mobile-close {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #6b7280;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-close:hover {
    background: #f3f4f6;
    color: #111;
}

/* Mobile list */
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 12px 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.15s;
}

.mobile-menu-link:hover {
    background: #f9fafb;
}

.mobile-chevron {
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
    color: #9ca3af;
}

.mobile-menu-item.has-children.is-open .mobile-chevron {
    transform: rotate(180deg);
}

/* Mobile submenu (accordion) */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.mobile-menu-item.has-children.is-open .mobile-submenu {
    max-height: 400px;
}

.mobile-submenu-group {
    padding: 12px 20px 16px 28px;
}

.mobile-submenu-title {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 10px;
}

.mobile-submenu a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: color 0.15s;
}

.mobile-submenu a:hover {
    color: #111;
}

.mobile-submenu a.app-wp { color: #21759b; }
.mobile-submenu a.app-editorial { color: #ff5a00; }
.mobile-submenu a.app-mobility { color: #2563eb; }
.mobile-submenu a.app-structuralist { color: #111; }

/* Mobile Bento */
.mobile-bento {
    padding: 20px 20px 8px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.mobile-bento-label {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 14px;
}

.mobile-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-bento-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 12px;
    text-decoration: none;
    background: #f9fafb;
    transition: background-color 0.2s;
    min-height: 110px;
    box-sizing: border-box;
}

.mobile-bento-item .st-wordmark {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 2px !important;
    width: 100%;
    text-align: center;
}

.mobile-bento-item .st-name {
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 900 !important;
    font-size: 9px !important;
    color: #111 !important;
}

.mobile-bento-item .st-sub {
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 300 !important;
    font-size: 9px !important;
}

.mobile-bento-item:hover {
    background: #f3f4f6;
}

.mobile-bento-item .app-icon {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.mobile-bento-item span {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

/* Mobile actions */
.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 0;
}

.mobile-actions .btn-secondary,
.mobile-actions .btn-primary {
    text-align: center;
    padding: 12px 16px;
}

/* Body lock when menu open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }

    .navbar-left {
        display: flex;
        align-items: center;
        gap: 16px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-group {
        grid-column: auto;
        grid-row: auto;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-right {
        grid-column: auto;
        grid-row: auto;
        margin-left: auto;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-right .btn-secondary,
    .navbar-right .btn-primary {
        display: none;
    }

    /* На планшетах/мобильных Bento только в боковой панели */
    .bento-wrapper {
        display: none;
    }
}

@media (max-width: 640px) {
    :root, body {
        --content-pad: 16px;
        --hero-card-pad-x: 18px;
    }

    .site-navbar {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .navbar-left {
        gap: 16px;
        min-width: 0;
        flex: 1;
    }

    .brand-group {
        gap: 10px;
        min-width: 0;
        max-width: calc(100vw - 88px); /* room for menu toggle */
    }

    /* Logo: main on first line, subbrand below */
    .navbar-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
        max-width: 100%;
    }

    .logo-main {
        font-size: 18px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .logo-sub {
        font-size: 13px;
        line-height: 1.15;
        font-weight: 400;
        letter-spacing: 0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .bento-dropdown {
        left: 0;
        right: auto;
        min-width: 0;
        width: min(300px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
    }
}

/* Tablets: also stack if tight */
@media (max-width: 1024px) and (min-width: 641px) {
    .navbar-logo {
        flex-wrap: wrap;
        max-width: min(280px, 50vw);
        row-gap: 0;
    }

    .logo-main,
    .logo-sub {
        font-size: 20px;
    }
}
/* ==========================================================================
   Hero Bento — soft cards
   ========================================================================== */

.hero-bento {
    width: 100%;
    padding-top: 8px;
    padding-bottom: 16px;
    background: #fafafa;
}

.hero-bento.hero-bento--transparent {
    background: transparent !important;
    background-color: transparent !important;
}

.hero-bento-inner {
    display: grid;
    grid-template-columns: repeat(var(--hero-cols, 12), 1fr);
    grid-auto-rows: minmax(200px, auto);
    grid-auto-flow: dense;
    gap: var(--hero-gap, 16px);
}

.hero-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--hero-radius, 24px);
    text-decoration: none;
    overflow: hidden;
    min-height: 220px;
    min-width: 0;
    max-width: 100%;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition:
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -12px rgba(0,0,0,0.12);
}

/* Illustration — positioned absolutely */
.hero-card-media {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    border-radius: 8px;
    /* width/padding-bottom set inline for size; aspect via padding trick */
    height: 0;
    box-sizing: border-box;
}

.hero-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px var(--hero-card-pad-x);
    min-height: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* ---- Text positions ---- */
.hero-text--center .hero-card-body {
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-text--center .hero-card-footer {
    justify-content: center;
}

.hero-text--top-left .hero-card-body {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}
.hero-text--top-center .hero-card-body {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}
.hero-text--top-center .hero-card-footer { justify-content: center; }

.hero-text--top-right .hero-card-body {
    justify-content: flex-start;
    align-items: flex-end;
    text-align: right;
}
.hero-text--top-right .hero-card-footer { justify-content: flex-end; }

.hero-text--middle-left .hero-card-body {
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}
.hero-text--middle-right .hero-card-body {
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}
.hero-text--middle-right .hero-card-footer { justify-content: flex-end; }

.hero-text--bottom-left .hero-card-body {
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
}
.hero-text--bottom-center .hero-card-body {
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}
.hero-text--bottom-center .hero-card-footer { justify-content: center; }

.hero-text--bottom-right .hero-card-body {
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
}
.hero-text--bottom-right .hero-card-footer { justify-content: flex-end; }

/* ---- Media positions (angle via --media-angle on card) ---- */
.hero-media--center .hero-card-media {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(var(--media-angle, 0deg));
}
.hero-media--top-left .hero-card-media {
    top: 12px; left: 12px;
    transform: rotate(var(--media-angle, 0deg));
}
.hero-media--top-center .hero-card-media {
    top: 12px; left: 50%;
    transform: translateX(-50%) rotate(var(--media-angle, 0deg));
}
.hero-media--top-right .hero-card-media {
    top: 12px; right: 12px; left: auto;
    transform: rotate(var(--media-angle, 0deg));
}
.hero-media--middle-left .hero-card-media {
    top: 50%; left: 12px;
    transform: translateY(-50%) rotate(var(--media-angle, 0deg));
}
.hero-media--middle-right .hero-card-media {
    top: 50%; right: 12px; left: auto;
    transform: translateY(-50%) rotate(var(--media-angle, 0deg));
}
.hero-media--bottom-left .hero-card-media {
    bottom: 12px; left: 12px; top: auto;
    transform: rotate(var(--media-angle, 0deg));
}
.hero-media--bottom-center .hero-card-media {
    bottom: 12px; left: 50%; top: auto;
    transform: translateX(-50%) rotate(var(--media-angle, 0deg));
}
.hero-media--bottom-right .hero-card-media {
    bottom: 12px; right: 12px; left: auto; top: auto;
    transform: rotate(var(--media-angle, 0deg));
}

/* When has image, body text max-width so it doesn't collide with illustration */
.hero-card--has-image .hero-card-body {
    max-width: 65%;
}
.hero-text--center.hero-card--has-image .hero-card-body,
.hero-text--top-center.hero-card--has-image .hero-card-body,
.hero-text--bottom-center.hero-card--has-image .hero-card-body {
    max-width: 90%;
}

@media (max-width: 640px) {
    .hero-card--has-image .hero-card-body {
        max-width: 100%;
    }
    .hero-card-media {
        opacity: 0.9;
    }
}

.hero-card-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
    color: inherit;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.hero-card-desc {
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.75;
    flex: 1;
    color: inherit;
}

.hero-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    gap: 12px;
}

.hero-card-cta {
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: inherit;
    opacity: 0.9;
}

.hero-card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.hero-card:hover .hero-card-arrow {
    transform: scale(1.06);
    background: #fff;
}

.hero-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.85);
    color: inherit;
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,0.06);
}

.hero-card--has-image .hero-card-badge {
    top: 20px;
    left: 20px;
}


/* Layout: main large, others grid */
.hero-card--main {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
    min-height: 400px;
}

.hero-card--main .hero-card-title {
    font-size: 32px;
    letter-spacing: -0.8px;
    max-width: 16ch;
}

.hero-card--main .hero-card-desc {
    font-size: 15px;
    max-width: 40ch;
}



.hero-card--wp {
    grid-column: 8 / span 5;
    grid-row: 1;
}

.hero-card--editorial {
    grid-column: 8 / span 2;
    grid-row: 2;
    min-height: 200px;
}

.hero-card--mobility {
    grid-column: 10 / span 3;
    grid-row: 2;
    min-height: 200px;
}

.hero-card--infra {
    grid-column: 1 / span 12;
    grid-row: 3;
    min-height: 200px;
    flex-direction: row;
    align-items: stretch;
}



.hero-card--infra .hero-card-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.hero-card--infra .hero-card-title {
    margin: 0 0 6px;
    font-size: 18px;
}

.hero-card--infra .hero-card-desc {
    margin: 0;
}

.hero-card--infra .hero-card-footer {
    margin-top: 0;
    flex-shrink: 0;
}

/* When card has no image, body fills */
.hero-card:not(.hero-card--has-image) .hero-card-body {
    padding-top: 28px;
}

@media (max-width: 1024px) {
    .hero-bento-inner {
        grid-template-columns: 1fr 1fr;
    }

    .hero-card--main {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 320px;
    }

    .hero-card--main .hero-card-title {
        font-size: 26px;
    }

    .hero-card--wp {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .hero-card--editorial,
    .hero-card--mobility {
        grid-column: span 1;
        grid-row: auto;
        min-width: 0;
        max-width: 100%;
    }

    .hero-card--infra {
        grid-column: 1 / -1;
        grid-row: auto;
        flex-direction: column;
    }

    

    .hero-card--infra .hero-card-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-bento {
        padding-top: 8px;
        padding-bottom: 12px;
        overflow-x: hidden;
    }

    .hero-bento-inner {
        grid-template-columns: 1fr !important;
        gap: 12px;
        max-width: 100%;
        width: 100%;
    }

    .hero-card--main,
    .hero-card--wp,
    .hero-card--editorial,
    .hero-card--mobility,
    .hero-card--infra {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        min-height: 0;
        width: 100%;
        max-width: 100%;
    }

    .hero-card--main {
        min-height: 260px;
    }

    .hero-card--main .hero-card-title {
        font-size: 22px;
        max-width: 100%;
    }

    .hero-card--main .hero-card-desc {
        max-width: 100%;
    }

    .hero-card-body {
        padding: 16px var(--hero-card-pad-x) 18px;
        max-width: 100% !important;
    }

    /* На мобильных иллюстрация чуть меньше, чтобы не перекрывать текст */
    .hero-card--has-image .hero-card-media {
        max-width: 42%;
        opacity: 0.95;
    }

    .hero-card--infra {
        flex-direction: column;
    }

    .hero-card--infra .hero-card-body {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }

    .hero-card--infra .hero-card-footer {
        width: 100%;
    }

    /* Navbar Bento dropdown — не вылезает за экран */
    .bento-dropdown {
        left: 0 !important;
        right: auto !important;
        width: min(300px, calc(100vw - 32px)) !important;
        max-width: calc(100vw - 32px) !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .bento-wrapper {
        position: relative;
    }
}

/* ==========================================================================
   Smooth animations
   ========================================================================== */

@keyframes structuralist-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes structuralist-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero cards — staggered entrance */
.hero-card {
    animation: structuralist-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-card--main { animation-delay: 0.05s; }
.hero-card--wp { animation-delay: 0.12s; }
.hero-card--editorial { animation-delay: 0.18s; }
.hero-card--mobility { animation-delay: 0.24s; }
.hero-card--infra { animation-delay: 0.3s; }

.hero-card {
    transition:
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.25s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.14);
}

.hero-card-cta {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-card--main:hover .hero-card-cta {
    transform: translateY(-1px);
}

.hero-card-cta svg {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Navbar — soft entrance */
.site-navbar {
    animation: structuralist-fade-in 0.4s ease both;
}

.navbar-logo,
.bento-btn,
.navbar-menu .menu-item,
.navbar-right .btn-secondary,
.navbar-right .btn-primary,
.mobile-toggle {
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.2s ease;
}

.navbar-logo:hover {
    opacity: 0.85;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary:hover {
    transform: translateY(-1px);
}

/* Megamenu links */
.megamenu-link {
    transition:
        background-color 0.2s ease,
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.megamenu-link:hover {
    transform: translateX(3px);
}

.mm-icon {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.megamenu-link:hover .mm-icon {
    transform: scale(1.06);
}

/* Bento apps */
.bento-app {
    transition:
        background-color 0.2s ease,
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-app:hover {
    transform: translateY(-2px);
}

.app-icon {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-app:hover .app-icon {
    transform: scale(1.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-card,
    .site-navbar {
        animation: none !important;
    }

    .hero-card,
    .hero-card:hover,
    .megamenu-link,
    .bento-app,
    .btn-primary,
    .btn-secondary,
    .navbar-logo,
    .mm-icon,
    .app-icon,
    .hero-card-cta svg {
        transition: none !important;
        transform: none !important;
    }
}


/* Dynamic size helpers (spans set inline from CPT) */
.hero-card--size-large .hero-card-title {
    font-size: 28px;
    letter-spacing: -0.6px;
}
.hero-card--size-wide .hero-card-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.hero-card--size-wide .hero-card-footer {
    margin-top: 0;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .hero-bento-inner {
        grid-template-columns: repeat(6, 1fr) !important;
    }
    .hero-bento-inner .hero-card {
        grid-column: span 6 !important;
        grid-row: span 1 !important;
    }
    .hero-bento-inner .hero-card--size-large {
        grid-column: span 6 !important;
        min-height: 280px;
    }
}

@media (max-width: 640px) {
    .hero-bento-inner {
        grid-template-columns: 1fr !important;
    }
    .hero-bento-inner .hero-card {
        grid-column: 1 / -1 !important;
        grid-row: span 1 !important;
    }
}

/* ==========================================================================
   Chips Marquee
   ========================================================================== */

.chips-marquee {
    width: 100%;
    overflow: hidden;
    padding-top: 8px;
    padding-bottom: 28px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.chips-marquee-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.chips-row {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.chips-track {
    display: flex;
    width: max-content;
    gap: 8px;
    will-change: transform;
    padding: 4px 0;
}

.chips-track--forward {
    animation: chips-marquee-left var(--chips-speed, 40s) linear infinite;
}

.chips-track--reverse {
    animation: chips-marquee-right var(--chips-speed, 40s) linear infinite;
}

.chips-marquee--pause-hover .chips-row:hover .chips-track {
    animation-play-state: paused;
}

@keyframes chips-marquee-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes chips-marquee-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.chips-marquee .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb !important;
    border-color: #e5e7eb !important;
    background: #ffffff !important;
    color: #111827;
    white-space: nowrap;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none;
    flex-shrink: 0;
    user-select: none;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s ease,
                border-color 0.2s ease,
                background-color 0.2s ease;
}

.chips-marquee .chip--link {
    cursor: pointer;
}

.chips-marquee .chip--link:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.chips-marquee .chip-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--chip-accent, #6b7280) 14%, #fff);
    color: var(--chip-accent, #6b7280);
}

.chips-marquee .chip-icon {
    width: 15px;
    height: 15px;
    stroke-width: 2;
    display: block;
}

.chips-marquee .chip-label {
    line-height: 1.2;
    color: #111827;
    padding-right: 2px;
}

.chips-marquee .chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    background: #f3f4f6;
    color: #6b7280;
    margin-left: 2px;
}

@media (max-width: 640px) {
    .chips-marquee {
        padding: 8px 0 20px;
        gap: 8px;
    }
    .chip {
        font-size: 12px;
        padding: 6px 12px 6px 6px;
    }
    .chips-marquee .chip-icon-wrap {
        width: 24px;
        height: 24px;
    }
    .chip-icon {
        width: 13px;
        height: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chips-track--forward,
    .chips-track--reverse {
        animation: none;
        transform: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        padding: 0 16px;
    }
    .chips-row {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* ==========================================================================
   Press Center
   ========================================================================== */

.press-portal,
.press-single {
    background: #fafafa;
    padding-top: 32px;
    padding-bottom: 64px;
}

.press-hero {
    margin-bottom: 32px;
    max-width: 640px;
}

.press-kicker {
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 8px;
}

.press-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 36px;
    letter-spacing: -0.8px;
    margin: 0 0 12px;
    color: #111;
}

.press-lead {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.press-contact {
    margin-top: 12px;
    font-size: 14px;
    color: #111;
    font-weight: 500;
}

.press-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.press-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.press-filter:hover {
    border-color: #d1d5db;
    color: #111;
}

.press-filter.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.press-filter-count {
    font-size: 11px;
    opacity: 0.7;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.press-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.press-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.12);
}

.press-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.press-card-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
}

.press-card--media-kit .press-card-type { background: #eff6ff; color: #1d4ed8; }
.press-card--release .press-card-type { background: #f0fdf4; color: #15803d; }
.press-card--coverage .press-card-type { background: #fff7ed; color: #c2410c; }
.press-card--statement .press-card-type { background: #faf5ff; color: #7e22ce; }
.press-card--fact-sheet .press-card-type { background: #ecfeff; color: #0e7490; }

.press-card-date {
    font-size: 13px;
    color: #9ca3af;
}

.press-card-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
    margin: 0;
    line-height: 1.3;
}

.press-card-title a {
    color: #111;
    text-decoration: none;
}

.press-card-title a:hover {
    opacity: 0.75;
}

.press-card-sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    flex: 1;
}

.press-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.press-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.press-btn--primary {
    background: #111;
    color: #fff;
}

.press-btn--primary:hover {
    background: #333;
    color: #fff;
}

.press-btn--ghost {
    background: #fff;
    color: #111;
    border: 1px solid #e5e7eb;
}

.press-btn--ghost:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.press-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.press-pagination .nav-links {
    display: flex;
    gap: 8px;
}

.press-pagination a,
.press-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111;
    text-decoration: none;
    font-weight: 500;
}

.press-pagination .current {
    background: #111;
    border-color: #111;
    color: #fff;
}

.press-empty {
    color: #6b7280;
    padding: 40px 0;
}

/* Single */
.press-breadcrumb {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.press-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.press-breadcrumb a:hover {
    color: #111;
}

.press-single-header {
    margin-bottom: 28px;
    max-width: 720px;
}

.press-single-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 32px;
    letter-spacing: -0.6px;
    line-height: 1.2;
    margin: 12px 0;
    color: #111;
}

.press-single-sub {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 12px;
}

.press-single-meta {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

.press-downloads {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.press-downloads-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin: 0 0 12px;
}

.press-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.press-download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9fafb;
    color: #111;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.press-download-item:hover {
    background: #f3f4f6;
}

.press-download-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.press-single-cover {
    margin-bottom: 28px;
    border-radius: 20px;
    overflow: hidden;
}

.press-single-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.press-single-content {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

.press-single-content p {
    margin: 0 0 1.1em;
}

.press-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.press-topic {
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
}

.press-topic:hover {
    border-color: #d1d5db;
}

.press-single-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .press-title { font-size: 28px; }
    .press-single-title { font-size: 24px; }
    .press-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   A. Editorial page template
   ========================================================================== */

.page-shell--editorial {
    background: #fafafa;
}

.page-shell-inner--editorial {
    max-width: 1100px;
}

.editorial-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.editorial-sidebar {
    position: sticky;
    top: 24px;
}

.editorial-sidebar-inner {
    padding: 4px 0;
}

.editorial-sidebar-heading {
    font-family: 'Onest', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 14px;
}

.editorial-meta-list {
    margin: 0;
    padding: 0;
}

.editorial-meta-row {
    margin: 0 0 14px;
}

.editorial-meta-row dt {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 2px;
}

.editorial-meta-row dd {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

.editorial-sidebar-note {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.45;
    color: #4b5563;
}

.editorial-article {
    padding-bottom: 48px;
    min-width: 0;
}

.editorial-header {
    margin-bottom: 28px;
}

.editorial-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 40px;
    letter-spacing: -0.9px;
    line-height: 1.12;
    color: #111;
    margin: 0 0 14px;
}

.editorial-lead {
    font-family: 'Onest', sans-serif;
    font-size: 19px;
    line-height: 1.55;
    color: #374151;
    margin: 0;
    font-weight: 400;
}

.editorial-cover {
    margin: 0 0 32px;
    border-radius: 16px;
    overflow: hidden;
}

.editorial-cover-img {
    display: block;
    width: 100%;
    height: auto;
}

.editorial-content {
    font-family: 'Onest', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #1f2937;
    max-width: 38rem;
}

.editorial-content > p:first-of-type {
    margin-top: 0;
}

/* Drop cap — аккуратно, без дыры */
.editorial-content > p:first-of-type::first-letter {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 3.15em;
    float: left;
    line-height: 0.9;
    margin: 0.05em 0.12em 0 0;
    padding: 0;
    color: #111;
    initial-letter: 3;
}

@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
    .editorial-content > p:first-of-type::first-letter {
        float: none;
        margin: 0 0.08em 0 0;
        -webkit-initial-letter: 3;
        initial-letter: 3;
        line-height: 1;
    }
}

.editorial-content h2 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.4px;
    margin: 2em 0 0.55em;
    color: #111;
}

.editorial-content h3 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 19px;
    margin: 1.6em 0 0.45em;
    color: #111;
}

.editorial-content p {
    margin: 0 0 1.15em;
}

.editorial-content a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.editorial-content a:hover {
    opacity: 0.65;
}

.editorial-content blockquote {
    margin: 1.75em 0;
    padding: 0 0 0 18px;
    border-left: 3px solid #111;
    background: transparent;
    border-radius: 0;
    font-size: 1.02em;
    color: #111;
}

.editorial-content ul,
.editorial-content ol {
    margin: 0 0 1.15em;
    padding-left: 1.25em;
}

.editorial-content li {
    margin-bottom: 0.4em;
}

.editorial-content img {
    border-radius: 12px;
    margin: 1.25em 0;
}

@media (max-width: 900px) {
    .editorial-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .editorial-sidebar {
        position: static;
        order: -1;
        padding-bottom: 8px;
        border-bottom: 1px solid #e5e7eb;
    }
    .editorial-meta-list {
        display: flex;
        flex-wrap: wrap;
        gap: 16px 24px;
    }
    .editorial-meta-row {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .editorial-title {
        font-size: 28px;
    }
    .editorial-lead {
        font-size: 17px;
    }
    .editorial-content {
        font-size: 16px;
    }
}



/* Editorial TOC */
.editorial-toc {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.editorial-toc-heading {
    margin-bottom: 12px;
}

.editorial-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.editorial-toc-item {
    margin: 0;
}

.editorial-toc-item--h3 {
    padding-left: 12px;
}

.editorial-toc-link {
    display: block;
    padding: 6px 10px;
    margin-left: -10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.editorial-toc-link:hover {
    color: #111;
    background: rgba(15, 23, 42, 0.04);
}

.editorial-toc-link.is-active {
    color: #111;
    font-weight: 600;
    border-left-color: #111;
    background: rgba(15, 23, 42, 0.04);
}

.editorial-content h2,
.editorial-content h3 {
    scroll-margin-top: 28px;
}

@media (max-width: 900px) {
    .editorial-toc {
        margin-top: 16px;
    }
    .editorial-toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .editorial-toc-item--h3 {
        padding-left: 0;
    }
    .editorial-toc-link {
        margin-left: 0;
        border-left: none;
        border: 1px solid #e5e7eb;
        background: #fff;
        padding: 6px 12px;
        border-radius: 999px;
    }
    .editorial-toc-link.is-active {
        border-color: #111;
        background: #111;
        color: #fff;
    }
}

/* ==========================================================================
   B. Product page template
   ========================================================================== */

.page-shell--product {
    background: #fafafa;
}

.product-header {
    margin-bottom: 28px;
    max-width: 720px;
}

.product-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 36px;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: #111;
    margin: 0 0 12px;
}

.product-lead {
    font-size: 18px;
    line-height: 1.55;
    color: #4b5563;
    margin: 0 0 20px;
}

.product-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.product-layout--solo {
    grid-template-columns: 1fr;
}

.product-cover {
    margin-bottom: 16px;
    border-radius: 20px;
    overflow: hidden;
}

.product-cover-img {
    display: block;
    width: 100%;
    height: auto;
}

.product-article {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 32px;
    box-sizing: border-box;
}

.product-content {
    max-width: none;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

.product-content h2,
.product-content h3 {
    font-family: 'Unbounded', sans-serif;
    color: #111;
}

.product-content .wp-block-columns {
    margin: 1.5em 0;
}

.product-content .wp-block-button__link {
    border-radius: 10px;
}

.product-aside {
    position: sticky;
    top: 24px;
}

.product-aside-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 24px;
}

.product-aside-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 8px;
    color: #111;
}

.product-aside-text {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0 0 16px;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.product-btn--primary {
    background: #111;
    color: #fff;
}

.product-btn--primary:hover {
    background: #333;
    color: #fff;
}

.product-btn--ghost {
    background: #fff;
    color: #111;
    border: 1px solid #e5e7eb;
}

.product-btn--ghost:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.product-btn--block {
    width: 100%;
    margin-bottom: 8px;
}

.product-btn--block:last-child {
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
    .product-aside {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 28px;
    }
    .product-article {
        padding: 24px 18px;
    }
}


/* ==========================================================================
   Editorial — navbar aligned to article column
   ========================================================================== */

/* Editorial shell width; layout from navbar-layout-* classes */
body.template-editorial .navbar-container {
    max-width: 1100px;
}

body.template-editorial.navbar-layout-stacked .navbar-menu {
    grid-column: 1 / -1;
    width: 100%;
}

/* Статья и навбар — одна ширина колонки */
body.template-editorial .page-shell-inner--editorial {
    max-width: 1100px;
}

@media (max-width: 1024px) {
    body.template-editorial .navbar-menu {
        display: none; /* мобильное меню в панели */
    }
    body.template-editorial .navbar-container {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
    }
}

/* ==========================================================================
   Landing 3D
   ========================================================================== */

.l3d {
    background: #fafafa;
}

.l3d-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--content-pad);
    padding-right: var(--content-pad);
    box-sizing: border-box;
}

.l3d-hero {
    padding: 48px 0 32px;
}

.l3d-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 12px;
}

.l3d-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 48px;
    letter-spacing: -1.2px;
    line-height: 1.08;
    color: #111;
    margin: 0 0 16px;
    max-width: 16ch;
}

.l3d-lead {
    font-size: 18px;
    line-height: 1.55;
    color: #4b5563;
    margin: 0 0 28px;
    max-width: 42rem;
}

.l3d-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.l3d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.l3d-btn--primary {
    background: #111;
    color: #fff;
}

.l3d-btn--primary:hover {
    background: #333;
    color: #fff;
}

.l3d-btn--ghost {
    background: #fff;
    color: #111;
    border: 1px solid #e5e7eb;
}

.l3d-btn--ghost:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.l3d-btn--lg {
    padding: 14px 24px;
    font-size: 15px;
}

.l3d-cover-wrap {
    padding-bottom: 40px;
}

.l3d-cover {
    border-radius: 24px;
    overflow: hidden;
    background: #e5e7eb;
}

.l3d-cover-img {
    display: block;
    width: 100%;
    height: auto;
}

.l3d-intro {
    padding: 8px 0 48px;
}

.l3d-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: start;
}

.l3d-intro-text {
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
    max-width: 40rem;
}

.l3d-intro-text p {
    margin: 0 0 1em;
}

.l3d-intro-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.l3d-intro-card-title {
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 12px;
}

.l3d-pipeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.l3d-pipeline li {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 10px;
}

.l3d-services {
    padding: 16px 0 48px;
}

.l3d-section-head {
    margin-bottom: 24px;
    max-width: 36rem;
}

.l3d-section-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    color: #111;
}

.l3d-section-sub {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
}

.l3d-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.l3d-service-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.l3d-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.12);
}

.l3d-service-num {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.l3d-service-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
    margin: 0 0 12px;
    color: #111;
}

.l3d-service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.l3d-service-list li {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.4;
    padding-left: 14px;
    position: relative;
}

.l3d-service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
}

.l3d-stack {
    padding: 8px 0 48px;
}

.l3d-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.l3d-stack-chip {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.l3d-cta {
    padding: 0 0 64px;
}

.l3d-cta-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #111;
    color: #fff;
    border-radius: 24px;
    padding: 32px 36px;
}

.l3d-cta-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.4px;
    margin: 0 0 8px;
}

.l3d-cta-desc {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
    max-width: 32rem;
    line-height: 1.5;
}

.l3d-cta-card .l3d-btn--primary {
    background: #fff;
    color: #111;
}

.l3d-cta-card .l3d-btn--primary:hover {
    background: #f3f4f6;
    color: #111;
}

@media (max-width: 900px) {
    .l3d-intro-grid {
        grid-template-columns: 1fr;
    }
    .l3d-services-grid {
        grid-template-columns: 1fr;
    }
    .l3d-title {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .l3d-title {
        font-size: 30px;
    }
    .l3d-cta-card {
        padding: 24px;
    }
}

/* ==========================================================================
   Portfolio grid
   ========================================================================== */

.portfolio-section {
    padding: 16px 0 48px;
    background: #fafafa;
}

.portfolio-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--content-pad);
    padding-right: var(--content-pad);
    box-sizing: border-box;
}

.portfolio-section-head {
    margin-bottom: 20px;
    max-width: 36rem;
}

.portfolio-section-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    color: #111;
}

.portfolio-section-sub {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.portfolio-filter {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.portfolio-filter:hover {
    border-color: #d1d5db;
    color: #111;
}

.portfolio-filter.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.portfolio-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card.is-hidden {
    display: none;
}

.portfolio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -14px rgba(15, 23, 42, 0.16);
}

.portfolio-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e5e7eb;
    overflow: hidden;
}

.portfolio-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-card-img {
    transform: scale(1.04);
}

.portfolio-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-cta {
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
}

.portfolio-card-body {
    padding: 16px 18px 18px;
}

.portfolio-card-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

.portfolio-card-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.25px;
    margin: 0 0 4px;
    color: #111;
    line-height: 1.3;
}

.portfolio-card-meta {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

/* Single */
.portfolio-single-inner {
    max-width: var(--content-max);
}

.portfolio-single-header {
    margin-bottom: 28px;
    max-width: 40rem;
}

.portfolio-single-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 36px;
    letter-spacing: -0.8px;
    margin: 8px 0 12px;
    color: #111;
}

.portfolio-single-lead {
    font-size: 18px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}

.portfolio-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
}

.portfolio-single-cover {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #e5e7eb;
}

.portfolio-single-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.portfolio-single-content {
    max-width: 40rem;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

.portfolio-aside-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 24px;
}

.portfolio-aside-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 14px;
}

.portfolio-aside-list {
    margin: 0 0 18px;
    padding: 0;
}

.portfolio-aside-list > div {
    margin-bottom: 12px;
}

.portfolio-aside-list dt {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 2px;
}

.portfolio-aside-list dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.portfolio-aside-card .l3d-btn {
    width: 100%;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.portfolio-archive .portfolio-section {
    padding-top: 0;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .portfolio-single-layout {
        grid-template-columns: 1fr;
    }
    .portfolio-aside-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-single-title {
        font-size: 28px;
    }
}


/* ==========================================================================
   Navbar language switcher (SML) — dropdown, matches menu items
   ========================================================================== */

.navbar-lang {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 40;
}

.navbar-lang .sml-switcher--dropdown {
    position: relative;
}

.navbar-lang .sml-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #111111;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: normal;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.navbar-lang .sml-switcher-toggle:hover,
.navbar-lang .sml-switcher--dropdown.is-open .sml-switcher-toggle {
    background-color: #f3f4f6;
}

.navbar-lang .sml-switcher-chevron {
    flex-shrink: 0;
    opacity: 0.55;
    transition: transform 0.2s ease;
}

.navbar-lang .sml-switcher--dropdown.is-open .sml-switcher-chevron {
    transform: rotate(180deg);
}

.navbar-lang .sml-switcher-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    z-index: 50;
    /* Motion driven by GSAP (autoAlpha / y / scale) */
    visibility: hidden;
    opacity: 0;
    transform-origin: top right;
    pointer-events: none;
}

.navbar-lang .sml-switcher--dropdown.is-open .sml-switcher-menu {
    pointer-events: auto;
}

.navbar-lang .sml-switcher-menu[hidden] {
    display: block !important; /* keep for GSAP measure; visibility via GSAP */
    pointer-events: none;
}

.navbar-lang .sml-switcher-chevron {
    transform-origin: 50% 50%;
}

.navbar-lang .sml-switcher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #111;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.2;
}

.navbar-lang .sml-switcher-item:hover {
    background: #f3f4f6;
}

.navbar-lang .sml-switcher-item.is-active {
    background: #111;
    color: #fff;
}

.navbar-lang .sml-switcher-name {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.65;
}

.navbar-lang .sml-switcher-item.is-active .sml-switcher-name {
    opacity: 0.8;
}

/* Mobile language switcher */
.mobile-lang {
    padding: 12px 16px 16px;
    border-bottom: 1px solid #e5e7eb;
    margin: 0 0 4px;
}

.mobile-lang .sml-switcher,
.mobile-lang .sml-switcher--dropdown,
.mobile-lang .sml-switcher--list {
    width: 100%;
}

.mobile-lang .sml-switcher-toggle {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 14px 16px !important;
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.2;
    color: #111 !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-lang .sml-switcher-toggle:hover,
.mobile-lang .sml-switcher--dropdown.is-open .sml-switcher-toggle {
    background: #e5e7eb !important;
}

.mobile-lang .sml-switcher-chevron {
    flex-shrink: 0;
    opacity: 0.55;
    transition: transform 0.25s ease;
}

.mobile-lang .sml-switcher--dropdown.is-open .sml-switcher-chevron {
    transform: rotate(180deg);
}

.mobile-lang .sml-switcher-menu,
.mobile-lang ul.sml-switcher-menu,
.mobile-lang .sml-switcher-list {
    position: static !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 8px 0 0 !important;
    padding: 6px !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none !important;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
}

/* Collapsed dropdown menu */
.mobile-lang .sml-switcher--dropdown .sml-switcher-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-color: transparent;
    transition:
        max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.22s ease,
        margin 0.22s ease,
        padding 0.22s ease,
        border-color 0.22s ease;
}

.mobile-lang .sml-switcher--dropdown.is-open .sml-switcher-menu {
    max-height: 320px;
    opacity: 1;
    margin-top: 8px !important;
    padding: 6px !important;
    border-color: #e5e7eb;
}

.mobile-lang .sml-switcher-menu[hidden] {
    display: flex !important;
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-color: transparent !important;
    pointer-events: none !important;
}

.mobile-lang .sml-switcher--dropdown.is-open .sml-switcher-menu[hidden] {
    max-height: 320px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    border-color: #e5e7eb !important;
}

/* Language links — kill browser defaults (blue underline) */
.mobile-lang a,
.mobile-lang .sml-switcher-item,
.mobile-lang li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    color: #111 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-lang a:hover,
.mobile-lang .sml-switcher-item:hover,
.mobile-lang li a:hover {
    background: #f3f4f6 !important;
    color: #111 !important;
    text-decoration: none !important;
}

.mobile-lang a.is-active,
.mobile-lang .sml-switcher-item.is-active,
.mobile-lang li a.is-active {
    background: #111 !important;
    color: #fff !important;
}

.mobile-lang .sml-switcher-code {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mobile-lang .sml-switcher-name {
    font-size: 13px !important;
    font-weight: 400 !important;
    opacity: 0.65;
}

.mobile-lang a.is-active .sml-switcher-name,
.mobile-lang .sml-switcher-item.is-active .sml-switcher-name {
    opacity: 0.85;
    color: inherit !important;
}

/* Dark theme — mobile lang */
body.theme-dark .mobile-lang {
    border-bottom-color: #2a2a2e;
}

body.theme-dark .mobile-lang .sml-switcher-toggle {
    background: #1c1c1f !important;
    border-color: #2a2a2e !important;
    color: #f3f4f6 !important;
}

body.theme-dark .mobile-lang .sml-switcher-toggle:hover,
body.theme-dark .mobile-lang .sml-switcher--dropdown.is-open .sml-switcher-toggle {
    background: #252528 !important;
}

body.theme-dark .mobile-lang .sml-switcher-menu,
body.theme-dark .mobile-lang ul.sml-switcher-menu,
body.theme-dark .mobile-lang .sml-switcher-list {
    background: #141416 !important;
    border-color: #2a2a2e !important;
}

body.theme-dark .mobile-lang .sml-switcher--dropdown.is-open .sml-switcher-menu {
    border-color: #2a2a2e !important;
}

body.theme-dark .mobile-lang a,
body.theme-dark .mobile-lang .sml-switcher-item,
body.theme-dark .mobile-lang li a {
    color: #e5e7eb !important;
}

body.theme-dark .mobile-lang a:hover,
body.theme-dark .mobile-lang .sml-switcher-item:hover,
body.theme-dark .mobile-lang li a:hover {
    background: #1c1c1f !important;
    color: #f9fafb !important;
}

body.theme-dark .mobile-lang a.is-active,
body.theme-dark .mobile-lang .sml-switcher-item.is-active,
body.theme-dark .mobile-lang li a.is-active {
    background: #f3f4f6 !important;
    color: #111 !important;
}

@media (max-width: 1024px) {
    .navbar-lang {
        display: none;
    }
}

.hero-card-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.hero-card-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-card-video-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

.hero-card--has-video .hero-card-body,
.hero-card--has-video .hero-card-badge {
    position: relative;
    z-index: 1;
}

.hero-card--has-video .hero-card-title,
.hero-card--has-video .hero-card-desc,
.hero-card--has-video .hero-card-cta,
.hero-card--has-video .hero-card-arrow {
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}


/* ==========================================================================
   Theme: Dark (inversion)
   Toggle: Customizer → Brand → Color scheme
   ========================================================================== */

body.theme-dark {
    background-color: #0b0b0c;
    color: #f3f4f6;
    color-scheme: dark;
}

body.theme-dark .site-navbar,
body.theme-dark .hero-bento:not(.hero-bento--transparent),
body.theme-dark .chips-marquee,
body.theme-dark .press-portal,
body.theme-dark .press-single,
body.theme-dark .site-footer,
body.theme-dark .page-shell,
body.theme-dark .site-content {
    background-color: #0b0b0c;
}

body.theme-dark .logo-main {
    color: #f9fafb;
}

body.theme-dark .menu-item > a,
body.theme-dark .btn-secondary,
body.theme-dark .navbar-lang .sml-switcher-toggle {
    color: #f3f4f6;
}

body.theme-dark .menu-item > a:hover,
body.theme-dark .btn-secondary:hover,
body.theme-dark .navbar-lang .sml-switcher-toggle:hover,
body.theme-dark .navbar-lang .sml-switcher--dropdown.is-open .sml-switcher-toggle {
    background-color: #1c1c1f;
}

body.theme-dark .btn-primary {
    background-color: #f3f4f6;
    color: #111;
}

body.theme-dark .btn-primary:hover {
    background-color: #fff;
}

body.theme-dark .megamenu,
body.theme-dark .bento-dropdown,
body.theme-dark .navbar-lang .sml-switcher-menu {
    background-color: #141416;
    border-color: #2a2a2e;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

body.theme-dark .megamenu-link:hover,
body.theme-dark .navbar-lang .sml-switcher-item:hover,
body.theme-dark .bento-app:hover {
    background-color: #1c1c1f;
}

body.theme-dark .mm-title,
body.theme-dark .mm-desc,
body.theme-dark .app-title,
body.theme-dark .navbar-lang .sml-switcher-item {
    color: #e5e7eb;
}

body.theme-dark .megamenu-title {
    color: #9ca3af;
}

body.theme-dark .mm-icon {
    background: #1c1c1f;
    color: #e5e7eb;
}

body.theme-dark .hamburger-inner,
body.theme-dark .hamburger-inner::before,
body.theme-dark .hamburger-inner::after {
    background-color: #f3f4f6;
}

body.theme-dark .mobile-menu,
body.theme-dark .mobile-menu-inner {
    background-color: #0b0b0c;
    color: #f3f4f6;
}

body.theme-dark .mobile-menu a,
body.theme-dark .mobile-menu-title,
body.theme-dark .mobile-bento-label {
    color: #f3f4f6;
}

body.theme-dark .mobile-overlay {
    background: rgba(0, 0, 0, 0.65);
}

body.theme-dark .mobile-lang .sml-switcher-toggle {
    background: #141416;
    border-color: #2a2a2e;
    color: #f3f4f6;
}

body.theme-dark .hero-card {
    border-color: transparent;
}

body.theme-dark .chip {
    background: #141416;
    border-color: #2a2a2e;
    color: #e5e7eb;
}

body.theme-dark .press-card,
body.theme-dark .press-aside-card,
body.theme-dark .portfolio-card,
body.theme-dark .editorial-sidebar-card,
body.theme-dark .product-sidebar-card {
    background: #141416;
    border-color: #2a2a2e;
    color: #e5e7eb;
}

body.theme-dark .press-card-title a,
body.theme-dark .page-title,
body.theme-dark .editorial-title,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3 {
    color: #f9fafb;
}

body.theme-dark .press-card-sub,
body.theme-dark .press-lead,
body.theme-dark .page-lead,
body.theme-dark .breadcrumb,
body.theme-dark .press-card-date,
body.theme-dark .footer-copy,
body.theme-dark .footer-desc {
    color: #9ca3af;
}

body.theme-dark .press-filter {
    background: #141416;
    border-color: #2a2a2e;
    color: #e5e7eb;
}

body.theme-dark .press-filter.is-active,
body.theme-dark .press-filter:hover {
    background: #f3f4f6;
    color: #111;
    border-color: #f3f4f6;
}

body.theme-dark .site-footer {
    border-top-color: #2a2a2e;
}

body.theme-dark .footer-logo-main {
    color: #f9fafb;
}

body.theme-dark a {
    color: #93c5fd;
}

body.theme-dark .page-shell,
body.theme-dark .editorial-content,
body.theme-dark .product-content {
    color: #e5e7eb;
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
    background: #141416;
    border-color: #2a2a2e;
    color: #f3f4f6;
}

body.theme-dark .bento-btn:hover {
    background: #1c1c1f;
}

body.theme-dark .bento-grip-icon {
    color: #f3f4f6;
}


/* ==========================================================================
   FAQ section
   ========================================================================== */

.faq-section {
    padding-top: 72px;
    padding-bottom: 88px;
    background-color: #fafafa;
}

.faq-section-inner {
    max-width: 820px;
    margin: 0 auto;
    padding-left: var(--content-pad);
    padding-right: var(--content-pad);
    box-sizing: border-box;
}

.faq-header {
    text-align: center;
    margin-bottom: 36px;
}

.faq-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111;
    margin: 0 0 12px;
}

.faq-lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #6b7280;
}

.faq-tabs {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin: 0 auto 40px;
    padding: 5px;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 999px;
    background: #ececef;
    border: 1px solid #e2e2e6;
}

.faq-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* When tabs sit in section without extra wrap, center the pill bar */
.faq-section-inner > .faq-tabs {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.faq-tab-pill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 999px;
    background: #111;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    will-change: transform, width, height;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.faq-tab-pill.is-ready {
    opacity: 1;
}

.faq-tab {
    position: relative;
    z-index: 1;
    appearance: none;
    border: none;
    background: transparent;
    color: #6b7280;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.faq-tab:hover {
    color: #111;
}

.faq-tab.is-active {
    color: #fff;
    background: transparent;
}

.faq-tab.is-active:hover {
    color: #fff;
}

/* Fallback without animated pill */
.faq-tabs:not(.faq-tabs--animated) .faq-tab.is-active {
    background: #111;
    color: #fff;
}

.faq-list {
    border-top: 1px solid #e5e7eb;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item.is-filtered-out {
    display: none !important;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: #111;
}

.faq-question-text {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-icon-bar {
    position: absolute;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.faq-icon-bar--h {
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
}

.faq-icon-bar--v {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
}

.faq-item.is-open .faq-icon-bar--v {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    overflow: hidden;
}

.faq-answer-inner {
    padding: 0 4px 22px;
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.65;
}

.faq-answer-inner p:first-child {
    margin-top: 0;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* Dark theme FAQ */
body.theme-dark .faq-section {
    background-color: #0b0b0c;
}

body.theme-dark .faq-title {
    color: #f9fafb;
}

body.theme-dark .faq-lead,
body.theme-dark .faq-answer-inner {
    color: #9ca3af;
}

body.theme-dark .faq-tabs {
    background: #1a1a1d;
    border-color: #2a2a2e;
}

body.theme-dark .faq-tab {
    color: #9ca3af;
    border: none;
    background: transparent;
}

body.theme-dark .faq-tab:hover {
    color: #f3f4f6;
    background: transparent;
}

body.theme-dark .faq-tab-pill {
    background: #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

body.theme-dark .faq-tab.is-active {
    color: #111;
    background: transparent;
}

body.theme-dark .faq-tabs:not(.faq-tabs--animated) .faq-tab.is-active {
    background: #f3f4f6;
    color: #111;
}

body.theme-dark .faq-list,
body.theme-dark .faq-item {
    border-color: #2a2a2e;
}

body.theme-dark .faq-question {
    color: #f3f4f6;
}


/* ==========================================================================
   Tech stack
   ========================================================================== */

.tech-stack {
    padding-top: 56px;
    padding-bottom: 64px;
    background-color: #fafafa;
}

.tech-stack-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--content-pad);
    padding-right: var(--content-pad);
    box-sizing: border-box;
}

.tech-stack-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    letter-spacing: -0.02em;
    color: #111;
    margin: 0 0 28px;
    text-align: center;
}

.tech-stack-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
}

.tech-stack-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a.tech-stack-chip:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.tech-stack-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #374151;
}

.tech-stack-icon svg,
.tech-stack-icon i {
    width: 16px;
    height: 16px;
}

body.theme-dark .tech-stack {
    background-color: #0b0b0c;
}

body.theme-dark .tech-stack-title {
    color: #f9fafb;
}

body.theme-dark .tech-stack-chip {
    background: #141416;
    border-color: #2a2a2e;
    color: #e5e7eb;
}

body.theme-dark a.tech-stack-chip:hover {
    background: #1c1c1f;
    border-color: #3f3f46;
}

body.theme-dark .tech-stack-icon {
    background: #1c1c1f;
    color: #e5e7eb;
}


/* ==========================================================================
   Services
   ========================================================================== */

.services-section {
    padding-top: 64px;
    padding-bottom: 72px;
    background: #fafafa;
}

.services-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--content-pad);
    padding-right: var(--content-pad);
    box-sizing: border-box;
}

.services-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 32px;
}

.services-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: -0.02em;
    color: #111;
    margin: 0 0 8px;
}

.services-lead {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 36em;
}

.services-all-link {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}

.services-all-link:hover {
    text-decoration: underline;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .services-grid--archive {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 20px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.service-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.service-card-icon svg,
.service-card-icon i {
    width: 22px;
    height: 22px;
}

.service-card-icon--lg {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 8px;
}

.service-card-icon--lg svg,
.service-card-icon--lg i {
    width: 28px;
    height: 28px;
}

.service-card-title {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    color: #111;
    margin-bottom: 6px;
}

.service-card-sub {
    display: block;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #6b7280;
}

.service-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    background: #111;
    color: #fff;
}

.services-archive-header {
    margin-bottom: 36px;
}

.service-back {
    margin: 0 0 20px;
}

.service-back a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.service-back a:hover {
    color: #111;
}

.service-single-header {
    margin-bottom: 28px;
}

.service-single-thumb {
    margin-bottom: 28px;
    border-radius: 16px;
    overflow: hidden;
}

.service-single-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.page-shell-inner--narrow {
    max-width: 720px;
}

body.theme-dark .services-section {
    background: #0b0b0c;
}

body.theme-dark .services-title,
body.theme-dark .service-card-title,
body.theme-dark .services-all-link {
    color: #f9fafb;
}

body.theme-dark .services-lead,
body.theme-dark .service-card-sub {
    color: #9ca3af;
}

body.theme-dark .service-card {
    background: #141416;
    border-color: #2a2a2e;
}

body.theme-dark .service-card:hover {
    border-color: #3f3f46;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.theme-dark .service-card-icon {
    background: #1c1c1f;
    color: #e5e7eb;
}


/* Navbar style modifiers (Customizer) */
body.navbar-transparent .site-navbar {
    background: transparent !important;
    background-color: transparent !important;
}

body.navbar-border .site-navbar {
    border-bottom: 1px solid #e5e7eb;
}

body.theme-dark.navbar-border .site-navbar {
    border-bottom-color: #2a2a2e;
}

body.navbar-sticky .site-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.navbar-blur .site-navbar {
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}


/* ==========================================================================
   Stacked menu row — tag/badge style + divider under logo row
   ========================================================================== */

/* Divider between logo row and second menu row */
body.navbar-layout-stacked .navbar-menu,
body.navbar-layout-both .navbar-menu--stack-row,
body.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    gap: 8px;
    align-items: center;
}

body.theme-dark.navbar-layout-stacked .navbar-menu,
body.theme-dark.navbar-layout-both .navbar-menu--stack-row,
body.theme-dark.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked {
    border-top-color: #2a2a2e;
}

body.palette-custom.navbar-layout-stacked .navbar-menu,
body.palette-custom.navbar-layout-both .navbar-menu--stack-row,
body.palette-custom.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked {
    border-top-color: var(--st-border, #e5e7eb);
}

/* Badge / tag links on second row */
body.navbar-layout-stacked .navbar-menu > .menu-item > a,
body.navbar-layout-both .navbar-menu--stack-row > .menu-item > a,
body.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

body.navbar-layout-stacked .navbar-menu > .menu-item:first-child > a,
body.navbar-layout-both .navbar-menu--stack-row > .menu-item:first-child > a,
body.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item:first-child > a {
    padding-left: 12px;
    margin-left: 0;
}

/* Default badges only — don't fight custom colors */
body.navbar-layout-stacked .navbar-menu > .menu-item:not(.menu-item--custom-badge) > a:hover,
body.navbar-layout-both .navbar-menu--stack-row > .menu-item:not(.menu-item--custom-badge) > a:hover,
body.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item:not(.menu-item--custom-badge) > a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111;
}

body.navbar-layout-stacked .navbar-menu > .menu-item:not(.menu-item--custom-badge).current-menu-item > a,
body.navbar-layout-stacked .navbar-menu > .menu-item:not(.menu-item--custom-badge).current-menu-ancestor > a,
body.navbar-layout-both .navbar-menu--stack-row > .menu-item:not(.menu-item--custom-badge).current-menu-item > a,
body.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item:not(.menu-item--custom-badge).current-menu-item > a {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* Custom-colored badges: keep palette, soft interaction */
body.navbar-layout-stacked .navbar-menu > .menu-item--custom-badge > a,
body.navbar-layout-both .navbar-menu--stack-row > .menu-item--custom-badge > a,
body.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item--custom-badge > a {
    transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

body.navbar-layout-stacked .navbar-menu > .menu-item--custom-badge > a:hover,
body.navbar-layout-both .navbar-menu--stack-row > .menu-item--custom-badge > a:hover,
body.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item--custom-badge > a:hover {
    filter: brightness(0.94);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    /* do not override background/color — inline styles stay */
}

body.navbar-layout-stacked .navbar-menu > .menu-item--custom-badge > a:active,
body.navbar-layout-both .navbar-menu--stack-row > .menu-item--custom-badge > a:active,
body.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item--custom-badge > a:active {
    filter: brightness(0.9);
    transform: translateY(0);
    box-shadow: none;
}

body.navbar-layout-stacked .navbar-menu > .menu-item--custom-badge.current-menu-item > a,
body.navbar-layout-stacked .navbar-menu > .menu-item--custom-badge.current-menu-ancestor > a,
body.navbar-layout-both .navbar-menu--stack-row > .menu-item--custom-badge.current-menu-item > a,
body.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item--custom-badge.current-menu-item > a {
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.22);
    filter: none;
    font-weight: 600;
}

body.theme-dark.navbar-layout-stacked .navbar-menu > .menu-item--custom-badge.current-menu-item > a,
body.theme-dark.navbar-layout-both .navbar-menu--stack-row > .menu-item--custom-badge.current-menu-item > a {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* Smaller chevron inside badge */
body.navbar-layout-stacked .navbar-menu > .menu-item > a .icon,
body.navbar-layout-both .navbar-menu--stack-row > .menu-item > a .icon,
body.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item > a .icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Dark theme badges */
body.theme-dark.navbar-layout-stacked .navbar-menu > .menu-item > a,
body.theme-dark.navbar-layout-both .navbar-menu--stack-row > .menu-item > a,
body.theme-dark.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item > a {
    background: #141416;
    border-color: #2a2a2e;
    color: #e5e7eb;
}

body.theme-dark.navbar-layout-stacked .navbar-menu > .menu-item:not(.menu-item--custom-badge) > a:hover,
body.theme-dark.navbar-layout-both .navbar-menu--stack-row > .menu-item:not(.menu-item--custom-badge) > a:hover,
body.theme-dark.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item:not(.menu-item--custom-badge) > a:hover {
    background: #1c1c1f;
    border-color: #3f3f46;
    color: #f9fafb;
}

body.theme-dark.navbar-layout-stacked .navbar-menu > .menu-item:not(.menu-item--custom-badge).current-menu-item > a,
body.theme-dark.navbar-layout-stacked .navbar-menu > .menu-item:not(.menu-item--custom-badge).current-menu-ancestor > a,
body.theme-dark.navbar-layout-both .navbar-menu--stack-row > .menu-item:not(.menu-item--custom-badge).current-menu-item > a,
body.theme-dark.navbar-layout-both .navbar-menu.navbar-menu--primary_stacked > .menu-item:not(.menu-item--custom-badge).current-menu-item > a {
    background: #f3f4f6;
    border-color: #f3f4f6;
    color: #111;
}

/* Inline row (first line next to logo) stays as normal links — not badges */
body.navbar-layout-both .navbar-menu--inline-row > .menu-item > a,
body.navbar-layout-both .navbar-menu.navbar-menu--primary > .menu-item > a {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 16px;
}


.menu-badge-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke-width: 2;
}

.navbar-menu > .menu-item > a .menu-badge-icon {
    display: inline-block;
    vertical-align: middle;
}


/* Global menu hover must not wash out custom badge colors */
.navbar-menu > .menu-item--custom-badge > a:hover {
    background-image: none;
}
.navbar-menu > .menu-item--custom-badge.current-menu-item > a:hover {
    filter: brightness(0.96);
}


/* ==========================================================================
   Services catalog (archive)
   ========================================================================== */

.services-catalog {
    padding: 32px 0 80px;
    background: #fafafa;
}

.services-catalog-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--content-pad);
    padding-right: var(--content-pad);
    box-sizing: border-box;
}

.services-breadcrumbs {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.services-breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
}

.services-breadcrumbs a:hover {
    color: #111;
}

.services-catalog-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    color: #111;
}

.services-catalog-lead {
    margin: 0 0 8px;
    color: #6b7280;
    max-width: 40em;
}

.services-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 20px;
}

.services-chip {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.services-chip:hover {
    border-color: #d1d5db;
}

.services-chip.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.services-search-wrap {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.services-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 420px;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 10px 16px;
}

.services-search-icon {
    display: flex;
    color: #9ca3af;
}

.services-search-icon svg {
    width: 18px;
    height: 18px;
}

.services-search input {
    border: 0;
    background: transparent;
    flex: 1;
    font: inherit;
    font-size: 15px;
    outline: none;
    color: #111;
}

.services-catalog-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.services-filters {
    position: sticky;
    top: 24px;
}

.services-filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.services-filter-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #111;
}

.services-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    cursor: pointer;
}

.services-filter-reset {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b7280;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.services-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 1100px) {
    .services-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px 22px 48px;
    border-radius: 20px;
    text-decoration: none;
    color: #111;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.svc-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    min-height: 20px;
}

.svc-card-type {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.3;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.svc-card-pill {
    display: inline-flex;
    align-items: center;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #166534;
}

.svc-card-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
    max-width: calc(100% - 100px);
    color: #111;
}

.svc-card-meta {
    font-family: 'Onest', system-ui, sans-serif;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: #4b5563;
    max-width: calc(100% - 100px);
}

.svc-card-visual {
    position: absolute;
    right: 16px;
    bottom: 40px;
    width: 38%;
    max-width: 120px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
}

.svc-card-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.svc-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.svc-card-icon svg {
    width: 26px;
    height: 26px;
}

.svc-card-brands {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.svc-card-brand {
    display: inline-flex;
    align-items: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 0;
    background: transparent;
}

.services-empty {
    color: #6b7280;
    padding: 24px 0;
}

@media (max-width: 900px) {
    .services-catalog-body {
        grid-template-columns: 1fr;
    }
    .services-filters {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .services-catalog-grid {
        grid-template-columns: 1fr;
    }
}

body.theme-dark .services-catalog {
    background: #0b0b0c;
}

body.theme-dark .services-catalog-title {
    color: #f9fafb;
}

body.theme-dark .services-chip {
    background: #141416;
    border-color: #2a2a2e;
    color: #e5e7eb;
}

body.theme-dark .services-chip.is-active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

body.theme-dark .services-search {
    background: #1c1c1f;
}

body.theme-dark .services-search input {
    color: #f3f4f6;
}

body.theme-dark .services-filter-title {
    color: #f3f4f6;
}

body.theme-dark .services-filter-group,
body.theme-dark .services-search-wrap {
    border-color: #2a2a2e;
}

.svc-card.is-filtered-out,[hidden].svc-card{display:none!important;}


/* Bento on dark theme — readable titles + tiles */
body.theme-dark .bento-dropdown {
    background-color: #141416;
    border: 1px solid #2a2a2e;
}

body.theme-dark .bento-app .app-title,
body.theme-dark .mobile-bento-item span,
body.theme-dark .bento-app .app-structuralist + .app-title,
body.theme-dark .bento-app .app-wp + .app-title,
body.theme-dark .bento-app .app-editorial + .app-title,
body.theme-dark .bento-app .app-mobility + .app-title,
body.theme-dark .mobile-bento-item .app-structuralist + span,
body.theme-dark .mobile-bento-item .app-wp + span,
body.theme-dark .mobile-bento-item .app-editorial + span,
body.theme-dark .mobile-bento-item .app-mobility + span {
    color: #e5e7eb !important;
}

body.theme-dark .bento-app .app-wp + .app-title,
body.theme-dark .mobile-bento-item .app-wp + span {
    color: #93c5fd !important;
}

body.theme-dark .bento-app .app-editorial + .app-title,
body.theme-dark .mobile-bento-item .app-editorial + span {
    color: #fdba74 !important;
}

body.theme-dark .bento-app .app-mobility + .app-title,
body.theme-dark .mobile-bento-item .app-mobility + span {
    color: #93c5fd !important;
}

body.theme-dark .bento-app .app-structuralist + .app-title,
body.theme-dark .mobile-bento-item .app-structuralist + span {
    color: #f3f4f6 !important;
}

/* Tiles: structuralist black blends into dark panel — lift contrast */
body.theme-dark .app-icon.app-structuralist {
    background-color: #1c1c1f;
    color: #ffffff;
    border: 1px solid #3f3f46;
}

body.theme-dark .app-icon.app-wp {
    background-color: #172554;
    color: #93c5fd;
    border-color: #1e3a8a;
}

body.theme-dark .app-icon.app-editorial {
    background-color: #431407;
    color: #fdba74;
    border-color: #9a3412;
}

body.theme-dark .app-icon.app-mobility {
    background-color: #172554;
    color: #93c5fd;
    border-color: #1e3a8a;
}

body.theme-dark .bento-app:hover {
    background-color: #1c1c1f;
}

body.theme-dark .bento-btn {
    color: #e5e7eb;
}

body.theme-dark .bento-btn .bento-grip-icon,
body.theme-dark .bento-btn svg {
    stroke: #e5e7eb;
    color: #e5e7eb;
}

body.theme-dark .bento-btn:hover,
body.theme-dark .bento-btn:active,
body.theme-dark .bento-btn[aria-expanded="true"] {
    background-color: #1c1c1f;
    color: #f9fafb;
}

body.theme-dark .bento-btn:hover .bento-grip-icon,
body.theme-dark .bento-btn:hover svg,
body.theme-dark .bento-btn:active .bento-grip-icon,
body.theme-dark .bento-btn:active svg,
body.theme-dark .bento-btn[aria-expanded="true"] .bento-grip-icon,
body.theme-dark .bento-btn[aria-expanded="true"] svg {
    stroke: #f9fafb;
    color: #f9fafb;
}


/* Mobile menu — dark theme polish */
body.theme-dark .mobile-menu,
body.theme-dark .mobile-menu-inner {
    background-color: #0b0b0c;
    color: #f3f4f6;
}

body.theme-dark .mobile-menu-header {
    border-bottom-color: #2a2a2e;
}

body.theme-dark .mobile-menu-title,
body.theme-dark .mobile-close {
    color: #f3f4f6;
}

body.theme-dark .mobile-close:hover {
    background: #1c1c1f;
    color: #fff;
}

body.theme-dark .mobile-menu-item {
    border-bottom-color: #1c1c1f;
}

body.theme-dark .mobile-menu-link {
    color: #f3f4f6 !important;
    background: transparent !important;
}

body.theme-dark .mobile-menu-link:hover,
body.theme-dark .mobile-menu-link:focus {
    background: #141416 !important;
    color: #fff !important;
}

body.theme-dark .mobile-menu-item.has-children.is-open > .mobile-menu-link {
    background: #141416 !important;
    color: #fff !important;
}

body.theme-dark .mobile-chevron {
    color: #9ca3af;
}

body.theme-dark .mobile-submenu {
    background: #111113;
}

body.theme-dark .mobile-submenu a {
    color: #e5e7eb;
}

body.theme-dark .mobile-bento {
    border-top-color: #2a2a2e;
}

body.theme-dark .mobile-bento-label {
    color: #f3f4f6;
}

body.theme-dark .mobile-bento-item {
    background: #141416 !important;
    border: 1px solid #2a2a2e;
}

body.theme-dark .mobile-bento-item:hover {
    background: #1c1c1f !important;
}

body.theme-dark .mobile-bento-item span,
body.theme-dark .mobile-bento-item .app-structuralist + span,
body.theme-dark .mobile-bento-item .app-wp + span,
body.theme-dark .mobile-bento-item .app-editorial + span,
body.theme-dark .mobile-bento-item .app-mobility + span {
    color: #e5e7eb !important;
}

body.theme-dark .mobile-actions .btn-primary {
    background-color: #f3f4f6 !important;
    color: #111 !important;
    border: none;
}

body.theme-dark .mobile-actions .btn-secondary {
    background-color: transparent !important;
    color: #e5e7eb !important;
    border: 1px solid #2a2a2e !important;
}

body.theme-dark .mobile-actions .btn-secondary:hover {
    background-color: #1c1c1f !important;
}




/* ==========================================================================
   Service cards — layout & type (high specificity)
   ========================================================================== */
.services-catalog-grid a.svc-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-height: 240px !important;
    padding: 24px 24px 52px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    color: #111 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.services-catalog-grid a.svc-card .svc-card-top {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
    width: 100% !important;
}

.services-catalog-grid a.svc-card .svc-card-type {
    font-family: 'Onest', system-ui, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: #6b7280 !important;
}

.services-catalog-grid a.svc-card .svc-card-pill {
    font-family: 'Onest', system-ui, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
}

.services-catalog-grid a.svc-card .svc-card-title {
    font-family: 'Unbounded', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 10px !important;
    max-width: min(70%, 280px) !important;
    color: #111 !important;
}

.services-catalog-grid a.svc-card .svc-card-meta {
    font-family: 'Onest', system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: #4b5563 !important;
    margin: 0 !important;
    max-width: min(70%, 280px) !important;
}

.services-catalog-grid a.svc-card .svc-card-visual {
    position: absolute !important;
    right: 18px !important;
    bottom: 44px !important;
    width: 36% !important;
    max-width: 120px !important;
    margin: 0 !important;
}

.services-catalog-grid a.svc-card .svc-card-brands {
    position: absolute !important;
    left: 24px !important;
    bottom: 18px !important;
    right: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    z-index: 3 !important;
}

.services-catalog-grid a.svc-card .svc-card-brand {
    font-family: 'Unbounded', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    background: transparent !important;
    padding: 0 !important;
}

@media (max-width: 600px) {
    .services-catalog-grid a.svc-card {
        min-height: 200px !important;
        padding: 20px 20px 48px !important;
    }
    .services-catalog-grid a.svc-card .svc-card-title {
        max-width: 65% !important;
        font-size: 1.05rem !important;
    }
}


/* Home + catalog service cards */
.services-catalog-grid--home {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}
@media (min-width: 960px) {
    .services-catalog-grid--home {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .services-catalog-grid--home {
        grid-template-columns: 1fr;
    }
}

.services-catalog-grid a.svc-card,
.services-catalog-grid--home a.svc-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-height: 240px !important;
    padding: 24px 24px 52px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    color: #111 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.services-catalog-grid a.svc-card .svc-card-title,
.services-catalog-grid--home a.svc-card .svc-card-title {
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 10px !important;
    max-width: min(72%, 260px) !important;
    color: #111 !important;
}
.services-catalog-grid a.svc-card .svc-card-meta,
.services-catalog-grid--home a.svc-card .svc-card-meta {
    font-family: 'Onest', system-ui, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #4b5563 !important;
    max-width: min(72%, 260px) !important;
}
.services-catalog-grid a.svc-card .svc-card-brands,
.services-catalog-grid--home a.svc-card .svc-card-brands {
    position: absolute !important;
    left: 24px !important;
    bottom: 18px !important;
    z-index: 3 !important;
}
.services-catalog-grid a.svc-card .svc-card-brand,
.services-catalog-grid--home a.svc-card .svc-card-brand {
    font-family: 'Unbounded', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}
.services-catalog-grid a.svc-card .svc-card-visual,
.services-catalog-grid--home a.svc-card .svc-card-visual {
    position: absolute !important;
    right: 18px !important;
    bottom: 44px !important;
}

body.theme-dark .logo-main,
body.theme-dark .st-name,
body.theme-dark .footer-logo-main {
    color: #f9fafb;
}


/* ==========================================================================
   Single service — standardized layout
   ========================================================================== */
.svc-single {
    --svc-bg: #eef2ff;
    background: #fafafa;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.svc-single-hero {
    background: var(--svc-bg);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    width: 100%;
}

.svc-single-hero-inner,
.svc-single-body-inner {
    max-width: min(1600px, 100%);
    width: 100%;
    margin: 0 auto;
    padding-left: max(var(--content-pad, 24px), calc((100vw - 1600px) / 2));
    padding-right: max(var(--content-pad, 24px), calc((100vw - 1600px) / 2));
    box-sizing: border-box;
}

/* True full-bleed: content uses site content-max edge-to-edge feel */
.svc-single-hero-inner,
.svc-single-body-inner {
    max-width: var(--content-max, 1400px);
    padding-left: var(--content-pad, 24px);
    padding-right: var(--content-pad, 24px);
}

.svc-single-hero-inner {
    padding-top: 32px;
    padding-bottom: 48px;
}

.svc-single-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 24px;
}

.svc-single-crumbs a {
    color: #6b7280;
    text-decoration: none;
}

.svc-single-crumbs a:hover {
    color: #111;
}

.svc-single-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 320px);
    gap: 40px 48px;
    align-items: center;
    width: 100%;
}

.svc-single-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.svc-single-type,
.svc-single-cat {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.svc-single-pill {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #166534;
}

.svc-single-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #111;
    margin: 0 0 14px;
}

.svc-single-meta {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0 0 20px;
    max-width: 36em;
}

.svc-single-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.svc-single-brands .st-wordmark {
    font-size: 12px;
}

.svc-single-brands .st-name {
    font-weight: 900;
    color: #111;
}

.svc-single-brands .st-sub {
    font-weight: 300;
}

.svc-single-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.svc-single-cover {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 16px;
    display: block;
}

.svc-single-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.svc-single-icon svg {
    width: 36px;
    height: 36px;
}

.svc-single-body {
    padding: 40px 0 72px;
}

.svc-single-body-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 48px;
    align-items: start;
    width: 100%;
}

.svc-single-content {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1f2937;
}

.svc-single-content > *:first-child {
    margin-top: 0;
}

.svc-single-content h2,
.svc-single-content h3 {
    font-family: 'Unbounded', sans-serif;
    letter-spacing: -0.02em;
    color: #111;
}

.svc-single-aside-card {
    position: sticky;
    top: 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.svc-single-aside-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 16px;
    color: #111;
}

.svc-single-dl {
    margin: 0 0 20px;
}

.svc-single-dl > div {
    display: grid;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.svc-single-dl > div:last-child {
    border-bottom: 0;
}

.svc-single-dl dt {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
}

.svc-single-dl dd {
    margin: 0;
    font-size: 14px;
    color: #111;
    font-weight: 500;
}

.svc-single-cta,
.svc-single-back {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 0 0 10px;
    padding: 12px 16px !important;
    font-size: 15px !important;
}

.svc-single-back {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .svc-single-hero-grid {
        grid-template-columns: 1fr;
    }
    .svc-single-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
        justify-content: flex-start;
    }
    .svc-single-body-inner {
        grid-template-columns: 1fr;
    }
    .svc-single-aside-card {
        position: static;
    }
}

body.theme-dark .svc-single {
    background: #0b0b0c;
}
/* Hero stays light surface — keep dark ink there */
body.theme-dark .svc-single-title,
body.theme-dark .svc-single-brands .st-name {
    color: #111111 !important;
}
body.theme-dark .svc-single-aside-title,
body.theme-dark .svc-single-dl dd,
body.theme-dark .svc-single-content h2,
body.theme-dark .svc-single-content h3 {
    color: #f9fafb;
}
body.theme-dark .svc-single-meta,
body.theme-dark .svc-single-crumbs,
body.theme-dark .svc-single-type,
body.theme-dark .svc-single-cat {
    color: #4b5563 !important;
}
body.theme-dark .svc-single-content {
    color: #d1d5db;
}
body.theme-dark .svc-single-crumbs a {
    color: #6b7280;
}
body.theme-dark .svc-single-crumbs a:hover {
    color: #111;
}
body.theme-dark .svc-single-aside-card {
    background: #141416;
    border-color: #2a2a2e;
}
body.theme-dark .svc-single-dl > div {
    border-color: #2a2a2e;
}


/* superseded by dark surface cards */


/* Light theme hero ink */
body:not(.theme-dark) .svc-single-hero .svc-single-title {
    color: #111111 !important;
}
body:not(.theme-dark) .svc-single-hero .st-name {
    color: #111111 !important;
}


/* ==========================================================================
   Dark theme: services — soft dark surfaces (no harsh light panels)
   ========================================================================== */
body.theme-dark .svc-single {
    background: #0b0b0c;
}

body.theme-dark .svc-single-hero {
    background: #141416 !important;
    border-bottom-color: #2a2a2e;
}

body.theme-dark .svc-single-hero .svc-single-title {
    color: #f9fafb !important;
    -webkit-text-fill-color: #f9fafb !important;
}

body.theme-dark .svc-single-hero .st-name {
    color: #f9fafb !important;
    -webkit-text-fill-color: #f9fafb !important;
}

body.theme-dark .svc-single-hero .svc-single-meta,
body.theme-dark .svc-single-hero .svc-single-type,
body.theme-dark .svc-single-hero .svc-single-cat,
body.theme-dark .svc-single-hero .svc-single-crumbs,
body.theme-dark .svc-single-hero .svc-single-crumbs a,
body.theme-dark .svc-single-hero .svc-single-crumbs span {
    color: #9ca3af !important;
}

body.theme-dark .svc-single-hero .svc-single-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #86efac;
}

body.theme-dark .svc-single-icon {
    background: #1c1c1f;
    box-shadow: none;
    color: #e5e7eb;
}

body.theme-dark .svc-single-body {
    background: #0b0b0c;
}

body.theme-dark .svc-single-content {
    color: #d1d5db !important;
}

body.theme-dark .svc-single-aside-card {
    background: #141416;
    border-color: #2a2a2e;
}

/* Homepage / catalog service cards on dark theme */
body.theme-dark a.svc-card {
    background: #141416 !important;
    border: 1px solid #2a2a2e;
    color: #f3f4f6 !important;
}

body.theme-dark a.svc-card .svc-card-title {
    color: #f9fafb !important;
    -webkit-text-fill-color: #f9fafb !important;
}

body.theme-dark a.svc-card .svc-card-meta {
    color: #9ca3af !important;
}

body.theme-dark a.svc-card .svc-card-type {
    color: #9ca3af !important;
}

body.theme-dark a.svc-card .st-name {
    color: #f9fafb !important;
    -webkit-text-fill-color: #f9fafb !important;
}

body.theme-dark a.svc-card .svc-card-icon {
    background: #1c1c1f !important;
    color: #e5e7eb !important;
    box-shadow: none;
}

body.theme-dark a.svc-card .svc-card-pill {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #86efac !important;
}

body.theme-dark .services-section--home,
body.theme-dark .services-catalog {
    background: #0b0b0c;
}

body.theme-dark .services-title,
body.theme-dark .services-catalog-title {
    color: #f9fafb;
}

body.theme-dark .services-all-link {
    color: #9ca3af;
}


/* svc-card smooth transitions */
a.svc-card {
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.3s ease,
        border-color 0.3s ease,
        opacity 0.3s ease;
}
a.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}
a.svc-card .svc-card-icon,
a.svc-card .svc-card-img {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
a.svc-card:hover .svc-card-icon,
a.svc-card:hover .svc-card-img {
    transform: scale(1.06);
}
body.theme-dark a.svc-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    border-color: #3f3f46;
}
@media (prefers-reduced-motion: reduce) {
    a.svc-card,
    a.svc-card .svc-card-icon,
    a.svc-card .svc-card-img {
        transition: none !important;
    }
    a.svc-card:hover {
        transform: none;
    }
}


.svc-single-faq {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}
.svc-single-faq .faq-header {
    text-align: left;
    margin-bottom: 20px;
}
.svc-single-faq .faq-title {
    font-size: 1.25rem;
}
body.theme-dark .svc-single-faq {
    border-top-color: #2a2a2e;
}









/* ==========================================================================
   Bento — equal icon row + text rows (subgrid)
   ========================================================================== */
.bento-dropdown {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: 48px 14px 14px !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 16px 14px !important;
    min-width: 300px;
    max-width: 400px;
    width: max-content;
    box-sizing: border-box;
}

.bento-dropdown .bento-app {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: subgrid !important;
    grid-row: span 3 !important;
    justify-items: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.bento-dropdown .bento-app:hover {
    background: transparent !important;
}

/* ICON ROW — identical box for every tile */
.bento-dropdown .bento-app .app-icon {
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    border-style: solid !important;
    border-width: 1px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    transform: none !important; /* no hover scale — keeps row flat */
}

.bento-dropdown .bento-app:hover .app-icon {
    transform: none !important;
}

.bento-dropdown .bento-app .app-title,
.bento-dropdown .bento-app .st-wordmark,
.bento-dropdown .bento-app .app-title.st-wordmark {
    display: contents !important;
}

.bento-dropdown .bento-app .st-name {
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: center !important;
    display: block !important;
    width: 100% !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 900 !important;
    font-size: 9px !important;
    line-height: 14px !important;
    color: #111 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-transform: uppercase !important;
    letter-spacing: -0.02em !important;
}

.bento-dropdown .bento-app .st-sub {
    grid-row: 3 !important;
    align-self: center !important;
    justify-self: center !important;
    display: block !important;
    width: 100% !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 300 !important;
    font-size: 9px !important;
    line-height: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-transform: uppercase !important;
    letter-spacing: -0.02em !important;
}

@supports not (grid-template-rows: subgrid) {
    .bento-dropdown {
        grid-template-rows: none !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
    }
    .bento-dropdown .bento-app {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        grid-row: auto !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        gap: 10px !important;
    }
    .bento-dropdown .bento-app .app-title,
    .bento-dropdown .bento-app .st-wordmark {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        width: 100% !important;
    }
    .bento-dropdown .bento-app .st-name,
    .bento-dropdown .bento-app .st-sub {
        grid-row: auto !important;
    }
}

body.theme-dark .bento-dropdown .bento-app .st-name {
    color: #f9fafb !important;
}


/* ==========================================================================
   Service pricing section
   ========================================================================== */
.svc-pricing {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.svc-pricing-header {
    margin-bottom: 24px;
}
.svc-pricing-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: #111;
}
.svc-pricing-grid {
    display: grid;
    grid-template-columns: repeat(var(--svc-pricing-cols, 3), minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.svc-pricing-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}
.svc-pricing-card.is-highlight {
    border-color: #111;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.svc-pricing-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: #111;
}
.svc-pricing-price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.svc-pricing-amount {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
}
.svc-pricing-period {
    font-size: 13px;
    color: #6b7280;
}
.svc-pricing-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #4b5563;
    min-height: 2.9em;
}
.svc-pricing-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #111;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.svc-pricing-cta:hover {
    background: #e5e7eb;
}
.svc-pricing-cta.is-primary {
    background: #111;
    border-color: #111;
    color: #fff;
}
.svc-pricing-cta.is-primary:hover {
    background: #000;
}
.svc-pricing-features {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.svc-pricing-features li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
}
.svc-pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: transparent;
}
@media (max-width: 900px) {
    .svc-pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .svc-pricing-grid {
        grid-template-columns: 1fr;
    }
}
body.theme-dark .svc-pricing {
    border-top-color: #2a2a2e;
}
body.theme-dark .svc-pricing-title,
body.theme-dark .svc-pricing-name,
body.theme-dark .svc-pricing-amount {
    color: #f9fafb;
}
body.theme-dark .svc-pricing-card {
    background: #141416;
    border-color: #2a2a2e;
}
body.theme-dark .svc-pricing-card.is-highlight {
    border-color: #f3f4f6;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
body.theme-dark .svc-pricing-desc,
body.theme-dark .svc-pricing-period,
body.theme-dark .svc-pricing-features li {
    color: #9ca3af;
}
body.theme-dark .svc-pricing-cta {
    background: #1c1c1f;
    border-color: #2a2a2e;
    color: #f3f4f6;
}
body.theme-dark .svc-pricing-cta.is-primary {
    background: #f3f4f6;
    border-color: #f3f4f6;
    color: #111;
}
body.theme-dark .svc-pricing-features li::before {
    border-color: #4b5563;
}


/* Service card media — illustration / lottie / video */
a.svc-card {
    position: relative;
    overflow: hidden;
}
a.svc-card .svc-card-aside {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
a.svc-card .svc-card-aside--br {
    right: 8px;
    bottom: 8px;
    width: min(42%, 200px);
    height: min(48%, 200px);
}
a.svc-card .svc-card-aside--tr {
    right: 8px;
    top: 8px;
    width: min(42%, 200px);
    height: min(48%, 200px);
}
a.svc-card .svc-card-aside--bl {
    left: 8px;
    bottom: 8px;
    width: min(42%, 200px);
    height: min(48%, 200px);
}
a.svc-card .svc-card-aside--center {
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    width: min(50%, 180px);
    height: min(55%, 180px);
}
a.svc-card .svc-card-lottie,
a.svc-card .svc-card-video,
a.svc-card .svc-card-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 200px;
    max-height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    object-fit: contain;
    display: block;
}
a.svc-card .svc-card-video {
    object-fit: cover;
}
a.svc-card .svc-card-lottie {
    width: 100%;
    height: 100%;
}
a.svc-card .svc-card-lottie dotlottie-player,
a.svc-card .svc-card-lottie lottie-player {
    width: 100% !important;
    height: 100% !important;
    max-width: 200px;
    max-height: 200px;
}
/* Icon stays compact */
a.svc-card .svc-card-icon {
    width: 56px;
    height: 56px;
}
a.svc-card .svc-card-main,
a.svc-card .svc-card-bottom {
    position: relative;
    z-index: 2;
}


/* Lottie size lock (override any 52px leftovers) */
a.svc-card .svc-card-aside:not(:has(.svc-card-icon)) {
    width: 200px !important;
    height: 200px !important;
}
a.svc-card .svc-card-lottie,
a.svc-card .svc-card-lottie * {
    width: 200px !important;
    height: 200px !important;
}


/* Single service hero media */
.svc-single-hero-visual {
    width: 280px;
    height: 280px;
    max-width: 40%;
    flex-shrink: 0;
}
.svc-single-lottie,
.svc-single-video,
.svc-single-cover {
    width: 280px !important;
    height: 280px !important;
    max-width: 100%;
    object-fit: contain;
    border-radius: 24px;
    display: block;
}
.svc-single-video {
    object-fit: cover;
}
.svc-single-lottie dotlottie-player,
.svc-single-lottie lottie-player {
    width: 280px !important;
    height: 280px !important;
}
.svc-single-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.svc-single-icon svg {
    width: 48px !important;
    height: 48px !important;
}
@media (max-width: 768px) {
    .svc-single-hero-visual,
    .svc-single-lottie,
    .svc-single-video,
    .svc-single-cover,
    .svc-single-lottie dotlottie-player {
        width: 200px !important;
        height: 200px !important;
        max-width: 70vw;
    }
}


/* svc-single full-width lock */
.svc-single,
.svc-single-hero,
.svc-single-body {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
.svc-single-hero-inner,
.svc-single-body-inner {
    width: 100% !important;
    max-width: var(--content-max, 1400px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.svc-single-hero-grid,
.svc-single-body-inner {
    width: 100%;
}
.svc-pricing-grid {
    width: 100%;
}
@media (max-width: 900px) {
    .svc-single-body-inner {
        grid-template-columns: 1fr !important;
    }
    .svc-single-hero-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   Services catalog — full-width list rows (homepage keeps cards)
   ========================================================================== */
.services-catalog--list {
    width: 100%;
    padding: 32px 0 72px;
    box-sizing: border-box;
}
.services-catalog--list .services-catalog-inner {
    max-width: var(--content-max, 1400px);
    margin: 0 auto;
    padding-left: var(--content-pad, 24px);
    padding-right: var(--content-pad, 24px);
    box-sizing: border-box;
}
.services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
a.svc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
    gap: 24px 32px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 28px 28px 28px 32px;
    border-radius: 24px;
    background: var(--svc-bg, #eef2ff);
    text-decoration: none;
    color: #111;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
}
a.svc-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
a.svc-row.is-filtered-out,
a.svc-row[hidden] {
    display: none !important;
}
.svc-row-text {
    min-width: 0;
    position: relative;
    z-index: 2;
}
.svc-row-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.svc-row-type,
.svc-row-cat {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}
.svc-row-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #166534;
}
.svc-row-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #111;
}
.svc-row-meta {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.45;
    color: #4b5563;
    max-width: 42em;
}
.svc-row-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.svc-row-brand .st-name {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 11px;
    color: #111;
}
.svc-row-brand .st-sub {
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    font-size: 11px;
}
.svc-row-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}
.svc-row-media .svc-card-aside {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    width: 160px !important;
    height: 160px !important;
    transform: none !important;
}
.svc-row-media .svc-card-lottie,
.svc-row-media .svc-card-img,
.svc-row-media .svc-card-video,
.svc-row-media lottie-player {
    width: 160px !important;
    height: 160px !important;
}
body.theme-dark a.svc-row {
    background: #141416 !important;
    border: 1px solid #2a2a2e;
    color: #f3f4f6;
}
body.theme-dark .svc-row-title,
body.theme-dark .svc-row-brand .st-name {
    color: #f9fafb !important;
}
body.theme-dark .svc-row-meta,
body.theme-dark .svc-row-type,
body.theme-dark .svc-row-cat {
    color: #9ca3af;
}
@media (max-width: 768px) {
    a.svc-row {
        grid-template-columns: 1fr;
        padding: 22px;
    }
    .svc-row-media {
        order: -1;
        justify-content: flex-start;
    }
}


/* Catalog list layout fix */
.services-catalog--list .services-catalog-body {
    display: grid !important;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) !important;
    gap: 40px !important;
    align-items: start !important;
    width: 100%;
}
.services-catalog--list .services-filters {
    position: sticky;
    top: 24px;
}
.services-catalog--list .services-filter-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.services-catalog--list .services-filter-list li {
    list-style: none !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}
.services-catalog--list .services-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}
.services-catalog--list .services-catalog-main {
    min-width: 0;
    width: 100%;
}
.services-catalog--list .services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
@media (max-width: 900px) {
    .services-catalog--list .services-catalog-body {
        grid-template-columns: 1fr !important;
    }
    .services-catalog--list .services-filters {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}
body.theme-dark .services-catalog--list .services-filter-check {
    color: #d1d5db;
}


/* Catalog sidebar accordion + pager */
.services-catalog--list .services-filters {
    background: #f8f8f9;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 16px 16px 18px;
    box-sizing: border-box;
}
.services-catalog--list .services-filter-group {
    margin: 0 0 4px;
    padding: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.services-catalog--list .services-filter-group:last-of-type {
    border-bottom: 0;
}
.services-acc-toggle {
    appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 12px 4px;
    margin: 0;
    cursor: pointer;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-align: left;
}
.services-acc-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
    color: #6b7280;
}
.services-filter-group.is-open .services-acc-icon {
    transform: rotate(180deg);
}
.services-acc-panel {
    display: none;
    padding: 0 4px 14px;
}
.services-filter-group.is-open .services-acc-panel {
    display: block;
}
.services-catalog--list .services-filter-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.services-catalog--list .services-filter-list li {
    list-style: none !important;
    margin: 0 0 8px !important;
}
.services-catalog--list .services-filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    line-height: 1.3;
}
.services-catalog--list .services-filter-check input {
    width: 16px;
    height: 16px;
    accent-color: #111;
    flex-shrink: 0;
}
.services-catalog--list .services-filter-reset {
    display: inline-block;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #6b7280;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}
.services-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
}
.services-page-btn {
    appearance: none;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.services-page-btn:hover:not(:disabled) {
    border-color: #c7c9d1;
    background: #f9fafb;
}
.services-page-btn.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}
.services-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}
.services-page-dots {
    color: #9ca3af;
    padding: 0 4px;
}
body.theme-dark .services-catalog--list .services-filters {
    background: #141416;
    border-color: #2a2a2e;
}
body.theme-dark .services-acc-toggle {
    color: #f3f4f6;
}
body.theme-dark .services-catalog--list .services-filter-check {
    color: #d1d5db;
}
body.theme-dark .services-page-btn {
    background: #1c1c1f;
    border-color: #2a2a2e;
    color: #f3f4f6;
}
body.theme-dark .services-page-btn.is-active {
    background: #f3f4f6;
    border-color: #f3f4f6;
    color: #111;
}


/* sidebar wider lock */
.services-catalog--list .services-catalog-body {
    grid-template-columns: 300px minmax(0, 1fr) !important;
}
.services-catalog--list .services-filters {
    width: 100%;
    max-width: 300px;
}
.services-catalog--list .services-filter-check span {
    white-space: normal;
    line-height: 1.35;
}
@media (max-width: 900px) {
    .services-catalog--list .services-catalog-body {
        grid-template-columns: 1fr !important;
    }
    .services-catalog--list .services-filters {
        max-width: none;
    }
}


/* faq tabs click fix */
.faq-tabs {
    isolation: isolate;
}
.faq-tab-pill {
    pointer-events: none !important;
    z-index: 0 !important;
}
.faq-tab {
    position: relative;
    z-index: 2 !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
}
.faq-tab.is-active {
    color: #fff !important;
}
body.theme-dark .faq-tabs {
    background: #1c1c1f;
    border-color: #2a2a2e;
}
body.theme-dark .faq-tab {
    color: #9ca3af;
}
body.theme-dark .faq-tab:hover {
    color: #f3f4f6;
}
body.theme-dark .faq-tab.is-active {
    color: #111 !important;
}
body.theme-dark .faq-tab-pill {
    background: #f3f4f6;
}
body.theme-dark .faq-tabs:not(.faq-tabs--animated) .faq-tab.is-active {
    background: #f3f4f6;
    color: #111 !important;
}


/* ==========================================================================
   Testimonials (homepage)
   ========================================================================== */
.tm-section {
    padding: 72px 0 80px;
    background: #fafafa;
}
.tm-inner {
    max-width: var(--content-max, 1400px);
    margin: 0 auto;
    padding-left: var(--content-pad, 24px);
    padding-right: var(--content-pad, 24px);
    box-sizing: border-box;
}
.tm-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px 32px;
    margin-bottom: 40px;
}
.tm-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #111;
    margin: 0 0 10px;
}
.tm-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #6b7280;
}
.tm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.tm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tm-btn svg {
    width: 16px;
    height: 16px;
}
.tm-btn--ghost {
    background: #f3f4f6;
    color: #111;
    border: 1px solid transparent;
}
.tm-btn--ghost:hover {
    background: #e5e7eb;
}
.tm-btn--outline {
    background: #fff;
    color: #111;
    border: 1px solid #e5e7eb;
}
.tm-btn--outline:hover {
    border-color: #d1d5db;
    background: #fafafa;
}
.tm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.tm-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 24px 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.tm-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
.tm-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tm-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}
.tm-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #111;
    background: #e5e7eb;
}
.tm-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
}
.tm-role {
    margin: 2px 0 0;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.3;
}
.tm-quote {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
}
@media (max-width: 1024px) {
    .tm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .tm-grid {
        grid-template-columns: 1fr;
    }
    .tm-header {
        flex-direction: column;
    }
}
body.theme-dark .tm-section {
    background: #0b0b0c;
}
body.theme-dark .tm-title,
body.theme-dark .tm-name {
    color: #f9fafb;
}
body.theme-dark .tm-lead,
body.theme-dark .tm-role {
    color: #9ca3af;
}
body.theme-dark .tm-quote {
    color: #d1d5db;
}
body.theme-dark .tm-card {
    background: #141416;
    border-color: #2a2a2e;
}
body.theme-dark .tm-btn--ghost {
    background: #1c1c1f;
    color: #f3f4f6;
}
body.theme-dark .tm-btn--outline {
    background: #141416;
    border-color: #2a2a2e;
    color: #f3f4f6;
}
body.theme-dark .tm-avatar--placeholder {
    background: #2a2a2e;
    color: #f3f4f6;
}


/* Testimonials marquee animation */
.tm-section {
    overflow: hidden;
}
.tm-marquee {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    overflow: hidden;
}

.tm-track {
    width: 100%;
    overflow: hidden;
}
.tm-track-inner {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: max-content;
    will-change: transform;
}
.tm-marquee .tm-card {
    flex: 0 0 auto;
    width: min(340px, 78vw);
    min-height: 180px;
}
.tm-marquee .tm-grid {
    display: none;
}
@media (prefers-reduced-motion: reduce) {
    .tm-marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }
    .tm-track-inner {
        transform: none !important;
        flex-wrap: wrap;
        width: 100%;
        max-width: var(--content-max, 1400px);
        margin: 0 auto;
        padding: 0 var(--content-pad, 24px);
        justify-content: center;
    }
}


/* Testimonials width = navbar / chips content-max */
.tm-section {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.tm-inner {
    max-width: var(--content-max, 1400px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--content-pad, 24px) !important;
    padding-right: var(--content-pad, 24px) !important;
    box-sizing: border-box;
    width: 100%;
}
.tm-marquee {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.tm-track {
    width: 100%;
    overflow: hidden;
}
.tm-track-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    width: max-content !important;
    will-change: transform;
}
.tm-marquee .tm-card {
    flex: 0 0 auto !important;
    width: 360px !important;
    max-width: min(360px, 80vw) !important;
    min-height: 200px;
    box-sizing: border-box;
}
@media (max-width: 640px) {
    .tm-marquee .tm-card {
        width: 300px !important;
        max-width: 85vw !important;
        min-height: 180px;
    }
}


/* ==========================================================================
   Panel megamenu (reg.oblako-style) — optional via class megamenu-panel
   Classic column megamenu remains default.
   ========================================================================== */
.megamenu.megamenu--panel {
    /* Same show/hide model as classic (opacity/visibility) — NOT display:none */
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    min-width: min(920px, calc(100vw - 48px));
    max-width: min(1100px, calc(100vw - 32px));
    width: max-content;
    padding: 0;
    overflow: hidden;
    /* inherit hidden state from .megamenu */
}
.menu-item.has-megamenu-panel.is-mega-open > .megamenu--panel,
html:not(.gsap-mega) .menu-item.has-megamenu-panel:hover > .megamenu--panel,
html:not(.gsap-mega) .menu-item.has-megamenu-panel:focus-within > .megamenu--panel {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}
.mm-panel-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 12px;
    background: #fafafa;
    border-right: 1px solid #eef0f3;
}
.mm-panel-tab {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px 0 0 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    border-right: 3px solid transparent;
    margin-right: -1px;
}
.mm-panel-tab:hover {
    background: #f3f4f6;
    color: #111;
}
.mm-panel-tab.is-active {
    background: #eef2ff;
    color: #111;
    border-right-color: #111;
}
.mm-panel-content {
    padding: 20px 24px 24px;
    min-height: 280px;
}
.mm-panel-pane {
    display: none;
}
.mm-panel-pane.is-active {
    display: block;
}
.mm-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 28px;
}
.mm-panel-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}
.mm-panel-item:hover {
    background: #f9fafb;
}
.mm-panel-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}
.mm-panel-icon svg {
    width: 20px;
    height: 20px;
}
.mm-panel-icon--empty {
    background: transparent;
}
.mm-panel-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.mm-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.mm-panel-desc {
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}
.mm-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #4338ca;
    line-height: 1.4;
}
body.theme-dark .megamenu.megamenu--panel {
    background: #141416;
    border-color: #2a2a2e;
}
body.theme-dark .mm-panel-sidebar {
    background: #101012;
    border-right-color: #2a2a2e;
}
body.theme-dark .mm-panel-tab {
    color: #9ca3af;
}
body.theme-dark .mm-panel-tab:hover {
    background: #1c1c1f;
    color: #f3f4f6;
}
body.theme-dark .mm-panel-tab.is-active {
    background: #1e1b4b;
    color: #e0e7ff;
    border-right-color: #f3f4f6;
}
body.theme-dark .mm-panel-item:hover {
    background: #1c1c1f;
}
body.theme-dark .mm-panel-title {
    color: #f3f4f6;
}
body.theme-dark .mm-panel-desc {
    color: #9ca3af;
}
body.theme-dark .mm-panel-icon {
    background: #1c1c1f;
    color: #d1d5db;
}
@media (max-width: 900px) {
    .megamenu.megamenu--panel {
        grid-template-columns: 1fr;
        min-width: 0;
        max-width: 100%;
    }
    .mm-panel-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: 0;
        border-bottom: 1px solid #eef0f3;
    }
    .mm-panel-tab {
        border-right: 0;
        border-radius: 999px;
        width: auto;
    }
    .mm-panel-tab.is-active {
        border-right-color: transparent;
    }
    .mm-panel-grid {
        grid-template-columns: 1fr;
    }
}


/* Panel megamenu v2 — solid layout */
.menu-item.has-megamenu-panel {
    position: relative;
}
.megamenu.megamenu--panel {
    display: grid !important;
    grid-template-columns: 240px minmax(320px, 1fr);
    align-items: stretch;
    gap: 0;
    min-width: 720px;
    max-width: min(960px, calc(100vw - 32px));
    width: max-content;
    padding: 0 !important;
    margin-top: 10px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}
.mm-panel-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 12px;
    background: #f7f7f8;
    border-right: 1px solid #eef0f3;
    min-height: 260px;
}
.mm-panel-tab {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.3;
}
.mm-panel-tab:hover {
    background: #ececef;
    color: #111;
}
.mm-panel-tab.is-active {
    background: #eef2ff;
    color: #111;
    box-shadow: inset 3px 0 0 #111;
}
.mm-panel-content {
    padding: 16px 20px 20px;
    min-height: 260px;
    background: #fff;
}
.mm-panel-pane {
    display: none;
}
.mm-panel-pane.is-active {
    display: block;
}
.mm-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
}
.mm-panel-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.15s ease;
}
.mm-panel-item:hover {
    background: #f9fafb;
}
.mm-panel-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}
.mm-panel-icon svg {
    width: 20px !important;
    height: 20px !important;
}
.mm-panel-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.mm-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.mm-panel-desc {
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}
body.theme-dark .megamenu.megamenu--panel {
    background: #141416;
    border-color: #2a2a2e;
}
body.theme-dark .mm-panel-sidebar {
    background: #0f0f10;
    border-right-color: #2a2a2e;
}
body.theme-dark .mm-panel-content {
    background: #141416;
}
body.theme-dark .mm-panel-tab {
    color: #9ca3af;
}
body.theme-dark .mm-panel-tab.is-active {
    background: #1e1b4b;
    color: #e0e7ff;
    box-shadow: inset 3px 0 0 #f3f4f6;
}
body.theme-dark .mm-panel-title {
    color: #f3f4f6;
}
body.theme-dark .mm-panel-desc {
    color: #9ca3af;
}
body.theme-dark .mm-panel-item:hover {
    background: #1c1c1f;
}
body.theme-dark .mm-panel-icon {
    background: #1c1c1f;
    color: #d1d5db;
}
@media (max-width: 900px) {
    .megamenu.megamenu--panel {
        grid-template-columns: 1fr;
        min-width: 0;
        max-width: calc(100vw - 24px);
    }
    .mm-panel-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid #eef0f3;
    }
    .mm-panel-tab.is-active {
        box-shadow: none;
        border-radius: 999px;
    }
    .mm-panel-grid {
        grid-template-columns: 1fr;
    }
}


/* Megamenu above stack badges / other chrome */
.site-navbar {
    z-index: 1000;
    overflow: visible !important;
}
.navbar-container,
.navbar-left,
.navbar-menu,
.navbar-menu--stack-row,
.navbar-menu--inline-row {
    overflow: visible !important;
}
.menu-item.has-megamenu {
    position: relative;
    z-index: 1;
}
.menu-item.has-megamenu.is-mega-open,
.menu-item.has-megamenu:hover {
    z-index: 5000 !important;
}
.menu-item.has-megamenu > .megamenu,
.menu-item.has-megamenu-panel > .megamenu--panel {
    z-index: 5001 !important;
}
.menu-item.has-megamenu.is-mega-open > .megamenu,
.menu-item.has-megamenu.is-mega-open > .megamenu--panel,
.menu-item.has-megamenu:hover > .megamenu,
.menu-item.has-megamenu:hover > .megamenu--panel {
    z-index: 5001 !important;
}
/* Stack badge row stays under open mega */
body.navbar-layout-both .navbar-menu--stack-row,
body.navbar-layout-stacked .navbar-menu--stack-row {
    position: relative;
    z-index: 1;
}
body.navbar-layout-both .navbar-menu--inline-row {
    position: relative;
    z-index: 2;
}
.menu-item.has-megamenu.is-mega-open ~ .menu-item,
.navbar-menu--stack-row {
    pointer-events: auto;
}
/* When any mega open, dim/block stack from covering */
body:has(.menu-item.has-megamenu.is-mega-open) .navbar-menu--stack-row {
    z-index: 0 !important;
}
body:has(.menu-item.has-megamenu.is-mega-open) .navbar-menu--stack-row .menu-item {
    z-index: 0 !important;
}

body.mega-is-open .navbar-menu--stack-row {
    z-index: 0 !important;
}
body.mega-is-open .menu-item.has-megamenu.is-mega-open {
    z-index: 5000 !important;
}
body.mega-is-open .menu-item.has-megamenu.is-mega-open > .megamenu {
    z-index: 5001 !important;
}


/* ==========================================================================
   Full-bleed panel megamenu (reg.oblako style)
   ========================================================================== */
.menu-item.has-megamenu-panel {
    position: static; /* panel positions relative to navbar */
}
.site-navbar {
    position: relative;
    z-index: 1000;
    overflow: visible !important;
}

/* Backdrop */
.mega-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
body.mega-is-open .mega-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Full-width panel under navbar */
.megamenu.megamenu--panel {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(0) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12) !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    z-index: 1100 !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

/* Inner shell aligned to content-max */
.megamenu.megamenu--panel .mm-panel-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 0;
    max-width: var(--content-max, 1400px);
    width: 100%;
    margin: 0 auto;
    padding: 28px var(--content-pad, 24px) 36px;
    box-sizing: border-box;
    min-height: 280px;
}

/* When shell wrapper missing, apply to direct children via flex fallback */
.megamenu.megamenu--panel:not(:has(.mm-panel-shell)) {
    grid-template-columns: minmax(0, 1fr) !important;
}
.megamenu.megamenu--panel:not(:has(.mm-panel-shell)) .mm-panel-sidebar,
.megamenu.megamenu--panel:not(:has(.mm-panel-shell)) .mm-panel-content {
    /* handled after shell injection */
}

.mm-panel-sidebar {
    background: transparent !important;
    border-right: 1px solid #eef0f3 !important;
    padding: 8px 20px 8px 0 !important;
    min-height: 240px;
}
.mm-panel-content {
    padding: 4px 0 4px 32px !important;
    background: transparent !important;
    min-height: 240px;
}
.mm-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 40px !important;
}
.mm-panel-tab {
    border-radius: 8px !important;
    box-shadow: none !important;
}
.mm-panel-tab.is-active {
    background: #eef2ff !important;
    box-shadow: inset 3px 0 0 #111 !important;
}

/* Open state: ignore classic dropdown transform */
.menu-item.has-megamenu-panel.is-mega-open > .megamenu--panel,
html:not(.gsap-mega) .menu-item.has-megamenu-panel:hover > .megamenu--panel {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

body.theme-dark .megamenu.megamenu--panel {
    background: #141416 !important;
    border-color: #2a2a2e !important;
}
body.theme-dark .mm-panel-sidebar {
    border-right-color: #2a2a2e !important;
}
body.theme-dark .mega-backdrop {
    background: rgba(0, 0, 0, 0.65);
}

@media (max-width: 900px) {
    .megamenu.megamenu--panel .mm-panel-shell {
        grid-template-columns: 1fr;
        padding-top: 16px;
        padding-bottom: 24px;
    }
    .mm-panel-sidebar {
        border-right: 0 !important;
        border-bottom: 1px solid #eef0f3 !important;
        padding: 0 0 12px !important;
        flex-direction: row;
        flex-wrap: wrap;
        min-height: 0;
    }
    .mm-panel-content {
        padding: 16px 0 0 !important;
    }
    .mm-panel-grid {
        grid-template-columns: 1fr !important;
    }
}

/* has-megamenu-panel position static so panel anchors to .site-navbar */
.menu-item.has-megamenu-panel {
    position: static !important;
}
.menu-item.has-megamenu-panel.is-mega-open {
    z-index: auto !important;
}


/* Panel full-bleed under FIRST navbar row; hide stack row when open */
body.mega-panel-open .navbar-menu--stack-row {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}
body.mega-panel-open .site-navbar {
    z-index: 1200;
}
body.mega-panel-open .mega-backdrop {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1100 !important;
}

.megamenu.megamenu--panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: var(--mm-panel-top, 80px) !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1) !important;
    z-index: 1150 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    /* closed by default via opacity from .megamenu */
}

.menu-item.has-megamenu-panel {
    position: static !important;
}

.menu-item.has-megamenu-panel.is-mega-open > .megamenu--panel,
html:not(.gsap-mega) .menu-item.has-megamenu-panel:hover > .megamenu--panel {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}

.megamenu.megamenu--panel .mm-panel-shell {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    max-width: var(--content-max, 1400px);
    width: 100%;
    margin: 0 auto;
    padding: 28px var(--content-pad, 24px) 40px;
    box-sizing: border-box;
}

/* Prevent classic .megamenu left:0 from shifting panel */
.menu-item.has-megamenu-panel > .megamenu.megamenu--panel {
    left: 0 !important;
}


/* Unified navbar + panel surface when panel open */
body.mega-panel-open .site-navbar {
    background: #fff !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
body.mega-panel-open .megamenu.megamenu--panel {
    border-top: none !important;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.1) !important;
}
/* Active trigger looks pressed */
.menu-item.has-megamenu-panel.is-mega-open > a,
.menu-item.has-megamenu-panel.is-mega-open > .nav-link {
    background: #f3f4f6 !important;
    color: #111 !important;
}
body.theme-dark.mega-panel-open .site-navbar {
    background: #141416 !important;
}
body.theme-dark.mega-panel-open .megamenu.megamenu--panel {
    background: #141416 !important;
}
body.theme-dark .menu-item.has-megamenu-panel.is-mega-open > a {
    background: #1c1c1f !important;
    color: #f3f4f6 !important;
}


/* Panel trigger — reg.oblako style underline + caret */
.menu-item.has-megamenu-panel > a,
.menu-item.has-megamenu-panel > .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
    margin-bottom: -10px; /* keep hit area without shifting layout */
}
.menu-item.has-megamenu-panel > a .nav-caret,
.menu-item.has-megamenu-panel > .nav-link .nav-caret {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 2px;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-item.has-megamenu-panel > a .nav-caret::before,
.menu-item.has-megamenu-panel > .nav-link .nav-caret::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translate(-50%, -65%) rotate(45deg);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Open: caret points up */
.menu-item.has-megamenu-panel.is-mega-open > a .nav-caret::before,
.menu-item.has-megamenu-panel.is-mega-open > .nav-link .nav-caret::before {
    transform: translate(-50%, -25%) rotate(-135deg);
}
/* Active underline */
.menu-item.has-megamenu-panel > a::after,
.menu-item.has-megamenu-panel > .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #111;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.menu-item.has-megamenu-panel.is-mega-open > a::after,
.menu-item.has-megamenu-panel.is-mega-open > .nav-link::after,
.menu-item.has-megamenu-panel > a:hover::after,
.menu-item.has-megamenu-panel > .nav-link:hover::after {
    transform: scaleX(1);
}
.menu-item.has-megamenu-panel.is-mega-open > a,
.menu-item.has-megamenu-panel.is-mega-open > .nav-link {
    background: transparent !important;
    color: #111 !important;
}
body.theme-dark .menu-item.has-megamenu-panel.is-mega-open > a,
body.theme-dark .menu-item.has-megamenu-panel.is-mega-open > .nav-link {
    color: #f3f4f6 !important;
    background: transparent !important;
}
body.theme-dark .menu-item.has-megamenu-panel > a::after,
body.theme-dark .menu-item.has-megamenu-panel > .nav-link::after {
    background: #f3f4f6;
}


/* Megamenu caret = same as language switcher chevron */
.menu-item.has-megamenu > a .nav-caret,
.menu-item.has-megamenu-panel > a .nav-caret,
.menu-item.has-megamenu > .nav-link .nav-caret,
.menu-item.has-megamenu-panel > .nav-link .nav-caret {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    flex-shrink: 0;
    opacity: 0.55;
    vertical-align: middle;
    transition: transform 0.2s ease;
    /* reset fake CSS caret */
}
.menu-item.has-megamenu > a .nav-caret::before,
.menu-item.has-megamenu-panel > a .nav-caret::before,
.menu-item.has-megamenu > .nav-link .nav-caret::before,
.menu-item.has-megamenu-panel > .nav-link .nav-caret::before {
    content: none !important;
    display: none !important;
}
.menu-item.has-megamenu.is-mega-open > a .nav-caret,
.menu-item.has-megamenu-panel.is-mega-open > a .nav-caret,
.menu-item.has-megamenu.is-mega-open > .nav-link .nav-caret,
.menu-item.has-megamenu-panel.is-mega-open > .nav-link .nav-caret {
    transform: rotate(180deg);
    opacity: 0.75;
}


/* ==========================================================================
   Editorial wide — full theme content-max width
   ========================================================================== */
.page-shell-inner--editorial-wide {
    max-width: var(--content-max, 1400px) !important;
}
body.template-editorial-wide .navbar-container,
body.page-template-template-editorial-wide .navbar-container {
    max-width: var(--content-max, 1400px) !important;
}
body.page-template-template-editorial-wide-php .navbar-container {
    max-width: var(--content-max, 1400px) !important;
}
.editorial-layout--wide {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
}
.editorial-content--wide {
    max-width: none !important;
    width: 100%;
}
/* Slightly larger title on wide */
.page-shell--editorial-wide .editorial-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    max-width: 24ch;
}
.page-shell--editorial-wide .editorial-lead {
    max-width: 52rem;
}
@media (max-width: 900px) {
    .editorial-layout--wide {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}


/* Panel sidebar tabs — refined active state */
.mm-panel-tab {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 11px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.35;
    position: relative;
    box-shadow: none !important;
    transition: color 0.15s ease, background 0.15s ease;
}
.mm-panel-tab:hover {
    color: #111;
    background: #f3f4f6;
}
.mm-panel-tab.is-active {
    color: #111 !important;
    font-weight: 600;
    background: #f3f4f6 !important;
    box-shadow: none !important;
}
.mm-panel-tab.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 2px;
    background: #111;
}
.mm-panel-tab-label {
    display: block;
}

body.theme-dark .mm-panel-tab {
    color: #9ca3af;
}
body.theme-dark .mm-panel-tab:hover {
    color: #f3f4f6;
    background: #1c1c1f;
}
body.theme-dark .mm-panel-tab.is-active {
    color: #f3f4f6 !important;
    background: #1c1c1f !important;
}
body.theme-dark .mm-panel-tab.is-active::before {
    background: #f3f4f6;
}


/* Panel pane switch animation (CSS fallback) */
.mm-panel-pane {
    display: none;
}
.mm-panel-pane.is-active {
    display: block;
}
.mm-panel-pane.mm-pane-enter {
    display: block;
    opacity: 0;
    transform: translateY(8px);
}
.mm-panel-pane.mm-pane-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.mm-panel-pane.mm-pane-leave {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.mm-panel-content {
    position: relative;
    overflow: hidden;
}


/* Panel trigger = same hit area feel as language switcher */
.menu-item.has-megamenu-panel {
    display: inline-flex;
    align-items: center;
}
.menu-item.has-megamenu-panel > a.mm-panel-trigger,
.menu-item.has-megamenu-panel > a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 12px 16px !important;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #111;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}
.menu-item.has-megamenu-panel > a:hover,
.menu-item.has-megamenu-panel.is-mega-open > a {
    background-color: #f3f4f6 !important;
}
/* Underline sits below padding */
.menu-item.has-megamenu-panel > a::after {
    left: 16px !important;
    right: 16px !important;
    bottom: 6px !important;
}
.menu-item.has-megamenu-panel > a .nav-caret {
    opacity: 0.55;
    transition: transform 0.2s ease;
}
.menu-item.has-megamenu-panel.is-mega-open > a .nav-caret {
    transform: rotate(180deg);
    opacity: 0.75;
}

body.theme-dark .menu-item.has-megamenu-panel > a:hover,
body.theme-dark .menu-item.has-megamenu-panel.is-mega-open > a {
    background-color: #1c1c1f !important;
}

/* Panel open animation base (CSS) */
.megamenu.megamenu--panel {
    will-change: opacity, transform;
}
.megamenu.megamenu--panel.mm-panel-anim-open {
    animation: mmPanelDrop 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes mmPanelDrop {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Remove active underline stripe under megamenu-panel trigger */
.menu-item.has-megamenu-panel > a::after,
.menu-item.has-megamenu-panel > .nav-link::after {
    content: none !important;
    display: none !important;
    background: none !important;
    transform: none !important;
}


/* Panel tab + Coming soon badge — single line, even spacing */
.mm-panel-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.mm-panel-tab {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px 10px 14px !important;
    box-sizing: border-box;
    white-space: nowrap;
}
.mm-panel-tab-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}
.mm-panel-tab .mm-badge,
.mm-panel-title .mm-badge,
.mm-panel-item .mm-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap !important;
    max-width: none;
}
body.theme-dark .mm-panel-tab .mm-badge,
body.theme-dark .mm-panel-title .mm-badge {
    background: #1e1b4b;
    color: #c7d2fe;
}
/* Sidebar wide enough for label + badge */
.megamenu.megamenu--panel .mm-panel-shell {
    grid-template-columns: minmax(260px, 280px) minmax(0, 1fr) !important;
}
.mm-panel-sidebar {
    padding-right: 16px !important;
}


/* Homepage service cards — mobile like catalog svc-row */
@media (max-width: 768px) {
    .services-catalog-grid--home {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .services-catalog-grid--home a.svc-card {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        align-items: stretch !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 20px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    /* Stack: media first (like catalog row mobile), then text + brand */
    .services-catalog-grid--home a.svc-card .svc-card-main {
        order: 2;
        position: relative !important;
        z-index: 2;
        width: 100%;
        max-width: 100% !important;
        padding-right: 0 !important;
    }

    .services-catalog-grid--home a.svc-card .svc-card-bottom {
        order: 1;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        position: relative !important;
        z-index: 2;
        width: 100%;
    }

    .services-catalog-grid--home a.svc-card .svc-card-foot {
        order: 3;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 4px;
        width: 100%;
    }

    /* Kill absolute media that overlaps text */
    .services-catalog-grid--home a.svc-card .svc-card-aside,
    .services-catalog-grid--home a.svc-card .svc-card-visual,
    .services-catalog-grid--home a.svc-card .svc-card-aside--br,
    .services-catalog-grid--home a.svc-card .svc-card-aside--tr,
    .services-catalog-grid--home a.svc-card .svc-card-aside--bl,
    .services-catalog-grid--home a.svc-card .svc-card-aside--center {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 140px !important;
        height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        margin: 0 0 8px !important;
        order: 1;
        pointer-events: none;
    }

    .services-catalog-grid--home a.svc-card .svc-card-aside:not(:has(.svc-card-icon)),
    .services-catalog-grid--home a.svc-card .svc-card-lottie,
    .services-catalog-grid--home a.svc-card .svc-card-lottie *,
    .services-catalog-grid--home a.svc-card .svc-card-img,
    .services-catalog-grid--home a.svc-card .svc-card-video,
    .services-catalog-grid--home a.svc-card lottie-player,
    .services-catalog-grid--home a.svc-card dotlottie-player {
        width: 140px !important;
        height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
    }

    .services-catalog-grid--home a.svc-card .svc-card-icon {
        width: 56px !important;
        height: 56px !important;
    }

    .services-catalog-grid--home a.svc-card .svc-card-title,
    .services-catalog-grid--home a.svc-card .svc-card-meta {
        max-width: 100% !important;
        width: 100% !important;
    }

    .services-catalog-grid--home a.svc-card .svc-card-title {
        font-size: 1.25rem !important;
        margin: 0 0 8px !important;
    }

    .services-catalog-grid--home a.svc-card .svc-card-meta {
        margin: 0 0 12px !important;
        font-size: 14px !important;
    }

    .services-catalog-grid--home a.svc-card .svc-card-brands {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 8px;
    }
}

/* Reorder foot after main when using flex on card */
@media (max-width: 768px) {
    .services-catalog-grid--home a.svc-card {
        display: flex !important;
        flex-direction: column !important;
    }
    .services-catalog-grid--home a.svc-card .svc-card-bottom {
        order: 1;
        display: contents; /* let aside + foot participate in parent flex */
    }
    .services-catalog-grid--home a.svc-card .svc-card-aside,
    .services-catalog-grid--home a.svc-card .svc-card-visual {
        order: 1;
        align-self: flex-start;
    }
    .services-catalog-grid--home a.svc-card .svc-card-main {
        order: 2;
    }
    .services-catalog-grid--home a.svc-card .svc-card-foot {
        order: 3;
        margin-top: 8px;
    }
}


/* Home featured services — same svc-row as catalog */
.services-list--home {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.services-list--home a.svc-row--home {
    background: var(--svc-bg, #eef2ff);
}
/* Desktop home: optional 2-col of rows feels odd; keep single column like catalog */
@media (min-width: 960px) {
    .services-list--home a.svc-row--home {
        min-height: 200px;
    }
}

/* Hide any leftover service card icons */
.svc-card-icon,
a.svc-card .svc-card-icon,
a.svc-row .svc-card-icon {
    display: none !important;
}
/* When no media, don't reserve empty media column on rows */
a.svc-row .svc-row-media:empty {
    display: none;
}

/* Full-width text when no media */
a.svc-row:not(:has(.svc-row-media)) {
    grid-template-columns: 1fr;
}


/* Home services: 2 columns (half of content-max / 12-grid → 6+6) */
.services-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}
@media (max-width: 640px) {
    .services-home-grid {
        grid-template-columns: 1fr;
    }
}

a.svc-card--home {
    background: var(--svc-bg, #eef2ff) !important;
    min-height: 220px !important;
    max-width: 100%;
}
a.svc-card--home .svc-card-title,
a.svc-card--home .svc-card-meta {
    max-width: calc(100% - 96px) !important;
}
a.svc-card--home .svc-card-aside {
    width: 120px !important;
    height: 120px !important;
    max-width: 40% !important;
}
a.svc-card--home .svc-card-lottie,
a.svc-card--home .svc-card-lottie *,
a.svc-card--home .svc-card-img {
    max-width: 120px !important;
    max-height: 120px !important;
    width: 120px !important;
    height: 120px !important;
}

@media (max-width: 640px) {
    a.svc-card--home {
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 20px !important;
    }
    a.svc-card--home .svc-card-title,
    a.svc-card--home .svc-card-meta {
        max-width: 100% !important;
    }
    a.svc-card--home .svc-card-aside {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100px !important;
        height: 100px !important;
        margin: 0 0 8px;
        order: -1;
        align-self: flex-start;
    }
    a.svc-card--home .svc-card-bottom {
        display: contents;
    }
    a.svc-card--home .svc-card-foot {
        order: 3;
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        margin-top: 12px;
    }
}

/* Horizontal marquee row of service cards */
.svc-marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.svc-marquee-track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: svcMarquee 40s linear infinite;
}
.svc-marquee:hover .svc-marquee-track {
    animation-play-state: paused;
}
.svc-marquee-group {
    display: flex;
    gap: 16px;
    padding-right: 16px;
}
.svc-marquee-group a.svc-card--home {
    flex: 0 0 auto;
    width: min(420px, 70vw);
    max-width: 420px;
}
@keyframes svcMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .svc-marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
    }
    .svc-marquee-group[aria-hidden="true"] {
        display: none;
    }
    .svc-marquee-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        padding-right: 0;
    }
    .svc-marquee-group a.svc-card--home {
        width: auto;
        max-width: none;
    }
}


/* Vertical service carousel */
.svc-vcarousel {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}
.svc-vcarousel-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 260px;
}
.svc-vcarousel-track {
    position: relative;
}
.svc-vcarousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-vcarousel-slide.is-active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}
.svc-vcarousel-slide.is-prev {
    transform: translateY(-24px);
    opacity: 0;
}
.svc-vcarousel-slide .svc-card--home {
    width: 100%;
    min-height: 240px !important;
    margin: 0;
}
.svc-vcarousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.svc-vcarousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: #d1d5db;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}
.svc-vcarousel-dot.is-active {
    width: 22px;
    background: #111;
}
.svc-vcarousel-btn {
    position: absolute;
    right: -4px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: background 0.2s ease;
}
.svc-vcarousel-btn:hover {
    background: #f3f4f6;
}
.svc-vcarousel-btn--prev { top: 28%; }
.svc-vcarousel-btn--next { top: 48%; }
body.theme-dark .svc-vcarousel-btn {
    background: #141416;
    border-color: #2a2a2e;
    color: #f3f4f6;
}
body.theme-dark .svc-vcarousel-dot {
    background: #3f3f46;
}
body.theme-dark .svc-vcarousel-dot.is-active {
    background: #f3f4f6;
}
@media (max-width: 768px) {
    .svc-vcarousel {
        max-width: 100%;
    }
    .svc-vcarousel-btn {
        right: 8px;
    }
}


/* Horizontal full-width service carousel + progress */
.svc-hcarousel {
    width: 100%;
    position: relative;
}
.svc-hcarousel-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
}
.svc-hcarousel-track {
    position: relative;
    width: 100%;
}
.svc-hcarousel-slide {
    display: none;
    width: 100%;
}
.svc-hcarousel-slide.is-active {
    display: block;
    animation: svcHIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes svcHIn {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}
.svc-hcarousel-slide .svc-card--home {
    width: 100% !important;
    max-width: none !important;
    min-height: 280px !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    padding: 32px 36px !important;
    border-radius: 24px !important;
}
.svc-hcarousel-slide .svc-card-main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 55%;
}
.svc-hcarousel-slide .svc-card-title {
    max-width: 100% !important;
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
}
.svc-hcarousel-slide .svc-card-meta {
    max-width: 100% !important;
    font-size: 16px !important;
}
.svc-hcarousel-slide .svc-card-bottom {
    position: relative !important;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    margin-left: auto;
}
.svc-hcarousel-slide .svc-card-aside,
.svc-hcarousel-slide .svc-card-aside--br,
.svc-hcarousel-slide .svc-card-aside--tr {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 200px !important;
    height: 200px !important;
}
.svc-hcarousel-slide .svc-card-lottie,
.svc-hcarousel-slide .svc-card-lottie *,
.svc-hcarousel-slide .svc-card-img {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
}
.svc-hcarousel-slide .svc-card-foot {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    align-self: flex-start;
    margin-top: auto;
}

/* Progress bar under card — like story indicator */
.svc-hcarousel-progress {
    margin: 14px auto 0;
    width: min(160px, 40%);
    height: 3px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}
.svc-hcarousel-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: #111;
}
body.theme-dark .svc-hcarousel-progress {
    background: #2a2a2e;
}
body.theme-dark .svc-hcarousel-progress-bar {
    background: #f3f4f6;
}

@media (max-width: 700px) {
    .svc-hcarousel-slide .svc-card--home {
        flex-direction: column !important;
        min-height: 0 !important;
        padding: 22px !important;
    }
    .svc-hcarousel-slide .svc-card-main {
        max-width: 100%;
    }
    .svc-hcarousel-slide .svc-card-bottom {
        align-items: flex-start;
        width: 100%;
        margin-top: 12px;
    }
    .svc-hcarousel-slide .svc-card-aside {
        width: 120px !important;
        height: 120px !important;
    }
}


/* Progress bar — GPU scaleX, story-style */
.svc-hcarousel-progress {
    margin: 16px auto 0;
    width: min(180px, 48%);
    height: 4px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.12);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.svc-hcarousel-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #111;
    transform: scaleX(0);
    transform-origin: left center;
    transition-property: transform;
    transition-timing-function: linear;
    will-change: transform;
}
.svc-hcarousel-progress-bar.is-running {
    transform: scaleX(1);
}
body.theme-dark .svc-hcarousel-progress {
    background: rgba(243, 244, 246, 0.18);
}
body.theme-dark .svc-hcarousel-progress-bar {
    background: #f3f4f6;
}

/* Softer slide enter */
.svc-hcarousel-slide.is-active.is-anim {
    animation: svcHIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes svcHIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Services title + black circular nav */
.services-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.svc-hcarousel-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.svc-hcarousel-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.svc-hcarousel-nav-btn:hover {
    background: #333;
}
.svc-hcarousel-nav-btn:active {
    transform: scale(0.96);
}
body.theme-dark .svc-hcarousel-nav-btn {
    background: #f3f4f6;
    color: #111;
}
body.theme-dark .svc-hcarousel-nav-btn:hover {
    background: #e5e7eb;
}

/* Full-width carousel card — readable type scale */
.svc-hcarousel-slide .svc-card--home {
    min-height: 320px !important;
    padding: 40px 48px !important;
    gap: 32px !important;
}
.svc-hcarousel-slide .svc-card-main {
    max-width: min(560px, 58%) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}
.svc-hcarousel-slide .svc-card-top {
    margin-bottom: 16px !important;
}
.svc-hcarousel-slide .svc-card-pill {
    font-size: 13px !important;
    padding: 6px 12px !important;
}
.svc-hcarousel-slide .svc-card-title {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
    line-height: 1.15 !important;
    margin: 0 0 14px !important;
    max-width: 100% !important;
    letter-spacing: -0.03em !important;
}
.svc-hcarousel-slide .svc-card-meta {
    font-size: 17px !important;
    line-height: 1.5 !important;
    color: #4b5563 !important;
    max-width: 36em !important;
    margin: 0 0 20px !important;
    white-space: normal !important;
    word-break: normal !important;
}
.svc-hcarousel-slide .svc-card-bottom {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    min-width: 200px;
}
.svc-hcarousel-slide .svc-card-foot {
    order: 2;
    margin-top: auto;
    align-self: flex-start;
    width: 100%;
}
.svc-hcarousel-slide .svc-card-brand {
    font-size: 12px !important;
}
.svc-hcarousel-slide .svc-card-aside {
    order: 1;
    width: 220px !important;
    height: 220px !important;
}
.svc-hcarousel-slide .svc-card-lottie,
.svc-hcarousel-slide .svc-card-lottie *,
.svc-hcarousel-slide .svc-card-img {
    width: 220px !important;
    height: 220px !important;
    max-width: 220px !important;
    max-height: 220px !important;
}

@media (max-width: 700px) {
    .svc-hcarousel-slide .svc-card--home {
        min-height: 0 !important;
        padding: 24px !important;
        flex-direction: column !important;
    }
    .svc-hcarousel-slide .svc-card-main {
        max-width: 100% !important;
    }
    .svc-hcarousel-slide .svc-card-title {
        font-size: 1.5rem !important;
    }
    .svc-hcarousel-slide .svc-card-meta {
        font-size: 15px !important;
    }
    .svc-hcarousel-nav-btn {
        width: 36px;
        height: 36px;
    }
}


/* Home carousel = catalog svc-row, full width of content */
.svc-hcarousel-slide a.svc-row--home {
    width: 100%;
    background: var(--svc-bg, #eef2ff);
    min-height: 200px;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
}
.svc-hcarousel-slide a.svc-row--home:not(:has(.svc-row-media)) {
    grid-template-columns: 1fr;
}
.svc-hcarousel-slide .svc-row-title {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}
.svc-hcarousel-slide .svc-row-meta {
    font-size: 15px;
    max-width: 40em;
}
.svc-hcarousel-slide .svc-row-foot {
    margin-top: 8px;
}
.svc-hcarousel-slide .svc-row-media {
    justify-content: flex-end;
}
.svc-hcarousel-slide .svc-row-media .svc-card-aside {
    width: 180px !important;
    height: 180px !important;
}
.svc-hcarousel-slide .svc-row-media .svc-card-lottie,
.svc-hcarousel-slide .svc-row-media .svc-card-img,
.svc-hcarousel-slide .svc-row-media lottie-player {
    width: 180px !important;
    height: 180px !important;
}

/* Kill old svc-card--home overrides that broke layout */
.svc-hcarousel-slide .svc-card--home {
    display: none !important;
}


/* Home services: align header + card to content width, one title row */
.services-section--home .services-inner {
    max-width: var(--content-max, 1400px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--content-pad, 24px);
    padding-right: var(--content-pad, 24px);
    box-sizing: border-box;
    width: 100%;
}

.services-section--home .services-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 24px;
    width: 100%;
}

.services-section--home .services-header-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 16px;
}

.services-section--home .services-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.services-section--home .services-title {
    margin: 0 !important;
}

.services-section--home .services-lead {
    display: none; /* keep title row clean; lead can show below if needed */
}

.services-section--home .services-all-link {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
    font-size: 15px;
    line-height: 1;
    padding: 0;
}

/* Card flush to content edges (no extra inset) */
.services-section--home .svc-hcarousel {
    width: 100%;
    margin: 0;
    padding: 0;
}
.services-section--home .svc-hcarousel-viewport {
    width: 100%;
    border-radius: 24px;
}
.services-section--home .svc-hcarousel-slide a.svc-row--home {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Progress bar centered under full-width card */
.services-section--home .svc-hcarousel-progress {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .services-section--home .services-header {
        flex-wrap: wrap;
    }
    .services-section--home .services-all-link {
        width: 100%;
        text-align: right;
    }
}

.services-header--home {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    gap: 16px;
}
.services-header--home .services-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.services-header--home .services-all-link {
    margin-left: auto;
}
.services-section--home > .services-inner > .services-lead {
    margin: -12px 0 20px;
    display: block;
}


/* Mobile menu — full scroll, no clipped items */
.mobile-menu {
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* scroll only inner body */
    -webkit-overflow-scrolling: touch;
}
.mobile-menu-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.mobile-menu-header {
    flex: 0 0 auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    background: #fff !important;
}
.mobile-menu-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)) !important;
}

/* CRITICAL: accordion must not clip deep menus */
.mobile-submenu {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.35s ease !important;
}
.mobile-menu-item.has-children.is-open > .mobile-submenu {
    max-height: none !important;
    overflow: visible !important;
}
/* Fallback if :has not needed — very large ceiling */
.mobile-menu-item.has-children.is-open .mobile-submenu {
    max-height: 5000px !important;
}

.mobile-submenu .mobile-submenu {
    background: #f3f4f6;
}
.mobile-submenu-link,
.mobile-submenu a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
    color: #374151;
    text-decoration: none;
}
.mobile-menu-list {
    padding-bottom: 8px !important;
}
.mobile-bento {
    margin-top: 0 !important;
    flex-shrink: 0;
}

body.theme-dark .mobile-menu-header {
    background: #0b0b0c !important;
    border-bottom-color: #2a2a2e !important;
}
body.theme-dark .mobile-menu-body {
    background: #0b0b0c;
}


/* Hero bento cell reveal */
.hero-bento[data-hero-stagger] .hero-card--anim {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    will-change: opacity, transform;
}
.hero-bento[data-hero-stagger] .hero-card--anim.is-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
    .hero-bento[data-hero-stagger] .hero-card--anim {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* Hero bento — hover lift + soft glow */
.hero-bento .hero-card {
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.35s ease;
    transform-origin: center center;
}
.hero-bento a.hero-card:hover,
.hero-bento .hero-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 2;
}
.hero-bento a.hero-card:active {
    transform: translateY(-2px) scale(1.005);
    transition-duration: 0.12s;
}

/* Arrow / CTA on hero card — nudge on hover */
.hero-bento .hero-card .hero-card-cta,
.hero-bento .hero-card .hero-arrow,
.hero-bento .hero-card .hero-card-more {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.hero-bento a.hero-card:hover .hero-card-cta,
.hero-bento a.hero-card:hover .hero-arrow,
.hero-bento a.hero-card:hover .hero-card-more {
    transform: translateX(4px);
}

/* Media slight zoom inside card */
.hero-bento .hero-card .hero-card-media,
.hero-bento .hero-card .hero-media,
.hero-bento .hero-card [class*="hero-card-image"] {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-bento a.hero-card:hover .hero-card-media,
.hero-bento a.hero-card:hover .hero-media {
    transform: scale(1.04) rotate(var(--media-angle, 0deg));
}

/* Service row / card hover (catalog + home carousel) */
a.svc-row {
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
a.svc-row:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1) !important;
}
a.svc-row:hover .svc-row-media .svc-card-aside,
a.svc-row:hover .svc-row-media img,
a.svc-row:hover .svc-row-media lottie-player {
    transform: scale(1.04);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
a.svc-card {
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
a.svc-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1) !important;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bento .hero-card,
    .hero-bento a.hero-card:hover,
    a.svc-row,
    a.svc-row:hover,
    a.svc-card,
    a.svc-card:hover {
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Touch: no sticky hover after tap on coarse pointers */
@media (hover: none) {
    .hero-bento a.hero-card:hover {
        transform: none;
        box-shadow: none;
    }
}


/* Services width = hero bento / navbar (no double pad) */
.services-section {
    padding-left: var(--content-pad, 24px) !important;
    padding-right: var(--content-pad, 24px) !important;
    box-sizing: border-box;
}
.services-section .services-inner,
.services-section--home .services-inner {
    max-width: var(--content-max, 1400px) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}
.services-section--home .svc-hcarousel,
.services-section--home .svc-hcarousel-viewport,
.services-section--home .svc-hcarousel-slide,
.services-section--home .svc-hcarousel-slide a.svc-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* Hero cards — visible at rest (not only on hover) */
.hero-bento {
    background-color: #f3f4f6 !important; /* denser than #fafafa so tiles lift */
}
.hero-bento.hero-bento--transparent {
    background: transparent !important;
    background-color: transparent !important;
}

.hero-bento .hero-card {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 16px rgba(15, 23, 42, 0.05) !important;
    /* keep existing hover transitions */
}

/* Light / white-ish tiles: stronger edge so they don't melt into section */
.hero-bento .hero-card[style*="background-color:#fff"],
.hero-bento .hero-card[style*="background-color:#ffffff"],
.hero-bento .hero-card[style*="background-color:#FFF"],
.hero-bento .hero-card[style*="background-color: #fff"],
.hero-bento .hero-card[style*="background-color:rgb(255"],
.hero-bento .hero-card[style*="background-color: rgb(255"] {
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

/* Hover still elevates further */
.hero-bento a.hero-card:hover,
.hero-bento .hero-card:hover {
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

/* Dark theme: cards on near-black need light edge */
body.theme-dark .hero-bento:not(.hero-bento--transparent) {
    background-color: #0f0f10 !important;
}
body.theme-dark .hero-bento .hero-card {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 8px 28px rgba(0, 0, 0, 0.35) !important;
}


/* Service cards — same rest-state edge as hero tiles */
a.svc-row,
a.svc-card,
.svc-row,
.svc-card {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

/* Home carousel / catalog rows */
.services-section a.svc-row,
.services-section--home a.svc-row--home,
.services-catalog a.svc-row,
.svc-hcarousel-slide a.svc-row {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

a.svc-row:hover,
a.svc-card:hover,
.services-section a.svc-row:hover,
.svc-hcarousel-slide a.svc-row:hover {
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

body.theme-dark a.svc-row,
body.theme-dark a.svc-card,
body.theme-dark .services-section a.svc-row,
body.theme-dark .svc-hcarousel-slide a.svc-row {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 8px 28px rgba(0, 0, 0, 0.35) !important;
}
body.theme-dark a.svc-row:hover,
body.theme-dark a.svc-card:hover {
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.3) !important;
}


/* Inline annotations (glossary / tooltips in text) */
button.st-note {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    vertical-align: baseline;
}
.st-note-label {
    border-bottom: 1.5px solid rgba(17, 17, 17, 0.35);
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: background 0.15s ease, border-color 0.15s ease;
}
button.st-note:hover .st-note-label,
button.st-note[aria-expanded="true"] .st-note-label {
    background: rgba(17, 17, 17, 0.06);
    border-bottom-color: #111;
}
body.theme-dark .st-note-label {
    border-bottom-color: rgba(243, 244, 246, 0.4);
}
body.theme-dark button.st-note:hover .st-note-label,
body.theme-dark button.st-note[aria-expanded="true"] .st-note-label {
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: #f3f4f6;
}

.st-note-popover {
    position: fixed;
    z-index: 10050;
    max-width: 320px;
    padding: 16px 18px 18px;
    border-radius: 14px;
    background: #fff;
    color: #111;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 16px 40px rgba(15, 23, 42, 0.14);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: left;
    line-height: 1.45;
}
.st-note-popover.is-open {
    opacity: 1;
    transform: translateY(0);
}
.st-note-popover.is-above {
    transform: translateY(-6px);
}
.st-note-popover.is-above.is-open {
    transform: translateY(0);
}
.st-note-popover-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}
.st-note-popover-close:hover {
    color: #111;
    background: #f3f4f6;
}
.st-note-popover-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0 24px 8px 0;
    color: #111;
}
.st-note-popover-body {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}
body.theme-dark .st-note-popover {
    background: #18181b;
    color: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
body.theme-dark .st-note-popover-title {
    color: #f3f4f6;
}
body.theme-dark .st-note-popover-body {
    color: #a1a1aa;
}
body.theme-dark .st-note-popover-close:hover {
    background: #27272a;
    color: #f3f4f6;
}


/* Admin bar must stay visible on the frontend */
#wpadminbar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}
/* overflow-x on body can clip position:fixed toolbar in some browsers */
body.admin-bar {
    overflow-x: visible !important;
}
html.admin-bar,
html.wp-toolbar {
    overflow-x: hidden;
}
/* Sticky navbar sits below toolbar */
body.admin-bar.navbar-sticky .site-navbar,
body.admin-bar .site-navbar.navbar-sticky {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar.navbar-sticky .site-navbar,
    body.admin-bar .site-navbar.navbar-sticky {
        top: 46px !important;
    }
}


/* Unified service catalog rows — same vertical rhythm */
a.svc-row {
    min-height: 148px;
    align-items: stretch;
}
.svc-row-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.svc-row-top {
    min-height: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}
.svc-row-top.is-empty {
    min-height: 22px;
}
.svc-row-type,
.svc-row-cat {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.01em;
}
.svc-row-type + .svc-row-type::before,
.svc-row-type + .svc-row-cat::before,
.svc-row-cat + .svc-row-cat::before {
    /* separators handled by gap; keep chips clean */
    content: none;
}
.svc-row-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 700;
}
.svc-row-meta {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
    min-height: 1.45em;
}
.svc-row-meta.is-empty {
    visibility: hidden;
}
.svc-row-foot {
    margin-top: auto;
    padding-top: 10px;
}
