/* FakeSec — SEO tool pages. Палитра и типографика 1:1 с главной. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
}

/* ── Nav (как на главной) ── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

nav .logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav .logo-text span { color: #ccff00; }

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

nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

nav .nav-link:hover { color: #ccff00; }

/* ── Обёртка контента ── */
.tool-wrap {
    flex: 1;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ── Хлебные крошки ── */
.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.crumbs a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.crumbs a:hover { color: #ccff00; }

/* ── Hero ── */
.tool-hero { padding: 36px 0 44px; }

.tool-hero h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.tool-hero h1 .green {
    color: #ccff00;
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
}

.tool-hero .lead {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    max-width: 760px;
    margin-bottom: 26px;
}

/* ── Фичи-плашки ── */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.feature .dot {
    width: 6px;
    height: 6px;
    background: #ccff00;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── CTA ── */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #ccff00;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

.cta:hover {
    background: #d4ff33;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(204, 255, 0, 0.2);
}

.cta-ghost {
    background: transparent;
    color: #ccff00;
    border: 2px solid #ccff00;
}

.cta-ghost:hover { background: rgba(204, 255, 0, 0.1); box-shadow: none; }

.cta-note {
    width: 100%;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* ── Секции ── */
.sec { padding: 40px 0 0; }

.sec h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.sec h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sec p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
    max-width: 860px;
}

.sec ul { margin: 0 0 16px 20px; }

.sec li {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.sec strong { color: #fff; }

/* ── Карточки артефактов ── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.card h3 { color: #ccff00; font-size: 16px; }

.card p { font-size: 14px; margin: 0; color: rgba(255, 255, 255, 0.65); }

/* ── Таблица данных (бенчмарк) ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 12px 14px;
    background: rgba(204, 255, 0, 0.08);
    color: #ccff00;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
}

.data-table tr:hover td { background: rgba(255, 255, 255, 0.03); }

.data-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 10px;
    font-style: italic;
}

/* ── Шаги ── */
.steps { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }

.step { display: flex; gap: 16px; align-items: flex-start; }

.step-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ccff00;
    color: #0a0a0a;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step p { margin: 0; }

/* ── FAQ ── */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
}

.faq-q {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.faq-a {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

/* ── Перелинковка ── */
.related {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.related a {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.related a:hover {
    border-color: #ccff00;
    color: #ccff00;
}

/* ── Финальный CTA-блок ── */
.cta-block {
    margin-top: 48px;
    padding: 36px;
    background: rgba(204, 255, 0, 0.06);
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 16px;
    text-align: center;
}

.cta-block h2 { margin-bottom: 10px; }

.cta-block p { margin: 0 auto 22px; color: rgba(255, 255, 255, 0.7); }

.cta-block .cta-row { justify-content: center; }

/* ── Адаптив ── */
@media (max-width: 900px) {
    nav { padding: 16px 20px; }
    .tool-hero h1 { font-size: 34px; letter-spacing: -1px; }
    .tool-hero .lead { font-size: 16px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .sec h2 { font-size: 24px; }
    .cta { width: 100%; }
    .cta-block { padding: 24px; }
    .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ═══ Графика ═══════════════════════════════════════════════════════
   Палитра данных проверена validate_palette.js (dark, surface #0a0a0a):
   #4d7c0f · #e11d48 · #0284c7 — CVD-separation, контраст и светлота PASS.
   Брендовый #ccff00 остаётся акцентом интерфейса, в данных не участвует. */

.chart { margin-top: 22px; }

.chart-row {
    display: grid;
    grid-template-columns: 190px 1fr 54px;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
}

.chart-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-align: right;
}

.chart-track {
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    border-radius: 0 4px 4px 0;   /* скруглённый конец данных */
    transition: filter 0.15s;
}

.chart-row:hover .chart-bar { filter: brightness(1.35); }

.chart-val {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);   /* значение — текстовым токеном, не цветом серии */
    font-variant-numeric: tabular-nums;
}

/* Ступени одной hue = magnitude (sequential) */
.b-1 { background: #ccff00; }
.b-2 { background: #b2e000; }
.b-3 { background: #98c200; }
.b-4 { background: #7fa300; }
.b-5 { background: #658500; }

/* Категориальные слоты (проверенные) */
.c-real { background: #4d7c0f; }
.c-ai   { background: #e11d48; }
.c-unc  { background: #0284c7; }

/* Легенда */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 16px 0 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.legend span { display: inline-flex; align-items: center; gap: 7px; }

.legend i {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: inline-block;
}

/* Stacked-полоса вердиктов: 2px зазор между сегментами */
.stack {
    display: flex;
    gap: 2px;
    height: 34px;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 6px;
}

.stack div {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

/* Плитки-показатели */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.tile {
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.tile-num {
    font-size: 30px;
    font-weight: 700;
    color: #ccff00;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.tile-cap {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

@media (max-width: 900px) {
    .chart-row { grid-template-columns: 130px 1fr 46px; gap: 8px; }
    .chart-label { font-size: 12px; }
}

/* ═══ EXIF-виджет ═══════════════════════════════════════════════════ */

.exif-drop {
    margin-top: 22px;
    padding: 44px 24px;
    border: 2px dashed rgba(204, 255, 0, 0.35);
    border-radius: 14px;
    background: rgba(204, 255, 0, 0.04);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.exif-drop:hover, .exif-drop.over {
    border-color: #ccff00;
    background: rgba(204, 255, 0, 0.09);
}

.exif-drop-t { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.exif-drop-s { font-size: 14px; color: rgba(255, 255, 255, 0.5); }

.exif-out { margin-top: 22px; }

.exif-block {
    padding: 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.exif-block h3 { color: #ccff00; font-size: 15px; margin-bottom: 12px; }

.exif-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.exif-row:last-child { border-bottom: none; }
.exif-k { color: rgba(255, 255, 255, 0.5); }
.exif-v { color: rgba(255, 255, 255, 0.9); word-break: break-word; }

.exif-flag {
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

/* Статусы: цвет + всегда текстовая формулировка рядом, не цветом единым */
.exif-flag.f-alert   { border-left-color: #e11d48; }
.exif-flag.f-warn    { border-left-color: #d97706; }
.exif-flag.f-ok      { border-left-color: #4d7c0f; }
.exif-flag.f-neutral { border-left-color: #0284c7; }

.exif-flag-t { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.exif-flag-d { font-size: 13px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }

.exif-map {
    display: inline-block;
    margin-top: 10px;
    color: #ccff00;
    text-decoration: none;
    font-size: 14px;
}

.exif-all {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 18px;
}

.exif-all summary { cursor: pointer; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.exif-all-body { margin-top: 12px; max-height: 420px; overflow-y: auto; }

.exif-status { padding: 20px; text-align: center; color: rgba(255, 255, 255, 0.6); }
.exif-status.err { color: #e11d48; }

.exif-cta {
    margin-top: 14px;
    padding: 18px;
    background: rgba(204, 255, 0, 0.06);
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.exif-cta a { color: #ccff00; }

@media (max-width: 900px) {
    .exif-row { grid-template-columns: 120px 1fr; font-size: 13px; }
    .exif-drop { padding: 32px 16px; }
}
