/* Симулятор этапов отбора проектов */
.pipeline {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--page-max);
    margin-inline: auto;
    padding: 0 var(--page-gutter) clamp(24px, 4vw, 48px);
    color: #474747;
    font-family: "TT Firs Neue", sans-serif;
    line-height: 1.35;
}

.pipeline p {
    margin: 0;
    line-height: 1.35;
    font-weight: 500;
}

.pipeline__scene {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 340px;
    padding: 22px;
    border-radius: 30px;
    background: #333333;
    color: #f3f3f3;
    box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.04);
}

.pipeline__scene-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pipeline__kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(243, 243, 243, 0.62);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pipeline__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(11, 222, 24);
    box-shadow: 0 0 0 0 rgba(11, 222, 24, 0.55);
    animation: psim-pulse 1.6s ease infinite;
    flex-shrink: 0;
}

.pipeline__stage-title {
    margin-top: 4px;
    color: #ffffff;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.2;
    text-transform: uppercase;
}

.pipeline__pause {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.pipeline__pause:hover {
    border-color: rgb(11, 222, 24);
    color: rgb(11, 222, 24);
}

.pipeline__pause:focus-visible,
.pipeline__stop:focus-visible {
    outline: 2px solid rgb(11, 222, 24);
    outline-offset: 3px;
}

.pipeline__stage-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    flex: 1;
}

.pipeline__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    background: #f3f3f3;
    color: #2c2c2c;
    animation: psim-card-in 0.45s ease;
}

.pipeline__card-kicker {
    color: rgb(11, 222, 24);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pipeline__company {
    color: #222222;
    font-size: 18px;
    line-height: 1.25;
}

.pipeline__contract,
.pipeline__term {
    color: #666666;
    font-size: 14px;
}

.pipeline__amount {
    margin-top: 6px;
    color: #222222;
    font-size: 22px;
    line-height: 1.2;
}

.pipeline__status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    color: #2c2c2c;
    font-size: 14px;
}

.pipeline__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(11, 222, 24);
    flex-shrink: 0;
}

.pipeline__act {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 230px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: psim-act-in 0.4s ease;
}

.pipeline__act-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pipeline__caption {
    color: rgba(243, 243, 243, 0.72);
    font-size: 14px;
    line-height: 1.4;
}

.pipeline__form,
.pipeline__checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pipeline__field-label,
.pipeline__zones span,
.pipeline__paper-kicker {
    color: rgba(243, 243, 243, 0.55);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pipeline__field-value {
    display: block;
    margin-top: 2px;
    color: #ffffff;
    font-size: 16px;
    clip-path: inset(0 100% 0 0);
    animation: psim-type 0.7s ease forwards;
    animation-delay: var(--d, 0s);
}

.pipeline__check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f3f3f3;
    font-size: 15px;
    opacity: 0.35;
    animation: psim-reveal 0.35s ease forwards;
    animation-delay: var(--d, 0s);
}

.pipeline__box {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 5px;
    flex-shrink: 0;
}

.pipeline__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid rgb(11, 222, 24);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    animation: psim-tick 0.25s ease forwards;
    animation-delay: var(--d, 0s);
}

.pipeline__gauge {
    display: flex;
    flex-direction: column;
}

.pipeline__zones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 8px;
}

.pipeline__zones span:nth-child(2) {
    text-align: center;
}

.pipeline__zones span:nth-child(3) {
    text-align: right;
}

.pipeline__track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0bde18 0%, #d6de18 58%, #de4b11 100%);
}

