/* ========================================================================
   ДОБЫТО КЭДО — Design System
   Palette: Deep Navy trust + Emerald action + Clean surfaces
   Fonts: Manrope (display) + Onest (body) — Cyrillic-native
   ======================================================================== */

/* Google Fonts loaded via wp_enqueue_style in PHP */

/* ---------- Design Tokens ---------- */
:root {
    /* --- Brand Blues --- */
    --navy-950: #06101f;
    --navy-900: #0b1d3a;
    --navy-800: #122b52;
    --navy-700: #1a3a6b;
    --navy-600: #1d4ed8;
    --navy-500: #2563eb;
    --navy-400: #3b82f6;
    --navy-300: #60a5fa;
    --navy-200: #93c5fd;
    --navy-100: #dbeafe;
    --navy-50: #eff6ff;

    /* --- Action Green --- */
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;

    /* --- Warm Accent --- */
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;

    /* --- Neutrals --- */
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;

    /* --- Semantic --- */
    --color-primary: var(--navy-600);
    --color-primary-hover: var(--navy-500);
    --color-primary-dark: var(--navy-900);
    --color-accent: var(--emerald-600);
    --color-accent-hover: var(--emerald-500);
    --color-danger: #dc2626;
    --color-danger-hover: #ef4444;
    --color-text: var(--gray-900);
    --color-text-secondary: var(--gray-600);
    --color-text-muted: var(--gray-400);
    --color-bg: var(--white);
    --color-bg-subtle: var(--gray-50);
    --color-bg-muted: var(--gray-100);
    --color-border: var(--gray-200);
    --color-border-strong: var(--gray-300);

    /* --- Typography --- */
    --font-display: "Manrope", sans-serif;
    --font-body: "Onest", sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* --- Spacing --- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* --- Layout --- */
    --container-max: 1200px;
    --container-wide: 1400px;
    --container-narrow: 780px;
    --header-height: 72px;

    /* --- Shadows --- */
    --shadow-xs: 0 1px 2px rgba(11, 29, 58, 0.04);
    --shadow-sm: 0 1px 3px rgba(11, 29, 58, 0.06), 0 1px 2px rgba(11, 29, 58, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(11, 29, 58, 0.07), 0 2px 4px -2px rgba(11, 29, 58, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(11, 29, 58, 0.07), 0 4px 6px -4px rgba(11, 29, 58, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(11, 29, 58, 0.08), 0 8px 10px -6px rgba(11, 29, 58, 0.03);
    --shadow-header: 0 1px 3px rgba(11, 29, 58, 0.08), 0 4px 24px rgba(11, 29, 58, 0.04);

    /* --- Radius --- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* --- Motion --- */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 150ms;
    --dur-normal: 250ms;
    --dur-slow: 400ms;
}

/* ========================================
   RESET + BASE
   ======================================== */
/* ----- СБРОС (безопасный для картинок) ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Сбрасываем отступы у всех элементов, КРОМЕ картинок */
*:not(img):not(picture):not(figure):not(figcaption),
*:not(img):not(picture):not(figure):not(figcaption)::before,
*:not(img):not(picture):not(figure):not(figcaption)::after {
    margin: 0;
    padding: 0;
}

/* Явно указываем поведение для картинок */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

/* ========================================
   КАРТИНКИ В СТАТЬЯХ — КРАСИВО И ПО ЦЕНТРУ
   ======================================== */

/* Все картинки в тексте */
.post-body img,
.post-body .wp-block-image img,
.entry-content img {
    display: block; /* Убирает обтекание */
    width: auto !important; /* Inline width из WordPress не должен ломать адаптивность */
    max-width: 100% !important; /* Но сохраняем меньшие размеры изображений */
    height: auto !important;
    margin: 2rem auto; /* Центрирование + отступы */
    border-radius: var(--radius-md); /* Скругление */
    box-shadow: var(--shadow-sm); /* Легкая тень (по желанию) */
}

/* Обертки Gutenberg и классический wp-caption тоже не должны вылезать за колонку */
.post-body figure,
.post-body .wp-block-image,
.post-body .wp-caption,
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-caption {
    max-width: 100% !important;
}

/* Если картинка должна быть на всю ширину (например, главная в статье) */
.post-body img.size-full,
.post-body .wp-block-image.size-full img,
.entry-content img.size-full {
    max-width: 100% !important;
}

@media (max-width: 640px) {
    .post-body .wp-caption,
    .entry-content .wp-caption {
        margin-left: 0;
    }
}

/* Картинки с выравниванием (если используете в админке) */
.post-body .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
}

.post-body .alignleft {
    float: left;
    margin: 0.5rem 1rem 0.5rem 0;
    max-width: 40%; /* Уменьшаем обтекаемые картинки */
}

.post-body .alignright {
    float: right;
    margin: 0.5rem 0 0.5rem 1rem;
    max-width: 40%;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}
a:hover {
    color: var(--color-primary-hover);
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}
ul,
ol {
    list-style: none;
}
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 var(--space-6);
}
.container--wide {
    max-width: var(--container-wide);
}
.container--narrow {
    max-width: var(--container-narrow);
}
.container--article {
    max-width: 720px;
}

.section {
    padding: var(--space-20) 0;
}
.section--sm {
    padding: var(--space-12) 0;
}
.section--flush {
    padding: 0;
}

/* WordPress Alignment */
.alignwide {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}
.alignfull {
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}
.alignleft {
    float: left;
    margin-right: var(--space-6);
    margin-bottom: var(--space-4);
}
.alignright {
    float: right;
    margin-left: var(--space-6);
    margin-bottom: var(--space-4);
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition:
        background var(--dur-normal) var(--ease-out),
        border-color var(--dur-normal) var(--ease-out),
        box-shadow var(--dur-normal) var(--ease-out);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-header);
}

/* WordPress Admin Bar Offsets */
body.admin-bar .site-header {
    top: 32px;
}
body.admin-bar .mobile-drawer {
    top: calc(var(--header-height) + 32px);
}
@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
    body.admin-bar .mobile-drawer {
        top: calc(var(--header-height) + 46px);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 640px) {
    .header-inner {
        padding-right: 0;
        padding-left: 0;
        max-width: 100vw;
    }

    #siteHeader {
        max-width: 100vw;
    }

    .logo {
        padding-left: var(--space-6);
    }

    .header-actions {
        padding-right: var(--space-6);
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--navy-900);
    letter-spacing: -0.02em;
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover {
    color: var(--navy-900);
}

.logo__icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: var(--text-sm);
}
.logo__favicon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.logo__mark {
    color: var(--color-primary);
}

/* Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-main__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition:
        color var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out);
    white-space: nowrap;
}
.nav-main__link:hover {
    color: var(--color-primary);
    background: var(--navy-50);
}
.nav-main__link.is-active {
    color: var(--color-primary);
    background: var(--navy-50);
}

/* Dropdown */
.nav-main__item {
    position: relative;
}
.nav-main__item .dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--dur-fast) var(--ease-out);
}
.nav-main__item:hover .dropdown-arrow {
    transform: rotate(180deg);
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out),
        visibility var(--dur-fast);
    transform: translateX(-50%) translateY(12px);
}
.nav-main__item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}
.nav-dropdown__link {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition:
        background var(--dur-fast),
        color var(--dur-fast);
}
.nav-dropdown__link:hover {
    background: var(--gray-50);
    color: var(--color-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Header phone link */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy-900);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
    white-space: nowrap;
}
.header-phone:hover {
    color: var(--color-primary);
}
.header-phone svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline;
}
@media (max-width: 900px) {
    .header-phone__text {
        display: none;
    }
}

/* Mobile drawer contact info */
.mobile-drawer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-4);
}
.mobile-drawer__phone,
.mobile-drawer__email {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy-900);
    text-decoration: none;
}
.mobile-drawer__phone svg,
.mobile-drawer__email svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline;
}
.mobile-drawer__phone:hover,
.mobile-drawer__email:hover {
    color: var(--color-primary);
}

/* Mobile menu toggle */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--dur-fast);
}
.burger:hover {
    background: var(--gray-100);
}

.burger__lines {
    width: 22px;
    height: 16px;
    position: relative;
}
.burger__lines span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition:
        transform var(--dur-normal) var(--ease-out),
        opacity var(--dur-fast);
}
.burger__lines span:nth-child(1) {
    top: 0;
}
.burger__lines span:nth-child(2) {
    top: 7px;
}
.burger__lines span:nth-child(3) {
    bottom: 0;
}

.burger.is-active .burger__lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.is-active .burger__lines span:nth-child(2) {
    opacity: 0;
}
.burger.is-active .burger__lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    overflow-y: auto;
}
.mobile-drawer.is-open {
    transform: translateX(0);
}
.mobile-drawer__link {
    display: block;
    padding: var(--space-4) 0;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-800);
    border-bottom: 1px solid var(--color-border);
}
.mobile-drawer__link:hover {
    color: var(--color-primary);
}
.mobile-drawer__cta {
    margin-top: var(--space-8);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-sm);
    transition: all var(--dur-fast) var(--ease-out);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--white);
    box-shadow: 0 1px 2px rgba(29, 78, 216, 0.3);
}
.btn--primary:hover {
    background: var(--color-primary-hover);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
    transform: translateY(-1px);
}

.btn--accent {
    background: var(--color-accent);
    color: var(--white);
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.3);
}
.btn--accent:hover {
    background: var(--color-accent-hover);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.btn--outline:hover {
    background: var(--navy-50);
    color: var(--color-primary);
}

.btn--ghost {
    background: transparent;
    color: var(--gray-600);
}
.btn--ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-md);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn--full {
    width: 100%;
}

.btn--icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: var(--space-4) 0 var(--space-6);
    font-size: var(--text-xs);
    color: var(--gray-400);
    letter-spacing: 0.01em;
}
.breadcrumbs a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color var(--dur-fast);
}
.breadcrumbs a:hover {
    color: var(--color-primary);
}
.breadcrumbs__sep {
    color: var(--gray-300);
    margin: 0 2px;
    user-select: none;
    font-size: var(--text-sm);
}
.breadcrumbs__current {
    color: var(--color-text-muted);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   SINGLE POST (JOURNAL)
   ======================================== */
/* ========== ARTICLE PAGE (moysklad-inspired) ========== */

/* Post Header — clean white, text-first */
.post-header {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-10);
    background: var(--white);
}

.post-header__category {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--color-primary);
    margin-bottom: var(--space-5);
    transition: color var(--dur-fast);
}
.post-header__category:hover {
    color: var(--navy-400);
}

.post-header__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
}

/* Author + meta row */
.post-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--gray-500);
}
.post-header__author {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
.post-header__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.post-header__author-name {
    font-weight: 600;
    color: var(--gray-800);
}
.post-header__date {
    color: var(--gray-500);
}
.post-header__detail {
    color: var(--gray-400);
}
.post-header__sep {
    width: 3px;
    height: 3px;
    background: var(--gray-300);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Article wrapper */
.post-article {
    padding-bottom: var(--space-16);
    background: var(--white);
}

/* Article Content (body text) */
.post-body {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--gray-800);
}
.post-body > *:first-child {
    margin-top: 0;
}
.post-body h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
    padding-top: var(--space-6);
    color: var(--gray-900);
    letter-spacing: -0.01em;
    border-top: 1px solid var(--gray-100);
}
.post-body > h2:first-of-type {
    border-top: none;
    padding-top: 0;
}
.post-body h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}
.post-body p {
    margin-bottom: var(--space-5);
}
.post-body ul,
.post-body ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}
.post-body ul {
    list-style: none;
}
.post-body ol {
    list-style: decimal;
}
.post-body ul li {
    position: relative;
    padding-left: var(--space-4);
    margin-bottom: var(--space-2);
}
.post-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--navy-400);
}
.post-body ol li {
    margin-bottom: var(--space-2);
    padding-left: var(--space-1);
}
.post-body ol li::marker {
    color: var(--navy-400);
    font-weight: 600;
}
.post-body blockquote {
    margin: var(--space-8) 0;
    padding: var(--space-5) var(--space-6);
    background: var(--navy-50);
    border-left: 3px solid var(--navy-400);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--navy-800);
    font-size: var(--text-base);
    line-height: 1.7;
}
.post-body blockquote p:last-child {
    margin-bottom: 0;
}
.post-body img {
    border-radius: var(--radius-md);
    margin: var(--space-8) 0;
}
.post-body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--navy-200);
    transition: text-decoration-color var(--dur-fast);
}
.post-body a:hover {
    text-decoration-color: var(--color-primary);
}
.post-body code {
    font-family: "Fira Code", monospace;
    font-size: 0.875em;
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
}
.post-body pre {
    background: var(--navy-950);
    color: var(--gray-300);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--space-8) 0;
    font-size: var(--text-sm);
}
.post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-8) 0;
    font-size: var(--text-base);
}
.post-body th,
.post-body td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}
.post-body th {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: transparent;
    border-bottom: 2px solid var(--gray-200);
}
.post-body td {
    color: var(--gray-700);
}
.post-body tr:last-child td {
    border-bottom: none;
}

/* WordPress Block Overrides */
.post-body .wp-block-image {
    margin: var(--space-8) 0;
}
.post-body .wp-block-image img {
    border-radius: var(--radius-md);
}
.post-body .wp-block-quote {
    margin: var(--space-8) 0;
    padding: var(--space-5) var(--space-6);
    background: var(--navy-50);
    border-left: 3px solid var(--navy-400);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-body .wp-block-table {
    margin: var(--space-8) 0;
}
.post-body .wp-block-code {
    margin: var(--space-8) 0;
}

/* Author Card — bottom of article */
.post-author-bottom {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    margin-top: var(--space-12);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.post-author-bottom__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.post-author-bottom__info {
    flex: 1;
}
.post-author-bottom__label {
    font-size: var(--text-xs);
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-bottom: 2px;
}
.post-author-bottom__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--gray-900);
    display: block;
}
.post-author-bottom__job {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: 500;
    margin-top: 2px;
}
.post-author-bottom__role {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-top: 4px;
    line-height: 1.5;
}

