.chain-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.chain-container h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.chain-grid {
    display: grid;
    padding: 20px;
    /* На десктопе 4 колонки, на планшете 2, на мобилках 1 */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    /* Счетчик для шагов */
    counter-reset: step-counter;
    background-color: #fcfcfc; /* Легкий фон, чтобы отделить от других блоков */
    margin-top: 3rem;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.05);
}

.chain-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Создаем номер шага автоматически */
.chain-card::before {
    counter-increment: step-counter;
    content: counter(step-counter, decimal-leading-zero); /* 01, 02, 03... */
    font-size: 0.9rem;
    font-weight: bold;
    color: rgb(36, 128, 76);
    margin-bottom: 10px;
    opacity: 0.6;
}

.chain-card:hover {
    border-color: rgb(36, 128, 76);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.chain-card h3 {
    font-size: 1.15rem;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.chain-card p {
    font-size: 0.9rem;
    font-weight: 400;
    color: #777;
    margin: 0;
    line-height: 1.4;
    text-indent: 0;
}

/* Маленький штрих: декоративная точка в углу */
.chain-card::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 6px;
    height: 6px;
    background: #eee;
    border-radius: 50%;
}

.chain-card:hover::after {
    background: rgb(36, 128, 76);
}
