/* case-study.css — style dla podstron /realizacje/ */

.cs-hero {
    padding: clamp(60px, 10vh, 100px) 0 clamp(40px, 6vh, 60px);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.cs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 30% 0%, rgba(212,134,154,0.08), transparent 70%);
    pointer-events: none;
}
.cs-hero > .container { position: relative; }

.cs-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-3);
    margin-bottom: 36px;
    transition: color 0.18s ease, transform 0.18s ease;
}
.cs-back:hover { color: var(--text); transform: translateX(-2px); }

.cs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.cs-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-2);
    padding: 5px 11px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cs-title {
    font-size: clamp(48px, 8vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 600;
    margin-bottom: 28px;
}

.cs-lead {
    font-size: clamp(17px, 1.6vw, 20px);
    color: var(--text-2);
    line-height: 1.55;
    max-width: 720px;
    margin-bottom: 56px;
}

.cs-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 760px;
}
@media (max-width: 720px) { .cs-stats { grid-template-columns: 1fr 1fr; } }

.cs-stat {
    background: var(--bg);
    padding: 22px 22px 20px;
}
.cs-stat-value {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}
.cs-stat-value span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    margin-left: 5px;
    font-weight: 400;
}
.cs-stat-label {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-3);
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

/* sekcje case study */
.cs-section { padding: clamp(60px, 9vh, 100px) 0; }
.cs-container { max-width: 920px; }

.cs-h2 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin-top: 14px;
    margin-bottom: 32px;
}

.cs-prose {
    color: var(--text-2);
    font-size: 16.5px;
    line-height: 1.7;
    max-width: 720px;
}
.cs-prose p { margin-bottom: 18px; }
.cs-prose strong { color: var(--text); font-weight: 500; }

.cs-list {
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 8px;
}
.cs-list li {
    padding-left: 22px;
    position: relative;
}
.cs-list li::before {
    content: "→";
    position: absolute;
    left: 0; top: 0;
    color: var(--text-mute);
}
.cs-list code {
    font-family: var(--font-mono);
    font-size: 13.5px;
    background: var(--surface-2);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text);
}

/* karty decyzji */
.cs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 720px) { .cs-grid { grid-template-columns: 1fr; } }

.cs-card {
    padding: 26px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease;
}
.cs-card:hover { border-color: var(--border-hover); }
.cs-card h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.cs-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 0;
}
.cs-card p + p { margin-top: 8px; }

.cs-palette {
    display: flex;
    gap: 4px;
    margin: 6px 0 14px;
}
.cs-palette span {
    flex: 1;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
}

/* stack grid */
.cs-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
@media (max-width: 820px) { .cs-stack-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .cs-stack-grid { grid-template-columns: 1fr; } }

.cs-stack-item {
    background: var(--surface);
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s ease;
}
.cs-stack-item:hover { background: var(--surface-2); }
.cs-stack-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cs-stack-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.cs-stack-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
}
