.work-body {
    min-height: 100dvh;
    overflow-x: hidden;
}

.work-main {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 54px);
}

.work-step {
    width: 100%;
    max-width: 900px;
    display: grid;
    place-items: center;
}

.hidden {
    display: none !important;
}

.work-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    min-width: 0;
    overflow: hidden;
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid var(--line-strong);
    border-radius: 34px;
    background:
        radial-gradient(460px 220px at 50% 0%, rgba(95, 130, 255, .18), transparent 70%),
        linear-gradient(180deg, rgba(23, 31, 57, .94), rgba(10, 14, 27, .98));
    box-shadow: var(--shadow);
}

.work-card * {
    min-width: 0;
}

.work-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 34%, rgba(95, 130, 255, .1));
}

.work-card > * {
    position: relative;
}

.close-link {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #dce6ff;
    background: rgba(255, 255, 255, .06);
    font-weight: 800;
}

.progress {
    display: flex;
    gap: 8px;
    width: min(260px, 72%);
    margin: 0 auto 32px;
}

.progress span {
    height: 7px;
    flex: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.progress .active,
.progress .done {
    background: linear-gradient(90deg, #fff, var(--blue));
}

.progress .active {
    box-shadow: 0 0 0 5px rgba(95, 130, 255, .1);
}

.work-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 800;
}

.work-brand img {
    width: 40px;
    height: 40px;
}

.work-card h1 {
    max-width: 760px;
    margin: 0 auto 16px;
    text-align: center;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.lead {
    max-width: 700px;
    margin: 0 auto 26px;
    text-align: center;
    color: rgba(232, 237, 255, .74);
    font-size: 18px;
    line-height: 1.6;
}

.clean-list {
    max-width: 640px;
    display: grid;
    gap: 12px;
    margin: 0 auto 30px;
    padding: 0;
    list-style: none;
}

.clean-list li,
.note,
.needs-grid article {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
}

.clean-list li {
    padding: 15px 16px 15px 42px;
    color: rgba(232, 237, 255, .8);
    position: relative;
}

.clean-list li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 21px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(98, 224, 149, .11);
}

.work-card > .btn {
    display: flex;
    width: fit-content;
    margin: 0 auto;
}

.needs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 26px 0;
}

.needs-grid article {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
}

.needs-grid img {
    width: 38px;
    height: 38px;
    opacity: .9;
    filter: brightness(0) invert(1);
}

.needs-grid p {
    margin: 0;
    color: rgba(232, 237, 255, .78);
    line-height: 1.55;
}

.note {
    max-width: 720px;
    margin: 0 auto 26px;
    padding: 16px 18px;
    color: rgba(232, 237, 255, .76);
    border-left: 4px solid var(--blue);
}

.work-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-buttons {
    display: grid;
    gap: 14px;
    max-width: 560px;
    margin: 0 auto 24px;
}

.contact-btn {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.contact-btn img {
    width: 30px;
    height: 30px;
}

.telegram {
    background: linear-gradient(180deg, #6f91ff, #3f6cf3);
}

.whatsapp {
    color: #102017;
    background: linear-gradient(180deg, #70ef8c, #35bf50);
}

@media (max-width: 720px) {
    .work-main {
        display: block;
        padding: 96px 0 24px;
        overflow-x: hidden;
    }

    .work-step {
        width: 100%;
        min-width: 0;
    }

    .work-card {
        width: calc(100% - 32px) !important;
        max-width: 430px !important;
        margin-left: auto;
        margin-right: auto;
        min-width: 0;
        border-radius: 24px;
        padding: 26px 18px;
    }

    .work-card h1 {
        font-size: clamp(32px, 10vw, 42px);
        line-height: 1.08;
        overflow-wrap: break-word;
        text-wrap: auto;
    }

    .lead {
        font-size: 16px;
    }

    .lead,
    .clean-list li,
    .needs-grid p,
    .note {
        overflow-wrap: anywhere;
    }

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

    .contact-btn {
        min-height: 58px;
        font-size: 18px;
    }

    .work-actions,
    .work-actions .btn {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .work-card {
        width: calc(100% - 24px) !important;
        padding: 24px 14px;
    }

    .work-card h1 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .work-body {
        background:
            radial-gradient(520px 420px at 50% -120px, rgba(95, 130, 255, .36), transparent 72%),
            linear-gradient(180deg, #080d19 0%, #0b1120 42%, #070b14 100%);
    }

    .work-main {
        min-height: 100dvh;
        display: flex;
        align-items: stretch;
        justify-content: center;
        padding: 14px;
    }

    .work-step {
        width: 100%;
        max-width: 430px;
        display: flex;
    }

    .work-card {
        width: 100% !important;
        max-width: none !important;
        min-height: calc(100dvh - 28px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        padding: 30px 18px 24px;
        border-radius: 26px;
        box-shadow: 0 22px 70px rgba(0, 0, 0, .36);
    }

    .close-link {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .progress {
        width: 72%;
        margin-bottom: 28px;
    }

    .work-brand {
        margin-bottom: 18px;
    }

    .work-brand img {
        width: 34px;
        height: 34px;
    }

    .work-card h1 {
        max-width: 340px;
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.04;
        letter-spacing: -.04em;
    }

    .lead {
        max-width: 330px;
        margin-bottom: 22px;
        font-size: 16px;
        line-height: 1.5;
    }

    .clean-list {
        gap: 10px;
        margin-bottom: 26px;
    }

    .clean-list li {
        padding: 14px 14px 14px 40px;
        border-radius: 16px;
        font-size: 15px;
        line-height: 1.45;
    }

    .clean-list li::before {
        left: 17px;
        top: 20px;
    }

    .needs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 20px 0;
    }

    .needs-grid article {
        padding: 14px;
        border-radius: 16px;
    }

    .needs-grid img {
        width: 32px;
        height: 32px;
    }

    .needs-grid p,
    .note {
        font-size: 14px;
        line-height: 1.45;
    }

    .note {
        margin-bottom: 20px;
        padding: 14px;
        border-radius: 16px;
    }

    .work-card > .btn,
    .work-actions,
    .work-actions .btn,
    .contact-buttons,
    .contact-btn {
        width: 100%;
    }

    .work-actions {
        gap: 10px;
    }

    .contact-buttons {
        max-width: none;
        gap: 12px;
        margin-bottom: 22px;
    }

    .contact-btn {
        min-height: 60px;
        border-radius: 18px;
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .work-main {
        padding: 10px;
    }

    .work-card {
        min-height: calc(100dvh - 20px);
        padding: 28px 14px 20px;
    }

    .work-card h1 {
        font-size: 30px;
    }
}