/* Credential badge (used in author cards and author page) */
.author-credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 2px 10px 2px 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--emerald-700, #047857);
    background: var(--emerald-50, #ecfdf5);
    border: 1px solid var(--emerald-200, #a7f3d0);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--dur-fast);
    line-height: 1.4;
}
.author-credential-badge svg {
    flex-shrink: 0;
    color: var(--emerald-600, #059669);
}
a.author-credential-badge:hover {
    background: var(--emerald-100, #d1fae5);
    border-color: var(--emerald-300, #6ee7b7);
    color: var(--emerald-800, #065f46);
}
.author-credential-badge--lg {
    padding: 4px 14px 4px 8px;
    font-size: var(--text-sm);
}
.author-credential-badge__cat {
    color: var(--emerald-500, #10b981);
    font-weight: 400;
}

/* Author card at top (after TOC) */
.post-author-top {
    margin-top: var(--space-6);
    margin-bottom: var(--space-8);
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}
.post-tags__tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-sm);
    color: var(--gray-500);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    transition: all var(--dur-fast);
}
.post-tags__tag:hover {
    background: var(--navy-50);
    color: var(--color-primary);
}

/* Post Share */
.post-share {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6) 0 var(--space-4);
}
.post-share__label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--gray-500);
    white-space: nowrap;
}
.post-share__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    color: var(--gray-500);
    transition: all var(--dur-fast);
}
.post-share__btn:hover {
    background: var(--color-primary);
    color: var(--white);
}
.post-share__btn svg {
    width: 16px;
    height: 16px;
}

/* Related Posts */
.related-posts {
    padding: var(--space-16) 0;
    background: var(--color-bg-subtle);
    border-top: 1px solid var(--color-border);
}
.related-posts__title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: var(--space-8);
    letter-spacing: -0.01em;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* Post Card (for listings & related) */
.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition:
        transform var(--dur-normal) var(--ease-out),
        box-shadow var(--dur-normal) var(--ease-out);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.post-card__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-100);
    display: block;
    text-decoration: none;
}
.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}
.post-card:hover .post-card__thumb img {
    transform: scale(1.04);
}
.post-card__body {
    padding: var(--space-5) var(--space-6);
}
.post-card__cat {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}
.post-card__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.35;
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__title a {
    color: inherit;
}
.post-card__title a:hover {
    color: var(--color-primary);
}

.post-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-4);
}
.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}
.post-card__date {
    font-weight: 500;
}
.post-card__read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   CONTACTS
   ======================================== */
.contacts-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-20);
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-16);
    align-items: start;
}

.contacts-info__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}
.contacts-info__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-10);
    line-height: 1.55;
}

.contact-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--color-border);
}
.contact-item:first-child {
    border-top: 1px solid var(--color-border);
}
.contact-item__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-50);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    flex-shrink: 0;
}
.contact-item__icon svg {
    width: 20px;
    height: 20px;
}
.contact-item__label {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
}
.contact-item__value {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--gray-800);
}
.contact-item__value a {
    color: var(--gray-800);
}
.contact-item__value a:hover {
    color: var(--color-primary);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-md);
}
.contact-form-wrap__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: var(--space-2);
}
.contact-form-wrap__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.form-group {
    margin-bottom: var(--space-5);
}
.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}
.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition:
        border-color var(--dur-fast),
        box-shadow var(--dur-fast);
    outline: none;
}
.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}
.form-textarea {
    resize: vertical;
    min-height: 140px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.contacts-map {
    margin-top: var(--space-12);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    min-height: 400px;
    background: var(--gray-100);
}
.contacts-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}

/* ========================================
   FILE UPLOAD BLOCK
   ======================================== */
.upload-section {
    padding: var(--space-16) 0;
}
.upload-section__title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}
.upload-section__desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: var(--space-16) var(--space-8);
    text-align: center;
    cursor: pointer;
    transition:
        border-color var(--dur-fast),
        background var(--dur-fast);
    position: relative;
    background: var(--gray-50);
}
.upload-zone:hover,
.upload-zone.is-dragover {
    border-color: var(--color-primary);
    background: var(--navy-50);
}
.upload-zone.is-dragover {
    border-style: solid;
}

.upload-zone__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-100);
    border-radius: 50%;
    color: var(--color-primary);
    transition: transform var(--dur-normal) var(--ease-out);
}
.upload-zone:hover .upload-zone__icon {
    transform: scale(1.08);
}
.upload-zone__icon svg {
    width: 28px;
    height: 28px;
}

.upload-zone__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--gray-800);
    margin-bottom: var(--space-2);
}
.upload-zone__subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}
.upload-zone__formats {
    font-size: var(--text-xs);
    color: var(--gray-400);
}
.upload-zone__link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* File List */
.file-list {
    margin-top: var(--space-6);
}
.file-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    transition: border-color var(--dur-fast);
    animation: fadeSlideUp var(--dur-normal) var(--ease-out);
}
.file-item:hover {
    border-color: var(--gray-300);
}

.file-item__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-xs);
    text-transform: uppercase;
}
.file-item__icon--pdf {
    background: #fee2e2;
    color: #dc2626;
}
.file-item__icon--docx {
    background: var(--navy-100);
    color: var(--color-primary);
}
.file-item__icon--xlsx {
    background: var(--emerald-100);
    color: var(--emerald-700);
}
.file-item__icon--default {
    background: var(--gray-100);
    color: var(--gray-500);
}

.file-item__info {
    flex: 1;
    min-width: 0;
}
.file-item__name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--gray-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-item__meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

.file-item__status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
}
.file-item__status--ready {
    color: var(--color-accent);
}
.file-item__status--uploading {
    color: var(--color-primary);
}
.file-item__status--signed {
    color: var(--emerald-600);
}

.file-item__remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    transition: all var(--dur-fast);
}
.file-item__remove:hover {
    background: #fee2e2;
    color: var(--color-danger);
}
.file-item__remove svg {
    width: 16px;
    height: 16px;
}

/* Upload progress bar */
.file-item__progress {
    margin-top: var(--space-2);
    height: 3px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}
.file-item__progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width var(--dur-slow) var(--ease-out);
}

.upload-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}
.upload-actions__info {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--navy-950);
    color: var(--gray-400);
    font-size: var(--text-sm);
}

.footer-main {
    padding: var(--space-16) 0;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: var(--space-10);
}

.footer-brand__logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--white);
    margin-bottom: var(--space-5);
    text-decoration: none;
}
.footer-brand__logo:hover {
    color: var(--white);
}
.footer-brand__logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 800;
    color: var(--white);
}
.footer-brand__logo-favicon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.footer-brand__desc {
    color: var(--gray-400);
    line-height: 1.65;
    margin-bottom: var(--space-6);
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}
.footer-social__link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    transition: all var(--dur-fast);
}
.footer-social__link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--white);
    transform: translateY(-2px);
}
.footer-social__link svg {
    width: 18px;
    height: 18px;
}

