/* ===== Software Engineering Page — Dedykowane style ===== */

/* --- Sekcje ogólne --- */
.sw-features {
    padding: 80px 0;
}

.sw-process {
    padding: 80px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sw-why {
    padding: 60px 0;
}

.sw-auto {
    padding: 80px 0;
}

.sw-case {
    padding: 80px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    scroll-margin-top: 140px;
}


/* ===== HERO — Dashboard mockup ===== */
.sw-dashboard {
    background: rgba(10, 10, 26, 0.92);
    border: 1px solid rgba(124, 92, 255, 0.18);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    width: 100%;
    transition: all 0.3s ease;
}

.sw-dashboard:hover {
    border-color: rgba(124, 92, 255, 0.35);
    box-shadow: 0 24px 80px rgba(68, 38, 255, 0.2);
    transform: translateY(-3px);
}

.sw-dashboard__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sw-dashboard__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sw-dashboard__dot--red { background: #ff5f57; }
.sw-dashboard__dot--yellow { background: #ffbd2e; }
.sw-dashboard__dot--green { background: #28c840; }

.sw-dashboard__dot-title {
    margin-left: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
}

.sw-dashboard__body {
    padding: 20px;
}

.sw-dashboard__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.sw-dashboard__stat {
    padding: 16px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.sw-dashboard__stat:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(124, 92, 255, 0.2);
}

.sw-dashboard__stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sw-dashboard__stat-value {
    font-size: 26px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    min-height: 32px;
}

.sw-dashboard__stat-unit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

/* Dashboard toolbar */
.sw-dashboard__toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.sw-dashboard__toolbar-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s ease;
}

.sw-dashboard__toolbar-btn--active {
    background: rgba(90, 63, 255, 0.2);
    border-color: rgba(124, 92, 255, 0.3);
    color: #9b8aff;
}

.sw-dashboard__toolbar-btn--icon {
    padding: 6px 10px;
}

/* Dashboard chart */
.sw-dashboard__chart {
    padding: 14px 0;
    margin-bottom: 4px;
}

.sw-dashboard__chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sw-dashboard__chart-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sw-dashboard__chart-badge {
    font-size: 11px;
    color: #28c840;
    background: rgba(40, 200, 64, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.sw-dashboard__chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.sw-dashboard__chart-bar {
    flex: 1;
    background: rgba(90, 63, 255, 0.25);
    border-radius: 4px 4px 0 0;
    min-height: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.sw-dashboard__chart-bar:hover {
    background: rgba(90, 63, 255, 0.45);
}

.sw-dashboard__chart-bar--accent {
    background: rgba(90, 63, 255, 0.5);
    box-shadow: 0 0 12px rgba(90, 63, 255, 0.3);
}

.sw-dashboard__chart-bar span {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.25);
}

/* Dashboard code block */
.sw-dashboard__code {
    padding: 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

.sw-dashboard__code-line {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;
    height: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-dashboard__code .t-green { color: #28c840; }
.sw-dashboard__code .t-dim { color: rgba(255, 255, 255, 0.4); }
.sw-dashboard__code .t-purple { color: #9b8aff; }


/* ===== TIMELINE — Proces ===== */
.sw-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 60px 0 40px;
    padding: 0 20px;
}

.sw-timeline__line {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue) 0%, rgba(68, 38, 255, 0.1) 100%);
    z-index: 0;
}

.sw-timeline__step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 12px;
    z-index: 1;
}

.sw-timeline__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue);
    margin: 0 auto 16px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(68, 38, 255, 0.3);
    transition: all 0.3s ease;
}

.sw-timeline__step:hover .sw-timeline__dot {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(68, 38, 255, 0.5);
}

.sw-timeline__number {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.sw-timeline__step h4 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}

.sw-timeline__step p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    text-align: center !important;
}

.sw-timeline__badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sw-timeline__badges span {
    padding: 8px 20px;
    border: 1px solid rgba(68, 38, 255, 0.2);
    border-radius: 60px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    background: rgba(68, 38, 255, 0.05);
    transition: all 0.3s ease;
}

.sw-timeline__badges span:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}


/* ===== PORTFOLIO CARD — Accent variant (4. kafel) ===== */
.portfolio-card--accent {
    background: linear-gradient(135deg, #0a0a1a 0%, #111133 50%, #1a1a4e 100%);
    border-color: rgba(124, 92, 255, 0.2);
}

.portfolio-card--accent:hover {
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 20px 60px rgba(68, 38, 255, 0.2);
}

.portfolio-card--accent h3 {
    color: #fff;
}

.portfolio-card--accent p {
    color: rgba(255, 255, 255, 0.6);
}

.portfolio-card__icon--accent {
    background: rgba(155, 138, 255, 0.15);
}

.portfolio-card__icon--accent i {
    color: #9b8aff;
}


/* ===== AGILE CYCLE ===== */
.sw-agile {
    margin: 40px 0;
    padding: 40px;
    background: rgba(68, 38, 255, 0.04);
    border: 1px solid rgba(68, 38, 255, 0.1);
    border-radius: 24px;
    position: relative;
}

.sw-agile__label {
    position: absolute;
    top: -12px;
    left: 40px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 60px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sw-agile__cycle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sw-agile__step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.sw-agile__step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    border-color: var(--blue);
}

.sw-agile__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(68, 38, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.sw-agile__icon i {
    font-size: 20px;
    color: var(--blue);
}

.sw-agile__step h4 {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}

.sw-agile__step p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    text-align: center !important;
}

.sw-agile__arrow {
    color: var(--blue);
    font-size: 18px;
    flex-shrink: 0;
}

.sw-agile__arrow--return {
    color: var(--blue);
    opacity: 0.6;
}

.sw-agile__note {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: 20px;
    font-style: italic;
}


/* ===== ARCHITEKTURA — 2 kolumny + widgety ===== */
.sw-arch__glow-2 {
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(90, 63, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.sw-arch__desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 560px;
    text-align: left !important;
}

/* --- Widgety Filament --- */
.sw-widgets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-widgets__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sw-widget {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    overflow: hidden;
}

.sw-widget:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(124, 92, 255, 0.25);
    box-shadow: 0 8px 40px rgba(68, 38, 255, 0.15);
    transform: translateY(-2px);
}

.sw-widget--wide {
    grid-column: 1 / -1;
}

.sw-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sw-widget__title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sw-widget__badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.sw-widget__badge--green {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
}

.sw-widget__value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.sw-widget__value small {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

/* Wykres liniowy SVG */
.sw-widget__chart-line {
    height: 50px;
    margin: 0 -20px -20px;
}

.sw-widget__svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sw-widget__line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: swLineDraw 2.5s ease-out forwards;
}

.sw-widget__area {
    opacity: 0;
    animation: swAreaFade 2.5s ease-out 0.5s forwards;
}

.sw-widget__pulse {
    animation: swPulse 2s ease-in-out infinite;
}

@keyframes swLineDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes swAreaFade {
    to { opacity: 1; }
}

@keyframes swPulse {
    0%, 100% { r: 3; opacity: 1; }
    50% { r: 6; opacity: 0.5; }
}

/* Wykres słupkowy */
.sw-widget__bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 70px;
}

.sw-widget__bar {
    flex: 1;
    background: rgba(90, 63, 255, 0.25);
    border-radius: 4px 4px 0 0;
    min-height: 6px;
    position: relative;
    height: var(--bar-height);
    transition: background 0.3s ease;
}

.sw-widget__bar--animated {
    animation: swBarGrow 1.2s ease-out forwards;
    height: 0;
}

.sw-widget__bar:hover {
    background: rgba(90, 63, 255, 0.5);
}

.sw-widget__bar--accent {
    background: rgba(90, 63, 255, 0.5);
    box-shadow: 0 0 12px rgba(90, 63, 255, 0.3);
}

.sw-widget__bar span {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.25);
}

