/* ===== СТРАНИЦА СХЕМЫ ===== */
.process-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}

.process-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.process-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.process-page-icon {
    margin-right: 0.75rem;
}

.process-page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* ===== КОНТЕЙНЕР СХЕМЫ ===== */
.process-container {
    background: var(--color-white);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== ВХОД / ВЫХОД (узлы) ===== */
.process-node {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--color-background);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    border: 2px solid var(--color-border);
    width: 100%;
    max-width: 600px;
    transition: all 0.3s ease;
}

.process-node:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(15, 76, 129, 0.1);
}

.input-node {
    border-left: 5px solid #2a6a3a;
}
.output-node {
    border-left: 5px solid #c8102e;
}

.node-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.input-node .node-icon {
    color: #2a6a3a;
}
.output-node .node-icon {
    color: #c8102e;
}

.node-content {
    display: flex;
    flex-direction: column;
}

.node-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
}

.node-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.node-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ===== СТРЕЛКА ВЕРТИКАЛЬНАЯ ===== */
.arrow-vertical {
    position: relative;
    width: 60px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}

.arrow-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: repeating-linear-gradient(
            to bottom,
            #b0c4d8 0px,
            #b0c4d8 6px,
            transparent 6px,
            transparent 12px
    );
    transform: translateX(-50%);
}

.arrow-head-down {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid var(--color-primary);
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ ДВИЖУЩЕГОСЯ ОБЪЕКТА ===== */
.moving-product-vertical {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    color: var(--color-primary-hover);
    animation: moveProductVertical 12.8s ease-in-out infinite;
    z-index: 2;
    border-radius: 50%;
    backdrop-filter: blur(2px);
    padding: 15px;
    background-color: #ffffff;
    border: 1px dotted var(--color-primary);
}

@keyframes moveProductVertical {
    0% {
        top: -15%;
        opacity: 0;
    }
    5% {
        top: -8%;
        opacity: 0.3;
    }
    10% {
        opacity: 1;
    }
    45% {
        top: 92%;
        opacity: 1;
    }
    50% {
        top: 92%;
        opacity: 0.3;
    }
    100% {
        top: 92%;
        opacity: 0;
    }
}

.moving-product-vertical img {
    width: 50px;
    border-radius: 50px;
}

/* ===== ЭТАПЫ ===== */
.stage {
    width: 100%;
    margin-bottom: 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stage-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    padding: 0.6rem 1.75rem;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    text-align: center;
    z-index: 3;
}

.stage-header i {
    margin-right: 0.75rem;
}

.stage-prep .stage-header { background: #2a4a6a; }
.stage-print .stage-header { background: #a02030; }
.stage-post .stage-header { background: #2a6a5a; }
.stage-gp .stage-header { background: #3a5a3a; }

/* ===== СЕТКА РАБОЧИХ ЦЕНТРОВ ===== */
.work-cells-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    width: 100%;
}

/* ===== КАРТОЧКА РАБОЧЕГО ЦЕНТРА ===== */
.cell {
    background: var(--color-background);
    border-radius: 14px;
    padding: 1rem 0.75rem 0.85rem;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    border-color: var(--color-primary);
}

.cell-photo {
    width: 100%;
    aspect-ratio: 1/0.85;
    background: var(--color-white);
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 0.6rem;
    border: 1px solid var(--color-border);
    transition: border-color 0.2s, transform 0.3s;
    min-height: 100px;
}

.cell:hover .cell-photo {
    border-color: var(--color-primary);
    transform: scale(1.02);
}

.cell-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.3;
}

.cell-sub {
    font-size: 0.65rem;
    color: var(--color-text-light);
    margin-top: 1px;
}

/* ===== ПОДВАЛ ===== */
.process-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
    border-top: 1px solid var(--color-border);
    width: 100%;
}

.process-footer i {
    color: var(--color-primary);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .process-page { padding: 1rem 0.75rem 2rem; }
    .process-page-title { font-size: 1.8rem; }
    .process-container { padding: 1.5rem 0.75rem 1.5rem; border-radius: 16px; }
    .work-cells-vertical { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.6rem; }
    .stage-header { font-size: 0.95rem; padding: 0.4rem 1.25rem; }
    .cell-photo { aspect-ratio: 1/0.75; min-height: 80px; }
    .cell-title { font-size: 0.75rem; }
    .process-node { padding: 0.75rem 1.25rem; max-width: 100%; }
    .node-icon { font-size: 1.8rem; }
    .node-title { font-size: 0.95rem; }
    .arrow-vertical { width: 40px; height: 100px; }
    .moving-product-vertical { font-size: 1rem; padding: 8px 10px; }
    .arrow-head-down { border-left-width: 7px; border-right-width: 7px; border-top-width: 10px; }
}

@media (max-width: 480px) {
    .work-cells-vertical { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .cell { padding: 0.6rem 0.3rem; }
    .cell-photo { aspect-ratio: 1/0.7; min-height: 60px; }
    .cell-title { font-size: 0.7rem; }
    .cell-sub { font-size: 0.55rem; }
    .stage-header { font-size: 0.8rem; padding: 0.3rem 1rem; }
    .process-container { padding: 0.75rem 0.4rem 1rem; }
    .process-node { padding: 0.6rem 0.8rem; gap: 0.6rem; }
    .node-icon { font-size: 1.4rem; }
    .node-title { font-size: 0.8rem; }
    .node-desc { font-size: 0.65rem; }
    .arrow-vertical { width: 30px; height: 70px; }
    .moving-product-vertical { font-size: 0.8rem; padding: 5px 6px; }
    .arrow-head-down { border-left-width: 5px; border-right-width: 5px; border-top-width: 8px; }
    .process-footer { font-size: 0.65rem; padding-top: 1rem; margin-top: 1.5rem; }
}