.footer-column__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-5);
}
.footer-column__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.footer-column__link {
    display: inline-block;
    padding: var(--space-1) 0;
    color: var(--gray-400);
    font-size: var(--text-sm);
    transition:
        color var(--dur-fast),
        padding-left var(--dur-fast);
}
.footer-column__link:hover {
    color: var(--white);
    padding-left: var(--space-2);
}

.footer-bottom {
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--gray-500);
}
.footer-bottom a {
    color: var(--gray-400);
    transition: color var(--dur-fast);
}
.footer-bottom a:hover {
    color: var(--white);
}
.footer-bottom__links {
    display: flex;
    gap: var(--space-6);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn var(--dur-slow) var(--ease-out);
}

/* ========================================
   RESPONSIVE — TABLET
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }

    .nav-main {
        display: none;
    }
    .burger {
        display: flex;
    }
    .header-actions .btn {
        display: none;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */
@media (max-width: 640px) {
    :root {
        --header-height: 56px;
    }

    .container {
        padding: 0 var(--space-4);
    }
    .section {
        padding: var(--space-12) 0;
    }

    .post-header {
        padding-top: calc(var(--header-height) + var(--space-4));
    }
    .post-header__meta {
        gap: var(--space-2);
    }
    .post-header__sep:nth-child(n + 4) {
        display: none;
    }
    .post-header__detail:last-child {
        display: none;
    }

    .post-body {
        font-size: var(--text-base);
    }
    .post-body h2 {
        font-size: var(--text-xl);
    }

    .post-author-bottom {
        flex-direction: column;
        text-align: center;
        padding: var(--space-5);
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .contacts-section {
        padding-top: var(--space-8);
    }
    .contacts-info__title {
        font-size: var(--text-2xl);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrap {
        padding: var(--space-6);
    }

    .upload-zone {
        padding: var(--space-10) var(--space-4);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    .footer-bottom__links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .upload-actions {
        flex-direction: column;
        gap: var(--space-4);
        align-items: stretch;
        text-align: center;
    }

    .hero {
        padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-12);
    }
    .hero__title {
        font-size: var(--text-3xl);
    }
    .hero__subtitle {
        font-size: var(--text-base);
    }
    .hero__actions {
        flex-direction: column;
    }
    .hero__actions .btn {
        width: 100%;
    }
    .hero__visual {
        height: 240px;
        margin-top: var(--space-8);
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .trust-bar__logos {
        gap: var(--space-6);
        flex-wrap: wrap;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
    .step-card__number {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat__value {
        font-size: var(--text-3xl);
    }

    .cta-banner {
        padding: var(--space-10) var(--space-6);
    }
    .cta-banner__title {
        font-size: var(--text-2xl);
    }
    .cta-banner__actions {
        flex-direction: column;
    }
    .cta-banner__actions .btn {
        width: 100%;
    }

    .journal-hero {
        padding-top: calc(var(--header-height) + var(--space-4));
    }
    .journal-hero__title {
        font-size: var(--text-2xl);
    }
    .journal-grid {
        grid-template-columns: 1fr;
    }
    .journal-featured {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .about-hero__title {
        font-size: var(--text-2xl);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }

    .error-page__code {
        font-size: 6rem;
    }
}

/* ========================================
   HERO
   ======================================== */
.hero {
    padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
    background: linear-gradient(
        168deg,
        var(--white) 0%,
        var(--navy-50) 50%,
        var(--emerald-50) 100%
    );
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--color-primary);
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}
.hero__title {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.08;
    color: var(--navy-900);
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
}
.hero__title span {
    color: var(--color-primary);
}
.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    max-width: 520px;
}
.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}
.hero__note {
    font-size: var(--text-xs);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.hero__note svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hero__visual {
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--navy-100) 0%, var(--navy-50) 40%, var(--white) 100%);
    border: 1px solid var(--navy-100);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}
.hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.03) 0%, transparent 60%);
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--color-border);
}
.trust-bar__label {
    text-align: center;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: var(--space-8);
}
.trust-bar__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-12);
}
.trust-bar__logo {
    height: 28px;
    opacity: 0.35;
    transition: opacity var(--dur-fast);
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-lg);
    color: var(--gray-500);
    white-space: nowrap;
}
.trust-bar__logo:hover {
    opacity: 0.6;
}
.trust-bar__logo img.trust-bar__logo-img {
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(1);
}
.trust-bar__logo:hover img.trust-bar__logo-img {
    filter: grayscale(0);
}
.trust-bar__logo {
    text-decoration: none;
    color: var(--navy-400);
}

/* ========================================
   FEATURE CARDS
   ======================================== */
.features-section {
    padding: var(--space-20) 0;
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-12);
}
.section-header__label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}
.section-header__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}
.section-header__desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.feature-card {
    padding: var(--space-8);
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition:
        transform var(--dur-normal) var(--ease-out),
        box-shadow var(--dur-normal) var(--ease-out),
        border-color var(--dur-normal);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--navy-200);
}
.feature-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-50);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    margin-bottom: var(--space-5);
}
.feature-card__icon svg {
    width: 24px;
    height: 24px;
}
.feature-card__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}
.feature-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ========================================
   STEPS / HOW IT WORKS
   ======================================== */
.steps-section {
    padding: var(--space-20) 0;
    background: var(--navy-950);
    color: var(--white);
}
.steps-section .section-header__title {
    color: var(--white);
}
.steps-section .section-header__desc {
    color: var(--gray-400);
}
.steps-section .section-header__label {
    color: var(--navy-300);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    counter-reset: step-counter;
}
.step-card {
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    text-align: center;
    transition:
        background var(--dur-fast),
        border-color var(--dur-fast);
}
.step-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}
.step-card__number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--white);
    background: var(--color-primary);
    border-radius: 50%;
}
.step-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--white);
    margin-bottom: var(--space-2);
}
.step-card__desc {
    font-size: var(--text-sm);
    color: var(--gray-400);
    line-height: 1.55;
}

/* ========================================
   STATS
   ======================================== */
.stats-section {
    padding: var(--space-16) 0;
    background: var(--color-bg-subtle);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}
.stat__value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-4xl);
    color: var(--color-primary);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: var(--space-2);
}
.stat__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    padding: var(--space-6) var(--space-4) 1rem;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, #1a2e5a 100%);
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cta-banner__title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    position: relative;
    color: white;
}
.cta-banner__desc {
    font-size: var(--text-base);
    color: var(--gray-300);
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.cta-banner__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    position: relative;
}

/* ========================================
   JOURNAL ARCHIVE
   ======================================== */
