/*
Theme Name: Sledz Info Blog
Author: Sledz Team
Description: Шаблон блога на основе Tailwind CSS.
Version: 1.0
*/
.prose { color: #1a1a1a; max-width: 100%; }
        .prose h1 { font-size: 2.5rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2rem; color: #000; }
        .prose h2 { font-size: 1.8rem; font-weight: 700; margin-top: 3.5rem; margin-bottom: 1.25rem; letter-spacing: -0.01em; }
        .prose p { font-size: 1.125rem; line-height: 1.6; margin-bottom: 1.5rem; color: #333; }
        .prose a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
        .prose ul { list-style-type: disc; margin-bottom: 1.5rem; padding-left: 1.25rem; }
        .prose blockquote { margin: 3rem 0; padding: 0 0 0 1.5rem; border-left: 2px solid #000; }
        .tech-magnet { position: relative; background: #ffffff; border: 1px solid #e2e8f0; overflow: hidden; }
        .tech-top-bar { height: 2px; background: linear-gradient(90deg, #1B84FF, transparent); width: 40%; position: absolute; top: 0; left: 0; }
        .tech-btn { background: #000; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; border: 1px solid #000; transition: all 0.3s; }
        .tech-btn:hover { background: transparent; color: #000; }
.prose { color: #1a1a1a; max-width: 100%; }
.prose h1 { font-size: 2.5rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2rem; color: #000; }
.prose h2 { font-size: 1.8rem; font-weight: 700; margin-top: 3.5rem; margin-bottom: 1.25rem; letter-spacing: -0.01em; color: #000; }
.prose p { font-size: 1.125rem; line-height: 1.6; margin-bottom: 1.5rem; color: #333; }

.prose a { color: #000; text-decoration: underline; text-underline-offset: 3px; transition: opacity 0.2s; }
.prose a:hover { opacity: 0.6; }

.prose pre { 
    background: #f9f9f9; 
    border: 1px solid #000; /* Тонкая черная рамка вместо синей полосы */
    padding: 1.5rem;
    border-radius: 0px; /* Убираем скругление для строгости */
    overflow-x: auto;
    margin: 2.5rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #000;
    position: relative;
}
.prose pre::before {
    content: "TECHNICAL FLOW";
    position: absolute;
    top: 0;
    right: 0;
    font-size: 8px;
    padding: 2px 6px;
    background: #000;
    color: #fff;
    font-weight: 700;
}

.prose ol { 
    counter-reset: technical-step;
    list-style: none; 
    padding-left: 0; 
    margin: 2rem 0;
}
.prose ol li { 
    counter-increment: technical-step;
    position: relative;
    padding-left: 3rem; /* Больше отступ для акцента на цифре */
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}
.prose ol li::before { 
    content: counter(technical-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border: 1px solid #000; /* Цифра в черном квадрате/рамке */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
}

.prose ul { list-style-type: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.prose ul li::before { 
    content: "—"; 
    position: absolute; 
    left: 0; 
    color: #000; 
}

.prose blockquote { margin: 3rem 0; padding: 0 0 0 1.5rem; border-left: 2px solid #000; font-style: normal; }
/* --- ГЛОБАЛЬНЫЕ ТЕХ-СТИЛИ --- */
:root { --brand-blue: #1B84FF; --black: #000000; --gray-light: #f9f9f9; }

#reading-progress {
    position: fixed; top: 64px; left: 0; width: 0%; height: 2px;
    background: var(--black); z-index: 100; transition: width 0.1s ease;
}

/* 1. Data Snapshot */
.data-snapshot { border: 1px solid var(--black) !important; padding: 40px !important; margin: 40px 0 !important; }
.data-snapshot .number { font-family: 'JetBrains Mono', monospace !important; font-size: 4rem !important; font-weight: 700 !important; color: var(--black) !important; margin: 0 !important; line-height: 1 !important; }
.data-snapshot .label { font-family: 'JetBrains Mono', monospace !important; font-size: 10px !important; text-transform: uppercase !important; letter-spacing: 2px !important; color: #666 !important; margin-top: 10px !important; }

/* 2. Expert Verdict */
.expert-verdict { background: var(--black) !important; color: #fff !important; padding: 40px !important; margin: 40px 0 !important; border-radius: 0 !important; }
.expert-verdict h4 { color: #fff !important; font-family: 'JetBrains Mono', monospace !important; font-size: 14px !important; letter-spacing: 3px !important; border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 20px !important; }
.expert-verdict p { color: #bbb !important; font-size: 1.1rem !important; }

/* 3. Pro vs Con Grid */
.comparison-grid { border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); padding: 20px 0; margin: 40px 0 !important; }
.comparison-grid .wp-block-column:first-child { border-right: 1px solid #eee; }
.comparison-grid h6 { font-family: 'JetBrains Mono', monospace !important; font-size: 12px !important; letter-spacing: 2px !important; margin-bottom: 15px !important; }
.comparison-grid ul { list-style: none !important; padding: 0 !important; }
.comparison-grid li { font-size: 14px !important; margin-bottom: 8px !important; padding-left: 20px !important; position: relative; }
.comparison-grid .wp-block-column:first-child li::before { content: "-"; position: absolute; left: 0; color: var(--black); font-weight: bold; }
.comparison-grid .wp-block-column:last-child li::before { content: "+"; position: absolute; left: 0; color: #999; }

/* 4. ASCII Divider */
.ascii-divider { font-family: 'JetBrains Mono', monospace !important; font-size: 10px !important; color: #eee !important; margin: 60px 0 !important; letter-spacing: -2px; overflow: hidden; white-space: nowrap; }

.prose pre { 
    background: var(--gray-light); border: 1px solid var(--black); padding: 25px; 
    font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; line-height: 1.6; color: var(--black); 
    position: relative; margin: 40px 0;
}
.prose pre::before { content: "TECHNICAL_FLOW"; position: absolute; top: 0; right: 0; background: var(--black); color: #fff; font-size: 8px; padding: 3px 8px; }

.footnotes { border-top: 1px solid #eee; margin-top: 60px; padding-top: 20px; }
.footnote-item { font-size: 12px; color: #666; font-family: 'Inter', sans-serif; margin-bottom: 10px; }
.footnote-item span { font-family: 'JetBrains Mono', monospace; font-weight: bold; margin-right: 10px; color: var(--black); }

/* 1. Case Brief */
.case-brief {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 15px 0;
    margin: 40px 0;
    gap: 20px;
}
.case-brief div span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.case-brief div p {
    font-weight: 700;
    font-size: 14px;
    margin: 0 !important;
}

/* 2. Action Plan / Checklist */
.action-plan { list-style: none !important; padding: 0 !important; }
.action-plan li { 
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    margin-bottom: 10px;
}
.action-plan li::before {
    content: "[ ]";
    margin-right: 15px;
    color: #000;
}
.action-plan li.done::before {
    content: "[x]";
}

/* 3. Deep Dive (Details) */
details.tech-details {
    border: 1px solid #eee;
    padding: 15px;
    margin: 20px 0;
}
details.tech-details summary {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
}
details.tech-details[open] summary {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* --- V2 SHELL: HEADER / FOOTER / GRID BG --- */
:root {
    --sledz-v2-bg: #f7f6f3;
    --sledz-v2-surface: #ffffff;
    --sledz-v2-ink: #111110;
    --sledz-v2-ink2: #6b6860;
    --sledz-v2-ink3: #aeaaa4;
    --sledz-v2-rule: #e5e2dc;
    --sledz-v2-rule2: #d0ccc4;
    --sledz-v2-blue: #0050e6;
}

body.single,
body.single-post,
body.home,
body.blog,
body.archive,
body.category {
    background:
        linear-gradient(rgba(17,17,16,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,17,16,0.03) 1px, transparent 1px),
        #ffffff;
    background-size: 40px 40px, 40px 40px, auto;
}

body.single main,
body.single-post main,
body.home main,
body.blog main,
body.archive main,
body.category main {
    background-image:
        linear-gradient(rgba(17,17,16,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,17,16,0.03) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px;
    background-color: transparent;
}

.sledz-site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(247,246,243,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sledz-v2-rule);
    font-family: "DM Sans", sans-serif;
}

.sledz-nav-inner,
.sledz-foot {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

.sledz-nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.sledz-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sledz-brand img {
    width: auto;
    height: 24px;
}

.sledz-brand span {
    color: var(--sledz-v2-ink);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.sledz-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    min-width: 0;
}

.sledz-nav-link,
.sledz-nav-trigger {
    color: var(--sledz-v2-ink2);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sledz-nav-link:hover,
.sledz-nav-trigger:hover,
.sledz-nav-menu:hover .sledz-nav-trigger,
.sledz-nav-link[aria-current="page"] {
    color: var(--sledz-v2-ink);
}

.sledz-nav-menu {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.sledz-nav-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
}

.sledz-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    padding: 0;
}

.sledz-nav-caret {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s ease;
}

.sledz-nav-menu:hover .sledz-nav-caret {
    transform: translateY(1px);
}

.sledz-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(calc(-50% + 2px), 14px);
    width: min(640px, calc(100vw - 72px));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.sledz-nav-menu:hover .sledz-nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translate(calc(-50% + 2px), 10px);
}

.sledz-nav-dropdown-card {
    background: #fff;
    border: 1px solid var(--sledz-v2-rule);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 16px 48px rgba(17,17,16,0.08);
}

.sledz-nav-dropdown-label {
    margin-bottom: 14px;
    color: var(--sledz-v2-ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.sledz-nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sledz-nav-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.sledz-nav-tool:hover {
    background: #efede8;
}

.sledz-nav-tool-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sledz-v2-rule2);
    border-radius: 10px;
    background: var(--sledz-v2-surface);
    color: var(--sledz-v2-ink2);
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.sledz-nav-tool-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sledz-nav-tool-name {
    color: var(--sledz-v2-ink);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.sledz-nav-tool-desc {
    color: var(--sledz-v2-ink3);
    font-size: 12px;
    line-height: 1.35;
}

.sledz-nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.sledz-nav-login {
    color: var(--sledz-v2-ink2);
    font-size: 14px;
    font-weight: 400;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--sledz-v2-ink3);
    text-underline-offset: 4px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.sledz-nav-login:hover {
    color: var(--sledz-v2-ink);
    text-decoration-color: var(--sledz-v2-ink);
}

.sledz-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--sledz-v2-ink);
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.sledz-nav-cta:hover {
    opacity: 0.82;
}

.sledz-mobile-nav-toggle,
.sledz-mobile-nav-shell {
    display: none;
}

.sledz-mobile-nav-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--sledz-v2-rule2);
    border-radius: 12px;
    background: transparent;
    color: var(--sledz-v2-ink);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.sledz-mobile-nav-toggle:hover {
    border-color: var(--sledz-v2-ink3);
    background: rgba(255,255,255,0.5);
}

.sledz-mobile-nav-toggle span {
    width: 16px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.sledz-mobile-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.sledz-mobile-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.sledz-mobile-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.sledz-mobile-nav-shell {
    width: min(1280px, calc(100vw - 12px));
    margin: 8px auto 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.sledz-mobile-nav-shell.is-open {
    max-height: 720px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sledz-mobile-nav-panel {
    background: rgba(247,246,243,0.94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--sledz-v2-rule);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 16px 42px rgba(17,17,16,0.08);
}

.sledz-mobile-nav-section {
    display: grid;
    gap: 12px;
}

.sledz-mobile-nav-label {
    font-family: "Geist Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sledz-v2-ink3);
}

.sledz-mobile-nav-tools,
.sledz-mobile-nav-links {
    display: grid;
    gap: 10px;
}

.sledz-mobile-nav-tool,
.sledz-mobile-nav-link {
    text-decoration: none;
    color: var(--sledz-v2-ink);
    background: #fff;
    border: 1px solid var(--sledz-v2-rule);
    border-radius: 14px;
}

.sledz-mobile-nav-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.sledz-mobile-nav-tool-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sledz-v2-rule2);
    border-radius: 10px;
    background: #fff;
    color: var(--sledz-v2-ink2);
    font-family: "Geist Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.sledz-mobile-nav-tool-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sledz-mobile-nav-tool-name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.sledz-mobile-nav-tool-desc {
    font-size: 12px;
    line-height: 1.35;
    color: var(--sledz-v2-ink2);
}

.sledz-mobile-nav-divider {
    height: 1px;
    margin: 14px 0;
    background: var(--sledz-v2-rule);
}

.sledz-mobile-nav-link {
    padding: 13px 14px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.sledz-mobile-nav-link[aria-current="page"] {
    background: rgba(0,80,230,0.06);
    border-color: rgba(0,80,230,0.18);
    color: var(--sledz-v2-blue);
}

.sledz-site-footer {
    padding: 28px 0 40px;
    border-top: 1px solid var(--sledz-v2-rule);
    background: rgba(255,255,255,0.52);
    font-family: "DM Sans", sans-serif;
}

.sledz-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.sledz-foot-copy,
.sledz-foot-links a {
    color: var(--sledz-v2-ink3);
    font-size: 13px;
    text-decoration: none;
}

.sledz-foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.sledz-foot-links a:hover {
    color: var(--sledz-v2-ink2);
}

@media (max-width: 900px) {
    .sledz-nav-inner,
    .sledz-foot {
        padding: 0 24px;
    }

    .sledz-nav-center,
    .sledz-nav-login {
        display: none;
    }

    .sledz-nav-right {
        gap: 10px;
    }

    .sledz-nav-cta {
        min-height: 34px;
        padding: 0 14px;
        border-radius: 10px;
        font-size: 13px;
    }

    .sledz-mobile-nav-toggle {
        display: inline-flex;
    }

    .sledz-mobile-nav-shell {
        display: block;
    }
}
/* Стили для списка категорий в сайдбаре */
aside ul li {
    margin-bottom: 0.75rem;
}
aside ul li a {
    text-decoration: none;
    transition: all 0.2s;
}
aside ul li a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
aside ul li.current-cat a {
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 700;
}

/* Стили стандартной пагинации WP */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pagination .nav-links {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
}
.pagination .page-numbers {
    display: none; /* Скрываем номера страниц как в макете */
}
.pagination .page-numbers.prev, 
.pagination .page-numbers.next {
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 4px;
}



/* Заголовок категории в сайдбаре */
aside h4 {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #9ca3af !important; /* gray-400 */
    margin-bottom: 1rem !important;
}

/* Список категорий в сайдбаре */
aside ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

aside ul li {
    margin-bottom: 0.75rem !important;
}

aside ul li a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #000 !important;
    text-decoration: none !important;
    transition: all 0.2s;
}

/* Подчеркивание для активной категории или при ховере */
aside ul li a:hover, 
aside ul li.current-cat a {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

/* Стили анонса статьи в списке */
article h2 a {
    color: #000;
    text-decoration: none;
}

article h2 a:hover {
    opacity: 0.7;
}

article p {
    color: #4b5563 !important; /* gray-600 */
    line-height: 1.625 !important;
    margin-top: 1rem !important;
}



   /* --- Light High-Tech Lead Magnet --- */
        .tech-magnet {
            position: relative;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            overflow: hidden;
            box-shadow: 0 10px 30px -10px rgba(27, 132, 255, 0.1);
        }
        /* Тонкая сетка на фоне */
        .tech-magnet::after {
            content: "";
            position: absolute;
            inset: 0;
            background-image: radial-gradient(#1B84FF 0.5px, transparent 0.5px);
            background-size: 12px 12px;
            opacity: 0.05;
            pointer-events: none;
        }
        /* Акцентная линия сверху */
        .tech-top-bar {
            height: 2px;
            background: linear-gradient(90deg, #1B84FF, transparent);
            width: 40%;
            position: absolute;
            top: 0;
            left: 0;
        }
        .tech-btn {
            background: #000;
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            transition: all 0.3s ease;
            border: 1px solid #000;
        }
        .tech-btn:hover {
            background: transparent;
            color: #000;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        @keyframes scan {
            0% { top: -100%; }
            100% { top: 200%; }
        }

        .cta-btn {
            background: transparent;
            border: 1px solid #1B84FF;
            color: #fff;
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 11px;
            font-weight: 800;
        }

        .cta-btn:hover {
            background: #1B84FF;
            box-shadow: 0 0 30px rgba(27, 132, 255, 0.6);
            transform: scale(1.02);
        }

        .corner-element {
            position: absolute;
            width: 8px;
            height: 8px;
            border-color: #1B84FF;
            border-style: solid;
            pointer-events: none;
        }









/* --- PRODUCT MATRIX: FINAL + TOOLTIP --- */

.product-matrix {
    border: 1px solid #000;
    background: #fff;
    margin: 4rem 0;
    position: relative;
    padding-bottom: 15px;
}

/* Badge */
.product-matrix::before {
    content: "ANOMALY";
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    padding: 2px 6px;
    font-weight: 500;
    z-index: 10;
    pointer-events: none;
}

.pm-grid-container {
    gap: 0 !important;
    align-items: stretch;
}

/* LEFT COLUMN */
.pm-left-col {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.pm-hero-header {
    gap: 15px;
    margin-bottom: 30px !important;
    align-items: flex-start !important;
}
.pm-main-img img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 4px;
}
.pm-main-title {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    max-width: 150px;
    font-weight: 600;
}
.pm-stat-block {
    margin-top: auto;
    margin-bottom: 15px !important;
}
.pm-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 40px !important;
    font-weight: 700;
    line-height: 1 !important;
    margin: 0 !important;
    color: #000;
    letter-spacing: -1px;
}
.pm-lbl {
    font-size: 9px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-top: 5px !important;
}
.pm-quiet-link a {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}
.pm-quiet-link a:hover { color: #000; }

/* RIGHT COLUMN */
.pm-right-col {
    padding: 25px;
    border-left: 1px solid transparent; 
}
.pm-table-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: #ccc;
    letter-spacing: 1px;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    text-transform: uppercase;
}

/* ROWS */
.pm-table-row {
    margin-bottom: 4px !important;
    align-items: center;
    position: relative; /* База для тултипа и ссылки */
    padding: 6px 8px !important;
    border-radius: 4px;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}
.pm-table-row:last-child { border-bottom: none; }

.pm-table-row:hover {
    background: #f4f4f5;
    cursor: pointer;
}

/* STRETCHED LINK (Делает всю строку кликабельной) */
.pm-t-name a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* --- TOOLTIP HOVER EFFECT (Новая часть) --- */
.pm-table-row:hover::before {
    content: "Otwórz kartę produkt na Allegro (nowa karta)";
    position: absolute;
    bottom: 100%; /* Появляется над строкой */
    right: 0;     /* Прижат к правому краю */
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 2px;
    white-space: nowrap;
    z-index: 100; /* Поверх всего */
    pointer-events: none; /* Чтобы не мешал клику */
    margin-bottom: 4px; /* Отступ от строки */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: tooltipFade 0.2s ease forwards;
}

@keyframes tooltipFade {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили текста в строке */
.pm-t-name {
    font-size: 12px;
    font-weight: 600;
    margin: 0 !important;
    z-index: 2;
}
.pm-t-name a { color: inherit; text-decoration: none; }
.pm-t-name .id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 400;
    color: #bbb;
    margin-left: 6px;
}
.pm-t-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #000;
    margin: 0 !important;
    min-width: 30px;
    text-align: right;
    z-index: 2;
}

.pm-table-row.is-noise { opacity: 0.5; }
.pm-table-row.is-noise:hover { opacity: 1; }
.pm-table-row.is-noise .pm-t-name { font-weight: 400; }

/* CAPTION */
.pm-caption {
    margin: 0 25px !important;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #666;
    line-height: 1.5;
}
.pm-caption strong { color: #000; font-weight: 600; }
.pm-caption .marker { color: #ddd; margin-right: 8px; }

@media (max-width: 768px) {
    .pm-grid-container { flex-direction: column; }
    .pm-left-col, .pm-right-col { width: 100% !important; padding: 20px; }
    .pm-caption { margin: 0 20px !important; }
    /* На мобильном тултип лучше скрыть, чтобы не перекрывал пальцы */
    .pm-table-row:hover::before { display: none; }
}

















/* --- RESEARCH SUMMARY CARD (ASCETIC) --- */

.research-summary-card {
    border: 1px solid #000;
    padding: 35px 40px !important; /* Увеличили внутренние отступы */
    margin: 4rem 0 !important;
    background: #fff;
}

.rs-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px; /* Еще меньше */
    letter-spacing: 2px;
    color: #bbb;
    margin-bottom: 8px !important;
}

.rs-title {
    font-size: 1.15rem !important; /* Чуть уменьшили для строгости */
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 35px !important;
}

/* --- ТАБЛИЦА --- */
.rs-table table {
    width: 100%;
    border-collapse: collapse !important;
    font-variant-numeric: tabular-nums; /* ВАЖНО: Моноширинные цифры для Inter */
}

/* Общий стиль заголовков */
.rs-table thead th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    color: #ccc;
    padding: 12px 20px; /* Увеличили отступы ячеек */
    border-bottom: 1.5px solid #000;
}

/* Общий стиль ячеек */
.rs-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #000;
}

/* ВЫРАВНИВАНИЕ КОЛОНОК */

/* 1. Первая колонка (Названия) - Вторичная */
.col-product {
    text-align: left !important;
    padding-left: 0 !important; /* Убираем левый отступ у края таблицы */
    font-size: 11px !important; /* Меньше кегль */
    color: #888 !important; /* Серый цвет */
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Тонкое сокращение если не влезает */
}

/* 2. Числовые колонки (2-5) - Право-ориентированные */
.col-data {
    text-align: right !important;
    font-family: 'JetBrains Mono', monospace !important; /* Числа всегда моноширинные */
}

/* Последняя колонка (Процент) - Убираем правый паддинг у края */
.rs-table thead th:last-child,
.rs-table tbody td:last-child {
    padding-right: 0 !important;
    font-weight: 500; /* Не bold, просто средний вес */
}

/* Примечание (Footnote) */
.rs-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: #ddd; /* Очень светлый, почти шум */
    margin-top: 30px !important;
    margin-bottom: 0 !important;
    text-align: left;
}

/* Убираем рамку у последней строки */
.rs-table tbody tr:last-child td {
    border-bottom: none;
}

/* Адаптив */
@media (max-width: 768px) {
    .research-summary-card { padding: 20px !important; }
    .rs-table { display: block; overflow-x: auto; }
}










.sledz-xray-editorial {
    margin: 56px 0;
}

.sledz-xray-editorial__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 28px 32px;
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.sledz-xray-editorial__content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 720px;
}

.sledz-xray-editorial__title {
    margin: 0 0 8px;
    max-width: 14ch;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 700;
    color: #0b0b0c;
}

.sledz-xray-editorial__text {
    margin: 0;
    max-width: 34ch;
    font-size: 18px;
    line-height: 1.5;
    color: #596477;
}

.sledz-xray-editorial__cta {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.sledz-xray-editorial__button,
.sledz-xray-editorial__button:link,
.sledz-xray-editorial__button:visited,
.sledz-xray-editorial__button:hover,
.sledz-xray-editorial__button:active {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    background: #0a0a0b;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-decoration: none !important;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 10px 24px rgba(10, 10, 11, 0.12);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sledz-xray-editorial__button:hover {
    background: #17181b;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(10, 10, 11, 0.16);
}

.sledz-xray-editorial__button:focus {
    outline: 2px solid #2f6bff;
    outline-offset: 3px;
}

.sledz-xray-editorial__meta {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #727b89;
    text-align: center;
}

@media (max-width: 900px) {
    .sledz-xray-editorial__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 22px 18px;
        border-radius: 20px;
    }

    .sledz-xray-editorial__content,
    .sledz-xray-editorial__cta {
        width: 100%;
        max-width: none;
        flex: none;
    }

    .sledz-xray-editorial__title {
        max-width: none;
        font-size: clamp(26px, 8vw, 36px);
    }

    .sledz-xray-editorial__text {
        max-width: none;
        font-size: 16px;
    }

    .sledz-xray-editorial__meta {
        text-align: left;
    }
}