@keyframes swBarGrow {
    to { height: var(--bar-height); }
}

/* Live activity feed */
.sw-widget__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: swLivePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

@keyframes swLivePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
    50% { opacity: 0.4; box-shadow: 0 0 16px rgba(52, 211, 153, 0.8); }
}

.sw-widget__activity {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sw-widget__activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 0;
    animation: swActivitySlide 0.4s ease-out forwards;
}

.sw-widget__activity-row:last-child {
    border-bottom: none;
}

.sw-widget__activity-row:nth-child(1) { animation-delay: 0.5s; }
.sw-widget__activity-row:nth-child(2) { animation-delay: 1.2s; }
.sw-widget__activity-row:nth-child(3) { animation-delay: 1.9s; }
.sw-widget__activity-row:nth-child(4) { animation-delay: 2.6s; }

@keyframes swActivitySlide {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.sw-widget__activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sw-widget__activity-icon i {
    font-size: 12px;
}

.sw-widget__activity-icon--green {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

.sw-widget__activity-icon--green i { color: #34d399; }

.sw-widget__activity-icon--blue {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
}

.sw-widget__activity-icon--blue i { color: #60a5fa; }

.sw-widget__activity-icon--purple {
    background: rgba(155, 138, 255, 0.12);
    color: #9b8aff;
}

.sw-widget__activity-icon--purple i { color: #9b8aff; }

.sw-widget__activity-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
}

.sw-widget__activity-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

/* --- Prawa strona: kafle zabezpieczeń --- */
.sw-arch__cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-arch__detail {
    padding: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.sw-arch__detail:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(68, 38, 255, 0.12);
    border-color: rgba(124, 92, 255, 0.25);
}

.sw-arch__detail strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
    margin-bottom: 6px;
}

.sw-arch__detail strong i {
    color: #9b8aff;
    font-size: 16px;
}

.sw-arch__detail span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    display: block;
}


/* --- Status widget (prawy dolny róg architektury) --- */
.sw-arch__status {
    margin-top: 12px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.sw-arch__status:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(52, 211, 153, 0.2);
    box-shadow: 0 8px 32px rgba(52, 211, 153, 0.08);
}

.sw-arch__status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.sw-arch__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
    animation: swLivePulse 1.5s ease-in-out infinite;
}

.sw-arch__status-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    flex: 1;
}

