/*
Theme Name: Structuralist
Theme URI: https://structuralist.example
Author: Structuralist Team
Author URI: https://structuralist.example
Description: Современная WordPress-тема с кастомным навбаром Structuralist (Bento-меню, мегаменю, мультибрендовые логотипы). Чистый, резкий шрифтовой стек Onest + Unbounded.
Version: 1.9.8
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 {
    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 {
    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;
}

/* Основная часть логотипа (Толстая, черная) */
.logo-main {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 29px;
    line-height: 1;
    color: #111111;
}

/* Суббренд (Тонкая, цветная) — тот же размер, что и название */
.logo-sub {
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    font-size: 29px;
    line-height: 1;
}

.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: 200px;
    max-width: 360px;
    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(auto-fill, minmax(88px, 1fr));
    gap: 8px 12px;
    
    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) */
.bento-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 12px 4px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

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

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: 16px;
}

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

.app-title {
    font-size: 11px;
    color: #374151;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* 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;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 12px;
    text-decoration: none;
    background: #f9fafb;
    transition: background-color 0.2s;
}

.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-inner {
    display: grid;
    grid-template-columns: repeat(var(--hero-cols, 12), 1fr);
    grid-auto-rows: minmax(160px, 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: 140px;
    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: 160px;
    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 panel */
.mobile-lang {
    padding: 8px 4px 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

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

.mobile-lang .sml-switcher-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.mobile-lang .sml-switcher-menu {
    position: static;
    margin-top: 8px;
    box-shadow: none;
    width: 100%;
    min-width: 0;
    transform-origin: top center;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    transition:
        max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.22s ease,
        padding 0.22s ease,
        border-color 0.22s ease;
}

.mobile-lang .sml-switcher--dropdown.is-open .sml-switcher-menu {
    max-height: 240px;
    padding: 8px;
    border-color: #e5e7eb;
    opacity: 1;
    transform: none;
}

.mobile-lang .sml-switcher-menu[hidden] {
    display: block !important;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

@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,
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;
}