.journal-hero {
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-10);
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 50%, #1a365d 100%);
    position: relative;
    overflow: hidden;
}
.journal-hero::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.journal-hero::after {
    content: "";
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.journal-hero .container {
    position: relative;
    z-index: 1;
}
.journal-hero__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}
.journal-hero__desc {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-8);
    max-width: 600px;
}
/* Hero search */
.journal-search {
    display: flex;
    max-width: 480px;
    margin-bottom: var(--space-8);
    position: relative;
}
.journal-search__input {
    width: 100%;
    padding: var(--space-3) var(--space-5);
    padding-left: 44px;
    font-size: var(--text-base);
    font-family: var(--font-body);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}
.journal-search__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.journal-search__input:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}
.journal-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}
/* Hero breadcrumbs on dark bg */
.journal-hero .breadcrumbs,
.journal-hero .breadcrumbs a {
    color: rgba(255, 255, 255, 0.5);
}
.journal-hero .breadcrumbs a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.journal-filters {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}
.journal-filters__btn {
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    transition: all var(--dur-fast);
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.journal-filters__btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}
.journal-filters__btn.is-active {
    background: var(--white);
    color: var(--navy-900);
    border-color: var(--white);
}

.journal-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}
.journal-featured .post-card--featured {
    grid-row: span 2;
}
.post-card--featured .post-card__thumb {
    aspect-ratio: 4/3;
}
.post-card--featured .post-card__title {
    font-size: var(--text-xl);
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-12) 0;
}
.pagination__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--gray-600);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: all var(--dur-fast);
    cursor: pointer;
}
.pagination__btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.pagination__btn.is-active {
    background: var(--color-primary);
    color: var(--white);
    border-color: var(--color-primary);
}
.pagination__btn--arrow svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-section {
    padding: var(--space-20) 0;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: start;
}
.pricing-card {
    background: var(--white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition:
        transform var(--dur-normal) var(--ease-out),
        box-shadow var(--dur-normal);
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pricing-card--popular {
    border-color: var(--color-primary);
    position: relative;
    box-shadow: var(--shadow-md);
}
.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-1) var(--space-4);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--white);
    background: var(--color-primary);
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.pricing-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--navy-900);
    margin-bottom: var(--space-2);
}
.pricing-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.5;
}
.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}
.pricing-card__amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-4xl);
    color: var(--navy-900);
    letter-spacing: -0.02em;
    line-height: 1;
}
.pricing-card__period {
    font-size: var(--text-sm);
    color: var(--gray-500);
}
.pricing-card__note {
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-top: var(--space-2);
    line-height: 1.4;
}
.pricing-card__features {
    margin-bottom: var(--space-8);
}
.pricing-card__feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--gray-700);
}
.pricing-card__feature svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 1px;
}

/* FAQ */
.faq-section {
    padding: var(--space-16) 0;
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--color-border);
}
.faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-5) 0;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    cursor: pointer;
    transition: color var(--dur-fast);
}
.faq-item__q:hover {
    color: var(--color-primary);
}
.faq-item__q svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
    transition: transform var(--dur-normal) var(--ease-out);
}
.faq-item.is-open .faq-item__q svg {
    transform: rotate(45deg);
}
.faq-item__a {
    display: none;
    padding-bottom: var(--space-5);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.65;
}
.faq-item.is-open .faq-item__a {
    display: block;
    animation: fadeSlideDown var(--dur-normal) var(--ease-out);
}

/* ========================================
   ABOUT
   ======================================== */
.about-hero {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-16);
    background: linear-gradient(168deg, var(--white) 0%, var(--navy-50) 100%);
    border-bottom: 1px solid var(--color-border);
}
.about-hero__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}
.about-hero__desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 640px;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}
.about-image {
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--navy-100), var(--navy-50));
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--navy-100);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.value-card {
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--white);
}
.value-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-50);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}
.value-card__icon svg {
    width: 22px;
    height: 22px;
}
.value-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}
.value-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.55;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-8);
}
.error-page__code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 8rem;
    color: var(--navy-100);
    line-height: 1;
    letter-spacing: -0.04em;
}
.error-page__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-2xl);
    color: var(--navy-900);
    margin-bottom: var(--space-3);
}
.error-page__desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   RESPONSIVE — TABLET (new components)
   ======================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero__title {
        font-size: var(--text-4xl);
    }
    .hero__visual {
        height: 300px;
        margin-top: var(--space-6);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .journal-featured {
        grid-template-columns: 1fr;
    }
    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        height: 240px;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ========================================
   ИДЕАЛЬНЫЕ КАРТИНКИ
   ======================================== */

/* Все картинки по умолчанию */
img {
    display: block; /* Убирает лишнее пространство снизу */
    max-width: 100%; /* Адаптивность */
    height: auto; /* Не искажаем пропорции */
    border-radius: var(--radius-md); /* Скругление 10px (как у вас в переменных) */
}

/* Картинки в тексте (в постах) — чтобы были вровень с текстом */
.post-body img,
.entry-content img,
.wp-block-image img {
    display: inline-block; /* Чтобы текст обтекал */
    margin: var(--space-4) auto; /* Отступы сверху/снизу */
    max-width: 100%;
    border-radius: var(--radius-md);
}

/* Выравнивание по левому краю (если нужно) */
.alignleft,
.post-body .alignleft {
    float: left;
    margin: 0 var(--space-4) var(--space-2) 0;
    max-width: 50%;
}

/* Выравнивание по правому краю */
.alignright,
.post-body .alignright {
    float: right;
    margin: 0 0 var(--space-2) var(--space-4);
    max-width: 50%;
}

/* Выравнивание по центру */
.aligncenter,
.post-body .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    float: none;
}

/* Уменьшенные картинки (если нужно специально) */
.img--small {
    max-width: 300px;
    width: 100%;
}

.img--medium {
    max-width: 500px;
    width: 100%;
}

.img--rounded {
    border-radius: var(--radius-lg); /* 16px - более круглые */
}

.img--circle {
    border-radius: 50%; /* Круглые (для аватарок) */
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Для галерей и сеток */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    list-style: none;
    padding: 0;
}

.wp-block-gallery img {
    margin: 0; /* Убираем авто-отступы внутри галереи */
}

/* Ограничение ширины для контейнера с картинками */
.post-body {
    max-width: 720px; /* У вас уже есть такой класс */
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   AI PAGE
   ======================================== */
.ai-hero {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-16);
    background: linear-gradient(
        168deg,
        var(--navy-950) 0%,
        var(--navy-800) 50%,
        var(--navy-700) 100%
    );
    position: relative;
    overflow: hidden;
}
.ai-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ai-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.ai-hero .breadcrumbs,
.ai-hero .breadcrumbs a,
.ai-hero .breadcrumbs__sep {
    color: var(--navy-300);
}
.ai-hero .breadcrumbs__current {
    color: var(--navy-200);
}
.ai-hero__grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--space-12);
    align-items: center;
}
.ai-hero__content {
    position: relative;
    z-index: 1;
}
.ai-hero__title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-5);
}
.ai-hero__desc {
    font-size: var(--text-lg);
    color: var(--navy-200);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: var(--space-8);
}
.ai-hero .hero__badge {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--navy-200);
}
.ai-hero .btn--primary {
    background: var(--emerald-600);
    border-color: var(--emerald-600);
}
.ai-hero .btn--primary:hover {
    background: var(--emerald-500);
    border-color: var(--emerald-500);
}
.ai-hero .btn--outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}
.ai-hero .btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}
.ai-hero .btn--outline svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -2px;
}
.ai-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.ai-hero__icon-wrap {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: aiPulse 4s ease-in-out infinite;
}
@keyframes aiPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px 10px rgba(59, 130, 246, 0.08);
    }
}

