/* single-case.css — Case study single page */

.cs-crumbs {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border-light);
    padding: 14px 0;
}

/* --- Hero --- */
.cs-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 64px 0 56px;
}

.cs-hero__niche {
    display: inline-block;
    background: rgba(192, 57, 43, .18);
    border: 1px solid rgba(192, 57, 43, .35);
    color: #ff8a80;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
}

.cs-hero__h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -.02em;
    max-width: 800px;
}

/* Author block */
.cs-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.cs-author__badge {
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.cs-author__name {
    font-size: 14px;
    color: rgba(255,255,255,.8);
}

.cs-author__dot {
    color: rgba(255,255,255,.3);
}

.cs-author__date {
    font-size: 14px;
    color: rgba(255,255,255,.5);
}

/* Case info strip */
.cs-info {
    display: flex;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 28px;
    gap: 0;
}

.cs-info__item {
    flex: 1;
    padding-right: 32px;
    border-right: 1px solid rgba(255,255,255,.08);
    margin-right: 32px;
}

.cs-info__item:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.cs-info__label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.cs-info__val {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.cs-info__val--big {
    font-size: 30px;
    font-weight: 800;
    color: #ff6b6b;
    letter-spacing: -.02em;
    line-height: 1;
}

/* --- Stats bar --- */
.cs-stats {
    background: var(--color-secondary);
    padding: 36px 0;
}

.cs-stats__grid {
    display: flex;
    justify-content: center;
}

.cs-stats__item {
    flex: 1;
    text-align: center;
    padding: 0 24px;
    border-right: 1px solid rgba(255,255,255,.08);
    max-width: 220px;
}

.cs-stats__item:last-child {
    border-right: none;
}

.cs-stats__num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #ff6b6b;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 6px;
}

.cs-stats__label {
    font-size: 13px;
    color: rgba(255,255,255,.55);
}

/* --- Overview: task + results 2-col --- */
.cs-overview {
    padding: 72px 0;
    background: var(--color-bg-alt);
}

.cs-overview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.cs-overview__head {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.cs-overview__text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.cs-results {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cs-results__item {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.cs-results__item::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
}

/* --- Content body --- */
.cs-body {
    padding: 72px 0;
}

/* --- Screenshot --- */
.cs-screenshot {
    padding: 0 0 56px;
}

.cs-screenshot__img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
}

/* --- Hero desc + pills --- */
.cs-hero__desc {
    font-size: 17px;
    color: rgba(255,255,255,.75);
    max-width: 680px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cs-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cs-pill {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-full);
    padding: 5px 14px;
}

/* --- Stats title --- */
.cs-stats__title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 28px;
}

.cs-stats__period {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,.5);
    margin-left: 8px;
}

/* --- Section title (shared) --- */
.cs-section-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 32px;
}

/* --- Tasks (white bg, cards with red left border) --- */
.cs-tasks {
    padding: 72px 0;
}

.cs-tasks__intro {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-top: -16px;
    margin-bottom: 32px;
}

.cs-tasks__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cs-tasks__card {
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 28px 24px;
    position: relative;
}

.cs-tasks__num {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--color-primary);
    opacity: .2;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -.04em;
}

.cs-tasks__head {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.cs-tasks__text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- Problem / Solution (dark section) --- */
.cs-pb {
    padding: 72px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.cs-pb .cs-section-title {
    color: #fff;
}

.cs-pb__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cs-pb__col {
    border-radius: var(--radius-xl);
    padding: 36px 32px;
}

.cs-pb__col--dark {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
}

.cs-pb__col--light {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
}

.cs-pb__head {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.cs-pb__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-pb__list li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,.75);
}

.cs-pb__list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: 700;
}

.cs-pb__list--check li::before {
    content: '✓';
    color: #4ade80;
}

/* --- About client (light grey) --- */
.cs-about {
    padding: 72px 0;
    background: var(--color-bg-alt);
}

.cs-about__body p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 16px;
}