.pipeline__needle {
    position: absolute;
    top: -6px;
    left: 0;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(11, 222, 24, 0.35);
    transform: translateX(-50%);
    animation: psim-needle 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pipeline__risk-label {
    align-self: flex-start;
    margin-top: 16px;
    padding: 6px 12px;
    border: 1px solid rgba(11, 222, 24, 0.75);
    border-radius: 999px;
    color: rgb(11, 222, 24);
    font-size: 14px;
    opacity: 0;
    animation: psim-reveal 0.35s ease 1s forwards;
}

.pipeline__paper {
    position: relative;
    padding: 16px 16px 52px;
    border-radius: 14px;
    background: #f7f7f5;
    color: #333333;
}

.pipeline__paper-kicker {
    color: #8a8a8a;
}

.pipeline__paper-title {
    margin-top: 6px;
    color: #222222;
    font-size: 18px;
    line-height: 1.3;
}

.pipeline__paper-meta {
    margin-top: 6px;
    color: #555555;
    font-size: 14px;
}

.pipeline__stamp {
    position: absolute;
    right: 16px;
    bottom: 14px;
    margin: 0;
    padding: 4px 10px;
    border: 2px solid rgb(11, 222, 24);
    border-radius: 8px;
    color: rgb(11, 222, 24);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: rotate(-8deg) scale(1.4);
    animation: psim-stamp 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 0.55s forwards;
}

.pipeline__engineer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #f3f3f3;
    color: #222222;
    animation: psim-card-in 0.5s ease;
}

.pipeline__avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #333333;
    color: rgb(11, 222, 24);
    font-size: 18px;
    flex-shrink: 0;
}

.pipeline__who {
    color: #222222;
    font-size: 16px;
}

.pipeline__brand {
    margin-top: 2px;
    color: rgb(11, 222, 24);
    font-size: 13px;
    letter-spacing: 0.06em;
}

.pipeline__shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.pipeline__mini {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    min-height: 96px;
    padding: 12px;
    border-radius: 14px;
    background: #d6d6d6;
    color: #474747;
    opacity: 0.55;
}

.pipeline__mini--focus {
    min-height: 128px;
    background: #ffffff;
    color: #222222;
    opacity: 1;
    box-shadow: 0 0 0 2px rgb(11, 222, 24);
    transform: translateY(14px);
    animation: psim-land 0.7s ease 0.15s forwards;
}

.pipeline__mini-badge {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgb(11, 222, 24);
    color: #14320f;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pipeline__mini-name {
    color: inherit;
    font-size: 13px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pipeline__mini-sum {
    color: inherit;
    font-size: 13px;
}

.pipeline__raise {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pipeline__sum {
    position: relative;
    min-height: 1.3em;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
}

.pipeline__sum-from,
.pipeline__sum-to {
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
}

.pipeline__sum-from {
    animation: psim-fade-out 0.35s ease 1.45s forwards;
}

.pipeline__sum-to {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    animation: psim-reveal 0.35s ease 1.55s forwards;
}

.pipeline__bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.pipeline__bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: rgb(11, 222, 24);
    animation: psim-fill 1.8s ease forwards;
}

.pipeline__badge {
    align-self: flex-start;
    margin-top: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgb(11, 222, 24);
    color: #14320f;
    font-size: 14px;
    opacity: 0;
    animation: psim-badge 0.4s ease 1.7s forwards;
}

.pipeline__transfer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
    grid-template-areas:
        "from line to"
        "sum sum sum";
    align-items: center;
    gap: 12px 8px;
}