/* ========================================
   FOOTER CONTACT BAR
   ======================================== */
.footer-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    padding-bottom: var(--space-8);
    margin-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-8);
}
.footer-contact-bar__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-300);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}
a.footer-contact-bar__item:hover {
    color: var(--white);
}
.footer-contact-bar__item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ========================================
   JOURNAL TOOLBAR (sort + filter row)
   ======================================== */
.journal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-6);
    flex-wrap: wrap;
}

.journal-sort {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.journal-sort__label {
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
}
.journal-sort__select {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-8) var(--space-2) var(--space-3);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.journal-sort__select:hover,
.journal-sort__select:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}
.journal-sort__select option {
    background: var(--navy-900);
    color: var(--white);
}

/* Journal loading state */
.journal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    grid-column: 1 / -1;
}
.journal-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.journal-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--space-16) var(--space-4);
    font-size: var(--text-lg);
}

/* ========================================
   SEO TEXT BLOCK
   ======================================== */
.seo-text-block {
    padding: var(--space-10) 0;
}
.seo-text-block__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--navy-900);
    margin-bottom: var(--space-4);
}
.seo-text-block p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* SEO footer grid (homepage) */
.seo-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
}
.seo-footer-block p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2);
}
.seo-footer-block a {
    color: var(--color-primary);
    text-decoration: none;
}
.seo-footer-block a:hover {
    text-decoration: underline;
}
.seo-footer-block strong {
    font-weight: 600;
    color: var(--gray-700);
}

@media (max-width: 768px) {
    .seo-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* ========================================
   RESPONSIVE — NEW COMPONENTS
   ======================================== */
@media (max-width: 1024px) {
    .ai-hero__grid {
        grid-template-columns: 1fr;
    }
    .ai-hero__title {
        font-size: var(--text-4xl);
    }
    .ai-hero__visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .ai-hero__title {
        font-size: var(--text-3xl);
    }
    .ai-hero__desc {
        font-size: var(--text-base);
    }

    .footer-contact-bar {
        flex-direction: column;
        gap: var(--space-3);
    }

    .journal-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .journal-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
        width: 100%;
        padding-bottom: var(--space-2);
    }
    .journal-filters::-webkit-scrollbar {
        display: none;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

/* ========================================================================
   KONTUR-INSPIRED DESIGN UPGRADES — Modern SaaS visual language
   ======================================================================== */

/* ---------- Scroll-reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1),
        transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- HERO — product mockup visual ---------- */
.hero__visual {
    background: linear-gradient(
        145deg,
        var(--navy-900) 0%,
        var(--navy-800) 60%,
        var(--navy-700) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}
.hero__visual::before {
    content: "";
    position: absolute;
    top: 12%;
    left: 8%;
    right: 8%;
    bottom: 0;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3);
}
.hero__visual::after {
    content: "";
    position: absolute;
    top: 12%;
    left: 8%;
    right: 8%;
    height: 36px;
    background: var(--gray-100);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 1px solid var(--gray-200);
}
.hero__visual svg {
    position: relative;
    z-index: 1;
}
.hero__mock-dots {
    position: absolute;
    top: calc(12% + 12px);
    left: calc(8% + 14px);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.hero__mock-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.hero__mock-dots span:nth-child(1) {
    background: #ef4444;
}
.hero__mock-dots span:nth-child(2) {
    background: #f59e0b;
}
.hero__mock-dots span:nth-child(3) {
    background: #22c55e;
}

/* Floating badge on hero */
.hero__floating-badge {
    position: absolute;
    bottom: 20%;
    right: 6%;
    z-index: 3;
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    animation: floatBadge 3s ease-in-out infinite;
}
.hero__floating-badge__icon {
    width: 36px;
    height: 36px;
    background: var(--emerald-100);
    color: var(--emerald-600);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__floating-badge__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--gray-800);
}
.hero__floating-badge__sub {
    font-size: var(--text-xs);
    color: var(--gray-500);
    font-weight: 400;
}
@keyframes floatBadge {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ---------- PROBLEMS section ---------- */
.problems-section {
    padding: var(--space-20) 0;
    background: var(--navy-950);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.problems-section::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.problems-section .section-header__title {
    color: var(--white);
}
.problems-section .section-header__desc {
    color: var(--gray-400);
}
.problems-section .section-header__label {
    color: #f87171;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}
.problem-card {
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition:
        background var(--dur-normal),
        border-color var(--dur-normal),
        transform var(--dur-normal);
}
.problem-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
    transform: translateY(-4px);
}
.problem-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.12);
    border-radius: var(--radius-md);
    color: #f87171;
    margin-bottom: var(--space-5);
}
.problem-card__icon svg {
    width: 24px;
    height: 24px;
}
.problem-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--white);
    margin-bottom: var(--space-3);
}
.problem-card__desc {
    font-size: var(--text-sm);
    color: var(--gray-400);
    line-height: 1.6;
}

/* ---------- COMPARISON section ---------- */
.comparison-section {
    padding: var(--space-20) 0;
    background: var(--white);
}
.comparison-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    min-width: 600px;
}
.comparison-table thead {
    background: var(--navy-950);
}
.comparison-table th {
    padding: var(--space-5) var(--space-6);
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--white);
    border: none;
}
.comparison-table th.comparison-table__feature {
    width: 40%;
}
.comparison-table th.comparison-table__dobyto {
    width: 30%;
}
.comparison-table th.comparison-table__others {
    width: 30%;
}
.comparison-table__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--emerald-600);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
}
.comparison-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background var(--dur-fast);
}
.comparison-table tbody tr:hover {
    background: var(--navy-50);
}
.comparison-table tbody tr:last-child {
    border-bottom: none;
}
.comparison-table td {
    padding: var(--space-4) var(--space-6);
    color: var(--gray-700);
    border: none;
}
.comparison-table td.comparison-table__feature {
    font-weight: 600;
    color: var(--gray-800);
}
.comparison-table td.comparison-table__dobyto {
    background: rgba(16, 185, 129, 0.04);
}
.comparison-check {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
}
.comparison-check--yes {
    color: var(--emerald-600);
}
.comparison-check--yes svg {
    color: var(--emerald-500);
}
.comparison-check--muted {
    color: var(--gray-500);
    font-weight: 400;
}

/* ---------- WHY CHOOSE section ---------- */
.why-section {
    padding: var(--space-20) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--navy-50) 100%);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}
.why-card {
    text-align: center;
    padding: var(--space-8) var(--space-5);
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition:
        transform var(--dur-normal) var(--ease-out),
        box-shadow var(--dur-normal);
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity var(--dur-normal);
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.why-card:hover::before {
    opacity: 1;
}
.why-card__value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-4xl);
    color: var(--color-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: var(--space-3);
}
.why-card__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.55;
}