.sw-arch__status-badge {
    font-size: 11px;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.sw-arch__status-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sw-arch__status-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sw-arch__status-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    min-width: 90px;
    flex-shrink: 0;
}

.sw-arch__status-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.sw-arch__status-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #34d399, #5ae8b5);
    border-radius: 4px;
    animation: swStatusBarGrow 1.5s ease-out forwards;
    transform-origin: left;
}

.sw-arch__status-val {
    font-size: 12px;
    color: #34d399;
    font-weight: 600;
    min-width: 52px;
    text-align: right;
}

@keyframes swStatusBarGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}


/* ===== CASE STUDY — Ekran 1: Co zbudowaliśmy ===== */
.sw-case__tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sw-case__tech-badges span {
    padding: 6px 16px;
    border: 1px solid rgba(68, 38, 255, 0.2);
    border-radius: 60px;
    font-size: 12px;
    font-weight: 500;
    color: var(--blue);
    background: rgba(68, 38, 255, 0.05);
    transition: all 0.3s ease;
}

.sw-case__tech-badges span:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.sw-case__links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Logo klienta — pełna szerokość */
.sw-case__logo {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.sw-case__logo--full {
    padding: 32px 40px;
    margin-bottom: 24px;
}

.sw-case__logo:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.sw-case__logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.sw-case__logo--full img {
    max-height: 70px;
}

/* Galeria e-commerce — 1 duże + 4 małe */
.sw-case__gallery-main {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    transition: all 0.35s ease;
}

.sw-case__gallery-main:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
    border-color: var(--blue);
}

.sw-case__gallery-main img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.sw-case__gallery-main:hover img {
    transform: scale(1.02);
}

.sw-case__gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.sw-case__gallery-thumb {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    aspect-ratio: 4 / 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sw-case__gallery-thumb:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(68, 38, 255, 0.15);
    transform: translateY(-2px);
}

.sw-case__gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Nagłówek sekcji wewnętrznej */
.sw-case__h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
}

/* Row matched height */
.sw-case__row-match {
    align-items: stretch;
}

.sw-case__gallery {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sw-case__gallery-main {
    flex: 1;
    min-height: 0;
}

.sw-case__gallery-main img {
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.sw-case__info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Przycisk secondary (widoczny na jasnym tle) */
.hero-eng__btn--secondary {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.hero-eng__btn--secondary:hover {
    background: var(--blue);
    color: #fff;
}

/* Feature cards — kafelki 2×3 */
.sw-case__feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    height: 100%;
    transition: all 0.35s ease;
}

.sw-case__feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border-color: var(--blue);
}

.sw-case__feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(68, 38, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sw-case__feature-icon i {
    font-size: 18px;
    color: var(--blue);
}

.sw-case__feature-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}

.sw-case__feature-body p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    text-align: left !important;
}


