/* Case Story — единый лонгрид-шаблон кейсов Арткод.
   Паттерн взят с cases/chebotarev-geo/ (там классы .case-cheb-*, файл не трогаем),
   здесь он вынесен в один общий файл на все кейсы: .case-story-*.
   Подключать: <link rel="stylesheet" href="/css/case-story.css"> после header.php.
   Требует $body_class с токеном case-page (иначе не подтянется geo.css). */

.website-navigation { text-align: center; }

/* ---------- HERO ---------- */
.case-story-hero { padding-top: 70px; padding-bottom: 30px; }
.case-story-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.case-story-kicker {
    display: block; color: #F56E0F; font-size: 14px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 24px; font-style: italic;
}
.case-story-title {
    color: #FBFBFB; font-family: 'Inter', sans-serif; font-weight: 800;
    font-size: 56px; line-height: 1.15; letter-spacing: -1px; margin-bottom: 28px;
}
.case-story-dek { color: #878787; font-size: 21px; font-weight: 400; line-height: 1.5; margin-bottom: 24px; }
.case-story-byline {
    color: #565656; font-size: 14px; letter-spacing: 0.5px;
    border-top: 1px solid #3F3F3F; padding-top: 20px; display: inline-block;
}

/* ---------- STAT STRIP ---------- */
.case-story-stats { margin-bottom: 50px; }
.case-story-stats-row { display: flex; gap: 24px; flex-wrap: wrap; }
.case-story-stat { flex: 1 1 220px; background: #1B1A20; border-radius: 20px; padding: 32px 30px; }
.case-story-stat-num { color: #F56E0F; font-size: 48px; font-weight: 900; line-height: 1; margin-bottom: 14px; }
.case-story-stat-num span { font-size: 0.6em; color: #878787; }
.case-story-stat-label { color: #878787; font-size: 16px; line-height: 1.4; }

/* ---------- FIGURE ---------- */
.case-story-figure { max-width: 1300px; margin: 0 auto 80px; padding: 0 15px; }
.case-story-figure-frame { border: 1px solid #3F3F3F; border-radius: 24px; padding: 12px; background: #1B1A20; }
.case-story-figure-frame img { width: 100%; height: auto; display: block; border-radius: 16px; }
.case-story-figure figcaption {
    text-align: center; color: #565656; font-size: 13px; font-style: italic; padding: 14px 20px 0;
}

/* ---------- NARRATIVE BODY ---------- */
.case-story-body { margin-bottom: 30px; }
.case-story-col p { color: #cfcfcf; font-size: 19px; font-weight: 300; line-height: 1.75; margin-bottom: 28px; }
.case-story-drop {
    float: left; font-family: 'Inter', sans-serif; font-weight: 900; font-size: 76px;
    line-height: 0.8; color: #F56E0F; padding-right: 14px; padding-top: 6px;
}
.case-story-lead { font-size: 21px !important; color: #FBFBFB !important; }
.case-story-h2 { color: #FBFBFB; font-size: 32px; font-weight: 800; margin: 56px 0 24px; line-height: 1.25; }
.case-story-quote {
    border-left: 3px solid #F56E0F; padding: 4px 0 4px 28px; margin: 44px 0;
    color: #FBFBFB; font-size: 24px; font-weight: 500; line-height: 1.4; font-style: italic;
}
.case-story-pull-stat {
    display: flex; align-items: baseline; gap: 20px; background: #1B1A20;
    border-radius: 20px; padding: 36px 40px; margin: 44px 0;
}
.case-story-pull-num { color: #F56E0F; font-size: 72px; font-weight: 900; line-height: 1; }
.case-story-pull-label { color: #878787; font-size: 18px; max-width: 260px; }

/* ---------- ТАБЛИЦА «Точка А → что сделано» ---------- */
.case-story-table-section { margin-bottom: 90px; }
.case-story-table { border: 1px solid #3F3F3F; border-radius: 24px; overflow: hidden; }
.case-story-row { display: grid; grid-template-columns: 1fr 1fr; }
.case-story-row:not(:last-child) { border-bottom: 1px solid #3F3F3F; }
.case-story-row-head { background: #1B1A20; }
.case-story-row-head .case-story-cell {
    color: #878787; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.case-story-cell {
    padding: 22px 28px; color: #FBFBFB; font-size: 16px; display: flex; align-items: center; gap: 12px;
}
.case-story-cell:first-child { border-right: 1px solid #3F3F3F; }
.case-story-dot { width: 8px; height: 8px; min-width: 8px; border-radius: 50%; }
.case-story-dot.bad { background: #878787; }
.case-story-dot.good { background: #F56E0F; }

/* ---------- БЛОК ПРУФОВ ---------- */
.case-story-evidence { margin-bottom: 90px; }
.case-story-evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-story-evidence-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.case-story-evidence-grid.cols-1 { grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto; }
.case-story-shot-label { color: #FBFBFB; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
/* пустой слот — скриншот вставляется вручную */
.case-story-shot-frame {
    aspect-ratio: 16 / 9; border: 2px dashed #3F3F3F; border-radius: 20px; background: #1B1A20;
    display: flex; align-items: center; justify-content: center; text-align: center; 
}
.case-story-shot-placeholder-text { color: #878787; font-size: 14px; }
/* слот с реальной картинкой */
.case-story-shot-img {
    border: 1px solid #3F3F3F; border-radius: 20px; background: #1B1A20; padding: 10px; overflow: hidden;
}
.case-story-shot-img img { width: 100%; height: auto; display: block; border-radius: 12px; }
.case-story-shot-link { display: block; color: #565656; font-size: 12px; margin-top: 8px; word-break: break-all; }
.case-story-shot-link a { color: #565656; }

/* ---------- МОБИЛЬНЫЕ ---------- */
@media (max-width: 991px) {
    .case-story-row { grid-template-columns: 1fr; }
    .case-story-cell:first-child { border-right: none; border-bottom: 1px solid #3F3F3F; }
    .case-story-evidence-grid,
    .case-story-evidence-grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .case-story-title { font-size: 36px; }
    .case-story-dek { font-size: 18px; }
    .case-story-h2 { font-size: 26px; }
    .case-story-col p { font-size: 17px; }
    .case-story-quote { font-size: 20px; padding-left: 18px; }
    .case-story-pull-stat { flex-direction: column; gap: 8px; padding: 26px; }
    .case-story-pull-num { font-size: 52px; }
    .case-story-stats-row { gap: 14px; }
    .case-story-stat { padding: 24px 22px; }
    .case-story-stat-num { font-size: 36px; }
    .case-story-cell { padding: 18px 20px; font-size: 15px; }
}

/* ---------- БЛОК «ЦИФРЫ ДО → ПОСЛЕ» (вариант пруфов для кейсов без внешних ссылок) ---------- */
.case-story-metrics { margin-bottom: 90px; }
.case-story-metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-story-metric {
    background: #1B1A20; border-radius: 20px; padding: 28px 30px; border: 1px solid #3F3F3F;
}
.case-story-metric-name {
    color: #878787; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
    font-weight: 700; margin-bottom: 18px;
}
.case-story-metric-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.case-story-metric-before { color: #565656; font-size: 26px; font-weight: 600; text-decoration: line-through; }
.case-story-metric-arrow { color: #878787; font-size: 18px; }
.case-story-metric-after { color: #F56E0F; font-size: 34px; font-weight: 900; line-height: 1; }
.case-story-metric-note { color: #878787; font-size: 14px; line-height: 1.45; margin-top: 12px; }
@media (max-width: 991px) { .case-story-metrics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .case-story-metrics-grid { grid-template-columns: 1fr; } }


.case-story-shot-frame {
    border: 2px dashed #555;
    border-radius: 16px;
    padding: 0;
    background: #1a1a1a;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.case-story-shot-frame img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}