/* ---------- REVIEWS section ---------- */
.reviews-section {
    padding: var(--space-20) 0;
    background: var(--color-bg-subtle);
    border-top: 1px solid var(--color-border);
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.review-card {
    padding: var(--space-8);
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition:
        transform var(--dur-normal) var(--ease-out),
        box-shadow var(--dur-normal);
    display: flex;
    flex-direction: column;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.review-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-5);
}
.review-card__stars svg {
    width: 16px;
    height: 16px;
}
.review-card__text {
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin-bottom: var(--space-6);
    border: none;
    padding: 0;
}
.review-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border);
}
.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-600), var(--emerald-600));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-sm);
    flex-shrink: 0;
}
.review-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--gray-900);
}
.review-card__role {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: 2px;
}

/* ---------- Animated counter ---------- */
.stat[data-count] .stat__value {
    transition: none;
}

/* ---------- KONTUR-INSPIRED FEATURE CARDS upgrade ---------- */
.feature-card {
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}
.feature-card:hover::before {
    transform: scaleX(1);
}

/* Gradient icon backgrounds on hover */
.feature-card:hover .feature-card__icon {
    background: linear-gradient(135deg, var(--navy-600), var(--emerald-600));
    color: var(--white);
    transition: all 0.3s ease;
}

/* ---------- IMPROVED CTA BANNER ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--navy-900) 0%, #1a3563 40%, var(--navy-800) 100%);
}
.cta-banner::after {
    content: "";
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- JOURNAL FEATURED POST (larger first card) ---------- */
.journal-grid--has-featured .post-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
}
.journal-grid--has-featured .post-card:first-child .post-card__thumb {
    aspect-ratio: auto;
    min-height: 280px;
}
.journal-grid--has-featured .post-card:first-child .post-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-8);
}
.journal-grid--has-featured .post-card:first-child .post-card__title {
    font-size: var(--text-2xl);
    -webkit-line-clamp: 3;
}
.journal-grid--has-featured .post-card:first-child .post-card__excerpt {
    -webkit-line-clamp: 4;
    font-size: var(--text-base);
}

/* ---------- POST NAV (prev/next) ---------- */
.post-nav {
    border-top: 1px solid var(--color-border);
    padding: var(--space-10) 0;
}
.post-nav__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}
.post-nav__link {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all 0.2s ease;
}
.post-nav__link:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}
.post-nav__link--next {
    text-align: right;
    align-items: flex-end;
}
.post-nav__label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.post-nav__title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-nav__link:hover .post-nav__title {
    color: var(--color-primary);
}
@media (max-width: 640px) {
    .post-nav__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- NEWSLETTER SECTION ---------- */
.newsletter-section {
    padding: var(--space-16) 0;
}
.newsletter-card {
    background: linear-gradient(135deg, var(--navy-50) 0%, var(--emerald-50) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-16);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
    border: 1px solid var(--color-border);
}
.newsletter-card__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.newsletter-card__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
}
.newsletter-card__desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.newsletter-card__input-wrap {
    display: flex;
    gap: var(--space-3);
}
.newsletter-card__input {
    flex: 1;
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
    font-family: var(--font-body);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}
.newsletter-card__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.newsletter-card__btn {
    flex-shrink: 0;
    white-space: nowrap;
}
.newsletter-card__note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-3);
}
@media (max-width: 768px) {
    .newsletter-card {
        grid-template-columns: 1fr;
        padding: var(--space-8);
        text-align: center;
    }
    .newsletter-card__icon {
        margin: 0 auto var(--space-4);
    }
    .newsletter-card__input-wrap {
        flex-direction: column;
    }
    .newsletter-card__note {
        justify-content: center;
    }
}

/* ---------- IMPROVED POST CARD (modern look) ---------- */
.post-card {
    border: none;
    box-shadow: 0 2px 8px rgba(11, 29, 58, 0.04);
    overflow: hidden;
}
.post-card:hover {
    box-shadow: 0 12px 32px rgba(11, 29, 58, 0.1);
}
.post-card__cat {
    padding: var(--space-1) var(--space-3);
    background: var(--navy-50);
    border-radius: var(--radius-full);
    transition: background var(--dur-fast);
}
.post-card:hover .post-card__cat {
    background: var(--navy-100);
}
.post-card__title a {
    background-image: linear-gradient(var(--color-primary), var(--color-primary));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition:
        background-size 0.3s ease,
        color 0.2s ease;
}
.post-card:hover .post-card__title a {
    background-size: 100% 2px;
    color: var(--color-primary);
}

/* ---------- JOURNAL CATEGORY PILLS with count ---------- */
.journal-filters__btn {
    position: relative;
}
.journal-filters__btn .cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 9px;
    margin-left: 4px;
}
.journal-filters__btn.is-active .cat-count {
    background: var(--navy-100);
    color: var(--navy-600);
}

/* ---------- JOURNAL CTA BANNER (between articles) ---------- */
.journal-cta {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    position: relative;
    overflow: hidden;
}
.journal-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.journal-cta__content {
    position: relative;
    z-index: 1;
    flex: 1;
}
.journal-cta__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}
.journal-cta__desc {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}
.journal-cta__actions {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.journal-cta .btn {
    white-space: nowrap;
}

/* ---------- JOURNAL STATS ROW ---------- */
.journal-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.journal-stats__item {
    text-align: center;
}
.journal-stats__number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--white);
    display: block;
}
.journal-stats__label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ---------- RESPONSIVE for new blocks ---------- */
@media (max-width: 1024px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .journal-grid--has-featured .post-card:first-child {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }
    .comparison-table {
        min-width: 500px;
    }
    .hero__floating-badge {
        display: none;
    }

    .journal-hero__title {
        font-size: var(--text-2xl);
    }
    .journal-hero__desc {
        font-size: var(--text-base);
    }
    .journal-search {
        max-width: 100%;
    }
    .journal-cta {
        flex-direction: column;
        padding: var(--space-6) var(--space-6);
        text-align: center;
    }
    .journal-cta__title {
        font-size: var(--text-xl);
    }
    .journal-stats {
        gap: var(--space-6);
    }
    .journal-stats__number {
        font-size: var(--text-xl);
    }
}

/* ========================================
   UNIFIED PAGE HERO (matches homepage hero)
   ======================================== */
.page-hero {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    background: linear-gradient(
        168deg,
        var(--white) 0%,
        var(--navy-50) 50%,
        var(--emerald-50) 100%
    );
    position: relative;
    overflow: hidden;
}
.page-hero .breadcrumbs {
    margin-bottom: var(--space-6);
}
.page-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.page-hero__content {
    position: relative;
    z-index: 1;
}
.page-hero__title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.08;
    color: var(--navy-900);
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
}
.page-hero__title span {
    color: var(--color-primary);
}
.page-hero__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    max-width: 520px;
}
.page-hero__visual {
    border-radius: 24px;
    background: linear-gradient(135deg, var(--navy-100) 0%, var(--navy-50) 40%, var(--white) 100%);
    border: 1px solid var(--navy-100);
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 25px -5px rgba(11, 29, 58, 0.08);
    position: relative;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .page-hero__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    .page-hero__visual {
        height: 220px;
    }
}
@media (max-width: 640px) {
    .page-hero__title {
        font-size: var(--text-2xl);
    }
    .page-hero__visual {
        display: none;
    }
}