/* ===== CASE STUDY — Ekran 2: Co zyskała firma ===== */
.sw-case-results {
    margin-top: 0;
}

.sw-case-results__subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* Metryki — duże karty */
.sw-case-results__metric {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.35s ease;
    height: 100%;
}

.sw-case-results__metric:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(124, 92, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(68, 38, 255, 0.15);
}

.sw-case-results__metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(155, 138, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.sw-case-results__metric-icon i {
    font-size: 20px;
    color: #9b8aff;
}

.sw-case-results__metric-icon--green {
    background: rgba(52, 211, 153, 0.12);
}
.sw-case-results__metric-icon--green i { color: #34d399; }

.sw-case-results__metric-icon--blue {
    background: rgba(96, 165, 250, 0.12);
}
.sw-case-results__metric-icon--blue i { color: #60a5fa; }

.sw-case-results__metric-icon--amber {
    background: rgba(251, 191, 36, 0.12);
}
.sw-case-results__metric-icon--amber i { color: #fbbf24; }

.sw-case-results__metric-value {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 6px;
}

.sw-case-results__metric-value small {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.sw-case-results__metric-unit {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-bottom: 4px;
}

.sw-case-results__metric-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

/* Karty korzyści — lewa kolumna */
.sw-case-results__benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-case-results__benefit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.sw-case-results__benefit:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(68, 38, 255, 0.12);
    border-color: rgba(124, 92, 255, 0.25);
}

.sw-case-results__benefit-nr {
    font-size: 20px;
    font-weight: 800;
    color: rgba(155, 138, 255, 0.3);
    line-height: 1;
    flex-shrink: 0;
    min-width: 32px;
    padding-top: 2px;
}

.sw-case-results__benefit-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.sw-case-results__benefit-body p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
    margin: 0;
    text-align: left !important;
}

/* Panel Filament mockup — prawa kolumna */
.sw-case-results__panel {
    background: rgba(10, 10, 26, 0.8);
    border: 1px solid rgba(124, 92, 255, 0.18);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sw-case-results__panel:hover {
    border-color: rgba(124, 92, 255, 0.35);
    box-shadow: 0 24px 70px rgba(68, 38, 255, 0.15);
    transform: translateY(-3px);
}

.sw-case-results__panel-body {
    padding: 16px;
}

/* Mini tabela Filament */
.sw-case-results__table {
    margin-bottom: 16px;
}

.sw-case-results__table-head {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 0.9fr 0.8fr;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 4px;
}

.sw-case-results__table-head span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sw-case-results__table-row {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 0.9fr 0.8fr;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.sw-case-results__table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sw-case-results__table-row:last-child {
    border-bottom: none;
}

.sw-case-results__table-row span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status badges w tabeli */
.sw-case-results__status {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px !important;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.sw-case-results__status--paid {
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.1);
}

.sw-case-results__status--pending {
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.1);
}

.sw-case-results__status--warning {
    color: #fb923c !important;
    background: rgba(251, 146, 60, 0.1);
}

.sw-case-results__status--full {
    color: #f87171 !important;
    background: rgba(248, 113, 113, 0.1);
}

/* Sparkline chart pod tabelą */
.sw-case-results__panel-chart {
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sw-case-results__sparkline {
    height: 40px;
    margin-top: 8px;
}

/* ===== Statystyki komunikacji ===== */
.sw-comms {
    background: rgba(10, 10, 26, 0.8);
    border: 1px solid rgba(124, 92, 255, 0.18);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.sw-comms:hover {
    border-color: rgba(124, 92, 255, 0.35);
    box-shadow: 0 20px 56px rgba(68, 38, 255, 0.15);
    transform: translateY(-2px);
}

.sw-comms__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.sw-comms__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sw-comms__stat {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.sw-comms__stat:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 92, 255, 0.2);
}

.sw-comms__stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.sw-comms__stat-icon i {
    font-size: 14px;
}

.sw-comms__stat-icon--blue {
    background: rgba(96, 165, 250, 0.12);
}
.sw-comms__stat-icon--blue i { color: #60a5fa; }

.sw-comms__stat-icon--green {
    background: rgba(52, 211, 153, 0.12);
}
.sw-comms__stat-icon--green i { color: #34d399; }

.sw-comms__stat-icon--purple {
    background: rgba(155, 138, 255, 0.12);
}
.sw-comms__stat-icon--purple i { color: #9b8aff; }

.sw-comms__stat-icon--amber {
    background: rgba(251, 191, 36, 0.12);
}
.sw-comms__stat-icon--amber i { color: #fbbf24; }

.sw-comms__stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 4px;
}

.sw-comms__stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sw-comms__stat-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.sw-comms__stat-bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #7c5cff, #9b8aff);
    animation: swStatusBarGrow 1.8s ease-out forwards;
    transform-origin: left;
}

.sw-comms__footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.sw-comms__footer span {
    font-size: 12px;
    color: rgba(52, 211, 153, 0.7);
    font-weight: 500;
}

.sw-comms__footer i {
    color: #34d399;
    margin-right: 6px;
}


/* Code block */
.sw-case__code-block {
    background: #0a0a1a;
    border: 1px solid rgba(124, 92, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
}

.sw-case__code-block pre {
    padding: 20px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    background: #0a0a1a !important;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    overflow-x: auto;
    border: none;
    border-radius: 0;
}

.sw-case__code-block code {
    color: rgba(255, 255, 255, 0.7);
    background: transparent !important;
}


/* ===== AUTOMATYZACJE — karty korzyści ===== */
.sw-auto__card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    transition: all 0.35s ease;
    height: 100%;
}

.sw-auto__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border-color: var(--blue);
}

.sw-auto__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(68, 38, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sw-auto__icon i {
    font-size: 20px;
    color: var(--blue);
}

.sw-auto__content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}

.sw-auto__content p {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    margin: 0;
    text-align: left !important;
}


/* ===== TECH STACK — dodatkowe na 4 kolumny ===== */
.sw-stack {
    padding: 20px 0 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}


/* ===== CASE STUDIES — header + sticky pill nav ===== */
.sw-cases-header {
    padding: 80px 0 32px;
    text-align: center;
}

.sw-cases-nav {
    position: relative;
    z-index: 99;
    background: rgba(16, 16, 32, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(124, 92, 255, 0.12);
    padding: 12px 24px;
    border-radius: 60px;
    max-width: 700px;
    margin: 0 auto 20px;
    transition: all 0.35s ease;
}

.sw-cases-nav.is-stuck {
    position: fixed;
    bottom: 24px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    max-width: 700px;
    width: 700px;
    padding: 12px 24px;
    border-radius: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    background: rgba(16, 16, 32, 0.97);
}

.sw-cases-nav__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.sw-cases-nav__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.sw-cases-nav__pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sw-cases-nav__pills::-webkit-scrollbar {
    display: none;
}

.sw-cases-nav__pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sw-cases-nav__pill:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.sw-cases-nav__pill.active {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 2px 12px rgba(68, 38, 255, 0.4);
}

/* ===== Accent card — kontrastowy kafelek ===== */
.portfolio-card--accent {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border: 1px solid rgba(124, 92, 255, 0.2);
}

.portfolio-card--accent h3 {
    color: #fff;
}

.portfolio-card--accent p {
    color: rgba(255, 255, 255, 0.7);
}

.portfolio-card--accent .portfolio-card__icon {
    color: #9b8aff;
}

.portfolio-card--accent:hover {
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 12px 40px rgba(68, 38, 255, 0.2);
}


/* ===== RESPONSIVE — 911px ===== */
@media screen and (max-width: 911px) {

    /* Sticky case study nav */
    .sw-cases-nav {
        padding: 8px 12px;
        max-width: 95%;
        border-radius: 50px;
    }

    .sw-cases-nav.is-stuck {
        bottom: 16px;
        top: auto;
        max-width: 95%;
        width: 95%;
        border-radius: 50px;
    }

    .sw-cases-header {
        padding: 60px 0 20px;
    }

    .sw-cases-nav__label {
        display: none;
    }

    .sw-cases-nav__pill {
        padding: 5px 12px;
        font-size: 12px;
    }

    /* Hero dashboard */
    .sw-dashboard {
        margin-top: 20px;
    }

    .sw-dashboard__stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sw-dashboard__stat-value {
        font-size: 20px;
    }

    .sw-dashboard__code-line {
        font-size: 10px;
    }

    .sw-dashboard__toolbar {
        gap: 4px;
    }

    .sw-dashboard__toolbar-btn {
        padding: 4px 10px;
        font-size: 10px;
    }

    .sw-dashboard__chart-bars {
        height: 60px;
    }

    /* Agile cycle — mobile */
    .sw-agile {
        padding: 30px 20px;
        margin: 30px 0;
    }

    .sw-agile__cycle {
        flex-direction: column;
        gap: 12px;
    }

    .sw-agile__step {
        min-width: auto;
        width: 100%;
    }

    .sw-agile__arrow {
        transform: rotate(90deg);
    }

    .sw-agile__arrow--return {
        transform: rotate(90deg);
    }

    /* Timeline — pionowy na mobile */
    .sw-timeline {
        flex-direction: column;
        gap: 30px;
        margin: 40px 0 30px;
        padding-left: 40px;
    }

    .sw-timeline__line {
        width: 2px;
        height: 100%;
        top: 0;
        left: 16px;
        right: auto;
    }

    .sw-timeline__step {
        text-align: left;
        padding-left: 20px;
        padding-right: 0;
    }

    .sw-timeline__dot {
        position: absolute;
        left: -40px;
        top: 0;
        margin: 0;
        width: 28px;
        height: 28px;
    }

    .sw-timeline__step p {
        text-align: left !important;
    }

    .sw-timeline__badges {
        justify-content: flex-start;
    }

    /* Architektura — widgety + karty mobile */
    .sw-widgets__row {
        grid-template-columns: 1fr;
    }

    .sw-widget__value {
        font-size: 22px;
    }

    .sw-widget__bars {
        height: 55px;
    }

    .sw-widget__activity-text {
        font-size: 12px;
    }

    .sw-widget__activity-time {
        font-size: 10px;
    }

    .sw-widget__activity-icon {
        width: 24px;
        height: 24px;
    }

    .sw-widget__activity-icon i {
        font-size: 10px;
    }

    .sw-arch__cards {
        margin-top: 24px;
    }

    .sw-arch__desc {
        font-size: 14px;
    }

    /* Case study — ekran 1 mobile */
    .sw-case__logo--full {
        padding: 20px;
    }

    .sw-case__logo--full img {
        max-height: 48px;
    }

    .sw-case__gallery-main {
        border-radius: 12px;
    }

    .sw-case__gallery-main img {
        height: auto;
    }

    .sw-case__gallery-thumbs {
        gap: 6px;
    }

    .sw-case__gallery-thumb {
        border-radius: 8px;
    }

    .sw-case__info {
        margin-top: 8px;
    }

    .sw-case__h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .sw-case__info .col-6 {
        width: 100%;
    }

    .sw-case__feature {
        padding: 18px;
        gap: 12px;
    }

    .sw-case__feature-icon {
        width: 38px;
        height: 38px;
    }

    .sw-case__feature-icon i {
        font-size: 16px;
    }

    .sw-case__feature-body h4 {
        font-size: 14px;
    }

    /* Case study — ekran 2 mobile */
    .sw-case-results__metric {
        padding: 20px 16px;
    }

    .sw-case-results__metric-value {
        font-size: 28px;
    }

    .sw-case-results__metric-value small {
        font-size: 14px;
    }

    .sw-case-results__metric-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .sw-case-results__benefit {
        padding: 18px;
        gap: 12px;
    }

    .sw-case-results__benefit-nr {
        font-size: 16px;
        min-width: 24px;
    }

    .sw-case-results__table-head,
    .sw-case-results__table-row {
        grid-template-columns: 1fr 1.2fr 0.8fr 0.7fr;
        gap: 4px;
        padding: 8px;
    }

    .sw-case-results__table-head span {
        font-size: 9px;
    }

    .sw-case-results__table-row span {
        font-size: 11px;
    }

    /* Automatyzacje */
    .sw-auto__card {
        padding: 20px;
        gap: 14px;
    }

    .sw-auto__content h4 {
        font-size: 15px;
    }

    .sw-auto__content p {
        font-size: 13px;
    }

    /* Sekcje padding mniejszy */
    .sw-features,
    .sw-process,
    .sw-auto,
    .sw-case {
        padding: 50px 0;
    }

    .sw-why {
        padding: 40px 0;
    }

    .sw-stack {
        padding: 10px 0 40px;
    }
}