/* --- How we did it (dark, styled paragraphs as steps) --- */
.cs-how {
    padding: 72px 0;
    background: var(--color-secondary);
}

.cs-how .cs-section-title {
    color: #fff;
}

.cs-how__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-how__body p {
    position: relative;
    padding: 20px 24px;
    background: rgba(255,255,255,.06);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,.82);
    margin-bottom: 0;
}

.cs-how__body p strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ff8a80;
    margin-bottom: 6px;
}

/* --- Strategy steps (light grey) --- */
.cs-strategy {
    padding: 72px 0;
    background: var(--color-bg-alt);
}

.cs-strategy__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cs-strategy__step {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border-top: 3px solid var(--color-primary);
}

.cs-strategy__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.cs-strategy__head {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.cs-strategy__text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- Results blocks (Yandex + Google, styled paragraphs) --- */
.cs-results-block {
    padding: 72px 0;
}

.cs-results-block--alt {
    background: var(--color-bg-alt);
}

.cs-results-block__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cs-results-block__body p {
    position: relative;
    padding: 18px 22px;
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-border);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 0;
    transition: border-color .2s;
}

.cs-results-block__body p:hover {
    border-left-color: var(--color-primary);
}

.cs-results-block--alt .cs-results-block__body p {
    background: #fff;
}

.cs-results-block__body strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

/* --- Achievements (dark accent) --- */
.cs-achievements {
    padding: 72px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #c0392b 100%);
}

.cs-achievements .cs-section-title {
    color: #fff;
}

.cs-achievements__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-achievements__body p {
    padding: 22px 28px;
    background: rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,.9);
    margin-bottom: 0;
}

.cs-achievements__body strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
    margin-bottom: 6px;
}

/* --- Expert quote (light grey) --- */
.cs-expert {
    padding: 64px 0;
    background: var(--color-bg-alt);
}

.cs-expert__quote {
    background: #fff;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    padding: 36px 40px;
    font-style: italic;
    font-size: 18px;
    line-height: 1.75;
    color: var(--color-secondary);
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.cs-expert__footer {
    margin-top: 24px;
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-expert__footer::before {
    content: '';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.cs-expert__footer strong {
    font-size: 15px;
    color: var(--color-secondary);
}

.cs-expert__footer span {
    font-size: 13px;
    color: var(--color-text-muted);
    display: block;
}

/* --- Conclusions (white, styled as callout) --- */
.cs-concl {
    padding: 72px 0;
}

.cs-concl__body {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

/* --- FAQ (light grey) --- */
.cs-faq {
    padding: 72px 0;
    background: var(--color-bg-alt);
}

.cs-faq .cs-section-title {
    color: var(--color-secondary);
}

.cs-faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .cs-overview__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .cs-hero {
        padding: 48px 0 40px;
    }

    .cs-info {
        flex-direction: column;
        gap: 0;
    }

    .cs-info__item {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
        padding-bottom: 18px;
        margin-bottom: 18px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .cs-info__item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .cs-stats__grid {
        flex-wrap: wrap;
    }

    .cs-stats__item {
        max-width: 50%;
        min-width: 120px;
        padding: 12px;
        margin-bottom: 8px;
    }

    .cs-tasks { padding: 48px 0; }
    .cs-tasks__grid { grid-template-columns: 1fr; }

    .cs-pb { padding: 48px 0; }
    .cs-pb__grid { grid-template-columns: 1fr; }

    .cs-about { padding: 48px 0; }
    .cs-how { padding: 48px 0; }
    .cs-strategy { padding: 48px 0; }
    .cs-strategy__steps { grid-template-columns: repeat(2, 1fr); }

    .cs-results-block,
    .cs-achievements,
    .cs-concl { padding: 48px 0; }

    .cs-expert { padding: 40px 0; }
    .cs-expert__quote { padding: 24px 24px; font-size: 16px; }

    .cs-faq { padding: 48px 0; }

    .cs-concl__body { padding: 24px 20px; }
}