/* ========================================
   TRUST BAR ENHANCED (logos + links)
   ======================================== */
.trust-bar__logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: transform 0.2s;
}
.trust-bar__logo-link:hover {
    transform: translateY(-2px);
}
.trust-bar__logo-img {
    width: 100px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.5);
    transition: filter 0.3s;
}
.trust-bar__logo-link:hover .trust-bar__logo-img,
.trust-bar__logo:hover .trust-bar__logo-img {
    filter: grayscale(0) opacity(1);
}

/* ========================================
   POST CARD — author line
   ======================================== */
.post-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.post-card__author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.post-card__author-name {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    font-weight: 500;
}
.post-card__author-name a {
    color: inherit;
    text-decoration: none;
}
.post-card__author-name a:hover {
    color: var(--color-primary);
}

/* ========================================
   CASES PAGE
   ======================================== */
.case-card {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition:
        box-shadow 0.3s,
        transform 0.2s;
}
.case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.case-card__header {
    padding: var(--space-6) var(--space-8);
    background: linear-gradient(135deg, var(--navy-50), var(--emerald-50));
    border-bottom: 1px solid var(--color-border);
}
.case-card__company {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--navy-900);
    margin-bottom: 4px;
}
.case-card__industry {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}
.case-card__body {
    padding: var(--space-6) var(--space-8);
}
.case-card__results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.case-result {
    text-align: center;
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}
.case-result__value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-2xl);
    color: var(--color-primary);
}
.case-result__label {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    margin-top: 4px;
}
.case-card__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}
.case-card__quote {
    padding: var(--space-4) var(--space-6);
    border-left: 3px solid var(--color-primary);
    background: var(--navy-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: var(--text-sm);
    color: var(--navy-700);
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .case-card__results {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PARTNER CALCULATOR
   ======================================== */
.calc-section {
    padding: var(--space-16) 0;
}
.calc-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}
.calc-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--navy-900);
    margin-bottom: var(--space-6);
    text-align: center;
}
.calc-row {
    margin-bottom: var(--space-6);
}
.calc-row label {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}
.calc-row input[type="range"] {
    width: 100%;
    accent-color: var(--color-primary);
}
.calc-row__value {
    text-align: right;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-primary);
    font-size: var(--text-lg);
    margin-top: var(--space-1);
}
.calc-result {
    text-align: center;
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--navy-50), var(--emerald-50));
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
}
.calc-result__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}
.calc-result__amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-4xl);
    color: var(--emerald-600);
}
.calc-result__period {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* ========================================
   KEDO INFO BLOCK
   ======================================== */
.kedo-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}
.kedo-info__content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-2xl);
    color: var(--navy-900);
    margin-bottom: var(--space-4);
}
.kedo-info__content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}
.kedo-info__visual {
    background: linear-gradient(135deg, var(--navy-100), var(--navy-50));
    border-radius: var(--radius-xl);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--navy-100);
}
.kedo-info__list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
}
.kedo-info__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.5;
}
.kedo-info__list svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--emerald-500);
}
@media (max-width: 768px) {
    .kedo-info-grid {
        grid-template-columns: 1fr;
    }
    .kedo-info__visual {
        height: 200px;
    }
}

/* ========================================
   SERVICE BLOCK (partners)
   ======================================== */
.service-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}
.service-highlight {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: box-shadow 0.3s;
}
.service-highlight:hover {
    box-shadow: var(--shadow-md);
}
.service-highlight__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-50);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
}
.service-highlight__icon svg {
    width: 28px;
    height: 28px;
}
.service-highlight__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--navy-900);
    margin-bottom: var(--space-2);
}
.service-highlight__desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.55;
}
@media (max-width: 1024px) {
    .service-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .service-highlights {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   AUTHOR PAGE — Profile
   ======================================== */
.author-hero {
    padding-top: calc(var(--header-height, 72px) + 32px);
    padding-bottom: 48px;
    background: linear-gradient(168deg, #f8fafc, #eef2ff);
    border-bottom: 1px solid #e2e8f0;
}

/* Profile card */
.author-hero__card {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    margin-top: 24px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.author-hero__avatar-wrap {
    flex-shrink: 0;
}
.author-hero__avatar {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}
.author-hero__content {
    flex: 1;
    min-width: 0;
}
.author-hero__name {
    font-family: var(--font-display, "Manrope", sans-serif);
    font-weight: 800;
    font-size: 28px;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}
.author-hero__job {
    font-size: 16px;
    color: #2563eb;
    font-weight: 600;
    margin-top: 4px;
}
.author-hero__bio {
    color: #64748b;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 600px;
    font-size: 15px;
}
.author-hero__credential {
    margin-top: 16px;
}

/* Author stats row — inside the card */
.author-stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding: 20px 32px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.author-stats__item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.author-stats__value {
    font-family: var(--font-display, "Manrope", sans-serif);
    font-weight: 800;
    font-size: 24px;
    color: #0f172a;
}
.author-stats__label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

/* Author page responsive */
@media (max-width: 768px) {
    .author-hero__card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 20px;
    }
    .author-hero__avatar {
        width: 96px;
        height: 96px;
    }
    .author-hero__name {
        font-size: 24px;
    }
    .author-hero__bio {
        max-width: 100%;
    }
    .author-hero__credential {
        display: flex;
        justify-content: center;
    }
    .author-stats {
        justify-content: center;
        padding: 16px 20px;
        gap: 24px;
    }
}

/* ========================================
   SINGLE POST LAYOUT (article + sidebar)
   ======================================== */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-8);
    padding: var(--space-12) 0;
}
.post-layout__main {
    min-width: 0;
    max-width: 720px;
}
.post-layout__sidebar {
    position: relative;
}
.post-sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}
.sidebar-block {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}
.sidebar-block__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--navy-900);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sidebar-related {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.sidebar-related li {
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-100);
}
.sidebar-related li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-related__link {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--navy-900);
    text-decoration: none;
    line-height: 1.4;
    transition: color var(--dur-fast);
}
.sidebar-related__link:hover {
    color: var(--color-primary);
}
.sidebar-related__date {
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-top: 2px;
    display: block;
}
.sidebar-cta {
    background: linear-gradient(135deg, var(--navy-50), var(--emerald-50));
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
}
.sidebar-cta__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--navy-900);
    margin-bottom: var(--space-2);
}
.sidebar-cta__desc {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-layout__sidebar {
        order: -1;
    }
    .post-sidebar-sticky {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .sidebar-block,
    .sidebar-cta {
        flex: 1;
        min-width: 250px;
    }
}
