/* Import nowoczesnej czcionki */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc; /* Bardzo delikatny, chłodny odcień szarości */
    color: #334155;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 50px 20px;
    text-align: center;
    border-bottom: 4px solid #0ea5e9; /* Akcent w żywszym kolorze */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

header p {
    font-size: 1.15rem;
    color: #cbd5e1;
    font-weight: 400;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Spis treści */
.step_list {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 40px;
    margin-bottom: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border-left: 6px solid #0ea5e9;
}

.step_list h2 {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step_list h2::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='8' y1='18' x2='21' y2='18'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
}

.step_list ol {
    list-style-type: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.step_list li {
    counter-increment: step-counter;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.step_list li:last-child {
    margin-bottom: 0;
}

/* Nowoczesny licznik w spisie treści */
.step_list li::before {
    content: counter(step-counter);
    font-weight: 600;
    color: #0ea5e9;
    background-color: #f0f9ff;
    width: 28px;
    height: 28px;
    border-radius: 6px; /* Lekko zaokrąglony kwadrat zamiast kółka */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1px solid #bae6fd;
}

.step_list a {
    color: #334155;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.step_list a:hover {
    color: #0ea5e9;
}

/* Nagłówki sekcji */
.chapter {
    margin-top: 65px;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.chapter h1 {
    font-size: 1.8rem;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Kontenery poszczególnych kroków */
.step {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtelny efekt podniesienia przy najechaniu */
.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.step-image {
    flex: 0 0 55%;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-right: 1px solid #e2e8f0;
}

.step-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.step-desc {
    flex: 1;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-desc p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 15px;
}

.step-desc p:last-child {
    margin-bottom: 0;
}

.step-desc strong {
    color: #0f172a;
    font-weight: 600;
}

.step-desc a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.step-desc a:hover {
    text-decoration: underline;
}

/* Responsywność */
@media (max-width: 992px) {
    .step_list {
        padding: 25px 20px;
    }

    .step {
        flex-direction: column;
    }

    .step-image {
        flex: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .step-desc {
        padding: 30px 25px;
    }
}