.pipeline__node {
    padding: 16px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.pipeline__node p {
    color: #ffffff;
    font-size: 14px;
}

.pipeline__node--to {
    animation: psim-node 0.35s ease 1.25s forwards;
}

.pipeline__line {
    position: relative;
    height: 2px;
    background: rgba(255, 255, 255, 0.28);
}

.pipeline__coin {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background: rgb(11, 222, 24);
    box-shadow: 0 0 12px rgba(11, 222, 24, 0.7);
    animation: psim-coin 1.35s ease forwards;
}

.pipeline__transfer-sum {
    grid-area: sum;
    color: #ffffff;
    font-size: 22px;
    text-align: center;
}

.pipeline__timer {
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.pipeline__timer-fill {
    height: 100%;
    width: 100%;
    background: rgb(11, 222, 24);
    transform: scaleX(0);
    transform-origin: left center;
}

.pipeline__rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.pipeline__stop {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 74px;
    padding: 12px 16px 12px 12px;
    border: 0;
    border-radius: 22px;
    background: #d6d6d6;
    box-shadow: 0 0 92px -31px #ffffff40 inset;
    text-align: left;
    cursor: pointer;
}

.pipeline__stop:hover {
    background: #e4e4e4;
}

.pipeline__stop.is-done {
    background: #cfcfcf;
}

.pipeline__stop.is-current {
    background: #ededed;
    box-shadow: inset 0 0 0 2px rgb(11, 222, 24);
}

.pipeline__num {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: rgb(11, 222, 24);
    font-size: 20px;
    line-height: 1;
    box-shadow: inset 0 0 10px 3px rgba(11, 222, 24, 0.29);
    flex-shrink: 0;
}

.pipeline__stop.is-done .pipeline__num::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgb(11, 222, 24);
}

.pipeline__label {
    flex: 1;
    min-width: 0;
    color: #474747;
    font-size: clamp(11px, 1.05vw, 14px);
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.pipeline__live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pipeline.is-held .pipeline__pulse {
    animation: none;
    opacity: 0.45;
}

@keyframes psim-pulse {
    70% {
        box-shadow: 0 0 0 8px rgba(11, 222, 24, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(11, 222, 24, 0);
    }
}

@keyframes psim-card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes psim-act-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes psim-type {
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes psim-reveal {
    to {
        opacity: 1;
    }
}

@keyframes psim-tick {
    to {
        transform: rotate(45deg) scale(1);
    }
}

@keyframes psim-needle {
    to {
        left: var(--risk);
    }
}

@keyframes psim-stamp {
    to {
        opacity: 1;
        transform: rotate(-8deg) scale(1);
    }
}

@keyframes psim-land {
    to {
        transform: translateY(0);
    }
}

@keyframes psim-fade-out {
    to {
        opacity: 0;
    }
}

@keyframes psim-fill {
    to {
        width: 100%;
    }
}

@keyframes psim-badge {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes psim-coin {
    to {
        left: calc(100% - 14px);
    }
}

@keyframes psim-node {
    to {
        box-shadow: inset 0 0 0 2px rgb(11, 222, 24);
    }
}

@media (max-width: 768px) {
    .pipeline__scene {
        min-height: 0;
        padding: 16px;
        border-radius: 22px;
    }

    .pipeline__stage-grid {
        grid-template-columns: 1fr;
    }

    .pipeline__act {
        min-height: 200px;
    }

    .pipeline__card {
        min-height: 0;
    }

    .pipeline__status {
        margin-top: 8px;
        padding-top: 8px;
    }

    .pipeline__rail {
        display: none;
    }

    .pipeline__shelf {
        gap: 6px;
    }

    .pipeline__mini {
        min-height: 84px;
        padding: 8px;
    }

    .pipeline__mini--focus {
        min-height: 108px;
    }

    .pipeline__sum,
    .pipeline__sum-from,
    .pipeline__sum-to {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pipeline__pulse,
    .pipeline__field-value,
    .pipeline__check,
    .pipeline__box::after,
    .pipeline__needle,
    .pipeline__risk-label,
    .pipeline__stamp,
    .pipeline__engineer,
    .pipeline__mini--focus,
    .pipeline__sum-from,
    .pipeline__sum-to,
    .pipeline__bar-fill,
    .pipeline__badge,
    .pipeline__node--to,
    .pipeline__coin,
    .pipeline__card,
    .pipeline__act {
        animation: none;
    }

    .pipeline__field-value {
        clip-path: none;
    }

    .pipeline__check,
    .pipeline__risk-label,
    .pipeline__stamp,
    .pipeline__sum-to,
    .pipeline__badge {
        opacity: 1;
    }

    .pipeline__sum-from {
        opacity: 0;
    }

    .pipeline__box::after {
        transform: rotate(45deg) scale(1);
    }

    .pipeline__needle {
        left: var(--risk);
    }

    .pipeline__stamp {
        transform: rotate(-8deg) scale(1);
    }

    .pipeline__mini--focus,
    .pipeline__card,
    .pipeline__act,
    .pipeline__badge {
        transform: none;
    }

    .pipeline__bar-fill {
        width: 100%;
    }

    .pipeline__coin {
        left: calc(100% - 14px);
    }

    .pipeline__node--to {
        box-shadow: inset 0 0 0 2px rgb(11, 222, 24);
    }

    .pipeline__timer {
        display: none;
    }
}
